Identify the correct order in which the following actions take place in an interaction between a web browser and a web server : GATE - 2014(1)

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.

(A) 4,2,1,3             (B) 1,2,3,4                 (C) 4,1,2,3                     (D) 2,4,

Answer

ANSWER : (A)

EXPLANATION :
First of all the browser must now know what IP to connect to. For this purpose browser takes help of Domain name system (DNS) servers which are used for resolving host-names to IP addresses. As browser is an HTTP client and as HTTP is based on the TCP/IP protocols, first it establishes a TCP connection with the web server and requests a webpage using HTTP, and then the web server sends the requested webpage using HTTP. Hence the order is 4,2,1,3.
 

0Comment