liveBook · Manning

Kernel bypass

As explained in Latency

Kernel bypass is a networking technique in which application or userspace code accesses network hardware without routing packet processing through the operating-system kernel.

Kernel-bypass networking reduces network-data-path overhead by moving packet processing out of the operating-system network stack. It can avoid kernel crossings, context switches, copies, and per-packet allocation costs. section 3.3.3 section 7.5.3

Packet processing can move to different places:

  • Userspace software can implement the TCP/IP stack and receive packets directly into userspace memory. section 3.3.3
  • Hardware approaches include RDMA, which enables direct access to memory on another machine, and SR-IOV, which exposes virtual NICs to virtual machines. section 3.3.3
  • NIC offload can move protocol processing or application logic onto the NIC. XDP supports programmable packet processing early in the network path, either in the Linux kernel or on dedicated hardware. section 3.3.3

Userspace TCP/IP

F-Stack runs the FreeBSD network stack in userspace with DPDK, allowing an application to process packets without sending them through the kernel network stack. section 3.3.3

How Latency covers it

How deep it goes
Compares userspace stacks, hardware access, and NIC offload, but provides no setup steps or measurements.
Examples
Uses F-Stack with DPDK, RDMA memory access, and SR-IOV virtual NICs as examples.
What you can do after
Evaluate whether moving packet processing to userspace or hardware can remove network-stack overhead.
How it connects
Connects kernel bypass to TCP/IP, DPDK, Netmap, RDMA, SR-IOV, and XDP/eBPF packet processing.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Latency. The section links point to the parts of the book it draws on.