bbr加速

2022-09-27

linux, bbr

开启BBR

linux内核版本大于4.9的系统自带的bbr

  • Debian 9+
  • Ubuntu 17.04+
  • CentOS 8+
1
2
3
4
5
6
7
8
9
10
# debian10+ 可用
echo 'deb http://deb.debian.org/debian buster-backports main' >> /etc/apt/sources.list

apt update && apt -t buster-backports install linux-image-amd64

# Ubuntu 跳过前两步
echo net.core.default_qdisc=fq >> /etc/sysctl.conf
echo net.ipv4.tcp_congestion_control=bbr >> /etc/sysctl.conf
sysctl -p
reboot

确认

输入 lsmod | grep bbr 返回 tcp_bbr
输入 lsmod | grep fq 返回 sch_fq
输入 sysctl net.ipv4.tcp_available_congestion_control 返回 net.ipv4.tcp_available_congestion_control = bbr cubic reno