Reference Guide

Table Of Contents
Shaping trac
You can congure to shape the rate of egress trac. When you enable rate shaping, the system buers all trac exceeding the specied
rate till buer memory is exhausted. The rate shaping mechanism uses all buers reserved for an interface or queue and then shared buer
memory, till it reaches the congured threshold.
Congure trac shaping
1 Enter the policy-map type as queuing and congure a policy-map name in CONFIGURATION mode.
policy-map type queuing policy-map-name
2 Enter a class name to apply to the shape rate in POLICY-MAP-QUEUEING mode—up to 32 characters.
class class-name
3 (Optional) If you need rate shaping on a specic queue, match the corresponding qos-group in the class-map. If you do not congure
the match qos-group command, rate shaping applies to all queues.
match qos-group queue-number
4 Enter a minimum and maximum shape rate value in POLICY-MAP-QUEUEING-CLASS mode.
shape {min {kbps | mbps | pps}min-value} {max {kbps | mbps | pps}max-value}
0 to 40000000—kilobits per second kilobits per second—kbps
0 to 40000 — megabits per second—mbps
1 to 268000000 — in packets per second (pps)
Bandwidth allocation
You can allocate relative bandwidth to limit large ows and prioritize smaller ows. Allocate the relative amount of bandwidth to nonpriority
queues when priorities queues are consuming maximum link bandwidth.
Each egress queue of an interface can be scheduled as per Weighted Decit Round Robin (WDRR) or by strict-priority (SP), which are
mutually exclusive. If the bandwidth percent command is present, you cannot congure the priority command as it is used to
assign bandwidth to a queue.
1 Create a class-map of type queuing and congure a name for the class-map in CONFIGURATION mode.
class-map type queuing class-map-name
2 Apply the match criteria for the QoS group in CLASS-MAP mode.
qos-group queue-number
3 Return to the CONFIGURATION mode.
exit
4 Create a policy-map of type queuing and congure a policy-map name in CONFIGURATION mode.
policy-map type queuing policy-map-name
5 Congure a queuing class in POLICY-MAP mode.
class class-name
6 Assign a bandwidth percent (1 to 100) to nonpriority queues in POLICY-MAP-CLASS-MAP mode.
bandwidth percent value
Congure bandwidth allocation
OS10(config)# class-map type queuing solar
OS10(conf-cmap-queuing)# match qos-group 5
OS10(conf-cmap-queuing)# exit
OS10(config)# policy-map lunar
OS10(config)# policy-map type queuing lunar
OS10(conf-pmap-queuing)# class solar
OS10(conf-pmap-c-que)# bandwidth percent 80
Quality of service
559