GATE 2023 CS – Question 52
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?
Practise this question in The GATE Grind →
Show answer and explanation
Correct 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.
Explanation
Count the time from clicking to a fully rendered page, in units of RTT (the round trip between the host and each server).
**DNS lookup (iterative, 3 tiers).** Root server, TLD server, authoritative server: **3 RTT**.
**TCP connection setup:** 1 RTT. **Request for the HTML file:** 1 RTT.
Subtotal for the base page: $3+1+1=5$ RTT.
Then there are 10 embedded objects on the same server.
- **Persistent HTTP with pipelining:** all 10 requests go out together on the open connection, so they take **1 RTT**. Total $=5+1=\mathbf6$ RTT. (D is correct; B, which says 5, is too small.)
- **Non-persistent with 5 parallel connections:** 10 objects need 2 batches of 5. Each batch needs a TCP setup (1 RTT) and a request (1 RTT) $=2$ RTT, so $2\times2=4$ RTT. Total $=5+4=\mathbf9$ RTT. (C is correct; A, which says 7, is wrong.)
Answer: C, D.