Skip to content

使用 iperf3 测试网速 #345

Open
@Bpazy

Description

@Bpazy

Ubuntu 安装 iperf3:

$ sudo apt install -y iperf3

A 服务器启动 iperf3 服务端:

$ iperf3 -s

B 服务器启动 iperf3 客户端,并指定服务端地址:

$ iperf3 -c 192.168.31.31

Connecting to host 192.168.31.31, port 5201
[  5] local 192.168.31.41 port 53852 connected to 192.168.31.31 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec  14.2 MBytes   120 Mbits/sec    0    600 KBytes       
[  5]   1.00-2.00   sec  10.8 MBytes  90.2 Mbits/sec    0   1.14 MBytes       
[  5]   2.00-3.00   sec  12.4 MBytes   104 Mbits/sec    0   1.70 MBytes       
[  5]   3.00-4.00   sec  10.9 MBytes  91.2 Mbits/sec    0   2.26 MBytes       
[  5]   4.00-5.00   sec  10.8 MBytes  90.2 Mbits/sec    0   2.82 MBytes       
[  5]   5.00-6.00   sec  10.9 MBytes  91.2 Mbits/sec    0   3.15 MBytes       
[  5]   6.00-7.00   sec  11.0 MBytes  92.3 Mbits/sec    0   3.15 MBytes       
[  5]   7.00-8.00   sec  11.0 MBytes  92.3 Mbits/sec    0   3.15 MBytes       
[  5]   8.00-9.00   sec  12.5 MBytes   105 Mbits/sec    0   3.15 MBytes       
[  5]   9.00-10.00  sec  11.0 MBytes  92.3 Mbits/sec    0   3.15 MBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec   115 MBytes  96.8 Mbits/sec    0             sender
[  5]   0.00-10.31  sec   115 MBytes  93.4 Mbits/sec                  receiver

iperf Done.

这里可以看到约为 100M 带宽。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions