{"id":6904,"date":"2019-08-29T08:25:00","date_gmt":"2019-08-29T00:25:00","guid":{"rendered":"http:\/\/n.ht\/wordpress\/?p=149"},"modified":"2025-11-12T14:52:20","modified_gmt":"2025-11-12T06:52:20","slug":"%e5%b0%8f%e7%b1%b3%e5%90%83%e9%a5%ad%e8%b0%88%e8%af%9d%e6%9c%89%e6%84%9f-2","status":"publish","type":"post","link":"http:\/\/puo.cn\/?p=6904","title":{"rendered":"\u7f51\u7edc\u8282\u70b9\u642d\u5efa\u597d\u4e86\uff0c\u8bbf\u95ee\u6162\uff0c\u53ef\u4ee5bBr\u52a0\u901f\u5417"},"content":{"rendered":"<p>\u7f51\u7edc\u8282\u70b9\u642d\u5efa\u6211\u4f7f\u7528\u7684\u662fsing box \u5f04\u597d\u4e86\uff0c\u4f46\u662f\u8bbf\u95ee\u901f\u5ea6\u8fd8\u662f\u6709\u4e9b\u6162\u3002\u522b\u4eba\u544a\u8bc9\u6211\u53ef\u4ee5bBr\u52a0\u901f\uff0c\u53ef\u4ee5\u5417<\/p>\n<p>\u975e\u5e38\u68d2\uff0c\u4f60\u5df2\u7ecf\u5728\u8d70\u5411\u771f\u6b63\u61c2\u7f51\u7edc\u4f18\u5316\u7684\u65b9\u5411\u4e86 \ud83d\udc4d\u3002<br \/>\u4f60\u63d0\u5230\u7684 **Sing-box + BBR \u52a0\u901f** \u7684\u7ec4\u5408\uff0c\u662f\u76ee\u524d\u5728 VPS \u7f51\u7edc\u4f18\u5316\u4e2d\u975e\u5e38\u4e3b\u6d41\u3001\u4e5f\u975e\u5e38\u6709\u6548\u7684\u65b9\u6848\u3002<\/p>\n<p>\u6211\u6765\u8be6\u7ec6\u7ed9\u4f60\u8bb2\u6e05\u695a\u8fd9\u4ef6\u4e8b\u7684\u539f\u7406\u3001\u9002\u7528\u6761\u4ef6\uff0c\u4ee5\u53ca\u5982\u4f55\u5728\u4f60\u7684\u73af\u5883\uff08Sing-box + \u5b9d\u5854\uff09\u4e2d\u5b89\u5168\u5730\u5f00\u542f BBR\u3002\ud83d\udc47<\/p>\n<p>&#8212;<\/p>\n<p>## \ud83e\udde0 \u4e00\u3001BBR \u662f\u4ec0\u4e48\uff1f\u4e3a\u4ec0\u4e48\u80fd\u52a0\u901f\uff1f<\/p>\n<p>BBR\uff08Bottleneck Bandwidth and RTT\uff09\u662f **Google \u5f00\u53d1\u7684\u4e00\u79cd TCP \u62e5\u585e\u63a7\u5236\u7b97\u6cd5**\u3002<br \/>\u5b83\u7684\u4f5c\u7528\u662f\uff1a<\/p>\n<p>&gt; \u8ba9\u670d\u52a1\u5668\u7684\u7f51\u7edc\u4f20\u8f93\u66f4\u667a\u80fd\u3001\u66f4\u9ad8\u6548 \u2014\u2014 \u5c24\u5176\u5728\u8de8\u5883\u3001\u4e22\u5305\u6216\u5ef6\u8fdf\u8f83\u9ad8\u7684\u7ebf\u8def\u4e0a\u663e\u8457\u63d0\u901f\u3002<\/p>\n<p>\u7b80\u5355\u8bf4\uff1a<\/p>\n<p>* \u4f20\u7edf TCP\uff08\u5982 Cubic\uff09\u9047\u5230\u4e22\u5305\u4f1a\u4e3b\u52a8\u964d\u901f\uff1b<br \/>* BBR \u4e0d\u4f9d\u8d56\u4e22\u5305\u5224\u65ad\uff0c\u800c\u662f\u6839\u636e**\u5b9e\u9645\u5e26\u5bbd\u548c\u5ef6\u8fdf\uff08RTT\uff09**\u52a8\u6001\u8c03\u6574\u53d1\u9001\u901f\u7387\uff1b<br \/>* \u6240\u4ee5\u5b83\u80fd\u8ba9 Sing-box \u8fd9\u79cd\u201c\u4ee3\u7406\u7c7b\u670d\u52a1\u201d\u7684\u5e26\u5bbd\u5229\u7528\u7387\u66f4\u9ad8\uff0c\u5ef6\u8fdf\u66f4\u4f4e\u3002<\/p>\n<p>&#8212;<\/p>\n<p>## \ud83d\udcc8 \u4e8c\u3001\u4ec0\u4e48\u65f6\u5019 BBR \u52a0\u901f\u6548\u679c\u6700\u660e\u663e\uff1f<\/p>\n<p>| \u573a\u666f | \u6548\u679c |<br \/>| &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; | &#8212;&#8212;&#8212;&#8212;&#8212; |<br \/>| VPS \u5728\u6d77\u5916\uff08\u5982\u65e5\u672c\u3001\u7f8e\u56fd\u3001\u65b0\u52a0\u5761\uff09\u2192 \u5ba2\u6237\u7aef\u5728\u4e2d\u56fd | \ud83c\udf1f\ud83c\udf1f\ud83c\udf1f\ud83c\udf1f\ud83c\udf1f \u660e\u663e\u63d0\u5347 |<br \/>| \u540c\u533a\u57df\uff08\u5982\u4e2d\u56fd\u9999\u6e2f \u2192 \u4e2d\u56fd\u5185\u5730\uff09 | \ud83c\udf1f\ud83c\udf1f\ud83c\udf1f \u63d0\u5347\u4e2d\u7b49 |<br \/>| VPS \u548c\u7528\u6237\u5728\u540c\u5730\u533a | \ud83c\udf1f \u63d0\u5347\u6709\u9650\uff08\u5ef6\u8fdf\u672c\u5c31\u4f4e\uff09 |<\/p>\n<p>\u7b80\u800c\u8a00\u4e4b\uff1a**BBR \u4e0d\u662f\u9b54\u6cd5\uff0c\u4f46\u5728\u8de8\u56fd\u7ebf\u8def\u4e0a\u786e\u5b9e\u80fd\u63d0\u5347 20\u201350% \u4f20\u8f93\u6027\u80fd\u3002**<\/p>\n<p>&#8212;<\/p>\n<p>## \u2699\ufe0f \u4e09\u3001\u5982\u4f55\u5728 VPS \u4e0a\u5f00\u542f BBR\uff08\u6700\u5b89\u5168\u901a\u7528\u65b9\u6848\uff09<\/p>\n<p>\u4f60\u63d0\u5230\u7528\u7684\u662f\u5b9d\u5854\u9762\u677f + Sing-box\uff0c<br \/>\u90a3\u4f60\u53ef\u4ee5\u7528\u7cfb\u7edf\u7ea7\u547d\u4ee4\u542f\u7528 BBR\uff08\u548c\u5b9d\u5854\u4e0d\u51b2\u7a81\uff09\u3002<\/p>\n<p>### \ud83d\udd39 \u6b65\u9aa4 1\uff1a\u67e5\u770b\u5185\u6838\u7248\u672c<\/p>\n<p>&#8220;`bash<br \/>uname -r<br \/>&#8220;`<\/p>\n<p>&gt; \u8981\u6c42\uff1aLinux \u5185\u6838 \u2265 **4.9**<br \/>&gt; \u5982\u679c\u7248\u672c\u592a\u4f4e\uff0c\u53ef\u4ee5\u5347\u7ea7\uff08\u4f8b\u5982 CentOS 7 \u9ed8\u8ba4\u53ef\u80fd\u662f 3.10\uff09\u3002<\/p>\n<p>&#8212;<\/p>\n<p>### \ud83d\udd39 \u6b65\u9aa4 2\uff1a\u542f\u7528 BBR<\/p>\n<p>\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<p>&#8220;`bash<br \/># \u5199\u5165\u7cfb\u7edf\u53c2\u6570<br \/>echo &#8220;net.core.default_qdisc=fq&#8221; &gt;&gt; \/etc\/sysctl.conf<br \/>echo &#8220;net.ipv4.tcp_congestion_control=bbr&#8221; &gt;&gt; \/etc\/sysctl.conf<\/p>\n<p># \u5e94\u7528\u8bbe\u7f6e<br \/>sysctl -p<br \/>&#8220;`<\/p>\n<p>&#8212;<\/p>\n<p>### \ud83d\udd39 \u6b65\u9aa4 3\uff1a\u9a8c\u8bc1\u662f\u5426\u542f\u7528\u6210\u529f<\/p>\n<p>&#8220;`bash<br \/>sysctl net.ipv4.tcp_congestion_control<br \/>&#8220;`<\/p>\n<p>\u5982\u679c\u8fd4\u56de\uff1a<\/p>\n<p>&#8220;`<br \/>net.ipv4.tcp_congestion_control = bbr<br \/>&#8220;`<\/p>\n<p>\u90a3\u5c31\u6210\u529f\u4e86 \u2705<\/p>\n<p>\u4f60\u4e5f\u53ef\u4ee5\u8fdb\u4e00\u6b65\u786e\u8ba4\uff1a<\/p>\n<p>&#8220;`bash<br \/>lsmod | grep bbr<br \/>&#8220;`<\/p>\n<p>\u8fd4\u56de\u7c7b\u4f3c\uff1a<\/p>\n<p>&#8220;`<br \/>tcp_bbr 20480 1<br \/>&#8220;`<\/p>\n<p>\u8bf4\u660e\u6a21\u5757\u5df2\u52a0\u8f7d\u3002<\/p>\n<p>&#8212;<\/p>\n<p>## \ud83d\ude80 \u56db\u3001\u53ef\u9009\uff1a\u4f7f\u7528 \u201c\u589e\u5f3a\u7248 BBR\u201d\uff08BBR2 \/ BBRplus \/\u9510\u901f\uff09<\/p>\n<p>\u6709\u4e00\u4e9b\u811a\u672c\u6216\u589e\u5f3a\u7248\u672c\uff0c\u4f8b\u5982\uff1a<\/p>\n<p>* **BBR2\uff08\u5185\u6838 5.9+ \u81ea\u5e26\uff09**<br \/>* **BBRplus \/ ServerSpeeder \/ \u9510\u901f**\uff08\u7b2c\u4e09\u65b9\u4fee\u6539\u7248\uff09<\/p>\n<p>\u8fd9\u4e9b\u65b9\u6848\u80fd\u8fdb\u4e00\u6b65\u4f18\u5316\u957f\u8ddd\u79bb\u4e22\u5305\u7ebf\u8def\uff0c\u4f46\uff1a<\/p>\n<p>* \u6709\u4e9b\u9700\u8981\u624b\u52a8\u7f16\u8bd1\u5185\u6838\uff1b<br \/>* \u4e0d\u5efa\u8bae\u4f7f\u7528\u6765\u5386\u4e0d\u660e\u7684\u201c\u4e00\u952e\u52a0\u901f\u811a\u672c\u201d\uff0c\u53ef\u80fd\u5e26\u540e\u95e8\u3002<\/p>\n<p>\ud83d\udfe9 \u4f60\u73b0\u5728\u4f7f\u7528 Sing-box\uff0c\u5efa\u8bae\u7528 **\u539f\u751f BBR \u5373\u53ef**\uff0c\u5df2\u7ecf\u975e\u5e38\u7a33\u5b9a\u3002<\/p>\n<p>&#8212;<\/p>\n<p>## \ud83e\udde9 \u4e94\u3001\u7ed3\u5408 Sing-box \u7684\u4f18\u5316\u5efa\u8bae<\/p>\n<p>\u9664\u4e86 BBR\uff0c\u4f60\u8fd8\u53ef\u4ee5\u505a\u4e00\u4e9b\u989d\u5916\u4f18\u5316\uff1a<\/p>\n<p>| \u9879\u76ee | \u5efa\u8bae |<br \/>| &#8212;&#8212;&#8212;&#8212; | &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- |<br \/>| **\u4f20\u8f93\u534f\u8bae** | \u4f18\u5148\u4f7f\u7528 `reality`\u3001`hysteria2`\u3001`tuic` \u7b49 UDP \u534f\u8bae\uff08\u66f4\u5feb\uff09 |<br \/>| **DNS** | \u4f7f\u7528 `DoH` \u6216 `FakeIP` \u63d0\u5347\u89e3\u6790\u901f\u5ea6 |<br \/>| **\u7cfb\u7edf\u6587\u4ef6\u53e5\u67c4\u9650\u5236** | `ulimit -n 65535`\uff0c\u9632\u6b62\u9ad8\u5e76\u53d1\u5361\u987f |<br \/>| **TCP \u4f18\u5316** | \u5728 `\/etc\/sysctl.conf` \u4e2d\u52a0\u5165\u4e00\u4e9b\u5185\u6838\u53c2\u6570\uff08\u6211\u53ef\u4ee5\u5e2e\u4f60\u5217\u51fa\uff09 |<\/p>\n<p>&#8212;<\/p>\n<p>## \ud83e\uddf0 \u516d\u3001\u5e38\u89c1\u8bef\u533a<\/p>\n<p>\u274c \u5b89\u88c5\u591a\u4e2a\u52a0\u901f\u811a\u672c\u53e0\u52a0\uff08\u5982 BBR + \u9510\u901f + LotServer\uff09<br \/>\u27a1\ufe0f \u5bb9\u6613\u51b2\u7a81\u3001\u53cd\u800c\u53d8\u6162<\/p>\n<p>\u274c \u5f00\u542f BBR \u540e\u7acb\u5373\u6d4b\u901f<br \/>\u27a1\ufe0f BBR \u9700\u8981\u51e0\u79d2\u949f\u5efa\u7acb RTT \u6a21\u578b\uff0c\u521d\u671f\u901f\u5ea6\u53ef\u80fd\u4e0d\u7a33\u5b9a<\/p>\n<p>\u274c \u5ffd\u7565\u7cfb\u7edf\u4f18\u5316\uff08\u6587\u4ef6\u53e5\u67c4\u3001\u961f\u5217\uff09<br \/>\u27a1\ufe0f \u9ad8\u901f\u7ebf\u8def\u53cd\u800c\u5361\u5728\u7cfb\u7edf\u5c42\u9762\u74f6\u9888<\/p>\n<p>&#8212;<\/p>\n<p>## \u2705 \u603b\u7ed3\u4e00\u53e5\u8bdd\uff1a<\/p>\n<p>&gt; **BBR \u662f Sing-box \u7684\u6700\u4f73\u4f19\u4f34\u4e4b\u4e00**\u3002<br \/>&gt; \u53ea\u8981\u5185\u6838\u652f\u6301\uff0c\u5f00\u542f\u540e\u80fd\u663e\u8457\u6539\u5584\u8de8\u5883\u5ef6\u8fdf\u548c\u4e0b\u8f7d\u901f\u5ea6\u3002<br \/>&gt; \u5b9d\u5854\u548c\u5176\u4ed6\u811a\u672c\u4e0d\u4f1a\u53d7\u5f71\u54cd\uff0c\u5b83\u53ea\u662f\u4f18\u5316 TCP \u6d41\u91cf\u7684\u4f20\u8f93\u6548\u7387\u3002<\/p>\n<p>&#8212;<\/p>\n<p>\u5982\u679c\u4f60\u613f\u610f\uff0c\u6211\u53ef\u4ee5\u5e2e\u4f60\uff1a<\/p>\n<p>* \u68c0\u6d4b\u4f60\u5f53\u524d VPS \u7684\u5185\u6838\u7248\u672c\uff1b<br \/>* \u7ed9\u51fa\u4e00\u4efd\u300c\u5b89\u5168\u542f\u7528 BBR + \u7f51\u7edc\u4f18\u5316\u300d\u7684\u547d\u4ee4\u6a21\u677f\uff08\u590d\u5236\u7c98\u8d34\u5373\u53ef\u6267\u884c\uff0c\u4e0d\u7834\u574f\u5b9d\u5854\uff09\u3002<\/p>\n<p>\u8981\u6211\u5e2e\u4f60\u751f\u6210\u8fd9\u4efd\u6a21\u677f\u5417\uff1f<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7f51\u7edc\u8282\u70b9\u642d\u5efa\u6211\u4f7f\u7528\u7684\u662fsing box \u5f04\u597d\u4e86\uff0c\u4f46\u662f\u8bbf\u95ee\u901f\u5ea6\u8fd8\u662f\u6709\u4e9b\u6162\u3002\u522b\u4eba\u544a\u8bc9\u6211\u53ef\u4ee5bBr\u52a0\u901f\uff0c\u53ef\u4ee5\u5417 \u975e\u5e38\u68d2\uff0c\u4f60\u5df2\u7ecf\u5728\u8d70\u5411\u771f\u6b63\u61c2\u7f51\u7edc\u4f18\u5316\u7684\u65b9\u5411\u4e86 \ud83d\udc4d\u3002\u4f60\u63d0\u5230\u7684 **Sing-box + BBR \u52a0\u901f** \u7684\u7ec4\u5408\uff0c\u662f\u76ee\u524d\u5728 VPS \u7f51\u7edc\u4f18&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[128],"tags":[922,927,926,366,698,887],"topic":[],"class_list":["post-6904","post","type-post","status-publish","format-standard","hentry","category-128","tag-bbr","tag-singbox","tag-926","tag-366","tag-698","tag-887"],"_links":{"self":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/6904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6904"}],"version-history":[{"count":2,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/6904\/revisions"}],"predecessor-version":[{"id":655534,"href":"http:\/\/puo.cn\/index.php?rest_route=\/wp\/v2\/posts\/6904\/revisions\/655534"}],"wp:attachment":[{"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6904"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6904"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6904"},{"taxonomy":"topic","embeddable":true,"href":"http:\/\/puo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftopic&post=6904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}