A Computer on a 10Mbps network is regulated by a token bucket. The token…
20222008
A Computer on a 10Mbps network is regulated by a token bucket. The token bucket is filled at a rate of 2Mbps. It is initially filled to capacity with 16 megabits. What is the maximum duration for which the computer can transmit at the full 10Mbps?
- A.
1.6 seconds
- B.
2 seconds
- C.
5 seconds
- D.
8 seconds
Attempted by 133 students.
Show answer & explanation
Correct answer: B
Answer: 2 seconds.
Explanation:
Initial tokens available: 16 megabits.
Token fill (refill) rate: 2 Mbps. Transmission rate when sending at full speed: 10 Mbps.
Net token consumption while sending at full speed = transmit rate - fill rate = 10 Mbps - 2 Mbps = 8 Mbps.
Maximum duration = initial tokens / net consumption = 16 megabits / 8 Mbps = 2 seconds.
Quick check: If you ignored the refill you would get 16 / 10 = 1.6 s. Including the refill extends the time to 2 s, which matches the correct result.
A video solution is available for this question — log in and enroll to watch it.