Bottleneck Bandwidth and Round-trip propagation time (BBR) is a TCP congestion control algorithm developed by Google in 2016. It helps significantly improve the throughput and the TCP connection latency of Linux servers. However, enabling BBR requires a Linux kernel version of 4.10 or later. If you use an earlier version, you need to upgrade your kernel. This document guides you through how to manually change the kernel and enable BBR on your Linux server.
uname -r
yum update -y
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
yum install https://www.elrepo.org/elrepo-release-7.0-4.el7.elrepo.noarch.rpm
yum --disablerepo="*" --enablerepo="elrepo-kernel" list available
yum --enablerepo=elrepo-kernel install kernel-ml
/etc/default/grub
file.vim /etc/default/grub
GRUB_DEFAULT=saved
to GRUB_DEFAULT=0
.grub2-mkconfig -o /boot/grub2/grub.cfg
reboot
uname -r
rpm -qa | grep kernel
yum remove kernel-old_kernel_version
For example:yum remove kernel-3.10.0-957.el7.x86_64
/etc/sysctl.conf
file.vim /etc/sysctl.conf
net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
/etc/sysctl.conf
configuration file.sysctl -p
sysctl net.ipv4.tcp_congestion_control
# The following appears if the configuration succeeds:
# net.ipv4.tcp_congestion_control = bbr
sysctl net.ipv4.tcp_available_congestion_control
# The following appears if the configuration succeeds:
# net.ipv4.tcp_available_congestion_control = reno cubic bbr
lsmod | grep bbr
If the following information is returned, BBR has been successfully enabled.
Was this page helpful?