From: Lord, Chris (chris.lord@lorien.co.uk)
Date: Sun Sep 12 2004 - 20:41:51 GMT-3
Charles,
I don't think there is any deep theory concerned here - it's just the way the police command has been designed. This isn't documented anywhere I can find, but through trial and error with many values of cir on various interface types on several versions of IOS, the following rules can be observed:
If CIR <= 64000 then Bc = 1500 bytes
If CIR > 64000 then BC = 0.25 x CIR
Chris.
-----Original Message-----
From: Charles Sun [mailto:wanwalker2000@yahoo.ca]
Sent: 12 September 2004 22:16
To: alsontra@hotmail.com
Cc: Ccie Lab
Subject: Re: about CB policing
Hi, Alsontra,
Thank you for your response!
Q1. I think there is difference between Class Base Policy and CAR, so the recommendation you mentioned may not be used here.
Q2. If the exceed action is remarking, does it mean the remarked packets can be propagated? Any difference between inbound and outbound? And any other tricky?
Q3. I've read DQoS. It only mentioned that normal burst of 1 second worth of CIR in bytes. Should I use CIR*1(second)/8 as the normal burst? Am I missing something?
Q4. yes, you are right. The default Bc should be 9375. Sorry there was a typo error. My question is why the time interval is 1/4 second (or 1/4 of CIR in byte)?
alsontra@hotmail.com wrote:
Hi Taiyi Sun,
Here are my thoughts...
> Q1. if i want to use class base policing to limit the incoming traffic to
300K
The Cisco recommendation is as follows:
"Policing Traffic with CAR
CAR embodies a rate-limiting feature for policing traffic. When policing
traffic with CAR, Cisco recommends the following values for the normal and
extended burst parameters:
normal burst = configured rate * (1 byte)/(8 bits) * 1.5 seconds
extended burst = 2 * normal burst"
Meaning your normal burst should be se to 1.5 * normal rate (in bytes).
The default action on all my routers to use 1/4 of the Cir as the normal
burst value. On all of my switches, you must specify a normal burst. There
appears to be no default, you must give a normal burst value.
<--------------Switches--------------->
SW1(config-pmap-c)#police 300000
% Incomplete command.
<---------------Routers--------------->
R5(config-pmap-c)# police 300000
R5(config-pmap-c-police)#do sh policy-map
Policy Map QOS_TEST
Class class-default
police cir 300000 bc 9375 <------1/4 Cir in bytes
conform-action transmit
exceed-action drop
R5(config-pmap-c-police)# police 100000
R5(config-pmap-c-police)#do sh policy-map
Policy Map QOS_TEST
Class class-default
police cir 100000 bc 3125<------1/4 Cir in bytes
conform-action transmit
exceed-action drop
R5(config-pmap-c-police)# police 6000000
R5(config-pmap-c-police)#do sh policy-map
Policy Map QOS_TEST
Class class-default
police cir 6000000 bc 187500<------1/4 Cir in bytes
conform-action transmit
exceed-action drop
I recall reading something about this CAR default bc behavior, but I can not
find it at the moment. So my above statements regarding the default behavior
of the normal burst value are based on its observed behavior.
>Q3. Is the configuration above correct?
I think this is wrong ---> police 300000 37500 conform-action transmit
exceed-action drop
(normal burst needs to be in
bytes)
I think this is correct ---> police 300000 9375 conform-action transmit
exceed-action drop
or---> police 300000
> Q4. When I configured "police 300000" command under policy-map, it's
will show
> "police 300000 9250 9250 conform-action transmit exceed-action drop".
What does
> 9250 mean? And how does it calculate? any response will be
appreciated?
normal burst = configured rate * (1 byte)/(8 bits) * 1.5 seconds
extended burst = 2 * normal burst"
See answer to question 1.
There are a few resident expert in the areas of QOS on this list, perhaps
they will grace us with a more astute explanation. :-)
HTH
Alsontra
----- Original Message -----
From: "Taiyi Sun"
To: "Ccie Lab"
Sent: Saturday, September 11, 2004 12:25 AM
Subject: about CB policing
> Hi, group,
>
> I have questions about Class Based Policing.
>
> Q1. if i want to use class base policing to limit the incoming traffic to
300K, how
> could i decide the burst-normal and burst-max, how aoubt the exceed action
to take,
> and how to check whether my configuration is correct. Saying to limit
telnet and ftp
> traffic.
> Q2. If the exceed action is remarking, does it mean the remarked packets
can be propagated?
> Here is my configuration:
> ....
> ip cef
> ...
> class-map match-any telnet&ftp
> match protocol telnet
> match protocol ftp
> ...
> policy-map rate_limit
> class telnet&ftp
> police 300000 37500 conform-action transmit exceed-action drop
> .....
> interface s0/0
> ....
> service-policy inpuit rate_limit
> > Q4. When I configured "police 300000" command under policy-map, it's
will show
> "police 300000 9250 9250 conform-action transmit exceed-action drop".
What does
> 9250 mean? And how does it calculate?
> any response will be appreciated?
>
> _______________________________________________________________________
> Please help support GroupStudy by purchasing your study materials from:
> http://shop.groupstudy.com
>
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
This archive was generated by hypermail 2.1.4 : Fri Oct 01 2004 - 15:00:42 GMT-3