02Chapter 2: Sockets and ports: how programs talk over the networkThis chapter assumes you know the four-layer model (application, transport, network, link), the idea of encapsulation, and basic Python. It covers how a program uses the transport layer through the socket API, how ports identify programs, and how a TCP client and server call the API.6 min read
03Chapter 3: UDP: a minimal transport serviceThis chapter assumes you know the four-layer model and encapsulation, and that you have met the socket call sequence from the previous chapter. It also assumes you can read hexadecimal numbers. UDP (User Datagram Protocol) is the simplest transport protocol you will meet in GATE. Knowing exactly wha6 min read
04Chapter 4: The TCP segment: header fields, sequence and acknowledgement numbersThis chapter assumes you know the four-layer model and encapsulation, and that you have seen the socket calls from the previous chapter. It covers the TCP header, how sequence and acknowledgement numbers work, and the calculations GATE asks about. Connection setup, retransmission, and window control6 min read
05Chapter 5: Opening and closing a TCP connectionThis chapter assumes you know the TCP header fields from the previous chapter: sequence number, acknowledgement number, and the SYN, ACK, FIN, and RST flags. It also assumes you know what a socket is. TCP is connection-oriented, so both ends keep state and must agree on it before data flows and agai7 min read
06Chapter 6: Reliable delivery: timeouts, retransmission, and fast retransmitThis chapter assumes you know the TCP segment fields (sequence number, acknowledgement number, flags), the three-way handshake, and the terms RTT and bandwidth. IP can drop, duplicate, delay, and reorder packets. TCP builds a reliable, in-order byte stream on top of it. It does this with cumulative 7 min read
07Chapter 7: Flow control with the receiver windowThis chapter assumes you know the TCP segment header, sequence and acknowledgement numbers, and the idea of a sliding window from the previous chapters. It also assumes you can compute with powers of two and with bandwidth and round-trip time (RTT).6 min read
08Chapter 8: Congestion control: slow start, congestion avoidance, Tahoe and RenoThis chapter assumes you know how TCP sequence numbers and acknowledgements work, what a round-trip time (RTT) is, and how the receiver window limits the sender. It builds on flow control and leads into the throughput calculations in the next chapter.5 min read
09Chapter 9: Window, RTT, and throughput calculationsThis chapter assumes you know bandwidth, propagation delay, transmission delay and round-trip time (RTT). It also assumes you know that a TCP sender is limited by the receiver window (rwnd) and the congestion window (cwnd). Here you turn those limits into numbers, which is the form GATE asks for4 min read
10Chapter 10: The DNS hierarchy: root, TLD, and authoritative serversThis chapter assumes you know the layered network model, what a socket and a port are, and that UDP is a connectionless transport. It covers the structure of the Domain Name System (DNS) and the roles of the servers in it. The next chapter follows a query through this structure. The chapter after th6 min read
11Chapter 11: Resolving a name: iterative versus recursive queries and cachingThis chapter assumes you know the layered network model and the basics of UDP and sockets. It also assumes you have seen the DNS hierarchy of root, TLD (top-level domain), and authoritative servers. Here we follow one lookup from start to finish. We compare the two query styles and look at how cachi7 min read
12Chapter 12: DNS records and message formatThis chapter covers what a DNS server stores (resource records) and how queries and answers are laid out on the wire. It assumes you know the DNS hierarchy and the difference between iterative and recursive resolution from the previous chapters. It also assumes you can read binary and hexadecimal nu6 min read
13Chapter 13: HTTP messages: request line, headers, and bodyHTTP is a text-based request and response protocol that runs on top of a reliable byte stream, normally TCP. This chapter assumes you know what a socket is, how a TCP connection is opened, and how a DNS lookup produces an IP address. It covers the structure of HTTP/1.1 messages, how a receiver finds5 min read
14Chapter 14: Methods, status codes, and common headersThis chapter assumes you can read a basic HTTP request and response (request line, headers, blank line, body) and know that HTTP runs over a TCP byte stream. It covers what the method, the status code, and the main headers tell client and server, and the mistakes GATE questions probe.4 min read
15Chapter 15: Persistent connections, pipelining, and newer HTTP versionsThis chapter assumes you know the structure of an HTTP request and response, the TCP three-way handshake, and the idea of round-trip time (RTT). It also assumes you have seen slow start and congestion control. The question here is how many TCP connections an HTTP client opens, and how that choice af6 min read
16Chapter 16: Cookies and cachingThis chapter covers how HTTP adds state on top of a stateless protocol (cookies) and how it avoids repeating work (caching). It assumes you can read an HTTP request and response, know the common methods and status code classes, and understand that HTTP runs over TCP. The chapter ends with the typica6 min read
17Chapter 17: Solving GATE-style problems on these topicsThis chapter collects the problem patterns that GATE CS repeats across TCP, DNS, and HTTP. It assumes you know the layered model, the terms bandwidth, propagation delay, transmission delay, and round-trip time (RTT), powers of two, and the TCP, DNS, and HTTP mechanisms covered in earlier chapters. T7 min read