Linux kernel 4.9 and above open TCP BBR congestion algorithm

Source: Internet
Author: User
Tags gpg

Linux kernel 4.9 and above open TCP BBR congestion algorithm

BBR the goal is to try to run full bandwidth, and try not to have a queuing situation, the effect is not faster than the speed of sharp difference

Linux kernel 4.9+ has supported TCP_BBR below to briefly describe how a KVM-based architecture VPS is powered on

Install Linux kernel version 4.9 and above

General installation of the latest version of the kernel

Debian 8+/Ubuntu 14.04
    • Download the latest kernel
# wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.14.12/ Linux-image-4.14.12-041412-generic_4.14.12-041412.201801051649_amd64.deb
    • Installing the kernel
# dpkg-i linux-image-4. *.deb
    • Deleting legacy kernels (optional)
grep linux-image # apt-get purge old kernel
    • Update grub and restart server
# update-grub# reboot
Ubuntu16.04
    • Install Hardware enablement Stack (HWE), update kernel automatically
Install --install-recommends linux-generic-hwe-16.04
    • Deleting legacy kernels (optional)
# apt Autoremove
    • Restart the server to enable the latest kernel
# reboot
centos6.x
    • Enable Elrepo source and install Kernel-ml
# RPM--import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org# RPM-UVH http://  www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpmYuminstall kernel-ml-y
    • Check if the kernel is already installed
grep Kernel
    • Update grub and restart server
sed ' s:default=.*:d efault=0:g ' /etc/grub.conf# reboot
centos7.x
    • Enable Elrepo source and install Kernel-ml
# RPM--import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org# RPM-UVH http://  www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpmYuminstall kernel-ml-y
    • Check if the kernel is already installed
# Rpm-qa | grep kernel
    • Update Grub2.cfg
# Grub2-mkconfig-o/boot/grub2/grub.cfg
    • Restarting the server
# reboot

Check kernel version

Check if the kernel version is greater than 4.9 with the uname-r command

uname -R
Enable BBR congestion algorithm
    • Loading kernel modules
Modprobeecho"tcp_bbr" >>/etc/modules-load.d/ Modules.conf
    • modifying kernel parameters
Echo " NET.CORE.DEFAULT_QDISC=FQ " >>/etc/echo"net.ipv4.tcp_congestion_control=bbr " >>/etc/sysctl.conf
# sysctl-p
    • Check if BBR is turned on
Lsmod grep bbr# sysctl net.ipv4.tcp_available_congestion_control# sysctl Net.ipv4.tcp_congestion_control

If the result has bbr, it means that the BBR algorithm has been turned on

Linux kernel 4.9 and above open TCP BBR congestion algorithm

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.