195 lines
6.5 KiB
Markdown
Executable File
195 lines
6.5 KiB
Markdown
Executable File
|
||
|
||
## 测试软件
|
||
|
||
### speedtest-cli
|
||
https://cn.x-cmd.com/pkg/speedtest-cli
|
||
https://github.com/sivel/speedtest-cli
|
||
|
||
librespeed/speedtest
|
||
|
||
在自家搭建了Speedtest
|
||
http://himan.picp.net:5102/
|
||
|
||
|
||
服务器自动寻找最近的节点服务器,返回下载和上传速率
|
||
群晖:
|
||
https://laosu.tech/2022/10/19/%E7%94%A8Speedtest-Tracker%E8%B7%9F%E8%B8%AA%E4%B8%8A%E7%BD%91%E9%80%9F%E5%BA%A6/
|
||
speedtest tracker
|
||
https://zhuanlan.zhihu.com/p/640264958
|
||
Docker Speedtest analyser
|
||
https://www.modb.pro/db/127325
|
||
|
||
### iperf3
|
||
|
||
|
||
```
|
||
# Debian/Ubuntu 系
|
||
sudo apt update sudo apt install iperf3
|
||
# CentOS/RHEL 系
|
||
sudo yum install iperf3
|
||
```
|
||
|
||
|
||
client/server模式,先在服务器安装iperf3 -s -p XXX,在客户端iperf3 -c XXX对接
|
||
https://zhuanlan.zhihu.com/p/507720770
|
||
从家里到联通云和腾讯云服务器都是2Mbits/sec
|
||
chengang@JAMBPM1-2 ~ % iperf3 -c 116.162.100.119 -p 5001
|
||
|
||
```
|
||
Connecting to host 116.162.100.119, port 5001
|
||
[ 5] local 192.168.1.150 port 64437 connected to 116.162.100.119 port 5001
|
||
[ ID] Interval Transfer Bitrate
|
||
[ 5] 0.00-1.00 sec 768 KBytes 6.27 Mbits/sec
|
||
[ 5] 1.00-2.01 sec 0.00 Bytes 0.00 bits/sec
|
||
[ 5] 2.01-3.01 sec 256 KBytes 2.10 Mbits/sec
|
||
[ 5] 3.01-4.00 sec 128 KBytes 1.05 Mbits/sec
|
||
[ 5] 4.00-5.01 sec 256 KBytes 2.09 Mbits/sec
|
||
[ 5] 5.01-6.00 sec 128 KBytes 1.05 Mbits/sec
|
||
[ 5] 6.00-7.00 sec 256 KBytes 2.11 Mbits/sec
|
||
[ 5] 7.00-8.00 sec 256 KBytes 2.09 Mbits/sec
|
||
[ 5] 8.00-9.01 sec 256 KBytes 2.09 Mbits/sec
|
||
[ 5] 9.01-10.00 sec 256 KBytes 2.10 Mbits/sec
|
||
- - - - - - - - - - - - - - - - - - - - - - - - -
|
||
[ ID] Interval Transfer Bitrate
|
||
[ 5] 0.00-10.00 sec 2.50 MBytes 2.10 Mbits/sec sender
|
||
[ 5] 0.00-10.00 sec 2.40 MBytes 2.01 Mbits/sec receiver
|
||
```
|
||
|
||
Windows测试结果:
|
||
|
||
```
|
||
D:\myWinApps\iperf-3.20-win64>iperf3 -c 150.158.120.215 -p 5001
|
||
Connecting to host 150.158.120.215, port 5001
|
||
[ 5] local 198.18.0.1 port 49649 connected to 150.158.120.215 port 5001
|
||
[ ID] Interval Transfer Bitrate
|
||
[ 5] 0.00-1.01 sec 1.62 MBytes 13.5 Mbits/sec
|
||
[ 5] 1.01-2.01 sec 256 KBytes 2.10 Mbits/sec
|
||
[ 5] 2.01-3.01 sec 256 KBytes 2.10 Mbits/sec
|
||
[ 5] 3.01-4.01 sec 256 KBytes 2.10 Mbits/sec
|
||
[ 5] 4.01-5.01 sec 256 KBytes 2.09 Mbits/sec
|
||
[ 5] 5.01-6.01 sec 256 KBytes 2.09 Mbits/sec
|
||
[ 5] 6.01-7.01 sec 128 KBytes 1.05 Mbits/sec
|
||
[ 5] 7.01-8.01 sec 256 KBytes 2.09 Mbits/sec
|
||
[ 5] 8.01-9.01 sec 256 KBytes 2.11 Mbits/sec
|
||
[ 5] 9.01-10.01 sec 256 KBytes 2.10 Mbits/sec
|
||
- - - - - - - - - - - - - - - - - - - - - - - - -
|
||
[ ID] Interval Transfer Bitrate
|
||
[ 5] 0.00-10.01 sec 3.75 MBytes 3.14 Mbits/sec sender
|
||
[ 5] 0.00-10.03 sec 2.53 MBytes 2.11 Mbits/sec receiver
|
||
```
|
||
|
||
|
||
是我家里路由器问题?
|
||
|
||
天园测试结果:
|
||
|
||
```
|
||
D:\myWinApps\iperf-3.20-win64>iperf3 -c 150.158.120.215 -p 5001
|
||
Connecting to host 150.158.120.215, port 5001
|
||
[ 5] local 198.18.0.1 port 4812 connected to 150.158.120.215 port 5001
|
||
[ ID] Interval Transfer Bitrate
|
||
[ 5] 0.00-1.01 sec 52.1 MBytes 433 Mbits/sec
|
||
[ 5] 1.01-2.01 sec 0.00 Bytes 0.00 bits/sec
|
||
[ 5] 2.01-3.01 sec 12.0 MBytes 102 Mbits/sec
|
||
[ 5] 3.01-4.01 sec 0.00 Bytes 0.00 bits/sec
|
||
[ 5] 4.01-5.01 sec 12.0 MBytes 101 Mbits/sec
|
||
[ 5] 5.01-6.01 sec 12.0 MBytes 100 Mbits/sec
|
||
[ 5] 6.01-7.00 sec 0.00 Bytes 0.00 bits/sec
|
||
[ 5] 7.00-8.01 sec 12.0 MBytes 100 Mbits/sec
|
||
[ 5] 8.01-9.01 sec 0.00 Bytes 0.00 bits/sec
|
||
[ 5] 9.01-10.01 sec 12.0 MBytes 101 Mbits/sec
|
||
- - - - - - - - - - - - - - - - - - - - - - - - -
|
||
[ ID] Interval Transfer Bitrate
|
||
[ 5] 0.00-10.01 sec 112 MBytes 94.0 Mbits/sec sender
|
||
[ 5] 0.00-10.04 sec 69.8 MBytes 58.3 Mbits/sec receiver
|
||
```
|
||
|
||
初步定位是东玺门家路由器问题!
|
||
上游网络节点问题!
|
||
### mtr
|
||
|
||
https://help.aliyun.com/zh/ecs/user-guide/use-mtr-tool-for-network-analysis
|
||
https://www.cnblogs.com/xyash/p/19276237
|
||
|
||
|
||
https://github.com/WinMTR/WinMTR-Official/releases/tag/v0.92
|
||
winmtr
|
||
https://blog.csdn.net/michaelwoshi/article/details/126924510
|
||
|
||
sudo mtr -w www.baidu.com
|
||
|
||
```
|
||
Start: 2025-12-03T22:39:15+0800
|
||
HOST: JAMBPM1-2.local Loss% Snt Last Avg Best Wrst StDev
|
||
1.|-- 192.168.1.1 0.0% 10 0.7 1.2 0.6 4.7 1.2
|
||
2.|-- 175.0.68.1 0.0% 10 3.9 3.6 2.1 4.3 0.6
|
||
3.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
|
||
4.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
|
||
5.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
|
||
6.|-- 113.96.4.238 20.0% 10 22.2 25.0 21.8 28.4 2.6
|
||
7.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
|
||
8.|-- 14.29.117.178 0.0% 10 23.2 26.4 23.2 35.6 4.7
|
||
9.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
|
||
10.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
|
||
11.|-- ??? 100.0 10 0.0 0.0 0.0 0.0 0.0
|
||
12.|-- 183.2.172.17 0.0% 10 22.4 22.5 21.6 23.5 0.6
|
||
```
|
||
|
||
https://www.cnblogs.com/xyash/p/19276237
|
||
|
||
|
||
|
||
### nload
|
||
服务器当前的网络速率
|
||
|
||
|
||
### NetworkQauality
|
||
Mac下命令
|
||
```
|
||
networkQuality -v
|
||
```
|
||
[[networkQuality:macOS 中隐藏的网络测试工具(命令行)]]
|
||
### netquality
|
||
Mac下不能运行,需要在Docker安装容器
|
||
https://github.com/xykt/NetQuality
|
||
|
||
|
||
### netperf
|
||
https://www.cnblogs.com/davidesun/p/12726006.html
|
||
https://zhuanlan.zhihu.com/p/692834798
|
||
|
||
### httpstat
|
||
https://github.com/reorx/httpstat
|
||
|
||
- 排查命令
|
||
|
||
```
|
||
# 关键排查命令:
|
||
ping 223.5.5.5 → 延迟<10ms(正常)
|
||
dig @localhost www.google.com → 响应超时
|
||
conntrack -L | wc -l → 29876(接近上限)
|
||
```
|
||
|
||
### TurboACC
|
||
openwrt插件
|
||
|
||
|
||
### Homebox
|
||
https://www.swjsj.com/articles/2025/04/25/1745589670102.html
|
||
docker run -d -p 3300:3300 --name homebox xgheaven/homebox
|
||

|
||
测试出来居然这么强?应该是从M1到DSM的数据!
|
||
|
||
https://github.com/XGHeaven/homebox
|
||
在自家搭建了一个服务器:
|
||
http://himan.picp.net:3300/
|
||
|
||
## BBR加速
|
||
|
||
https://blog.eimoon.com/p/ubuntu-bbr/
|
||
|
||
centOS 7.X不同于ubuntu、debian
|
||
[[CentOS7安装TCP BBR加速_tcp加速脚本-CSDN博客]]
|
||
|