API Guide

2. Create a QoS type policy-map to color the traffic flow.
OS10(config)# policy-map type qos example-pmap-ect-color
OS10(config-pmap-qos)# class example-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 shape the rate of egress traffic. When you enable rate shaping, the system buffers all traffic exceeding the specified
rate until the buffer memory is exhausted. Rate shaping uses all buffers reserved for an interface or queue and shares buffer
memory, until it reaches the configured threshold.
Configure traffic shaping
1. Enter the queuing type policy-map 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 mode. A maximum of 32 characters.
class class-name
3. (Optional) Configure rate shaping on a specific queue by matching the corresponding qos-group in the class-map. If you do
not configure 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 40000000kilobits per second kilobits per secondkbps
0 to 40000 megabits per secondmbps
1 to 268000000 in packets per second (pps)
Bandwidth allocation
You can allocate relative bandwidth to limit large flows and prioritize smaller flows. Allocate the relative amount of bandwidth to
nonpriority queues when priorities queues are consuming maximum link bandwidth.
Weighted Deficit Round Robin (WDRR) is a scheduling method that uses a deficit counter to allocate bandwidth for traffic
flows.
Schedule each egress queue of an interface per Weighted Deficit Round Robin (WDRR) or by strict-priority (SP), which are
mutually exclusive. If the bandwidth percent command is present, you cannot configure the priority command.
1202
Quality of service