Users Guide

Table Of Contents
2. Create a QoS type policy-map to define a policer.
OS10(config)# policy-map example-interface-policer
OS10(config-pmap-qos)# class example-cmap-all-traffic
OS10(config-pmap-c-qos)#police cir 4000 pir 6000
3. Apply the QoS type policy-map to an interface.
OS10(config)# interface ethernet 1/1/14
OS10(conf-if-eth1/1/14)# service-policy input type qos example-interface-policer
Flow rate policing controls the rate of flow of traffic.
Configure flow rate policing
1. Create a QoS type class-map to match the traffic flow.
OS10(config)# class-map example-cmap-cos3
OS10(config-cmap-qos)# match cos 3
2. Create a QoS type policy-map to define a policer, and optionally assign a traffic class ID for the CoS flow to redirect the
policed traffic to a nondefault queue.
OS10(config)# policy-map example-flow-policer
OS10(config-pmap-qos)# class example-cmap-cos3
OS10(config-pmap-c-qos)# set qos-group 3
OS10(config-pmap-c-qos)#police cir 4000 pir 6000
3. Apply the QoS type policy-map to an interface.
OS10(config)# interface ethernet 1/1/15
OS10(conf-if-eth1/1/15)# service-policy input type qos example-flow-policer
Coloring traffic
You can select a traffic flow and mark it with a color. Color the traffic flow based on:
Metering. See Policing traffic.
Default trust. See Trust-based classification.
DSCP, ECN capable traffic (ECT), or non-ECT capable traffic. Use the set color command to color traffic based on
DSCP, ECN capable, or non-ECN capable traffic.
Traffic policing and traffic coloring using DSCP values are mutually exclusive. You cannot configure both at the same time.
Policing and marking using DSCP values take precedence over trust-based classification. Trust-based classification has the
lowest priority.
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 type qos example-cmap-dscp-3-ect
OS10(config-cmap-qos)# match ip dscp 3
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
Modifying packet fields
You can modify the value of CoS or DSCP fields.
1530
Quality of service