1,045 views
0 votes
0 votes

a leaky bucket used to control data flow,how many of data bits are left in bucket if host send a burst of data at the rate of 250 kbps for first 24 seconds and remain silent for next 16 seconds .then again burst of data is sent at the rate of 120 kbps for next 20 seconds and output rate is 8500 kbps??

  1. $10^4$
  2. $10^6$
  3. $100$
  4. $10^{8}$

2 Answers

0 votes
0 votes
Ans: $100$ $b$
Token bucket means, there will be a token rate (r), token capacity (b), and packet size (n).
If bucket contains atleast n tokens, then the tokens are removed and packet is sent, else nothing is done.

In this problem, the capacity is not provided, but the output rate mandates a the packet size.
This is because, if you have data < 8500kb then even if you flush all that in next sec, you can’t match 8500kb

Since $250 \times 24$ $+$ $120 \times 20$ $=8400$ $kb$ $\lt$ $8500$ $kb$
The bucket is short of $100$ $b$ to produce required burst.
So, the capacity is atleast $100$ $b$ more.

Related questions

0 votes
0 votes
2 answers
1
3 votes
3 votes
3 answers
2
Na462 asked Sep 15, 2018
2,090 views
1 votes
1 votes
0 answers
3
3 votes
3 votes
1 answer
4
LavTheRawkstar asked Apr 7, 2017
1,930 views
What happens in Token Bucket exactly and what happens in Leaky Bucket somebody please explain ?