Re: Police CIR vs PIR

From: mark.chandra@gmail.com
Date: Thu Jan 29 2009 - 03:29:37 ARST


Got it man.

Thanks a lot jared.
Sent from my BlackBerry. wireless device from XL GPRS/EDGE/3G network

-----Original Message-----
From: "Jared Scrivener" <jscrivener@ipexpert.com>

Date: Thu, 29 Jan 2009 00:21:51
To: 'Mark Stephanus Chandra'<mark.chandra@gmail.com>; <ccielab@groupstudy.com>
Subject: RE: Police CIR vs PIR

Yep, you're almost exactly right, Mark.

The default assumption is that it is physically impossible to violate your
terms of service due to the PIR being assumed equal to the AR. This
assumption exists whenever a single rate (i.e just the CIR) is set in the
"police" command.

Given that it is impossible for traffic to exceed the AR (and AR=PIR by
default), when you say that the default action is to "drop", I'd paraphrase
it to say nothing will be permitted to violate the policy (by virtue of
there being no way to send traffic above the AR that could be dropped). :)

Both of your commands should achieve the same goal - a CIR of 128k and a PIR
of 256k.

Cheers,

Jared Scrivener CCIE3 #16983 (R&S, Security, SP), CISSP
Technical Instructor - IPexpert, Inc.
Telephone: +1.810.326.1444
Fax: +1.810.454.0130
Mailto: jscrivener@ipexpert.com

-----Original Message-----
From: Mark Stephanus Chandra [mailto:mark.chandra@gmail.com]
Sent: Thursday, 29 January 2009 12:16 AM
To: jscrivener@ipexpert.com; ccielab@groupstudy.com
Subject: RE: Police CIR vs PIR

Hi Jared,

Thanks a lot for your explanation.

So the first syntax and second syntax the traffic will have the same
treatment right ? Without defining violate-action command, the default is
dropping the violate traffic right ?

If with CIR command, we do not have violate traffic at all cause the router
assume there is no violate traffic, is that right ?

Thanks

Regards

Mark Stephanus Chandra
IT Consultant

-----Original Message-----
From: Jared Scrivener [mailto:jscrivener@ipexpert.com]
Sent: Thursday, January 29, 2009 12:01 PM
To: 'Mark Stephanus Chandra'; ccielab@groupstudy.com
Subject: RE: Police CIR vs PIR

Hey Mark,

The first example assumes a two-colour policer, the second example assumes a
three-colour policer.

Effectively, the CIR is the average rate you've paid to send data at and the
PIR is the maximum rate you can send data at.

Often, the PIR is equal to the access rate on the link (AR). When this
occurs you can use a two-colour policer - traffic up to the CIR is
conforming and traffic between the CIR and PIR (or AR as they are equal) is
excess.

If the PIR (which is the fastest you are ever "allowed" to send data) is
less than the AR on the link then there are 3 categories. The CIR is the
average speed you can send at (conforming), the PIR is the speed you are
allowed to burst up to (exceeding) and the AR is the physical speed you
*can* go up to but are NOT allowed to (violating).

In your question you've defined the CIR and the PIR the same in both
examples. However, when using the second syntax the router assumes that
there is going to be a difference between the PIR and the AR on the link and
will create that "violating" action so that you can punish that traffic
accordingly.

Cheers,

Jared Scrivener CCIE3 #16983 (R&S, Security, SP), CISSP
Technical Instructor - IPexpert, Inc.
Telephone: +1.810.326.1444
Fax: +1.810.454.0130
Mailto: jscrivener@ipexpert.com

-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of Mark
Stephanus Chandra
Sent: Wednesday, 28 January 2009 11:50 PM
To: ccielab@groupstudy.com
Subject: Police CIR vs PIR

Hi Guys

 

I just want a confirmation regarding Traffic Policing :

 

If I said

 

Police 128000 4000 8000 conform-action transmit exceed-action transmit,

 

is it the same with :

 

police cir 128000 pir 256000 ?

 

Can u tell me what is the difference between these two statement:

 

When I use CIR I get this configuration :

 

R2(config)#do sh policy-map interface fast 0/0

 FastEthernet0/0

 

  Service-policy output: mark

 

    Class-map: QOS (match-all)

      0 packets, 0 bytes

      5 minute offered rate 0 bps, drop rate 0 bps

      Match: access-group 101

      police:

          cir 128000 bps, bc 4000 bytes

        conformed 0 packets, 0 bytes; actions:

          transmit

        exceeded 0 packets, 0 bytes; actions:

          transmit

        conformed 0 bps, exceed 0 bps

 

cause when I use PIR I get this configuration :

 

R2(config-if)#do sh policy-map interface fast 0/0

 FastEthernet0/0

 

  Service-policy output: mark

 

    Class-map: QOS (match-all)

      0 packets, 0 bytes

      5 minute offered rate 0 bps, drop rate 0 bps

      Match: access-group 101

      police:

          cir 128000 bps, bc 4000 bytes

          pir 256000 bps, be 8000 bytes

        conformed 0 packets, 0 bytes; actions:

          transmit

        exceeded 0 packets, 0 bytes; actions:

          drop

        violated 0 packets, 0 bytes; actions:

          drop

        conformed 0 bps, exceed 0 bps, violate 0 bps

 

Thanks in advance

 

 

Regards

 

Mark

Blogs and organic groups at http://www.ccie.net



This archive was generated by hypermail 2.1.4 : Sun Mar 01 2009 - 09:43:40 ARST