CS FundamentalsVery hardGATE CS (PYQ pattern)
A 1,000,000-byte message crosses 3 store-and-forward links of 1 Mbps each (ignore propagation and queuing), split into packets with a payload of p bytes plus a 50-byte header; the last packet may be shorter but is padded to full size here (n = ceil(M/p) packets, all of size p + 50). Which payload size gives the smallest end-to-end delay among 500, 1000, 2000, 5000, 10000 and 50000 bytes?
- A. 500 bytes
- B. 5000 bytes
- C. 1000 bytes
- D. 2000 bytes
Correct answer: B. 5000 bytes
Delay = (n + 2) x (p + 50) x 8 / 10^6 s with n = ceil(10^6 / p): p = 500: 8.81 s, p = 1000: 8.42 s, p = 2000: 8.23 s, p = 5000: 8.16 s, p = 10000: 8.20 s, p = 50000: 8.81 s. Small packets waste bandwidth on headers; huge packets lose pipelining.
More Computer Networks questions
- 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…
- 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…