API Guide

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
Mark Traffic
You can select a flow and mark it with a traffic class ID. Traffic class IDs identify the traffic flow when the traffic reaches egress
for queue scheduling.
Mark traffic
1. Create a QoS type class-map to match the traffic flow.
OS10(config)# class-map cmap-cos3
OS10(config-cmap-qos)# match cos 3
2. Create a QoS type policy-map to mark it with a traffic class ID and assign it to 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. 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
Quality of service
1201