GATE / CS ARCHIVE

GATE CSE 2016 SET 2 / QUESTION 25

GATE CSE 2016 Set 2 Q25

Computer Networks · Application Protocols · Full GATE CSE 2016 Set 2 paper

GATE 2016 Set 2, Q25 1 mark · MCQ
Report issue

Application Protocols

Question 25, GATE 2016: A just-restarted host’s browser requests a remote webpage. Choose the order among the listed packets: A HTTP GET,DNS query,TCP SYN; B DNS query,HTTP GET,TCP SYN; C DNS query,TCP SYN,HTTP GET; D TCP SYN,DNS query,HTTP GET.
Tap to enlarge
Your answer
Answer & solution

Official answer: C

In the conventional uncached HTTP-over-TCP scenario, resolve the server name by DNS, initiate the TCP connection with SYN, then send HTTP GET after connection establishment. This order is C. Other bootstrap traffic such as DHCP/ARP and modern alternative transports are outside the listed sequence.

DNS provides the destination IP address required before the TCP SYN can be directed to that server. TCP’s handshake establishes the byte stream carrying the HTTP request. The question asks relative order of three named messages, not a complete packet trace: SYN-ACK, ACK and link-layer address resolution may occur between them.

Original paper, page 32 · Answer key