<?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>ネットワーク | Nemuの研究室</title>
	<atom:link href="https://wp.nippombashi.net/archives/category/%E3%83%8D%E3%83%83%E3%83%88%E3%83%AF%E3%83%BC%E3%82%AF/feed" rel="self" type="application/rss+xml" />
	<link>https://wp.nippombashi.net</link>
	<description></description>
	<lastBuildDate>Sat, 11 Nov 2023 00:20:08 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://wp.nippombashi.net/wp-content/uploads/2023/11/1699794885-b77cecaa254887cd3d80a87e07b11ccb-32x32.png</url>
	<title>ネットワーク | Nemuの研究室</title>
	<link>https://wp.nippombashi.net</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>NanoPi R4SのWireGuard性能を試す</title>
		<link>https://wp.nippombashi.net/archives/2898</link>
					<comments>https://wp.nippombashi.net/archives/2898#respond</comments>
		
		<dc:creator><![CDATA[owner]]></dc:creator>
		<pubDate>Fri, 23 Sep 2022 00:40:37 +0000</pubDate>
				<category><![CDATA[Armbian]]></category>
		<category><![CDATA[ネットワーク]]></category>
		<guid isPermaLink="false">https://wp.nippombashi.net/?p=2898</guid>

					<description><![CDATA[テストについて ARM CPU搭載デバイスはx86機と比べ非常に消費電力が低くかつ安価に入手できる。 これを友人の家に置いてVPN環境を作るにあたりどれくらいの速度が出るのか 先ずはローカルで検証していきたい。 Nano [&#8230;]]]></description>
										<content:encoded><![CDATA[<h2>テストについて</h2>
<p>ARM CPU搭載デバイスはx86機と比べ非常に消費電力が低くかつ安価に入手できる。<br />
これを友人の家に置いてVPN環境を作るにあたりどれくらいの速度が出るのか<br />
先ずはローカルで検証していきたい。</p>
<h2>NanoPi R4Sとは</h2>
<p>FriendlyElec製のオープンハードで1GbpsのLANポートが2口あり<br />
ルータ用途として最適である。<br />
CPUには<a rel="noopener" href="https://www.rock-chips.com/a/en/products/RK33_Series/2016/0419/758.html" target="_blank">Rockchip RK3399</a>(6 core)が使われておりルータとして十分な処理能力を持っている。</p>
<p>■<a rel="noopener" href="https://www.friendlyelec.com/index.php?route=product/product&#038;product_id=284" target="_blank">NanoPi R4S</a><br />
CPU : 6コア (2GHz A72 x2 + 1.5GHz A53 x4)<br />
RAM : 4GB<br />
電源 : 5V3A USB TYPE-C<br />
※裸の状態ではRK3399の熱を処理できないのでMetalCaseの購入をおすすめする。</p>
<p><img fetchpriority="high" decoding="async" src="https://wp.nippombashi.net/wp-content/uploads/2022/09/1663893168-04137ea7155af40ff804e4bb07c54ea7-800x452.png" alt="" width="800" height="452" class="alignnone size-large wp-image-2944" srcset="https://wp.nippombashi.net/wp-content/uploads/2022/09/1663893168-04137ea7155af40ff804e4bb07c54ea7-800x452.png 800w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663893168-04137ea7155af40ff804e4bb07c54ea7-400x226.png 400w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663893168-04137ea7155af40ff804e4bb07c54ea7-768x434.png 768w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663893168-04137ea7155af40ff804e4bb07c54ea7-120x68.png 120w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663893168-04137ea7155af40ff804e4bb07c54ea7-160x90.png 160w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663893168-04137ea7155af40ff804e4bb07c54ea7-320x180.png 320w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663893168-04137ea7155af40ff804e4bb07c54ea7.png 1231w" sizes="(max-width: 800px) 100vw, 800px" /></p>
<h2>テスト環境</h2>
<h3>NanoPi R4S</h3>
<p>4GBRAM with MetalCase構成のR4Sを2台使用する。</p>
<h3>OS</h3>
<p>それぞれにArmbianをインストールする。<br />
Armbian 22.08.1 Jammy with Linux 5.15.62-rockchip64</p>
<p>※「<a rel="noopener" href="https://github.com/armbian/build" target="_blank">Armbian Linux Build Framework</a>」を使ってminimal構成で<a href="https://wp.nippombashi.net/archives/2854" target="_blank">ビルド</a>したもの</p>
<h3>カーネルパラメータ</h3>
<p>以下に設定を変更している。</p>
<pre>net.core.rmem_max = 33554432
net.core.wmem_max = 33554432
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr</pre>
<h3>LANポート</h3>
<p>R4Sには1GbEのポートが2つある。</p>
<p>WAN(CPU直結)<br />
LAN(PCIe変換)</p>
<p>LANはSSH接続用、WANは計測用として使用する。</p>
<p>ELECOMのCAT6AケーブルをR4SのWANポートに接続する。<br />
※スイッチは挟まない。</p>
<h4>注意事項</h4>
<p>NanoPiはMACアドレスがユニークではなく固定である。<br />
同じモデルのNanoPiを同一ネットワークに接続する際は<br />
MACアドレスの変更が必要だ。</p>
<pre>vim /etc/network/interfaces

# 以下追加(MACアドレスは適当に生成する)
hwaddress ether xx:xx:xx:xx:xx:xx</pre>
<h3>iperf3テスト</h3>
<p>WireGuardのテストを行う前にiperf3でテストを行っておく。<br />
R4S(1)をサーバ、R4S(2)をクライアントとし計測を行った。</p>
<p><a href="https://wp.nippombashi.net/wp-content/uploads/2022/09/1663891909-23ed0e2446bfc07a60c96d45e30db07a.png"><img decoding="async" src="https://wp.nippombashi.net/wp-content/uploads/2022/09/1663891909-23ed0e2446bfc07a60c96d45e30db07a-397x500.png" alt="" width="397" height="500" class="alignnone size-medium wp-image-2925" srcset="https://wp.nippombashi.net/wp-content/uploads/2022/09/1663891909-23ed0e2446bfc07a60c96d45e30db07a-397x500.png 397w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663891909-23ed0e2446bfc07a60c96d45e30db07a-794x1000.png 794w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663891909-23ed0e2446bfc07a60c96d45e30db07a-768x967.png 768w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663891909-23ed0e2446bfc07a60c96d45e30db07a.png 960w" sizes="(max-width: 397px) 100vw, 397px" /></a></p>
<p>平均940Mbpsで安定している。<br />
メーカーのテスト値と同じ結果となった。<br />
<a href="https://wp.nippombashi.net/wp-content/uploads/2022/09/1663892026-7fc5d8663463961abb094b3b25326542.png"><img decoding="async" src="https://wp.nippombashi.net/wp-content/uploads/2022/09/1663892026-7fc5d8663463961abb094b3b25326542-400x136.png" alt="" width="400" height="136" class="alignnone size-medium wp-image-2928" srcset="https://wp.nippombashi.net/wp-content/uploads/2022/09/1663892026-7fc5d8663463961abb094b3b25326542-400x136.png 400w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663892026-7fc5d8663463961abb094b3b25326542-800x273.png 800w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663892026-7fc5d8663463961abb094b3b25326542-768x262.png 768w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663892026-7fc5d8663463961abb094b3b25326542.png 1305w" sizes="(max-width: 400px) 100vw, 400px" /></a></p>
<h3>WireGuardテスト</h3>
<p>R4S(1)をサーバ、R4S(2)をクライアントとし計測を行った。<br />
尚、WireGuardでは[PresharedKey]を設定している。</p>
<p><a href="https://wp.nippombashi.net/wp-content/uploads/2022/09/1663892487-a483b61f2c5a124f2893010b73a0f5ca.png"><img loading="lazy" decoding="async" src="https://wp.nippombashi.net/wp-content/uploads/2022/09/1663892487-a483b61f2c5a124f2893010b73a0f5ca-385x500.png" alt="" width="385" height="500" class="alignnone size-medium wp-image-2934" srcset="https://wp.nippombashi.net/wp-content/uploads/2022/09/1663892487-a483b61f2c5a124f2893010b73a0f5ca-385x500.png 385w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663892487-a483b61f2c5a124f2893010b73a0f5ca-770x1000.png 770w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663892487-a483b61f2c5a124f2893010b73a0f5ca-768x998.png 768w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663892487-a483b61f2c5a124f2893010b73a0f5ca.png 963w" sizes="(max-width: 385px) 100vw, 385px" /></a></p>
<p>平均530Mbps程。<br />
予想より遅かったのでcpu governorをperformanceに設定し再度テスト。</p>
<p><a href="https://wp.nippombashi.net/wp-content/uploads/2022/09/1663892695-5db0fe953f8fabc0b2cecbdbe58b5562.png"><img loading="lazy" decoding="async" src="https://wp.nippombashi.net/wp-content/uploads/2022/09/1663892695-5db0fe953f8fabc0b2cecbdbe58b5562-400x487.png" alt="" width="400" height="487" class="alignnone size-medium wp-image-2936" srcset="https://wp.nippombashi.net/wp-content/uploads/2022/09/1663892695-5db0fe953f8fabc0b2cecbdbe58b5562-400x487.png 400w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663892695-5db0fe953f8fabc0b2cecbdbe58b5562-800x975.png 800w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663892695-5db0fe953f8fabc0b2cecbdbe58b5562-768x936.png 768w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663892695-5db0fe953f8fabc0b2cecbdbe58b5562.png 965w" sizes="(max-width: 400px) 100vw, 400px" /></a></p>
<p>平均630Mbpsに速度が上がった。<br />
そこまで劇的に上がってないので、消費電力を考えるとondemandで良いような気がする。</p>
<p>2回目のテスト時のCPU使用率は以下<br />
<a href="https://wp.nippombashi.net/wp-content/uploads/2022/09/1663893023-12e66b311ed845d210eff47203b7d788.png"><img loading="lazy" decoding="async" src="https://wp.nippombashi.net/wp-content/uploads/2022/09/1663893023-12e66b311ed845d210eff47203b7d788-800x128.png" alt="" width="800" height="128" class="alignnone size-large wp-image-2940" srcset="https://wp.nippombashi.net/wp-content/uploads/2022/09/1663893023-12e66b311ed845d210eff47203b7d788-800x128.png 800w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663893023-12e66b311ed845d210eff47203b7d788-400x64.png 400w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663893023-12e66b311ed845d210eff47203b7d788-768x123.png 768w, https://wp.nippombashi.net/wp-content/uploads/2022/09/1663893023-12e66b311ed845d210eff47203b7d788.png 1537w" sizes="(max-width: 800px) 100vw, 800px" /></a></p>
<p>CPUを使い切ってないのが気になるが、個人宅を結ぶVPNとしては十分だろう。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://wp.nippombashi.net/archives/2898/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Chrome（Canary）でHTTP/3を試してみる</title>
		<link>https://wp.nippombashi.net/archives/435</link>
					<comments>https://wp.nippombashi.net/archives/435#respond</comments>
		
		<dc:creator><![CDATA[owner]]></dc:creator>
		<pubDate>Sat, 28 Sep 2019 04:22:30 +0000</pubDate>
				<category><![CDATA[ネットワーク]]></category>
		<guid isPermaLink="false">https://wp.nippombashi.net/?p=435</guid>

					<description><![CDATA[先日Cloudflareからこのようなメールが届いた。 どうやらうちのドメインがHTTP/3の機能にアクセスできるようになった模様。 コンパネにはHTTP/3の切り替えボタンが登場していた。 メールのリンクよりChrom [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>先日<a rel="noopener" href="https://www.cloudflare.com/ja-jp/" target="_blank">Cloudflare</a>からこのようなメールが届いた。<br />
どうやらうちのドメインがHTTP/3の機能にアクセスできるようになった模様。<br />
<a href="https://wp.nippombashi.net/wp-content/uploads/2019/09/1569644806-076ddb4b22218c12dd3bac1923e429b4.png"><img loading="lazy" decoding="async" src="https://wp.nippombashi.net/wp-content/uploads/2019/09/1569644806-076ddb4b22218c12dd3bac1923e429b4-300x190.png" alt="" width="300" height="190" class="alignnone size-medium wp-image-453" srcset="https://wp.nippombashi.net/wp-content/uploads/2019/09/1569644806-076ddb4b22218c12dd3bac1923e429b4-300x190.png 300w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569644806-076ddb4b22218c12dd3bac1923e429b4-530x336.png 530w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569644806-076ddb4b22218c12dd3bac1923e429b4-565x358.png 565w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569644806-076ddb4b22218c12dd3bac1923e429b4.png 610w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>コンパネにはHTTP/3の切り替えボタンが登場していた。<br />
<a href="https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642429-3c8bf8eaf6966cb75efbef3438d7ed0f.png"><img loading="lazy" decoding="async" src="https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642429-3c8bf8eaf6966cb75efbef3438d7ed0f-300x170.png" alt="" width="300" height="170" class="alignnone size-medium wp-image-438" srcset="https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642429-3c8bf8eaf6966cb75efbef3438d7ed0f-300x170.png 300w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642429-3c8bf8eaf6966cb75efbef3438d7ed0f-768x436.png 768w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642429-3c8bf8eaf6966cb75efbef3438d7ed0f-1024x581.png 1024w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642429-3c8bf8eaf6966cb75efbef3438d7ed0f-320x180.png 320w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642429-3c8bf8eaf6966cb75efbef3438d7ed0f-530x301.png 530w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642429-3c8bf8eaf6966cb75efbef3438d7ed0f-565x321.png 565w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642429-3c8bf8eaf6966cb75efbef3438d7ed0f-710x403.png 710w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642429-3c8bf8eaf6966cb75efbef3438d7ed0f-725x411.png 725w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642429-3c8bf8eaf6966cb75efbef3438d7ed0f.png 1313w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p><a rel="noopener" href="https://blog.cloudflare.com/http3-the-past-present-and-future/#how-do-i-enable-http-3-for-my-domain/" target="_blank">メールのリンクより</a>Chromeのデベロッパー向けビルド<a rel="noopener" href="https://www.google.com/intl/ja/chrome/canary/" target="_blank">Canary</a>がHTTP/3に対応しているようなのでインストール。<br />
引数を追記し<br />
<a href="https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642577-160f856c285f2c7892bf562668e25ca8.png"><img loading="lazy" decoding="async" src="https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642577-160f856c285f2c7892bf562668e25ca8-182x300.png" alt="" width="182" height="300" class="alignnone size-medium wp-image-440" srcset="https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642577-160f856c285f2c7892bf562668e25ca8-182x300.png 182w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642577-160f856c285f2c7892bf562668e25ca8-321x530.png 321w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642577-160f856c285f2c7892bf562668e25ca8-343x565.png 343w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642577-160f856c285f2c7892bf562668e25ca8-431x710.png 431w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642577-160f856c285f2c7892bf562668e25ca8-440x725.png 440w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642577-160f856c285f2c7892bf562668e25ca8.png 484w" sizes="(max-width: 182px) 100vw, 182px" /></a></p>
<p>確認してみると・・・！<br />
<a href="https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642799-337509a2dcfde09bc64abde0a5e92c59.png"><img loading="lazy" decoding="async" src="https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642799-337509a2dcfde09bc64abde0a5e92c59-300x110.png" alt="" width="300" height="110" class="alignnone size-medium wp-image-444" srcset="https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642799-337509a2dcfde09bc64abde0a5e92c59-300x110.png 300w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642799-337509a2dcfde09bc64abde0a5e92c59-768x280.png 768w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642799-337509a2dcfde09bc64abde0a5e92c59-1024x374.png 1024w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642799-337509a2dcfde09bc64abde0a5e92c59-530x194.png 530w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642799-337509a2dcfde09bc64abde0a5e92c59-565x206.png 565w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642799-337509a2dcfde09bc64abde0a5e92c59-710x259.png 710w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642799-337509a2dcfde09bc64abde0a5e92c59-725x265.png 725w, https://wp.nippombashi.net/wp-content/uploads/2019/09/1569642799-337509a2dcfde09bc64abde0a5e92c59.png 1038w" sizes="(max-width: 300px) 100vw, 300px" /></a></p>
<p>PLTをHTTP/2と比べてみたがあまり変わらず。<br />
ネットワーク環境が悪いと変化が見れるのではと思い、<br />
VPNで海外を経由して試してみたが同じ結果に。<br />
パケットロスが発生する環境だと違った結果になっていたかもしれない。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://wp.nippombashi.net/archives/435/feed</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
