DO Build a dedicated server :http://blog.csdn.net/cracked_hitter/article/details/54456691
<http://blog.csdn.net/cracked_hitter/article/details/54456691>

BBR For algorithm implementation server acceleration, please refer to :http://blog.csdn.net/cracked_hitter/article/details/79119745
<http://blog.csdn.net/cracked_hitter/article/details/79119745>



Free hard disk resources to establish private network disk reference :http://blog.csdn.net/cracked_hitter/article/details/79119834
<http://blog.csdn.net/cracked_hitter/article/details/79119834>
--------------------------------------------------------------------
After the last article , We should have completed the establishment of proxy server , This article will introduce a method of server acceleration , So that we can make better use of server resources . Reference for this article :
https://github.com/iMeiji/shadowsocks_install/wiki/%E5%BC%80%E5%90%AFTCP-BBR%E6%8B%A5%E5%A1%9E%E6%8E%A7%E5%88%B6%E7%AE%97%E6%B3%95

<https://github.com/iMeiji/shadowsocks_install/wiki/%E5%BC%80%E5%90%AFTCP-BBR%E6%8B%A5%E5%A1%9E%E6%8E%A7%E5%88%B6%E7%AE%97%E6%B3%95>

One ,BBR Algorithm Introduction

BBR The algorithm is Google stay Linux Kernel
4.9 Added on the kernel TCP congestion control algorithms . stay BBR Previously understood TCP The control algorithms of are passive congestion control algorithms , and BBR The control algorithm can be considered as an active congestion control algorithm .
BBR Try to run full bandwidth by avoiding queuing , In order to achieve the purpose of acceleration .

Two , replace Linux kernel

stay Kernel 4.9 Kernel join BBR algorithm , So you need to update the server kernel to 4.9 above . input  uname -r View the current system kernel

Here's a description ,DigitalOcean The server needs to be set to make kernel changes , Direct use recommended Ubuntu 16.04 As a server , The core can be replaced directly

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
Install kernel dpkg -i linux-image-4.*.deb Delete old kernel ( Optional )

dpkg -l | grep linux-image apt-get purge Old kernel to update grub System boot file and restart

update-grub reboot
Three , open BBR accelerate

Input after power on uname -r Reconfirm kernel version



implement  lsmod | grep bbr, If there is no result  tcp_bbr  We'll do it first
modprobe tcp_bbr echo "tcp_bbr" >> /etc/modules-load.d/modules.conf
implement
echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf echo
"net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
Save effective
sysctl -p

implement
sysctl net.ipv4.tcp_available_congestion_control sysctl
net.ipv4.tcp_congestion_control
If the results are all there  bbr, Your kernel is turned on bbr

implement  lsmod | grep bbr, See that there are tcp_bbr Module is description bbr Started