*The token bucket is a
control mechanism that dictates when traffic can be transmitted, based on the
presence of tokens in the bucket--an abstract container that holds aggregate
network traffic to be transmitted.
* The bucket contains tokens,
each of which can represent a unit of bytes or a single packet of predetermined
size.
* Tokens in the bucket are
removed ("cashed in") for the ability to send a packet.
* The network administrator
specifies how many tokens are needed to transmit how many bytes.
* When tokens are present, a flow
is allowed to transmit traffic.
* If there are no tokens in the bucket, a flow
cannot transmit its packets
* Therefore, a flow can transmit
traffic up to its peak burst rate if there are adequate tokens in the bucket
and if the burst threshold is configured appropriately.
Figure : The
token-bucket traffic-shaping method
0 comments