2020年3月

方法
1、修改系统变量

echo "net.core.default_qdisc=fq" >> /etc/sysctl.conf
echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.conf

2、保存生效

sysctl -p

3、查看内核是否已开启BBR

sysctl net.ipv4.tcp_available_congestion_control

显示以下即已开启:

# sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_available_congestion_control = bbr cubic reno

4、查看BBR是否启动

lsmod | grep bbr

显示以下即启动成功:

# lsmod | grep bbr
tcp_bbr                20480  14

V2Ray 4.22.1 (V2Fly, a community-driven edition of V2Ray.) Custom (go1.13.5 windows/386)
A unified platform for anti-censorship.
2020/03/18 10:43:29 [Warning] v2ray.com/core: V2Ray 4.22.1 started
2020/03/18 10:43:31 tcp:127.0.0.1:63956 accepted tcp:www.google.com:443 [proxy]
2020/03/18 10:43:31 tcp:127.0.0.1:63957 accepted tcp:lh3.googleusercontent.com:443 [proxy]
2020/03/18 10:43:31 tcp:127.0.0.1:63958 accepted tcp:www.gstatic.com:443 [proxy]
2020/03/18 10:43:31 tcp:127.0.0.1:63959 accepted tcp:apis.google.com:443 [proxy]
2020/03/18 10:43:32 [Warning] [2798544048] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
2020/03/18 10:43:32 [Warning] [2303866632] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
2020/03/18 10:43:32 [Warning] [2630533614] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
2020/03/18 10:43:32 [Warning] [2666542453] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)
2020/03/18 10:43:43 tcp:127.0.0.1:63970 accepted tcp:android.clients.google.com:443 [proxy]
2020/03/18 10:43:43 [Warning] [2765767886] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: connection ends > v2ray.com/core/proxy/vmess/outbound: failed to read header > v2ray.com/core/proxy/vmess/encoding: failed to read response header > websocket: close 1000 (normal)

错误信息就是上面这些。
经过网上查找相关信息。发现是自己电脑时间莫名其妙出错了,差了有半个小时。时间服务器是默认的time.windows.com
ping出来,是这个time.microsoft.akadns.net [20.189.79.72]
直接改注册表HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeParameters NtpServer
改成韩国的时间服务器time.bora.net,同步一下时间,问题解决。