CS FundamentalsVery hardGATE CS (PYQ pattern)

A web page consists of a base HTML file and 10 small objects. Fetching each object with a NEW TCP connection costs 2 RTTs (handshake plus request/response); the base file also costs 2 RTTs. With non-persistent HTTP and 4 parallel connections used for the embedded objects, how many RTTs pass before the page is fully loaded (transmission time negligible)?

  1. A. 22
  2. B. 6
  3. C. 12
  4. D. 8

Correct answer: D. 8

Base file: 2 RTTs. Then 10 objects in batches of 4 connections: ceil(10/4) = 3 batches x 2 RTTs = 6. Total 8. Serial fetching would need 2 + 20 = 22.

More Computer Networks questions

Exams that ask this topic