Recently this time BBR all compare fire, Front has said how in CAC's debian-8-64bit installs BBR correct open way, now say, CentOS 6/7 configuration process.
Recommended reasons: Not Configured BBR before, with SS see u2b Speed 206k/s sky. (Do not love BBR can be considered sharp speed, can be accelerated)
After configuring the BBR, the speed can reach 800k/s, the effect is very obvious, see 720P is stable.
Speedtest's Speed:
PS: There are friends to follow the operation, it must be done to replace the kernel after the landing will not go into the psychological preparation, with the same as the installation of sharp speed.
CentOS 6 If you're using CentOS 7, skip here and see the CentOS 7 section below.
1. View the default kernel
Uname-r
2. Install the new kernel
RPM-IVH Http://elrepo.org/people/ajb/devel/kernel-ml/el6/x86_64/RPMS/kernel-ml-4.9.0-0.rc8.el6.elrepo.x86_64.rpm--force
Query the list of installed kernels, and if you see kernel-ml-4.9.0-0.rc8.el6.elrepo.x86_64, the kernel installation is successful.
Rpm-qa | grep kernel
3. Restart
Reboot
4, wait a moment, once again to connect up, check the kernel sequence
awk '/^title/'/etc/grub.conf
Look at the next line of the row, in my case, this kernel is ranked 2nd, then 2 minus 1 is 1 (because the index value starts from 0)
Title CentOS (4.9.0-0.rc8.el6.elrepo.x86_64)
5, modify the default kernel, and then modify this value, in my case, 0 instead of 1:
sudo vi/etc/grub.conf
Default=0
Save the file and restart it again
Reboot
6, once again connected up, query the default kernel, see 4.9.0-0.rc8.el6.elrepo.x86_64, the current default kernel is that we just installed.
Uname-r
7. Modify the configuration
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
Lsmod | grep BBR
If the previous sentence did not error, the final output similar to the following information, then the success of the statement.
TCP_BBR 16384 11
CentOS 7
1. View the default kernel
Uname-r
2. Install the new kernel
RPM-IVH Http://elrepo.org/people/ajb/devel/kernel-ml/el7/x86_64/RPMS/kernel-ml-4.9.0-0.rc8.el7.elrepo.x86_64.rpm--force
Query the list of installed kernels, and if you see kernel-ml-4.9.0-0.rc8.el7.elrepo.x86_64, the kernel installation is successful.
Rpm-qa | grep kernel
3. Restart
Reboot
4, wait a moment, once again to connect up, check the kernel sequence
Awk-f\ ' $1== "Menuentry" {print $} '/etc/grub2.cfg
Look at the next line of the row, in my case, this kernel is ranked 2nd, then 2 minus 1 is 1 (because the index value starts from 0)
CentOS Linux (4.9.0-0.rc8.el7.elrepo.x86_64) 7 (Core)
5, modify the default kernel, modify the following command in 0, in my case, 0 to 1, and then execute it
Grub2-set-default 0
Then, restart again
Reboot
6, once again connected up, query the default kernel, see 4.9.0-0.rc8.el7.elrepo.x86_64, the current default kernel is that we just installed.
Uname-r
7. Modify the configuration
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
Lsmod | grep BBR
If the previous sentence did not error, the final output similar to the following information, then the success of the statement.
TCP_BBR 16384 11
Ps: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
The latest 4.9.0-RC8 kernel has supported TCP_BBR
Remember, OpenVZ is not possible.
Ding Feng Van van qq:2881064156 sister
Skype:[email protected]
BBR, with CentOS 6/7 configuration process