Ubuntu Server 16.04 开启 Google BBR 加速 VPS 作者: 萧禹 时间: 2019-09-12 分类: Ubuntu 访问: 3,870 次 Google BBR 是一种加速 TCP 的算法 ## 环境 - Ubuntu Server 16.04 4.4.0-109-generic x86_64 ## 步骤 Google BBR 需要内核 >= 4.9, 所以必须先升级内核到它支持的版本 Ubuntu Server 16.04 可以使用一种简单的 HWE 方式升级内核, 此种方式是推荐的升级内核的方式! 执行以下命令升级操作系统到最新的内核 `$sudo apt install --install-recommends linux-generic-hwe-16.04` 重启系统以启用新的内核 `$sudo systemctl reboot` 修改配置开启 bbr ``` $sudo echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf $sudo echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf ``` 重载系统配置 `$sudo sysctl -p` 检查是否已启用 BBR `$sysctl net.ipv4.tcp_congestion_control` 应该输出 "net.ipv4.tcp_congestion_control = bbr" 未启用 BBR, :turtle:龟速  启用 BBR, :anger::turtle:"狂暴"龟速  "效果拔群", 可加速 10x~40x 1.25$/月的 VPS 也就这样了:kissing: :coffee: :coffee: :coffee: ## 参考 - [Ubuntu 18.04/18.10快速开启Google BBR的方法](https://www.moerats.com/archives/612/) - [Easily Boost Ubuntu 16.04/18.04 Network Performance by Enabling TCP BBR](https://www.linuxbabe.com/ubuntu/enable-google-tcp-bbr-ubuntu) -[Ubuntu14.04.4升级硬件实现堆栈(HWE)到14.04.5(Xenial Kernel-v4.4)](https://blog.csdn.net/gatieme/article/details/52744417) ## 题外话 相比"锐速"重复发包的这种方式可能是种"损人利己"的方式, 简单粗暴但好像不利于长久发展. 相比之下 Google BBR 或是一种"正确"的"算法" 标签: Ubuntu Google BBR VPS TCP HWE 文章版权:萧禹的博客 - 这个人很懒, 什么都没写 本文链接:https://www.flysfeq.site/index.php/archives/183/ 转载请注明文章原始出处 !
这是一篇佳作,无论是从内容、语言还是结构上,都堪称完美。
?技术类评语?