CentOs7环境下使用Iperf3测试网络带宽

编程入门 行业动态 更新时间:2024-10-08 10:56:55

CentOs7环境下使用Iperf3测试<a href=https://www.elefans.com/category/jswz/34/1674058.html style=网络带宽"/>

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测试网络带宽

本文发布于:2024-03-12 09:24:11,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1731199.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:网络带宽   环境   测试

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!