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?

  1. A. About 196.1 kbps
  2. B. About 156.9 kbps
  3. C. 160 kbps
  4. 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

Exams that ask this topic