01Chapter 1: Why networks are built in layersThis chapter assumes you can use a terminal and run simple commands. It also assumes you know what a client and a server are, and that you have used a network and the internet. You do not need to know any protocol details yet. Later chapters cover the OSI and TCP/IP models, and this one explains the3 min read
02Chapter 2: The OSI reference model: seven layersThis chapter assumes you know what a client and a server are, have used a network, and can run commands in a terminal. It describes the OSI model, the seven-layer reference model used as a shared vocabulary for networking. The TCP/IP model and the mapping between the two come in later chapters.3 min read
03Chapter 3: The TCP/IP model: four layersThis chapter assumes you know what a client and a server are, have used a network, and can run commands in a terminal. It does not assume you know the OSI model. That comes in a separate chapter.3 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 seen the idea of layered networking from the earlier chapters. Here you follow one message as each layer wraps it on the way out and unwraps it on the way in.4 min read
05Chapter 5: The link layer: Ethernet frames and MAC addressesThis chapter assumes you know what a client and a server are, that you can run commands in a terminal, and that you have met the idea of layers and encapsulation from earlier chapters. Here we look at the lowest layer of the TCP/IP model, the link layer. It moves data between devices that share the 3 min read
06Chapter 6: The internet layer: IP addresses, routing, and ICMPThis chapter assumes you know what a client and a server are, you can run commands in a terminal, and you have met the four TCP/IP layers and encapsulation in earlier chapters. Here we look at the internet layer, which sits above the link layer and below the transport layer.3 min read
07Chapter 7: The transport layer: TCP, UDP, and portsThis chapter assumes you know what the internet layer does. It delivers packets between hosts by IP address. It also assumes you can run commands in a terminal. The transport layer sits above it. It takes delivery between two hosts and turns it into delivery between two programs.3 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 four TCP/IP layers (link, internet, transport, application) in earlier chapters. It covers the top layer and the protocols that live there.3 min read
09Chapter 9: Putting the two models side by sideThis chapter assumes you know what the TCP/IP model's four layers and the OSI model's seven layers are. It also assumes you know that each layer wraps the data from the layer above in a header. Here you will line the two models up, learn which numbers and names people use in practice, and see the mi3 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), the seven OSI layers, and how encapsulation works. The two models line up in a table, but real protocols do not always stay in their assigned row. Knowing where they cross lines helps you read captures and3 min read
12Chapter 12: Seeing the layers in a packet captureThis chapter assumes you know the four TCP/IP layers, how encapsulation works, and the names frame, packet, segment, and datagram. It also assumes you can run commands with sudo in a terminal. Here you will capture traffic and label each header by layer.2 min read
13Chapter 13: Using layers to narrow down network problemsThis chapter assumes you know the four TCP/IP layers (link, internet, transport, application) and their OSI counterparts. It also assumes you can read a basic packet capture and run commands in a terminal.2 min read