Reference Guide

Table Of Contents
2. Create a QoS type policy-map to mark with a traffic class ID and assign it for the CoS flow.
OS10(config)# policy-map cos3-TC3
OS10(config-pmap-qos)# class cmap-cos3
OS10(config-pmap-c-qos)# set qos-group 3
Color traffic
You can select a traffic flow and mark it with a color.
You can color the traffic flow based on:
Metering. See Policing traffic on page 637.
Default trust. See Trust based classification on page 628.
DSCP , ECN capable traffic (ECT), or non-ECT.
Color traffic based on DSCP, ECT, or non-ECT
1. Create a QoS type class-map to match the traffic flow.
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 traffic flow.
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 fields
You can modify the value of CoS or DSCP fields.
1. Create a QoS type class-map to match a traffic flow
OS10(config)# class-map cmap-dscp-3
OS10(config-cmap-qos)# match ip dscp 3
2. Modify the policy-map to update the DSCP field.
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 traffic
You can configure to shape the rate of egress traffic. When you enable rate shaping, the system buffers all traffic exceeding the
specified rate till buffer memory is exhausted. The rate shaping mechanism uses all buffers reserved for an interface or queue
and then shared buffer memory, till it reaches the configured threshold.
Configure traffic shaping
1. Enter the policy-map type as queuing and configure 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 modeup to 32 characters.
class class-name
638
Quality of service