Resources for learning Linux Networking stack?
Oct 29, 2020
3 Comments
I would like to learn the internals of the Linux Networking stack. Calling all the Linux gurus for suggestions on what are good resources for this.
Im not looking for superficial block diagrams of the Linux Networking stack. Looking for actual pkt flows, implementation details, source code pointers, data structures used ...you get the idea...
Know of any online self paced tutorials/course? As this works best for me.
(For TC or GTFO folks: 210k).
comments
Anyway, here are some books from that time, some parts in these books might still be relevant -
1) Understanding Linux Network Internals by Christian Benevunti.
2) Professional Linux Kernel Architecture by Wolfgang Maurer, has an 80-page chapter devoted to the network stack.
Both books are freely available online.
Someone has mentioned Kerrisk' TLPI, great book but geared towards the userspace POSIX API, rather than a deep dive into kernel internals.
If you're interested in how a production level kernel implements networking, then FreeBSD is a great place to look at. It has been said to have the best network stack and IIRC there's lots of resources on the internet available about the internals, including some articles/papers by the FreeBSD folks.
It will break so much you’ll be an expert in 3 months.