02Chapter 2: Headers and payloads: how a protocol does its jobThis chapter assumes you know what a network and an IP address are. It also assumes you can read bytes written in hexadecimal and run commands in a terminal. It explains the header and payload split that every later chapter builds on. Encapsulation across the layers comes in the next chapter.6 min read
03Chapter 3: Encapsulation: wrapping data layer by layerThis chapter assumes you know what a network and an IP address are, can read bytes in hexadecimal, and can run commands in a terminal. It covers how a message is built for sending, one layer at a time. Later chapters cover each header in detail, so here the focus is the process and the rules that co6 min read
04Chapter 4: Segment, packet, frame: naming the piecesThis chapter assumes you know what a header and a payload are, and that encapsulation wraps data in one header per layer. It also assumes you can read a byte count and a hexadecimal value. The chapter covers the names for the unit of data at each layer, the sizes involved, and the places where every6 min read
05Chapter 5: Starting point: application dataEvery trip across a network begins with application data. This is the content a program wants to send, before any transport, network or link header exists. This chapter covers what that data is and how it becomes bytes. It also covers what the layer below does with it and the mistakes that follow fr6 min read
06Chapter 6: Transport layer: ports and the TCP or UDP headerThis chapter assumes you know how encapsulation wraps application data in headers, what an IP address is, and how to read hexadecimal bytes. It covers the transport layer: what the layer adds to application data, how ports work, and what the TCP and UDP headers contain.5 min read
07Chapter 7: Network layer: the IP header and end-to-end addressingThis chapter assumes you know what an IP address is, can read hexadecimal bytes, and have seen the transport layer's TCP and UDP headers from the previous chapter. Here you will study the IPv4 header field by field. You will also see why its addresses identify the two end hosts while link-layer addr5 min read
08Chapter 8: Link layer: the Ethernet frameThis chapter assumes you know what an IP address is, can read hexadecimal bytes, and can run commands in a terminal. It also assumes you have seen the transport and network layers in the earlier chapters: a TCP segment sits inside an IP packet. Here we look at the last wrapper, the Ethernet frame, a7 min read
09Chapter 9: Decapsulation: unwrapping at the receiverDecapsulation is the receiver's side of encapsulation. The sender wrapped application data in a TCP or UDP header, then an IP header, then an Ethernet header. The receiver removes those headers in the opposite order. At each step it checks that the data is meant for it, then uses a field in the head6 min read
10Chapter 10: Finding the next MAC address with ARPThis chapter assumes you know what encapsulation is and how an Ethernet frame wraps an IP packet. It also assumes you can read an IPv4 address and a MAC address, and that you can run commands in a Linux terminal. The ARP examples use IPv4. IPv6 does the same job with a different protocol, covered ne7 min read
11Chapter 11: What changes and what stays the same at each routerThis chapter assumes you know the layers (application, transport, network, link) and what encapsulation and decapsulation are. It also assumes you can read an IPv4 header and a MAC address. Here you will follow one packet through routers and sort every header field into "rewritten at each hop" or "p5 min read
12Chapter 12: Size limits: MTU, MSS and fragmentationThis chapter assumes you know how encapsulation wraps data in TCP, IP and Ethernet headers. It also assumes you can read the IPv4 header fields and run commands in a Linux terminal. Here you will see why a packet cannot be any size, what happens when one is too large, and how to find the limit on a 7 min read
13Chapter 13: Seeing the layers in a packet captureA packet capture is a recording of frames as they pass a network interface. Every chapter so far described headers in the abstract. A capture lets you check them against real bytes.5 min read
14Chapter 14: Tunneling: a packet inside a packetThis chapter assumes you know the layers from earlier chapters: how a header and payload make up each protocol data unit (PDU), how IPv4 and Ethernet headers are laid out, and how MTU limits packet size. You should also be comfortable reading tcpdump output and running commands on Linux.6 min read