Skip to content

Instantly share code, notes, and snippets.

@StoneMoe
Created December 15, 2016 11:22
Show Gist options
  • Save StoneMoe/c2c562bcd39e5bb836b60e456c688f8e to your computer and use it in GitHub Desktop.
Save StoneMoe/c2c562bcd39e5bb836b60e456c688f8e to your computer and use it in GitHub Desktop.
Enable tcp_bbr for your debian/ubuntu (tested on debian)
#Download 4.9-rc7 kernel
wget kernel.ubuntu.com/~kernel-ppa/mainline/v4.9-rc7/linux-headers-4.9.0-040900rc7_4.9.0-040900rc7.201611271731_all.deb
wget kernel.ubuntu.com/~kernel-ppa/mainline/v4.9-rc7/linux-headers-4.9.0-040900rc7-generic_4.9.0-040900rc7.201611271731_amd64.deb
wget kernel.ubuntu.com/~kernel-ppa/mainline/v4.9-rc7/linux-image-4.9.0-040900rc7-generic_4.9.0-040900rc7.201611271731_amd64.deb
#Install kernel
sudo dpkg -i 'linux-headers-4.9*.deb' 'linux-image-4.9*.deb'
#reboot
sudo reboot
#write config
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
#apply config
sysctl -p
#set fq to eth
sudo tc qdisc replace dev eth0 root fq pacing
@StoneMoe
Copy link
Author

Check current status: cat /boot/config-$(uname -r) | grep BBR

if the result shows "m", it works

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