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)?
- A. 22
- B. 6
- C. 12
- 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
- A resolver starts with an empty cache and resolves iteratively, caching every referral and answer. It handles, in order, www.example.com…
- Dijkstra's algorithm runs from A on the undirected graph with link costs A-E 9, A-G 6, B-C 3, B-F 5, B-G 7, C-E 8, C-F 9, C-G 5, D-E 5…
- Switches B1..B5 (bridge ID = number) are connected by point-to-point links: B1-B2 (cost 38), B1-B3 (cost 38), B1-B4 (cost 38), B1-B5 (cost…
- Switches B1..B5 (bridge ID = number) are connected by point-to-point links: B1-B2 (cost 38), B1-B3 (cost 38), B1-B4 (cost 38), B1-B5 (cost…
- An (11,7) Hamming code uses even parity with check bits at positions 1, 2, 4 and 8 (positions numbered 1 to 11 from the left). The…
- An (11,7) Hamming code uses even parity with check bits at positions 1, 2, 4 and 8. The received word (positions 1 to 11) is 10001100111…