昨晚测试了tcp-bbr拥堵算法,效果看起来还是挺不错的。油管4k很稳定,8k可以播放。使用说明如下

1安装有bbr算法的内核

wget -O linux-image-4.9.0-amd64.deb http://kernel.ubuntu.com/~kernel-ppa/\

mainline/v4.9/linux-image-4.9.0-040900-generic_4.9.0-040900.201612111631_amd64.deb

dpkg -i linux-image-4.9.0-amd64.deb

2删除原来内核

dpkg -l|grep linux-image | awk '{print $2}' | grep -v 'linux-image-4.9.0-040900-generic'#列出原有内核
apt-get purge 旧内核名称#删除旧内核
update-grub #更新grub
reboot

3开启bbr

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf
sysctl -p#使配置生效

4查看是否生效

sysctl net.ipv4.tcp_available_congestion_control

lsmod | grep bbr

5关闭bbr

sed -i '/net\.core\.default_qdisc=fq/d' /etc/sysctl.conf
sed -i '/net\.ipv4\.tcp_congestion_control=bbr/d' /etc/sysctl.conf
sysctl -p
reboot

6shadowsocks一键安装脚本

allinone版

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/\

shadowsocks_install/master/shadowsocks-all.sh

chmod +x shadowsocks-all.sh
./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log

python版

wget --no-check-certificate https://raw.githubusercontent.com/teddysun/\

shadowsocks_install/master/shadowsocks.sh

chmod +x shadowsocks.sh
./shadowsocks.sh 2>&1 | tee shadowsocks.log

7说明

由于需要更换内核,需要kvm或xen架构的vps,openvz的不行,经测试,linode的开启失败,vultr的成果。
参考:https://www.dou-bi.co/wlzy-15/https://teddysun.com/486.html