CS FundamentalsVery hardProduct company interview · GATE level
A stop-and-wait link runs at 1 Mbps with a one-way propagation delay of 10 ms. Data frames are 5000 bits, ACKs are 500 bits, and each data frame is lost independently with probability 0.2 (ACKs are never lost). The timeout is set exactly equal to the time of one successful send-and-acknowledge cycle. What is the expected throughput of data bits?
- A. About 196.1 kbps
- B. About 156.9 kbps
- C. 160 kbps
- D. 800 kbps
Correct answer: B. About 156.9 kbps
One cycle = frame 5 ms + propagation 10 ms + ACK 0.5 ms + propagation 10 ms = 25.5 ms, and a failed attempt costs the same because the timeout equals the cycle. Expected attempts per frame = 1/(1 - 0.2) = 1.25, so each frame takes 31.875 ms on average. Throughput = 5000 bits / 31.875 ms = 156.9 kbps. 196.1 kbps ignores the losses, 160 kbps ignores the ACK's transmission time, and 800 kbps is just 0.8 x the link rate.
More Computer Networks questions
- A sender must deliver frames 1 to 12. Every 6th frame transmission (counting retransmissions too) is lost; ACKs are never lost. With…
- A stop-and-wait sender has 6 frames to deliver over a 100 kbps link with one-way propagation delay 20 ms. Frames are 1000 bits and ACKs…
- A 20 Mbps link has a one-way propagation delay of 8 ms and carries 1250-byte frames; ACKs are negligibly short. The sender window is…
- An IPv4 datagram of total length 4020 bytes (20-byte header, no options) is forwarded over a link with MTU 1500 bytes and then over a link…
- A router receives an IPv4 fragment with header length field 5, total length 1196, fragment offset 294 and the More Fragments bit set…
- A sender protects the 10-bit message 1011001110 with a CRC using the generator 10011 (x^4 + x + 1) and transmits the resulting 14-bit…