The Life of a Packet in the Linux Kernel
0xkato.xyz·9h·
Discuss: Hacker News
Flag this post

Friday. November 14, 2025 - 13 mins

The Life of a Packet in Linux

A practical tour from write() to recv()

You run curl http://example.com and now you have some HTML in your terminal but what actually happened? Linux walks your bytes through a small set of well‑defined steps: pick a path, learn a neighbor’s MAC address, queue the packet, ask the NIC to send it, then reverse that on the other side.

This post tries to explain that path as simply as I can. If you’ve used Linux, run curl, or poked at ip addr before, you’re qualified to read this. No deep ker…

Similar Posts

Loading similar posts...