[c-nsp] understanding "shape average" option in IOS nested policy-maps

Martin T m4rtntns at gmail.com
Wed Jan 29 09:39:44 EST 2014


Looks like the class-map used in child policy-map needs to be a subset
of class-map used in parent policy-map.


regards,
Martin

On 1/28/14, Martin T <m4rtntns at gmail.com> wrote:
> Turns out, that according to "sh ip access-lists" and "sh policy-map
> int Fa0/0", "VIDEOCONFERENCE-TRAFFIC" is not matched in second
> example. Access-list entry, which is used for classifying traffic to
> "VIDEOCONFERENCE-TRAFFIC" traffic class, is correct. That's the reason
> why I achieved 14.5Mbps in second example as there was no traffic
> matched to "VIDEOCONFERENCE-TRAFFIC" class. However, could somebody
> explain why "VIDEOCONFERENCE-TRAFFIC" is ignored in my second
> configuration example?
>
>
> regards,
> Martin
>
> On 1/28/14, Martin T <m4rtntns at gmail.com> wrote:
>> Hi,
>>
>> using policy-map "SHAPER-OUTGOING-TRAFFIC" configured as seen below:
>>
>> !
>> policy-map VIDEOCONFERENCE-TRAFFIC
>>  class VIDEOCONFERENCE-TRAFFIC
>>   priority 4500
>> policy-map SHAPER-OUTGOING-TRAFFIC
>>  class class-default
>>   shape average 14500000
>>   service-policy VIDEOCONFERENCE-TRAFFIC
>> !
>>
>> ..on interface facing the Internet in outgoing direction, I'm able to
>> upload traffic at 10Mbps in total. I send traffic to "class-default"
>> traffic class and "VIDEOCONFERENCE-TRAFFIC" traffic class
>> simultaneously.
>>
>>
>> If I use policy-map below:
>>
>> !
>> policy-map VIDEOCONFERENCE-TRAFFIC
>>  class VIDEOCONFERENCE-TRAFFIC
>>   priority 4500
>> policy-map SHAPER-OUTGOING-TRAFFIC
>>  class INTERNET-TRAFFIC
>>   shape average 14500000
>>   service-policy VIDEOCONFERENCE-TRAFFIC
>>  class class-default
>> !
>>
>> ..on interface facing the Internet, I'm able to upload
>> "INTERNET-TRAFFIC" class traffic at 14.5Mbps. I send traffic to
>> "INTERNET-TRAFFIC" class, "VIDEOCONFERENCE-TRAFFIC" and
>> "class-default" traffic class at the same time.
>>
>>
>> Platform is Cisco 2801 and IOS image is
>> c2801-advipservicesk9-mz.124-15.T3.bin. Why is "shape average"
>> subtracted in first example(14500000 - 4500000 = 10Mbps) while it was
>> not subtracted in second example?
>>
>>
>>
>> regards,
>> Martin
>>
>


More information about the cisco-nsp mailing list