GATE / CS ARCHIVE

GATE CSE 2023 / QUESTION 52

GATE CSE 2023 Q52

Computer Networks · Application Protocols · Full GATE CSE 2023 paper

GATE 2023, Q52 2 marks · MSQ
Report issue

Application Protocols

Question 52, GATE 2023: A browser and all DNS servers have empty caches. Resolving a hostname requires iterative queries through three DNS tiers, each costing RTT. Fetching its small HTML reveals ten small same-server objects; all transmission/rendering times are negligible and web-server RTT is identical. Which totals are correct? A 7 RTT for nonpersistent HTTP with five parallel connections; B 5 RTT for persistent pipelining; C 9 RTT for nonpersistent/five parallel; D 6 RTT for persistent/pipelining.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: C, D

The three uncached DNS tiers require three sequential round trips. Fetching the base HTML adds one TCP-handshake RTT and one request/response RTT. With non-persistent HTTP and five parallel connections, the ten objects take two batches, each needing two RTTs, so the total is 3+2+4=9 RTTs (C). With a persistent connection and pipelining, all ten object requests share one further RTT after parsing the HTML, giving 3+2+1=6 RTTs (D). This is the stipulated negligible-transmission, classic HTTP-over-TCP model; no extra TLS handshake is included.

Teaching detail. Write a dependency timeline: DNS root, DNS next tier, DNS authoritative lookup, TCP connection for HTML, then HTML request/response. This consumes five RTTs before the browser learns the object URLs. Parallel nonpersistent transfers then require two waves of five, each with a connection RTT and a response RTT. Persistent pipelining reuses the HTML connection and places all ten requests in flight together, requiring just one further RTT. The objects cannot be requested before their references are learned; disregarding that dependency undercounts the total.

Original paper, page 55 · Answer key