Skip to content
Official PYQ · 2024

GATE CS 2024 Set 1 Q6 — Concept of Layering: OSI and TCP/IP Protocol Stacks

Explain with AI

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.

  1. HTTP GET request for the index page
  2. DNS request to resolve the web server's name to its IP address
  3. HTTP GET request for an image object
  4. 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?

Choose one option
View worked solution

Answer: C

To fetch the webpage, the browser must perform the following steps in sequence:

  1. DNS Resolution: Since all caches are initially empty, the browser must first resolve the server's domain name to an IP address. Thus, the DNS request (ii) is sent first.
  2. TCP Connection Establishment: Once the IP address is obtained, a TCP connection must be established before any HTTP communication can occur. This begins with the TCP 3-way handshake, initiated by sending a TCP SYN (iv).
  3. Requesting the Index Page: After the TCP connection is established, the browser sends an HTTP GET request for the index page (i) to retrieve the main HTML document.
  4. Requesting Embedded Objects: The server returns the index page. The browser parses this HTML, discovers the embedded image objects, and then sends an HTTP GET request for the image object (iii).

Therefore, the correct chronological order is: (ii) → (iv) → (i) → (iii).

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Concept of Layering: OSI and TCP/IP Protocol Stacks questions