02Chapter 2: How data is wrapped on the way down and unwrapped on the way upThis chapter assumes you know what a protocol is, what an IP address and a MAC address are, and that you can run Python 3 and simple terminal commands. The chapter on why networks are layered comes before it. Here we look at the mechanism that makes layering work: encapsulation and decapsulation.7 min read
03Chapter 3: Layer 1: Physical, bits on the mediumThis chapter assumes you know what a network and an IP address are, and that you can run simple terminal commands. It covers Layer 1 of the OSI model, the layer that turns bits into signals on a wire, a fiber, or the air.7 min read
04Chapter 4: Layer 2: Data Link, frames and MAC addressesLayer 2 moves data between two devices that share the same local link. This chapter covers the Ethernet frame, MAC addresses, how a switch forwards frames, and how Layer 2 fits with Layer 3. It assumes you know what an IP address is, you know that switches and routers are different devices, and you 8 min read
05Chapter 5: Layer 3: Network, IP addressing and routingThis chapter assumes you know the layer names from the earlier chapters and how encapsulation works. It also assumes you can read binary and dotted-decimal numbers and can run commands in a Linux terminal.7 min read
06Chapter 6: Layer 4: Transport, TCP, UDP, and portsYou should know that Layer 3 (IP) delivers packets between hosts and that a packet carries source and destination IP addresses. You should also be comfortable running commands in a terminal. This chapter covers what Layer 4 adds on top of that, how TCP and UDP differ, and the errors you will meet mo8 min read
07Chapter 7: Layer 5: Session, managing dialoguesThis chapter assumes you know the layers below it. That means frames and MAC addresses at Layer 2, IP routing at Layer 3, and TCP connections and ports at Layer 4. You should also be comfortable running Python and shell commands.6 min read
08Chapter 8: Layer 6: Presentation, encoding, encryption, and compressionThis chapter assumes you know the OSI layers from earlier chapters and how encapsulation works. You should also be comfortable reading short Python snippets and running commands in a terminal. The Session layer (Layer 5) sits below this layer, and the Application layer (Layer 7) sits above it.7 min read
09Chapter 9: Layer 7: Application, protocols that applications speakYou should know the layer order from earlier chapters, how encapsulation wraps data on the way down the stack, and that Layer 4 delivers data to a port on a host. You should also be comfortable running Python and shell commands. This chapter covers the top of the stack, where network communication b8 min read
10Chapter 10: Data units and devices at each layerThis chapter assumes you know the seven OSI layers by name and have seen encapsulation: each layer adds its own header, and the receiver removes the headers in reverse order. Here you attach two practical labels to each layer. The first is the name of the data unit at that layer. The second is the n7 min read
11Chapter 11: OSI versus the TCP/IP modelThis chapter assumes you know the seven OSI layers, the idea of encapsulation, and the common protocols at each layer (Ethernet, IP, TCP, UDP, HTTP, TLS). It compares OSI with the TCP/IP model, shows where the two disagree, and explains why engineers use both vocabularies.8 min read
12Chapter 12: Using the layers to troubleshootThis chapter assumes you know the seven OSI layers and what each one does. It also assumes you know the basics of encapsulation, and that you can run simple commands in a Linux terminal. Here you will turn the model into a repeatable method for finding network faults.8 min read