Reference Guide

Color trac
You can select a trac ow and mark it with a color.
You can color the trac ow based on:
Metering. See Policing trac.
Default trust. See Trust based classication.
DSCP , ECN capable trac (ECT), or non-ECT.
Color trac based on DSCP, ECT, or non-ECT
1 Create a QoS type class-map to match the trac ow.
OS10(config)# class-map cmap-dscp-3-ect
OS10(config-cmap-qos)# match ip dscp 3 ecn 1
2 Create a QoS type policy-map to color the trac ow.
OS10(config)# policy-map ect-color
OS10(config-pmap-qos)# class cmap-dscp-3-ect
OS10(config-pmap-c-qos)# set qos-group 3
OS10(config-pmap-c-qos)# set color yellow
Modify packet elds
You can modify the value of CoS or DSCP elds.
1 Create a QoS type class-map to match a trac ow
OS10(config)# class-map cmap-dscp-3
OS10(config-cmap-qos)# match ip dscp 3
2 Modify the policy-map to update the DSCP eld.
OS10(config)# policy-map modify-dscp
OS10(config-pmap-qos)# class cmap-dscp-3
OS10(config-pmap-c-qos)# set qos-group 3
OS10(config-pmap-c-qos)# set dscp 10
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}min-value} {max {kbps | mbps}max-value}
0 to 40000000—kilobits per second kilobits per second—kbps
0 to 40000 — megabits per second—mbps
674
Quality of service