in Computer Networks
1,716 views
3 votes
3 votes
What happens in Token Bucket exactly and what happens in Leaky Bucket somebody please explain ?
in Computer Networks
1.7k views

1 comment

0
0

1 Answer

7 votes
7 votes

Leaky bucket:
Parameters: rate
1. Smooth out traffic by passing packets only when there is a token. Does not permit burstiness.
2. Discards packets for which no tokens are available (no concept of queue)
3. Application: Traffic shaping or traffic policing.

Token bucket:
Params: rate, burstiness.
1. Token bucket smooths traffic too but permits burstiness - which is equivalent to the number of tokens accumulated in the bucket.
2. Discards tokens when bucket is full, but never discards packets (infinite queue).
3. Application: Network traffic shaping or rate limiting.

Refrence:https://www.slideshare.net/vimal25792/leaky-bucket-tocken-buckettraffic-shaping

Related questions

3 votes
3 votes
3 answers
3