The steps to check and enable BBR in Linux system are as follows:

Check if BBR is enabled

  1. View the current congestion control algorithm :

    bash
    Copy
    sysctl net.ipv4.tcp_congestion_control

    If the output is net.ipv4.tcp_congestion_control = bbr, it means BBR is enabled.

  2. Check queue discipline (qdisc) settings :

    bash
    Copy
    sysctl net.core.default_qdisc

    When BBR is enabled, it is usually set to fq.

  3. Verify whether the kernel module is loaded :

    bash
    Copy
    lsmod | grep bbr

    If the output contains the tcp_bbr module, it means it has been loaded.

If BBR is not enabled, the steps to enable it are as follows:

  1. Confirm kernel version (requires ≥4.9):

    bash
    Copy
    uname -r
  2. Edit sysctl configuration :

    bash
    Copy
    sudo nano /etc/sysctl.conf

    At the end of the file add:

    conf
    Copy
    net.core.default_qdisc = fq
    net.ipv4.tcp_congestion_control = bbr
  3. Application Configuration :

    bash
    Copy
    sudo sysctl -p
  4. Confirmed and effective :

    bash
    Copy
    sysctl net.ipv4.tcp_congestion_control # should output "bbr"
    sysctl net.core.default_qdisc # should output "fq"

Other notes

  • Permission issues: Use sudo to 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 H20linux-generic-hwe package, CentOS uses the ELRepo repository).

  • Manually load module (rarely required):

    bash
    Copy
    sudo modprobe tcp_bbr

After completing the above steps, BBR will take effect to improve network performance.