A computer on a $10$ $Mbps$ network is regulated by a token bucket. The token bucket is filled at a rate of $2$ $Mbps$. It is initially filled to capacity with $16$ $Megabits$. What is the maximum duration for which the computer can transmit at the full $10$ $Mbps$?
New tokens are added at the rate of $r$ bits/sec which is
$2$ $Mbps$ in the given question.
Capacity of the token bucket (b) = $16$ $Mbits$
Maximum possible transmission rate (M) = $10$ $Mbps$
So the maximum burst time = b/(M-r) = $16$/($10$-$2$) = $2$ $seconds$
here is the animation for token bucket hope this will help us to understand the concept.
I tried this easiest method! Is my approach correct, yes or no? plz let me know!
Hence for 2 seconds we can send the tokens at 10 Mbps.