Reference Guide
Congure control-plane policing
Rate-limiting the protocol CPU queues requires conguring control-plane type QoS policies.
• Create QoS policies (class maps and policy maps) for the desired CPU-bound queue.
• Associate the QoS policy with a particular rate-limit.
• Assign the QoS service policy to control plane queues.
By default, the pir and cir values are in pps for control plane. CoPP for CPU queues converts the input rate from kbps to pps, assuming
64 bytes is the average packet size, and applies that rate to the corresponding queue – 1 kbps is roughly equivalent to 2 pps.
1 Create a class-map of type control-plane and congure a name for the class-map in CONFIGURATION mode.
class-map type control-plane class-map-name
2 Save the conguration and return to CONFIGURATION mode.
do commit
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 policy-map-name
4 Associate a policy-map with a class-map in POLICY-MAP mode.
class class-name
5 Congure marking for a specic queue number in POLICY-MAP-CLASS-MAP mode (0 to 11).
qos group queue-number
6 Congure rate policing on incoming trac in POLICY-MAP-CLASS-MAP mode.
police {cir committed-rate | pir peak-rate}
• cir committed-rate—Enter a committed rate value in pps (0 to 4000000).
• pir peak rate — Enter a peak-rate value in pps (0 to 40000000).
7 Save the conguration.
do commit
Create QoS policy for CoPP
OS10(config)# class-map type control-plane copp
OS10(conf-cmap-control-plane)# do commit
OS10(conf-cmap-control-plane)# exit
OS10(config)# policy-map type control-plane copp1
OS10(conf-pmap-control-plane)# class copp
OS10(conf-pmap-c)# set qos-group 2
OS10(conf-pmap-c)# police cir 100 pir 100
OS10(conf-pmap-c)# do commit
View policy-map
OS10(conf-pmap-c)# do show policy-map
Service-policy(control-plane) input: copp1
Class-map (control-plane): copp
set qos-group 2
police cir 100 bc 100 pir 100 be 100
Assign service-policy
Controlling trac and rate the protocol CPU queues requires conguring QoS policies. To enable CoPP, you need to apply the dened
policy-map to CONTROL-PLANE mode.
1 Enter CONTROL-PLANE mode from CONFIGURATION mode.
control-plane
462
Quality of service