Ubuntu开启bbr
# 1.查看Ubuntu定时任务
uname -a
1
2
2
如果是4.9或者以上,那么恭喜你,升级内核这一步你就可以跳过了,如果在4.9以下,那就需要更新一下内核了;
# 2.修改系统变量
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
1
2
3
4
2
3
4
# 3.保存生效
sysctl -p
1
2
2
# 4.查看内核是否已开启BBR
sysctl net.ipv4.tcp_available_congestion_control
1
2
3
2
3
显示以下即已开启:
sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_congestion_control = bbr
1
2
2
# 5.查看BBR是否启动
lsmod | grep bbr
1
2
3
2
3
显示以下即启动成功:
lsmod | grep bbr
tcp_bbr
1
2
2
上次更新: 2022/12/09, 16:57:16