01Chapter 1: Where the transport and application layers sitThis chapter assumes that you know the layered network model, encapsulation, IP addresses, bandwidth, latency, propagation delay, transmission delay, and round-trip time (RTT). You should also be comfortable with powers of two and basic Python or C syntax.2 min read
02Chapter 2: Sockets and ports: how programs talk over the networkAssume you know the layered network model, IP addresses, bandwidth, latency, and basic Python. This chapter focuses on the socket API, the programming interface that lets an application use TCP or UDP.2 min read
03Chapter 3: UDP: a minimal transport serviceThis chapter assumes you know the layered network model, IP addresses, ports, bandwidth, latency, and round-trip time (RTT). You should also know basic Python socket programming.2 min read
05Chapter 5: Opening and closing a TCP connectionAssume that you know the layered network model, IP addresses, ports, bytes, and round-trip time (RTT). You should also know that TCP provides a reliable, ordered byte stream between two application processes.2 min read
07Chapter 7: Flow control with the receiver windowAssume you know the layered network model, TCP sequence and acknowledgement numbers, and the meaning of round-trip time (RTT). This chapter focuses on flow control, which prevents a fast sender from overwhelming a slow receiver.2 min read
08Chapter 8: Congestion control: slow start, congestion avoidance, Tahoe and RenoAssume that you know TCP sequence numbers, acknowledgements, round-trip time (RTT), and the difference between flow control and congestion control. Flow control protects the receiver from receiving more data than it can store. Congestion control protects the network from receiving more traff2 min read
09Chapter 9: Window, RTT, and throughput calculationsAssume you know the layered network model, bandwidth, latency, propagation delay, transmission delay, and round-trip time (RTT). Also assume you can convert between bits, bytes, and powers of two.2 min read
10Chapter 10: The DNS hierarchy: root, TLD, and authoritative serversAssume that you know IP addresses, UDP, client-server communication, and the layered network model. This chapter focuses on how DNS organizes names and delegates responsibility. Detailed query resolution and caching come next.3 min read
11Chapter 11: Resolving a name: iterative versus recursive queries and cachingThis chapter assumes that you know the layered network model, IP addresses, ports, latency, and basic Python. It also assumes that you know that DNS maps names such as www.example.com to resource records, such as IPv4 (A) or IPv6 (AAAA) addresses.3 min read
12Chapter 12: DNS records and message formatThis chapter assumes that you know the layered network model, UDP and TCP basics, IP addresses, ports, binary arithmetic, and the difference between recursive and iterative DNS resolution.2 min read
13Chapter 13: HTTP messages: request line, headers, and bodyThis chapter assumes that you know the layered network model, TCP provides a byte stream, and a client can identify a server using an IP address and port. HTTP is an application-layer protocol that defines how a client and server represent requests and responses.2 min read
14Chapter 14: Methods, status codes, and common headersAssume you know the layered network model, TCP connections, sockets, and the meaning of latency, bandwidth, and round-trip time. HTTP is an application-layer protocol. It sends requests and responses as messages over a transport such as TCP. HTTP/1.1 commonly uses a persistent TCP connection, while 2 min read
15Chapter 15: Persistent connections, pipelining, and newer HTTP versionsAssume you know TCP connection setup, round-trip time (RTT), HTTP request and response structure, and common status codes. This chapter explains how HTTP uses transport connections more efficiently and why HTTP/2 and HTTP/3 changed the design.2 min read
16Chapter 16: Cookies and cachingPrerequisites: HTTP request and response structure, status codes, headers, round-trip time (RTT), and basic client-server communication.2 min read
17Chapter 17: Solving GATE-style problems on these topicsAssume you know the layered network model, encapsulation, bandwidth, latency, round-trip time (RTT), binary arithmetic, and basic Python or C. This chapter gives a method for solving common numerical and conceptual questions.2 min read