Debian 10内核开启BBR的方法
BBR 是 Google 提出的一种新型拥塞控制算法,可以使 Linux 服务器显著地提高吞吐量和减少 TCP 连接的延迟。Linux从4.9版本开始内核默认安装编译了BBR算法,因此Debian只要直接开启就可以了。
查看系统版本:
~# lsb_release -a
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
修改系统变量:
~# echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
~# echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
保存生效:
~# sysctl -p
查看内核是否已开启BBR:
~# sysctl net.ipv4.tcp_available_congestion_control
正常返回:
net.ipv4.tcp_available_congestion_control = reno cubic bbr
查看BBR是否启动:
~# lsmod | grep bbr
正常返回:
tcp_bbr 20480 82
本作品采用 知识共享署名-相同方式共享 4.0 国际许可协议 进行许可。