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 Algorithm isGoogle stayLinux Kernel
4.9 Added on the kernelTCP congestion control algorithms . stayBBR It can be understood beforeTCP The control algorithms of are passive congestion control algorithms, andBBR 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, replaceLinux kernel

stayKernel 4.9 Kernel joinBBR algorithm, So you need to update the server kernel to4.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 recommendedUbuntu 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 kerneldpkg -i linux-image-4.*.deb Delete old kernel( Optional)

dpkg -l | grep linux-image apt-get purge Old kernel To updategrub System boot file and restart

update-grub reboot
Three, openBBR accelerate

Input after power onuname -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
Preservation 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 there tcp_bbr Module is description bbr Already started