{"id":45710,"date":"2020-03-03T11:23:44","date_gmt":"2020-03-03T03:23:44","guid":{"rendered":"http:\/\/4563.org\/?p=45710"},"modified":"2020-03-03T11:23:44","modified_gmt":"2020-03-03T03:23:44","slug":"bbrplus%e7%9a%84%e7%bc%96%e8%af%91","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=45710","title":{"rendered":"bbrplus\u7684\u7f16\u8bd1"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u609f\u96e8<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>bbrplus\u7684\u7f16\u8bd1<\/h3>\n<p>  \t\t\u5f15\u7528\u6d77\u8fd0\u7684<br \/>  \u5b89\u88c5\u7f16\u8bd1\u73af\u5883<br \/>  yum install -y ncurses-devel make gcc bc bison flex elfutils-libelf-devel openssl-devel rpm-build<br \/>  yum install -y dpkg-dev #\u751f\u6210deb\u5305\u4f9d\u8d56<br \/>  ubuntu<br \/>  apt install build-essential libncurses-dev flex bison openssl libssl-dev dkms libelf-dev libudev-dev libpci-dev libiberty-dev autoconf<br \/>  \u4e0b\u8f7d4.14\u7248\u5185\u6838\uff1a<br \/>  wget https:\/\/cdn.kernel.org\/pub\/linux\/kernel\/v4.x\/linux-4.14.*.tar.xz<br \/>  tar xf linux-4.14.*.tar.xz<\/p>\n<p>  patch:<br \/>  diff -urN aa\/include\/net\/inet_connection_sock.h bb\/include\/net\/inet_connection_sock.h<br \/>  &#8212; aa\/include\/net\/inet_connection_sock.h&nbsp; &nbsp;&nbsp; &nbsp; 2019-12-14 17:07:48.190502969 +0800<br \/>  +++ bb\/include\/net\/inet_connection_sock.h&nbsp; &nbsp;&nbsp; &nbsp; 2019-12-14 17:08:06.373215456 +0800<br \/>  @@ -136,8 +136,8 @@<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;} icsk_mtup;<br \/>  &nbsp; &nbsp;&nbsp; &nbsp;u32&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;icsk_user_timeout;<\/p>\n<p>  &#8211;&nbsp; &nbsp;&nbsp; &nbsp; u64&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;icsk_ca_priv;<br \/>  -#define ICSK_CA_PRIV_SIZE&nbsp; &nbsp;&nbsp; &nbsp;(11 * sizeof(u64))<br \/>  +&nbsp; &nbsp;&nbsp; &nbsp; u64&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;icsk_ca_priv;<br \/>  +#define ICSK_CA_PRIV_SIZE&nbsp; &nbsp;&nbsp; &nbsp;(14 * sizeof(u64))<br \/>   };<\/p>\n<p>   #define ICSK_TIME_RETRANS&nbsp; &nbsp;&nbsp; &nbsp;1&nbsp; &nbsp;&nbsp; &nbsp; \/* Retransmit timer *\/<br \/>  diff -urN aa\/net\/ipv4\/Makefile bb\/net\/ipv4\/Makefile<br \/>  &#8212; aa\/net\/ipv4\/Makefile&nbsp; &nbsp;&nbsp; &nbsp;2019-12-14 17:09:40.204731772 +0800<br \/>  +++ bb\/net\/ipv4\/Makefile&nbsp; &nbsp;&nbsp; &nbsp;2019-12-14 17:09:47.147621995 +0800<br \/>  @@ -44,7 +44,7 @@<br \/>   obj-$(CONFIG_INET_UDP_DIAG) += udp_diag.o<br \/>   obj-$(CONFIG_INET_RAW_DIAG) += raw_diag.o<br \/>   obj-$(CONFIG_NET_TCPPROBE) += tcp_probe.o<br \/>  -obj-$(CONFIG_TCP_CONG_BBR) += tcp_bbr.o<br \/>  +obj-$(CONFIG_TCP_CONG_BBR) += tcp_bbrplus.o<br \/>   obj-$(CONFIG_TCP_CONG_BIC) += tcp_bic.o<br \/>   obj-$(CONFIG_TCP_CONG_CDG) += tcp_cdg.o<br \/>   obj-$(CONFIG_TCP_CONG_CUBIC) += tcp_cubic.o<br \/>  diff -urN aa\/net\/ipv4\/tcp_output.c bb\/net\/ipv4\/tcp_output.c<br \/>  &#8212; aa\/net\/ipv4\/tcp_output.c&nbsp; &nbsp; 2019-12-14 17:08:48.488549518 +0800<br \/>  +++ bb\/net\/ipv4\/tcp_output.c&nbsp; &nbsp; 2019-12-14 17:08:55.061445594 +0800<br \/>  @@ -1834,6 +1834,7 @@<\/p>\n<p>  &nbsp; &nbsp;&nbsp; &nbsp;return !after(end_seq, tcp_wnd_end(tp));<br \/>   }<br \/>  +EXPORT_SYMBOL(tcp_snd_wnd_test);<\/p>\n<p>   \/* Trim TSO SKB to LEN bytes, put the remaining data into a new packet<br \/>  * which is put after SKB on the list.It is very much like<\/p>\n<p>  \u770b\u4e0d\u61c2\uff1f \u90a3\u770b\u8fd9\u4e2a<br \/>  \u4fee\u6539linux-4.14.*\/include\/net\/inet_connection_sock.h<br \/>  u64 icsk_ca_priv;<br \/>  define ICSK_CA_PRIV_SIZE (14 * sizeof(u64))<br \/>  \u8fd9\u4e24\u6bb5\u6570\u503c\u6539\u4e3a112\u548c14\uff0c\u5982\u4e0a<\/p>\n<p>  \u4fee\u6539\/net\/ipv4\/tcp_output.c<br \/>  tcp_snd_wnd_test\u51fd\u6570\u5927\u62ec\u53f7\u540e}<br \/>  \u6362\u884c\u6dfb\u52a0EXPORT_SYMBOL(tcp_snd_wnd_test);<\/p>\n<p>  \u6dfb\u52a0tcp_bbrplus.c\uff0c\u5220\u9664\/net\/ipv4\/tcp_bbr.c<br \/>  \u4fee\u6539linux-4.14.91\/net\/ipv4\/Makefile\uff0c<br \/>  obj-$(CONFIG_TCP_CONG_BBR) += tcp_bbrplus.o\uff0cbbr\u6539\u4e3abbrplus<\/p>\n<p>  tcp_bbrplus.c<br \/>  https:\/\/raw.githubusercontent.com\/cx9208\/bbrplus\/master\/tcp_bbrplus.c<\/p>\n<p>  \u6253\u5f00\u7f16\u8bd1\u9009\u9879\u5e76\u5f00\u542f\u7f16\u8bd1bbr\u4e3a\u6a21\u5757\uff1a<br \/>  make menuconfig<\/p>\n<p>  \u7981\u7528\u7b7e\u540d\u8c03\u8bd5\u53ca\u7f16\u8bd1<br \/>  scripts\/config &#8211;disable MODULE_SIG<br \/>  scripts\/config &#8211;disable DEBUG_INFO<\/p>\n<p>  \u7f16\u8bd1\u5185\u6838\u751f\u6210centos rpm\u6216ubuntu deb\u5305\uff0c\u6ce8\u610f\u5982\u679c\u4f7f\u7528make rpm-pkg\u5219\u6bcf\u6b21\u7f16\u8bd1\u524d\u4f1a\u5148clean\uff0c\u5982\u679c\u91cd\u590d\u7f16\u8bd1\u4f1a\u5f88\u6162\uff01<br \/>  make binrpm-pkg<br \/>  make bindeb-pkg<\/p>\n<p>  https:\/\/github.com\/cx9208\/bbrplus<br \/>  https:\/\/blog.csdn.net\/dog250\/article\/details\/80629551<\/p>\n<p>  \u4f60\u4eec\u8bf4\u65ad\u6d41\uff0c\u90a3\u81ea\u5df1\u7f16\u8bd1\u4e0b\u770b\u770b<br \/>  \u6211\u7f16\u8bd1\u7684168\u5c31\u8fd9\u4e48\u7f16\u8bd1\u7684 \u6211\u7f16\u8bd1\u7684\u7248\u672c\u4e0d\u6b62168<\/p>\n<p>  \u8fd9\u91cc\u63d0\u4e00\u70b9dog250\u90a3\u8fb9\u63d0\u5230\u7684\u6570\u5b57\u662f88-&gt;104&nbsp; &nbsp;11-&gt;13<br \/>  \u4e0a\u9762\u63d0\u5230\u7684\u662f\u6570\u5b57\u662f88-&gt;11211-&gt;14<br \/>  \u81f3\u4e8e\u4e3a\u4ec0\u4e48\u8fd9\u4e48\u6539 \u6211\u4e5f\u4e0d\u77e5\u9053<br \/>  129\u7684\u7248\u672c\u7528\u7684\u54ea\u4e2a\u6570\u5b57 \u6211\u4e0d\u77e5\u9053 \u5f97\u95eehttps:\/\/github.com\/cx9208<\/p>\n<p>  \u6709\u6ca1\u6709\u73b0\u6210\u7684\u6e90\u7801\uff1f\u6709<br \/>  https:\/\/github.com\/ylx2016\/kernel\/releases\/download\/4.14.166-bbrplus\/linux-4.14.166bbrplus.zip  \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>my49cn<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u53ef\u80fd\u662f168\u5185\u6838tcp\u5904\u7406\u6709\u6539\u52a8\u4e86\u5427\u3002\u8fd9\u4e0d\u662f\u4f60\u7684\u9519\u3002\u3002\u6709\u4e9b\u4e1c\u897f\u786e\u5b9e\u662f\u8001\u7248\u672c\u597d\u3002\u5927\u4f6c\u4f60\u7684\u811a\u672c\u5f88\u597d\u7528\u3002\u57fa\u672c\u4e0a\u6211\u6bcf\u53f0\u9e21\u9e21\u90fd\u8981\u7528\u7684\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u609f\u96e8<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tmy49cn \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-3-3 11:43<br \/>  \u53ef\u80fd\u662f168\u5185\u6838tcp\u5904\u7406\u6709\u6539\u52a8\u4e86\u5427\u3002\u8fd9\u4e0d\u662f\u4f60\u7684\u9519\u3002\u3002\u6709\u4e9b\u4e1c\u897f\u786e\u5b9e\u662f\u8001\u7248\u672c\u597d\u3002\u5927\u4f6c\u4f60\u7684\u811a\u672c\u5f88\u597d\u7528\u3002\u57fa\u672c\u4e0a\u6211 &#8230;<\/p>\n<p> \u90a3\u6211\u6539\u5929\u628a\u811a\u672c\u91cc\u9762\u964d\u7ea7\u5230129\u7684bbrplus\u5427\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u4e09\u4e0d<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u7231\u4f60\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u9648\u6d69\u5357<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fdb\u6765\u5b66\u4e60\u4e00\u4e0b\uff0c\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u609f\u96e8 \u5927\u4f6c\u6709\u8bdd\u8bf4 : bbrplu&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/45710"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=45710"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/45710\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=45710"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=45710"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=45710"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}