CS FundamentalsVery hardProduct company interview · GATE level
Host X sends 10 packets of 1000 bytes each to host Y through two store-and-forward routers. The three links on the path have rates 2 Mbps, 1 Mbps and 4 Mbps in that order. X transmits the packets back to back starting at t = 0; propagation and processing delays are negligible and queues never overflow. At what time has Y completely received the last packet?
- A. 50 ms
- B. 140 ms
- C. 86 ms
- D. 82 ms
Correct answer: C. 86 ms
Each packet is 8000 bits, so it takes 4 ms, 8 ms and 2 ms on the three links. The first packet finishes the second link at 4 + 8 = 12 ms. That link is the bottleneck: packets arrive every 4 ms but leave every 8 ms, so packet 10 finishes it at 12 + 9 x 8 = 84 ms and reaches Y after 2 ms more, at 86 ms. 140 ms wrongly sends packets one at a time end to end (10 x 14 ms); 50 ms assumes the first link sets the pace (10 x 4 + 8 + 2).
More Computer Networks questions
- 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…
- 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…