GateAI
DNS and HTTP

GATE CSE 2024 Set 1 · Q16

MCQ1 markEasy

Time

A user starts browsing a webpage hosted at a remote server. The browser opens a single TCP connection to fetch the entire webpage from the server. The webpage consists of a top-level index page with multiple embedded image objects. Assume that all caches (e.g., DNS cache, browser cache) are all initially empty. The following packets leave the user’s computer in some order. (i) HTTP GET request for the index page (ii) DNS request to resolve the web server’s name to its IP address (iii) HTTP GET request for an image object (iv) TCP SYN to open a connection to the web server

Which one of the following is the CORRECT chronological order (earliest in time to latest) of the packets leaving the computer ?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: C) (ii), (iv), (i), (iii)

DNS and HTTP

To fetch the web page, the sequence of events is as follows:

  1. (ii) DNS request: Since the DNS cache is empty, the client must first resolve the server's domain name to an IP address by sending a DNS query.

  2. (iv) TCP SYN: Once the IP address is known, the client initiates the 3-way handshake to establish a TCP connection with the web server by transmitting a TCP SYN packet.

  3. (i) HTTP GET request for the index page: After the TCP connection is established, the browser requests the base HTML document (index page).

  4. (iii) HTTP GET request for an image object: The browser parses the received index HTML, finds the references to embedded images, and sends subsequent HTTP GET requests to fetch the images over the existing TCP connection.

Hence, the correct chronological order is (ii) →\rightarrow (iv) →\rightarrow (i) →\rightarrow (iii), which corresponds to (C).

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This DNS and HTTP previous year question is Q16 of the GATE CSE 2024 Set 1 paper. Find more GATE CSE PYQs on DNS and HTTP in Computer Networks, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related DNS and HTTP PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

DNS and HTTP in GATE CSE

DNS and HTTP has 18 GATE CSE PYQs across 15 papers from 2011 to 2026. 13 of them are 1-mark MCQs like this one, and it is the only one in GATE CSE 2024 Set 1.

How GATE tests DNS and HTTP

More from GATE CSE 2024 Set 1

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2024 Set 1 · Q16 · MCQ

A user starts browsing a webpage hosted at a remote server. The browser opens a single TCP connection to fetch the entire webpage from the server. The webpage consists of a top-level index page with multiple embedded image objects. Assume that all caches (e.g., DNS cache, browser cache) are all initially empty. The following packets leave the user’s computer in some order. (i) HTTP GET request for the index page (ii) DNS request to resolve the web server’s name to its IP address (iii) HTTP GET request for an image object (iv) TCP SYN to open a connection to the web server Which one of the following is the CORRECT chronological order (earliest in time to latest) of the packets leaving the computer ?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.