From: Brian McGahan (bmcgahan@internetworkexpert.com)
Date: Fri Jan 12 2007 - 20:18:13 ART
That sets a locally significant QoS group. If you wanted to use
IP Precedence or DSCP you can do hierarchical policing with either the
legacy rate-limit statement or with nested policies in MQC.
For example in CAR you could say:
interface GigabitEthernet0/0
rate-limit input 1000000 1500 2000 conform-action set-prec-transmit 1
exceed-action continue
rate-limit input 5000000 2500 2500 conform-action set-prec-transmit 5
exceed-action drop
With MQC you could say:
policy-map INNER
class class-default
police cir 1000000
conform-action set-prec-transmit 1
exceed-action set-prec-transmit 5
policy-map OUTER
class class-default
police cir 5000000
service-policy INNER
!
interface GigabitEthernet0/0
service-policy input OUTER
HTH,
Brian McGahan, CCIE #8593 (R&S/SP)
bmcgahan@internetworkexpert.com
Internetwork Expert, Inc.
http://www.InternetworkExpert.com
Toll Free: 877-224-8987 x 705
Outside US: 775-826-4344 x 705
24/7 Support: http://forum.internetworkexpert.com
Live Chat: http://www.internetworkexpert.com/chat/
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf
Of
> Faryar Zabihi (fzabihi)
> Sent: Friday, January 12, 2007 3:19 PM
> To: Faryar Zabihi (fzabihi); Raj Bansal; Ivan; ccielab@groupstudy.com
> Subject: RE: Qos on 3550
>
> Sorry I think I was wrong...I will stop spamming
>
> !
> class-map match-all P
> match any
> !
> !
> policy-map TEST
> class P
> police cir 1000000 pir 5000000
> conform-action set-qos-transmit 1
> exceed-action set-qos-transmit 5
> violate-action drop
> !
> !
> !
> !
> !
>
> Router(config-if)#do sh policy int fa0/0
> FastEthernet0/0
>
> Service-policy output: TEST
>
> Class-map: P (match-all)
> 0 packets, 0 bytes
> 5 minute offered rate 0 bps, drop rate 0 bps
> Match: any
> police:
> cir 1000000 bps, bc 31250 bytes
> pir 5000000 bps, be 156250 bytes
> conformed 0 packets, 0 bytes; actions:
> set-qos-transmit 1
> exceeded 0 packets, 0 bytes; actions:
> set-qos-transmit 5
> violated 0 packets, 0 bytes; actions:
> drop
> conformed 0 bps, exceed 0 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
>
>
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf
Of
> Faryar Zabihi (fzabihi)
> Sent: Friday, January 12, 2007 2:47 PM
> To: Raj Bansal; Ivan; ccielab@groupstudy.com
> Subject: RE: Qos on 3550
>
> I don't think this is possible on 3550 either. But just to be sure we
> could do something like this on a router as follows?
> Probably way off
>
> <1meg = COS 1 and transmit
> 1-5megs = COS 5 and transmit
> >5megs = drop
>
>
> class-map match-all 1meg
> match any
> class-map match-all 1to5meg
> match any
> !
> policy-map TEST
> class 1meg
> police 1000000 conform-action set-qos-transmit 1 exceed-action
> transmit
> class 1to5meg
> police 5000000 conform-action set-qos-transmit 5 exceed-action
> transmit
> class class-default
> police 5000000 conform-action transmit exceed-action drop !
> !
> R1(config-pmap-c-police)#do sh policy int fa0/0 FastEthernet0/0
>
> Service-policy output: TEST
>
> Class-map: 1meg (match-all)
> 0 packets, 0 bytes
> 5 minute offered rate 0 bps, drop rate 0 bps
> Match: any
> police:
> cir 1000000 bps, bc 31250 bytes
> conformed 0 packets, 0 bytes; actions:
> set-qos-transmit 1
> exceeded 0 packets, 0 bytes; actions:
> transmit
> conformed 0 bps, exceed 0 bps
>
> Class-map: 1to5meg (match-all)
> 0 packets, 0 bytes
> 5 minute offered rate 0 bps, drop rate 0 bps
> Match: any
> police:
> cir 5000000 bps, bc 156250 bytes
> conformed 0 packets, 0 bytes; actions:
> set-qos-transmit 5
> exceeded 0 packets, 0 bytes; actions:
> transmit
> conformed 0 bps, exceed 0 bps
>
> Class-map: class-default (match-any)
> 0 packets, 0 bytes
> 5 minute offered rate 0 bps, drop rate 0 bps
> Match: any
> police:
> cir 5000000 bps, bc 156250 bytes
> conformed 0 packets, 0 bytes; actions:
> transmit
> exceeded 0 packets, 0 bytes; actions:
> drop
> conformed 0 bps, exceed 0 bps
>
>
>
> -----Original Message-----
> From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf
Of
> Raj Bansal
> Sent: Friday, January 12, 2007 1:32 PM
> To: Ivan; ccielab@groupstudy.com
> Cc: Yin Chenghua
> Subject: Re: Qos on 3550
>
> Not sure then. Perhaps its not possible
>
>
> Ivan <ivan@iip.net> wrote:
> L2-devices doesn't support 3-color policier.
> Probably it is not possible to mark packets with different rate on
Cat.
>
> On Friday 12 January 2007 06:52, Raj Bansal wrote:
> > Yes, with a 2 bucket three color policer.
> >
> > police pir cir conform action exceed action violate action you can
> > leave the bc and be values, ios will calculate those for you.
> >
> > the pir is your 5 MB, cir is 1 mb. i am not logged into a box right
> > now to see if its kbps, bps, etc. but you get the picture.
> >
> >
> > Yin Chenghua wrote: For an input interface on 3550, is it possible
to
> > set the fist 1M to cos=5, and set the traffic between 1M to 5M to
> > cos=1, and drop the traffic above 5M?
> >
> >
> >
> > Anybody know if it can be implemented and how to implement it?
> >
> >
> >
> > Thanks a lot,
> >
> >
> >
> > David
> >
> >
This archive was generated by hypermail 2.1.4 : Thu Feb 08 2007 - 23:46:56 ART