Turn on Google TCP BBR congestion control algorithm. This is a tool that replaces Ruisu.

888u

Last update at :2024-04-30,Edit by888u

This article was excerpted from "Enabling TCP BBR Congestion Control Algorithm" on github by our beloved group owner, with some modifications.

Anyone is welcome to reprint this article. There are no watermarks on the pictures, but please add a link to this article. Thank you!


If you have any questions, please communicate in the group:569839985

The purpose of BBR is to use as much bandwidth as possible and try not to have queues. The effect is no worse than Su Rui.

The latest 4.9.0-rc8 kernel has supported tcp_bbr. Here is a brief description of how to enable it.

The group owner has successfully tested it under virmach's Ubuntu14. Remember, OpenVZ is not allowed.


1. I am using ubuntu14, a virmach machine. First look at the kernel: uname -a

I have already installed it using cac's debian. The steps are the same and it can be used.


2. Download the new kernel, the default is 64-bit (for 32-bit, please see the notes)

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


3. Start installation

dpkg -i linux-image-4.9.0*.deb


4. Delete the remaining kernels

dpkg -l|grep linux-image

sudo apt-get remove linux-image-[Tab completion] #Delete the old kernel, here, delete the first 3.13 one

[However, the fourth step can be skipped completely]


5. Update the grub system boot file and restart

update-grub

Go to the management background to restart your vps, and then look at the kernel: uname -a



6. Turn on bbr

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

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


7. Save to take effect sysctl -p

Execute sysctl net.ipv4.tcp_available_congestion_control

If there is bbr in the result, it proves that your kernel has bbr enabled.

Execute lsmod | grep bbr. If you see the tcp_bbr module, it means bbr has been started.


In the past, I used the Vormach 8-dollar Phoenix test. After adding sharp speed, the speed was about 4 to 8M. Now it is close to 20M.

But some people say that using it is slower than not using it. Everyone, test it yourself.




Remark:

The second step is to download the new kernel. The kernel is 64-bit. If yours is 32-bit, please use
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.9-rc8/linux-headers-4.9.0-040900rc8_4.9.0-040900rc8.201612051443_all.deb

The fourth step is to delete the kernel, or you can change the kernel startup sequence. For specific methods, you can Baidu [ubuntu adjust the kernel startup sequence]

In the fourth step, you do not need to adjust the kernel startup sequence. Both Ubuntu and Debian will start with 4.9 by default.


Please see how to open centos7: http://www.138vps.com/vpsjc/971.html


If you have any questions, please communicate in the group:569839985

Anyone is welcome to reprint this article. There are no watermarks on the pictures, but please include a link to this article. Thank you!

Recommended site search: domain name registration, website space registration-free, free virtual host application, server high defense Hong Kong Chinese domain name registration inquiry, domain name space agent, check IP detailed address 100m virtual host, high defense US server, New network domain name registration

Turn on Google TCP BBR congestion control algorithm. This is a tool that replaces Ruisu.

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码