How to enable native Google BBR in CentOS 7/Debian 9 to achieve TCP acceleration

888u

Last update at :2024-07-11,Edit by888u

New kernels such as CentOS 7/Debian 9 all come with BBR, which is directly enabled and safe.

1. Enable native Google BBR on CentOS 7

(1) Update the CentOS 7 kernel to support BBR

1. View Centos kernel

uname -r

2. If it is lower than 4.10, update the kernel

rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm yum --enablerepo=elrepo-kernel install kernel-ml -y

3. After the installation is complete, check the installed kernel:

rpm -qa | grep kernel

If you see the words kernel-ml-5.3.5-1.el7.elrepo.x86_64, it is successful. 4. Update startup

egrep ^menuentry /etc/grub2.cfg | cut -f 2 -d \'

You will see something like this

CentOS Linux (5.3.5-1.el7.elrepo.x86_64) 7 (Core) CentOS Linux (3.10.0-957.1.3.el7.x86_64) 7 (Core) CentOS Linux (0-rescue-96820b9851c24560b5f942f2496b9aeb) 7 (Core)

Set CentOS Linux (5.3.5-1.el7.elrepo.x86_64) 7 (Core) as the first startup sequence (because startup is calculated from 0)

grub2-set-default 0

5. Restart the system

reboot

(2) Enable BBR on CentOS 7

1. Execution

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 sysctl -p

2. Check whether the kernel has enabled BBR

sysctl net.ipv4.tcp_available_congestion_control

and

lsmod | grep bbr

If the words BBR are displayed, it means that BBR is successfully enabled.

2. Debian 9 enables native Google BBR

1. Modify system variables

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf

2. Save to take effect

sysctl -p

3. Check whether the kernel has enabled BBR

sysctl net.ipv4.tcp_available_congestion_control

The following content is displayed to indicate that it is enabled:

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

4. BBR should have been started through the above operations. Check again to see if BBR is started.

lsmod | grep bbr

The startup is successful when the following is displayed:

lsmod | grep bbr tcp_bbr 20480 14

Recommended site searches: proxy IP address, best US server, registered domain name, how to cancel domain name registration, how to query domain name registration number, site group server, domain name registration information query, foreign virtual host, US proxy IP, registered domain name ,

How to enable native Google BBR in CentOS 7/Debian 9 to achieve TCP acceleration

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码