|
|  |







In any interval t [S,S+t], let say in time S, and the number of tokens in the bucket are a(a<=b), and during time interval [S,S+t] the counter accumulate rt tokens more. The total number of tokens available for source to transmit packets is a+rt, (a+rt<=b+rt). When the bucket size is b and during interval time [S,S+t], b+rt tokens accumulated. In this case bucket gets empty by the maximum rate of output link. If we call maximum speed of output B. The time which buckets gets empty b+rt=Bt รจ t=b/(B-r). Choosing all these parameters can be a bit tricky. One of the potential problem with token bucket is it allows burst again. If another burst come during this time interval, it cannot be handled, or in the case of bursts come very often the output speed will be maximum for the period of burst which can cause congestion. This problem can be reduced by carefully choosing parameters.
In one version , the analogue of the bucket is a counter or variable, separate from the flow of traffic, and is used only to check that traffic conforms to the limits, i.e. the analogue of the water is brought to the bucket by the traffic and added to it so that the level of water in the bucket indicates conformance to the rate and burstiness limits. This version is referred to here as the leaky bucket as a meter. In the second version [2], the traffic passes through a queue that is the analogue of the bucket, i.e. the traffic is the analogue of the water passing through the bucket. This version is referred to here as the leaky bucket as a queue. The leaky bucket as a meter is equivalent to (a mirror image of) the token bucket algorithm, and given the same parameters will see the same traffic as conforming or nonconforming. The leaky bucket as a queue can be seen as a special case of the leaky bucket as a meter .
Comments
Post a Comment