How does the Linux networking/TCP stack work?
• (REG) The best guide may be found in the Linux kernel sources. A popular reference is “TCP/IP Illustrated” (volumes 1 to 3) by W. Richard Stevens, which explains much of the theory and practice behind TCP/IP. This material is based on the BSD implementation, which differs from Linux in fundamental ways. Nevertheless, it is an excellent reference.