02Chapter 2: The OSI reference model: seven layersThis chapter assumes you know what a client and a server are, you have used a network, and you can run commands in a terminal. It describes the OSI reference model: what each of its seven layers does, which protocols you will meet at each one, and which mistakes people commonly make when using it.8 min read
03Chapter 3: The TCP/IP model: four layersThis chapter assumes you know what a client and a server are, you have used a network and the internet, and you can run commands in a terminal. It covers the four layers of the TCP/IP model, what each layer does, and which protocols live there. The OSI model, the unit names (frame, packet, segment, 8 min read
04Chapter 4: Encapsulation and decapsulation: how data moves through the stackThis chapter assumes you know what a client and a server are, can run commands in a terminal, and have met the idea of layered models from the earlier chapters. You should also know the names of the four TCP/IP layers: link, internet, transport, and application. Here you will follow one piece of dat9 min read
05Chapter 5: The link layer: Ethernet frames and MAC addressesThis chapter assumes you know what the TCP/IP four-layer model is, that data is encapsulated as it moves down the stack, and that you can run commands in a terminal. It covers the lowest TCP/IP layer: how a frame is built, how MAC addresses work, how ARP finds them, and where the layer's responsibil7 min read
06Chapter 6: The internet layer: IP addresses, routing, and ICMPThis chapter assumes you know the layer names from the earlier chapters, what encapsulation means, and what a frame is. It also assumes you can read a binary number and run commands in a Linux or macOS terminal. Here you will look at the internet layer. It is the layer that gets a packet from one ne6 min read
07Chapter 7: The transport layer: TCP, UDP, and portsThis chapter assumes you know the four TCP/IP layers and how encapsulation wraps data in headers. It also assumes you can run Python and tcpdump in a terminal. The transport layer sits above the internet layer. It is where data stops being addressed to a host and starts being addressed to a progra7 min read
08Chapter 8: The application layer: HTTP, DNS, TLS, and friendsThis chapter assumes you know what a client and a server are, can run commands in a terminal, and have met the idea of layering and the four TCP/IP layers (link, internet, transport, application). It covers the top TCP/IP layer: what it contains, how programs use it, and where its boundaries with th7 min read
09Chapter 9: Putting the two models side by sideThis chapter assumes you can name the seven OSI layers and the four TCP/IP layers, and that you know what encapsulation is. It does not repeat how each layer works. It shows how the two models line up, why they line up the way they do, and how to use the mapping without being misled by it.6 min read
10Chapter 10: Naming the data at each layer: frame, packet, segment, datagramThis chapter assumes you know the four TCP/IP layers (link, internet, transport, application) and the idea of encapsulation from earlier chapters. You should also be comfortable running a command in a terminal and reading a few lines of Python.7 min read
11Chapter 11: Where the mapping blurs: ARP, ICMP, TLS, and the five-layer hybridThis chapter assumes you know the four TCP/IP layers (link, internet, transport, application) and the seven OSI layers. It also assumes you understand encapsulation and the basic job of each layer. Here you will look at the protocols that do not sit cleanly in one layer, and at why that is acceptabl8 min read
12Chapter 12: Seeing the layers in a packet captureThis chapter assumes you know the four TCP/IP layers (link, internet, transport, application), the idea of encapsulation, and the unit names frame, packet, segment, and datagram. You should also be comfortable running commands in a terminal and have permission to capture traffic on the machine you u6 min read
13Chapter 13: Using layers to narrow down network problemsThis chapter assumes you have read the earlier chapters on the TCP/IP and OSI models, encapsulation, and the per-layer protocols. You should know what a frame, packet, segment, and datagram are. You should also be comfortable running ping, curl, and dig in a terminal.6 min read