Question

Identify the correct order in which the following actions take place in an interaction between a web browser and a web server.

  1. The web browser requests a webpage using HTTP.
  2. The web browser establishes a TCP connection with the web server.
  3. The web server sends the requested webpage using HTTP.
  4. The web browser resolves the domain name using DNS.
Choose one option
Official answer and solution
Official answer
A
From
Official GATE 2014 answer key

Solution

Order the chronological network actions required when a user enters a URL into a web browser.

When a user attempts to view a web page:

  1. DNS Resolution (Step 4): Before communicating with the web server, the browser must map the human-readable domain name (e.g., example.com) to an IP address using DNS.

  2. TCP Connection (Step 2): HTTP runs on top of TCP (typically port 80 or 443). The browser initiates a three-way TCP handshake (SYN, SYN-ACK, ACK) with the resolved IP address to establish a reliable transport connection.

  3. HTTP Request (Step 1): Once the TCP connection is established, the browser sends an HTTP GET request to request the webpage resource.

  4. HTTP Response (Step 3): The web server processes the request and sends the requested webpage data back in an HTTP response.

Therefore, the correct chronological sequence is 4, 2, 1, 3.

Final answer

A

Common trap

Assuming the HTTP request is sent before establishing the underlying TCP connection.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2014 Computer Science and Information Technology (CS) Session 1
Question
35 of 65, printed as CS Q.25
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.