Linux Network Stack Kernel Subsystem

The Packet Path Through the Linux Kernel

This page visualizes the Linux network stack as a layered funnel from userspace to the wire. A packet leaves an application through a socket syscall, is buffered by the socket layer, paced by the transport layer (TCP with a congestion window and RTT estimate, or connectionless UDP), routed by the IP layer, inspected by Netfilter and connection tracking, handed to the NIC driver over DMA rings and NAPI/softirq polling, and finally serialized onto the wire by the network interface.

Stack Layers

TCP BBR Path Model

The page includes a live TCP BBR model. BBR (Bottleneck Bandwidth and Round-trip propagation time) continuously measures the maximum delivery rate it has seen (BtlBw) and the minimum round-trip time (RTprop). Their product is the bandwidth-delay product (BDP) — the amount of data in flight that keeps the path full without queueing. BBR paces sending at BtlBw and caps inflight near BDP, avoiding the bufferbloat that loss-based CUBIC creates by filling router buffers until packets drop. It is control theory rather than machine learning, but it is a model of the network path learned online from the traffic itself.