Reference Guide

The basics for creating a CoPP service policy is to create QoS policies for the desired CPU bound queue and associate it
with a particular rate-limit. The QoS policies are assigned to a control-plane service policy for each port-pipe.
1. Create a QoS input policy for the router and assign the policing.
CONFIGURATION mode
qos-policy-input name cpu-qos
2. Create an input policy-map to assign the QoS policy to the desired service queues.l.
CONFIGURATION mode
policy-map--input name cpu-qos service-queue 0 qos-policy name
3. Enter Control Plane mode.
CONFIGURATION mode
control-plane-cpuqos
4. Assign a CPU queue-based service policy on the control plane in cpu-qos mode. Enabling this command sets the
queue rates according to those configured.
CONTROL-PLANE mode
service-policy rate-limit-cpu-queues name
Example of Creating the QoS Policy
FTOS#conf
FTOS(conf)#qos-policy-input cpuq_1
FTOS(conf-qos-policy-in)#rate-police 3000 40 peak 500 40
FTOS(conf-qos-policy-in)#exit
FTOS(conf)#qos-policy-input cpuq_2
FTOS(conf-qos-policy-in)#rate-police 5000 80 peak 600 50
FTOS(conf-qos-policy-in)#exit
Example of Assigning the QoS Policy to the Queues
FTOS(conf)#policy-map-input cpuq_rate_policy cpu-qos
FTOS(conf-qos-policy-in)#service-queue 5 qos-policy cpuq_1
FTOS(conf-qos-policy-in)#service-queue 6 qos-policy cpuq_2
FTOS(conf-qos-policy-in)#service-queue 7 qos-policy cpuq_1
Example of Creating the Control Plane Service Policy
FTOS#conf
FTOS(conf)#control-plane
FTOS(conf-control-plane)#service-policy rate-limit-cpu-queues cpuq_rate_policy
Show Commands
The following section describes the CoPP show commands.
To view the rates for each queue, use the show cpu-queue rate cp command.
Example of Viewing Queue Rates
FTOS#show cpu-queue rate cp
Service-Queue Rate (PPS)
-------------- -----------
Q0 1300
Q1 300
Q2 300
Q3 300
Q4 2000
Q5 400
219