Created
December 15, 2016 11:22
-
-
Save StoneMoe/c2c562bcd39e5bb836b60e456c688f8e to your computer and use it in GitHub Desktop.
Enable tcp_bbr for your debian/ubuntu (tested on debian)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
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
Backup write config: echo bbr > /proc/sys/net/ipv4/tcp_congestion_control
(Also affect ipv6 tcp)