in Computer Networks edited by
11,566 views
28 votes
28 votes

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.

  1. HTTP GET request, DNS query, TCP SYN
  2. DNS query, HTTP GET request, TCP SYN
  3. DNS query, TCP SYN, HTTP GET request.
  4. TCP SYN, DNS query, HTTP GET request.
in Computer Networks edited by
11.6k views

2 Comments

3
3

This line "assuming that the host has just been restarted".

Simply weed out options (a) and (d) and from option (b) and (c)

-------> option B) w/o making TCP connection establishment with server doing HTTP GET request.

 

 

0
0

3 Answers

67 votes
67 votes
Best answer

Here,

C) Seems correct answer.

Say you type www.google.com

FIrst you send DNS request to get IP address. Then you establish connection with IP of google using TCP. Finally you start talking in HTTP !

edited by

4 Comments

@Akash & @Sachin Thanks nice explanation.
0
0

@Akash Kanase can you please tell that do we here need a udp connection before dns query?

because DNS uses udp at transport layer.

 

2
2
UDP do't required any connection establishment like TCP. but yes we use UDP in DNS.
2
2
4 votes
4 votes
DNS --> Domain name converted to IP  address for that we need DNS

TCP --> Connection established using TCP

FTP --> web pages which is prepared in ur local host  move to a server for that we need FTP

HTTP -->  using HTTP we get web pages
1 vote
1 vote

The question is asking for the correct sequence of events when a browser requests a webpage from a remote server, given that the host has just been restarted.

The correct sequence is:

  1. DNS query: The client needs to resolve the server's domain name into an IP address to know where to send the request. This is accomplished using the Domain Name System (DNS).
  2. TCP SYN: Once the client has the server's IP address, it initiates a TCP connection with the server. This is done using a SYN (synchronize) packet, which is part of the TCP three-way handshake (SYN, SYN-ACK, ACK).
  3. HTTP GET request: Once the TCP connection is established, the client can send an HTTP GET request to the server to ask for the webpage.

So, option 3 (DNS query, TCP SYN, HTTP GET request) is the correct answer.

Answer:

Related questions