GATE CS 2024 Set 1 — Question 16
Go beyond PYQs with Success TrackerAI-powered personalised practice and doubt support. Unlimited practice on eligible plans; AI usage limits apply.MCQ+1 / -0.33EasyDNSApplication LayerComputer NetworksHTTP & HTTPSTCP HandshakeTransport Layer
Computer Networks → Application Layer → DNS
Last updated
Question
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 serverWhich one of the following is the CORRECT chronological order (earliest in time to latest) of the packets leaving the computer ?
(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 serverWhich one of the following is the CORRECT chronological order (earliest in time to latest) of the packets leaving the computer ?
Correct answer
(C) (ii), (iv), (i), (iii)
Solution
To fetch a webpage when all caches are empty, the following sequence of events must occur:
1.DNS Resolution (ii): The browser first needs to know the IP address of the remote server. It sends a DNS request to resolve the hostname.
2.TCP Connection Establishment (iv): Once the IP address is obtained, the browser must establish a TCP connection with the server. This begins with a TCP SYN packet.
3.HTTP Request for Index Page (i): After the TCP connection is established, the browser sends an HTTP GET request to fetch the main index page of the website.
4.HTTP Request for Embedded Objects (iii): The browser receives and parses the index page. Upon discovering embedded objects (like images), it sends subsequent HTTP GET requests to fetch those specific objects.
Therefore, the correct chronological order is (ii) → (iv) → (i) → (iii), which matches option (C).Continue learning with Success Tracker
A step still unclear? Work through it with support
Use Success Tracker to ask about the reasoning, then try another GATE CS question to check your understanding.
AI-powered practice· Unlimited practice on eligible plans
- PYQs with solutions
- Attempt available previous-year questions, then compare your reasoning with the worked solution. Coverage varies by stream.
- Practice that adapts
- Choose a topic, work on weaker areas and bookmark questions to revisit. Your attempts feed your progress tracking.
- AI doubt support
- Ask follow-up questions about a step or concept while practising, instead of stopping at the final answer.
Unlimited practice is available on eligible plans. Free practice and AI usage have limits; check the current plan allowances before choosing.
This page stays readable without an account. AI responses can be wrong; check them against the solution and source material.
More questions on Application Layer
2026 Set 1 Q18With respect to a TCP connection between a client and a server, which one of the following…2026 Set 1 Q19Which of the following statements is/are true with respect to the interaction of a web browser with…2026 Set 2 Q21Consider a file of size 4 million bytes being transferred between two hosts connected via a path…2026 Set 2 Q22Which one of the following protocols may need to broadcast some of its messages?2026 Set 2 Q33If an IP network uses a subnet mask of 255.255.240.0, the maximum number of IP addresses that can…