Saturday, January 12, 2013

Network speed test with iPerf

If you have more than 1 wifi adapter, sometime you may curious which is perform better. Below is 1 of most common way to test your adapters.

What you need for test setup :

- 1 or more wifi adapter.
- 1 Linux/Unix machine.


1. Start terminal and run "sudo apt-get install iperf" on both machine.

2. Login to machine A, run "iperf -s -p 50000"
option "-s" : server mode.
option "-p" : listen to port 50000

3. On machine B, run "iperf -c [machine B IP] -p 50000
option "-c" : client mode.

4. Results

# iperf -s -p 50000
------------------------------------------------------------
Server listening on TCP port 50000
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[  4] local 192.168.10.198 port 50000 connected with 192.168.10.134 port 42691
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0-10.1 sec  48.5 MBytes  40.1 Mbits/sec
[  5] local 192.168.10.198 port 50000 connected with 192.168.10.134 port 42710
[  5]  0.0-10.1 sec  48.4 MBytes  40.1 Mbits/sec
From the both performance is similar, suspect bottleneck is on machine A, I re-test with another machine with LAN, below is the result.
------------------------------------------------------------
Client connecting to 192.168.10.10, TCP port 50000
TCP window size: 22.9 KByte (default)
------------------------------------------------------------
[  3] local 192.168.10.100 port 37808 connected with 192.168.10.10 port 50000
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  74.5 MBytes  62.3 Mbits/sec
------------------------------------------------------------
Client connecting to 192.168.10.10, TCP port 50000
TCP window size: 22.9 KByte (default)
------------------------------------------------------------
[  3] local 192.168.10.134 port 37344 connected with 192.168.10.10 port 50000
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  43.6 MBytes  36.5 Mbits/sec