GateAI
DNS and HTTP

GATE CSE 2023 · Q52

MSQ2 marksMedium

Time

Suppose in a web browser, you click on the www.gate-2023.in URL. The browser cache is empty. The IP address for this URL is not cached in your local host, so a DNS lookup is triggered (by the local DNS server deployed on your local host) over the 3-tier DNS hierarchy in an iterative mode. No resource records are cached anywhere across all DNS servers. Let RTT denote the round trip time between your local host and DNS servers in the DNS hierarchy. The round trip time between the local host and the web server hosting www.gate-2023.in is also equal to RTT. The HTML file associated with the URL is small enough to have negligible transmission time and negligible rendering time by your web browser, which references 10 equally small objects on the same web server. Which of the following statements is/are CORRECT about the minimum elapsed time between clicking on the URL and your browser fully rendering it?

Select all that applyOne or more correct

Pick every correct option

Solution

Step-by-step verified solution

Official answer: C) 9 RTTs, in case of non-persistent HTTP with 5 parallel TCP connections.; D) 6 RTTs, in case of persistent HTTP with pipelining.

DNS and HTTP
  1. DNS Lookup Time:

    • The 3-tier DNS hierarchy consists of the Root DNS server, TLD DNS server (.in), and Authoritative DNS server (gate-2023.in).

    • With iterative queries and no caching:

      DNS time=1 RTT (Root)+1 RTT (TLD)+1 RTT (Authoritative)=3 RTT\text{DNS time} = 1\text{ RTT (Root)} + 1\text{ RTT (TLD)} + 1\text{ RTT (Authoritative)} = 3\text{ RTT}
  2. Base HTML Retrieval:

    • 1 RTT1\text{ RTT} for TCP connection establishment.

    • 1 RTT1\text{ RTT} for the HTTP GET request and receiving the base HTML file.

    Time to receive base HTML=3 RTT (DNS)+2 RTT=5 RTT\text{Time to receive base HTML} = 3\text{ RTT (DNS)} + 2\text{ RTT} = 5\text{ RTT}
  3. Referenced Objects Retrieval:

    • Non-persistent HTTP with 5 parallel connections:

      • To fetch 10 objects using 5 parallel connections requires 2 consecutive rounds.

      • Each round takes 1 RTT1\text{ RTT} (TCP handshake) +1 RTT+ 1\text{ RTT} (HTTP request/response) =2 RTT= 2\text{ RTT}.

      • Total time for objects =2×2=4 RTT= 2 \times 2 = 4\text{ RTT}.

      • Total elapsed time =5 RTT+4 RTT=9 RTT= 5\text{ RTT} + 4\text{ RTT} = 9\text{ RTT}. Thus, (C) is correct and (A) is incorrect.

    • Persistent HTTP with pipelining:

      • The persistent connection is already established, so all 10 requests are pipelined together over the existing connection and retrieved in 1 RTT1\text{ RTT}.

      • Total elapsed time =5 RTT+1 RTT=6 RTT= 5\text{ RTT} + 1\text{ RTT} = 6\text{ RTT}. Thus, (D) is correct and (B) is incorrect.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This DNS and HTTP previous year question is Q52 of the GATE CSE 2023 paper. Find more GATE CSE PYQs on DNS and HTTP in Computer Networks, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related DNS and HTTP PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

DNS and HTTP in GATE CSE

DNS and HTTP has 18 GATE CSE PYQs across 15 papers from 2011 to 2026. This is the only 2-mark MSQ among them, and it is the only one in GATE CSE 2023.

How GATE tests DNS and HTTP

More from GATE CSE 2023

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2023 · Q52 · MSQ

Suppose in a web browser, you click on the www.gate-2023.in URL. The browser cache is empty. The IP address for this URL is not cached in your local host, so a DNS lookup is triggered (by the local DNS server deployed on your local host) over the 3-tier DNS hierarchy in an iterative mode. No resource records are cached anywhere across all DNS servers. Let RTT denote the round trip time between your local host and DNS servers in the DNS hierarchy. The round trip time between the local host and the web server hosting www.gate-2023.in is also equal to RTT. The HTML file associated with the URL is small enough to have negligible transmission time and negligible rendering time by your web browser, which references 10 equally small objects on the same web server. Which of the following statements is/are CORRECT about the minimum elapsed time between clicking on the URL and your browser fully rendering it?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.