OcNOS DC : System Management Guide : System Management 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
#clear interface cpu counters
cpu-queue
Use this command to set protocol queues 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|mpls|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|mpls|nd|ospf|pim|ptp|rip|sflow|bfd| vrrp|vxlan) (lossy | lossless|) (monitor|no-monitor|) (rate <0-100000>|)
 
Parameters
acl
ACL queue parameters (for acl logging)
arp
ARP queue parameters
best-effort
Best-effort queue parameters
bfd
BFD queue parameters
bgp
BGP queue parameters
bpdu
BPDU queue parameters
ccm
CCM queue parameters
dhcp
DHCP queue parameters
igmp
IGMP queue parameters
ipmc-miss
IPMC-Miss queue parameters
isis
ISIS queue parameters
l3-miss
L3-Miss queue parameters
nd
ND queue parameters
ospf
OSPF queue parameters
pim
PIM queue parameters
rip
RIP queue parameters
sflow
SFLOW queue parameters
vrrp
VRRP queue parameters
vxlan
VXLAN queue parameters
monitor
Monitor CPU queue usage
no-monitor
Do not monitor CPU queue usage
lossless
Configure cpu queue as lossless
lossy
Configure cpu queue as lossy
rate
Set CPU queue rate <0-100000>
 
 
Default
CPU queues are set with the default values as shown in Table 2-1.
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:
#configure terminal
#cpu-queue bpdu rate 500 lossy no-monitor
 
Use the following command to verify the rate received on each protocol queue:
#show int cpu counters rate kbps
 
Load interval: 30 second
+-------------------+--------------+-------------+--------------+-------------+
| CPU Queue(%) | Rx kbps | Rx pps | Tx kbps | Tx pps |
+-------------------+--------------+-------------+--------------+-------------+
bpdu ( 0%) - - 0.54 1
 
Use the following command to verify the maximum, configured, and default configuration values:
#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 - 500 500 - monitor - lossless
ldp-rsvp - 500 500 - monitor - lossless
rip - 500 500 - monitor - lossless
ospf - 2000 2000 - monitor - lossless
dhcp - 100 2048 - no-monitor - lossy
nd - 6000 6000 - monitor - lossless
mpls - 500 500 - no-monitor - lossy
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 - 500 500 - 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
#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:
#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 - 500 500 - monitor - lossless
ldp-rsvp - 500 500 - monitor - lossless
rip - 500 500 - monitor - lossless
ospf - 2000 2000 - monitor - lossless
dhcp - 100 2048 - no-monitor - lossy
nd - 6000 6000 - monitor - lossless
mpls - 500 500 - no-monitor - lossy
pim - 4000 4000 - * no-monitor - * lossy
arp - 6000 6000 - monitor - lossless
igmp - 4000 4000 - * no-monitor - * lossy
bpdu - 10000 10000 - monitor - lossless
ccm - 500 500 - 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