CentOS 7 开启 BBR,提高 TCP 链路速率

一个由 Google 程序员们开发出的 TCP 堵塞控制算法,注意此项目并非 Google 官方的项目。使用之后有明显速度方面提升的感知。

  • A BBR paper in ACM Queue is in the Sep/Oct 2016 issue (ACM membership required). It should be generally available soon.
  • BBR 对 Linux TCP 可用并且要求 v4.9 发行版 (main commit).
  • A BBR implementation for QUIC is under way: .cc | .h
  • 这里有 Linux TCP BBR 快速部署的指南。当然你也可以看下面的内容。

CentOS 7 的安装方法,依次执行下面内容

wget http://mirrors.kernel.org/debian/pool/main/l/linux/linux-image-4.9.0-rc8-amd64-unsigned_4.9~rc8-1~exp1_amd64.deb

ar x linux-image-4.9.0-rc8-amd64-unsigned_4.9~rc8-1~exp1_amd64.deb

tar -Jxf data.tar.xz

install -m644 boot/vmlinuz-4.9.0-rc8-amd64 /boot/vmlinuz-4.9.0-rc8-amd64

cp -Rav lib/modules/4.9.0-rc8-amd64 /lib/modules/

depmod -a 4.9.0-rc8-amd64

dracut -f -v --hostonly -k '/lib/modules/4.9.0-rc8-amd64'  /boot/initramfs-4.9.0-rc8-amd64.img 4.9.0-rc8-amd64

grub2-mkconfig -o /boot/grub2/grub.cfg

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

grub2-set-default "CentOS Linux (4.9.0-rc8-amd64) 7 (Core)"
grub2-editenv list
grub2-mkconfig -o /boot/grub2/grub.cfg

Nick Knegt

Read more posts by this author.

or subscribe via RSS with Feedly!
Due to some policy reasons, you're not able to access to our comment system in mainland China. Click here for details.