Tagged articles
packet processing
27 articles · Page 1 of 1
This article explains why traditional interrupt‑driven network I/O stalls under high traffic, introduces the NAPI (New API) mechanism that combines interrupt wake‑up with batch polling, details its core data structures and scheduling functions, and provides step‑by‑step configuration and tuning guidance to achieve efficient, low‑latency packet processing on Linux servers.
LinuxNAPINetworking
0 likes · 35 min read

sk_buff is the backbone of Linux’s network stack, handling packet storage, metadata, memory management and protocol‑layer interactions; this article dissects its structure, pointer model, core operations, packet lifecycle, practical code examples, and common pitfalls such as memory shortage, data loss and performance bottlenecks.
kernel networkingmemory managementnetwork-stack
0 likes · 54 min read

This article examines how to achieve low‑latency network packet processing on NVIDIA GPUs by comparing CPU and GPU implementations, exploring memory optimizations, batch strategies, stream concurrency, persistent kernels, and CUDA graphs, and presenting detailed performance measurements for each technique.
CUDAGPUPinned Memory
0 likes · 12 min read

This article explains the complete Linux network packet lifecycle for UDP, detailing how a packet moves from the physical NIC into kernel memory, is processed by drivers, soft‑irqs, the IP and transport layers, and finally traverses the send path back to the NIC, including key functions, queues, and configuration points.
NetworkingUDPkernel
0 likes · 15 min read

This article explains AF_XDP, the user-space socket interface for XDP that enables zero-copy packet processing via shared memory (UMEM) and four single-producer/single-consumer ring queues (RX, TX, FILL, COMPLETION), detailing the packet receive/send flow and the BPF_MAP_TYPE_XSKMAP for redirecting packets to user space.
AF_XDPBPF_MAP_TYPE_XSKMAPLinux kernel networking
0 likes · 8 min read

This article explains the complete Linux network packet lifecycle, detailing how a UDP packet is received from a physical NIC, processed through driver interrupts, soft‑interrupts, the kernel network stack, and finally transmitted back out, covering key functions, queues, and netfilter hooks.
LinuxNetworkingUDP
0 likes · 15 min read

This article explains the complete Linux network packet lifecycle—how a NIC receives a UDP packet, how the kernel processes it through interrupts, soft‑irqs, and the networking stack, and finally how the same mechanisms assemble and transmit packets back to the wire.
NetworkingUDPkernel
0 likes · 16 min read

This article explores the Linux kernel’s network stack architecture, detailing each layer from the application’s socket interface through transport, network, and link layers, and explains the complete inbound and outbound data flow with code examples illustrating packet reception, processing, routing, and transmission.
LinuxNetworkingSocket
0 likes · 33 min read

This article walks through the first three packet processing lessons of the xdp-project/xdp-tutorial, covering packet parsing with verifier errors, packet rewriting with debugging tips using nc and bpf_printk, and packet redirection nuances with veth pairs and XDP_REDIRECT/XDP_TX requirements.
XDPeBPFpacket parsing
0 likes · 7 min read

DPDK enables real‑time, high‑throughput packet handling on low‑cost commercial servers by bypassing the kernel, offering flexible processing models, and supporting a wide range of open‑source projects, while also presenting challenges and alternatives for modern networking workloads.
DPDKbackend developmentnetwork performance
0 likes · 9 min read

DPDK enables low‑cost commodity servers to achieve high‑throughput, low‑latency packet processing by bypassing the kernel, offering flexible processing models, supporting user‑space networking stacks, and being adopted across telecom, cloud, and edge environments despite challenges such as debugging and CPU usage.
Cloud NetworkingDPDKLinux
0 likes · 9 min read

This article explains the origins of DPDK, describes its modular architecture and performance‑enhancing mechanisms such as UIO, hugepages, and CPU affinity, and reviews popular user‑space networking frameworks like F‑Stack and Seastar that leverage DPDK for high‑throughput cloud services.
DPDKF-StackUser-space I/O
0 likes · 9 min read

Linux processes network packets through a layered TCP/IP stack, starting with hardware DMA into a ring buffer, handling interrupts, traversing the network interface, IP, transport, and application layers on receive, and reversing the flow for sending, with detailed steps for each layer and driver interaction.
Linuxnetwork-stackpacket processing
0 likes · 10 min read

This article explains the step‑by‑step process Linux uses to receive and transmit network packets, covering the initialization of the network subsystem, the role of the ring buffer, interrupt handling, and the layered processing through the TCP/IP stack from the NIC up to the application.
Linuxkernelnetwork-stack
0 likes · 9 min read

This article explains the Linux network stack, detailing the TCP/IP model layers and describing in depth how incoming packets travel from the NIC through DMA, interrupt handling, and the kernel's protocol layers to the application, as well as the reverse path for outgoing packets.
LinuxNetworkingnetwork-stack
0 likes · 9 min read

This article explains the step‑by‑step process Linux follows to receive network packets from the NIC, pass them through the kernel’s networking stack, and finally deliver them to applications, as well as the reverse path for sending packets from applications to the network.
LinuxNetworkingnetwork-stack
0 likes · 8 min read

Linux handles network traffic through a layered TCP/IP stack, where incoming packets travel from the NIC’s DMA‑filled ring buffer through interrupt handling, protocol layers, and finally to the application, while outgoing packets follow the reverse path, with each layer adding its own headers and processing.
Linuxkernelnetwork-stack
0 likes · 11 min read

This guide explains how a network interface card (NIC) receives packets, the role of DMA, interrupt handling, poll functions, and ring buffers, then details multi‑CPU ring buffer handling, key ethtool commands for statistics, buffer size, queue configuration, and hash‑based flow distribution.
LinuxNICethtool
0 likes · 10 min read

DPDK’s libgraph, inspired by VPP’s vector packet processing, replaces traditional scalar packet handling with a graph‑based pipeline that improves i‑cache locality, reduces pointer copies, and enables flexible, high‑throughput networking across multiple CPUs and NICs, while introducing trade‑offs such as memory safety risks.
DPDKlibgraphnetwork performance
0 likes · 16 min read

This article provides a comprehensive overview of DPDK, detailing its basic and optimization technologies, architectural components such as the Environment Abstraction Layer, core libraries, platform modules, poll‑mode drivers, hugepage memory management, and CPU‑affinity techniques that together enable high‑performance packet processing in NFV and SDN environments.
CPU affinityDPDKnetwork performance
0 likes · 8 min read

This guide walks through installing Suricata on a Linux system, covering prerequisite libraries, source compilation, configuration paths, execution command, and an analysis of its packet‑processing modes—including single, work, and autofp—while illustrating thread workflow and recommending optimal setups for multi‑NIC environments.
IDSIPSLinux Installation
0 likes · 7 min read

This article provides a comprehensive technical overview of DPDK, covering its architecture, core libraries, platform modules, polling and CPU‑affinity techniques, huge‑page memory management, NUMA considerations, OS tuning steps, and integration with OVS for high‑performance packet processing.
CPU affinityDPDKHugePages
0 likes · 18 min read

This article explains DPDK’s open‑source data‑plane framework, detailing its architecture, core libraries, platform modules, poll‑mode drivers, huge‑page memory management, polling technique, and CPU‑affinity strategies that together eliminate kernel bottlenecks and dramatically improve packet‑forwarding performance.
CPU affinityDPDKHugePages
0 likes · 9 min read

This article provides a comprehensive overview of DPDK, covering its fundamental and optimization technologies, software architecture, core libraries, platform modules, poll‑mode drivers, huge‑page usage, polling techniques, and CPU‑affinity strategies for high‑performance packet processing in NFV environments.
CPU affinityDPDKHugePages
0 likes · 9 min read

XDP (eXpress Data Path) is a Linux kernel eBPF hook that enables ultra‑fast packet processing at the driver level, offering multiple action codes, three deployment modes, and advantages over DPDK such as lower CPU usage, security, and seamless integration with existing networking tools.
DPDK alternativeLinux networkingXDP
0 likes · 9 min read

This article explains the Linux network subsystem architecture, the TCP/IP layering, and the complete path a packet takes from NIC interrupt handling through soft‑irqs, NAPI, and kernel threads to the protocol stack, while also detailing driver registration and send/receive workflows.
Kernel DriversLinuxNAPI
0 likes · 26 min read

This article explains how Linux implements the TCP/IP model to encapsulate, transmit, and receive network packets, covering OSI vs TCP/IP layers, the Linux network stack structure, NAPI interrupt mitigation, and the step‑by‑step processing of packets in both directions.
LinuxNAPInetwork-stack
0 likes · 12 min read
