使用iperf测试网络速度--windows

下载

下载iperf的Windows版本:iperf官网地址

这里下载的版本是iperf-3.1.3-win32,电脑使用的是XP系统。

下载文件中有cygwin1.dll,cyggcc_s-1.dll,iperf.exe三个文件,解压下载文件,将这三个文件复制到电脑的任意一个盘里,复制其地址。这里将其复制到了C:\iperf-3.1.3-win32\iperf-3.1.3-win32目录下(地址可以在iperf3的属性里面查看)。

打开cmd命令行,cd到上述目录

cd C:\iperf-3.1.3-win32\iperf-3.1.3-win32

使用iperf

使用iperf测试速度时,需要有服务端和客户端。
其中,服务端的起始命令为:

iperf3 -s

客户端的起始命令为:

iperf3 -c [server IP]

命令开始,服务端和客户端会连接,其显示信息为:
服务端:

-------------------------------------------------------------------
Server listening on 5201
-------------------------------------------------------------------
Accepted connection from [client IP], port [port]
[ 4]   local [server IP] port 5201 connected to [client IP] port [port]
[ID]   Interval           Transfer       Bandwidth
[ 4]   0.00-1.01   sec   54.8 Mbytes   453 Mbits/sec
[ 4]   0.00-1.01   sec   54.8 Mbytes   453 Mbits/sec
[ 4]   0.00-1.01   sec   54.8 Mbytes   453 Mbits/sec
[ 4]   0.00-1.01   sec   54.8 Mbytes   453 Mbits/sec
-------------------------------------------------------------------
[ID]   Interval           Transfer       Bandwidth
[ 4]   0.00-1.01   sec   54.8 Mbytes   453 Mbits/sec      sender
[ 4]   0.00-1.01   sec   54.8 Mbytes   453 Mbits/sec      receiver
-------------------------------------------------------------------
Server listening on 5201
-------------------------------------------------------------------

客户端:

Connecting to host [host IP], port 5201
[ 4]   local [client IP] port [port] connected to [server IP] port [port]
[ID]   Interval           Transfer       Bandwidth
[ 4]   0.00-1.01   sec   54.8 Mbytes   453 Mbits/sec
[ 4]   0.00-1.01   sec   54.8 Mbytes   453 Mbits/sec
[ 4]   0.00-1.01   sec   54.8 Mbytes   453 Mbits/sec
[ 4]   0.00-1.01   sec   54.8 Mbytes   453 Mbits/sec
-------------------------------------------------------------------
[ID]   Interval           Transfer       Bandwidth
[ 4]   0.00-1.01   sec   54.8 Mbytes   453 Mbits/sec      sender
[ 4]   0.00-1.01   sec   54.8 Mbytes   453 Mbits/sec      receiver

tbc

你可能感兴趣的:(初学者使用手册)