CS FundamentalsVery hardProduct company interview · GATE level
A browser with nothing cached fetches a page made of a base HTML file and 9 small images, all on one server. Resolving the server's name takes two DNS queries of 25 ms each. The round-trip time to the server is 40 ms and transmission times are negligible. The browser uses non-persistent HTTP and, after receiving the base file, opens at most 4 parallel TCP connections at a time. How long does it take to fetch the whole page?
- A. 850 ms
- B. 370 ms
- C. 290 ms
- D. 170 ms
Correct answer: B. 370 ms
DNS: 2 x 25 = 50 ms. Each non-persistent fetch costs 2 RTT = 80 ms (one RTT for the TCP handshake, one for the request and response). Base file: 80 ms. The 9 images need ceil(9/4) = 3 batches of parallel connections, each 80 ms: 240 ms. Total 50 + 80 + 240 = 370 ms. 850 ms fetches the images one after another (10 x 80 + 50); 290 ms assumes two batches are enough; 170 ms would need a persistent pipelined connection (50 + 80 + 40).
More Computer Networks questions
- For the host 172.29.115.201/21, what is the directed broadcast address of its subnet and how many usable host addresses does the subnet…
- The block 10.0.0.0/8 is cut into /19 subnets numbered 0, 1, 2, … in address order (subnet 0 is 10.0.0.0/19). What is the network address…
- A router's forwarding table holds 131.16.0.0/12 → R1, 131.28.0.0/14 → R2, 131.30.0.0/15 → R3, 131.30.128.0/17 → R4 and a default route →…
- A router must summarise 198.51.96.0/21, 198.51.104.0/22 and 198.51.110.0/23 into the smallest single prefix. Which prefix is it, and how…
- 192.168.40.0/24 is split with VLSM, largest requirement first, each at the lowest free aligned address, for LANs needing 60, 28 and 12…
- An organisation owns 150.80.0.0/16 and subnets it so that every subnet supports at least 500 hosts while creating as many subnets as…