MENU

点对点带宽测试工具iperf

August 3, 2019 • Tool阅读设置

背景

家里光猫跟交换机均是千兆口,网线却是自己拉的超五线。200M电信光纤在跑下载的时候一直时35MB/s左右,于是好奇是带宽提到了300M,还是提到了更高但是超五线跑不起。于是用iperf在内网主机进行测试,确定内网的传输速率。

iperf

iperf下载

环境

服务器

  • ESXI 虚拟机
  • 系统:Centos 7
  • IP:192.168.2.201
  • iperf 3.1.3 fedora/iperf3-3.1.3-1.fc24.x86_64.rpm

客户机

  • 个人主机
  • 系统:Windows 10
  • IP:192.168.2.101
  • iperf 3.1.3 windows/iperf-3.1.3-win64.zip

指令

服务端

[[email protected] ~]# iperf3 -B 192.168.2.201 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------
Accepted connection from 192.168.2.101, port 1781
[  5] local 192.168.2.201 port 5201 connected to 192.168.2.101 port 1782
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-1.00   sec   107 MBytes   894 Mbits/sec
[  5]   1.00-2.00   sec   111 MBytes   928 Mbits/sec
[  5]   2.00-3.00   sec   111 MBytes   929 Mbits/sec
[  5]   3.00-4.00   sec   110 MBytes   925 Mbits/sec
[  5]   4.00-5.00   sec   110 MBytes   924 Mbits/sec
[  5]   5.00-6.00   sec   111 MBytes   931 Mbits/sec
[  5]   6.00-7.00   sec   110 MBytes   926 Mbits/sec
[  5]   7.00-8.00   sec   110 MBytes   923 Mbits/sec
[  5]   8.00-9.00   sec   111 MBytes   928 Mbits/sec
[  5]   9.00-10.00  sec   110 MBytes   924 Mbits/sec
[  5]  10.00-10.04  sec  4.52 MBytes   932 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  5]   0.00-10.04  sec  0.00 Bytes  0.00 bits/sec                  sender
[  5]   0.00-10.04  sec  1.08 GBytes   923 Mbits/sec                  receiver
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

客户端

PS C:\Users\Nukami\Desktop\iperf-3.1.3-win64> ./iperf3.exe -c 192.168.2.201
Connecting to host 192.168.2.201, port 5201
[  4] local 192.168.2.101 port 1782 connected to 192.168.2.201 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec   111 MBytes   931 Mbits/sec
[  4]   1.00-2.00   sec   111 MBytes   929 Mbits/sec
[  4]   2.00-3.00   sec   111 MBytes   929 Mbits/sec
[  4]   3.00-4.00   sec   110 MBytes   926 Mbits/sec
[  4]   4.00-5.00   sec   110 MBytes   923 Mbits/sec
[  4]   5.00-6.00   sec   110 MBytes   924 Mbits/sec
[  4]   6.00-7.00   sec   111 MBytes   932 Mbits/sec
[  4]   7.00-8.00   sec   110 MBytes   924 Mbits/sec
[  4]   8.00-9.00   sec   111 MBytes   928 Mbits/sec
[  4]   9.00-10.00  sec   110 MBytes   924 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec  1.08 GBytes   927 Mbits/sec                  sender
[  4]   0.00-10.00  sec  1.08 GBytes   927 Mbits/sec                  receiver

iperf Done.

结论

看来超五类线还是跑的起千兆的,至于突破千兆的瓶颈感觉反而是在水星的千兆交换机