BoomBoss.cn

  • 首页
  • Python
  • Linux
  • 技术文章
  • 示例页面
  • 访问网盘
BoomBoss
无愧于心,不困于情,不念过去,无畏将来
  1. 首页
  2. Linux
  3. 正文

Ubuntu 18.04 / CentOS 7开启Google BBR

2022-12-29 1056点热度 0人点赞 0条评论

BBR

Google 开源了其 TCP BBR 拥塞控制算法,并提交到了 Linux 内核,从 4.9 开始,Linux 内核已经用上了该算法。根据以往的传统,Google 总是先在自家的生产环境上线运用后,才会将代码开源,此次也不例外。 根据实地测试,在部署了最新版内核并开启了 TCP BBR 的机器上,网速甚至可以提升好几个数量级。

开启BBR

运行 lsmod | grep bbr

lsmod | grep bbr

如果结果中没有tcp_bbr,则先运行:

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

运行:

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
sysctl net.ipv4.tcp_congestion_control

若均有bbr,则开启BBR成功。

本作品采用 知识共享署名 4.0 国际许可协议 进行许可
标签: Google BBR linux shadowsocks ubuntu
最后更新:2023-05-26

BoomBoss

选择大于努力,成功绝非偶然

打赏 点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

归档

  • 2024 年 7 月
  • 2023 年 11 月
  • 2023 年 10 月
  • 2022 年 12 月

分类

  • Linux
  • Python
  • 技术文章
  • 网站搭建

Copyright © 2022 BoomBoss.cn. All Rights Reserved.

Theme Kratos Made By Seaton Jiang

赣ICP备2021010953号