<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>BBR - 十步回眸一笑 - 个人技术笔记</title>
	<atom:link href="https://www.hishd.top/archives/tag/bbr/feed" rel="self" type="application/rss+xml" />
	<link>https://www.hishd.top</link>
	<description></description>
	<lastBuildDate>Wed, 10 Jan 2024 21:38:04 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>BBR V3的安装和效果测试</title>
		<link>https://www.hishd.top/archives/279</link>
					<comments>https://www.hishd.top/archives/279#comments</comments>
		
		<dc:creator><![CDATA[DB.Russell]]></dc:creator>
		<pubDate>Wed, 10 Jan 2024 21:38:02 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[VPS测试]]></category>
		<category><![CDATA[BBR]]></category>
		<category><![CDATA[linux]]></category>
		<guid isPermaLink="false">https://www.hishd.top/?p=279</guid>

					<description><![CDATA[前言：半年前偶然发现BBR出来V3的版本，经过了这一段时间的使用后突然想起来并没用做测试和记录。这次趁着新小鸡 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>前言：半年前偶然发现BBR出来V3的版本，经过了这一段时间的使用后突然想起来并没用做测试和记录。这次趁着新小鸡下水就重新测试了一下。</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>目前能安装V3版本的内核貌似并不算多，一般都可能是用XanMod这个发行内核相较于其他版本内核的优缺点网上也是一大堆，我就贴一下<a href="https://xanmod.org/" data-type="link" data-id="https://xanmod.org/" target="_blank" rel="noreferrer noopener">XanMod官网</a>的介绍</p>



<figure class="wp-block-image size-full is-resized"><img fetchpriority="high" decoding="async" width="1075" height="998" src="https://photo.hishd.top/2024/01/20240110185324199.png" alt="" class="wp-image-280" style="width:745px;height:auto"/></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>下面是官方给的方法，当然你也可以使用其他人的一键脚本来安装</p>



<p>注册gpg密钥，添加存储库：</p>



<pre class="wp-block-code"><code>wget -qO - https://dl.xanmod.org/archive.key | sudo gpg --dearmor -o /usr/share/keyrings/xanmod-archive-keyring.gpg
echo 'deb &#91;signed-by=/usr/share/keyrings/xanmod-archive-keyring.gpg] http://deb.xanmod.org releases main' | sudo tee /etc/apt/sources.list.d/xanmod-release.list</code></pre>



<p>下载测试脚本：</p>



<pre class="wp-block-code"><code>sudo wget https://dl.xanmod.org/check_x86-64_psabi.sh
chmod +x check_x86-64_psabi.sh
./check_x86-64_psabi.sh</code></pre>



<p>根据提示的版本来安装对应的内核：</p>



<figure class="wp-block-image size-full"><img decoding="async" width="284" height="35" src="https://photo.hishd.top/2024/01/20240110195950263.png" alt="" class="wp-image-285"/></figure>



<p>如我这vps的CPU是支持x86-64V3版本的</p>



<pre class="wp-block-code"><code>sudo apt update &amp;&amp; sudo apt install linux-xanmod-x64v3</code></pre>



<p>下面是官方提供的内核版本选择提示，最好还是根据脚本的结果来安装。</p>



<figure class="wp-block-image size-full"><img decoding="async" width="993" height="435" src="https://photo.hishd.top/2024/01/20240110200239504.png" alt="" class="wp-image-286"/></figure>



<p>开启BBR：</p>



<pre class="wp-block-code"><code>cat > /etc/sysctl.conf &lt;&lt; EOF

net.core.default_qdisc=fq_pie

net.ipv4.tcp_congestion_control=bbr

EOF

sysctl -p</code></pre>



<p>最后重启vps</p>



<p>输入  modinfo tcp_bbr  来检查版本</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="654" height="458" src="https://photo.hishd.top/2024/01/20240110200640217.png" alt="" class="wp-image-288" style="width:512px;height:auto"/></figure>



<p>如何在运行 modinfo tcp_bbr 时看到 "modinfo: ERROR: Module tcp_bbr not found" 错误，这可能是因为 BBR 不再作为一个单独的内核模块存在，而是直接编译进内核了。无法单独查看信息。但已经是BBRv3了</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="307" height="51" src="https://photo.hishd.top/2024/01/20240110201246355.png" alt="" class="wp-image-289"/></figure>



<p>至此，BBRv3已经安装并启用了。下面是一些测试</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p>由于我这VPS广州电信绕日本NTT了所以延迟高达200+，广州移动反而是直的。这恰好就当测试一下高延迟绕路和直的来做对比。</p>



<p>去程路由：</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="846" height="310" src="https://photo.hishd.top/2024/01/20240110201648361.png" alt="" class="wp-image-290" style="width:633px;height:auto"/></figure>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="1860" height="1152" src="https://photo.hishd.top/2024/01/20240110201917250.png" alt="" class="wp-image-291" style="width:595px;height:auto" srcset="https://photo.hishd.top/2024/01/20240110201917250.png 1860w, https://photo.hishd.top/2024/01/20240110201917250-1536x951.png 1536w" sizes="auto, (max-width: 1860px) 100vw, 1860px" /></figure>



<p>未开始BBR时的SS速度测试：</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="444" height="48" src="https://photo.hishd.top/2024/01/20240110202242401.png" alt="" class="wp-image-297"/></figure>



<p>电信</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="1238" height="331" src="https://photo.hishd.top/2024/01/20240110202039570.png" alt="" class="wp-image-292" style="width:699px;height:auto"/></figure>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="628" height="400" src="https://photo.hishd.top/2024/01/20240110202046184.png" alt="" class="wp-image-293" style="width:539px;height:auto"/></figure>



<p>移动</p>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="2496" height="718" data-id="294" src="https://photo.hishd.top/2024/01/20240110202135157.png" alt="" class="wp-image-294" srcset="https://photo.hishd.top/2024/01/20240110202135157.png 2496w, https://photo.hishd.top/2024/01/20240110202135157-1536x442.png 1536w, https://photo.hishd.top/2024/01/20240110202135157-2048x589.png 2048w" sizes="auto, (max-width: 2496px) 100vw, 2496px" /></figure>
</figure>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="1268" height="838" src="https://photo.hishd.top/2024/01/20240110202147811.png" alt="" class="wp-image-296" style="width:521px;height:auto"/></figure>



<p>开启普通BBR时的SS速度测试</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="454" height="52" src="https://photo.hishd.top/2024/01/20240110202248621.png" alt="" class="wp-image-298"/></figure>



<p>电信</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="1250" height="344" src="https://photo.hishd.top/2024/01/20240110202302705.png" alt="" class="wp-image-299" style="width:624px;height:auto"/></figure>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="623" height="406" src="https://photo.hishd.top/2024/01/20240110202305786.png" alt="" class="wp-image-300" style="width:543px;height:auto"/></figure>



<p>移动</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="2484" height="706" src="https://photo.hishd.top/2024/01/20240110202319300.png" alt="" class="wp-image-301" style="width:599px;height:auto" srcset="https://photo.hishd.top/2024/01/20240110202319300.png 2484w, https://photo.hishd.top/2024/01/20240110202319300-1536x437.png 1536w, https://photo.hishd.top/2024/01/20240110202319300-2048x582.png 2048w" sizes="auto, (max-width: 2484px) 100vw, 2484px" /></figure>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="1278" height="832" src="https://photo.hishd.top/2024/01/20240110202322974.png" alt="" class="wp-image-302" style="width:584px;height:auto"/></figure>



<p>接着是安装了V3后的速度测试</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="440" height="53" src="https://photo.hishd.top/2024/01/20240110202355550.png" alt="" class="wp-image-303"/></figure>



<p>电信</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="1236" height="325" src="https://photo.hishd.top/2024/01/20240110202408783.png" alt="" class="wp-image-304" style="width:606px;height:auto"/></figure>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="621" height="393" src="https://photo.hishd.top/2024/01/20240110202414348.png" alt="" class="wp-image-305" style="width:560px;height:auto"/></figure>



<p>移动</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="2476" height="688" src="https://photo.hishd.top/2024/01/20240110202425803.png" alt="" class="wp-image-306" style="width:569px;height:auto" srcset="https://photo.hishd.top/2024/01/20240110202425803.png 2476w, https://photo.hishd.top/2024/01/20240110202425803-1536x427.png 1536w, https://photo.hishd.top/2024/01/20240110202425803-2048x569.png 2048w" sizes="auto, (max-width: 2476px) 100vw, 2476px" /></figure>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="1292" height="838" src="https://photo.hishd.top/2024/01/20240110202430910.png" alt="" class="wp-image-307" style="width:518px;height:auto"/></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://www.hishd.top/archives/279/feed</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
