GATE / CS ARCHIVE

GATE CSE 2024 SET 1 / QUESTION 16

Order the first packets of web browsing

Computer Networks · Application Protocols · Full GATE CSE 2024 Set 1 paper

GATE 2024 Set 1, Q16 1 mark · MCQ
Report issue

Application Protocols

Question 16, GATE 2024: A browser fetches an index page and its embedded images from one server over one TCP connection. DNS and browser caches start empty. Put these outgoing packets in chronological order: (i) GET index, (ii) DNS request, (iii) GET image, (iv) TCP SYN. A iv,ii,iii,i; B ii,iv,iii,i; C ii,iv,i,iii; D iv,ii,i,iii.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Approach: Identify what information or connection each operation needs before it can happen.
1. The browser begins with the server's name but, because the DNS cache is empty, must resolve that name to an IP address. The DNS request (ii) comes first.
2. Once the address is known, TCP connection establishment begins with the SYN packet (iv). HTTP requests use the established connection.
3. The browser requests the top-level index document (i). It must receive and parse that document to discover the embedded image references in this model.
4. It can then request an image object (iii), reusing the one TCP connection.
Answer: C, ii → iv → i → iii. DNS replies and the rest of the TCP handshake occur between these events, but are not among the four packets the question asks us to order.

Original paper, page 11 · Answer key