CS FundamentalsVery hardProduct company interview · GATE level
A 4800-byte message is sent over a path of 4 store-and-forward links of equal rate (3 routers), with negligible propagation delay. The message is cut into equal packets, each carrying p bytes of data plus a 20-byte header, and the packets are sent back to back. Which of these values of p delivers the whole message soonest?
- A. p = 120 bytes
- B. p = 1200 bytes
- C. p = 480 bytes
- D. p = 240 bytes
Correct answer: D. p = 240 bytes
With N packets over k links, the last packet arrives after (N + k - 1) packet transmission times, so the delay is proportional to (4800/p + 3) x (p + 20) byte-times. p = 1200: 7 x 1220 = 8540. p = 480: 13 x 500 = 6500. p = 240: 23 x 260 = 5980. p = 120: 43 x 140 = 6020. So 240 bytes is best: larger packets waste time being stored and forwarded whole at each hop, while at 120 bytes the header overhead starts to dominate.
More Computer Networks questions
- A host is shaped by a token bucket of capacity 6 Mb that fills at 4 Mbps; the bucket is full at t = 0. The output link can carry at most…
- Stations sharing a 56 kbps pure ALOHA channel send 1000-bit frames. Together (new frames plus retransmissions) they attempt 28 frames per…
- An HDLC-style link uses the flag 01111110 and bit stuffing: the sender inserts a 0 after every run of five consecutive 1s in the data. The…
- Hosts A, B, C, D and E are each attached to their own port of one Ethernet switch whose MAC table is empty. These frames are then sent in…
- A leaky bucket holds at most 5 packets. In each clock tick, newly arrived packets are first placed in the bucket (those that do not fit…
- 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…