Howto network benchmark with "iperf"
Posted: Thu Oct 22, 2020 12:46 am
Here's an excellent article by the Thomas Krenn crew about benchmarking network performance using iperf (German).
Here's a short summary of how to quickly run a TCP test between 2 machines:
Server1: Start listening.
Server2 after finished test:
Here's a short summary of how to quickly run a TCP test between 2 machines:
Server1: Start listening.
Code: Select all
$ iperf -s
Server2: Connect to Server1------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 128 KByte (default)
------------------------------------------------------------
Code: Select all
$ iperf -c $SERVER1
------------------------------------------------------------
Client connecting to zehn2, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[ 3] local 10.0.0.51 port 46532 connected with 10.0.0.52 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 10.7 GBytes 9.20 Gbits/sec
Server2 after finished test:
That's it in a tiny nutshell.------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 128 KByte (default)
------------------------------------------------------------
[ 4] local 10.0.0.51 port 5001 connected with 10.0.0.52 port 55842
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-10.0 sec 10.8 GBytes 9.25 Gbits/sec