Skip to main content

iperf network speed test

· One min read

Use iperf to test / measure network speed / bandwidth / throughput

iperf2

Download

  • Multi-thread
  • Support multi-cast
  • Official support Windows

iperf3

Download

  • Single-thread

Comparison

iperf2 / iperf3 comparison

Test using TCP

Server
iperf -s -w1M -i2
Client
iperf -c <server IP address> -w1M -i2

Test using UDP

Server
iperf -u -s -w1M -i2
Client
iperf -u -b 10M -c <server IP address> -w1M -i2

Syntax

iperf <option>
OptionDescription
-srun server
-Drun server as daemon
-c <host>run client, connect to server <host>
-w <size>{K¦M}set TCP window size, suggest > 1M
-uuse UDP
-b <bandwidth>{K¦M}set bandwidth, required for UDP
-p <port>use port <port>
-i <second>show report per <second>
-d ¦ --dualtestbi-directional test
-t <second>run <second> test
--reversereverse test (client receive, server send)