linux:bbr
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
linux:bbr [2018/01/08 13:24] – percy | linux:bbr [2018/01/08 14:40] (current) – [BBR] percy | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== BBR ====== | ====== BBR ====== | ||
- | BBR is the optimization for the tcp, and it can increase the network speed significant. So it's the same as kcptun. | + | BBR is the optimization for the tcp, and it can increase the network speed significant. So it's the same as [[linux:kcptun|kcptun]]. |
===== BBR on Raspberry Pi ===== | ===== BBR on Raspberry Pi ===== | ||
Line 10: | Line 10: | ||
==== Enable bbr ==== | ==== Enable bbr ==== | ||
+ | sysctl net.core.default_qdisc=fq | ||
+ | sysctl net.ipv4.tcp_congestion_control=bbr | ||
+ | |||
<code BASH> | <code BASH> | ||
pi@raspberrypi: | pi@raspberrypi: | ||
Line 26: | Line 29: | ||
Install the grub loader in the console panel, first you need power off, then after install the grub loader, then power on. | Install the grub loader in the console panel, first you need power off, then after install the grub loader, then power on. | ||
- | Install the new kernel | + | Install the new kernel, you can find the kernel what you want |
+ | apt-cache search --names-only linux-image | ||
sudo apt-get install linux-image-4.11.0-13-generic linux-headers-4.11.0-13-generic | sudo apt-get install linux-image-4.11.0-13-generic linux-headers-4.11.0-13-generic | ||
- | + | Or | |
+ | sudo apt-get install linux-image-4.10.0-42-generic linux-headers-4.10.0-42-generic | ||
+ | |||
+ | Actuall after install the above kernel, it doesn' | ||
+ | |||
+ | cd kernel4.9/ | ||
+ | wget http:// | ||
+ | sudo dpkg -i linux-image-4.9.0-040900-generic_4.9.0-040900.201612111631_amd64.deb | ||
Update the grub | Update the grub | ||
sudo vim / | sudo vim / | ||
Line 34: | Line 47: | ||
GRUB_DISABLE_SUBMENU = Y | GRUB_DISABLE_SUBMENU = Y | ||
| | ||
- | export GRUB_CONFIG =`sudo find / boot -name“grub.cfg”` | + | export GRUB_CONFIG=`sudo find /boot -name "grub.cfg"` |
sudo update-grub | sudo update-grub | ||
Line 43: | Line 56: | ||
Now you can reoot the VPS | Now you can reoot the VPS | ||
| | ||
+ | |||
+ | ==== Some tips ==== | ||
+ | < | ||
+ | uname -r | ||
+ | #查看内核版本,含有4.9.0就表示OK了 | ||
+ | #------------ | ||
+ | sysctl net.ipv4.tcp_available_congestion_control | ||
+ | #返回值一般为: | ||
+ | #net.ipv4.tcp_available_congestion_control = bbr cubic reno | ||
+ | #------------ | ||
+ | sysctl net.ipv4.tcp_congestion_control | ||
+ | #返回值一般为: | ||
+ | #net.ipv4.tcp_congestion_control = bbr | ||
+ | #------------ | ||
+ | sysctl net.core.default_qdisc | ||
+ | #返回值一般为: | ||
+ | #net.core.default_qdisc = fq | ||
+ | #------------ | ||
+ | lsmod | grep bbr | ||
+ | #返回值有tcp_bbr模块即说明bbr已启动。 | ||
+ | </ | ||
+ | |||
+ | ==== Refer ==== | ||
+ | - https:// | ||
+ | - https:// | ||
+ | - https:// | ||
/var/www/dokuwiki/wiki/data/pages/linux/bbr.txt · Last modified: 2018/01/08 14:40 by percy