5

Background

I have a cisco 4506-E with a sup 7L-E running IOS-XE 03.04.03.SG. The switch is connected to a 150 Mbps circuit via 1 Gbps ethernet port. The port is configured as a switched access port. There is a policy-map applied to shape the port to 150 Mbps as follows:

policy-map foo
  class class-default
    shape average 150000000

There is voip and video running over the circuit. In addition to shaping i'd like to make use of hardware output queues, especially the priority queue for voip. The ideal case would be to apply the "auto qos trust" settings in addition to the shaping.

Question

Is it possible to configure both shaping and queueing on a switched port such that the shaping happens first and then the queueing? Please provide a simple example policy-map.

3
  • 1
    FYI, Cat4500 supervisors do not support shaping directly on the ports on the Supervisor LC itself. Feb 14, 2014 at 9:19
  • Good to know. In this case the port is on a WS-X4748-UPOE+E, not on the sup. shaping seems to work - I just need queueing to work as well.
    – User123456
    Feb 14, 2014 at 10:09
  • Did any answer help you? if so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you could post and accept your own answer.
    – Ron Maupin
    Dec 20, 2020 at 18:38

1 Answer 1

3

This should be possible by using Hierarchical Queueing Framework (HQF).

The parent policy-map will do the shaping and the child policy-map will do the queueing. Configuration would look something like this:

class-map CM_VOICE
 match dscp ef
!
class CM_VIDEO
 match dscp cs4
!
policy-map PM_CHILD
 class CM_VOICE
  priority
  police percent 30
 !
 class CM_VIDEO
  bandwidth percent 50
!
policy-map PM_PARENT
 class class-default
  shape average 150000000
  service-policy PM_CHILD
!

Obviously replace matching with your own values, ACLs etc.

3
  • There doesn't seem to be a way to define a service-policy from within a policy-map as you have done in your example. service-policy isn't a valid option within config-pmap-c
    – User123456
    Feb 14, 2014 at 10:04
  • Sorry for that. I was sure I had seen this configured on a 4500 before. Looking through the configuration guide I can't find any examples with HQF.
    – Daniel Dib
    Feb 14, 2014 at 16:18
  • 1
    I think HQF may not be supported. I think your config above is valid for routers and some line cards on 6500s but not on the 4500.
    – User123456
    Feb 14, 2014 at 21:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.