Re: policy-map: police vs police cir

From: Carlos G Mendioroz <tron_at_huapi.ba.ar>
Date: Tue, 21 Dec 2010 06:47:42 -0300

Sounds good to me...
-Carlos

Jack Router wrote:
> Thanks Carlos, both commands do the same thing then.
>
> Now, if i type "police 1000000 pir 2000000", IOS changes that to "police
> cir 1000000 pir 2000000".
>
> It looks to me that there is no reason at all to use "police 123456".
> For consistency and clarity "police cir etc..." can be used all the
> time. Am I right ?
>
>
> On 20 December 2010 14:19, Carlos G Mendioroz <tron_at_huapi.ba.ar
> <mailto:tron_at_huapi.ba.ar>> wrote:
>
> Jack,
>
> your first command yields:
>
> test#sh policy-map int f 0/0
> FastEthernet0/0
>
> Service-policy output: test
>
> Class-map: class-default (match-any)
> 1 packets, 60 bytes
> 5 minute offered rate 0000 bps, drop rate 0000 bps
> Match: any
> 1 packets, 60 bytes
> 5 minute rate 0 bps
> police:
> cir 1000000 bps, bc 31250 bytes
> conformed 0 packets, 0 bytes; actions:
> transmit
> exceeded 0 packets, 0 bytes; actions:
> drop
> conformed 0000 bps, exceed 0000 bps
>
> your second:
>
> policy-map test
> class class-default
>
> police 1000000 conform-action transmit exceed-action drop
>
> test#sh policy-map int f 0/0
> FastEthernet0/0
>
> Service-policy output: test
>
> Class-map: class-default (match-any)
> 12 packets, 720 bytes
> 5 minute offered rate 0000 bps, drop rate 0000 bps
> Match: any
> 12 packets, 720 bytes
> 5 minute rate 0 bps
> police:
> cir 1000000 bps, bc 31250 bytes
> conformed 0 packets, 0 bytes; actions:
> transmit
> exceeded 0 packets, 0 bytes; actions:
> drop
> conformed 0000 bps, exceed 0000 bps
>
> so they seem to do the same.
> As long as you don't put "pir" in there, you are configuring a one
> colour policer.
>
> -Carlos
>
> Jack Router wrote:
>
> Hello all,
>
> I have a question about police command. Assume that I want to
> police some
> traffic. Under policy-map, class I can enter:
> police 1000000 conform-action transmit exceed-action drop
> or
> police cir 1000000 conform-action transmit exceed-action drop
>
> Is there any diffrence between two commands and which should be
> used when ?
>
> Thanks,
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
>
>
>
>
>
>
>
> --
> Carlos G Mendioroz <tron_at_huapi.ba.ar <mailto:tron_at_huapi.ba.ar>>
> LW7 EQI Argentina
>
>

-- 
Carlos G Mendioroz  <tron_at_huapi.ba.ar>  LW7 EQI  Argentina
Blogs and organic groups at http://www.ccie.net
Received on Tue Dec 21 2010 - 06:47:42 ART

This archive was generated by hypermail 2.2.0 : Sat Jan 01 2011 - 09:37:49 ART