1.下载方式
1.1 centos服务端
#直接下载 yum -y install iperf3 #在有网的机器下载离线安装包(将包上传到其他服务器即可) yum -y install iperf3 --downloadonly --downloaddir ./
1.2 win10客户端(下载之后正常安装exe即可)
https://iperf.fr/download/windows/iperf-3.1.3-win64.zip
2.使用
2.1 服务端使用
iperf3 -s #默认监听5201端口,可以修改
2.2 客户端使用
iperf3 -c 172.16.16.19 -n 1g #-n 指定传输数据包大小
2.3 结果展示
C:\Users\lipc>iperf3 -c 172.16.16.19 -n 1g Connecting to host 172.16.16.19, port 5201 [ 4] local 172.16.0.35 port 49367 connected to 172.16.0.66 port 5201 [ ID] Interval Transfer Bandwidth [ 4] 0.00-1.00 sec 74.9 MBytes 628 Mbits/sec [ 4] 1.00-2.00 sec 109 MBytes 915 Mbits/sec [ 4] 2.00-3.00 sec 74.2 MBytes 623 Mbits/sec [ 4] 3.00-4.00 sec 109 MBytes 916 Mbits/sec [ 4] 4.00-5.02 sec 87.2 MBytes 721 Mbits/sec [ 4] 5.02-6.00 sec 97.8 MBytes 832 Mbits/sec [ 4] 6.00-7.00 sec 74.2 MBytes 623 Mbits/sec [ 4] 7.00-8.00 sec 108 MBytes 908 Mbits/sec [ 4] 8.00-9.01 sec 93.8 MBytes 778 Mbits/sec [ 4] 9.01-10.00 sec 88.6 MBytes 752 Mbits/sec [ 4] 10.00-11.01 sec 88.5 MBytes 733 Mbits/sec [ 4] 11.01-11.30 sec 18.2 MBytes 535 Mbits/sec - - - - - - - - - - - - - - - - - - - - - - - - - [ ID] Interval Transfer Bandwidth [ 4] 0.00-11.30 sec 1.00 GBytes 760 Mbits/sec sender [ 4] 0.00-11.30 sec 1024 MBytes 760 Mbits/sec receiver iperf Done.
2.4 总结
可以看出从客户端到服务端的带宽发送和接受是760Mbits/sec,也就是大概千兆的带宽
3.参考文档
https://blog.csdn.net/qq_31363561/article/details/131139001
标签:MBytes,iperf3,Mbits,1.00,172.16,sec,使用,工具 From: https://www.cnblogs.com/Leonardo-li/p/18131357