From: Jim Phillipo (jim.phillipo@guardent.com)
Date: Thu Jul 10 2003 - 20:44:40 GMT-3
must be my version
-----Original Message-----
From: Brian Dennis [mailto:brian@labforge.com]
Sent: Thursday, July 10, 2003 7:42 PM
To: 'Jim Phillipo'; ccielab@groupstudy.com
Subject: RE: More QOS CAR example
Here is the output from 12.1 with just police 384000 configured.
Gateway#sho policy-map interface
Ethernet0/1
Service-policy output: cisco
Class-map: cisco (match-any)
4706 packets, 5757905 bytes
5 minute offered rate 148000 bps, drop rate 37000 bps
Match: any
police:
384000 bps, 12000 limit, 12000 extended limit
conformed 3885 packets, 4652225 bytes; action: transmit
exceeded 806 packets, 1104264 bytes; action: drop
conformed 124000 bps, exceed 38000 bps violate 0 bps
Class-map: class-default (match-any)
0 packets, 0 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
Gateway#
Brian Dennis, CCIE #2210 (R&S/ISP-Dial/Security)
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Jim Phillipo
Sent: Thursday, July 10, 2003 4:16 PM
To: 'Brian Dennis'; Jim Phillipo; ccielab@groupstudy.com
Subject: RE: More QOS CAR example
Better:
Term_Serv#sho policy-map jim
Policy Map jim
Class jim
police cir 80000 bc 2500
conform-action transmit
exceed-action drop
Is it normal for the BE not to show up if not configured ?
-----Original Message-----
From: Brian Dennis [mailto:brian@labforge.com]
Sent: Thursday, July 10, 2003 7:11 PM
To: 'Jim Phillipo'; ccielab@groupstudy.com
Subject: RE: More QOS CAR example
Do a "show policy-map interface" to see the defaults.
Brian Dennis, CCIE #2210 (R&S/ISP-Dial/Security)
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Jim Phillipo
Sent: Thursday, July 10, 2003 3:43 PM
To: 'Brian McGahan'; 'Jonathan V Hays'; Jim Phillipo;
ccielab@groupstudy.com
Subject: RE: More QOS CAR example
Brian,
When I type in Police 80000 I do not get defaults ?
!
policy-map jim
class jim
police cir 80000
!
!
-----Original Message-----
From: Brian McGahan [mailto:brian@cyscoexpert.com]
Sent: Thursday, July 10, 2003 5:27 PM
To: 'Brian McGahan'; 'Jonathan V Hays'; 'Jim Phillipo';
ccielab@groupstudy.com
Subject: RE: More QOS CAR example
Group,
As a follow up to my previous post, I did some testing to
illustrate how the burst values of the CAR statement affect the
configured rate.
The following output is from a router connected to the internet
which is policing NNTP traffic (usenet news). I am downloading files
from alt.binaries.sounds.mp3 (for research purposes only of course), and
changing the burst values of the police statement to show the effect.
The goal of our policing is to keep our NNTP traffic at or below 80kpbs.
In the first example, I entered the 'police 80000' statement.
This results in the default values of:
Police 80000 2500 2500 conform-action transmit exceed-action drop
http://www.cyscoexpert.com/adminimages/car4.gif
As you can see from the output, I am averaging a rate of about
30kbps. This is much lower than the expected target rate.
In the next example, the burst values are modified to meet the
recommended formula. The 'police 80000 15000 30000' statement was
entered, which resulted in:
Police 80000 15000 30000 conform-action transmit exceed-action drop
http://www.cyscoexpert.com/adminimages/car3.gif
As you can see from this output, the average rate is in the high
70kbps range, which is very close to our desired target rate.
The calculation for CAR values should therefore be as follows:
Normal_burst bytes = target_rate bps * ( 1 byte / 8 bits ) * 1.5 seconds
Excess_burst bytes = normal_burst * 2
HTH,
Brian McGahan, CCIE #8593
Director of Design and Implementation
brian@cyscoexpert.com
CyscoExpert Corporation
Internetwork Consulting & Training
Toll Free: 866.CyscoXP
Fax: 847.674.2625
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf
Of
> Brian McGahan
> Sent: Thursday, July 10, 2003 2:32 PM
> To: 'Jonathan V Hays'; 'Jim Phillipo'; ccielab@groupstudy.com
> Subject: RE: More QOS CAR example
>
> Jim & Jonathan,
>
> Configuring the burst values to correspond to the formula *IS*
> necessary. Test it with actual traffic and you will see that the rate
> does not correctly conform unless you use the recommended burst
values.
> I'm not sure where these authors are getting their burst values from,
> but they're not correct.
>
> HTH
>
> Brian McGahan, CCIE #8593
> Director of Design and Implementation
> brian@cyscoexpert.com
>
> CyscoExpert Corporation
> Internetwork Consulting & Training
> Toll Free: 866.CyscoXP
> Fax: 847.674.2625
>
>
> > -----Original Message-----
> > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf
> Of
> > Jonathan V Hays
> > Sent: Wednesday, July 09, 2003 6:37 PM
> > To: 'Jim Phillipo'; ccielab@groupstudy.com
> > Subject: RE: More QOS CAR example
> >
> > > -----Original Message-----
> > > From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On
> > > Behalf Of Jim Phillipo
> > > Sent: Wednesday, July 09, 2003 6:48 PM
> > > To: ccielab@groupstudy.com
> > > Subject: More QOS CAR example
> > >
> > >
> > > This is from VEGESNA's book
> > >
> > > All traffic except HTTP over a rate of 15 Mbps is marked with
> > > IP Prec 4
> > > HTTP over 15 Mbps is marked with 0
> > > This is a 30 Mbps pipe from provider
> > >
> > > There answer:
> > >
> > > rate-limit input 30000000 15000 15000 conform-action continue
> > > exceed-action-drop
> > > rate-limit input access-group 101 15000000 10000 10000
> conform-action
> > > set-prec-transmit 4 exceed-action set-prec-transmit 0
> > > rate-limit input 30000000 15000 15000 conform-action
> > > set-prec-transmit 4
> > > exceed-action set-prec-transmit 4
> > >
> > > access-list 101 permit tcp any any eq www
> > > access-list 101 permit tcp any eq www any <This is for web
> > > traffic leaving
> > > the site correct ?>
> > >
> > > How do they arrive at 15000 and 10000 respectively ?
> >
> > [snip]
> >
> > Good observation.
> >
> >
>
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/
> > fqos_c/fqcprt4/qcfpolsh.htm#1000977
> >
> > The above reference on the Doc CD gives the CAR formula as:
> > <quote>
> > Recommended Burst Values
> > 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
> > </quote>
> >
> > Here are the calculations (commas added for readability - my
apologies
> > to Europeans and others who don't use commas to break up the
thousands
> > ;-)
> >
> > configured rate = 30,000,000 bps
> > normal burst = 30000000/8 * 1.5 = 5,625,000 bytes
> > extended burst = 2 * 5625000 = 11,250,000 bytes
> >
> > configured rate = 10,000,000 bps
> > normal burst = 10000000/8 * 1.5 = 1,875,000 bytes
> > extended burst = 2 * 1875000 = 3,750,000 bytes
> >
> > Vegesna is obviously *not* using this formula. Maybe there is a
> > saturation point or ceiling for burst size? (This is no more than a
> > SWAG.)
> >
> > Perhaps the "experts" will chime in ...
> >
> > Jonathan
> >
> >
> >
>
This archive was generated by hypermail 2.1.4 : Wed Aug 06 2003 - 06:52:35 GMT-3