iperf Cheatsheet


Bandwidth/Loss test

Runs a continual stream (--time 0) of UDP datagrams of $BANDWIDTH and reports on the connection every $INTERVAL seconds.

$INTERVAL=5
$BANDWIDTH=2M

# client
iperf --client $SERVER_IP --udp --interval $INTERVAL --time 0 --bandwidth $BANDWIDTH --enhancedreports


# server
iperf --server --udp --interval $INTERVAL

Sample output:

# client
[ ID] Interval       Transfer     Bandwidth
[  3] 5.0000-10.0000 sec  1.25 MBytes  2.10 Mbits/sec

# server
[ ID] Interval       Transfer     Bandwidth        Jitter   Lost/Total Datagrams
[  4] 5.0000-10.0000 sec  1.25 MBytes  2.10 Mbits/sec   0.094 ms    0/  892 (0%)

See also