网络带宽"/>
CentOs7环境下使用Iperf3测试网络带宽
1、安装Iperf3
yum install -y iperf3
查看安装的版本
iperf3 -version
2、启动
Iperf3分为服务端和客户端,比如想测A服务器请求B服务器的带宽,则B服务器为服务端,A为客户端。
服务端:
iperf3 -s
客户端:
iperf3 -c 服务器IP地址
iperf3有很多参数,常用的有:
-c 后服务器地址
-i 表示多久打印一次数据
-t 测试时间
-n 发送的数据包大小
-p 发送的线程数
# 请求18.123.145.72服务器5分钟
iperf3 -c 18.123.145.72 -t 300
客户端打印结果如下:
[ 4] 288.00-289.00 sec 562 MBytes 4.72 Gbits/sec 56 865 KBytes
[ 4] 289.00-290.00 sec 564 MBytes 4.73 Gbits/sec 34 655 KBytes
[ 4] 290.00-291.00 sec 561 MBytes 4.71 Gbits/sec 136 930 KBytes
[ 4] 291.00-292.00 sec 569 MBytes 4.77 Gbits/sec 38 864 KBytes
[ 4] 292.00-293.00 sec 570 MBytes 4.78 Gbits/sec 51 950 KBytes
相应的,服务端打印结果为:
[ 5] 287.00-288.00 sec 558 MBytes 4.68 Gbits/sec
[ 5] 288.00-289.00 sec 563 MBytes 4.73 Gbits/sec
[ 5] 289.00-290.00 sec 564 MBytes 4.73 Gbits/sec
[ 5] 290.00-291.00 sec 562 MBytes 4.71 Gbits/sec
[ 5] 291.00-292.00 sec 567 MBytes 4.76 Gbits/sec
更多推荐
CentOs7环境下使用Iperf3测试网络带宽
发布评论