Skip to content

How to test link speed between two hosts

Uses iperf.

Installation

On both hosts:

sudo apt-get install iperf

Start iperf as a server on one of the machines

iperf -s

Run iperf as a client

iperf -c IPERF_SERVER_ADDRESS

Example output:

------------------------------------------------------------
Client connecting to IPERF_SERVER_ADDRESS, TCP port 5001
TCP window size: 16.0 KByte (default)
------------------------------------------------------------
[  3] local 192.168.0.4 port 37248 connected with 192.168.0.5 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  1.04 GBytes    893 Mbits/sec

The default port is 5001. Use -p to change it.

Comments