iperf3可以简易快速测试vm网络性能,下面为常用使用方法。
服务器侧
iperf3 -s -p 8080
TCP上行测试
iperf3.exe -c server-ip -p 8080
TCP上行测试,多线程(10线程)
iperf3.exe -c server-ip -p 8080 -P 10
TCP下行测试
iperf3.exe -c server-ip -p 8080 -R
UDP上行测试,注意需要-b指定带宽,否则限制为1M
iperf3.exe -c server-ip -p 8080 -u -b 30M