Identify the correct sequence in which the following packets are transmitted on the network by a host when a browser requests a webpage from a remote server, assuming that the host has just been restarted.
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2016 Set 2 · Q25
Time
Select one answerSingle correct
Solution
Official answer: C) DNS query, TCP SYN, HTTP GET request
DNS and HTTPWhen a browser makes a request to a webpage on a remote server from a freshly restarted host:
DNS query: The host needs the IP address of the remote server. Since the host was just restarted, its DNS cache is empty. Thus, it first sends a DNS query to resolve the domain name to an IP address.
TCP SYN: After obtaining the IP address, a reliable transport connection must be established with the server via the TCP 3-way handshake. The host initiates this by transmitting a TCP SYN packet.
HTTP GET request: Once the TCP connection is established, the application layer sends the actual HTTP GET request over the connection.
Therefore, the correct sequence is DNS query, TCP SYN, HTTP GET request, which corresponds to option (C).
Try the question first, then check your work.
Examiner trap
Consider the dependencies: Can an HTTP request or TCP connection be initiated before resolving the server's IP address?
This DNS and HTTP previous year question is Q25 of the GATE CSE 2016 Set 2 paper. Find more GATE CSE PYQs on DNS and HTTP in Computer Networks, or browse all GATE CSE PYQs.
Free diagnostic
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.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
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 2016 Set 2.
How GATE tests DNS and HTTPIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.