Take the 2-minute tour ×
Network Engineering Stack Exchange is a question and answer site for network engineers. It's 100% free, no registration required.

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.

share|improve this question
1  
FYI, Cat4500 supervisors do not support shaping directly on the ports on the Supervisor LC itself. –  Mike Pennington Feb 14 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. –  fcorrao Feb 14 at 10:09
add comment

1 Answer

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.

share|improve this answer
    
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 –  fcorrao Feb 14 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 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. –  fcorrao Feb 14 at 21:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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