Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save hadifarnoud/2c42b30cf09d3798034721c18422c19d to your computer and use it in GitHub Desktop.
Save hadifarnoud/2c42b30cf09d3798034721c18422c19d to your computer and use it in GitHub Desktop.
install bbr on ubuntu
# download linux kenel
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/<version>/linux-headers-<version>_all.deb
wgte http://kernel.ubuntu.com/~kernel-ppa/mainline/<version>/linux-headers-<version>-generic_<version>_arm64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/<version>/linux-image-<version>-generic_<version>_amd64.deb
# intsall linux kenel
sudo dpkg -i *.deb
# unintsall old kenel
dpkg -l|grep linux-image
apt-get purge <old_kenel_name>
# update grub & reboot
sudo update-grub
sudo reboot
# check kernel version is >= 4.9
uname -r
# enable bbr
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p
# check these outputs has "bbr"
sysctl net.ipv4.tcp_congestion_control
sysctl net.ipv4.tcp_available_congestion_control
lsmod | grep bbr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment