Computer Networks
OSI/TCP-IP Layers & Routing
GATE 2016
Medium
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.
- AHTTP GET request, DNS query, TCP SYN
- BDNS query, HTTP GET request, TCP SYN
- DNS query, TCP SYN, HTTP GET request
- DTCP SYN, DNS query, HTTP GET request
Explanation
The browser must first resolve the hostname to an IP address (DNS query), then establish a TCP connection to that IP (TCP SYN), and only then can it send the actual HTTP GET request over that connection.
Source: GATE CS 2016 (Session 2 / Set B) (2016)
This question is part of a 15-day revision cycle — sign in and Project Forge will bring it back the day before you'd forget it.