- 查看系統版本
$ 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
顯示以下即已開啟:
$ sudo sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_available_congestion_control = reno cubic bbr
- 查看BBR是否啟動
lsmod | grep bbr
顯示以下即啟動成功:
$ lsmod |grep bbr
tcp_bbr 20480 7