CS FundamentalsModerateGATE CS (PYQ pattern)
Requests first check the browser cache (20% hit, 0 ms). Misses go to a campus proxy that hits 40% of the requests it sees and replies in 10 ms; on a proxy miss the proxy spends its 10 ms and then fetches from the origin, adding 1.5 s. What is the average response time per request?
- A. 910 ms
- B. 728 ms
- C. 608 ms
- D. 1208 ms
Correct answer: B. 728 ms
Proxy-level average = 0.4 x 10 + 0.6 x (10 + 1500) = 910 ms; only 80% of requests reach the proxy: 0.8 x 910 = 728 ms. Ignoring the browser cache gives 910; applying both hit rates to the same requests (20% + 40% of all requests) gives 608.
More Computer Networks questions
- 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…
- 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…