OcNOS SP : System Management Guide : Monitor and Reporting Server Command Reference : Control Plane Policing Commands
Control Plane Policing Commands
This chapter is a reference for the Control Plane Policing (CoPP) commands.
clear interface cpu counters
Use this command to clear the CPU queue counters.
Command Syntax
clear interface cpu counters
Parameter
None
Command Mode
Exec mode and Privileged Exec mode
Applicability
This command was introduced before OcNOS version 1.3.
Example
OcNOS#clear interface cpu counters
cpu-queue
Use this command to set the protocol queue shaper and enable/disable queue monitoring for drop.
Note: Configuring the queue rate for guest is not available for Qumran2 devices. Configuring the queue rate for PTP is not allowed for Qumran1 and Qumran2 series platforms.
Command Syntax
cpu-queue (cpu.q0|cpu.q1|cpu.q2|cpu.q3|cpu.q4|cpu.q5|cpu.q6|cpu.q7| arp|bfd|bgp|bpdu|cfm|dsp|evpn|guest|icmp|icmp-redirect|igmp|isis|link-local|mgmt-route-leak|nhop|oamp|ospf|pim|reserved-mc|rsvp-ldp|sflow|vrrp-rip-dhcp)(monitor|no-monitor|rate <0-100000>)
no cpu-queue (cpu.q0|cpu.q1|cpu.q2|cpu.q3|cpu.q4|cpu.q5|cpu.q6|cpu.q7| arp|bfd|bgp|bpdu|cfm|dsp|evpn|guest|icmp|icmp-redirect|igmp|isis|link- local|mgmt-route-leak|nhop|oamp|ospf|pim|reserved-mc|rsvp-ldp|sflow|vrrp-rip-dhcp)(monitor|no-monitor|rate <0-100000>)
Parameters
 
 
cpu.q0
Represents the parameters for CPU queue 0.
cpu.q1
Represents the parameters for CPU queue 1.
cpu.q2
Represents the parameters for CPU queue 2
cpu.q3
Represents the parameters for CPU queue 3
cpu.q4
Represents the parameters for CPU queue 4
cpu.q5
Represents the parameters for CPU queue 5
cpu.q6
Represents the parameters for CPU queue 6
cpu.q7
Represents the parameters for CPU queue 7
arp
Defines the parameters for the ARP queue.
bfd
Defines the parameters for the BFD queue.
bgp
Defines the parameters for the BGP queue.
bpdu
Defines the parameters for the BPDU queue.
cfm
Defines the parameters for the CFM error queue.
dsp
Defines the parameters for the DSP queue.
evpn
Defines the parameters for the EVPN queue.
guest
Defines the parameters for the Guest queue.
icmp
Defines the parameters for the ICMP queue.
icmp-redirect
Defines the parameters for the ICMP-redirect queue.
igmp
Defines the parameters for the IGMP queue.
isis
Defines the parameters for the ISIS queue.
link-local
Defines the parameters for the Link-local queue.
mgmt-route-leak
Defines the parameters for the Management route leak queue.
nhop
Defines the parameters for the Next hop queue.
oamp
Defines the parameters for the OAMP queue.
ospf
Defines the parameters for the OSPF queue.
pim
Defines the parameters for the PIM queue.
reserved-mc
Defines the parameters for the Reserved-mc queue.
rsvp-ldp
Defines the parameters for the RSVP/LDP queue.
sflow
Defines the parameters for the Sflow queue.
vrrp-rip-dhcp
Defines the parameters for the VRRP/RIP/DHCP queue.
monitor
Monitor CPU queue usage. If the rate is exceeded, packets start dropping in the CPU queue. These drops are reported to the user through notifications.
no-monitor
Disables monitoring of CPU queue usage.
rate
Sets the CPU queue rate within the range of 0 to 100,000.
Default
CPU queues are set with the default values as shown in Table 5-15 and Table 5-16.
Command Mode
Exec mode and Privileged exec mode
Applicability
This command was introduced before OcNOS-SP version 2.4.
Example
Use the following command to configure rate/monitor/no-monitor for protocol queues:
OcNOS#configure terminal
OcNOS(config)#cpu-queue cpu-q0 rate 400
 
Use the following command to verify the rate received on each protocol queue:
OcNOS#show int cpu counters rate kbps
 
+-------------------+--------------+-------------+--------------+-------------+
| CPU Queue(%) | Rx kbps | Rx pps | Tx kbps | Tx pps |
+-------------------+--------------+-------------+--------------+-------------+
CPU0.q0 (100%) - - 470.63 58
bpdu ( 0%) - - 0.54 1
 
Use the following command to verify the maximum, configured, and default configuration values:
OcNOS#show cpu-queue details
 
* - Can not configure the parameter
Cpu queue Rate In Kbps Monitor Status Name Configured Default Max Rate Allowed Configured Default
======= ============ ========= ================= =========== ==========
cpu.q0 400 900 20000 - * no-monitor
cpu.q1 - 900 20000 - * no-monitor
cpu.q2 - 900 20000 - * no-monitor
cpu.q3 - 900 20000 - * no-monitor
cpu.q4 - 900 20000 - * no-monitor
cpu.q5 - 900 20000 - * no-monitor
cpu.q6 - 10000 20000 - * no-monitor
cpu.q7 - 900 20000 - * no-monitor
igmp - 1000 1000 - * no-monitor
is-is - 8000 8000 - no-monitor
reservedmc - 8000 8000 - no-monitor
link-local - 1000 1000 - no-monitor
 
ospf - 8000 8000 - no-monitor
bgp - 8000 8000 - no-monitor
rsvp/ldp - 1500 1500 - no-monitor
vrrp/rip/dhcp - 2000 2000 - no-monitor
pim - 8000 8000 - * no-monitor
icmp - 1000 1000 - no-monitor
arp - 1000 1000 - no-monitor
bpdu - 8000 8000 - no-monitor
oamp - 1000 1000 - no-monitor
sflow - 16384 16384 - no-monitor
dsp - 1500 1500 - no-monitor
evpn - 468 468 - no-monitor
nhop - 500 500 - no-monitor
mgmt-route-leak - 8000 10000 - no-monitor
icmp-redirect - 400 400 - no-monitor
guest - 8000 8000 - * no-monitor
cfm - 1000 1000 - no-monitor
bfd - 4000 4000 - no-monitor
ptp - 4000 4000 - no-monitor
 
 
Use the following command to remove the configuration:
OcNOS(config)#no cpu-queue cpu.q0
OcNOS(config)#exit
 
OcNOS#show cpu-queue details
 
* - Can not configure the parameter
Cpu queue Rate In Kbps Monitor Status Name Configured Default Max Rate Allowed Configured Default
======= ============ ========= ================= =========== ==========
cpu.q0 - 900 20000 - * no-monitor
cpu.q1 - 900 20000 - * no-monitor
cpu.q2 - 900 20000 - * no-monitor
cpu.q3 - 900 20000 - * no-monitor
cpu.q4 - 900 20000 - * no-monitor
cpu.q5 - 900 20000 - * no-monitor
cpu.q6 - 10000 20000 - * no-monitor
cpu.q7 - 900 20000 - * no-monitor
igmp - 1000 1000 - * no-monitor
is-is - 8000 8000 - no-monitor
reservedmc - 8000 8000 - no-monitor
link-local - 1000 1000 - no-monitor
 
ospf - 8000 8000 - no-monitor
bgp - 8000 8000 - no-monitor
rsvp/ldp - 1500 1500 - no-monitor
vrrp/rip/dhcp - 2000 2000 - no-monitor
pim - 8000 8000 - * no-monitor
icmp - 1000 1000 - no-monitor
arp - 1000 1000 - no-monitor
bpdu - 8000 8000 - no-monitor
oamp - 1000 1000 - no-monitor
sflow - 16384 16384 - no-monitor
dsp - 1500 1500 - no-monitor
evpn - 468 468 - no-monitor
nhop - 500 500 - no-monitor
mgmt-route-leak - 8000 10000 - no-monitor
icmp-redirect - 400 400 - no-monitor
guest - 8000 8000 - * no-monitor
cfm - 1000 1000 - no-monitor
bfd - 4000 4000 - no-monitor
ptp - 4000 4000 - no-monitor
 
show interface cpu counters queue-stats
Use this command to display the counters of packets destined to the CPU.
For details about this command, see show interface counters queue-stats.
Example
OcNOS#show interface cpu counters queue-stats
E - Egress, I - Ingress, Q-Size is in bytes
+--------------------+--------+-----------------+-------------------+-----------------+-------------------+
| Queue/Class-map | Q-Size | Tx pkts | Tx bytes | Dropped pkts | Dropped bytes |
+--------------------+--------+-----------------+-------------------+-----------------+-------------------+
igmp (E) 2097152 151 16258 0 0
reserved mc (E) 2097152 62826 6324464 0 0
ospf (E) 1048576 3184 308548 0 0
bgp (E) 1048576 27587 3938124 0 0
rsvp/ldp (E) 1048576 29138 3090385 0 0
icmp (E) 1048576 176 20924 0 0
arp (E) 1048576 751 48064 0 0
bpdu (E) 1048576 26833 3129794 0 0
bfd (E) 1048576 38 4028 0 0
dsp (E) 78643200 507 34476 0 0
 
show cpu-queue details
Use this command to display CPU queue details.
Command Syntax
show cpu-queue details
Parameters
None
Default
Monitoring is not enabled by default for any queues, but users have the option to enable monitoring for each queue. The default rate for each queue can be found in the show output. Some queues cannot be monitored, as indicated by an asterisk (*) in the show output.
Command Mode
Exec mode and Privileged exec mode
Applicability
This command was introduced before OcNOS-SP version 2.4.
Example
Use the following command to configure rate for protocol queues:
OcNOS#configure terminal
OcNOS(config)#cpu-queue cpu-q0 rate 400
 
Use the following command to verify the maximum, configured, and default configuration values:
OcNOS#show cpu-queue details
 
* - Can not configure the parameter
Cpu queue Rate In Kbps Monitor Status Name Configured Default Max Rate Allowed Configured Default
======= ============ ========= ================= =========== ==========
cpu.q0 400 900 20000 - * no-monitor
cpu.q1 - 900 20000 - * no-monitor
cpu.q2 - 900 20000 - * no-monitor
cpu.q3 - 900 20000 - * no-monitor
cpu.q4 - 900 20000 - * no-monitor
cpu.q5 - 900 20000 - * no-monitor
cpu.q6 - 10000 20000 - * no-monitor
cpu.q7 - 900 20000 - * no-monitor
igmp - 1000 1000 - * no-monitor
is-is - 8000 8000 - no-monitor
reservedmc - 8000 8000 - no-monitor
link-local - 1000 1000 - no-monitor
 
ospf - 8000 8000 - no-monitor
bgp - 8000 8000 - no-monitor
rsvp/ldp - 1500 1500 - no-monitor
vrrp/rip/dhcp - 2000 2000 - no-monitor
pim - 8000 8000 - * no-monitor
icmp - 1000 1000 - no-monitor
arp - 1000 1000 - no-monitor
bpdu - 8000 8000 - no-monitor
oamp - 1000 1000 - no-monitor
sflow - 16384 16384 - no-monitor
dsp - 1500 1500 - no-monitor
evpn - 468 468 - no-monitor
nhop - 500 500 - no-monitor
mgmt-route-leak - 8000 10000 - no-monitor
icmp-redirect - 400 400 - no-monitor
guest - 8000 8000 - * no-monitor
cfm - 1000 1000 - no-monitor
bfd - 4000 4000 - no-monitor
ptp - 4000 4000 - no-monitor
Use the following command to configure monitor for protocol queues:
OcNOS#configure terminal
OcNOS(config)#cpu-queue bpdu monitor rate 4000
 
Use the following command to verify the maximum, configured, and default configuration values:
OcNOS#show cpu-queue details
 
* - Can not configure the parameter
Cpu queue Rate In Kbps Monitor Status Name Configured Default Max Rate Allowed Configured Default
======= ============ ========= ================= =========== ==========
cpu.q0 - 900 20000 - * no-monitor
cpu.q1 - 900 20000 - * no-monitor
cpu.q2 - 900 20000 - * no-monitor
cpu.q3 - 900 20000 - * no-monitor
cpu.q4 - 900 20000 - * no-monitor
cpu.q5 - 900 20000 - * no-monitor
cpu.q6 - 10000 20000 - * no-monitor
cpu.q7 - 900 20000 - * no-monitor
igmp - 1000 1000 - * no-monitor
is-is - 8000 8000 - no-monitor
reservedmc - 8000 8000 - no-monitor
link-local - 1000 1000 - no-monitor
 
ospf - 8000 8000 - no-monitor
bgp - 8000 8000 - no-monitor
rsvp/ldp - 1500 1500 - no-monitor
vrrp/rip/dhcp - 2000 2000 - no-monitor
pim - 8000 8000 - * no-monitor
icmp - 1000 1000 - no-monitor
arp - 1000 1000 - no-monitor
bpdu 4000 8000 8000 monitor no-monitor
oamp - 1000 1000 - no-monitor
sflow - 16384 16384 - no-monitor
dsp - 1500 1500 - no-monitor
evpn - 468 468 - no-monitor
nhop - 500 500 - no-monitor
mgmt-route-leak - 8000 10000 - no-monitor
icmp-redirect - 400 400 - no-monitor
guest - 8000 8000 - * no-monitor
cfm - 1000 1000 - no-monitor
bfd - 4000 4000 - no-monitor
ptp - 4000 4000 - no-monitor