<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Halit Altuner on Medium]]></title>
        <description><![CDATA[Stories by Halit Altuner on Medium]]></description>
        <link>https://medium.com/@halit.altuner?source=rss-2d1e574ddd85------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*exegBX9FiYFKSQx4</url>
            <title>Stories by Halit Altuner on Medium</title>
            <link>https://medium.com/@halit.altuner?source=rss-2d1e574ddd85------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 09:27:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@halit.altuner/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Running DPDK on Kubernetes with SR-IOV & Multus CNI]]></title>
            <link>https://medium.com/kloia/running-dpdk-on-kubernetes-with-sr-iov-multus-cni-6e3d21461385?source=rss-2d1e574ddd85------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e3d21461385</guid>
            <category><![CDATA[dpdk]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[kernel-bypass]]></category>
            <category><![CDATA[eng]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Halit Altuner]]></dc:creator>
            <pubDate>Wed, 26 Aug 2026 12:26:27 GMT</pubDate>
            <atom:updated>2026-08-26T12:26:27.465Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9xzxS3g66OWPn7Jpz2pPxw.png" /></figure><h3>Introduction</h3><p>If you’re working on a system that needs to process millions of packets per second, whether a telco gateway, a trading engine, or a streaming backbone pulling in millions of concurrent viewers, you’ve probably hit the same wall: the Linux kernel networking stack was never designed for this. Linux and its networking stack emerged in the early 90s, then reshaped themselves in the early 2000s to serve high-traffic websites and the infrastructure behind them. It wasn’t enough. Over the years, the kernel and its networking stack kept improving. But for the near-realtime systems we’re talking about here, it still fell short.</p><p>And yet, the Linux networking stack remains an engineering masterpiece. It flawlessly handles routing, firewalling, socket management, and hundreds of other network and IO-related tasks. But every packet passing through that stack carries a hardware cost. A context switch, a memory copy, an interrupt. At 1 Gbps, you’ll barely notice, since modern NICs handle much of the work on their own. At 10, 25, or 100 Gbps, however, it becomes your biggest bottleneck.</p><p>DPDK was born to solve exactly this problem.</p><p>Developed by Intel and later donated to the Linux Foundation, DPDK (Data Plane Development Kit) takes a radical approach to packet processing. It bypasses the kernel and, with it, the entire Linux networking stack. It moves processing into userspace. It polls instead of relying on interrupts. It pins dedicated CPU cores. The result? Latency drops from hundreds of microseconds to single digits. Throughput scales linearly with core count.</p><p>But as we go deeper into cloud-native architectures, we keep asking ourselves:</p><p><em>What happens to DPDK when workloads live inside Kubernetes?</em></p><p>That’s exactly what this post is about. The world of DPDK is an unusual one; read on carefully.</p><h3>DPDK: What It Is and What It Isn’t</h3><p>Before going any further, let’s get the fundamentals straight, because DPDK is one of the most misunderstood technologies out there. Let’s clear up the misconceptions first.</p><h3>Kernel-Bypass and Userspace Networking</h3><p>In a traditional Linux networking setup, every incoming packet passes through the kernel. The NIC (network interface card) receives the packet and fires an interrupt; the kernel copies the packet from NIC memory into kernel space, then into userspace. Userspace, at its core, is the layer where network-based applications running on Linux live and get direct access to data. Only then does your application see the packet. Under heavy load, these steps pile up fast: multiple memory copies, CPU context switches, and syscalls all turn into a real problem.</p><p>DPDK eliminates most of these steps. Using Poll Mode Drivers (PMDs) that run entirely in userspace, it accesses NIC hardware directly. No interrupts. No kernel involvement in the data path. Your application talks to the NIC almost directly. Some NIC vendors take this even further, pairing DPDK-compatible drivers with onboard ToE (TCP Offload Engine) chips.</p><p>The performance results are genuinely striking:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ST-R-vZBndwEhOr2IIzM-A.png" /></figure><p><em>Note: On the kernel stack, a 10 Gbit NIC running at ~70% interrupt utilization (as an example) typically sees 7–8 Gbps, while DPDK hits a clean 10 Gbps.</em></p><h3>DPDK vs XDP vs RDMA</h3><p>These three often get mixed up, so let’s look at brief definitions:</p><ul><li><strong>XDP (eXpress Data Path): </strong>A packet path that runs inside the kernel, just before the network stack. A middle road: faster than standard kernel networking, but not a full bypass. Ideal for firewalling and load balancing scenarios.</li><li><strong>RDMA (Remote Direct Memory Access): </strong>Focuses on memory-to-memory transfers between machines, bypassing the CPU entirely. Common in HPC and storage networks, and lately increasingly common in GPU cluster scenarios as well. The goal is speed through direct memory access.</li><li><strong>DPDK (Data Plane Development Kit): </strong>Full userspace packet processing. Maximum flexibility and performance for complex packet manipulation. An ideal fit for virtually any network-centric application or appliance.</li></ul><p>To put it in perspective: XDP is the fast lane on the kernel highway. RDMA is a private access road between machines. And DPDK is the soundest way to build a road entirely your own.</p><h3>What DPDK Is Not</h3><ul><li>It’s not a magic fix. It requires dedicated CPU cores, hugepages memory configuration, and compatible NICs running purpose-built drivers.</li><li>It’s not easy to operate, or to develop for. The learning curve is steep. Debugging userspace packet processing is far harder than working with the standard Linux networking stack, and it demands purpose-built applications.</li><li>It’s not always necessary. If you don’t need to process millions of packets per second, the kernel stack is probably fine.</li></ul><h3>Real-World Examples That Demand More</h3><p>No technology emerges on its own, context-free, in a lab. Every technology is born out of a real-world need, a context. DPDK is exactly that kind of technology: born out of necessity.</p><h3>Telco &amp; 5G</h3><p>5G networks are fundamentally software-defined. The User Plane Function (UPF), responsible for routing user traffic between the radio network and the internet, has to process millions of packets per second at sub-millisecond latency. A single 5G base station can generate traffic surges capable of saturating a standard kernel networking stack within seconds.</p><p>Projects like <strong>ONAP</strong> and <strong>OpenAirInterface</strong> rely heavily on DPDK for exactly this reason. A typical 5G UPF has to sustain <strong>20–100 Gbps</strong> of throughput at under <strong>1ms</strong> latency. The Linux kernel stack tops out well below that at this scale.</p><h3>Fintech &amp; High-Frequency Trading (HFT)</h3><p>In algorithmic trading, microseconds matter. A strategy that reacts 10µs faster than a competitor can translate into millions of dollars in annual profit. With DPDK, latency drops from ~50–100µs down to <strong>1–5µs</strong>: a 10–50x improvement that feeds directly into competitive advantage. This matters enormously</p><p>for central exchange platforms, payment-accepting fintech startups, and especially high-frequency trading infrastructures.</p><h3>Media &amp; Video Streaming</h3><p>Large-scale video streaming platforms have to cope with extremely high packet rates. When millions of viewers tune into the same broadcast at once, with playback expected to be seamless and quality scaling up with available bandwidth, packet rates spike suddenly and have to land with low latency, putting serious strain on the network.</p><p>DPDK lets these platforms run on commodity x86 hardware instead of extremely expensive purpose-built appliances, dramatically cutting infrastructure costs while preserving quality of service.</p><h3>Online Gaming</h3><p>Modern multiplayer games are extraordinarily latency-sensitive. You’ve almost certainly heard this straight from a gamer’s mouth: <em>“the game is LAGGING.”</em> That phrase has become today’s umbrella term for network-induced delay. Especially in battle royale, real-time strategy, and online FPS titles, game server infrastructure relies on DPDK-based packet processing to keep game state synchronization tight and consistent across thousands of concurrent players.</p><h3>The Common Thread</h3><p>Across all these industries and infrastructures, the same requirements surface and the same pattern repeats: high packet rates, low latency requirements, and commodity hardware. DPDK sits at the intersection of all three, letting software do what once required dedicated chips and custom silicon.</p><h3>Understanding Kubernetes Networking</h3><p>Before we talk about wiring DPDK into Kubernetes, we need to understand what Kubernetes networking actually does and where its limits begin.</p><h3>The Kubernetes Networking Model</h3><p>Kubernetes follows a flat networking model. Every pod gets its own IP address. Pods communicate with each other directly, without NAT. Services abstract pod IPs behind a stable virtual IP. It’s simple, elegant, and designed for general-purpose workloads. For sub-millisecond latency, though, a flat networking model produces considerable overhead. What the Kubernetes networking model carries with ease is web applications, websocket applications, API-driven services, and general-purpose workloads.</p><h3>CNI: The Plugin Layer</h3><p>Kubernetes doesn’t implement networking itself. It delegates the job to CNI (Container Network Interface) plugins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pi-06Sne2ODFlz4WANwpNg.png" /></figure><h3>The Performance Ceiling</h3><p>Even the best CNI plugins, Cilium and eBPF included, still operate within the kernel networking stack, or at performance levels close to it. For most workloads, that can be enough. But for 5G UPF, trading scenarios, game servers, media servers, and other high-throughput cases, even Cilium’s impressive eBPF performance may not cut it.</p><h3>Notes on eBPF and DPDK</h3><ul><li>eBPF runs inside the kernel. It’s extremely fast for kernel-space operations, but it doesn’t provide a true kernel bypass.</li><li>DPDK runs in userspace. Full bypass and maximum throughput, with higher operational complexity coming along for the ride.</li><li>In most setups, these technologies neither block nor exclude one another. Architectures using both are not hard to find.</li></ul><p>Think of eBPF as turbocharging your existing car engine. DPDK delivers performance equivalent to swapping the engine out for a jet turbine.</p><h3>DPDK + Kubernetes: Technical Integration</h3><h4>The Single-Interface Pod Problem</h4><p>In a default scenario, every Kubernetes pod gets a single network interface. For DPDK workloads, this is a fundamental limitation. You need direct, dedicated access to a physical NIC or a virtual function, completely separate from the standard Kubernetes network path.</p><h4>Multus CNI: Multiple Interfaces per Pod</h4><p>Multus is a meta-CNI plugin that orchestrates multiple CNI plugins at once. With Multus, a pod can have a standard interface (eth0) for Kubernetes control plane traffic and one or more additional interfaces for DPDK-accelerated data plane traffic.</p><pre>apiVersion: k8s.cni.cncf.io/v1<br>kind: NetworkAttachmentDefinition<br>metadata:<br>  name: dpdk-network<br>spec:<br>  config: &#39;{<br>    &quot;cniVersion&quot;: &quot;0.3.1&quot;,<br>    &quot;type&quot;: &quot;sriov&quot;,<br>    &quot;name&quot;: &quot;dpdk-network&quot;,<br>    &quot;ipam&quot;: {}<br>  }&#39;</pre><p><em>NetworkAttachmentDefinition (Multus CNI)</em></p><h4>SR-IOV: Virtual Functions for Direct NIC Access</h4><p>SR-IOV (Single Root I/O Virtualization) allows a single physical NIC to be split into multiple Virtual Functions (VFs), each of which can be assigned directly to a pod:</p><pre>Physical NIC (PF)<br>├── Virtual Function 0 → Pod A (DPDK)<br>├── Virtual Function 1 → Pod B (DPDK)<br>├── Virtual Function 2 → Pod C (DPDK)<br>└── Virtual Function 3 → Pod D (DPDK)<br>resources:<br>  requests:<br>    intel.com/intel_sriov_netdevice: &#39;1&#39;<br>  limits:<br>    intel.com/intel_sriov_netdevice: &#39;1&#39;</pre><h3>HugePages: The Memory Foundation</h3><p>DPDK requires hugepages: large memory pages (2MB or 1GB) that reduce TLB misses during high-speed packet processing:</p><pre>resources:<br>  requests:<br>    hugepages-2Mi: 512Mi<br>    memory: 512Mi<br>  limits:<br>    hugepages-2Mi: 512Mi<br>    memory: 512Mi</pre><h3>CPU Pinning</h3><p>DPDK Poll Mode Drivers spin on dedicated CPU cores. Kubernetes manages this through the CPU Manager with a static policy:</p><pre>resources:<br>  requests:<br>    cpu: &#39;4&#39;<br>  limits:<br>    cpu: &#39;4&#39;</pre><h3>Full DPDK Pod Manifest</h3><pre>apiVersion: v1<br>kind: Pod<br>metadata:<br>  name: dpdk-app<br>  annotations:<br>    k8s.v1.cni.cncf.io/networks: dpdk-network<br>spec:<br>  containers:<br>  - name: dpdk-app<br>    image: dpdk-app:latest<br>    resources:<br>      requests:<br>        cpu: &#39;4&#39;<br>        memory: 512Mi<br>        hugepages-2Mi: 512Mi<br>        intel.com/intel_sriov_dpdk: &#39;1&#39;<br>      limits:<br>        cpu: &#39;4&#39;<br>        memory: 512Mi<br>        hugepages-2Mi: 512Mi<br>        intel.com/intel_sriov_dpdk: &#39;1&#39;<br>    volumeMounts:<br>    - mountPath: /dev/hugepages<br>      name: hugepage<br>  volumes:<br>  - name: hugepage<br>    emptyDir:<br>      medium: HugePages</pre><h3>Cilium eBPF vs DPDK: Which One Should You Choose?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OQYxFEkteW-tlFo0B3pnHA.png" /></figure><h3>Hands-on: DPDK Installation and Kubernetes Integration</h3><h3>Prerequisites</h3><ul><li>Linux host (Ubuntu 22.04 or RHEL 9 recommended)</li><li>DPDK-compatible NIC (Intel X710, X550, or Mellanox ConnectX series)</li><li>SR-IOV capable hardware with BIOS settings enabled</li><li>Kubernetes 1.28+ cluster with CPU Manager static policy enabled</li><li>At least 4 dedicated physical CPU cores for DPDK workloads</li></ul><h3>Step 1: System Preparation</h3><pre># GRUB IOMMU activation<br>sed -i &#39;s/GRUB_CMDLINE_LINUX=&quot;/GRUB_CMDLINE_LINUX=&quot;intel_iommu=on iommu=pt /&#39; /etc/default/grub<br>update-grub &amp;&amp; reboot<br> <br># Hugepages configure<br>echo 1024 &gt; /sys/kernel/mm/hugepages/hugepages-2048kB/nr_hugepages<br>echo &quot;vm.nr_hugepages=1024&quot; &gt;&gt; /etc/sysctl.conf<br> <br># Hugepages mount<br>mkdir -p /dev/hugepages<br>mount -t hugetlbfs nodev /dev/hugepages<br> <br># Verify<br>grep HugePages /proc/meminfo</pre><h3>Step 2: DPDK Installation</h3><pre>apt-get update &amp;&amp; apt-get install -y \<br>  build-essential python3-pip libnuma-dev pkg-config meson ninja-build<br> <br>wget https://fast.dpdk.org/rel/dpdk-23.11.tar.xz<br>tar xf dpdk-23.11.tar.xz &amp;&amp; cd dpdk-23.11<br> <br>meson setup build &amp;&amp; cd build<br>ninja &amp;&amp; ninja install &amp;&amp; ldconfig<br> <br># Check version<br>dpdk-testpmd --version</pre><h3>Step 3: Bind the NIC to the DPDK Driver</h3><pre>dpdk-devbind.py --status<br>dpdk-devbind.py --unbind 0000:01:00.0<br>modprobe vfio-pci<br>dpdk-devbind.py --bind=vfio-pci 0000:01:00.0</pre><h3>Step 4: Configure SR-IOV Virtual Functions</h3><pre>echo 4 &gt; /sys/bus/pci/devices/0000:01:00.0/sriov_numvfs<br>dpdk-devbind.py --bind=vfio-pci 0000:01:00.1<br>dpdk-devbind.py --bind=vfio-pci 0000:01:00.2<br>dpdk-devbind.py --bind=vfio-pci 0000:01:00.3<br>dpdk-devbind.py --bind=vfio-pci 0000:01:00.4</pre><h3>Step 5: Install the SR-IOV Device Plugin</h3><pre>kubectl apply -f https://raw.githubusercontent.com/k8snetworkplumbingwg/sriov-network-device-plugin/master/deployments/sriovdp-daemonset.yaml<br> <br>cat &lt;&lt;EOF | kubectl apply -f -<br>apiVersion: v1<br>kind: ConfigMap<br>metadata:<br>  name: sriovdp-config<br>  namespace: kube-system<br>data:<br>  config.json: |<br>    {<br>      &quot;resourceList&quot;: [<br>        {<br>          &quot;resourceName&quot;: &quot;intel_sriov_dpdk&quot;,<br>          &quot;selectors&quot;: {<br>            &quot;vendors&quot;: [&quot;8086&quot;],<br>            &quot;devices&quot;: [&quot;154c&quot;],<br>            &quot;drivers&quot;: [&quot;vfio-pci&quot;]<br>          }<br>        }<br>      ]<br>    }<br>EOF</pre><h3>Step 6: Install and Configure Multus CNI</h3><pre>kubectl apply -f https://raw.githubusercontent.com/k8snetworkplumbingwg/multus-cni/master/deployments/multus-daemonset.yml<br> <br>cat &lt;&lt;EOF | kubectl apply -f -<br>apiVersion: k8s.cni.cncf.io/v1<br>kind: NetworkAttachmentDefinition<br>metadata:<br>  name: dpdk-network<br>  annotations:<br>    k8s.v1.cni.cncf.io/resourceName: intel.com/intel_sriov_dpdk<br>spec:<br>  config: &#39;{<br>    &quot;cniVersion&quot;: &quot;0.3.1&quot;,<br>    &quot;type&quot;: &quot;sriov&quot;,<br>    &quot;name&quot;: &quot;dpdk-network&quot;,<br>    &quot;ipam&quot;: {}<br>  }&#39;<br>EOF</pre><h3>Step 7: Deploy and Test</h3><pre>kubectl apply -f dpdk-testpmd.yaml<br>kubectl logs dpdk-testpmd<br># Throughput (pkts/s): TX: XXXXXXX RX: XXXXXXX</pre><h3>AWS and DPDK: A Pragmatic View</h3><p>Running DPDK on AWS is not the same as running it on bare metal. AWS already ships its own high-performance networking layers.</p><h3>Enhanced Networking and ENA</h3><p>AWS instances use the Elastic Network Adapter (ENA) driver by default, which already implements several DPDK-like optimizations: up to <strong>100 Gbps</strong> of bandwidth and consistently low latency, with no dedicated CPU core requirement.</p><h3>EFA: When You Need More</h3><p>For workloads that genuinely need DPDK-level performance on AWS, the answer is Elastic Fabric Adapter (EFA), available on the C5n, Hpc6a, and P4d instance families.</p><h3>DPDK vs AWS EFA: Detailed Comparison</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2uhkEmXZl57jYbHPb7pvhQ.png" /></figure><h3>Trade-offs and What to Watch Out For</h3><h3>Operational Complexity</h3><p>Running DPDK in production requires deep system-level expertise: hugepages management, NUMA awareness, NIC firmware compatibility, and SR-IOV VF management across node restarts.</p><h3>The Debug Problem</h3><p>Standard tools like tcpdump, wireshark, and netstat cannot see DPDK traffic. Use DPDK-native tools instead:</p><pre>resources:<br>  requests:<br>    cpu: &#39;4&#39;<br>  limits:<br>    cpu: &#39;4&#39;<br><br># Standard tools show nothing for DPDK traffic<br>tcpdump -i eth1<br> <br># DPDK-native packet capture tool<br>dpdk-pdump -- --pdump &#39;port=0,queue=*,rx-dev=/tmp/capture.pcap&#39;</pre><h3>Resource Isolation Requirements</h3><p>DPDK Poll Mode Drivers spin on dedicated CPU cores. Kubernetes manages this through the CPU Manager with a static policy:</p><pre># CPU isolation in GRUB<br>GRUB_CMDLINE_LINUX=&quot;intel_iommu=on iommu=pt isolcpus=2,3,4,5 nohz_full=2,3,4,5 rcu_nocbs=2,3,4,5&quot;</pre><h3>When DPDK?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dM6jp0d6tkCeOt2oSh5KPw.png" /></figure><p>If you answer “no” to any of these, start with Cilium eBPF. You’ll get 80% of the performance with 20% of the operational complexity.</p><h3>The Upgrade and Maintenance Scenario</h3><p>Every kernel upgrade, NIC firmware update, or DPDK version bump requires careful testing. Your staging/testing environment should cover the following:</p><ul><li>A dedicated test environment that mirrors production hardware exactly</li><li>Staged rollouts for DPDK or kernel updates</li><li>Clear runbooks for NIC rebinding after node reboots</li></ul><h3>Conclusion</h3><p>When we first started working with DPDK, back when OpenStack was the dominant cloud platform, Kubernetes was still finding its footing, and DevOps engineers were only just beginning to pick it up, the idea of running kernel-bypass networking inside containers sounded intriguing, to say the least. OpenStack was everywhere; Kubernetes was still at the “will this even catch on?” stage. Every CNI driver in development was experimental. And these two worlds were exact opposites. Containers were all about abstraction, built on the principle of “forget the hardware underneath, focus on your application.” DPDK was the polar opposite: tear the abstractions away and integrate with the hardware.</p><p><em>“Years went by, and the picture changed completely.”</em></p><p>Where we stand today, DPDK and Kubernetes don’t just sit side by side; they genuinely complement each other. Multus CNI, SR-IOV device plugins, Kubernetes recognizing hugepages as a native resource, CPU Manager’s static policy. Each of these is a small step on its own, but together they’ve solved a problem once written off as “these two will never get along.”</p><p>From years of working on high-performance infrastructure, building private clouds with OpenStack and Ceph, all the way to designing cloud-native platforms, the most important lesson we carry is this:</p><p><em>“Technology choices should follow requirements, not trends.”</em></p><p>DPDK isn’t for everyone. For the vast majority of cloud-native workloads, a well-tuned Cilium deployment will serve you better, with far less operational overhead. But when performance is genuinely critical, the picture changes. For workloads like real-time financial systems, large-scale live broadcast platforms (HLTV, streaming services, and the like), and connected vehicle telemetry infrastructures, running DPDK on Kubernetes goes beyond being merely possible; it’s the most sensible choice.</p><h3>Where to Go From Here</h3><ul><li>Benchmark your current CNI performance first. It may already cover your needs.</li><li>Test with<em> dpdk-testpmd</em> on a single bare-metal node before committing to a full cluster rollout.</li><li>Invest in your team’s kernel and networking knowledge. Success with DPDK depends less on the tools you use and more on the depth of your team’s systems expertise.</li><li>Consider a hybrid approach. Standard CNI for the control plane and DPDK for the data plane can be a sensible split.</li><li>If you don’t have bare-metal access and you’re on AWS, EFA is a solid choice.</li></ul><h3>Frequently Asked Questions</h3><p><strong>Can DPDK and standard CNI coexist in the same Kubernetes cluster?</strong></p><p>In short, yes. That’s precisely what Multus CNI provides. Pods can simultaneously have a standard CNI interface for control plane traffic and a DPDK-accelerated interface for data plane traffic.</p><p><strong>Which NICs are supported for DPDK on Kubernetes?</strong></p><p>The Intel X710, X550, E810 and Mellanox ConnectX-4/5/6 series are the most widely tested models. Always check the DPDK compatibility matrix before purchasing hardware.</p><p><strong>Is DPDK possible in cloud environments like AWS?</strong></p><p>Not in the traditional sense. A full kernel bypass requires bare-metal or SR-IOV capable hardware. On AWS, EFA offers a comparable high-performance networking alternative without the complexity of a full DPDK stack. AWS HPC services, in particular, use EFA by default. To give a concrete example: in computational fluid dynamics (CFD) analysis on equivalent hardware, an EFA-backed AWS environment delivers a minimum 4x performance gain over on-premise.</p><p><strong>If eBPF is already fast, why do we need DPDK?</strong></p><p>As we noted earlier, eBPF runs inside the kernel and cannot fully bypass it. For workloads requiring sub-5µs latency or line-rate throughput above 10 Gbps per pod, DPDK remains the only viable option.</p><p><strong>How do we monitor DPDK traffic? Won’t standard tools like tcpdump work?</strong></p><p>They absolutely won’t. Existing Linux network tools operate by observing and managing the Linux kernel networking stack. Use dpdk-pdump for packet capture and DPDK’s built-in telemetry interface for metrics collection.</p><p><strong>What happens to DPDK interfaces when a Kubernetes node restarts?</strong></p><p>NIC bindings to vfio-pci are not persistent by default. You can automate rebinding through systemd services or node startup scripts.</p><p><strong>Is DPDK suitable for all high-performance workloads?</strong></p><p>Partly, no. For most high-throughput workloads, a well-tuned Cilium deployment delivers 80% of the performance with far less operational overhead. That said, for ultra-low latency and line-rate traffic requirements, we absolutely recommend DPDK.</p><h3>References</h3><h3>DPDK</h3><ul><li><a href="https://doc.dpdk.org/guides/">DPDK Official Documentation</a></li><li><a href="https://core.dpdk.org/supported/">DPDK Supported Hardware</a></li><li><a href="https://core.dpdk.org/perf-reports/">DPDK Performance Reports</a></li></ul><h3>SR-IOV &amp; Multus CNI</h3><ul><li><a href="https://github.com/k8snetworkplumbingwg/sriov-network-device-plugin">SR-IOV Network Device Plugin for Kubernetes</a></li><li><a href="https://github.com/k8snetworkplumbingwg/multus-cni">Multus CNI GitHub</a></li><li><a href="https://docs.openshift.com/container-platform/4.14/networking/multiple_networks/understanding-multiple-networks.html">Multus CNI Documentation</a></li></ul><h3>Kubernetes Networking</h3><ul><li><a href="https://kubernetes.io/docs/concepts/extend-kubernetes/compute-storage-net/network-plugins/">Kubernetes Network Plugins — CNI</a></li><li><a href="https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/">Kubernetes CPU Manager</a></li><li><a href="https://kubernetes.io/docs/tasks/manage-hugepages/scheduling-hugepages/">Kubernetes Hugepages</a></li><li><a href="https://docs.cilium.io/en/stable/">Cilium eBPF Documentation</a></li></ul><h3>AWS</h3><ul><li><a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html">AWS EFA Documentation</a></li><li><a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/enhanced-networking-ena.html">AWS ENA Driver</a></li><li><a href="https://docs.aws.amazon.com/eks/latest/userguide/eks-networking.html">Amazon EKS Networking</a></li></ul><h3>Kloia Resources</h3><ul><li><a href="https://www.kloia.com/blog/kubevirt-on-amazon-eks-unifying-containers-and-vms-in-kubernetes">KubeVirt on Amazon EKS: Unifying Containers and VMs</a></li><li><a href="https://www.kloia.com/blog/kubernetes-1.33-what-is-new">Kubernetes 1.33: What’s New?</a></li><li><a href="https://www.kloia.com/blog/managing-kubernetes-clusters-with-the-gitops">Managing Kubernetes Clusters with GitOps</a></li><li><a href="https://www.kloia.com/blog/manage-kubernetes-secrets-with-external-secrets-operator-and-aws-ssm">Manage Kubernetes Secrets with External Secrets Operator and AWS SSM</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e3d21461385" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kloia/running-dpdk-on-kubernetes-with-sr-iov-multus-cni-6e3d21461385">Running DPDK on Kubernetes with SR-IOV &amp; Multus CNI</a> was originally published in <a href="https://medium.com/kloia">kloia</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[HiveMQ vs AWS IoT Core: Choosing the Right MQTT Broker]]></title>
            <link>https://medium.com/kloia/hivemq-vs-aws-iot-core-choosing-the-right-mqtt-broker-0f378946f0f6?source=rss-2d1e574ddd85------2</link>
            <guid isPermaLink="false">https://medium.com/p/0f378946f0f6</guid>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[mqtt-broker]]></category>
            <category><![CDATA[hivemq]]></category>
            <category><![CDATA[aws-iot-core]]></category>
            <dc:creator><![CDATA[Halit Altuner]]></dc:creator>
            <pubDate>Wed, 12 Aug 2026 09:57:02 GMT</pubDate>
            <atom:updated>2026-08-12T10:25:04.157Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WFGAo3O0uQ1OxXsbXaQH5g.png" /></figure><h3>Introduction</h3><p>Every IoT project starts the same way: one device sends data, something receives it, and something else processes it. Simple enough.</p><p>But when the number of devices grows from tens to thousands or even millions, one architectural decision starts to matter more than almost anything else: which MQTT broker are you running?</p><p>A broker is not just a message pipe. It is the nervous system of your IoT architecture. It determines how your devices authenticate, how your data flows, how your system scales under load, and how much control you retain over your infrastructure.</p><p>Today, two names dominate this conversation: HiveMQ and AWS IoT Core. Both are production-grade, battle-tested, and capable of handling serious IoT workloads. However, they represent fundamentally different philosophies regarding where intelligence should live, who controls the infrastructure, and how tightly your IoT stack should be coupled to a cloud provider.</p><p>This article is a structured comparison between the two, not to declare a winner, but to provide the framework you need to make the right decision for your own architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EEMKvKY6M2hbhYsmtByyDA.png" /></figure><h3>MQTT 101: A Quick Refresher</h3><p>MQTT (Message Queuing Telemetry Transport) is a lightweight publish/subscribe messaging protocol designed for constrained environments: low bandwidth, high latency, unreliable networks, and resource-limited devices.</p><p>Originally developed by IBM in the late 1990s to monitor oil pipelines over satellite connections, MQTT has become the backbone of modern IoT communication.</p><p>In MQTT, producers and consumers are decoupled through a broker. A temperature sensor does not know who is listening to its data, it simply publishes to a topic. Anyone subscribed to that topic receives the message. The broker handles the routing.</p><h3>QoS Levels</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UtBpRsM6o_qHUCno0SUuPQ.png" /></figure><h3>HiveMQ: The Enterprise MQTT Broker</h3><p>HiveMQ is a purpose-built MQTT broker developed by HiveMQ GmbH specifically for enterprise-grade IoT deployments. It follows an MQTT-first philosophy, every architectural decision is centered around doing MQTT exceptionally well.</p><p>HiveMQ runs everywhere: on-premise (bare metal or VM), Kubernetes (official Helm chart and Operator), cloud marketplaces (AWS, Azure, GCP), edge environments (HiveMQ Edge), and as a fully managed service (HiveMQ Cloud). This deployment flexibility is critical for industries with strict data residency requirements.</p><p>One of HiveMQ’s most distinctive capabilities is its extension framework. Every aspect of broker behavior, including authentication, authorization, message transformation, persistence, and observability, can be customized through Java-based extensions without modifying the broker itself.</p><p>HiveMQ’s customer base paints a clear picture: BMW, Audi, Siemens, Bosch. Industries where data sovereignty, regulatory compliance, and infrastructure control are non-negotiable.</p><h3>Strengths</h3><ul><li>Full support for MQTT 3.1, 3.1.1, and 5.0</li><li>Extension framework for deep customization</li><li>Strong Kubernetes-native deployment model</li><li>Data residency and compliance friendly</li><li>HiveMQ Edge for gateway-level intelligence</li><li>Built-in Prometheus integration</li></ul><h3>Limitations</h3><ul><li>Requires infrastructure management expertise</li><li>Licensing costs for enterprise features</li><li>Cloud service integrations often require custom work</li><li>Smaller managed ecosystem compared to AWS IoT Core</li></ul><h3>AWS IoT Core: The Cloud-Native MQTT Broker</h3><p>AWS IoT Core is Amazon’s fully managed MQTT broker service, although calling it “just a broker” understates what it really is. It is a gateway into the broader AWS IoT ecosystem: device management, rules engine, device shadow service, fleet indexing, and over-the-air updates.</p><p>The biggest difference compared to HiveMQ is operational responsibility: there is no broker to deploy, no cluster to manage, and no capacity planning to perform. AWS IoT Core automatically scales to billions of messages and millions of simultaneous connections.</p><p>AWS IoT Core’s Rules Engine allows you to define SQL-like queries on incoming MQTT messages and route them into more than 20 AWS services without writing custom code.</p><p>The Device Shadow service maintains a persistent JSON document representing the desired and reported state of each device, even when the device is offline.</p><h3>Strengths</h3><ul><li>Zero infrastructure management</li><li>Automatic scaling to billions of messages</li><li>Deep native integration with the AWS ecosystem</li><li>Powerful Rules Engine for serverless message routing</li><li>Device Shadow for offline state management</li><li>Built-in fleet management and OTA updates</li><li>Pay-per-message pricing model</li></ul><h3>Limitations</h3><ul><li>Vendor lock-in, tightly coupled to AWS</li><li>Data residency limited to AWS regions</li><li>More limited customization compared to HiveMQ extensions</li><li>Partial MQTT 5.0 support</li><li>Costs can increase significantly at very high scale</li><li>Less suitable for air-gapped deployments</li></ul><h3>Architectural Comparison</h3><p>At the most fundamental level, the difference is the deployment model.</p><p>HiveMQ gives you a broker that you own and operate.<br>AWS IoT Core gives you a broker that you consume as a service.</p><p>This trade-off between ownership and simplicity drives nearly every other distinction between the two platforms.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kBWvz_5CSo9kL7hIrMt3mA.png" /></figure><h3>Hybrid Architecture: The Best of Both Worlds</h3><p>Architecturally, the most mature answer is often using both platforms together where each one is strongest.</p><p>HiveMQ Edge handles local device connectivity, data filtering, and protocol translation. Only relevant and pre-processed data is forwarded into AWS IoT Core through an MQTT bridge.</p><p>AWS IoT Core then handles cloud-scale analytics, storage, and integrations.</p><p>The system continues operating even if cloud connectivity is interrupted.</p><h3>Industry Use Cases</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eMA1Ixv0E4oaaHl--qBpNQ.png" /></figure><h3>Decision Framework</h3><p>Before committing to either platform, answer these five questions honestly:</p><h3>1. Where does your data need to live?</h3><p>If your architecture requires strict geographic or organizational data residency, AWS IoT Core becomes immediately constrained. HiveMQ becomes your starting point.</p><h3>2. How reliable is your network connectivity?</h3><p>If your devices operate in intermittently connected environments, you need a broker capable of offline operation. HiveMQ Edge was designed for exactly this purpose. AWS IoT Core was not.</p><h3>3. How much infrastructure can your team realistically operate?</h3><p>HiveMQ requires real operational expertise. If your team lacks this capability, the simplicity of AWS IoT Core is not merely convenience — it is a strategic advantage.</p><h3>4. How tightly are you willing to couple yourself to AWS?</h3><p>AWS IoT Core is a gateway into the AWS ecosystem. If you ever need to migrate away or support multi-cloud deployments, that dependency can become a liability.</p><h3>5. What is your message volume and cost sensitivity?</h3><p>At very high scale, economics often begin to favor self-hosted HiveMQ deployments. Run the numbers for your own workload before making the decision.</p><h3>Summary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8KHTYaUNv_fqhMDi77zt1g.png" /></figure><h3>Conclusion</h3><p>There is no universally correct MQTT broker.</p><p>HiveMQ and AWS IoT Core are both excellent platforms, they are simply excellent for different things, different organizations, and different operational contexts.</p><p>HiveMQ is the right answer when control, compliance, and edge intelligence matter more than operational simplicity.</p><p>AWS IoT Core is the right answer when speed, simplicity, and cloud-native integration matter more than infrastructure ownership.</p><p>The most sophisticated architectures use both: HiveMQ at the edge and in regulated environments, AWS IoT Core in the cloud for analytics and scale.</p><p>The real question is not which broker is better.</p><p>The real question is: what does your architecture actually need?</p><p>At Kloia, we help engineering teams design IoT architectures that balance control, scalability, and operational complexity. If you are evaluating this decision, we would be happy to talk.</p><h3>Frequently Asked Questions</h3><h3>What is the main difference between HiveMQ and AWS IoT Core?</h3><p>HiveMQ is a self-managed MQTT broker that you deploy and operate anywhere.<br>AWS IoT Core is a fully managed cloud service.</p><p>The core difference is control versus simplicity.</p><h3>Can HiveMQ and AWS IoT Core work together?</h3><p>Yes — and this is one of the most common patterns in mature IoT architectures.</p><p>HiveMQ Edge manages local edge connectivity, while AWS IoT Core handles cloud-scale analytics through an MQTT bridge.</p><h3>Is AWS IoT Core a full MQTT 5.0 broker?</h3><p>Not entirely.</p><p>AWS IoT Core supports MQTT 5.0 with limitations.<br>HiveMQ provides full MQTT 5.0 compliance.</p><h3>Which platform is better for Industrial IoT?</h3><p>HiveMQ Edge is generally the dominant choice.</p><p>It operates offline, supports legacy protocol translation (Modbus, OPC-UA), and runs within the facility’s own infrastructure boundaries.</p><h3>How does each platform handle device authentication?</h3><p>HiveMQ supports username/password, X.509 mutual TLS, OAuth 2.0, and fully custom authentication through extensions.</p><p>AWS IoT Core primarily uses X.509 mutual TLS integrated with AWS IAM-based authorization.</p><h3>What happens to AWS IoT Core messages when a device goes offline?</h3><p>Device Shadow preserves the last known state and queues desired state changes.</p><p>However, true offline-first local operation is not natively supported.</p><h3>Is vendor lock-in a real concern with AWS IoT Core?</h3><p>Yes.</p><p>AWS IoT Core is deeply integrated with AWS services. Migrating away at scale often requires rebuilding authentication flows, message routing, and service integrations.</p><p>HiveMQ does not have this dependency.</p><h3>Resources</h3><h3>HiveMQ</h3><ul><li><a href="https://docs.hivemq.com/">HiveMQ Official Documentation</a></li><li><a href="https://docs.hivemq.com/hivemq-edge/index.html">HiveMQ Edge Documentation</a></li><li><a href="https://www.hivemq.com/solutions/technology/kubernetes/">HiveMQ Kubernetes Operator</a></li></ul><h3>AWS IoT Core</h3><ul><li><a href="https://docs.aws.amazon.com/iot/">AWS IoT Core Documentation</a></li><li><a href="https://docs.aws.amazon.com/iot/latest/developerguide/iot-rules.html">AWS IoT Core Rules Engine</a></li><li><a href="https://docs.aws.amazon.com/iot/latest/developerguide/iot-device-shadows.html">AWS IoT Device Shadow</a></li></ul><h3>MQTT and IoT</h3><ul><li><a href="http://mqtt.org/">MQTT.org — Official Protocol Website</a></li><li><a href="https://www.oasis-open.org/standard/mqttv3-1-1/">OASIS MQTT 3.1.1 Specification</a></li></ul><h3>Kloia Blog</h3><ul><li><a href="https://www.kloia.com/blog/kubevirt-on-amazon-eks-unifying-containers-and-vms-in-kubernetes">KubeVirt on Amazon EKS</a></li><li><a href="https://www.kloia.com/blog/aws-eks-multi-tenancy-with-vcluster">AWS EKS Multi-Tenancy with vCluster</a></li><li><a href="https://www.kloia.com/blog/managing-kubernetes-clusters-with-the-gitops">Managing Kubernetes Clusters with GitOps</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0f378946f0f6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/kloia/hivemq-vs-aws-iot-core-choosing-the-right-mqtt-broker-0f378946f0f6">HiveMQ vs AWS IoT Core: Choosing the Right MQTT Broker</a> was originally published in <a href="https://medium.com/kloia">kloia</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>