tcp config

$ sudo sysctl net.ipv4.tcp_reordering=1
$ sudo sysctl net.ipv4.tcp_thin_linear_timeouts=1
$ sudo sysctl net.ipv4.tcp_early_retrans=1

# rto_min 50ms

$ sudo ip route change default via 198.181.32.1 dev eth0 proto static metric 100 rto_min 50ms
$ sudo ip route change 198.181.32.0/20 dev eth0 proto kernel scope link src 198.181.37.111 metric 100 rto_min 50ms
$ sudo ip route change 172.17.0.0/16 dev docker0 proto kernel scope link src 172.17.0.1 rto_min 50ms


net.ipv4.tcp_allowed_congestion_control = bbr cubic reno
net.ipv4.tcp_available_congestion_control = bbr cubic reno
net.ipv4.tcp_congestion_control = bbr
posted @ 2019-04-24 23:02  RainMark  阅读(202)  评论(0编辑  收藏