Monday Jan 05, 2009

Testing Network Performance in Solaris

So you think your wireless link is slow, or your gigabit ethernet card is under performing. How can you tell? Here are two tools I use to test network throughput.

netio


Created by Kai Uwe Rommel, it tests by sending and receiving packets of varying sizes and reports throughput in kilobytes per second.

Installation
  • x86
  • # wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/netio-1.26-sol10-x86-local.gz
    # gzip -d netio-1.26-sol10-x86-local.gz
    # pkgadd -d netio-1.26-sol10-x86-local
    
  • SPARC
  • # wget ftp://ftp.sunfreeware.com/pub/freeware/sparc/10/netio-1.26-sol10-sparc-local.gz
    # gzip -d netio-1.26-sol10-sparc-local.gz
    # pkgadd -d netio-1.26-sol10-sparc-local
    
    Usage
  • Server-side
  • # netio -u -s
    
  • Client-side
  • # netio -u SERVER_IP_ADDRESS
    

    Here are results on a 100Mbps link:
    UDP connection established.
    Packet size  1k bytes:  11913 KByte/s (0%) Tx,  11468 KByte/s (0%) Rx.
    Packet size  2k bytes:  11954 KByte/s (0%) Tx,  11509 KByte/s (0%) Rx.
    Packet size  4k bytes:  12274 KByte/s (0%) Tx,  11687 KByte/s (0%) Rx.
    Packet size  8k bytes:  12284 KByte/s (0%) Tx,  11697 KByte/s (0%) Rx.
    Packet size 16k bytes:  12292 KByte/s (0%) Tx,  11702 KByte/s (0%) Rx.
    Packet size 32k bytes:  12348 KByte/s (0%) Tx,  11714 KByte/s (0%) Rx.
    Done.
    
    Sending and receiving hovered around 11-12MB/s which is on par with 100Mbps.

    netperf


    Created by Rick Jones and discovers the maximum throughput of a link, reporting in megabits per second.

    Installation
    # wget ftp://ftp.netperf.org/netperf/netperf-2.4.4.tar.gz
    # tar zxvf netperf-2.4.4.tar.gz
    # cd netperf-2.4.4
    # export CFLAGS="-lsocket -lnsl -lkstat"
    # ./configure
    # make
    # make install
    
    Usage
  • Server-side
  • # netserver
    
  • Client-side
  • # netperf -H SERVER_IP_ADDRESS
    

    Here are results on a 100Mbps link:
    Recv   Send    Send                          
    Socket Socket  Message  Elapsed              
    Size   Size    Size     Time     Throughput  
    bytes  bytes   bytes    secs.    10\^6bits/sec  
    
     49152  49152  49152    10.00      94.88
    

    94.88 Mbps is the final result, not bad.
    About

    Hiya, my name is Paul Johnson and I'm a software engineer working on the ZFS storage appliance .

    Search

    Categories
    Archives
    « April 2014
    SunMonTueWedThuFriSat
      
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
       
           
    Today