CS FundamentalsHardGATE CS · Product company CS fundamentals

A base HTML page references 8 small images on the same server. The browser uses NON-persistent HTTP with up to 4 parallel TCP connections. Ignoring transmission times and DNS, how many RTTs does it take from the request for the page until all images have arrived?

  1. A. 10 RTTs
  2. B. 4 RTTs
  3. C. 6 RTTs
  4. D. 18 RTTs

Correct answer: C. 6 RTTs

The base file costs 2 RTTs (TCP handshake + request/response). The 8 images go in 2 waves of 4 parallel connections, each wave costing 2 RTTs, so 2 + 4 = 6. Serial non-persistent fetching would take 2 + 16 = 18 RTTs, and one persistent connection without pipelining 2 + 8 = 10.

More Computer Networks questions

Exams that ask this topic