<?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>Network Archives - Tom Barbette</title>
	<atom:link href="https://perso.uclouvain.be/tom.barbette/category/passions/network/feed/" rel="self" type="application/rss+xml" />
	<link>https://perso.uclouvain.be/tom.barbette/category/passions/network/</link>
	<description></description>
	<lastBuildDate>Sun, 15 Nov 2026 17:25:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2022/04/cropped-logo-uclouvain-2021-barbette-32x32.png</url>
	<title>Network Archives - Tom Barbette</title>
	<link>https://perso.uclouvain.be/tom.barbette/category/passions/network/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Tired of SSH and Claude getting frozen when you switch to WiFi? Use MPTCP on macOS!</title>
		<link>https://perso.uclouvain.be/tom.barbette/tired-of-ssh-and-claude-getting-frozen-when-you-switch-to-wifi-use-mptcp-on-macos/</link>
		
		<dc:creator><![CDATA[Tom Barbette]]></dc:creator>
		<pubDate>Wed, 07 Oct 2026 13:25:42 +0000</pubDate>
				<category><![CDATA[Network]]></category>
		<guid isPermaLink="false">https://perso.uclouvain.be/tom.barbette/?p=6066</guid>

					<description><![CDATA[<p>Undock, and everything freezes Most of my work happens on remote Linux servers, through VS Code Remote-SSH, and more and more with Claude Code running inside that remote session. My MacBook sits on a dock with an Ethernet cable most of the day. Every time I unplug it to walk to a meeting, everything freezes: &#8230; </p>
<p class="link-more"><a href="https://perso.uclouvain.be/tom.barbette/tired-of-ssh-and-claude-getting-frozen-when-you-switch-to-wifi-use-mptcp-on-macos/" class="more-link">Continue reading<span class="screen-reader-text"> "Tired of SSH and Claude getting frozen when you switch to WiFi? Use MPTCP on macOS!"</span></a></p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/tired-of-ssh-and-claude-getting-frozen-when-you-switch-to-wifi-use-mptcp-on-macos/">Tired of SSH and Claude getting frozen when you switch to WiFi? Use MPTCP on macOS!</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Undock, and everything freezes</h2>



<p class="wp-block-paragraph">Most of my work happens on remote Linux servers, through VS Code Remote-SSH, and more and more with Claude Code running inside that remote session. My MacBook sits on a dock with an Ethernet cable most of the day. Every time I unplug it to walk to a meeting, everything freezes: the terminal, the VS Code window, and Claude Code in the middle of a task. Nothing comes back until the dead TCP connection times out and VS Code reconnects. And the Claude session did not advance while I was away.</p>



<p class="wp-block-paragraph">The reason is TCP itself. A TCP connection is bound to one source address, and when the Ethernet address disappears, the connection has nowhere to go. Multipath TCP (<a href="https://datatracker.ietf.org/doc/html/rfc8684" target="_blank" rel="noopener">RFC 8684</a>, introduce by my beloved colleague Olivier Bonaventure) fixes exactly this: one connection runs over several subflows, one per interface, and traffic moves from the Ethernet subflow to the WiFi one without the application noticing. Linux supports it since kernel 5.6, and macOS has an MPTCP client in its kernel. But it&#8217;s nearly hidden !</p>



<p class="wp-block-paragraph">So the question was simple: how do I make ssh on macOS open MPTCP connections? The answer took longer than expected. It ends with <a href="https://github.com/UCLouvain-ENSG/ssh-mptcp" target="_blank" rel="noopener">ssh-mptcp</a>, a 300-line ProxyCommand that works with any ssh client, VS Code included. And yes, Claude did the 300 lines by himself. Thanks Claude.</p>



<h2 class="wp-block-heading">Demo</h2>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="MPTCP on MacOS with a simple Proxy jump" width="525" height="295" src="https://www.youtube.com/embed/hkhqbTNozUQ?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<div class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex">
<div class="wp-block-button"><a class="wp-block-button__link wp-element-button" href="https://www.youtube.com/watch?v=hkhqbTNozUQ">Video</a></div>
</div>



<h2 class="wp-block-heading">TL;DR</h2>



<p class="wp-block-paragraph">On the Mac, with the Xcode command line tools installed:</p>



<pre class="wp-block-code"><code>git clone https://github.com/UCLouvain-ENSG/ssh-mptcp.git
cd ssh-mptcp
make &amp;&amp; make install   # installs ~/.local/bin/ssh-mptcp
make check             # prints "You are using MPTCP." if your Mac can do MPTCP</code></pre>



<p class="wp-block-paragraph">Then, in <code>~/.ssh/config</code>, for the servers you care about:</p>



<pre class="wp-block-code"><code>Host *
    ProxyCommand ~/.local/bin/ssh-mptcp %h %p</code></pre>



<p class="wp-block-paragraph">That is all on the client side. VS Code Remote-SSH reads the same file, so it needs no extra setting. The server must speak MPTCP too: it&#8217;s as easy as installing mptcpize and running &#8220;mptpize enable sshd&#8221;.</p>



<h2 class="wp-block-heading">The search</h2>



<h3 class="wp-block-heading">OpenSSH does not want it</h3>



<p class="wp-block-paragraph">The obvious first stop is a recent OpenSSH with an MPTCP option. There is none. Native support was proposed twice, in <a href="https://github.com/openssh/openssh-portable/pull/335" target="_blank" rel="noopener">PR #335</a> and <a href="https://github.com/openssh/openssh-portable/pull/547" target="_blank" rel="noopener">PR #547</a>, and the maintainers declined both: they do not want a protocol that is only available on some of the platforms OpenSSH supports. Linux is reaching nearly 100% of top computer, and nearly all servers. iOS and MacOS supports it. In Android it&#8217;s just not activated. On Desktop, only Windows is left<a href="https://perso.uclouvain.be/tom.barbette/mptcp-on-windows-with-wsl2/" data-type="link" data-id="https://perso.uclouvain.be/tom.barbette/mptcp-on-windows-with-wsl2/"> but we also have a solution</a>. So yes, I&#8217;m a bit pissed off <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /> </p>



<h3 class="wp-block-heading">The Linux tricks do not work on macOS</h3>



<p class="wp-block-paragraph">macOS has no <code>IPPROTO_MPTCP</code>. The kernel does have an <code>AF_MULTIPATH</code> socket family, used through <code>connectx(2)</code>, but it is undocumented and, according to <a target="_blank" rel="noopener" href="https://www.mptcp.dev/faq.html#what-are-the-supported-operating-systems">mptcp.dev</a>, it creates MPTCP connections without the extra subflows that make them useful. The supported way in is Network.framework: <code>nw_parameters_set_multipath_service()</code>, available since macOS 10.14, as the <a target="_blank" rel="noopener" href="https://www.mptcp.dev/macOS.html">mptcp.dev macOS guide</a> explains. So whatever opens the connection has to go through Network.framework, not through a socket.</p>



<h3 class="wp-block-heading">Apple already patched ssh, sort of</h3>



<p class="wp-block-paragraph">This is where it gets interesting. Apple ships its own fork of OpenSSH, and its <a target="_blank" rel="noopener" href="https://github.com/apple-oss-distributions/OpenSSH/blob/main/openssh/sshconnect.c">sshconnect.c</a> already connects through Network.framework. It also has a hidden, undocumented option, <code>AppleMultipath</code>, present since Apple&#8217;s OpenSSH-281.40.2 release (July 2022). When it is set, ssh asks for <code>nw_multipath_service_handover</code> through a private call, <code>nw_parameters_create_legacy_tcp_socket()</code>, and extracts the kernel socket from the connection, so there is no relay process.</p>



<p class="wp-block-paragraph">On paper, <code>AppleMultipath yes</code> in <code>~/.ssh/config</code> is all you need. In practice, it is fragile:</p>



<ul class="wp-block-list">
<li>Homebrew&#8217;s ssh refuses the option.</li>



<li>Apple&#8217;s code skips the Network.framework path, and multipath with it, whenever <code>ConnectTimeout</code>, <code>ConnectionAttempts</code>, <code>ProxyJump</code>, <code>ProxyCommand</code> or hostname canonicalization is set, or when the destination is an IP address.</li>
</ul>



<p class="wp-block-paragraph">In my tests, with Apple&#8217;s ssh and the option accepted, tcpdump still showed a SYN with no MPTCP option at all, to a server that does speak MPTCP. I did not find out why: the private call is closed source.</p>



<h3 class="wp-block-heading">The result: ssh-mptcp</h3>



<p class="wp-block-paragraph">Instead of patching ssh, I moved the connection out of it. ssh already knows how to delegate its transport: <code>ProxyCommand</code> starts a program and speaks SSH over its stdin and stdout. <a target="_blank" rel="noopener" href="https://github.com/UCLouvain-ENSG/ssh-mptcp">ssh-mptcp</a> is that program, about 300 lines of C on the public Network.framework API:</p>



<ol class="wp-block-list">
<li>ssh starts <code>ssh-mptcp host port</code>.</li>



<li>ssh-mptcp creates an <code>nw_connection</code> to the server with plain TCP parameters, <code>TCP_NODELAY</code>, and <code>nw_parameters_set_multipath_service()</code>. Network.framework resolves the name, races IPv4 and IPv6, and asks the kernel for an MPTCP connection.</li>



<li>Once connected, two loops relay the bytes: stdin to <code>nw_connection_send()</code>, and <code>nw_connection_receive()</code> to stdout.</li>



<li>When the Ethernet cable goes, the kernel moves the connection to the WiFi subflow. ssh, and everything running over it, never sees it.</li>
</ol>



<p class="wp-block-paragraph"><a href="https://github.com/UCLouvain-ENSG/ssh-mptcp">https://github.com/UCLouvain-ENSG/ssh-mptcp</a></p>



<p class="wp-block-paragraph">ssh only talks to a pipe. The MPTCP connection and its subflows live in the kernel, so losing the Ethernet subflow changes nothing above it.</p>



<p class="wp-block-paragraph">Network.framework never hands out the underlying socket, so ssh-mptcp has to stay in the middle and copy the bytes, rather than pass a file descriptor back to ssh with <code>ProxyUseFdpass</code>. At SSH speeds, the extra process and the extra copy do not matter.</p>



<p class="wp-block-paragraph">The <code>-m</code> option picks one of the three modes Apple defines:</p>



<ul class="wp-block-list">
<li><code>handover</code> only uses another interface once the primary one is lost.</li>



<li><code>interactive</code>, the default, also switches when the primary interface suffers loss or delay. It picks the lowest-latency path, which is what an interactive SSH session wants.</li>



<li><code>aggregate</code> spreads the traffic over all interfaces. macOS refuses it to third-party programs unless you run <code>sudo sysctl net.inet.mptcp.allow_aggregate=1</code>.</li>
</ul>



<p class="wp-block-paragraph">With <code>-v</code>, ssh-mptcp logs the interfaces in use and every path change to stderr, which is the easiest way to watch a handover happen. Because it is a plain <code>ProxyCommand</code>, it works with Apple&#8217;s ssh, Homebrew&#8217;s ssh, <code>git</code>, <code>rsync</code>, and VS Code Remote-SSH alike.</p>



<h2 class="wp-block-heading">Server side</h2>



<p class="wp-block-paragraph">macOS only does MPTCP as a client, so the other end must be a Linux server (kernel 5.6 or later, <code>net.mptcp.enabled = 1</code>) whose sshd listens on an MPTCP socket. If it does not, the connection falls back to plain TCP: ssh still works, but the session will not survive the switch.</p>



<p class="wp-block-paragraph">That&#8217;s actually easy, just install mptcpize and run &#8220;sudo mptcpize enable sshd&#8221; and the sshd service will be prefixed by a preloader that will change TCP by MPTCP. Don&#8217;t worry, MPTCP always fallbacks to TCP.</p>



<h2 class="wp-block-heading">SSH gateway</h2>



<p class="wp-block-paragraph">Do you need to do this on all your server? No ! SSH ProxyCommands can be changed. Probably if your work has a bit of sense about security, you already have to hop through an SSH gateway. </p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph">That will enable to hop throu a SSH gateway (a machine just justed to hop through SSH) :</p>



<pre class="wp-block-code"><code>Host *_via_proxy
    User XXX
    ProxyCommand ssh -o StrictHostKeyChecking=no -A -X -Y -q &#91;gateway address] -W $(basename %h _via_proxy):%p
</code></pre>



<p class="wp-block-paragraph">That will use ssh-mptcp as a hop for all destination :</p>



<pre class="wp-block-code"><code>Host *
    ControlMaster auto
    ControlPath /tmp/.ssh.%h
    ServerAliveInterval 1
    ServerAliveCountMax 300
    ProxyCommand ~/workspace/openssh-mptcp/ssh-mptcp -m interactive %h %p</code></pre>



<p class="wp-block-paragraph">The controlsocket is unrelated but allows to reuse a single connection to multiplex all client connections. More efficient and the server does not thing it&#8217;s DDOSed when you have many many connection.</p>



<p class="wp-block-paragraph">With that, using ssh google.com_via_proxy will connect to google.com, via MPTCP, via your proxy.</p>



<h2 class="wp-block-heading">Limitations</h2>



<p class="wp-block-paragraph">ssh-mptcp only covers what goes through ssh. Anything else on the Mac, including the Claude app&#8217;s own connections, still uses plain TCP, and MPTCP would also need the remote end to support it. The server must run MPTCP, and a middlebox on the path can strip the options, in which case the connection quietly falls back to TCP. macOS cannot accept MPTCP connections, so this does not help with a Mac acting as a server.</p>



<h2 class="wp-block-heading">Conclusion</h2>



<p class="wp-block-paragraph">MPTCP on macOS has been one API call away for years, but nothing in the ssh toolchain makes that call reliably, and the one place Apple did it is hidden and fragile. A small ProxyCommand on the public API is enough: my remote sessions, VS Code, and the Claude Code agent running inside them now survive leaving the dock. The code, README and build instructions are on <a target="_blank" rel="noopener" href="https://github.com/UCLouvain-ENSG/ssh-mptcp">GitHub</a>, under the MIT license. If you are on Windows, my older post on <a target="_blank" rel="noopener" href="https://perso.uclouvain.be/tom.barbette/mptcp-on-windows-with-wsl2/">MPTCP with WSL2</a> covers the same use case there.</p>



<h2 class="wp-block-heading">Sources</h2>



<ul class="wp-block-list">
<li><a href="https://github.com/UCLouvain-ENSG/ssh-mptcp" target="_blank" rel="noopener">ssh-mptcp on GitHub</a></li>



<li><a href="https://datatracker.ietf.org/doc/html/rfc8684" target="_blank" rel="noopener">RFC 8684, TCP Extensions for Multipath Operation with Multiple Addresses</a></li>



<li><a href="https://www.mptcp.dev/faq.html" target="_blank" rel="noopener">mptcp.dev FAQ: MPTCP with OpenSSH, supported operating systems</a></li>



<li><a href="https://www.mptcp.dev/macOS.html" target="_blank" rel="noopener">mptcp.dev: MPTCP on macOS with Network.framework</a></li>



<li><a href="https://github.com/openssh/openssh-portable/pull/335" target="_blank" rel="noopener">openssh-portable PR #335</a> and <a href="https://github.com/openssh/openssh-portable/pull/547" target="_blank" rel="noopener">PR #547</a></li>



<li><a href="https://github.com/apple-oss-distributions/OpenSSH/blob/main/openssh/sshconnect.c" target="_blank" rel="noopener">Apple&#8217;s OpenSSH, sshconnect.c</a></li>



<li><a href="https://github.com/apple-oss-distributions/xnu" target="_blank" rel="noopener">XNU sources</a> (bsd/netinet/mptcp_usrreq.c, tcp_cache.c)</li>



<li><a href="https://developer.apple.com/documentation/network/nw_multipath_service_t" target="_blank" rel="noopener">Apple documentation: nw_multipath_service_t</a></li>



<li><a href="https://github.com/multipath-tcp/mptcp-check" target="_blank" rel="noopener">mptcp-check, the server behind check.mptcp.dev</a></li>
</ul>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/tired-of-ssh-and-claude-getting-frozen-when-you-switch-to-wifi-use-mptcp-on-macos/">Tired of SSH and Claude getting frozen when you switch to WiFi? Use MPTCP on macOS!</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Multi-End QUIC: A Transport Protocol to Enable One-to-Many Communications</title>
		<link>https://perso.uclouvain.be/tom.barbette/multiend/</link>
		
		<dc:creator><![CDATA[Tom Barbette]]></dc:creator>
		<pubDate>Thu, 04 Dec 2025 09:10:51 +0000</pubDate>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Research project]]></category>
		<guid isPermaLink="false">https://perso.uclouvain.be/tom.barbette/?p=5613</guid>

					<description><![CDATA[<p>El Mehdi Makhroute, Quentin De Coninck, Tom Barbette The Internet has shifted from an end-to-end paradigm to an end-to-ends paradigm, i.e. to serve a provider&#8217;s content (e.g. a web page, an app feed, …) the client must connect to many ends to fetch various types of resources like web documents, pictures, scripts, news feed, videos, &#8230; </p>
<p class="link-more"><a href="https://perso.uclouvain.be/tom.barbette/multiend/" class="more-link">Continue reading<span class="screen-reader-text"> "Multi-End QUIC: A Transport Protocol to Enable One-to-Many Communications"</span></a></p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/multiend/">Multi-End QUIC: A Transport Protocol to Enable One-to-Many Communications</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-embed"><div class="wp-block-embed__wrapper">
https://dl.acm.org/doi/10.1145/3769700.3771696
</div></figure>



<p class="wp-block-paragraph"><a href="https://dl.acm.org/doi/10.1145/3769700.3771696#">El Mehdi Makhroute</a>, <a href="https://dl.acm.org/doi/10.1145/3769700.3771696#">Quentin De Coninck</a>, <a href="https://dl.acm.org/doi/10.1145/3769700.3771696#">Tom Barbette</a><a href="https://dl.acm.org/doi/10.1145/3769700.3771696#tab-contributors"></a></p>



<figure class="wp-block-image size-full"><a href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/12/image.png"><img fetchpriority="high" decoding="async" width="826" height="164" src="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/12/image.png" alt="" class="wp-image-5623" srcset="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/12/image.png 826w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/12/image-300x60.png 300w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/12/image-768x152.png 768w" sizes="(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px" /></a></figure>



<p class="wp-block-paragraph">The Internet has shifted from an end-to-end paradigm to an end-to-ends paradigm, i.e. to serve a provider&#8217;s content (e.g. a web page, an app feed, …) the client must connect to many ends to fetch various types of resources like web documents, pictures, scripts, news feed, videos, etc… However, even the recent QUIC transport protocol failed to catch up with this change of paradigm, and the user is forced to waste many round-trip times to fetch the entire content from multiple servers. In this paper, we propose Multi-End QUIC, an extension of Multipath QUIC that enables the establishment of sub-streams directly to backend servers or third-party servers. Multi-End QUIC alleviates the need for proxies in the edge that re-encode and delay those sub-streams, that is able to bypass the relays entirely. This leads to a ~50% latency improvement in a preliminary experiment.</p>



<div data-wp-interactive="core/file" class="wp-block-file"><object data-wp-bind--hidden="!state.hasPdfPreview" hidden class="wp-block-file__embed" data="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/12/conext25-sw-final14.pdf" type="application/pdf" style="width:100%;height:600px" aria-label="Embed of paper."></object><a id="wp-block-file--media-2f4791c9-e0a3-496c-adb8-291aa1184a7f" href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/12/conext25-sw-final14.pdf">paper</a><a href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/12/conext25-sw-final14.pdf" class="wp-block-file__button wp-element-button" download aria-describedby="wp-block-file--media-2f4791c9-e0a3-496c-adb8-291aa1184a7f">Download</a></div>



<p class="wp-block-paragraph"><a href="https://dl.acm.org/doi/10.1145/3769700.3771696">acm</a></p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/multiend/">Multi-End QUIC: A Transport Protocol to Enable One-to-Many Communications</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>OpenDesc at HotNets&#8217;25 !</title>
		<link>https://perso.uclouvain.be/tom.barbette/opendesc/</link>
		
		<dc:creator><![CDATA[Tom Barbette]]></dc:creator>
		<pubDate>Tue, 18 Nov 2025 16:14:42 +0000</pubDate>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Research project]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://perso.uclouvain.be/tom.barbette/?p=5533</guid>

					<description><![CDATA[<p>Our paper &#8220;OpenDesc: From Static NIC Descriptors to EvolvableMetadata Interfaces&#8221; will be presented today at HotNets&#8217;25. In OpenDesc, we propose to use P4 as an interface to define packet descriptors. OpenDesc enables to expose NIC capabilities and match them with application intents. We propose a prototype compiler to generate accessors that can directly extract metadata &#8230; </p>
<p class="link-more"><a href="https://perso.uclouvain.be/tom.barbette/opendesc/" class="more-link">Continue reading<span class="screen-reader-text"> "OpenDesc at HotNets&#8217;25 !"</span></a></p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/opendesc/">OpenDesc at HotNets&#8217;25 !</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Our paper <em>&#8220;OpenDesc: From Static NIC Descriptors to Evolvable<br>Metadata Interfaces&#8221;</em> will be presented today at HotNets&#8217;25. </p>



<figure class="wp-block-image size-large"><a href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/11/Screenshot-2025-11-18-at-17-16-03-OpenDesc-From-Static-NIC-Descriptors-to-Evolvable-Metadata-Interfaces-OpenDesc-5.pdf.png"><img decoding="async" width="1024" height="423" src="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/11/Screenshot-2025-11-18-at-17-16-03-OpenDesc-From-Static-NIC-Descriptors-to-Evolvable-Metadata-Interfaces-OpenDesc-5.pdf-1024x423.png" alt="" class="wp-image-5573" srcset="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/11/Screenshot-2025-11-18-at-17-16-03-OpenDesc-From-Static-NIC-Descriptors-to-Evolvable-Metadata-Interfaces-OpenDesc-5.pdf-1024x423.png 1024w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/11/Screenshot-2025-11-18-at-17-16-03-OpenDesc-From-Static-NIC-Descriptors-to-Evolvable-Metadata-Interfaces-OpenDesc-5.pdf-300x124.png 300w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/11/Screenshot-2025-11-18-at-17-16-03-OpenDesc-From-Static-NIC-Descriptors-to-Evolvable-Metadata-Interfaces-OpenDesc-5.pdf-768x317.png 768w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/11/Screenshot-2025-11-18-at-17-16-03-OpenDesc-From-Static-NIC-Descriptors-to-Evolvable-Metadata-Interfaces-OpenDesc-5.pdf-1536x635.png 1536w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/11/Screenshot-2025-11-18-at-17-16-03-OpenDesc-From-Static-NIC-Descriptors-to-Evolvable-Metadata-Interfaces-OpenDesc-5.pdf.png 1612w" sizes="(max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px" /></a></figure>



<p class="wp-block-paragraph">In OpenDesc, we propose to use P4 as an interface to define packet descriptors. OpenDesc enables to expose NIC capabilities and match them with application intents. We propose a prototype compiler to generate accessors that can directly extract metadata from a negotiated NIC descriptor without the need for intermediate data structures like sk_buff, xdp_sock, rte_mbuf &amp; cie.</p>



<p class="wp-block-paragraph"><em>Read more below!</em></p>



<div data-wp-interactive="core/file" class="wp-block-file"><object data-wp-bind--hidden="!state.hasPdfPreview" hidden class="wp-block-file__embed" data="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/11/OpenDesc-5.pdf" type="application/pdf" style="width:100%;height:600px" aria-label="Embed of OpenDesc."></object><a id="wp-block-file--media-e16f8335-8397-41b8-ba8f-f53385cef3b9" href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/11/OpenDesc-5.pdf">OpenDesc</a><a href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/11/OpenDesc-5.pdf" class="wp-block-file__button wp-element-button" download aria-describedby="wp-block-file--media-e16f8335-8397-41b8-ba8f-f53385cef3b9">Download</a></div>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/opendesc/">OpenDesc at HotNets&#8217;25 !</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Flexicast QUIC: Rethinking Multicast for the QUIC Era in SIGCOMM CCR</title>
		<link>https://perso.uclouvain.be/tom.barbette/flexicast-quic-rethinking-multicast-for-the-quic-era-in-sigcomm-ccr/</link>
		
		<dc:creator><![CDATA[Tom Barbette]]></dc:creator>
		<pubDate>Wed, 03 Sep 2025 13:10:13 +0000</pubDate>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Research project]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://perso.uclouvain.be/tom.barbette/?p=5423</guid>

					<description><![CDATA[<p>Our latest paper with Louis Navarre, Quentin de Coninck, Tom Barbette and Olivier Bonaventure has recently appeared in SIGCOMM CCR! In short: Flexicast QUIC brings multicast back to the Internet by blending it with unicast, all within QUIC. It offers scalability where multicast works, and robustness where it doesn’t — making it a practical transport &#8230; </p>
<p class="link-more"><a href="https://perso.uclouvain.be/tom.barbette/flexicast-quic-rethinking-multicast-for-the-quic-era-in-sigcomm-ccr/" class="more-link">Continue reading<span class="screen-reader-text"> "Flexicast QUIC: Rethinking Multicast for the QUIC Era in SIGCOMM CCR"</span></a></p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/flexicast-quic-rethinking-multicast-for-the-quic-era-in-sigcomm-ccr/">Flexicast QUIC: Rethinking Multicast for the QUIC Era in SIGCOMM CCR</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Our latest paper with Louis Navarre, Quentin de Coninck, Tom Barbette and Olivier Bonaventure has recently appeared in SIGCOMM CCR!</p>



<p class="wp-block-paragraph"><strong>In short:</strong> Flexicast QUIC brings multicast back to the Internet by blending it with unicast, all within QUIC. It offers scalability where multicast works, and robustness where it doesn’t — making it a practical transport for the next generation of large-scale applications.</p>



<div data-wp-interactive="core/file" class="wp-block-file"><object data-wp-bind--hidden="!state.hasPdfPreview" hidden class="wp-block-file__embed" data="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/09/Flexicast_QUIC_CCR.pdf" type="application/pdf" style="width:100%;height:600px" aria-label="Embed of Flexicast_QUIC_CCR."></object><a id="wp-block-file--media-c0257b1f-1775-4bab-9ff7-2f911f678927" href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/09/Flexicast_QUIC_CCR.pdf">Flexicast_QUIC_CCR</a><a href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/09/Flexicast_QUIC_CCR.pdf" class="wp-block-file__button wp-element-button" download aria-describedby="wp-block-file--media-c0257b1f-1775-4bab-9ff7-2f911f678927">Download</a></div>



<p class="wp-block-paragraph"><a href="https://dl.acm.org/doi/10.1145/3750832.3750834">acm</a> ;  <a href="https://github.com/IPNetworkingLab/flexicast-quic" target="_blank" rel="noreferrer noopener">code</a></p>



<p class="wp-block-paragraph"><strong>In long:</strong></p>



<p class="wp-block-paragraph">When distributing live video, software updates, or cloud gaming streams, today’s Internet almost exclusively relies on <strong>unicast</strong>: each receiver gets its own copy of the data. This is simple and robust but highly inefficient, especially when thousands of receivers consume the same content. The cost is felt both at the sender — which must generate and encrypt per-receiver packets — and in the network, which carries redundant traffic.</p>



<p class="wp-block-paragraph"><strong>Multicast</strong> was designed decades ago to solve exactly this problem: a source transmits once, and routers replicate packets along a multicast tree. But despite its promise, multicast never became mainstream on the global Internet. It is difficult to deploy across ISPs, hard to monetize, and fragile — applications always need to fall back to unicast anyway. Most content providers gave up and built massive unicast infrastructures instead.</p>



<p class="wp-block-paragraph">With the wide deployment of <strong>QUIC</strong>, a modern transport protocol running above UDP, there is a chance to revisit multicast — not at the IP layer, but directly at the transport layer. This is where <strong>Flexicast QUIC</strong> comes in.</p>



<figure class="wp-block-image size-large"><a href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/09/fcquic.png"><img loading="lazy" decoding="async" width="1024" height="471" src="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/09/fcquic-1024x471.png" alt="" class="wp-image-5463" srcset="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/09/fcquic-1024x471.png 1024w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/09/fcquic-300x138.png 300w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/09/fcquic-768x354.png 768w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/09/fcquic.png 1336w" sizes="auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px" /></a><figcaption class="wp-element-caption">FlexiCast uses a multicast stream shared between users, and individual unicast streams to send feedback or act as a fallback. The feedback is used to send more FEC frame to compensate loss, and if the client can&#8217;t keep up, use unicast as a fallback.</figcaption></figure>



<h2 class="wp-block-heading">The Idea of Flexicast QUIC</h2>



<p class="wp-block-paragraph">Flexicast QUIC, presented in our <em>SIGCOMM CCR 2025</em> paper, extends <strong>Multipath QUIC</strong> to combine the efficiency of multicast with the reliability of unicast. The idea is to make multicast <em>flexible</em>:</p>



<ul class="wp-block-list">
<li>Each receiver gets a <strong>unicast QUIC path</strong> for control and fallback.</li>



<li>The sender also establishes a <strong>flexicast flow</strong>: a shared, unidirectional path encrypted with a common key and intended for all receivers.</li>



<li>If multicast routing is available, this flow is carried efficiently through the network. If not, the sender can still replicate the packets itself and deliver them over unicast.</li>
</ul>



<p class="wp-block-paragraph">Receivers can join or leave the flexicast flow at any time. If multicast fails for one receiver, it automatically falls back to unicast — without affecting others. All this happens within the same QUIC connection, so applications don’t need to juggle two protocols.</p>



<h2 class="wp-block-heading">Key Design Points</h2>



<p class="wp-block-paragraph">Flexicast QUIC builds on QUIC’s extensible design:</p>



<ul class="wp-block-list">
<li><strong>Per-path keys</strong>: unlike regular Multipath QUIC, each unicast path and the flexicast flow use distinct encryption keys.</li>



<li><strong>Reliability</strong>: acknowledgments are sent over unicast paths, aggregated at the sender to avoid the classic <em>ack implosion</em> problem.</li>



<li><strong>Congestion control</strong>: the sender maintains per-receiver congestion states. If one receiver drags the group down, it can be removed from the flexicast flow and served over unicast.</li>
</ul>



<h2 class="wp-block-heading">Implementation and Results</h2>



<p class="wp-block-paragraph">We implemented Flexicast QUIC in <strong>Cloudflare’s quiche</strong> library (Rust), adding ~10,000 lines of code and 5,000 lines of tests. The evaluation was run on CloudLab and emulated networks.</p>



<figure class="wp-block-image size-full"><a href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/09/fc-perf.png"><img loading="lazy" decoding="async" width="971" height="965" src="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/09/fc-perf.png" alt="" class="wp-image-5483" srcset="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/09/fc-perf.png 971w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/09/fc-perf-300x298.png 300w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/09/fc-perf-150x150.png 150w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/09/fc-perf-768x763.png 768w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2025/09/fc-perf-100x100.png 100w" sizes="auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px" /></a><figcaption class="wp-element-caption">FlexiCast can scale much better than pure QUIC delivery</figcaption></figure>



<h3 class="wp-block-heading">Scalability</h3>



<ul class="wp-block-list">
<li><strong>Unicast QUIC</strong>: saturates at ~200 receivers (~20 Gbps). CPU is the bottleneck, as every packet must be encrypted per receiver.</li>



<li><strong>Flexicast QUIC</strong>: supports <strong>1000 receivers</strong> and delivers <strong>>80 Gbps</strong>, over 4× higher throughput than unicast QUIC, with acceptable CPU usage.</li>



<li>With a small acknowledgment delay (5 ms), Flexicast QUIC perfectly matches the ideal UDP baseline.</li>
</ul>



<p class="wp-block-paragraph">Even without multicast in the network, Flexicast QUIC still helps: the sender can replicate encrypted packets using <code>sendmmsg</code>, which is far cheaper than generating per-receiver packets.</p>



<h3 class="wp-block-heading">Robustness</h3>



<p class="wp-block-paragraph">We tested Flexicast QUIC with a 5 Mbps live video stream under failing multicast trees. Some receivers randomly lost multicast connectivity, forcing fallback to unicast. Results:</p>



<ul class="wp-block-list">
<li>Other receivers were unaffected.</li>



<li>Video quality stayed excellent (SSIM > 0.99 for 99.4% of frames).</li>



<li>Latency remained low, with only small tail increases during recovery.</li>
</ul>



<p class="wp-block-paragraph">This shows Flexicast QUIC provides seamless continuity even when multicast is unreliable.</p>



<h2 class="wp-block-heading">Why It Matters</h2>



<p class="wp-block-paragraph">Flexicast QUIC makes multicast practical again:</p>



<ul class="wp-block-list">
<li><strong>Efficient</strong>: one packet can serve thousands of receivers.</li>



<li><strong>Robust</strong>: unicast fallback is built-in, so failures don’t break the stream.</li>



<li><strong>Practical</strong>: works today, even without multicast routers.</li>



<li><strong>Deployable</strong>: it’s just QUIC — already used by major Internet services.</li>
</ul>



<p class="wp-block-paragraph">This makes it promising for content delivery networks, software updates, and live streaming at scale.</p>



<h2 class="wp-block-heading">What’s Next?</h2>



<p class="wp-block-paragraph">Our future work will explore:</p>



<ul class="wp-block-list">
<li><strong>Forward Erasure Correction</strong> to improve reliability.</li>



<li><strong>Smarter flow control</strong> for heterogeneous receivers.</li>



<li><strong>Source authentication</strong> to defend against spoofed multicast traffic.</li>



<li><strong>Multiple flexicast flows</strong> (e.g., different video bitrates).</li>



<li><strong>Dynamic key rotation</strong> for large, changing groups.</li>



<li><strong>Inter-domain deployment</strong> using AMT and TreeDN.</li>



<li><strong>New use cases</strong> like software updates or gaming.</li>
</ul>



<p class="wp-block-paragraph">The source code and experiment scripts are open-source: <a href="https://github.com/IPNetworkingLab/flexicast-quic" rel="noreferrer noopener" target="_blank">Flexicast QUIC on GitHub</a>.</p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/flexicast-quic-rethinking-multicast-for-the-quic-era-in-sigcomm-ccr/">Flexicast QUIC: Rethinking Multicast for the QUIC Era in SIGCOMM CCR</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Power consumption of Home Routers</title>
		<link>https://perso.uclouvain.be/tom.barbette/power-consumption-of-home-routers/</link>
		
		<dc:creator><![CDATA[Tom Barbette]]></dc:creator>
		<pubDate>Tue, 02 Apr 2024 13:41:04 +0000</pubDate>
				<category><![CDATA[Network]]></category>
		<guid isPermaLink="false">https://perso.uclouvain.be/tom.barbette/?p=3023</guid>

					<description><![CDATA[<p>I wanted to explore a bit about the power consumptions of CPEs in Belgian ISPs. This blogpost is not to be considered research-grade, it&#8217;s more a hobbyist&#8217;s peak into the power consumption of the equipment. My main questions were: is there a significative power consumption difference between ISPs (inside consumer&#8217;s homes). And more importantly: is &#8230; </p>
<p class="link-more"><a href="https://perso.uclouvain.be/tom.barbette/power-consumption-of-home-routers/" class="more-link">Continue reading<span class="screen-reader-text"> "Power consumption of Home Routers"</span></a></p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/power-consumption-of-home-routers/">Power consumption of Home Routers</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">I wanted to explore a bit about the power consumptions of CPEs in Belgian ISPs. This blogpost is not to be considered research-grade, it&#8217;s more a hobbyist&#8217;s peak into the power consumption of the equipment.</p>



<p class="wp-block-paragraph">My main questions were: is there a significative power consumption difference between ISPs (inside consumer&#8217;s homes). And more importantly: is there a &#8220;hidden&#8221; cost behind some ISP. And finally, does the network usage impact the power consumption.</p>



<p class="wp-block-paragraph">I switched ISPs 3 times in a row, and I give here a graph (taken from Home Assistant which is recording the measures from a TP-Link P110 plug) and a CSV file for the same period.</p>



<h2 class="wp-block-heading">Voo</h2>



<figure class="wp-block-image size-large"><a href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2023/12/image-2.png"><img loading="lazy" decoding="async" width="1024" height="182" src="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2023/12/image-2-1024x182.png" alt="" class="wp-image-3063" srcset="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2023/12/image-2-1024x182.png 1024w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2023/12/image-2-300x53.png 300w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2023/12/image-2-768x136.png 768w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2023/12/image-2.png 1415w" sizes="auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px" /></a></figure>



<div class="wp-block-file"><a id="wp-block-file--media-c86dda97-bcb9-4925-b94b-9ad31c043a3d" href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2023/12/voo_entities-2023-12-12_14_27_12.csv">voo_entities-2023-12-12_14_27_12</a><a href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2023/12/voo_entities-2023-12-12_14_27_12.csv" class="wp-block-file__button wp-element-button" download aria-describedby="wp-block-file--media-c86dda97-bcb9-4925-b94b-9ad31c043a3d">Download</a></div>



<p class="wp-block-paragraph">Before switching to Orange, I captured the consumption of Voo(Cable/Docsis) for a week. The amplifier and modem ensemble consumes around 20.2 watts (note the Y axis, this graph is actually a straight line).</p>



<h2 class="wp-block-heading">Orange</h2>



<figure class="wp-block-image size-full"><a href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2023/12/image-1.png"><img loading="lazy" decoding="async" width="908" height="255" src="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2023/12/image-1.png" alt="" class="wp-image-3043" srcset="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2023/12/image-1.png 908w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2023/12/image-1-300x84.png 300w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2023/12/image-1-768x216.png 768w" sizes="auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px" /></a></figure>



<div class="wp-block-file"><a id="wp-block-file--media-4e536937-63ab-42c5-bf2d-b85d7b1c2f06" href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2023/12/entities-2023-12-12_14_15_59.csv">entities-2023-12-12_14_15_59</a><a href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2023/12/entities-2023-12-12_14_15_59.csv" class="wp-block-file__button wp-element-button" download aria-describedby="wp-block-file--media-4e536937-63ab-42c5-bf2d-b85d7b1c2f06">Download</a></div>



<p class="wp-block-paragraph">I stayed at Orange (Cable/DOCSIS) for about 6 months. The consumption includes the mandatory amplifier and the modem in bridge mode. Note that the amplifier is the same as Voo. The Wi-Fi is deactivated. It seems some update from Orange impacted the consumption, which is now around 16.8 Watts. It is a 3 Watts improvement over Voo, which, for a year represents 26kWh, so roughly 10€ in electricity. </p>



<p class="wp-block-paragraph">I have no explanation for the increase in power at the end of October (another update?). Similarly there are a few spikes in September, it could be false positives I would not make conclusions based on that. This is not related to the traffic pattern, because day-to-day it&#8217;s the same power consumption. I tried to launch a speedtest and observe the instantaneous consumption and I couldn&#8217;t spot any difference.</p>



<h2 class="wp-block-heading">Proximus Fiber</h2>



<p class="wp-block-paragraph">I then switched to Fiber with Proximus, as soon as I could. The connection is much faster: 500Mbps symmetrical.</p>



<p class="wp-block-paragraph">The equipment is divided in two part : the ONT which &#8220;converts&#8221; the fiber to Ethernet, and then the modem that includes a switch, WiFi and telephony.</p>



<figure class="wp-block-image size-large"><a href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/04/image.png"><img loading="lazy" decoding="async" width="1024" height="227" src="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/04/image-1024x227.png" alt="" class="wp-image-4183" srcset="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/04/image-1024x227.png 1024w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/04/image-300x66.png 300w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/04/image-768x170.png 768w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/04/image.png 1164w" sizes="auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px" /></a></figure>



<div class="wp-block-file"><a id="wp-block-file--media-14cb617c-258a-4255-9368-3f3a0dfc5629" href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/04/entities-2024-04-02_15-25-04.csv.zip">entities-2024-04-02_15-25-04.csv</a><a href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/04/entities-2024-04-02_15-25-04.csv.zip" class="wp-block-file__button wp-element-button" download aria-describedby="wp-block-file--media-14cb617c-258a-4255-9368-3f3a0dfc5629">Download</a></div>



<p class="wp-block-paragraph">You observe 3 steps here. At the beginning I had the Modem in router mode, with Wifi activated at 8.5Watts. That&#8217;s what most people would have.</p>



<p class="wp-block-paragraph">Then, the second step at 7Watts is with the Modem in Bridge mode, without WiFi. In bridge mode the modem directly give a public IP address to a single equipment connected to it. Typical for people with their own routers.</p>



<p class="wp-block-paragraph">The modem is Internet Box v1bis by Sagemcom.</p>



<p class="wp-block-paragraph">But one can go further. What I have used since February is directly the ONT at a spectacular 2,75Watts. I don&#8217;t need the modem because I don&#8217;t have fixed telephony, and don&#8217;t use WiFi in my garage. I have my own access points and want my home router anyway to handle my own ICT (I have some websites handle at home, home automation, etc).</p>



<h2 class="wp-block-heading">Conclusion</h2>



<p class="wp-block-paragraph">First, the network usage does not impact the device&#8217;s power consumption. It is not surprising. All those modems are gigabit-capable or even more. The Orange allowance of my subscription is 150 Mbps, Voo was around the same. Hence,<strong> the modem is residing in its idle zone.</strong> With Proximus the ONT &#8220;rises&#8221; to 3 Watts during a speedtest instead of 2,75. It&#8217;s marginal.</p>



<p class="wp-block-paragraph">The second question was the hidden cost. Proximus Fiber equipment drives as low as 8,5 Watts. That&#8217;s a 8,3 Watt reduction from Orange. That&#8217;s 73 kWh/year, at the Belgian average of 0,35€/kWh it&#8217;s roughly <strong>25€ per year</strong> It&#8217;s not nothing, but it&#8217;s not high compared to the price of the subscription itself. If you have no use for the modem, then you gain 14Watts or 123kWh/year. That&#8217;s a more consequent<strong> 43€ saved</strong>.</p>



<p class="wp-block-paragraph"><strong>73kWh is also 2% of the power consumption of the average Belgian household.</strong> Again, not nothing, but probably not the most urgent thing to do for the planet. It&#8217;s already much more than stupid &#8220;advices&#8221; like unplugging transformers of charging a smartphone on solar panels.</p>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/power-consumption-of-home-routers/">Power consumption of Home Routers</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Remove the CPE with Proximus Fiber / Directly connect to the ONT</title>
		<link>https://perso.uclouvain.be/tom.barbette/remove-the-cpe-with-proximus-fiber-directly-connect-to-the-ont/</link>
		
		<dc:creator><![CDATA[Tom Barbette]]></dc:creator>
		<pubDate>Wed, 07 Feb 2024 10:10:46 +0000</pubDate>
				<category><![CDATA[Network]]></category>
		<guid isPermaLink="false">https://perso.uclouvain.be/tom.barbette/?p=3583</guid>

					<description><![CDATA[<p>Removing the Internet Box If you have your own router, there&#8217;s no reason to use Proximus&#8217;s CPE (the Internet Box, which was called BBox in the past). Indeed, the fiber comes with two devices: the ONT, which has a fiber &#8220;in&#8221; and an ethernet port &#8220;out&#8221; (trying to speak to a large audience here), and &#8230; </p>
<p class="link-more"><a href="https://perso.uclouvain.be/tom.barbette/remove-the-cpe-with-proximus-fiber-directly-connect-to-the-ont/" class="more-link">Continue reading<span class="screen-reader-text"> "Remove the CPE with Proximus Fiber / Directly connect to the ONT"</span></a></p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/remove-the-cpe-with-proximus-fiber-directly-connect-to-the-ont/">Remove the CPE with Proximus Fiber / Directly connect to the ONT</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph"><strong>Removing the Internet Box</strong></p>



<p class="wp-block-paragraph">If you have your own router, there&#8217;s no reason to use Proximus&#8217;s CPE (the Internet Box, which was called BBox in the past). Indeed, the fiber comes with two devices: the ONT, which has a fiber &#8220;in&#8221; and an ethernet port &#8220;out&#8221; (trying to speak to a large audience here), and the router itself. The router takes care of WiFi and VoIP (fix phone).</p>



<figure class="wp-block-image size-large is-resized is-style-rounded"><a href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/02/1707305557348-Grande.jpeg"><img loading="lazy" decoding="async" width="1024" height="769" src="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/02/1707305557348-Grande-1024x769.jpeg" alt="Internet Box" class="wp-image-3683" style="width:674px;height:auto" title="The Internet Box" srcset="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/02/1707305557348-Grande-1024x769.jpeg 1024w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/02/1707305557348-Grande-300x225.jpeg 300w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/02/1707305557348-Grande-768x577.jpeg 768w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/02/1707305557348-Grande.jpeg 1280w" sizes="auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px" /></a><figcaption class="wp-element-caption">The Internet Box</figcaption></figure>



<p class="wp-block-paragraph">A lot of people had their modem in &#8220;bridge&#8221; mode already in the past, so they&#8217;d use their own router and WiFi access point. With fiber, using the bridge mode if you don&#8217;t have telephony doesn&#8217;t make any sense, you can just get rid of the Internet Box.</p>



<figure class="wp-block-image size-large"><a href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/02/ont-scaled.jpg"><img loading="lazy" decoding="async" width="1024" height="960" src="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/02/ont-1024x960.jpg" alt="" class="wp-image-3713" srcset="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/02/ont-1024x960.jpg 1024w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/02/ont-300x281.jpg 300w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/02/ont-768x720.jpg 768w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/02/ont-1536x1440.jpg 1536w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2024/02/ont-2048x1920.jpg 2048w" sizes="auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px" /></a><figcaption class="wp-element-caption">The ONT : GE1 can be used directly, without the Internet Box in between</figcaption></figure>



<p class="wp-block-paragraph">It will be the subject of another post, but the gains are substantial in term of electricity consumption. The ONT only consumes around 2.5 Watts. The Internet Box consumes an additional 6.5 Watts that can be removed. So that&#8217;s 56kWh, or around 20euros of electricity per year. It also slows the down the latency by something around 1.5ms, which, knowing the latency with fiber is around 6.7ms without the box is quite consequent.</p>



<h2 class="wp-block-heading"><strong>WAN Connectivity</strong></h2>



<p class="wp-block-paragraph">The following explains how to get connectivity when directly connecting your router to the ONT. This tutorial assumes Ubuntu 22.04. I use ifupdown, like old people instead of the novel netplan, on 22.04 it must be installed:</p>



<pre class="wp-block-code"><code>sudo apt update
sudo apt install ifupdown net-tools</code></pre>



<p class="wp-block-paragraph">The traffic towards the internet must be tagged on the VLAN 20. IP address is given via DHCP. There is no more PPPoE.</p>



<p class="wp-block-paragraph">My interface connected to the ONT is <em>enx00e04c680a48</em></p>



<p class="wp-block-paragraph"><strong>/etc/network/interfaces</strong></p>



<pre class="wp-block-code"><code>auto enx00e04c680a48
iface enx00e04c680a48 inet manual
	post-up /etc/network/enable_vlan.sh
iface enx00e04c680a48 inet6 manual

allow-hotplug internet0
iface internet0 inet dhcp
iface internet0 inet6 auto
        dhcp 1
        request_prefix 1
  	accept_ra 2</code></pre>



<p class="wp-block-paragraph"><strong>/etc/network/enable_vlan.sh</strong></p>



<pre class="wp-block-code"><code>#/bin/bash
ip link add link enx00e04c680a48 name internet0 type vlan id 20
exit 0</code></pre>



<p class="wp-block-paragraph">The <em>exit 0</em> part is an awful trick to avoid failing if the vlan is already created (for instance if you do sudo service networking restart).</p>



<p class="wp-block-paragraph">That&#8217;s it. If you restart the networking service, you&#8217;ll get both an IPv4 address and an IPv6 /64 range. Interestingly, you get the /64 prefix through RA, but for your local network, you may use DHCPv6 to get a /56 range. It&#8217;s quite practical because you don&#8217;t have to subdivide the /56 range yourself.</p>



<pre class="wp-block-code"><code>internet0: flags=4163&lt;UP,BROADCAST,RUNNING,MULTICAST&gt;  mtu 1500
        inet 91.178.XX.XX netmask 255.255.240.0  broadcast 91.178.207.255
        inet6 2a02:a03f:XXXX:XXXX:cd9e:7208:f4b:2751  prefixlen 64  scopeid 0x0&lt;global&gt;
        inet6 2a02:a03f:XXXX:XXXX:2e0:4cff:fe68:a48  prefixlen 64  scopeid 0x0&lt;global&gt;
        inet6 2a02:a03f:XXXX:XXXX:ff8d:359a:c3c6:86d3  prefixlen 64  scopeid 0x0&lt;global&gt;
        inet6 2a02:a03f:XXXX:XXXX:f308:aacb:a438:6322  prefixlen 64  scopeid 0x0&lt;global&gt;
        inet6 2a02:a03f:XXXX:XXXX:d800:106e:5a53:6d86  prefixlen 64  scopeid 0x0&lt;global&gt;
        inet6 fe80::2e0:4cff:fe68:a48  prefixlen 64  scopeid 0x20&lt;link&gt;
        inet6 2a02:a03f:XXXX:XXXX:8c4e:b44b:2fa8:ec27  prefixlen 64  scopeid 0x0&lt;global&gt;
        inet6 2a02:a03f:XXXX:XXXX:fc26:be7c:b9fd:dc0  prefixlen 64  scopeid 0x0&lt;global&gt;
        inet6 2a02:a03f:XXXX:XXXX:45b3:1bcb:7aef:5adf  prefixlen 64  scopeid 0x0&lt;global&gt;
        ether 00:e0:4c:XX:XX:XX  txqueuelen 1000  (Ethernet)
        RX packets 27423813  bytes 32859906931 (32.8 GB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 21693717  bytes 7316444742 (7.3 GB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0</code></pre>



<h2 class="wp-block-heading"><strong>LAN Connectivity</strong></h2>



<p class="wp-block-paragraph">For IPv4, it&#8217;s just standard NAT. For IPv6 you must enable IPv6 prefix delegation.</p>



<p class="wp-block-paragraph">First, enable IP forwarding. If you have a firewall, remember to allow the FORWARDING traffic.</p>



<p class="wp-block-paragraph"><strong>/etc/sysctl.conf</strong></p>



<pre class="wp-block-code"><code>#Uncomment the following lines
net.ipv4.ip_forward=1
net.ipv6.conf.all.forwarding=1</code></pre>



<p class="wp-block-paragraph">To enable the NAT, either you directly add an IPTables rules somewhere:</p>



<p class="wp-block-paragraph">sudo iptables -A POSTROUTING -s 192.168.1.0/24 -o internet0 -j MASQUERADE</p>



<p class="wp-block-paragraph">Or, you add the following line for the UFW firewall, in /etc/ufw/before.rules:</p>



<p class="wp-block-paragraph">-A POSTROUTING -s 192.168.1.0/24 -o internet0 -j MASQUERADE</p>



<p class="wp-block-paragraph">In both cases, change your local network range according to your setup.</p>



<p class="wp-block-paragraph"><strong>IPv6 Prefix Delegation</strong></p>



<p class="wp-block-paragraph">You have to add the following script found at https://wiki.debian.org/IPv6PrefixDelegation in <strong>/etc/dhcp/dhclient-exit-hooks.d/prefix_delegation</strong>:</p>



<pre class="wp-block-code"><code># This script assigns a delegated IPv6 prefix obtained via DHCPv6 to another interface
#
# Usage: This scrips is designed to be called from dhclient-script (isc-dhcp-client).
#
# LOCATION: /etc/dhcp/dhclient-exit-hooks.d/prefix_delegation
# RECOMMENDED PACKAGES: ipv6calc

# CONFIGURATION OPTIONS

# Define the interface to which a delegated prefix will be assigned
# This must not be the same interface on which the prefix is learned!
IA_PD_IFACE="br0"

# Provide a space separated list of services that need to be restarted or reloaded after a prefix change
# Services must be controllable via systemd's systemctl, the default action is restart
# Service names may be followed by a colon and action name, to override the default action
# Supported actions are: restart and reload
# Example: IA_PD_SERVICES="shorewall6:reload dnsmasq"
IA_PD_SERVICES=""

# Define the location of the ipv6calc executable, if installed
# If this is empty or no executable file, no EUI-64 based IPv6 address will be calculated for the interface set in IA_PD_IFACE; instead, a static interface identifier (::1) will be appended to the prefix
# Example: IA_PD_IPV6CALC="/usr/bin/ipv6calc"
IA_PD_IPV6CALC=""

# Set to yes to make logging more verbose
IA_PD_DEBUG="yes"

# END OF CONFIGURATION OPTIONS

logger -t "dhcpv6-pd" -p daemon.info "DHCPv6-PD is running"

fn_calc_ip6addr() {
        &#91; -z "$1" ] &amp;&amp; return
        local ia_pd_mac
        local ia_pd_addr
        &#91; -e "/sys/class/net/${IA_PD_IFACE}/address" ] &amp;&amp; ia_pd_mac="$(cat /sys/class/net/${IA_PD_IFACE}/address)"
        if &#91; -n "$ia_pd_mac" ] &amp;&amp; &#91; -n "$IA_PD_IPV6CALC" ] &amp;&amp; &#91; -x "$IA_PD_IPV6CALC" ]; then
                &#91; "$IA_PD_DEBUG" = "yes" ] &amp;&amp; logger -t "dhcpv6-pd" -p daemon.debug "Debug: Determined MAC address $ia_pd_mac for interface $IA_PD_IFACE."
                ia_pd_addr="$("$IA_PD_IPV6CALC" -I prefix+mac -A prefixmac2ipv6 -O ipv6addr "$1" "$ia_pd_mac")"
        fi
        if &#91; -z "$ia_pd_addr" ]; then
                &#91; "$IA_PD_DEBUG" = "yes" ] &amp;&amp; logger -t "dhcpv6-pd" -p daemon.debug "Debug: Failed to calculate EUI-64 based IPv6 address, using static client suffix ::1 instead."
                echo "$1" | sed 's#::/#::1/#'
        else
                echo "$ia_pd_addr"
        fi
}

fn_restart_services() {
        if &#91; -n "$IA_PD_SERVICES" ]; then
                local pair
                local action
                local daemon
                for pair in $IA_PD_SERVICES ; do
                        action="$(echo "$pair" | cut -d':' -f2)"
                        daemon="$(echo "$pair" | cut -d':' -f1)"
                        # Check if a valid action was provided or default to 'restart'
                        case $action in
                                reload) action="reload";;
                                *)      action="restart";;
                        esac
                        # Check if daemon is active before trying to restart or reload it (avoids non-zero exit code)
                        if ! systemctl -q is-active "${daemon}.service" &gt; /dev/null ; then
                                logger -t "dhcpv6-pd" -p daemon.info "Info: $daemon is inactive. No $action required."
                                continue
                        fi
                        if systemctl -q "$action" "${daemon}.service" &gt; /dev/null ; then
                                logger -t "dhcpv6-pd" -p daemon.info "Info: Performed $action of $daemon due to change of IPv6 prefix."
                        else
                                logger -t "dhcpv6-pd" -p daemon.err "Error: Failed to perform $action of $daemon after change of IPv6 prefix."
                        fi
                done
        elif &#91; "$IA_PD_DEBUG" = "yes" ]; then
                logger -t "dhcpv6-pd" -p daemon.debug "Debug: No list of services to restart or reload defined."
        fi
}

fn_remove_prefix() {
        &#91; -z "$1" ] &amp;&amp; return
        &#91; "$IA_PD_DEBUG" = "yes" ] &amp;&amp; logger -t "dhcpv6-pd" -p daemon.debug "Debug: Old prefix $1 expired."
        if &#91; "$(ip -6 addr show dev "$IA_PD_IFACE" scope global | wc -l)" -gt 0 ]; then
                logger -t "dhcpv6-pd" -p daemon.info "Info: Flushing global IPv6 addresses from interface $IA_PD_IFACE."
                if ! ip -6 addr flush dev "$IA_PD_IFACE" scope global ; then
                        logger -t "dhcpv6-pd" -p daemon.err "Error: Failed to flush global IPv6 addresses from interface $IA_PD_IFACE."
                        return
                fi
                # Restart services in case there is no new prefix to assign
                &#91; -z "$new_ip6_prefix" ] &amp;&amp; fn_restart_services
        elif &#91; "$IA_PD_DEBUG" = "yes" ]; then
                logger -t "dhcpv6-pd" -p daemon.debug "Debug: No global IPv6 addresses assigned to interface $IA_PD_IFACE."
        fi
}

fn_assign_prefix() {
        &#91; -z "$1" ] &amp;&amp; return
        local new_ia_pd_addr
        new_ia_pd_addr="$(fn_calc_ip6addr "$1")"
        if &#91; -z "$new_ia_pd_addr" ]; then
                logger -t "dhcpv6-pd" -p daemon.err "Error: Failed to calculate address for interface $IA_PD_IFACE and prefix $1"
                return
        fi
        &#91; "$IA_PD_DEBUG" = "yes" ] &amp;&amp; logger -t "dhcpv6-pd" -p daemon.debug "Debug: Received new prefix $1."
        # dhclient may return an old_ip6_prefix even after a reboot, so manually check if the address is already assigned to the interface
        if &#91; "$(ip -6 addr show dev "$IA_PD_IFACE" | grep -c "$new_ia_pd_addr")" -lt 1 ]; then
                logger -t "dhcpv6-pd" -p daemon.info "Info: Adding new address $new_ia_pd_addr to interface $IA_PD_IFACE."
                if ! ip -6 addr add "$new_ia_pd_addr" dev "$IA_PD_IFACE" ; then
                        logger -t "dhcpv6-pd" -p daemon.err "Error: Failed to add new address $new_ia_pd_addr to interface $IA_PD_IFACE."
                        return
                fi
                fn_restart_services
        elif &#91; "$IA_PD_DEBUG" = "yes" ]; then
                logger -t "dhcpv6-pd" -p daemon.debug "Debug: Address $new_ia_pd_addr already assigned to interface $IA_PD_IFACE."
        fi
}

# Only execute on specific occasions
case $reason in
        BOUND6|EXPIRE6|REBIND6|REBOOT6|RENEW6)
                # Only execute if either an old or a new prefix is defined
                if &#91; -n "$old_ip6_prefix" ] || &#91; -n "$new_ip6_prefix" ]; then
                        # Check if interface is defined and exits
                        if &#91; -z "$IA_PD_IFACE" ] || &#91; ! -e "/sys/class/net/${IA_PD_IFACE}" ]; then
                                logger -t "dhcpv6-pd" -p daemon.err "Error: Interface ${IA_PD_IFACE:-&lt;undefined&gt;} not found. Cannot assign delegated prefix!"
                        	ls -al /sys/class/net/
			else
                                # Remove old prefix if it differs from new prefix
                                &#91; -n "$old_ip6_prefix" ] &amp;&amp; &#91; "$old_ip6_prefix" != "$new_ip6_prefix" ] &amp;&amp; fn_remove_prefix "$old_ip6_prefix"
                                # Assign new prefix
                                &#91; -n "$new_ip6_prefix" ] &amp;&amp; fn_assign_prefix "$new_ip6_prefix"
                        fi
                fi
                ;;
esac
</code></pre>



<p class="wp-block-paragraph">Don&#8217;t forget to change the few first configuration lines. My LAN network is &#8220;br0&#8221; because I use a bridge over multiple interfaces.</p>



<p class="wp-block-paragraph">That script will get the DHCP-assigned range and add it to the LAN interface. We still need to enable RADVD to advertise the prefix on the lan:</p>



<pre class="wp-block-code"><code>sudo apt-get install radvd
sudo update-rc.d radvd enable</code></pre>



<p class="wp-block-paragraph"><strong>/etc/radvd.conf</strong></p>



<pre class="wp-block-code"><code>interface br0 # LAN interface
{
  AdvManagedFlag off; # no DHCPv6 server here.
  AdvOtherConfigFlag off; # not even for options.
  AdvSendAdvert on;
  AdvDefaultPreference high;
  AdvLinkMTU 1280;
  prefix ::/64
  {
    AdvOnLink on;
    AdvAutonomous on;
  };
};</code></pre>



<p class="wp-block-paragraph">And that&#8217;s all. Note we don&#8217;t need wide-dhcp-client anymore, which anyway<a href="https://github.com/opnsense/dhcp6c/issues/35"> has a blocking bug and seems to be unmaintained</a>. dhclient is able to do everything we need, given the script for prefix delegation.</p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/remove-the-cpe-with-proximus-fiber-directly-connect-to-the-ont/">Remove the CPE with Proximus Fiber / Directly connect to the ONT</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Creating a VLAN in Netberg 710 P4 switch</title>
		<link>https://perso.uclouvain.be/tom.barbette/creating-a-vlan-in-netberg-710-p4-switch/</link>
		
		<dc:creator><![CDATA[Tom Barbette]]></dc:creator>
		<pubDate>Mon, 15 May 2023 16:34:21 +0000</pubDate>
				<category><![CDATA[Network]]></category>
		<guid isPermaLink="false">https://perso.uclouvain.be/tom.barbette/?p=1863</guid>

					<description><![CDATA[<p>The P4 switch has a “normal switch” mode that is using SONIC and comes with a P4 dataplane compiled and flashed, nothing to compile using Tofino or whatsoever.  This is useful when one of the switch is not used for an experiment and you want to simply wire machines virtually. Creating a L2 bridge or &#8230; </p>
<p class="link-more"><a href="https://perso.uclouvain.be/tom.barbette/creating-a-vlan-in-netberg-710-p4-switch/" class="more-link">Continue reading<span class="screen-reader-text"> "Creating a VLAN in Netberg 710 P4 switch"</span></a></p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/creating-a-vlan-in-netberg-710-p4-switch/">Creating a VLAN in Netberg 710 P4 switch</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">The P4 switch has a “normal switch” mode that is using SONIC and comes with a P4 dataplane compiled and flashed, nothing to compile using Tofino or whatsoever.  This is useful when one of the switch is not used for an experiment and you want to simply wire machines virtually.</p>



<p class="wp-block-paragraph"><strong>Creating a L2 bridge or a VLAN</strong>&nbsp;</p>



<p class="wp-block-paragraph">By default, the switch boots with all interface in Router mode. They have (random 10.0&#8230;) IPs. To use those interface as a switch, you must remove the IPs before adding them to&nbsp;a vlan or you will get the error “Ethernet0 is a router interface”&nbsp;</p>



<p class="wp-block-paragraph">$ show ip interfaces&nbsp;</p>



<p class="wp-block-paragraph">Interface&nbsp;&nbsp;&nbsp; Master&nbsp;&nbsp;&nbsp; IPv4 address/mask&nbsp;&nbsp;&nbsp; Admin/Oper&nbsp;&nbsp;&nbsp; BGP Neighbor&nbsp;&nbsp;&nbsp; Neighbor IP&nbsp;</p>



<p class="wp-block-paragraph">&#8212;&#8212;&#8212;&#8211;&nbsp; &#8212;&#8212;&#8211;&nbsp; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&nbsp; &#8212;&#8212;&#8212;&#8212;&nbsp; &#8212;&#8212;&#8212;&#8212;&#8211;&nbsp; &#8212;&#8212;&#8212;&#8212;-&nbsp;</p>



<p class="wp-block-paragraph">…&nbsp;</p>



<p class="wp-block-paragraph">Ethernet8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10.0.0.4/31&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; up/down&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ARISTA03T2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10.0.0.&nbsp;</p>



<p class="wp-block-paragraph">Ethernet12&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10.0.0.6/31&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; up/down&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ARISTA04T2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10.0.0.7&nbsp;</p>



<p class="wp-block-paragraph">&#8230;&nbsp;</p>



<p class="wp-block-paragraph">Remove all IPv4 IPs from the interface with, for instance&#8230;&nbsp;</p>



<p class="wp-block-paragraph">$ sudo config interface ip remove Ethernet0 10.0.0.0/31&nbsp;</p>



<p class="wp-block-paragraph">Then, disable IPv6 link-local addresses with :&nbsp;</p>



<p class="wp-block-paragraph">$ sudo config ipv6 disable link-local&nbsp;</p>



<p class="wp-block-paragraph">And for each interface :&nbsp;</p>



<p class="wp-block-paragraph">$ sudo config interface ipv6 disable use-link-local-only Ethernet0&nbsp;</p>



<p class="wp-block-paragraph">Then save the config and reboot as the IPv6 link local will stay&nbsp;</p>



<p class="wp-block-paragraph">$ sudo config save –y&nbsp;</p>



<p class="wp-block-paragraph">$ sudo reboot&nbsp;</p>



<p class="wp-block-paragraph">After a reboot, create the Vlan with :&nbsp;</p>



<p class="wp-block-paragraph">$ sudo config vlan add 10&nbsp;</p>



<p class="wp-block-paragraph">And add interfaces with :&nbsp;</p>



<p class="wp-block-paragraph">$ sudo config vlan member add -u 10 Ethernet0&nbsp;</p>



<p class="wp-block-paragraph">Personally, I saved and rebooted again afterward but it might have not be working beforehand due to an interface reset on the machines.</p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/creating-a-vlan-in-netberg-710-p4-switch/">Creating a VLAN in Netberg 710 P4 switch</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>A collection of Network Systems icons in SVG</title>
		<link>https://perso.uclouvain.be/tom.barbette/a-collection-of-network-systems-icons-in-svg/</link>
		
		<dc:creator><![CDATA[Tom Barbette]]></dc:creator>
		<pubDate>Mon, 29 Aug 2022 13:02:21 +0000</pubDate>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Research project]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[icons]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[svg]]></category>
		<guid isPermaLink="false">https://www.tombarbette.be/?p=1233</guid>

					<description><![CDATA[<p>You can use mine as you wish, I tried to find the original authors and the appropriate license whenever I could. Don&#8217;t hesitate to send me your own.</p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/a-collection-of-network-systems-icons-in-svg/">A collection of Network Systems icons in SVG</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">You can use mine as you wish, I tried to find the original authors and the appropriate license whenever I could. Don&#8217;t hesitate to send me your own.</p>



<figure class="wp-block-image size-large is-resized"><a href="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2022/08/NVMe-redone-6.svg"><img loading="lazy" decoding="async" src="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2022/08/NVMe-redone-6.svg" alt="" class="wp-image-1285" width="130" height="215"/></a><figcaption class="wp-element-caption">NAND SSD (inspired from https://commons.wikimedia.org/wiki/File:NAND-ssd.svg, CC )</figcaption></figure>



<figure class="wp-block-image size-large is-resized"><a href="https://www.tombarbette.be/wp-content/uploads/2022/08/Ram-module-simple-3.svg"><img loading="lazy" decoding="async" src="https://www.tombarbette.be/wp-content/uploads/2022/08/Ram-module-simple-3.svg" alt="" class="wp-image-1284" width="141" height="449"/></a><figcaption class="wp-element-caption">RAM Module ( inspired from https://fr.m.wikibooks.org/wiki/Fichier:Ram-module.svg CC)</figcaption></figure>



<figure class="wp-block-image size-large is-resized"><a href="https://www.tombarbette.be/wp-content/uploads/2022/08/cpu_new-2.svg"><img loading="lazy" decoding="async" src="https://www.tombarbette.be/wp-content/uploads/2022/08/cpu_new-2.svg" alt="" class="wp-image-1261" width="247" height="248" srcset="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/cpu_new-2.svg 150w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/cpu_new-2.svg 300w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/cpu_new-2.svg 1024w" sizes="auto, (max-width: 247px) 100vw, 247px" /></a><figcaption class="wp-element-caption">CPU (absed on https://commons.wikimedia.org/wiki/File:Abstract_i7_CPU_icon.svg, CC)</figcaption></figure>



<figure class="wp-block-image size-large is-resized"><a href="https://www.tombarbette.be/wp-content/uploads/2022/08/dpi-1.svg"><img loading="lazy" decoding="async" src="https://www.tombarbette.be/wp-content/uploads/2022/08/dpi-1.svg" alt="" class="wp-image-1262" width="227" height="293"/></a><figcaption class="wp-element-caption">DPI (unsure but I think it&#8217;s my own. Anyway it&#8217;s standard)</figcaption></figure>



<figure class="wp-block-image size-large is-resized"><a href="https://www.tombarbette.be/wp-content/uploads/2022/08/fast-1.svg"><img loading="lazy" decoding="async" src="https://www.tombarbette.be/wp-content/uploads/2022/08/fast-1.svg" alt="" class="wp-image-1263" width="310" height="169"/></a><figcaption class="wp-element-caption">Fast (own)</figcaption></figure>



<p class="wp-block-paragraph"></p>



<figure class="wp-block-image size-large is-resized"><a href="https://www.tombarbette.be/wp-content/uploads/2022/08/gpu-3.svg"><img loading="lazy" decoding="async" src="https://www.tombarbette.be/wp-content/uploads/2022/08/gpu-3.svg" alt="" class="wp-image-1287" width="346" height="226"/></a><figcaption class="wp-element-caption">GPU (own)</figcaption></figure>



<figure class="wp-block-image size-large is-resized"><a href="https://www.tombarbette.be/wp-content/uploads/2022/08/ipsec-1.svg"><img loading="lazy" decoding="async" src="https://www.tombarbette.be/wp-content/uploads/2022/08/ipsec-1.svg" alt="" class="wp-image-1266" width="446" height="175"/></a><figcaption class="wp-element-caption">IPSEC (unsure)</figcaption></figure>



<figure class="wp-block-image size-large is-resized"><a href="https://www.tombarbette.be/wp-content/uploads/2022/08/lb-1.svg"><img loading="lazy" decoding="async" src="https://www.tombarbette.be/wp-content/uploads/2022/08/lb-1.svg" alt="" class="wp-image-1267" width="295" height="293"/></a><figcaption class="wp-element-caption">Load Balancer (unsure)</figcaption></figure>



<figure class="wp-block-image size-large is-resized"><a href="https://www.tombarbette.be/wp-content/uploads/2022/08/monitor-1.svg"><img loading="lazy" decoding="async" src="https://www.tombarbette.be/wp-content/uploads/2022/08/monitor-1.svg" alt="" class="wp-image-1268" width="316" height="299"/></a><figcaption class="wp-element-caption">Monitoring, monitor, measurements (unsure)</figcaption></figure>



<p class="wp-block-paragraph"></p>



<figure class="wp-block-image size-full"><a href="https://www.tombarbette.be/wp-content/uploads/2022/08/nic-mellanox-1.png"><img loading="lazy" decoding="async" width="375" height="298" src="https://www.tombarbette.be/wp-content/uploads/2022/08/nic-mellanox-1.png" alt="" class="wp-image-1269" srcset="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2022/08/nic-mellanox-1.png 375w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2022/08/nic-mellanox-1-300x238.png 300w" sizes="auto, (max-width: 375px) 100vw, 375px" /></a><figcaption class="wp-element-caption">Mellanox NIC (not SVG, Mellanox)</figcaption></figure>



<figure class="wp-block-image size-large is-resized"><a href="https://www.tombarbette.be/wp-content/uploads/2022/08/nic-redone-4.svg"><img loading="lazy" decoding="async" src="https://www.tombarbette.be/wp-content/uploads/2022/08/nic-redone-4.svg" alt="" class="wp-image-1286" width="222" height="145"/></a><figcaption class="wp-element-caption">100G NIC (inspired from the above, consider my own I guess)</figcaption></figure>



<p class="wp-block-paragraph"></p>



<figure class="wp-block-image size-large is-resized"><a href="https://www.tombarbette.be/wp-content/uploads/2022/08/router-2.svg"><img loading="lazy" decoding="async" src="https://www.tombarbette.be/wp-content/uploads/2022/08/router-2.svg" alt="" class="wp-image-1274" width="148" height="148" srcset="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/router-2.svg 150w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/router-2.svg 300w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/router-2.svg 1024w" sizes="auto, (max-width: 148px) 100vw, 148px" /></a><figcaption class="wp-element-caption">Router (unsure, but this is quite sandard&#8230;)</figcaption></figure>



<figure class="wp-block-image size-large is-resized"><a href="https://www.tombarbette.be/wp-content/uploads/2022/08/vlan-2.svg"><img loading="lazy" decoding="async" src="https://www.tombarbette.be/wp-content/uploads/2022/08/vlan-2.svg" alt="" class="wp-image-1276" width="631" height="248"/></a><figcaption class="wp-element-caption">VLAN (own)</figcaption></figure>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/a-collection-of-network-systems-icons-in-svg/">A collection of Network Systems icons in SVG</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Retina: Analyzing 100 GbE Traffic on Commodity Hardware</title>
		<link>https://perso.uclouvain.be/tom.barbette/retina/</link>
		
		<dc:creator><![CDATA[Tom Barbette]]></dc:creator>
		<pubDate>Tue, 02 Aug 2022 08:03:21 +0000</pubDate>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Research project]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://www.tombarbette.be/?p=1218</guid>

					<description><![CDATA[<p>I&#8217;m pleased to announce Retina has been accepted to appear at SIGCOMM at the end of the month ! It is the result of a pleasant collaboration with Gerry Wan, Fengchen Gong and Zakir Durumeric from Stanford. Retina enables high-speed network forensics by building a binary tailored to a specific experiment written in Rust. It &#8230; </p>
<p class="link-more"><a href="https://perso.uclouvain.be/tom.barbette/retina/" class="more-link">Continue reading<span class="screen-reader-text"> "Retina: Analyzing 100 GbE Traffic on Commodity Hardware"</span></a></p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/retina/">Retina: Analyzing 100 GbE Traffic on Commodity Hardware</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">I&#8217;m pleased to announce Retina has been accepted to appear at SIGCOMM at the end of the month ! It is the result of a pleasant collaboration with Gerry Wan, Fengchen Gong and Zakir Durumeric from Stanford.</p>



<p class="wp-block-paragraph">Retina enables high-speed network forensics by building a binary tailored to a specific experiment written in Rust. It provides convenient filtering capabilities to easily answer questions such as &#8220;Is the TLS SNI really random?&#8221; or &#8220;How many TLS handshake are destined to Netflix?&#8221;. Tested at up to 160Gbps with a commodity server on a Stanford traffic TAP, it supports 5-100x higher traffic rates than standard &#8220;bloatware&#8221; IDSes.</p>



<p class="wp-block-paragraph"><a href="https://www.tombarbette.be/wp-content/uploads/2022/08/retina.pdf">paper</a> ; <a href="https://github.com/stanford-esrg/retina">github</a> ; the video will follow after SIGCOMM</p>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/retina/">Retina: Analyzing 100 GbE Traffic on Commodity Hardware</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>MPTCP on Windows with WSL2</title>
		<link>https://perso.uclouvain.be/tom.barbette/mptcp-on-windows-with-wsl2/</link>
		
		<dc:creator><![CDATA[Tom Barbette]]></dc:creator>
		<pubDate>Thu, 28 Apr 2022 14:06:22 +0000</pubDate>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Server management]]></category>
		<category><![CDATA[Unix]]></category>
		<guid isPermaLink="false">https://www.tombarbette.be/?p=1150</guid>

					<description><![CDATA[<p>Limitations It is possible to use MPTCP, but WSL2 uses a virtual interface that prevents advertising multiple paths. There might be a solution using multiple forwarded ports but I haven&#8217;t been able to use it yet. Prerequisite Install Ubuntu in WSL2 (simply look for Ubuntu in the Microsoft Store) Optional: Allow Windows to keep both &#8230; </p>
<p class="link-more"><a href="https://perso.uclouvain.be/tom.barbette/mptcp-on-windows-with-wsl2/" class="more-link">Continue reading<span class="screen-reader-text"> "MPTCP on Windows with WSL2"</span></a></p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/mptcp-on-windows-with-wsl2/">MPTCP on Windows with WSL2</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<h2 class="wp-block-heading">Limitations</h2>



<p class="wp-block-paragraph">It is possible to use MPTCP, but WSL2 uses a virtual interface that prevents advertising multiple paths. There might be a solution using multiple forwarded ports but I haven&#8217;t been able to use it yet.</p>



<h2 class="wp-block-heading">Prerequisite</h2>



<p class="wp-block-paragraph">Install Ubuntu in WSL2 (simply look for Ubuntu in the Microsoft Store)</p>



<h2 class="wp-block-heading">Optional: Allow Windows to keep both Wifi and Ethernet open</h2>



<p class="wp-block-paragraph">Windows will automatically turn off wifi when Ethernet is plugged in. If you want to try MPTCP over Wifi + Ethernet (or 4G through USB, all the same) you must disable this behavior :</p>



<pre class="wp-block-code"><code>1. Open Registry Editor.

2. Go to HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\WcmSvc\Local.

3. Create/change the fMinimizeConnections registry DWORD to 0.

4. Close Registry Editor and reboot.

</code></pre>



<h2 class="wp-block-heading">Step 1 : Install an MPTCP-compatible Kernel (easier than it sounds!)</h2>



<pre class="wp-block-code"><code>sudo apt install build-essential flex bison libssl-dev libelf-dev pahole
git clone https://github.com/microsoft/WSL2-Linux-Kernel.git
cd WSL2-Linux-Kernel
cp Microsoft/config-wsl .config</code></pre>



<p class="wp-block-paragraph">Edit .config and change &#8220;#CONFIG_MPTCP is not set&#8221; by CONFIG_MPTCP=y</p>



<pre class="wp-block-code"><code>make -j4
cp arch/x86/boot/vmlinux.bin /mnt/c/vmlinux</code></pre>



<p class="wp-block-paragraph">Then shut down WSL in a CMD window:</p>



<pre class="wp-block-code"><code>wsl --shutdown</code></pre>



<p class="wp-block-paragraph">And to boot in your new kernel add a file in C:\Users\$USER\.wslconfig</p>



<pre class="wp-block-code"><code>&#91;wsl2]
kernel=C:\vmlinux</code></pre>



<h2 class="wp-block-heading">Step 2 : Install mptcpd</h2>



<p class="wp-block-paragraph">This is to get the &#8220;mptcpize&#8221; command to run a legacy TCP application with mptcp</p>



<pre class="wp-block-code"><code>sudo apt install mptcpd</code></pre>



<h2 class="wp-block-heading">Step 3 : Try it out !</h2>



<pre class="wp-block-code"><code>sudo apt install iperf
sudo tcpdump -i  lo -w capture.pcap
mptcpize run iperf -s
mptcpize run iperf -c 127.0.0.1 -b 1k -l 1</code></pre>



<p class="wp-block-paragraph">Then open capture.pcap with wireshark and you should see MPTCP instead of TCP <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/1f642.png" alt="🙂" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>



<figure class="wp-block-image size-full"><a href="https://www.tombarbette.be/wp-content/uploads/2022/04/image.png"><img loading="lazy" decoding="async" width="957" height="803" src="https://www.tombarbette.be/wp-content/uploads/2022/04/image.png" alt="" class="wp-image-1151" srcset="https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2022/04/image.png 957w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2022/04/image-300x252.png 300w, https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2022/04/image-768x644.png 768w" sizes="auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px" /></a></figure>



<h2 class="wp-block-heading">Step 3 : SSH and failover</h2>



<p class="wp-block-paragraph">[todo!]</p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/mptcp-on-windows-with-wsl2/">MPTCP on Windows with WSL2</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
