首页 » 折腾 » 正文

ubuntu 启用BBR功能,实现单边TCP加速

之前一直用盗版锐速.现在谷歌也出了个单边tcp加速,据说效果还行.但得最新内核才有这功能,所以毫不犹豫地试了试

首先更新下载内核,
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9-rc8/linux-image-4.9.0-040900rc8-generic_4.9.0-040900rc8.201612051443_amd64.deb
dpkg -i linux-image-4.9.0*.deb

然后删除原有内核:ubuntu更换内核

执行 lsmod | grep bbr,如果结果中没有 tcp_bbr 的话就先执行

modprobe tcp_bbr
echo "tcp_bbr" >> /etc/modules-load.d/modules.conf

开启bbr

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf

保存生效 sysctl -p
执行 sysctl net.ipv4.tcp_available_congestion_control
如果结果中有bbr, 则证明你的内核已开启bbr
执行 lsmod | grep bbr , 看到有 tcp_bbr 模块即说明bbr已启动

本文共 5 个回复

  • checkitnow 2017/02/19 19:52

    博主有docker版本的linux系统吗,内核是4.9的,我现在找到的都是4.8内核的,用不了BBR

    • justchen 博主 2017/02/19 20:27

      @ checkitnow docker本来说是Linux最好.... 升级到4.9就可以了

  • justchen 博主 2017/01/21 14:28

    持续测试

  • justchen 博主 2017/01/21 14:17

    评 论测试

  • justchen 博主 2017/01/21 14:09

    4.9正式版内核已经放出来了

回复 checkitnow 取消