The Gateway to Computer Science Excellence
+3 votes
1.1k views
What happens in Token Bucket exactly and what happens in Leaky Bucket somebody please explain ?
in Computer Networks by Active (3.7k points) | 1.1k views
0

1 Answer

+6 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

by Active (3.4k points)

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,666 questions
56,154 answers
193,757 comments
93,718 users