{"id":10,"date":"2017-03-04T02:22:19","date_gmt":"2017-03-03T18:22:19","guid":{"rendered":"http:\/\/www.zhangyijun.com\/?p=10"},"modified":"2017-03-04T02:22:19","modified_gmt":"2017-03-03T18:22:19","slug":"%e4%bd%bf%e7%94%a8-google-bbr-%e6%8b%a5%e5%a1%9e%e7%ae%97%e6%b3%95%e5%8a%a0%e9%80%9f-tcp","status":"publish","type":"post","link":"http:\/\/www.zhangyijun.com\/?p=10","title":{"rendered":"\u4f7f\u7528 Google BBR \u62e5\u585e\u7b97\u6cd5\u52a0\u901f TCP"},"content":{"rendered":"<p>\t\t\t\thttps:\/\/blog.kuoruan.com\/115.html<\/p>\n<p>Google BBR\u662f\u4e00\u4e2aTCP\u52a0\u901f\u4f18\u5316\u5de5\u5177\uff0c\u7c7b\u4f3c\u4e8e\u9510\u901f\uff0c\u53ef\u7528\u4e8e\u4f18\u5316 TCP \u8fde\u63a5\u3002\u6700\u8fd1\u4e00\u4e0b\u5c31\u706b\u8d77\u6765\u4e86\uff0c\u8bf4\u660e\u8fd8\u662f\u6709\u725b\u903c\u7684\u5730\u65b9\uff0c\u54b1\u4e5f\u522b\u843d\u540e\uff0c\u7528\u8d77\u6765\u3002<\/p>\n<p>GitHub \u5730\u5740\u4e3a\uff1a<a href=\"https:\/\/github.com\/google\/bbr\" target=\"_blank\" rel=\"external nofollow noopener noreferrer\">https:\/\/github.com\/google\/bbr<\/a><\/p>\n<p>\u4ed4\u7ec6\u770b\u4e86\u770b\uff0cGitHub \u4e3b\u9875\u4e0a\u6709\u660e\u786e\u7684\u8bf4\u660e\u201cThis is not an official Google product.\u201d \u8bf4\u660e\u8fd9\u5176\u5b9e\u4e0d\u662f Google \u7684\u5b98\u65b9\u9879\u76ee\uff0c\u4f46\u662f\u662f\u5728 Google \u7684 GitHub \u4e0a\uff0c\u6bd4\u8f83\u5947\u602a\u3002<\/p>\n<p>\u8981\u60f3\u542f\u7528 BBR \u9700\u8981\u5207\u6362\u5185\u6838\uff0c\u6240\u4ee5\u5fc5\u987b\u8981 KVM \u6216\u8005 XEN \u67b6\u6784\u7684 VPS\u3002\u8fd9\u70b9\u548c\u9510\u901f\u4e00\u81f4\uff0c\u6240\u4ee5 Openvz \u7684\u670b\u53cb\u662f\u7528\u4e0d\u4e86\u7684\u3002\u7531\u4e8e\u9700\u8981\u8ddf\u6362\u5185\u6838\uff0c\u5c5e\u4e8e\u5371\u9669\u64cd\u4f5c\uff0c\u8bf7\u4e0d\u8981\u7528\u4e8e\u751f\u4ea7\u73af\u5883\uff0c\u53ef\u80fd\u4f1a\u9020\u6210\u65e0\u6cd5\u5f00\u673a\uff0c\u5207\u8bb0\uff01<\/p>\n<p>\u81f3\u4e8e\u52a0\u901f\u6548\u679c\uff0c\u6709\u4eba\u53cd\u9988\u6bd4\u9510\u901f\u597d\uff0c\u6709\u4eba\u53cd\u9988\u6bd4\u9510\u901f\u5f31\u3002\u6211\u6d4b\u8bd5\u540e\u611f\u89c9\u6548\u679c\u8fd8\u662f\u4e0d\u9519\u7684\uff0c\u4f46\u662f\u7528\u8d77\u6765\u6bd4\u7834\u89e3\u7248\u9510\u901f\u653e\u5fc3\u4e00\u4e9b\u5427\uff0c\u5b83\u662f\u5185\u7f6e\u5230\u6700\u65b0\u7684\u5185\u6838\u91cc\u8fb9\u4e86\u3002<\/p>\n<h2>\u5b89\u88c5 BBR<\/h2>\n<h3>1.\u4e00\u952e\u5b89\u88c5\u811a\u672c<\/h3>\n<p>\u7f51\u4e0a\u6709 BBR \u7684\u4e00\u952e\u5b89\u88c5\u811a\u672c\uff0c\u6211\u627e\u5230\u4e24\u4e2a\uff1a<\/p>\n<div id=\"crayon-58b92a1f14829231277490\" class=\"crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-always disable-anim wrap\">\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f14829231277490-1\">1<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-58b92a1f14829231277490-1\" class=\"crayon-line\"><span class=\"crayon-v\">wget<\/span> <span class=\"crayon-o\">&#8212;<\/span><span class=\"crayon-v\">no<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">check<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-e\">certificate <\/span><span class=\"crayon-v\">https<\/span><span class=\"crayon-o\">:<\/span><span class=\"crayon-c\">\/\/github.com\/52fancy\/GooGle-BBR\/raw\/master\/BBR.sh &amp;&amp; sh BBR.sh<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u53ef\u7528\u4e8e\u00a0CentOS 6\u3002<\/p>\n<div id=\"crayon-58b92a1f14832504512196\" class=\"crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-always disable-anim wrap\">\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f14832504512196-1\">1<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-58b92a1f14832504512196-1\" class=\"crayon-line\"><span class=\"crayon-v\">wget<\/span> <span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">N<\/span> <span class=\"crayon-o\">&#8212;<\/span><span class=\"crayon-v\">no<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">check<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-e\">certificate <\/span><span class=\"crayon-v\">https<\/span><span class=\"crayon-o\">:<\/span><span class=\"crayon-c\">\/\/soft.dou-bi.co\/Bash\/bbr.sh &amp;&amp; chmod +x bbr.sh &amp;&amp; bash bbr.sh<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u53ef\u7528\u4e8e\u00a0Debian \/ Ubuntu 14.04 + \uff08\u8bf4\u660e\u770b\u8fd9\u91cc\uff1a<a href=\"https:\/\/www.dou-bi.co\/wlzy-16\/\" target=\"_blank\" rel=\"external nofollow noopener noreferrer\">https:\/\/www.dou-bi.co\/wlzy-16\/<\/a>\uff09\u3002<\/p>\n<p>\u6211\u662f\u624b\u52a8\u5b89\u88c5\u7684\uff0c\u6ca1\u6d4b\u8bd5\u8fc7\uff0c\u8bf7\u81ea\u6d4b\u3002CentOS 7 \u53ef\u4ee5\u770b\u8fd9\u91cc\uff1a<a href=\"https:\/\/zhujiwiki.com\/10156.html\" target=\"_blank\" rel=\"external nofollow noopener noreferrer\">https:\/\/zhujiwiki.com\/10156.html<\/a><\/p>\n<h3>2.\u624b\u52a8\u5b89\u88c5\u65b9\u5f0f<\/h3>\n<p>\u5148\u770b\u5b98\u65b9\u624b\u52a8\u7f16\u8bd1\u5185\u6838\u7684\u6587\u6863\uff1a<\/p>\n<p><a href=\"https:\/\/github.com\/google\/bbr\/blob\/master\/Documentation\/bbr-quick-start.md\" target=\"_blank\" rel=\"external nofollow noopener noreferrer\">https:\/\/github.com\/google\/bbr\/blob\/master\/Documentation\/bbr-quick-start.md<\/a><\/p>\n<p>\u770b\u8d77\u6765\u6bd4\u8f83\u9ebb\u70e6\uff0c\u6211\u4eec\u8fd8\u662f\u76f4\u63a5\u5b89\u88c5\u7f16\u8bd1\u597d\u7684\u5427\u3002<\/p>\n<p>\u6211\u7684\u7cfb\u7edf\u662f Ubuntu x64\uff0c\u53ef\u4ee5\u76f4\u63a5\u5230 ppa \u4ed3\u5e93\u91cc\u4e0b\u8f7d\uff1a<a href=\"http:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/\" target=\"_blank\" rel=\"external nofollow noopener noreferrer\">http:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/<\/a><\/p>\n<p>\u7f51\u9875\u62c9\u5230\u6700\u540e\uff0c\u770b\u6700\u65b0\u7684\u5185\u6838\uff0c\u5f53\u524d\u6700\u65b0\u7684\u662f\u00a0v4.10-rc5\uff1a<a href=\"http:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v4.10-rc5\/\" target=\"_blank\" rel=\"external nofollow noopener noreferrer\">http:\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v4.10-rc5\/<\/a><\/p>\n<p>\u4e0b\u8f7d\u5185\u6838\u6587\u4ef6\uff1a<\/p>\n<div id=\"crayon-58b92a1f14835272472679\" class=\"crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-always disable-anim wrap\">\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f14835272472679-1\">1<\/div>\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f14835272472679-2\">2<\/div>\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f14835272472679-3\">3<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-58b92a1f14835272472679-1\" class=\"crayon-line\"><span class=\"crayon-e\">wget <\/span><span class=\"crayon-v\">http<\/span><span class=\"crayon-o\">:<\/span><span class=\"crayon-c\">\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v4.10-rc5\/linux-headers-4.10.0-041000rc5_4.10.0-041000rc5.201701221730_all.deb<\/span><\/div>\n<div id=\"crayon-58b92a1f14835272472679-2\" class=\"crayon-line\"><span class=\"crayon-e\">wget <\/span><span class=\"crayon-v\">http<\/span><span class=\"crayon-o\">:<\/span><span class=\"crayon-c\">\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v4.10-rc5\/linux-headers-4.10.0-041000rc5-generic_4.10.0-041000rc5.201701221730_amd64.deb<\/span><\/div>\n<div id=\"crayon-58b92a1f14835272472679-3\" class=\"crayon-line\"><span class=\"crayon-e\">wget <\/span><span class=\"crayon-v\">http<\/span><span class=\"crayon-o\">:<\/span><span class=\"crayon-c\">\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v4.10-rc5\/linux-image-4.10.0-041000rc5-generic_4.10.0-041000rc5.201701221730_amd64.deb<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>32\u4f4d\u4e0b\u8fd9\u4e9b\uff1a<\/p>\n<div id=\"crayon-58b92a1f1483b882774833\" class=\"crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-always disable-anim wrap\">\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f1483b882774833-1\">1<\/div>\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f1483b882774833-2\">2<\/div>\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f1483b882774833-3\">3<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-58b92a1f1483b882774833-1\" class=\"crayon-line\"><span class=\"crayon-e\">wget <\/span><span class=\"crayon-v\">http<\/span><span class=\"crayon-o\">:<\/span><span class=\"crayon-c\">\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v4.10-rc5\/linux-headers-4.10.0-041000rc5_4.10.0-041000rc5.201701221730_all.deb<\/span><\/div>\n<div id=\"crayon-58b92a1f1483b882774833-2\" class=\"crayon-line\"><span class=\"crayon-e\">wget <\/span><span class=\"crayon-v\">http<\/span><span class=\"crayon-o\">:<\/span><span class=\"crayon-c\">\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v4.10-rc5\/linux-headers-4.10.0-041000rc5-generic_4.10.0-041000rc5.201701221730_i386.deb<\/span><\/div>\n<div id=\"crayon-58b92a1f1483b882774833-3\" class=\"crayon-line\"><span class=\"crayon-e\">wget <\/span><span class=\"crayon-v\">http<\/span><span class=\"crayon-o\">:<\/span><span class=\"crayon-c\">\/\/kernel.ubuntu.com\/~kernel-ppa\/mainline\/v4.10-rc5\/linux-image-4.10.0-041000rc5-generic_4.10.0-041000rc5.201701221730_i386.deb<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u5176\u4ed6\u5185\u6838\u7248\u672c\u8bf7\u53bb\u4e0a\u9762\u7684\u94fe\u63a5\u5bfb\u627e\u3002<\/p>\n<p>\u4e0b\u8f7d\u5b8c\u6210\u4e4b\u540e\u53ef\u4ee5\u5f00\u59cb\u5b89\u88c5\u4e86\uff1a<\/p>\n<div id=\"crayon-58b92a1f1483d799849551\" class=\"crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-always disable-anim wrap\">\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f1483d799849551-1\">1<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-58b92a1f1483d799849551-1\" class=\"crayon-line\"><span class=\"crayon-e\">sudo <\/span><span class=\"crayon-v\">dpkg<\/span> <span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-i\">i<\/span> <span class=\"crayon-v\">linux<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">headers<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-cn\">4.10<\/span><span class=\"crayon-o\">*<\/span><span class=\"crayon-sy\">.<\/span><span class=\"crayon-e\">deb <\/span><span class=\"crayon-v\">linux<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">image<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-cn\">4.10<\/span><span class=\"crayon-o\">*<\/span><span class=\"crayon-sy\">.<\/span><span class=\"crayon-v\">deb<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u5b89\u88c5\u5b8c\u6210\u4e4b\u540e\u53ef\u4ee5\u5220\u9664\u591a\u4f59\u7684\u5185\u6838\uff1a<\/p>\n<div id=\"crayon-58b92a1f14840365482434\" class=\"crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-always disable-anim wrap\">\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f14840365482434-1\">1<\/div>\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f14840365482434-2\">2<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-58b92a1f14840365482434-1\" class=\"crayon-line\"><span class=\"crayon-v\">dpkg<\/span> <span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">l<\/span> <span class=\"crayon-o\">|<\/span> <span class=\"crayon-e\">grep <\/span><span class=\"crayon-v\">linux<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">image<\/span> <span class=\"crayon-o\">|<\/span> <span class=\"crayon-i\">awk<\/span> <span class=\"crayon-s\">&#8216;{print $2}&#8217;<\/span> <span class=\"crayon-o\">|<\/span> <span class=\"crayon-v\">grep<\/span> <span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-i\">v<\/span> <span class=\"crayon-s\">&#8216;linux-image-4.10.0-041000rc5&#8217;<\/span> <span class=\"crayon-o\">|<\/span> <span class=\"crayon-e\">sudo <\/span><span class=\"crayon-e\">xargs <\/span><span class=\"crayon-v\">dpkg<\/span> <span class=\"crayon-o\">&#8212;<\/span><span class=\"crayon-e\">purge<\/span><\/div>\n<div id=\"crayon-58b92a1f14840365482434-2\" class=\"crayon-line\"><span class=\"crayon-v\">dpkg<\/span> <span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">l<\/span> <span class=\"crayon-o\">|<\/span> <span class=\"crayon-e\">grep <\/span><span class=\"crayon-v\">linux<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">headers<\/span> <span class=\"crayon-o\">|<\/span> <span class=\"crayon-i\">awk<\/span> <span class=\"crayon-s\">&#8216;{print $2}&#8217;<\/span> <span class=\"crayon-o\">|<\/span> <span class=\"crayon-v\">grep<\/span> <span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-i\">v<\/span> <span class=\"crayon-s\">&#8216;linux-headers-4.10.0-041000rc5&#8217;<\/span> <span class=\"crayon-o\">|<\/span> <span class=\"crayon-e\">sudo <\/span><span class=\"crayon-e\">xargs <\/span><span class=\"crayon-v\">dpkg<\/span> <span class=\"crayon-o\">&#8212;<\/span><span class=\"crayon-v\">purge<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u7136\u540e\u66f4\u65b0\u4e00\u4e0b grub\uff1a<\/p>\n<div id=\"crayon-58b92a1f14842628414434\" class=\"crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-always disable-anim wrap\">\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f14842628414434-1\">1<\/div>\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f14842628414434-2\">2<\/div>\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f14842628414434-3\">3<\/div>\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f14842628414434-4\">4<\/div>\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f14842628414434-5\">5<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-58b92a1f14842628414434-1\" class=\"crayon-line\"><span class=\"crayon-p\"># sudo update-grub<\/span><\/div>\n<div id=\"crayon-58b92a1f14842628414434-2\" class=\"crayon-line\"><span class=\"crayon-e\">Generating <\/span><span class=\"crayon-e\">grub <\/span><span class=\"crayon-e\">configuration <\/span><span class=\"crayon-i\">file<\/span> <span class=\"crayon-sy\">.<\/span><span class=\"crayon-sy\">.<\/span><span class=\"crayon-sy\">.<\/span><\/div>\n<div id=\"crayon-58b92a1f14842628414434-3\" class=\"crayon-line\"><span class=\"crayon-e\">Found <\/span><span class=\"crayon-e\">linux <\/span><span class=\"crayon-v\">image<\/span><span class=\"crayon-o\">:<\/span> <span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">boot<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">vmlinuz<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-cn\">4.10.0<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-cn\">041000rc1<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-e\">generic<\/span><\/div>\n<div id=\"crayon-58b92a1f14842628414434-4\" class=\"crayon-line\"><span class=\"crayon-e\">Found <\/span><span class=\"crayon-e\">initrd <\/span><span class=\"crayon-v\">image<\/span><span class=\"crayon-o\">:<\/span> <span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">boot<\/span><span class=\"crayon-o\">\/<\/span><span class=\"crayon-v\">initrd<\/span><span class=\"crayon-sy\">.<\/span><span class=\"crayon-v\">img<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-cn\">4.10.0<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-cn\">041000rc1<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-e\">generic<\/span><\/div>\n<div id=\"crayon-58b92a1f14842628414434-5\" class=\"crayon-line\"><span class=\"crayon-v\">done<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u8bf7\u786e\u4fdd\u81f3\u5c11\u5b58\u5728\u4e00\u4e2a\u5185\u6838\uff0c\u8981\u4e0d\u7136\u4f1a\u65e0\u6cd5\u542f\u52a8\uff01\uff01\uff01<\/p>\n<p>\u91cd\u542f vps\uff1a<\/p>\n<div id=\"crayon-58b92a1f14844132235215\" class=\"crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-always disable-anim wrap\">\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f14844132235215-1\">1<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-58b92a1f14844132235215-1\" class=\"crayon-line\"><span class=\"crayon-e\">sudo <\/span><span class=\"crayon-v\">reboot<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u91cd\u542f\u4e4b\u540e\uff0c\u67e5\u770b\u4e00\u4e0b\u5f53\u524d\u7684\u5185\u6838\uff1a<\/p>\n<div id=\"crayon-58b92a1f14847392760622\" class=\"crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-always disable-anim wrap\">\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f14847392760622-1\">1<\/div>\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f14847392760622-2\">2<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-58b92a1f14847392760622-1\" class=\"crayon-line\"><span class=\"crayon-p\"># uname -r<\/span><\/div>\n<div id=\"crayon-58b92a1f14847392760622-2\" class=\"crayon-line\"><span class=\"crayon-cn\">4.10.0<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-cn\">041000rc5<\/span><span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">generic<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u5df2\u7ecf\u662f 4.10 \u4e86\uff0c\u73b0\u5728\u53ef\u4ee5\u542f\u7528 BBR \u4e86\uff1a<\/p>\n<div id=\"crayon-58b92a1f14849119951413\" class=\"crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-always disable-anim wrap\">\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f14849119951413-1\">1<\/div>\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f14849119951413-2\">2<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-58b92a1f14849119951413-1\" class=\"crayon-line\"><span class=\"crayon-e\">sudo <\/span><span class=\"crayon-v\">bash<\/span> <span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-i\">c<\/span> <span class=\"crayon-s\">&#8216;echo &#8220;net.core.default_qdisc=fq&#8221; &gt;&gt; \/etc\/sysctl.conf&#8217;<\/span><\/div>\n<div id=\"crayon-58b92a1f14849119951413-2\" class=\"crayon-line\"><span class=\"crayon-e\">sudo <\/span><span class=\"crayon-v\">bash<\/span> <span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-i\">c<\/span> <span class=\"crayon-s\">&#8216;echo &#8220;net.ipv4.tcp_congestion_control=bbr&#8221; &gt;&gt; \/etc\/sysctl.conf&#8217;<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<div id=\"crayon-58b92a1f1484b292218182\" class=\"crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-always disable-anim wrap\">\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f1484b292218182-1\">1<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-58b92a1f1484b292218182-1\" class=\"crayon-line\"><span class=\"crayon-v\">sysctl<\/span> <span class=\"crayon-o\">&#8211;<\/span><span class=\"crayon-v\">p<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u4f7f\u914d\u7f6e\u751f\u6548\u3002<\/p>\n<p>\u7136\u540e\u53ef\u4ee5\u68c0\u67e5\u4e00\u4e0b\uff1a<\/p>\n<div id=\"crayon-58b92a1f1484e866318857\" class=\"crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-always disable-anim wrap\">\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f1484e866318857-1\">1<\/div>\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f1484e866318857-2\">2<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-58b92a1f1484e866318857-1\" class=\"crayon-line\"><span class=\"crayon-p\"># sysctl net.ipv4.tcp_available_congestion_control<\/span><\/div>\n<div id=\"crayon-58b92a1f1484e866318857-2\" class=\"crayon-line\"><span class=\"crayon-v\">net<\/span><span class=\"crayon-sy\">.<\/span><span class=\"crayon-v\">ipv4<\/span><span class=\"crayon-sy\">.<\/span><span class=\"crayon-v\">tcp_available_congestion_control<\/span> <span class=\"crayon-o\">=<\/span> <span class=\"crayon-e\">bbr <\/span><span class=\"crayon-e\">cubic <\/span><span class=\"crayon-v\">reno<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<div id=\"crayon-58b92a1f14850545095911\" class=\"crayon-syntax crayon-theme-github crayon-font-consolas crayon-os-pc print-yes notranslate crayon-wrapped\" data-settings=\" no-popup minimize scroll-always disable-anim wrap\">\n<div class=\"crayon-plain-wrap\"><\/div>\n<div class=\"crayon-main\">\n<table class=\"crayon-table\">\n<tbody>\n<tr class=\"crayon-row\">\n<td class=\"crayon-nums \" data-settings=\"show\">\n<div class=\"crayon-nums-content\">\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f14850545095911-1\">1<\/div>\n<div class=\"crayon-num\" data-line=\"crayon-58b92a1f14850545095911-2\">2<\/div>\n<\/div>\n<\/td>\n<td class=\"crayon-code\">\n<div class=\"crayon-pre\">\n<div id=\"crayon-58b92a1f14850545095911-1\" class=\"crayon-line\"><span class=\"crayon-p\"># lsmod | grep bbr<\/span><\/div>\n<div id=\"crayon-58b92a1f14850545095911-2\" class=\"crayon-line\"><span class=\"crayon-v\">tcp<\/span><span class=\"crayon-sy\">_<\/span>bbr<span class=\"crayon-h\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><span class=\"crayon-cn\">20480<\/span><span class=\"crayon-h\">\u00a0\u00a0<\/span><span class=\"crayon-cn\">14<\/span><\/div>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u7ed3\u679c\u91cc\u8fb9\u5df2\u7ecf\u6709 BBR \u4e86\uff0c\u8bf4\u660e\u542f\u7528\u6210\u529f\u3002\u6ca1\u6210\u529f\u7684\u8bdd\uff0c\u518d\u91cd\u542f\u4e00\u4e0b VPS\u3002<\/p>\n<p>Debian \u7684\u624b\u52a8\u5b89\u88c5\u65b9\u6cd5\u53ef\u4ee5\u770b\u8fd9\u91cc\uff1a<a href=\"https:\/\/moonagic.com\/try-bbr\/\" target=\"_blank\" rel=\"external nofollow noopener noreferrer\">https:\/\/moonagic.com\/try-bbr\/<\/a><\/p>\n<p>&nbsp;<\/p>\n<h1><span style=\"color: #ff0000;\">BBR.sh \u6e90\u7801<\/span><\/h1>\n<pre>#!\/bin\/bash\nPATH=\/bin:\/sbin:\/usr\/bin:\/usr\/sbin:\/usr\/local\/bin:\/usr\/local\/sbin:~\/bin\nexport PATH\n\n# Check if user is root\nif [ $(id -u) != \"0\" ]; then\n    echo \"Error: You must be root to run this script, please use root to install BBR\"\n    exit\nfi\n\nclear\necho \"+------------------------------------------------------------------------+\"\necho \"|                          GooGle TCP BBR                                |\"\necho \"+------------------------------------------------------------------------+\"\necho \"|        A tool to auto-compile &amp; install BBR on CentOS                  |\"\necho \"+------------------------------------------------------------------------+\"\necho \"|                 Welcome to  http:\/\/github.com\/52fancy                  |\"\necho \"+------------------------------------------------------------------------+\"\n\nGet_RHEL_Version()\n{\n    if grep -Eqi \"release 5.\" \/etc\/redhat-release; then\n        RHEL_Version='5'\n    elif grep -Eqi \"release 6.\" \/etc\/redhat-release; then\n        RHEL_Version='6'\n    elif grep -Eqi \"release 7.\" \/etc\/redhat-release; then\n        RHEL_Version='7'\n    fi\n}\n\nGet_RHEL_Version\nif [ $RHEL_Version != \"6\" ]; then\n    echo \"Error: You must be CentOS 6 to run this script, please use CentOS 6 to install BBR\"\n\texit\nfi\n\nGet_OS_Bit()\n{\n    if [[ `getconf WORD_BIT` = '32' &amp;&amp; `getconf LONG_BIT` = '64' ]] ; then\n        OS_Bit='64'\n    else\n        OS_Bit='32'\n    fi\n}\n\nInstall()\n{\n    Get_OS_Bit\n    if uname -r | grep -Eqi \"4.10.\"; then\n\t    if lsmod | grep -Eqi \"bbr\"; then\n\t\t    echo \"\u60a8\u5df2\u7ecf\u6210\u529f\u5b89\u88c5BBR\"\n\t\t    exit\n\t\telse\n\t\t    if [ ! `cat \/etc\/sysctl.conf | grep -i -E \"net.core.default_qdisc=fq\"` ]; then\n\t\t        echo \"net.core.default_qdisc=fq\" &gt;&gt; \/etc\/sysctl.conf\n\t\t    fi\n\t\t    if [ ! `cat \/etc\/sysctl.conf | grep -i -E \"net.ipv4.tcp_congestion_control=bbr\"` ]; then\n\t\t        echo \"net.ipv4.tcp_congestion_control=bbr\" &gt;&gt; \/etc\/sysctl.conf\n\t\t    fi\n\t\t    sysctl -p\n\t\tfi\n\telse\n\t    if [ ! -f \"\/boot\/grub\/grub.conf\" ];then\n\t\t\techo \"\u4e0d\u652f\u6301\u5f53\u524d\u7cfb\u7edf\uff0c\u5373\u5c06\u9000\u51fa\u7a0b\u5e8f\uff01\"\n\t\t\texit\n\t\tfi\n\t\t\n\t    echo -n \"\u5185\u6838\u4e0d\u4e00\u81f4\uff0c\u5373\u5c06\u66ff\u6362\u5185\u6838 [y or n]\uff1a\"\n\t\tread code\n\t\tif [ $code = \"y\" -o $code = \"Y\" ]; then\n\t\t    if [ $OS_Bit = \"64\" ]; then\n\t\t        rpm -ivh http:\/\/elrepo.org\/linux\/kernel\/el6\/x86_64\/RPMS\/kernel-ml-4.10.1-1.el6.elrepo.x86_64.rpm --force\n\t\t\tfi\n\t\t\tif [ $OS_Bit = \"32\" ]; then\n\t\t        rpm -ivh http:\/\/elrepo.org\/linux\/kernel\/el6\/i386\/RPMS\/kernel-ml-4.10.1-1.el6.elrepo.i686.rpm --force\n\t\t\tfi\n\t\t\t\n\t\t\tkernel_default=`grep '^title ' \/boot\/grub\/grub.conf | awk -F'title ' '{print i++ \" : \" $2}' | grep \"4.10.\" | grep -v debug | cut -d' ' -f1`\n\t\t\tsed -i \"s\/^default.*\/default=${kernel_default}\/\" \/boot\/grub\/grub.conf\n\t\t\t\n\t\t\tif [ ! `cat \/etc\/sysctl.conf | grep -i -E \"net.core.default_qdisc=fq\"` ]; then\n\t\t        echo \"net.core.default_qdisc=fq\" &gt;&gt; \/etc\/sysctl.conf\n\t\t    fi\n\t\t    if [ ! `cat \/etc\/sysctl.conf | grep -i -E \"net.ipv4.tcp_congestion_control=bbr\"` ]; then\n\t\t        echo \"net.ipv4.tcp_congestion_control=bbr\" &gt;&gt; \/etc\/sysctl.conf\n\t\t    fi\n\t\t    sysctl -p &gt;\/dev\/null 2&gt;&amp;1\n\t\t\n\t\t\trm -f $0\n\t\t\tread -p \"\u91cd\u542f\u540e\u751f\u6548\uff0c\u662f\u5426\u91cd\u542f\uff1f[y]\uff1a\" is_reboot\n\t\t\tif [[ ${is_reboot} == \"y\" || ${is_reboot} == \"Y\" ]]; then\n\t\t\t    reboot\n\t\t\telse\n\t\t\t    exit\n\t\t\tfi\n\t\telse\n\t\t    echo \"\u7a0b\u5e8f\u5373\u5c06\u9000\u51fa\u5b89\u88c5\"\n            exit\n\t\tfi\n\tfi\n}\n \nInstall\nexit<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\t\t\t\t\t\t&#8230; <\/p>\n<div class=\"read-more navbutton\"><a href=\"http:\/\/www.zhangyijun.com\/?p=10\">\u9605\u8bfb\u66f4\u591a<i class=\"fa fa-angle-double-right\"><\/i><\/a><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-10","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.zhangyijun.com\/index.php?rest_route=\/wp\/v2\/posts\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.zhangyijun.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.zhangyijun.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.zhangyijun.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.zhangyijun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10"}],"version-history":[{"count":0,"href":"http:\/\/www.zhangyijun.com\/index.php?rest_route=\/wp\/v2\/posts\/10\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.zhangyijun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.zhangyijun.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.zhangyijun.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}