iperf
Summary
- 测试网络直接的速度
Demo
[root@fss-rule ~]# iperf -s -i 1 -f m
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 0.08 MByte (default)
------------------------------------------------------------
[ 4] local 172.26.49.111 port 5001 connected with 172.26.49.112 port 34706
[ ID] Interval Transfer Bandwidth
[ 4] 0.0- 1.0 sec 655 MBytes 5495 Mbits/sec
[ 4] 1.0- 2.0 sec 333 MBytes 2793 Mbits/sec
[ 4] 2.0- 3.0 sec 391 MBytes 3277 Mbits/sec
[ 4] 3.0- 4.0 sec 368 MBytes 3090 Mbits/sec
[root@iZ8vb8rrw7wiwqwx22tcsrZ ~]# iperf -c 172.26.49.111 -i 1 -t 30 -f m
------------------------------------------------------------
Client connecting to 172.26.49.111, TCP port 5001
TCP window size: 0.59 MByte (default)
------------------------------------------------------------
[ 3] local 172.26.49.112 port 34706 connected with 172.26.49.111 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0- 1.0 sec 658 MBytes 5518 Mbits/sec
[ 3] 1.0- 2.0 sec 333 MBytes 2797 Mbits/sec
[ 3] 2.0- 3.0 sec 391 MBytes 3279 Mbits/sec
[ 3] 3.0- 4.0 sec 368 MBytes 3091 Mbits/sec
[ 3] 4.0- 5.0 sec 327 MBytes 2740 Mbits/sec
本文来自博客园,作者:duchaoqun,转载请注明原文链接:https://www.cnblogs.com/duchaoqun/p/13385783.html