Users Guide

Table Of Contents
2. Return to CONFIGURATION mode.
exit
3. Create an input policy-map to assign the QoS policy to the desired service queues in CONFIGURATION mode.
policy-map type control-plane example-copp-policy-map-name
4. Associate a policy-map with a class-map in POLICY-MAP mode.
class example-copp-class-map-name
5.
Configure marking for a specific queue number in POLICY-MAP-CLASS-MAP mode. Use the show control-plane info
command to view the list of control-plane queues.
set qos-group queue-number
6. Configure rate policing on incoming traffic in POLICY-MAP-CLASS-MAP mode.
police {cir committed-rate | pir peak-rate}
cir committed-rate—Enter a committed rate value in pps, from 0 to 4000000.
pir peak rate — Enter a peak-rate value in pps, from 0 to 40000000.
Create QoS policy for CoPP
OS10(config)# class-map type control-plane example-copp-class-map-name
OS10(config-cmap-control-plane)# exit
OS10(config)# policy-map type control-plane example-copp-policy-map-name
OS10(config-pmap-control-plane)# class example-copp-class-map-name
OS10(config-pmap-c)# set qos-group 2
OS10(config-pmap-c)# police cir 100 pir 100
View policy-map
OS10(config)# do show policy-map
Service-policy (control-plane) input: example-copp-policy-map-name
Class-map (control-plane): example-copp-class-map-name
set qos-group 2
police cir 100 bc 100 pir 100 be 100
Assign service-policy
Rate controlling the traffic towards CPU requires configuring the control-plane type policy. To enable CoPP, apply the defined policy-
map to CONTROL-PLANE mode.
1. Enter CONTROL-PLANE mode from CONFIGURATION mode.
control-plane
2. Define aninput type service-policy and configure a name for the service policy in CONTROL-PLANE mode.
service-policy input example-copp-policy-map-name
Assign control-plane service-policy
OS10(config)# control-plane
OS10(conf-control-plane)# service-policy input example-copp-policy-map-name
View control-plane service-policy
OS10(conf-control-plane)# do show qos control-plane
Service-policy (input): example-copp-policy-map-name
Quality of service
1099