Two Rate Policer

From: gladston@br.ibm.com
Date: Fri Aug 06 2004 - 16:30:46 GMT-3


Please help with the new Police command on 12.2T.

What is the difference of both commands:

   police 1000000 125000 250000 conform-action transmit exceed-action transmit violate-action drop

   police 1000000 125000 250000 conform-action transmit exceed-action drop

(police bps burst-normal burst-max conform-action action exceed-action action [violate-action action])

Based on the following article on Cisco page I would say that the second command is wrong because it specify exceed burst but do not specify a violate action. Is that interpretation correct?

"Token Bucket Algorithm with One Token Bucket
The one token bucket algorithm is used when the violate-action option is not specified in the police command CLI.

The conform bucket is initially set to the full size (the full size is the number of bytes specified as the normal burst size).

When a packet of size B bytes arrives at time t the following actions occur:

a. Tokens are updated in the conform bucket. If the previous arrival of the packet was at t1 and the current time is t, the bucket is updated with (t-t1) worth of bits based on the token arrival rate. The token arrival rate is calculated as follows:

(time between packets<which is equal to t-t1> * policer rate)/8 bytes

b. If the number of bytes in the conform bucket - B is greater than or equal to 0, the packet conforms and the conform action is taken on the packet. If the packet conforms, B bytes are removed from the conform bucket and the conform action is completed for the packet.

c. If the number of bytes in the conform bucket - B is less than 0, the exceed action is taken."

But I could not figure out



This archive was generated by hypermail 2.1.4 : Fri Sep 03 2004 - 07:02:34 GMT-3