2,024 views
3 votes
3 votes

Consider  a token bucket with maximum rate R = 20 Mbps suppose we want to make sure that the maximum rate can only be sent for at-most 5 seconds at a time , and at- most 150 Mb can be sent over any 10 second window. Consider the required value for the bucket depth (b) in Mb 

1 Answer

2 votes
2 votes
We are sending the maximum rate for 5 seconds,so we send 20 ∗ 5 = 100 Mb in 5 seconds. We can only send 150 Mb in any 10-second window, so 150 − 100 = 50 Mb, we can send in the remaining 5 seconds, so rate = 50/5 = 10 Mbps. Now, in order to ensure the bucket has enough tokens to sustain a 5-second burst at 20 Mbps, we require b = (M − rate) ∗ 5 = (20 − 10) ∗ 5 = 50 Mb bucket depth.

M-- maximum rate at which data can be send

Related questions