{"id":3812,"date":"2020-03-31T07:15:33","date_gmt":"2020-03-30T23:15:33","guid":{"rendered":"https:\/\/www.baishitou.cn\/?p=3812"},"modified":"2020-03-30T17:17:15","modified_gmt":"2020-03-30T09:17:15","slug":"ubuntu-18-04-18-10%e5%ae%89%e8%a3%85bbr%e5%8a%a0%e9%80%9f","status":"publish","type":"post","link":"https:\/\/www.baishitou.cn\/3812.html","title":{"rendered":"Ubuntu 18.04\/18.10\u5b89\u88c5BBR\u52a0\u901f"},"content":{"rendered":"

\"\"<\/a><\/p>\n

Google BBR \u662f\u4e00\u6b3e\u514d\u8d39\u5f00\u6e90\u7684TCP\u62e5\u585e\u63a7\u5236\u4f20\u8f93\u63a7\u5236\u534f\u8bae, \u53ef\u4ee5\u4f7f Linux \u670d\u52a1\u5668\u663e\u8457\u63d0\u9ad8\u541e\u5410\u91cf\u548c\u51cf\u5c11 TCP \u8fde\u63a5\u7684\u5ef6\u8fdf\u3002 \u9879\u76ee\u5730\u5740:https:\/\/github.com\/google\/bbr<\/a><\/p>\n

Ubuntu\u5f00\u542fBBR<\/strong><\/h2>\n

Step 1\uff1a\u4fee\u6539\u7cfb\u7edf\u53d8\u91cf<\/h4>\n
echo <\/span>\"net.core.default_qdisc=fq\"<\/span> >><\/span> \/etc\/<\/span>sysctl<\/span>.<\/span>conf\r\necho <\/span>\"net.ipv4.tcp_congestion_control=bbr\"<\/span> >><\/span> \/etc\/<\/span>sysctl<\/span>.<\/span>conf<\/span><\/code><\/pre>\n

Step 2:\u4fdd\u5b58\u751f\u6548<\/h4>\n
sysctl <\/span>-<\/span>p<\/span><\/code><\/pre>\n

Step 3\uff1a\u68c0\u67e5BBR\u662f\u5426\u5f00\u542f<\/h4>\n
sysctl net<\/span>.<\/span>ipv4<\/span>.<\/span>tcp_available_congestion_control<\/span><\/code><\/pre>\n

\u5982\u679c\u00a0\u8fd4\u56de<\/code><\/p>\n

net<\/span>.<\/span>ipv4<\/span>.<\/span>tcp_available_congestion_control <\/span>=<\/span> bbr cubic reno<\/span><\/code><\/pre>\n

\u5219\u5f00\u542f\u6210\u529f\uff01<\/p>\n

Step 4\uff1a\u68c0\u67e5BBR\u662f\u5426\u542f\u52a8\u6210\u529f<\/h4>\n
lsmod <\/span>|<\/span> grep bbr<\/span><\/code><\/pre>\n

\u5982\u679c\u8fd4\u56de<\/p>\n

tcp_bbr                <\/span>20480<\/span>  14<\/span><\/code><\/pre>\n

\u5219\u542f\u52a8\u00a0\u6210\u529f<\/p>\n","protected":false},"excerpt":{"rendered":"

Google BBR \u662f\u4e00\u6b3e\u514d\u8d39\u5f00\u6e90\u7684TCP\u62e5\u585e\u63a7\u5236\u4f20\u8f93\u63a7\u5236\u534f\u8bae, \u53ef\u4ee5\u4f7f Linux \u670d\u52a1\u5668\u663e\u8457\u63d0\u9ad8\u541e\u5410\u91cf\u548c […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,11,2],"tags":[1211,1212],"class_list":["post-3812","post","type-post","status-publish","format-standard","hentry","category-vultrvps","category-server","category-wljs","tag-bbr","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/3812","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/comments?post=3812"}],"version-history":[{"count":0,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/posts\/3812\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/media?parent=3812"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/categories?post=3812"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.baishitou.cn\/wp-json\/wp\/v2\/tags?post=3812"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}