<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Networking on Shai Asher</title><link>https://slow-is-smooth.io/tags/networking/</link><description>Recent content in Networking on Shai Asher</description><generator>Hugo</generator><language>en-gb</language><lastBuildDate>Sun, 21 Jan 2024 09:00:00 +0200</lastBuildDate><atom:link href="https://slow-is-smooth.io/tags/networking/index.xml" rel="self" type="application/rss+xml"/><item><title>The Network Plumbing Grows Up</title><link>https://slow-is-smooth.io/blog/the-network-plumbing-grows-up/</link><pubDate>Sun, 21 Jan 2024 09:00:00 +0200</pubDate><guid>https://slow-is-smooth.io/blog/the-network-plumbing-grows-up/</guid><description>&lt;p&gt;Three tools shared one network device&amp;rsquo;s ingress hook through classic tc. One of them stopped seeing packets the moment another arrived, and nobody told it. A third replaced the second&amp;rsquo;s program without the second finding out, and when the second shut down and cleaned up after itself, it deleted everyone&amp;rsquo;s programs. On Linux 6.7, four tools sharing the same hook through tcx kept a list the kernel will show to anyone who asks, could not remove each other&amp;rsquo;s programs, and got &lt;code&gt;ESTALE&lt;/code&gt; instead of a silent overwrite when two of them raced. In the same virtual machine, a pod plugged in with netkit, the new device meant to replace veth,&#10;pushed 1.21 million small packets a second out of the node against 1.14 million&#10;for a veth pod running the same BPF program, and two local processes completed a one-byte TCP round trip&#10;in 2.50 µs instead of 3.44 once a sockmap program carried the bytes from&#10;one socket to the other.&lt;/p&gt;</description></item><item><title>Dropping Packets Before the Kernel Sees Them</title><link>https://slow-is-smooth.io/blog/dropping-packets-before-the-kernel-sees-them/</link><pubDate>Sun, 18 Dec 2022 09:00:00 +0200</pubDate><guid>https://slow-is-smooth.io/blog/dropping-packets-before-the-kernel-sees-them/</guid><description>&lt;p&gt;On Linux 6.1, one C function that reads a packet&amp;rsquo;s UDP destination port and decides whether to keep&#10;it ran in two places: in XDP, at the network driver, and in tc, one layer further up. Raced against&#10;iptables and nftables on one CPU of a virtual machine, the tc copy dropped 3.10 million packets a&#10;second, the best of the lot, and iptables&amp;rsquo; INPUT chain managed 2.19 million. XDP, the hook built to&#10;be the fastest place in the kernel to drop a packet, managed 2.10 million: the worst of the six&#10;filters, and no better than having no filter at all.&lt;/p&gt;</description></item></channel></rss>