All posts

tcp-ip

2 posts
NETWORKING

The Journey of a Received Packet: From NIC Interrupt to recv()

When recv() returns, dozens of layers ran behind your back — DMA, NAPI, sk_buff, protocol demux, the socket queue. A trace of the entire receive path with the cost of each hop and where the latency actually lives.

NETWORKING

Building a Software TCP/IP Stack from Scratch in C

A deep dive into implementing a functional TCP/IP stack entirely in software — covering Ethernet framing, ARP, IP routing, TCP state machines, and the painful lessons learned along the way.