单边加速利器TCP BBR 锐速最佳替代品

  • 9
  • 24,236 views
  • A+
所属分类:Linux

TCP BBR是谷歌出品的TCP拥塞控制算法,可以起到单边加速TCP连接的效果,也就是不用客户端的配合,替代锐速再合适不过,毕竟免费。BBR 目的是要尽量跑满带宽, 并且尽量不要有排队的情况, 效果不比速锐差。本人在某家KVM机器Ubuntu14 下测试成功,注意BBR和锐速一样不能用在openvz的机器上,所以搬瓦工等是用不了的。Ubuntu部署起来很方便,centos稍麻烦,不过相信过不了多久就会有centos的一键包了。

  • 下载最新内核,最新内核查看这里
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

  • 删除其余内核

dpkg -l|grep linux-image
apt-get purge 旧内核

  • 更新 grub 系统引导文件并重启

update-grub
reboot

  • 开启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已启动

Github地址:https://github.com/iMeiji/shadow*socks_install/wiki/%E5%BC%80%E5%90%AFTCP-BBR%E6%8B%A5%E5%A1%9E%E6%8E%A7%E5%88%B6%E7%AE%97%E6%B3%95(自行去掉*)

BBR算法科普:http://blog.csdn.net/dog250/article/details/52830576

weinxin
我的微信公众号
我的微信公众号扫一扫

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

目前评论:9   其中:访客  0   博主  0

    • jack jack 1

      Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

      本人昨天亲测没什么效果。。比锐速差太多。。。又换回旧内核。。

        • 厘米 厘米 9

          Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

          @jack 有的地方比锐速好,有的地方比锐速差,希望以后能更完善!

        • wtks1 wtks1 4

          Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

          要是有windows版的就好了

            • 厘米 厘米 9

              Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

              @wtks1 windows版的估计难有!

                • wtks1 wtks1 4

                  Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

                  @厘米 实测这个对于高丢包的线路效果不大,比锐速效果差了不少

              • 路过 路过 0

                Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

                已经有centos6的版本了,传送门:https://github.com/52fancy/GooGle-BBR ,不过感觉速度上还是没锐速的快

                  • 厘米 厘米 9

                    Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

                    @路过 哈哈 没想到这么快就出来了!

                  • xrlplay xrlplay 0

                    Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

                    DO的SF2线路效果明显,锐速只能看480P,BBR可以看1080p,而且每个时段都可以看

                    • vonsis vonsis 5

                      Warning: Use of undefined constant auto - assumed 'auto' (this will throw an Error in a future version of PHP) in /www/wwwroot/past.cmsky.org/wp-content/themes/begin5.2/inc/inc.php on line 911

                      dpkg -l|grep linux-image执行后得到了一大堆内核。。。
                      请问apt-get purge 旧内核 应该怎么弄……?
                      没换过内核,希望博主不吝指点一下

                      ii linux-image-3.13.0-32-generic 3.13.0-32.57 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
                      ii linux-image-3.13.0-65-generic 3.13.0-65.106 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
                      ii linux-image-3.13.0-86-generic 3.13.0-86.131 amd64 Linux kernel image for version 3.13.0 on 64 bit x86 SMP
                      ii linux-image-4.9.0-040900rc8-generic 4.9.0-040900rc8.201612051443 amd64 Linux kernel image for version 4.9.0 on 64 bit x86 SMP
                      ii linux-image-extra-3.13.0-32-generic 3.13.0-32.57 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
                      ii linux-image-extra-3.13.0-65-generic 3.13.0-65.106 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
                      ii linux-image-extra-3.13.0-86-generic 3.13.0-86.131 amd64 Linux kernel extra modules for version 3.13.0 on 64 bit x86 SMP
                      ii linux-image-generic 3.13.0.86.92 amd64 Generic Linux kernel image
                      ii linux-image-generic-lts-trusty 3.13.0.96.104 amd64 Generic Linux kernel image