[c-nsp] IP precedence inside of a service policy

Rodney Dunn rodunn at cisco.com
Wed Aug 25 09:15:43 EDT 2004


Once you match on a class it kicks out of the
service-policy.

Rodney

On Wed, Aug 25, 2004 at 09:49:37AM +0930, Glen Turner wrote:
> On Wed, 2004-08-25 at 04:05, Temkin, David wrote:
> > This may sound silly, but if I'm applying the IP precedence inside of a
> > service policy but have a default class, how does it get applied.  Let's
> > say I have:
> > 
> > !
> > policy-map test
> >   class test
> >    set ip precedence 5
> >   class test1
> >    bandwidth 10000
> >   class class-default
> >    fair-queue
> >    random-detect
> 
> I too have pondered this. My conclusion is that service policies are not
> recursive, so only one "class" clause is executed per packet.
> 
> However, you are allowed to have two service policies -- one on input
> and one on output. So to re-work your example:
> 
>   class-map CS5
>    match ip dscp cs5
> 
>   policy-map IN
>    class TEST
>     set ip dscp cs5
>    class class-default
>     set ip dscp default
> 
>   policy-map OUT
>    class CS5
>     bandwidth 10000
>    class class-default
>     fair-queue
>     random-detect
> 
> I'm open to correction, as Cisco's documentation is rather poor, but
> this seems to fit the DiffServ QoS model that the Modular QoS is trying
> to implement.
> 
> -- 
> Glen Turner         Tel: (08) 8303 3936 or +61 8 8303 3936
> Australian Academic & Research Network   www.aarnet.edu.au
> 
> _______________________________________________
> cisco-nsp mailing list  cisco-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/


More information about the cisco-nsp mailing list