GroupStudy.com GroupStudy.com - A virtual community of network engineers
 Home  BookStore  StudyNotes  Links  Archives  StudyRooms  HelpWanted  Discounts  Login
Re: Two Rate Policer posted 09/28/2004
[Chronological Index] [Thread Index] [Top] [Date Prev][Date Next] [Thread Prev][Thread Next]


There is no two rate single bucket.
There are two different versions of "three color policers":
RFC 2697 Single Rate Three Color Policer, which uses a single rate (CIR) for conforming and Be for bursts (i.e. exceed/violate).
RFC 2698 Two Rate Three Color Policer, which uses CIR and PIR.
Both are two token bucket algorithms.


If you have CIR and no Be, then you have a two color single rate policer.

In your example, PIR has no use as you are not specifying a violate action, and the default violate action is the exceed action.
Whether the router is actually implementing the PIR control or not seems irrelevant...


gladston@xxxxxxxxxx wrote:

I understood that Single token bucket, Two Token Bucket and Two rate Policer were independently, that is:

two token-> police 8000 2000 4000 conform transmit exceed set-qos-transmit 4 violate drop

single token -> police 8000 2000 4000 conform transmit exceed drop

two rate with two token -> police cir 500000 pir 1000000 conform-action transmit exceed-action set-prec-transmit 2 violate-action drop

two rate with single token -> police cir 500000 pir 1000000 conform-action transmit exceed-action drop


But this statement says that Two-Token is available through Two-Rate. Is it wrong?


"There are currently two types of token bucket algorithms: a single token bucket algorithm (available through the Traffic Policing feature) and a two token bucket algorithm (available through the Two-Rate Policer)"

http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122newft/122t/122t4/ft2rtplc.htm



R6#sh run
 class-map match-all Police
  match any
 class-map match-all Voice
!
!
 policy-map Police
  class Police
   police cir 500000 pir 1000000
     conform-action transmit
     exceed-action transmit

_______________________________________________________________________
Subscription information may be found at: http://www.groupstudy.com/list/CCIELab.html



-- Carlos G Mendioroz <tron@xxxxxxxxxxx> LW7 EQI Argentina