返回

开启系统自带的TCP BBR加速

系统自带内核高于4.9 则默认已包含 BBR

1. 检查内核版本

1
uname -r

内核版本高于 4.9 就行。

2. 开启BBR

通过向 /etc/sysctl.conf文件添加配置来启用BBR

1
2
echo "net.core.default_qdisc=fq" | sudo tee -a /etc/sysctl.conf 
echo "net.ipv4.tcp_congestion_control=bbr" | sudo tee -a /etc/sysctl.conf

3. 生效更改

1
su root -c "sudo sysctl -p"

4. 生效检测

执行下面命令,如果结果中带有​**bbr** ,则证明你的内核已开启​**bbr**

1
sysctl net.ipv4.tcp_available_congestion_control

注:也可以执行下面命令,如果结果中有​**bbr** ,也可以证明你的内核已开启​**bbr**

1
lsmod | grep bbr
Licensed under CC BY-NC-SA 4.0
使用 Hugo 构建
主题 StackJimmy 设计