linux iperf 局域网测速

jupiter
2021-07-30 / 0 评论 / 668 阅读 / 正在检测是否收录...
温馨提示:
本文最后更新于2021年12月07日,已超过874天没有更新,若内容或图片失效,请留言反馈。

linux iperf 局域网测速

iperf 百科描述

Iperf 是一个网络性能测试工具。Iperf可以测试最大TCP和UDP带宽性能,具有多种参数和UDP特性,可以根据需要调整,可以报告带宽、延迟抖动和数据包丢失

iperf使用

1.服务端启动服务,作为server:

sudo apt-get install iperf
iperf -s -i 2 # 每两秒间隔输出测试结果

2.客户端启动服务,作为client:

sudo apt-get install iperf
iperf -c <server_IP> -t 10

iperf 结果分析

每两秒输出的结果 Transfer是数据量,Bandwidth是这些数据量的传输时的速度

Server listening on TCP port 5001
TCP window size:  128 KByte (default)
------------------------------------------------------------
[  4] local 192.168.0.120 port 5001 connected with 192.168.0.233 port 56144
[ ID] Interval       Transfer     Bandwidth
[  4]  0.0- 2.0 sec  22.3 MBytes  93.7 Mbits/sec
[  4]  2.0- 4.0 sec  22.4 MBytes  94.1 Mbits/sec
[  4]  4.0- 6.0 sec  22.4 MBytes  94.2 Mbits/sec
[  4]  6.0- 8.0 sec  22.4 MBytes  94.1 Mbits/sec
[  4]  8.0-10.0 sec  22.4 MBytes  94.1 Mbits/sec
[  4]  0.0-10.0 sec   113 MBytes  94.1 Mbits/sec

参考资料

1.arm linux iperf 局域网测速:https://blog.csdn.net/shenhuxi_yu/article/details/111612609

0

评论 (0)

打卡
取消