Iperf

From The World according to Vissie
Jump to navigation Jump to search

Test router performance

iperf3

iperf3 -c 192.168.1.2 -b 100m -p 5201 -f M -R
-b 100   will test as if the line is a 100m line
-p 5201  Stating the obvious, the default port to be used
-f M     Will show the results in Mbytes/sec
-f m     Will show the results in Mbits/sec
-R       Will do a reverse test, so testing the download speed as opposed to the upload speed
-P 2     Number of concurrent tests run at once.
-M 1380  Set the packet size to smaller that MTU -20

Old iperf

apt-get install iperf

Server:

iperf -s

client

iperf -c pc.local -d
-d bidirectional speed test at the same time
-r bidirectional speed test one side at a time

My results for testing:

WiFi

[  3]  0.0-10.1 sec  25.4 MBytes  21.2 Mbits/sec
-d
[  5]  0.0-10.4 sec  5.88 MBytes  4.75 Mbits/sec
[  4]  0.0-11.3 sec  21.5 MBytes  16.0 Mbits/sec
-r

[ 4] 0.0-10.1 sec 25.4 MBytes 21.1 Mbits/sec [ 5] 0.0-16.8 sec 26.0 MBytes 13.0 Mbits/sec

Eth

[  3]  0.0-10.0 sec   113 MBytes  94.7 Mbits/sec
-d
[  5]  0.0-10.0 sec   111 MBytes  92.6 Mbits/sec
[  4]  0.0-10.1 sec   110 MBytes  91.0 Mbits/sec
-r
[  5]  0.0-10.0 sec   113 MBytes  94.5 Mbits/sec
[  4]  0.0-10.1 sec   113 MBytes  93.6 Mbits/sec