Skip to content

Instantly share code, notes, and snippets.

@xterat
Created February 23, 2018 08:06
Show Gist options
  • Save xterat/cefccb42f7d4b2055368ebb00454861f to your computer and use it in GitHub Desktop.
Save xterat/cefccb42f7d4b2055368ebb00454861f to your computer and use it in GitHub Desktop.

Enable bbr on Ubuntu 16.04

  1. Make sure kernel version is 4.9 or newer:

    uname -r

    Install Hardware Enablement Stack (HWE) to update kernel automaticly:

    apt install --install-recommends linux-generic-hwe-16.04
  2. Enable bbr:

    modprobe tcp_bbr
    echo "tcp_bbr" >> /etc/modules-load.d/modules.conf
    echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
    echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
    sysctl -p
  3. Check if bbr is enabled:

    sysctl net.ipv4.tcp_available_congestion_control
    sysctl net.ipv4.tcp_congestion_control
    lsmod | grep bbr
Copy link

ghost commented Nov 13, 2021

Need reboot after Step 1: reboot or sudo reboot

I don't think that's needed after sysctl -p

@Sparklingx
Copy link

How can I enable other variants of BBR like Tsunami or BBR+ ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment