OcNOS DC : 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.
Command Syntax
cpu-queue (acl|arp|best-effort|bgp|bpdu|ccm|dhcp|daivm|igmp|ipmc-miss|isis|l3-miss|nd|ospf|pim|ptp|rip|sflow|bfd| vrrp|vxlan) (lossy | lossless|) (monitor|no-monitor|) (rate <0-100000>|)
no cpu-queue (acl|arp|best-effort|bgp|bpdu|ccm|dhcp|daivm|igmp|ipmc-miss|isis|l3-miss|nd|ospf|pim|ptp|rip|sflow|bfd| vrrp|vxlan) (lossy | lossless|) (monitor|no-monitor|) (rate <0-100000>|)
Parameters
 
acl
Defines the parameters for the ACL queue.
arp
Defines the parameters for the ARP queue.
best-effort
Defines the parameters for the best-effort queue.
bgp
Defines the parameters for the BGP queue.
bpdu
Defines the parameters for the BPDU queue.
ccm
Defines the parameters for the CCM error queue.
dhcp
Defines the parameters for the DHCP queue.
daivm
Defines the parameters for the DAIVM queue.
igmp
Defines the parameters for the IGMP queue.
ipmc-miss
Defines the parameters for the IPMC-miss queue.
isis
Defines the parameters for the ISIS queue.
l3-miss
Defines the parameters for the L3-miss queue.
mgmt-route-leak
Defines the parameters for the Management route leak queue.
nd
Defines the parameters for the ND queue.
ospf
Defines the parameters for the OSPF queue.
pim
Defines the parameters for the PIM queue.
ptp
Defines the parameters for the PTP queue.
rip
Defines the parameters for the RIP queue.
sflow
Defines the parameters for the Sflow queue.
bfd
Defines the parameters for the BFD queue.
vrrp
Defines the parameters for the VRRP queue.
vxlan
Disables monitoring of VXLAN queue usage.
lossy
Defines CPU queue as lossy.
lossless
Defines CPU queue as lossless.
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 P‑4-39.
Command Mode
Exec mode and Privileged exec mode
Applicability
This command was introduced before OcNOS version 1.3.8.
Example
Use the following command to configure BPDU rate/monitor/no-monitor for protocol queues:
OcNOS#configure terminal
OcNOS#cpu-queue bpdu rate 500 lossy no-monitor
 
Use the following command to verify the rate received on each protocol queue:
OcNOS#show interface cpu counters rate kbps
 
Load interval: 30 second
+-------------------+--------------+-------------+--------------+-------------+
| CPU Queue(%) | Rx kbps | Rx pps | Tx kbps | Tx pps |
+-------------------+--------------+-------------+--------------+-------------+
bpdu ( 99%) - - 31.97 499
Use the following command to verify the maximum, configured, and default configuration values:
OcNOS#show cpu-queue details
Cpu queue Rate In PPS Monitor Status Lossy Status
 
Name Configured Default Max Rate Allowed Configured Default Configured Default
=========== ========== ======= ================ =========== ========== =========== ==========
best-effort - 2113 2113 - * no-monitor - * lossy
ipmc-miss - 2113 2113 - * no-monitor - * lossy
l3-miss - 211 211 - * no-monitor - * lossy
sflow - 32000 100000 - monitor - * lossy
bgp - 1500 1500 - monitor - lossless
vrrp - 1024 1024 - monitor - lossless
rip - 500 500 - monitor - lossless
ospf - 2000 2000 - monitor - lossless
dhcp - 100 2048 - no-monitor - lossy
nd - 6000 6000 - monitor - lossless
pim - 4000 4000 - * no-monitor - * lossy
arp - 6000 6000 - monitor - lossless
igmp - 4000 4000 - * no-monitor - * lossy
bpdu 500 10000 10000 no-monitor monitor lossy lossless
ccm - 1000 1000 - no-monitor - lossy
bfd - 2000 2000 - no-monitor - lossy
ptp - 1000 1000 - no-monitor - lossy
isis - 500 1000 - monitor - lossless
trill-isis - 1000 1000 - monitor - lossless
acl - 200 1000 - * no-monitor - * lossy
vxlan - 500 500 - monitor - lossy
daivm - 100 500 - no-monitor - lossy
 
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 counter queu-stats
E - Egress, I - Ingress, Q-Size is in bytes
+--------------------+--------+-----------------+-------------------+-----------------+-------------------+
| Queue/Class-map | Q-Size | Tx pkts | Tx bytes | Dropped pkts | Dropped bytes |
+--------------------+--------+-----------------+-------------------+-----------------+-------------------+
nd (E) 0 17 1998 0 0
bpdu (E) 86320 253462 16221568 69227330 4430536320
show cpu-queue details
Use this command to display CPU queue details.
Command Syntax
show cpu-queue details
Parameters
None
Default
Not applicable
Command Mode
Exec mode and Privileged exec mode
Applicability
This command was introduced before OcNOS version 1.3.8.
Example
Use the following command to configure rate/monitor/no-monitor for protocol queues:
OcNOS#show cpu-queue details
Can not configure the parameter
Cpu queue Rate In PPS Monitor Status Lossy Status
 
Name Configured Default Max Rate Allowed Configured Default Configured Default
=========== ========== ======= ================ =========== ========== =========== ==========
best-effort - 2113 2113 - * no-monitor - *lossy
ipmc-miss - 2113 2113 - * no-monitor - * lossy
l3-miss - 211 211 - * no-monitor - * lossy
sflow - 32000 100000 - monitor - * lossy
bgp - 1500 1500 - monitor - lossless
vrrp - 1024 1024 - monitor - lossless
rip - 500 500 - monitor - lossless
ospf - 2000 2000 - monitor - lossless
dhcp - 100 2048 - no-monitor - lossy
nd - 6000 6000 - monitor - lossless
pim - 4000 4000 - * no-monitor - * lossy
arp - 6000 6000 - monitor - lossless
igmp - 4000 4000 - * no-monitor - * lossy
bpdu - 10000 10000 - monitor - lossless
ccm - 1000 1000 - no-monitor - lossy
bfd - 2000 2000 - no-monitor - lossy
ptp - 1000 1000 - no-monitor - lossy
isis - 500 1000 - monitor - lossless
trill-isis - 1000 1000 - monitor - lossless
acl - 200 1000 - * no-monitor - * lossy
vxlan - 500 500 - monitor - lossy
daivm - 100 500 - no-monitor - lossy