iperf network speed test
· One min read
Use iperf
to test / measure network speed / bandwidth / throughput
iperf2
- Multi-thread
- Support multi-cast
- Official support Windows
iperf3
- Single-thread
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>
Option | Description |
---|---|
-s | run server |
-D | run server as daemon |
-c <host> | run client, connect to server <host> |
-w <size>{K¦M} | set TCP window size, suggest > 1M |
-u | use UDP |
-b <bandwidth>{K¦M} | set bandwidth, required for UDP |
-p <port> | use port <port> |
-i <second> | show report per <second> |
-d ¦ --dualtest | bi-directional test |
-t <second> | run <second> test |
--reverse | reverse test (client receive, server send) |