enable bbr on Ubuntu 16.04

Enable bbr on Ubuntu 16.04

  1. Make sure kernel version is 4.9 or newer:

    1
    uname -r

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

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

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

    1
    2
    3
    sudo sysctl net.ipv4.tcp_available_congestion_control
    sudo sysctl net.ipv4.tcp_congestion_control
    lsmod | grep bbr