iperf带宽测试

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

下载地址:https://iperf.fr/iperf-download.php

下载最新的3即可

以windows为例

服务端

cd C:\iperf-3.1.3-win64
iperf3 -s

默认监听5201

iperf带宽测试_第1张图片

客户端

cd C:\iperf-3.1.3-win64
iperf3 -c 10.24.90.243

返回结果,千兆的

iperf带宽测试_第2张图片

C:\Users\isesol\Desktop\iperf-3.1.3-win64>iperf3 -c 10.24.90.243
Connecting to host 10.24.90.243, port 5201
[  4] local 10.24.220.101 port 64646 connected to 10.24.90.243 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.01   sec   113 MBytes   935 Mbits/sec
[  4]   1.01-2.01   sec   112 MBytes   945 Mbits/sec
[  4]   2.01-3.01   sec  86.5 MBytes   727 Mbits/sec
[  4]   3.01-4.01   sec   112 MBytes   938 Mbits/sec
[  4]   4.01-5.01   sec   112 MBytes   945 Mbits/sec
[  4]   5.01-6.01   sec   112 MBytes   944 Mbits/sec
[  4]   6.01-7.00   sec   111 MBytes   934 Mbits/sec
[  4]   7.00-8.00   sec   112 MBytes   945 Mbits/sec
[  4]   8.00-9.00   sec   113 MBytes   946 Mbits/sec
[  4]   9.00-10.02  sec   114 MBytes   945 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.02  sec  1.07 GBytes   921 Mbits/sec                  sender
[  4]   0.00-10.02  sec  1.07 GBytes   921 Mbits/sec                  receiver

iperf Done.

百兆的

iperf带宽测试_第3张图片

C:\Users\isesol\Desktop\iperf-3.1.3-win64>iperf3 -c 10.24.90.243
Connecting to host 10.24.90.243, port 5201
[  4] local 10.24.220.101 port 64755 connected to 10.24.90.243 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.01   sec  11.6 MBytes  96.2 Mbits/sec
[  4]   1.01-2.01   sec  11.2 MBytes  94.5 Mbits/sec
[  4]   2.01-3.01   sec  11.2 MBytes  94.5 Mbits/sec
[  4]   3.01-4.01   sec  11.2 MBytes  94.5 Mbits/sec
[  4]   4.01-5.01   sec  11.2 MBytes  94.5 Mbits/sec
[  4]   5.01-6.01   sec  11.2 MBytes  94.5 Mbits/sec
[  4]   6.01-7.00   sec  11.2 MBytes  94.5 Mbits/sec
[  4]   7.00-8.00   sec  11.2 MBytes  94.5 Mbits/sec
[  4]   8.00-9.00   sec  11.2 MBytes  94.5 Mbits/sec
[  4]   9.00-10.02  sec  11.5 MBytes  95.1 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.02  sec   113 MBytes  94.8 Mbits/sec                  sender
[  4]   0.00-10.02  sec   113 MBytes  94.7 Mbits/sec                  receiver

iperf Done.

测了一阵发现,ESXI两个网卡竟然一个100M,一个1000M,排除了交换机限速的原因,对调一下网线,居然换过来了,有时间再把网线给替换了吧。

centos6安装

rpm -ivh https://iperf.fr/download/fedora/iperf-2.0.4-1.el6.rf.x86_64.rpm

centos7安装

rpm -ivh https://iperf.fr/download/fedora/iperf3-3.1.3-1.fc24.x86_64.rpm

 

你可能感兴趣的:(分享学习,网络诊断,软件测试)