Connectivity Guide
2 Create a QoS type policy-map to color the trac 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 trac 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 trac
You can shape the rate of egress trac. When you enable rate shaping, the system buers all trac exceeding the specied rate until the
buer memory is exhausted. Rate shaping uses all buers reserved for an interface or queue and shares buer memory, until it reaches the
congured threshold.
Congure trac shaping
1 Enter the queuing type policy-map and congure 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) Congure rate shaping on a specic queue by matching the corresponding qos-group in the class-map. If you do not
congure 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
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.
Schedule each egress queue of an interface per Weighted Decit Round Robin (WDRR) or by strict-priority (SP), which are mutually
exclusive. If the bandwidth percent command is present, you cannot congure the priority command.
In S5148F-ON, bandwidth weight is equally applied to UC and MC.
1 Create a queuing type class-map and congure 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 CONFIGURATION mode.
exit
Quality of service
975