01Chapter 1: Why networks are built in layersThis chapter assumes you know what a network and an IP address are, can read bytes in hexadecimal, and are comfortable running commands in a terminal. It introduces the layered model that the rest of the tutorial builds on.3 min read
02Chapter 2: Headers and payloads: how a protocol does its jobThis chapter assumes you know what a network and an IP address are, that you can read bytes in hexadecimal, and that you can run commands in a terminal. It covers one idea that every later chapter relies on: a protocol does its work by putting a small header in front of the data it carries.3 min read
03Chapter 3: Encapsulation: wrapping data layer by layerThis chapter assumes you know what an IP address is, can read bytes in hexadecimal, and can run commands in a terminal. It covers how a sender wraps application data in headers before it reaches the wire. Later chapters cover each header in detail.2 min read
04Chapter 4: Segment, packet, frame: naming the piecesThis chapter assumes you know that each layer adds its own header around the data from the layer above. It also assumes you can read hexadecimal and know roughly what an IP address and a MAC address are. Here we settle the vocabulary: what each wrapped unit is called, and what is in it.3 min read
05Chapter 5: Starting point: application dataThis chapter covers the data that sits at the top of the stack before any network header is added. It assumes you know what an IP address is, can read bytes in hexadecimal, and can run commands in a terminal.3 min read
06Chapter 6: Transport layer: ports and the TCP or UDP headerThis chapter assumes you know that IP addresses identify hosts and that a layer wraps the data it receives from above with its own header. It covers how the transport layer lets many programs on one host share a single IP address.2 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 wrap application data in a TCP or UDP header. Here you will look at the next wrapper: the IP header.2 min read
08Chapter 8: Link layer: the Ethernet frameThis chapter assumes you know what an IP address is, can read hexadecimal bytes, and have seen the TCP and IP headers from the earlier chapters. Here the packet gets its last wrapper before it goes onto the wire.3 min read
09Chapter 9: Decapsulation: unwrapping at the receiverThis chapter assumes you know that a sender wraps data in a TCP header, an IP header and an Ethernet header. It also assumes you can read hexadecimal bytes and run Python 3.2 min read
10Chapter 10: Finding the next MAC address with ARPThis chapter assumes you know what an IPv4 address is, how the Ethernet frame is laid out, and that a host decides whether a destination is on its own subnet or needs a router. You should also be comfortable running commands in a terminal.3 min read
11Chapter 11: What changes and what stays the same at each routerThis chapter assumes you know the Ethernet, IPv4 and TCP headers from the earlier chapters, and that ARP maps an IPv4 address to a MAC address on the local link. Here you will see which header fields a router leaves alone and which it rewrites.3 min read
12Chapter 12: Size limits: MTU, MSS and fragmentationThis chapter assumes you know what encapsulation is, can read the TCP, IPv4 and Ethernet header fields from earlier chapters, and can run commands in a Linux terminal.3 min read
13Chapter 13: Seeing the layers in a packet captureThis chapter assumes you know what encapsulation is, can read hexadecimal bytes, and can run commands in a terminal. It shows how a capture tool displays each layer of a frame, so you can check the model against real traffic.3 min read
14Chapter 14: Tunneling: a packet inside a packetThis chapter assumes you know encapsulation, the IPv4 header, and MTU from the earlier chapters. You should also be able to read a short Python script.2 min read