02Chapter 2: Ports, sockets and multiplexingThis chapter assumes you know the four-layer model (application, transport, network, link), what an IP address and a packet are, and basic Python. It covers how the transport layer lets many programs on one host share a single IP address, and how the operating system decides which program receives e6 min read
03Chapter 3: Connectionless versus connection-oriented deliveryThis chapter assumes you know the four-layer model (application, transport, network, link). It also assumes you know that IP moves packets between hosts on a best-effort basis, and that you can read short Python programs. Ports and sockets were covered in the previous chapter. Here the question is h8 min read
04Chapter 4: UDP: independent datagrams with a minimal headerThis chapter assumes you know the layered model and what ports are, and that you can read basic Python. It builds on the earlier chapters about the transport layer's role, sockets and multiplexing, and connectionless versus connection-oriented delivery. TCP is covered in later chapters.6 min read
05Chapter 5: Checksums and error detectionThis chapter explains how TCP and UDP detect corrupted data, how the Internet checksum is computed, and what each protocol does when a check fails. It assumes you know the layered network model, what an IP address and a packet are, and basic Python. The Python examples need no network access.7 min read
06Chapter 6: TCP segments and the TCP headerThis chapter assumes you know the layered model (application, transport, network, link), what an IP packet is, and basic Python. Earlier chapters covered ports, sockets, and the split between connection-oriented and connectionless delivery. Here we look at the unit TCP sends, the segment, and at eve5 min read
07Chapter 7: Opening a connection: the three-way handshakeThis chapter assumes you know the four-layer model, what an IP address and packet are, and the difference between a port and a socket from earlier chapters. It also assumes you can read short Python programs. It covers how TCP sets up a connection, what the two sides agree on, which states they pass7 min read
08Chapter 8: How TCP delivers data reliably and in orderThis chapter assumes you know the layered network model, that IP delivers packets on a best-effort basis, and that you have seen the TCP three-way handshake. It explains the mechanism that turns an unreliable packet service into a reliable, ordered byte stream: sequence numbers, acknowledgments, tim7 min read
09Chapter 9: Byte stream versus message boundariesThis chapter assumes you know the layered network model, what an IP packet is, and how ports identify sockets. It also assumes you have read the earlier chapters on UDP datagrams and on TCP sequence numbers, acknowledgments and retransmission. You should be able to read short Python socket programs.7 min read
10Chapter 10: Flow control and the receive windowThis chapter assumes you know the TCP header fields, sequence numbers, and acknowledgments from the earlier chapters on reliable delivery. It also assumes you can read basic Python socket code.7 min read
11Chapter 11: Congestion control: slow start and congestion avoidanceThis chapter assumes you know how TCP sequence numbers, acknowledgments and retransmission work, and that you know the receive window from flow control. It covers how a sender decides how fast to send when the limit is the network, not the receiver.8 min read
12Chapter 12: Closing a connection and TCP statesThis chapter assumes you know the three-way handshake, sequence and acknowledgment numbers, and the basic sockets calls (connect, accept, recv, close). It covers how a TCP connection ends, what each side's state machine does along the way, and which teardown problems show up in real programs6 min read
13Chapter 13: TCP and UDP in code with socketsThis chapter assumes you know the layered network model, what an IP address and a port are, and basic Python. It shows how the TCP and UDP behaviour from earlier chapters appears in the sockets API, and where programs go wrong when they ignore it.5 min read
14Chapter 14: Choosing between TCP and UDPThis chapter assumes you know the layered network model, what an IP address and a packet are, and the basics of the sockets API from the earlier chapters. It also assumes you have seen the TCP handshake, sequence numbers, flow control and congestion control. Here you use that knowledge to make a dec6 min read