iperf3.0带宽测试说明

来源:互联网 发布:辐射4阴影优化 编辑:程序博客网 时间:2024/06/06 08:50

1.编译(一般情况下外派实施人员无需关系编译这一章节)
X86编译:
1)在一台有gcc的linux机器上,check出来代码https://iperf.fr/download/iperf_3.0/iperf-3.0.11-source.tar.gz
2)./configure –disable-shared –enable-static
3)make 然后再src目录中可以找到iperf3这个程序,可以在x86的linux系统上当作服务端还有客户端使用。
ARM编译:
1)在一台有arm交叉编译器的机器上,check出来代码https://iperf.fr/download/iperf_3.0/iperf-3.0.11-source.tar.gz
2)./configure –host=arm-linux-gnueabihf –disable-shared –enable-static 生成makefile
3)make 然后再src目录中可以找到iperf3这个程序,可以在arm的linux系统上当作服务端还有客户端使用。

2.TCP测速使用方法:
1)服务端执行如下的命令。
./iperf3 -s -p 12345 -i 5
2)客户端执行如下命令。
./iperf3 -c 192.168.7.56 -p 12345 -i 5 -t 200
3)查看标准输出,可以获得带宽。
[root@localhost src]# ./iperf3_x86 -c 192.168.1.240 -p 12345 -i 5 -t 200
Connecting to host 192.168.1.240, port 12345
[ 4] local 192.168.7.56 port 49254 connected to 192.168.1.240 port 12345
[ ID] Interval Transfer Bandwidth Retr Cwnd
[ 4] 0.00-5.00 sec 561 MBytes 942 Mbits/sec 6 464 KBytes
[ 4] 5.00-10.00 sec 560 MBytes 940 Mbits/sec 0 530 KBytes
[ 4] 10.00-15.00 sec 561 MBytes 941 Mbits/sec 0 621 KBytes
[ 4] 15.00-20.00 sec 560 MBytes 940 Mbits/sec 4 354 KBytes
^C[ 4] 20.00-23.77 sec 422 MBytes 939 Mbits/sec 0 478 KBytes


[ ID] Interval Transfer Bandwidth Retr
[ 4] 0.00-23.77 sec 2.60 GBytes 941 Mbits/sec 10 sender
[ 4] 0.00-23.77 sec 0.00 Bytes 0.00 bits/sec receiver
iperf3: interrupt - the client has terminated

0 0