{"id":500,"date":"2019-11-01T18:00:42","date_gmt":"2019-11-01T10:00:42","guid":{"rendered":"https:\/\/cloudbool.com\/archive\/?p=500"},"modified":"2019-11-01T18:00:42","modified_gmt":"2019-11-01T10:00:42","slug":"centos8-bbr","status":"publish","type":"post","link":"https:\/\/cloudbool.com\/archive\/centos8-bbr.html","title":{"rendered":"CentOS8\u7cfb\u7edf\u542f\u7528BBR"},"content":{"rendered":"<p>\u8fd8\u662f\u524d\u51e0\u5929\uff0c\u56e0\u4e3a\u9700\u8981\u6d4b\u8bd5\u624b\u4e0a\u7684\u7a0b\u5e8f\uff0c\u4e8e\u662f\u5f00\u4e86\u4e2a\u6d77\u5916\u7684CentOS8\u7cfb\u7edf\u7684\u865a\u62df\u673a\uff0c\u4f46\u662f\u56fd\u5185\u73af\u5883\u5927\u5bb6\u90fd\u77e5\u9053\uff0c\u8de8\u4e86\u4e2a\u592a\u5e73\u6d0b\uff0c\u7f51\u8def\u98a0\u7c38\uff0c\u8981\u4f20\u70b9\u5565\u6570\u636e\u7b80\u76f4\u662f\u714e\u71ac\uff0c\u4e0d\u501f\u52a9\u4e00\u4e9b\u624b\u6bb5\u8fd8\u771f\u6ca1\u529e\u6cd5\u8212\u670d\u7684\u4f7f\u7528\uff0c\u4f5c\u4e3aLinux\u5185\u6838\u81ea\u5e26\u7684\u4e00\u4e2aTCP\u62e5\u585e\u63a7\u5236\u7b97\u6cd5\uff0c\u4e0d\u6298\u817e\u7684\u524d\u63d0\u4e0b\u8fd9\u4e2a\u80af\u5b9a\u662f\u9996\u9009\u65b9\u6848\u4e86\u3002<br \/>\n<!--more--><\/p>\n<h2>CentOS8\u542f\u7528BBR<\/h2>\n<p>\u5176\u5b9eCentOS8\u542f\u7528BBR\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u8981\u7b80\u5355\u51e0\u884c\u4ee3\u7801\u5c31\u80fd\u542f\u7528\uff0c\u547d\u4ee4\u5982\u4e0b\uff1a<\/p>\n<pre><code>echo \"net.core.default_qdisc=fq\" &gt;&gt; \/etc\/sysctl.conf\necho \"net.ipv4.tcp_congestion_control=bbr\" &gt;&gt; \/etc\/sysctl.conf\nsysctl -p\n<\/code><\/pre>\n<p>\u5c31\u8fd9\u4e48\u7b80\u5355\u4e09\u884c\u547d\u4ee4\u5c31\u80fd\u542f\u7528\u3002<br \/>\n\u5982\u679c\u5bf9\u7ed3\u679c\u4e0d\u653e\u5fc3\uff0c\u8fd8\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u547d\u4ee4\u9a8c\u8bc1\u4e0b\u662f\u5426\u542f\u7528\u6210\u529f\uff1a<\/p>\n<pre><code>sysctl -n net.ipv4.tcp_congestion_control\nlsmod | grep bbr\n<\/code><\/pre>\n<p>\u5982\u679c\u8f93\u51fa\u5b57\u6837\u5305\u542bBBR\uff0c\u8bf4\u660e\u542f\u7528\u6210\u529f\u4e86\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cOpenVZ\u67b6\u6784\u7684VPS\u4e0d\u4e00\u5b9a\u652f\u6301BBR\u542f\u7528\u7684\uff0c\u56e0\u4e3a\u542f\u7528BBR\u7684\u4e00\u4e2a\u524d\u63d0\u6761\u4ef6\u5c31\u662f\u5185\u6838\u7248\u672c\u9ad8\u4e8e4.9\u3002<\/p>\n<h2>BBR\u76f8\u5173\u95ee\u9898<\/h2>\n<h3>CentOS8\u542f\u7528BBR\u662f\u5426\u9700\u8981\u66f4\u6362\u5185\u6838<\/h3>\n<p>\u56e0\u4e3a\u5f97\u76ca\u4e8eCentOS8\u81ea\u5e26\u7684\u5185\u6838\u7248\u672c\u8db3\u591f\u65b0\uff0c\u6211\u4eec\u5728CentOS8\u7cfb\u7edf\u4e0a\u542f\u7528BBR\u518d\u4e5f\u4e0d\u9700\u8981\u50cf\u4e4b\u524d\u7684CentOS6\/7\u90a3\u6837\u9700\u8981\u5148\u66f4\u65b0\u5185\u6838\u518d\u542f\u7528\u4e86\uff0cCentOS8\u9ed8\u8ba4\u7684\u5185\u6838\u7248\u672c\u4e3a<strong>4.18.x<\/strong>\uff0c\u6bd44.9\u65b0\uff0c\u5df2\u7ecf\u5305\u542b\u4e86BBR\u6a21\u5757\uff0c\u6240\u4ee5\u76f4\u63a5\u542f\u7528\u5c31\u597d\u4e86\u3002<\/p>\n<h3>BBR\u5982\u4f55\u5378\u8f7d<\/h3>\n<p>\u56e0\u4e3a\u542f\u7528BBR\u9664\u4e86\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u4e4b\u5916\uff0c\u8fd8\u4fee\u6539\u4e86\u7cfb\u7edf\u4f7f\u7528\u5185\u6838\uff0c\u5982\u679c\u4e0d\u518d\u9700\u8981BBR\uff0c\u53ef\u4ee5\u6309\u7167\u4e0a\u9762\u7684\u64cd\u4f5c\u6b65\u9aa4\u5220\u9664\u76f8\u5173\u914d\u7f6e\u5e76\u66f4\u6539\u542f\u7528\u5185\u6838\u53ca\u5378\u8f7d\u76f8\u5173\u5185\u6838\u8f6f\u4ef6\u5305\uff0c\u6700\u76f4\u63a5\u7684\u529e\u6cd5\u662f\u5907\u4efd\u597d\u670d\u52a1\u5668\u6570\u636e\u4e4b\u540e\u91cd\u88c5\u7cfb\u7edf\u3002<\/p>\n<h3>BBR\u5bf9\u901f\u5ea6\u63d0\u5347\u5927\u4e0d\u5927\uff1f<\/h3>\n<p>BBR\u53ea\u662f\u4e00\u79cd\u62e5\u585e\u63a7\u5236\u7b97\u6cd5\uff0c\u53ea\u80fd\u4f18\u5316\u6570\u636e\u5305\u7684\u4f20\u8f93\uff0c\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u662f\u80fd\u63d0\u9ad8\u6211\u4eec\u7684\u4f7f\u7528\u4f53\u9a8c\u7684\uff0c\u5982\u679c\u672c\u5730\u5230\u670d\u52a1\u5668\u7684\u7ebf\u8def\u5b9e\u5728\u662f\u5dee\uff0c\u5efa\u8bae\u8fd8\u662f\u66f4\u6362\u670d\u52a1\u5668\u8282\u70b9\u6216\u8005\u66f4\u6362\u7ebf\u8def\u66f4\u597d\u7684\u5546\u5bb6\uff0c\u6bd4\u5982\u8bf4\u5168\u7a0bCN2 GIA\u76f4\u8fde\u7684<a href=\"https:\/\/u.cloudbool.com\/bwh\">\u642c\u74e6\u5de5<\/a>\u6216\u8005\u8282\u70b9\u4f17\u591a\u7684<a href=\"https:\/\/u.cloudbool.com\/vultr\">Vultr<\/a>\u3002<\/p>\n<h3>\u5f00\u542fBBR\u5931\u8d25<\/h3>\n<p>\u6b63\u5e38\u6765\u8bf4\uff0c\u6309\u7167\u4e0a\u9762\u7684\u6b65\u9aa4\u6267\u884c\u662f\u4e0d\u4f1a\u6709\u95ee\u9898\u7684\uff0c\u5982\u679c\u542f\u7528\u5931\u8d25\uff0c\u5efa\u8bae\u68c0\u67e5\u5f53\u524d\u4f7f\u7528\u7684VPS\u662f\u5426\u652f\u6301\u66f4\u6362\u5185\u6838\uff0c\u5e76\u4e14\u670d\u52a1\u5668\u7684\u5185\u5b58\u3001\u786c\u76d8\u7b49\u8d44\u6e90\u662f\u5426\u8db3\u591f\uff0c\u5982\u679c\u8fd8\u662f\u6709\u95ee\u9898\uff0c\u53ef\u5728\u8bc4\u8bba\u533a\u7559\u4e0b\u8be6\u7ec6\u7684\u62a5\u9519\u4fe1\u606f\u3002<\/p>\n<h3>BBR\u5bf9UDP\u6d41\u91cf\u662f\u5426\u6709\u6548<\/h3>\n<p>BBR\u662fGoogle\u5f00\u53d1\u7684\u9488\u5bf9TCP\u7684\u62e5\u585e\u63a7\u5236\u7b97\u6cd5\uff0c\u5bf9UDP\u662f\u65e0\u6548\u7684\u3002<\/p>\n<h3>\u56fd\u5185\u7684\u670d\u52a1\u5668\u662f\u5426\u6709\u5fc5\u8981\u542f\u7528BBR<\/h3>\n<p>BBR\u662f\u9488\u5bf9\u7f51\u7edc\u62e5\u5835\u7684\u60c5\u51b5\u5f00\u53d1\u7684\uff0c\u56fd\u5185\u6765\u8bf4\u76ee\u524d\u81f3\u5c11\u963f\u91cc\u4e91\u3001\u817e\u8baf\u4e91\u5728\u56fd\u5185\u8bbf\u95ee\u662f\u6ca1\u6709\u660e\u663e\u7684\u62e5\u585e\u60c5\u51b5\uff0c\u542f\u4e0d\u542f\u7528\u6548\u679c\u90fd\u5dee\u4e0d\u591a\u3002<\/p>\n<h3>CentOS7\u7cfb\u7edf\u600e\u4e48\u542f\u7528BBR<\/h3>\n<p>\u8fd9\u662fCentOS8\u7684\u542f\u7528\u65b9\u6cd5\uff0c\u5982\u679c\u7cfb\u7edf\u662fCentOS7\uff0c\u53ef\u4ee5\u79fb\u6b65\u8fd9\u91cc\uff1a<a href=\"https:\/\/cloudbool.com\/archive\/centos7-update-kernel-bbr.html\">CentOS7\u5347\u7ea7\u5185\u6838\u5e76\u542f\u7528BBR<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd8\u662f\u524d\u51e0\u5929\uff0c\u56e0\u4e3a\u9700\u8981\u6d4b\u8bd5\u624b\u4e0a\u7684\u7a0b\u5e8f\uff0c\u4e8e\u662f\u5f00\u4e86\u4e2a\u6d77\u5916\u7684CentOS8\u7cfb\u7edf\u7684\u865a\u62df\u673a\uff0c\u4f46\u662f\u56fd\u5185\u73af\u5883\u5927\u5bb6\u90fd\u77e5\u9053\uff0c\u8de8\u4e86\u4e2a &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/cloudbool.com\/archive\/centos8-bbr.html\"> <span class=\"screen-reader-text\">CentOS8\u7cfb\u7edf\u542f\u7528BBR<\/span> \u67e5\u770b\u5168\u6587 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-gradient":""}},"footnotes":""},"categories":[8],"tags":[143,17,149],"class_list":["post-500","post","type-post","status-publish","format-standard","hentry","category-tech","tag-bbr","tag-centos","tag-centos-8"],"_links":{"self":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/500","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/comments?post=500"}],"version-history":[{"count":0,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/500\/revisions"}],"wp:attachment":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/media?parent=500"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/categories?post=500"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/tags?post=500"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}