Uncategorized

linux内核开启TCP BBR拥塞控制算法

内核要求4.9及以上。

修改内核配置文件:

# cat >> /etc/sysctl.conf << EOF
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
EOF

使配置生效:

# sysctl -p
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr

确认是否生效:

# sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_available_congestion_control = bbr cubic reno

$ lsmod | grep bbr
tcp_bbr                20480  14

References:
[1]Debian / Ubuntu 更新内核并开启 TCP BBR 拥塞控制算法
[2]Linux 升级内核开启 TCP BBR 有多大好处

Leave a Reply

Your email address will not be published. Required fields are marked *