📡
TCP/IP — The Complete Field Guide (Beginner → Expert)
A practical, example-driven reference for the TCP/IP protocol suite: how packets are built, addressed, routed, delivered reliably, and debugged in the real world.
Contents
77 chapters, one page each. Prefer one long page? Read the whole book on one page.
- How to use this guide1 min
- Table of contents3 min
- Part I — Foundations
- 1. What a network is, and why TCP/IP won3 min
- 2. The TCP/IP model (and how it maps to OSI)2 min
- 3. Encapsulation: the nested-envelope model3 min
- 4. End-to-end walkthrough: opening https://example.com4 min
- Part II — The Link Layer
- 5. Ethernet, MAC addresses, and frames3 min
- 6. ARP: turning IP addresses into MAC addresses2 min
- 7. Switches, broadcast domains, and VLANs2 min
- 8. MTU, fragmentation triggers, and jumbo frames2 min
- 9. Wi-Fi and other link layers2 min
- Part III — The Internet Layer (IPv4)
- 10. The IPv4 address and header, field by field3 min
- 11. Subnetting, CIDR, and VLSM with worked examples2 min
- 12. Special-use addresses, private space, and NAT/PAT3 min
- 13. Routing: tables, longest-prefix match, and default routes3 min
- 14. ICMP: ping, traceroute, and Path MTU Discovery3 min
- 15. IP fragmentation and reassembly in detail2 min
- Part IV — The Internet Layer (IPv6)
- 16. IPv6 addressing and notation3 min
- 17. Neighbor Discovery, SLAAC, and DHCPv62 min
- 18. Dual-stack, Happy Eyeballs, and transition mechanisms2 min
- Part V — Host configuration
- 19. DHCP, from DISCOVER to lease renewal3 min
- 20. DNS: resolution, records, caching, and modern transports5 min
- Part VI — The Transport Layer: UDP
- 21. Ports, sockets, and the connection 4-tuple2 min
- 22. UDP: the header, and when "unreliable" is the right choice3 min
- Part VII — The Transport Layer: TCP mechanics
- 23. The TCP header, field by field4 min
- 24. The three-way handshake and connection setup3 min
- 25. Connection teardown, half-close, and TIME_WAIT3 min
- 26. The TCP finite state machine3 min
- Part VIII — TCP reliability
- 27. Sequence numbers, cumulative ACKs, and retransmission3 min
- 28. Retransmission timeout (RTO), RTT estimation, and Karn's algorithm3 min
- 29. Fast retransmit, fast recovery, and SACK3 min
- Part IX — TCP flow and congestion control
- 30. Flow control: the sliding window, window scaling, and SWS3 min
- 31. Congestion control: slow start and congestion avoidance3 min
- 32. Reno, NewReno, CUBIC, and BBR3 min
- 33. Nagle, delayed ACK, and the interaction bug2 min
- 34. Keepalive, and detecting dead peers2 min
- Part X — TCP performance engineering
- 35. Bandwidth-delay product and buffer sizing3 min
- 36. Throughput math: loss, latency, and the Mathis equation2 min
- 37. Tuning knobs on Linux (sysctl reference)4 min
- Part XI — Application-layer transports
- 38. TLS: handshakes, versions, resumption, termination, and offload27 min
- 39. HTTP/1.1 vs HTTP/2 vs HTTP/3 (QUIC)4 min
- 40. Load balancing: L4 vs L7, DSR, and connection handling3 min
- Part XII — Observability and capture
- 41. tcpdump and BPF filters3 min
- 42. Reading a Wireshark trace like a detective3 min
- 43. Socket statistics: ss , /proc , and connection states3 min
- Part XIII — Performance forensics
- 44. Diagnosing latency, loss, throughput, and bufferbloat4 min
- 45. Emulating bad networks with tc / netem3 min
- Part XIV — NAT traversal and real-time media
- 46. NAT behaviors, STUN, TURN, and ICE4 min
- 47. Why VoIP and video use UDP, jitter buffers, and RTP4 min
- Part XV — Kernel and NIC internals
- 48. The packet's path through the Linux kernel3 min
- 49. Offloads: checksum, TSO/GSO/GRO, LRO, RSS, and XDP3 min
- Part XVI — Scaling the network
- 50. Anycast, ECMP, and BGP in one page4 min
- 51. QoS, DSCP, and traffic shaping3 min
- Part XVII — Security
- 52. Spoofing, SYN floods, RST injection, and off-path attacks5 min
- 53. Firewalls, stateful inspection, and conntrack3 min
- 54. DDoS shapes and mitigations4 min
- Part XVIII — Cloud & container networking
- 55. Network namespaces, veth pairs, and bridges3 min
- 56. Overlays: VXLAN, and how Kubernetes pods talk3 min
- 57. Cloud VPC constructs and their TCP/IP reality4 min
- Part XIX — HTTP in depth
- 58. Message framing: where does a request end?2 min
- 59. Caching: the highest-leverage HTTP feature3 min
- 60. Cookies and state2 min
- 61. CORS: the browser's cross-origin rules2 min
- 62. WebSockets and Server-Sent Events3 min
- 63. Range requests, streaming, and compression2 min
- 64. HTTP authentication and authorization on the wire2 min
- 65. Proxies: forward, reverse, CONNECT, and interception3 min
- Part XX — Monitoring and telemetry
- 66. What to measure: the four signal families3 min
- 67. Device and interface metrics: SNMP and its successors3 min
- 68. Flow telemetry: NetFlow, IPFIX, and sFlow3 min
- 69. Active probing, synthetic monitoring, and alerting that works4 min
- Part XXI — Routing protocols in depth
- 70. How routing protocols work: the two families3 min
- 71. OSPF in depth4 min
- 72. BGP in depth: attributes and path selection3 min
- 73. BGP operations: peering, scaling, and failures3 min
- 74. First-hop redundancy, multicast, and MPLS/VRF in brief4 min
- Appendix A — Troubleshooting playbooks (symptom → cause → fix)
- Appendix B — Port and protocol quick reference
- Appendix C — Subnetting cheat sheet
- Appendix D — tcpdump / ss / ip command cookbook
- Appendix E — Glossary
- Further reading1 min
Generated from real-life-example.md · 8 Oct 2026 16:36