主机网络速度测试

  1. 1 iperf3
    1. 1.1官网下载地址:
    2. 1.2 安装
    3. 1.3 使用方法
  2. 2 Linux系统命令脚本工具测试
  3. 3 工具网站直接打开测试

🌺WIKI下 测试主机的网络速度的几个方法:

1 iperf3

iperf3是一款网络带宽测试软件,支持几乎所有终端。

1.1官网下载地址:

https://iperf.fr

1.2 安装

1.3 使用方法

a:主机端 :iperf3 -s

b: 客户端 :.\iperf3 -c 192.168.3.190 -b 1g -t 10 -i 1 -u

PS C:\Users\focus\Desktop\iperf-3.1.3-win64\iperf-3.1.3-win64> .\iperf3 -c 192.168.3.190 -b 1g -t 10 -i 1 -u
Connecting to host 192.168.3.190, port 5201
[  4] local 192.168.3.11 port 60964 connected to 192.168.3.190 port 5201
[ ID] Interval           Transfer     Bandwidth       Total Datagrams
[  4]   0.00-1.00   sec  88.3 MBytes   741 Mbits/sec  11300
[  4]   1.00-2.00   sec   109 MBytes   910 Mbits/sec  13890
[  4]   2.00-3.00   sec   112 MBytes   937 Mbits/sec  14292
[  4]   3.00-4.00   sec   112 MBytes   942 Mbits/sec  14381
[  4]   4.00-5.00   sec   113 MBytes   950 Mbits/sec  14492
[  4]   5.00-6.00   sec   114 MBytes   953 Mbits/sec  14548
[  4]   6.00-7.00   sec   108 MBytes   903 Mbits/sec  13773
[  4]   7.00-8.00   sec   114 MBytes   957 Mbits/sec  14601
[  4]   8.00-9.00   sec   112 MBytes   940 Mbits/sec  14342
[  4]   9.00-10.00  sec   114 MBytes   955 Mbits/sec  14578
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
[  4]   0.00-10.00  sec  1.07 GBytes   919 Mbits/sec  0.042 ms  607/140197 (0.43%)
[  4] Sent 140197 datagrams

详细使用方法:

iPerf is a command-line tool used to measure the performance of a network. Here are some examples of how to use iPerf:

Testing the bandwidth between two hosts:
On the server host, run the following command to start iPerf in server mode:
Copy code
iperf -s
On the client host, run the following command to start iPerf in client mode and connect to the server:
php
Copy code
iperf -c <server-hostname-or-IP>
The client will now perform a bandwidth test and report the results to the console.

Testing the bandwidth in both directions (bidirectional test):
On the first host, run the following command to start iPerf in server mode:
Copy code
iperf -s
On the second host, run the following command to start iPerf in client mode and connect to the first host:
php
Copy code
iperf -c <first-host-name-or-IP> -d
The client will now perform a bidirectional bandwidth test, measuring the bandwidth in both directions and reporting the results to the console.

Testing with a specified duration:
On the server host, run the following command to start iPerf in server mode:
Copy code
iperf -s
On the client host, run the following command to start iPerf in

2 Linux系统命令脚本工具测试

bash <(curl -Lso- https://git.io/superspeed_uxh)

Superspeed.sh 使用国内各地三大运营商的 speedtest 测速节点进行全面测速,不含境外。(推荐使用)

bash <(curl -Lso- https://bench.im/hyperspeed)

HyperSpeed,除支持国内三网测速之外,还支持教育网,以及港澳台日韩节点测速。另外也支持单线程测速。(推荐使用)

bash <(curl -Lso- https://git.io/J1SEh)

功能类似于Superspeed.sh 。

curl https://raw.githubusercontent.com/zhucaidan/mtr_trace/main/mtr_trace.sh|bash

检测VPS回程国内三网路由,支持线路为:电信CN2 GT,电信CN2 GIA,联通169,电信163,联通9929,联通4837,移动CMI。

wget -qO- git.io/besttrace | bash

以上脚本能直接显示回程线路详情。

3 工具网站直接打开测试

https://www.speedtest.net/


转载请注明来源,欢迎对文章中的引用来源进行考证,欢迎指出任何有错误或不够清晰的表达。可以在下面评论区评论,也可以邮件至 xieaoao@qq.com QQ:1296454177

×

喜欢就点赞,疼爱就打赏