{"id":143,"date":"2022-03-21T15:29:02","date_gmt":"2022-03-21T07:29:02","guid":{"rendered":"https:\/\/wp.tianxia009.xyz\/?p=143"},"modified":"2022-03-21T15:29:02","modified_gmt":"2022-03-21T07:29:02","slug":"%e7%bd%91%e7%ab%99%e6%9c%8d%e5%8a%a1%e5%99%a8%e4%b8%8d%e8%a6%81%e5%bc%80%e5%90%afbbrcentos-7-%e7%bd%91%e7%bb%9c%e5%bc%80%e5%90%afbbr%e4%bc%98%e5%8c%96%ef%bc%88%e5%8d%87%e7%ba%a7%e5%86%85%e6%a0%b8","status":"publish","type":"post","link":"https:\/\/wp.152999.xyz\/?p=143","title":{"rendered":"\u7f51\u7ad9\u670d\u52a1\u5668\u4e0d\u8981\u5f00\u542fBBR,CentOS 7 \u7f51\u7edc\u5f00\u542fBBR\u4f18\u5316\uff08\u5347\u7ea7\u5185\u6838\u3001\u5f00\u542f BBR\uff09"},"content":{"rendered":"<p>\u539f\u6587\u6765\u81eahttps:\/\/blog.csdn.net\/weixin_34380892 zhu&#8217;feng<a class=\"follow-nickName \" href=\"https:\/\/blog.csdn.net\/weixin_34380892\" target=\"_blank\" rel=\"noopener\">\u795d\u5cf0<\/a><\/p>\n<p>\u6211\u4e4b\u524d\u4ecb\u7ecd\u8fc7\u5173\u4e8e TCP \u4e00\u4e9b\u4f18\u5316\uff0c\u5305\u62ec\u5b89\u88c5\u4f7f\u7528 TCP \u4f18\u5316\u8f6f\u4ef6\uff0c\u8fd9\u4e9b\u9002\u7528\u4e8e\u8f83\u4f4e\u7248\u672c\u7684 CentOS \u7cfb\u7edf\uff0c\u4f8b\u5982 CentOS 6\uff0c\u8be6\u7ec6\u53ef\u53c2\u8003\u300aLinux \u4e0b\u7684\u4e00\u4e9b\u7b80\u5355\u7684 TCP \u4f18\u5316\u300b\u4e0e\u300aTCP \u4f18\u5316\u5229\u5668\u2014\u2014TetaTCP(\u9510\u901f\u3001LotServer)\u300b\u3002<\/p>\n<p>\u5bf9\u4e8e CentOS 7\uff0c\u66f4\u63a8\u8350\u5f00\u542f BBR \u7b97\u6cd5\u6765\u89e3\u51b3\u7f51\u7edc\u95ee\u9898(\u4f18\u5316\u4e22\u5305\u7387\u3001\u5ef6\u8fdf\u3001\u63d0\u5347\u76f4\u8fde\u6548\u7387)\uff0c\u7279\u522b\u9002\u5408\u4e8e\u7528\u4e8e\u56fd\u5185\u8bbf\u95ee\u4f7f\u7528\u7684\u56fd\u5916\u670d\u52a1\u5668\u7f51\u7edc\u4f18\u5316\uff0c\u6700\u597d\u7684\u4f18\u5316\u6548\u679c\u80fd\u4ece\u76f4\u8fde\u51e0\u767e kb\/s \u901f\u5ea6\u63d0\u5347\u81f3 38MB\/s(\u6570\u636e\u4e3a\u4eb2\u6d4b\uff0c\u5b9e\u9645\u4f18\u5316\u6548\u679c\u53d6\u51b3\u4e8e\u673a\u623f\u53ca\u7ebf\u8def)\u3002<\/p>\n<p>\u7531\u4e8e BBR \u7b97\u6cd5\u9700\u8981 4.9 \u4ee5\u4e0a\u7248\u672c Kernel \u652f\u6301\uff0c\u6240\u4ee5\u9700\u8981\u5148\u5347\u7ea7\u5185\u6838\u3002<\/p>\n<p>\u5347\u7ea7\u5185\u6838<\/p>\n<p>1\u3001yum \u7cfb\u7edf\u5347\u7ea7\uff0c\u5c06\u6240\u6709\u8f6f\u4ef6\u5305\u5148\u5347\u7ea7\u81f3\u6700\u65b0\u7248\u672c<\/p>\n<p>yum update -y<\/p>\n<p>2\u3001\u91cd\u542f\u7cfb\u7edf\uff0c\u8ba9\u7cfb\u7edf\u5185\u6838\u53ca\u6240\u9700\u73af\u5883\u8fd0\u884c\u5728\u6700\u65b0\u7248\u672c\u4e0b<\/p>\n<p>reboot<\/p>\n<p>3\u3001\u67e5\u770b\u5f53\u524d\u7cfb\u7edf\u7248\u672c\u3001\u5185\u6838\u7248\u672c\u3002\u5982\u679c\u5df2\u7ecf\u662f 4.9 \u4ee5\u4e0a\u7248\u672c\uff0c\u5219\u65e0\u9700\u8fdb\u884c\u5185\u6838\u5347\u7ea7\u3002<\/p>\n<p>cat \/etc\/redhat-release<\/p>\n<p>uname -a<\/p>\n<p>4\u3001 \u5bfc\u5165 elrepo \u8f6f\u4ef6\u6e90\u7684 GPG \u516c\u94a5<\/p>\n<p>rpm &#8211;import https:\/\/www.elrepo.org\/RPM-GPG-KEY-elrepo.org<\/p>\n<p>5\u3001\u5bfc\u5165 elrepo \u8f6f\u4ef6\u6e90<\/p>\n<p>rpm -Uvh https:\/\/www.elrepo.org\/elrepo-release-7.0-3.el7.elrepo.noarch.rpm<\/p>\n<p>6\u3001\u542f\u7528 elrepo \u8f6f\u4ef6\u6e90\u5e76\u4e0b\u8f7d\u5b89\u88c5\u6700\u65b0\u7a33\u5b9a\u7248\u5185\u6838<\/p>\n<p>yum &#8211;enablerepo=elrepo-kernel install kernel-ml -y<\/p>\n<p>7\u3001\u8bbe\u5b9a Grub \u9ed8\u8ba4\u542f\u52a8\u65b0\u5185\u6838<\/p>\n<p>grub2-set-default 0<\/p>\n<p>8\u3001\u91cd\u542f\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u8fd0\u884c\u5230\u65b0\u5185\u6838\u4e0a<\/p>\n<p>reboot<\/p>\n<p>9\u3001\u91cd\u542f\u540e\uff0c\u518d\u6b21\u67e5\u770b\u5185\u6838\u7248\u672c\u3002\u786e\u8ba4\u662f\u5426\u5df2\u7ecf\u5347\u7ea7\u4e3a 4.X \u5185\u6838<\/p>\n<p>uname -a<\/p>\n<p>10\u3001\u5220\u9664\u65e7\u5185\u6838(\u9632\u6b62 yum \u66f4\u65b0\u65e7\u7248\u5185\u6838\u4e4b\u540e\u8986\u76d6\u4e86 grub \u9ed8\u8ba4\u542f\u52a8\u9879)<\/p>\n<p>yum -y remove kernel kernel-tools<\/p>\n<p>\u5f00\u542f BBR<\/p>\n<p>1\u3001\u4fee\u6539\u7cfb\u7edf\u914d\u7f6e\u6587\u4ef6<\/p>\n<p>vim \/etc\/sysctl.conf<\/p>\n<p>\u5728\u7ed3\u5c3e\u6dfb\u52a0\u5982\u4e0b\u5185\u5bb9\uff1a<\/p>\n<p>net.core.default_qdisc = fq<\/p>\n<p>net.ipv4.tcp_congestion_control = bbr<\/p>\n<p>\u4fdd\u5b58\uff0c\u9000\u51fa VIM\u3002(\u82e5\u672a\u5b89\u88c5 vim \u53ef\u4f7f\u7528 vi)<\/p>\n<p>2\u3001\u52a0\u8f7d\u65b0\u914d\u7f6e<\/p>\n<p>sysctl -p<\/p>\n<p>3\u3001\u67e5\u770b\u5f53\u524d\u4f7f\u7528\u7684\u62e5\u585e\u7b97\u6cd5<\/p>\n<p>sysctl net.ipv4.tcp_available_congestion_control<\/p>\n<p>lsmod | grep bbr<\/p>\n<p>\u4e24\u6761\u547d\u4ee4\u5747\u8fd4\u56de\u5e26\u6709 bbr \u7684\u4fe1\u606f\u5219\u5df2\u5f00\u542f BBR \u7b97\u6cd5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u6587\u6765\u81eahttps:\/\/blog.csdn.net\/weixin_34380892 zhu&#8217;feng\u795d\u5cf0 \u6211\u4e4b\u524d\u4ecb\u7ecd\u8fc7\u5173\u4e8e TCP \u4e00\u4e9b\u4f18\u5316\uff0c\u5305\u62ec\u5b89\u88c5\u4f7f\u7528 TCP \u4f18\u5316\u8f6f\u4ef6\uff0c\u8fd9\u4e9b\u9002\u7528\u4e8e\u8f83\u4f4e&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-143","post","type-post","status-publish","format-standard","hentry","category-centos"],"_links":{"self":[{"href":"https:\/\/wp.152999.xyz\/index.php?rest_route=\/wp\/v2\/posts\/143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.152999.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.152999.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.152999.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.152999.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=143"}],"version-history":[{"count":0,"href":"https:\/\/wp.152999.xyz\/index.php?rest_route=\/wp\/v2\/posts\/143\/revisions"}],"wp:attachment":[{"href":"https:\/\/wp.152999.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.152999.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.152999.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}