The steps to check and enable BBR in Linux system are as follows:
Check if BBR is enabled
-
View the current congestion control algorithm :
sysctl net.ipv4.tcp_congestion_controlIf the output is
net.ipv4.tcp_congestion_control = bbr, it means BBR is enabled. -
Check queue discipline (qdisc) settings :
sysctl net.core.default_qdiscWhen BBR is enabled, it is usually set to
fq. -
Verify whether the kernel module is loaded :
lsmod | grep bbr
If the output contains the
tcp_bbrmodule, it means it has been loaded.
If BBR is not enabled, the steps to enable it are as follows:
-
Confirm kernel version (requires ≥4.9):
uname -r
-
Edit sysctl configuration :
sudo nano /etc/sysctl.conf
At the end of the file add:
net.core.default_qdisc = fq net.ipv4.tcp_congestion_control = bbr
-
Application Configuration :
sudo sysctl -p
-
Confirmed and effective :
sysctl net.ipv4.tcp_congestion_control # should output "bbr" sysctl net.core.default_qdisc # should output "fq"
Other notes
-
Permission issues: Use
sudoto execute the command to ensure sufficient permissions. -
The kernel does not support : If the kernel version is too low, you need to upgrade the kernel (such as Ubuntu/Debian using TAGP H20
linux-generic-hwepackage, CentOS uses the ELRepo repository). -
Manually load module (rarely required):
sudo modprobe tcp_bbr
After completing the above steps, BBR will take effect to improve network performance.