TCP调优有脚本了(更新: V25.01.13)
注意事项
1. 此脚本的TCP调优操作对劣质线路无效
2. 小带宽用户默认参数基本就跑满了,无需进行调优
3. 请在晚高峰使用该脚本
4. 低延迟场景无需刻意压为0重传,请以速度抖动程度为准
快速使用
请先在客户端安装iperf3
wget -q https://raw.githubusercontent.com/BlackSheep-cry/TCP-Optimization-Tool/main/tool.sh -O tool.sh && chmod +x tool.sh && ./tool.sh
下面是仅调节发送缓冲区的版本,如果你不了解其中的含义,请使用上面的版本
wget -q https://raw.githubusercontent.com/BlackSheep-cry/TCP-Optimization-Tool/main/toolx.sh -O toolx.sh && chmod +x toolx.sh && ./toolx.sh
项目地址:https://github.com/BlackSheep-cry/TCP-Optimization-Tool
https://www.nodeseek.com/post-200517-1
服务端Linux安装iperf3
在Debian/Ubuntu系统上安装
apt update
apt install iperf3
在CentOS/RHEL系统上安装
yum install epel-release
yum install iperf3
在Fedora系统上安装
dnf install iperf3
防火墙放行端口 (这里以ufw为例,如果你没有开启防火墙可略过这一步)
ufw allow 5201
服务端启动iperf3
iperf3 -s
注意事项
1. 此脚本的TCP调优操作对劣质线路无效
2. 小带宽用户默认参数基本就跑满了,无需进行调优
3. 请在晚高峰使用该脚本
4. 低延迟场景无需刻意压为0重传,请以速度抖动程度为准
快速使用
请先在客户端安装iperf3
wget -q https://raw.githubusercontent.com/BlackSheep-cry/TCP-Optimization-Tool/main/tool.sh -O tool.sh && chmod +x tool.sh && ./tool.sh
下面是仅调节发送缓冲区的版本,如果你不了解其中的含义,请使用上面的版本
wget -q https://raw.githubusercontent.com/BlackSheep-cry/TCP-Optimization-Tool/main/toolx.sh -O toolx.sh && chmod +x toolx.sh && ./toolx.sh
项目地址:https://github.com/BlackSheep-cry/TCP-Optimization-Tool
https://www.nodeseek.com/post-200517-1
服务端Linux安装iperf3
在Debian/Ubuntu系统上安装
apt update
apt install iperf3
在CentOS/RHEL系统上安装
yum install epel-release
yum install iperf3
在Fedora系统上安装
dnf install iperf3
防火墙放行端口 (这里以ufw为例,如果你没有开启防火墙可略过这一步)
ufw allow 5201
服务端启动iperf3
iperf3 -s