1,952 views

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

0 votes
0 votes
2 answers
1
1 votes
1 votes
0 answers
2
3 votes
3 votes
3 answers
3
Na462 asked Sep 15, 2018
2,165 views
0 votes
0 votes
2 answers
4