iPerf3 自己用两个设备测网卡速度

tao 2023-2-17 1251

文件下载地址,有Linux、Windows、Android、iOS等

https://iperf.fr/


Linux安装命令

yum install -y iperf3

Windows可以直接下载

https://iperf.fr/download/windows/iperf-3.1.3-win64.zip


Linux做服务器这样 iperf3 -s

[root@localhost ~]# iperf3 -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------

Windows做服务器可以 iperf3.exe -s

C:\Users\B660>d:
D:\>cd iperf-3.1.3-win64
D:\iperf-3.1.3-win64>iperf3.exe -s
-----------------------------------------------------------
Server listening on 5201
-----------------------------------------------------------


测速无论Windows还是Linux用 iperf3 -c IP 上传下载用 iperf3 -c IP -R

[root@localhost ~]# iperf3 -c 10.xx.xx.x4
Connecting to host 10.xx.xx.x4, port 5201
[  4] local 10.xx.xx.x50 port 42156 connected to 10.xx.xx.x4 port 5201
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.01   sec  83.0 MBytes   690 Mbits/sec    0    214 KBytes
[  4]   1.01-2.02   sec  85.9 MBytes   715 Mbits/sec    0    214 KBytes
[  4]   2.02-3.00   sec  91.5 MBytes   779 Mbits/sec    0    214 KBytes
[  4]   3.00-4.00   sec  81.9 MBytes   688 Mbits/sec    0    214 KBytes
[  4]   4.00-5.00   sec  84.1 MBytes   704 Mbits/sec    0    214 KBytes
[  4]   5.00-6.01   sec  91.8 MBytes   766 Mbits/sec    0    214 KBytes
[  4]   6.01-7.00   sec  86.8 MBytes   733 Mbits/sec    0    214 KBytes
[  4]   7.00-8.01   sec  86.7 MBytes   721 Mbits/sec    0    214 KBytes
[  4]   8.01-9.00   sec  89.4 MBytes   756 Mbits/sec    0    214 KBytes
[  4]   9.00-10.00  sec  93.9 MBytes   790 Mbits/sec    0    214 KBytes
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-10.00  sec   875 MBytes   734 Mbits/sec    0             sender
[  4]   0.00-10.00  sec   875 MBytes   734 Mbits/sec                  receiver
iperf Done.
[root@localhost ~]# iperf3 -c 10.xx.xx.x4 -R
Connecting to host 10.xx.xx.x4, port 5201
Reverse mode, remote host 10.xx.xx.x4 is sending
[  4] local 10.xx.xx.x50 port 42160 connected to 10.xx.xx.x4 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec   100 MBytes   839 Mbits/sec
[  4]   1.00-2.00   sec  99.5 MBytes   835 Mbits/sec
[  4]   2.00-3.00   sec   101 MBytes   844 Mbits/sec
[  4]   3.00-4.00   sec   101 MBytes   844 Mbits/sec
[  4]   4.00-5.00   sec   100 MBytes   841 Mbits/sec
[  4]   5.00-6.00   sec   100 MBytes   841 Mbits/sec
[  4]   6.00-7.00   sec   100 MBytes   843 Mbits/sec
[  4]   7.00-8.00   sec   101 MBytes   845 Mbits/sec
[  4]   8.00-9.00   sec   100 MBytes   841 Mbits/sec
[  4]   9.00-10.00  sec   100 MBytes   840 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-10.00  sec  1003 MBytes   842 Mbits/sec                  sender
[  4]   0.00-10.00  sec  1003 MBytes   842 Mbits/sec                  receiver
iperf Done.




最新回复 (0)
返回
发新帖