系统我使用的是Debian13,先更新系统、重启,确保系统当前运行的内核是最新版:
apt update
apt full-upgrade安装需要用到的软件包:
apt install build-essential git
apt install linux-headers-$(uname -r)克隆项目存储库、编译lotspeed内核模块:
git clone -b zeta-tcp https://github.com/uk0/lotspeed.git
cd lotspeed
make安装lotspeed内核模块:
cp lotspeed.ko /lib/modules/$(uname -r)/kernel/net/ipv4/
depmod -a加载lotspeed内核模块:
modprobe lotspeed确保加载成功:
lsmod | grep lotspeed[可选]配置开机自动加载lotspeed内核模块:
echo "lotspeed" >> /etc/modules-load.d/lotspeed.conf设置拥塞控制算法为lotspeed:
nano /etc/sysctl.d/10-lotspeed.conf写入下面的内容
net.ipv4.tcp_congestion_control = lotspeed
net.ipv4.tcp_no_metrics_save = 1使其生效:
sysctl --system查看拥塞控制算法是否生效:
sysctl net.ipv4.tcp_congestion_control
评论