{"id":1816,"date":"2018-10-24T20:32:34","date_gmt":"2018-10-24T12:32:34","guid":{"rendered":"https:\/\/zocodev.com\/?p=147"},"modified":"2018-10-24T20:32:34","modified_gmt":"2018-10-24T12:32:34","slug":"debian-9-enable-google-bbr","status":"publish","type":"post","link":"https:\/\/cloudbool.com\/archive\/debian-9-enable-google-bbr.html","title":{"rendered":"Debian 9\u5f00\u542fGoogle BBR"},"content":{"rendered":"<p>\u7f51\u8def\u98a0\u7c38\uff0c\u5c24\u5176\u662f\u665a\u9ad8\u5cf0\u7684\u65f6\u5019\uff0c\u6211\u4eec\u8bbf\u95ee\u56fd\u5916\u7684\u670d\u52a1\u5668\u96be\u514d\u4f1a\u51fa\u73b0\u901f\u5ea6\u7f13\u6162\u7684\u95ee\u9898\uff0c\u5982\u679c\u6211\u4eec\u7684\u670d\u52a1\u5668\u4e3aLinux\u7cfb\u7edf\uff0c\u597d\u5728Debian 9\u7cfb\u7edf\u5185\u6838\u7248\u672c\u4e3a4.9.x\uff0c\u5176\u5185\u6838\u81ea\u5e26\u4e86\u7531Google\u5f00\u53d1\u7684BBR\u62e5\u585e\u7b97\u6cd5\uff0c\u6211\u4eec\u80fd\u5f88\u65b9\u4fbf\u7684\u5f00\u542fBBR\u8fdb\u884c\u8bbf\u95ee\u52a0\u901f\u3002<br \/>\n<!--more--><\/p>\n<h2>Debian 9\u7cfb\u7edf\u5f00\u542fGoogle BBR\u62e5\u585e\u63a7\u5236\u7b97\u6cd5\u65b9\u6cd5<\/h2>\n<p>\u9996\u5148\uff0c\u5148\u8bf4\u4e00\u4e0b\u5f00\u542f\u65b9\u6cd5\u3002\u5176\u5b9e\u5f00\u542f\u5f88\u7b80\u5355\uff0c\u53ea\u9700\u8981\u4e09\u884c\u547d\u4ee4\u5373\u53ef\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>\u5982\u679c\u6b63\u5e38\u6267\u884c\u4e4b\u540e\u6ca1\u6709\u62a5\u9519\u7684\u8bdd\uff0c<strong>\u9700\u8981\u91cd\u542f\u4e00\u4e0b\u7cfb\u7edf<\/strong>\uff0c\u8ba9\u914d\u7f6e\u751f\u6548\u3002<\/p>\n<p>\u91cd\u542f\u4e4b\u540e\uff0c\u6267\u884c\u5982\u4e0b\u547d\u4ee4\u67e5\u770b\u914d\u7f6e\u662f\u5426\u6210\u529f\u751f\u6548\uff1a<\/p>\n<pre><code>root@zocodev:~# lsmod | grep bbr\ntcp_bbr                20480  0\n<\/code><\/pre>\n<p>\u5982\u679c\u6709\u5982\u4e0a\u7c7b\u4f3c\u8f93\u51fa\uff0c\u5219\u8bc1\u660eGoogle BBR\u914d\u7f6e\u6210\u529f\u4e86\u3002<\/p>\n<h2>Debian9\u914d\u7f6eGoogle BBR\u76f8\u5173\u95ee\u9898<\/h2>\n<p>\u67e5\u770b\u7f51\u7ad9\u76f8\u5173\u7edf\u8ba1\u4fe1\u606f\uff0c\u53d1\u73b0\u6709\u4e9b\u670b\u53cb\u5bf9\u4e8e\u662f\u5426\u5f00\u542fBBR\uff08Bottleneck Bandwidth and RTT\uff09\u6709\u4e9b\u7591\u95ee\uff0c\u4e0b\u9762\u662f\u4ece\u641c\u7d22\u5f15\u64ce\u8fc7\u6765\u7684\u670b\u53cb\u6700\u591a\u7684\u51e0\u4e2a\u95ee\u9898\u7684\u76f8\u5173\u89e3\u7b54\u3002<\/p>\n<h3>debian9 \u53ef\u4ee5\u4e0d\u5b89\u88c5bbr\u5417?<\/h3>\n<p>\u53ef\u4ee5\uff0cBBR\u53ea\u662fLinux\u5185\u6838\u4e2d\u81ea\u5e26\u7684\u5176\u4e2d\u4e00\u79cd\u62e5\u585e\u7b97\u6cd5\uff0c\u5982\u679c\u7f51\u7edc\u73af\u5883\u4f18\u79c0\uff0c\u4e0d\u5f00\u542f\u4e5f\u6ca1\u5173\u7cfb\u3002<\/p>\n<h3>Debian 9.5\u662f\u5426\u53ef\u4ee5\u5f00\u542fBBR\uff1f<\/h3>\n<p>\u6839\u636e\u5404\u4e2a\u53d1\u884c\u7248\u7684\u4e00\u8d2f\u505a\u6cd5\uff0c\u6bcf\u4e2a\u5927\u7248\u672c\uff0c\u5982\u679c\u6ca1\u6709\u610f\u5916\uff0c\u5185\u6838\u5927\u7248\u672c\u662f\u4e0d\u4f1a\u53d8\u7684\uff0c\u6bd4\u5982\u8bf4Debian 9\uff0c\u81ea\u5e26\u7684\u5185\u6838\u7248\u672c\u662fLinux 4.9\uff0c\u5373\u4f7f\u7cfb\u7edf\u66f4\u65b0\u5230\u4e86Debian9.5\u6216\u8005\u4ee5\u540e\u7684Debian9.6\u30019.7\u30019.8\u6216\u80059.9\uff0c\u5176\u5185\u6838\u5927\u7248\u672c\u90fd\u662f4.9\uff0c\u53ea\u662f\u5c0f\u7248\u672c\u4f1a\u66f4\u65b0\uff0c\u800c\u5982\u679c\u6ca1\u6709\u610f\u5916\uff0c\u5df2\u7ecf\u6709\u4e86\u7684\u529f\u80fd\u662f\u4e0d\u4f1a\u53d8\u7684\uff0c\u4e5f\u5c31\u662f\u8bf4\uff0c\u53ea\u8981\u662fDebian9\u7cfb\u7edf\uff0c\u4e0d\u7ba1\u5c0f\u7248\u672c\u662f\u591a\u5c11\uff0c\u90fd\u662f\u53ef\u4ee5\u5f00\u542f\u7684\u3002<\/p>\n<h3>Debian GNU\/Linux 9 (stretch)\u9700\u8981\u5b89\u88c5bbr\u5417<\/h3>\n<p>\u5982\u4e0a\u6240\u8ff0\uff0cBBR\u53ea\u662f\u4e00\u79cdTCP\u62e5\u585e\u63a7\u5236\u7b97\u6cd5\uff0c\u5982\u679c\u670d\u52a1\u5668\u4f4d\u4e8e\u7f51\u7edc\u60c5\u51b5\u4e0d\u662f\u5f88\u597d\u7684\u73af\u5883\u6bd4\u5982\u8bf4\u9694\u7740\u592a\u5e73\u6d0b\u7684\u7f8e\u56fdVPS\u6216\u8005\u6b27\u6d32\u90a3\u4e9b\u8def\u9014\u9065\u8fdc\u8f66\u591a\u8def\u5c11\u7684\u60c5\u51b5\uff0c\u5efa\u8bae\u662f\u5f00\u542fBBR\u4ee5\u83b7\u5f97\u66f4\u597d\u7684\u8bbf\u95ee\u4f53\u9a8c\u3002\u800c\u4e14\uff0cDebian9\u7cfb\u7edf\u4e0d\u9700\u8981\u5b89\u88c5BBR\uff0c\u56e0\u4e3a\u5185\u6838\u5df2\u7ecf\u81ea\u5e26\u4e86\uff0c\u6211\u4eec\u53ea\u9700\u8981\u4e0a\u9762\u4e09\u884c\u4ee3\u7801\u5c06\u5176\u5f00\u542f\u5c31\u597d\u4e86\u3002<\/p>\n<h3>BBR\u5bf9UDP\u534f\u8bae\u662f\u5426\u6709\u6548\uff1f<\/h3>\n<p>BBR\u53ea\u662fGoogle\u9488\u5bf9TCP\u534f\u8bae\u5f00\u53d1\u7684\u62e5\u585e\u63a7\u5236\u7b97\u6cd5\uff0c\u5bf9UDP\u662f\u65e0\u6548\u7684\u3002<\/p>\n<h3>BBR\u662f\u5426\u9700\u8981\u5ba2\u6237\u7aef\u8f6f\u4ef6\u652f\u6301\uff1f<\/h3>\n<p>BBR\u662f\u5355\u5411\u52a0\u901f\u7b97\u6cd5\uff0c\u4e0d\u9700\u8981\u5ba2\u6237\u7aef\u652f\u6301\uff0c\u6211\u4eec\u53ea\u9700\u8981\u5728\u670d\u52a1\u5668\u4e0a\u914d\u7f6e\u597d\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<h3>\u56fd\u5185\u7684\u963f\u91cc\u4e91\u3001\u817e\u8baf\u4e91\u7b49\u670d\u52a1\u5668\u662f\u5426\u9700\u8981\u5f00\u542fBBR\uff1f<\/h3>\n<p>\u4e00\u822c\u6765\u8bf4\uff0c\u9664\u4e86\u5bbd\u5e26\u4e0d\u8db3\u7684\u60c5\u51b5\u6216\u8005\u6ca1\u505aBGP\u8de8\u7f51\u8bbf\u95ee\uff0c\u6bd4\u5982\u963f\u91cc\u4e91\u6216\u8005\u817e\u8baf\u4e91\uff0c\u6211\u4eec\u8bbf\u95ee\u56fd\u5185\u7684\u670d\u52a1\u5668\u901f\u5ea6\u90fd\u6bd4\u8f83\u597d\uff0c\u53ef\u4ee5\u4e0d\u7528\u5f00\u542f\u4e5f\u884c\uff0c\u5f53\u7136\uff0c\u5982\u679c\u5f00\u542f\u4e5f\u6ca1\u4ec0\u4e48\u5f71\u54cd\u3002<\/p>\n<h3>\u5f00\u542f\u4e86BBR\u8bbf\u95ee\u670d\u52a1\u5668\u8fd8\u662f\u597d\u6162\u600e\u4e48\u529e\uff1f<\/h3>\n<p>BBR\u53ea\u80fd\u4f18\u5316\u8bbf\u95ee\u901f\u5ea6\uff0c\u800c\u4e0d\u80fd\u66f4\u6362\u670d\u52a1\u5668\u7684\u7269\u7406\u5bbd\u5e26\uff0c\u5982\u679c\u5f00\u542f\u4e86BBR\u8fd8\u662f\u8bbf\u95ee\u7f13\u6162\uff0c\u5efa\u8bae\u8fd8\u662f\u7ed9\u670d\u52a1\u5668\u6362\u4e2a\u7f51\u7edc\u73af\u5883\u6216\u8005\u6362\u4e2aVPS\u670d\u52a1\u5546\uff0c\u6bd4\u5982\u8bf4\u4e00\u4e9b\u7ed5\u8def\u7684VPS\uff0c\u6216\u8005\u662fOVH\u3001OnLine\u90a3\u79cd\u670d\u52a1\u5668\u53ca\u5bf9\u56fd\u5185\u7535\u4fe1\u3001\u8054\u901a\u3001\u79fb\u52a8\u4e09\u5927\u8fd0\u8425\u5546\u6ca1\u505a\u63a5\u5165\u7684\uff0c\u5efa\u8bae\u8fd8\u662f\u6254\u4e86\u5427\uff0c\u7f51\u7edc\u592a\u6e23BBR\u4e5f\u62a2\u6551\u4e0d\u8fc7\u6765\u7684\u3002\u8fd9\u91cc\u63a8\u8350\u4e00\u4e0b\u56fd\u5185\u76f4\u8fde\u3001\u7a33\u5b9a\u5feb\u901f\u7684<a href=\"https:\/\/u.cloudbool.com\/bwh\">\u642c\u74e6\u5de5VPS<\/a>\uff0c\u9664\u4e86\u6709\u4f4e\u5ef6\u8fdf\u7684\u9999\u6e2f\u670d\u52a1\u5668\uff0c\u8fd8\u6709\u57fa\u4e8eCN2 GIA\u4e2d\u7f8e\u9876\u7ea7\u6c11\u7528\u7ebf\u8def\u7684VPS\u3002<\/p>\n<h3>BBR\u65e0\u6cd5\u542f\u52a8<\/h3>\n<p>\u9996\u5148\uff0c\u6211\u4eec\u8bf4\u7684Debian 9\u81ea\u5e26BBR\uff0c\u6307\u7684\u662f\u7c7b\u4f3c\u4e8eKVM\u3001HyperV\u53caVMWare\u7684\u90a3\u79cd\u53ef\u4ee5\u81ea\u5b9a\u4e49\u5185\u6838\u7684\uff0c\u5982\u679c\u4f60\u7684VPS\u662f\u57fa\u4e8eOpenVZ\u67b6\u6784\u7684\uff0c\u53ef\u80fd\u65e0\u6cd5\u76f4\u63a5\u5f00\u542fBBR\uff0c\u9700\u8981\u901a\u8fc7\u522b\u7684\u65b9\u6cd5\u624d\u80fd\u542f\u52a8BBR\uff1b\u5982\u679c\u662f\u57fa\u4e8eXEN\u67b6\u6784\u7684VPS\uff0c\u8bf7\u5148\u786e\u5b9a\u662f\u5426\u53ef\u4ee5\u81ea\u5b9a\u4e49\u5185\u6838\uff0c\u56e0\u4e3a\u6709\u4e9bXen\u67b6\u6784\u7684VPS\u662f\u4e0d\u5141\u8bb8\u81ea\u5b9a\u4e49\u5185\u6838\u7684\uff0c\u901a\u8fc7\u8fd9\u4e2a\u547d\u4ee4\u53ef\u4ee5\u770b\u5230\u5185\u6838\u7248\u672c\uff1a<strong><em>uname -r<\/em><\/strong>\u3002<\/p>\n<h3>\u5982\u4f55\u5220\u9664\/\u5378\u8f7d\/\u5173\u95edBBR<\/h3>\n<p>\u914d\u7f6e\u4e86BBR\u4e4b\u540e\uff0c\u5982\u679c\u4e0d\u60f3\u8981\u4e86\u9700\u8981\u5378\u8f7d\u7684\u8bdd\uff0c\u53ef\u4ee5\u5220\u9664<strong>\/etc\/sysctl.conf<\/strong>\u4e0a\u9762\u6dfb\u52a0\u7684\u90a3\u4e24\u884c\uff0c\u91cd\u542f\u4e00\u4e0b\u5c31\u597d\u4e86\u3002<\/p>\n<h3>BBR\u662f\u5426\u4f1a\u591a\u6d88\u8017\u670d\u52a1\u5668\u6d41\u91cf\uff1f<\/h3>\n<p>\u5bf9\u6bd4BBR\u5e26\u6765\u7684\u8bbf\u95ee\u901f\u5ea6\uff0cBBR\u591a\u6d88\u8017\u7684\u670d\u52a1\u5668\u6d41\u91cf\u4e0d\u503c\u5f97\u4e00\u63d0\uff0c\u9664\u975e\u662f\u6309\u6d41\u91cf\u4ed8\u8d39\u7684\u670d\u52a1\u5668\uff0c\u5426\u5219\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u53ef\u4ee5\u4e0d\u7528\u8003\u8651BBR\u5e26\u6765\u7684\u591a\u51fa\u7684\u6d41\u91cf\u6d88\u8017\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7f51\u8def\u98a0\u7c38\uff0c\u5c24\u5176\u662f\u665a\u9ad8\u5cf0\u7684\u65f6\u5019\uff0c\u6211\u4eec\u8bbf\u95ee\u56fd\u5916\u7684\u670d\u52a1\u5668\u96be\u514d\u4f1a\u51fa\u73b0\u901f\u5ea6\u7f13\u6162\u7684\u95ee\u9898\uff0c\u5982\u679c\u6211\u4eec\u7684\u670d\u52a1\u5668\u4e3aLinux\u7cfb\u7edf\uff0c &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/cloudbool.com\/archive\/debian-9-enable-google-bbr.html\"> <span class=\"screen-reader-text\">Debian 9\u5f00\u542fGoogle BBR<\/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":[10],"tags":[27,63],"class_list":["post-1816","post","type-post","status-publish","format-standard","hentry","category-server","tag-debian","tag-linux"],"_links":{"self":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/1816","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=1816"}],"version-history":[{"count":0,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/posts\/1816\/revisions"}],"wp:attachment":[{"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/media?parent=1816"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/categories?post=1816"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cloudbool.com\/archive\/wp-json\/wp\/v2\/tags?post=1816"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}