cpu-queue
Use this command to set protocol queues shaper and enable/disable queue monitoring for drop.
Command Syntax
cpu-queue (cpu.q0|cpu.q1|cpu.q2|cpu.q3|cpu.q4|cpu.q5|cpu.q6|cpu.q7| arp|bfd|bgp|bpdu|dsp|icmp|icmp-redirect|igmp|isis|link-local|nhop|ospf|pim|reserved-mc|rsvp-ldp|sflow|vrrp-rip-dhcp|vxlan)(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|dsp|icmp|icmp-redirect|igmp|isis|link-local|nhop|ospf|pim|reserved-mc|rsvp-ldp|sflow|vrrp-rip-dhcp|vxlan)(monitor|no-monitor|rate <0-100000>)
Parameters
arp
ARP queue parameters
bfd
BFD queue parameters
bgp
BGP queue parameters
bpdu
BPDU queue parameters
cpu.q0
cpu.q0
cpu.q1
cpu.q1
cpu.q2
cpu.q2
cpu.q3
cpu.q3
cpu.q4
cpu.q4
cpu.q5
cpu.q5
cpu.q6
cpu.q6
cpu.q7
cpu.q7
dsp
SP queue parameters
icmp
ICMP queue parameters
icmp-redirect
ICMP-redirect queue parameters
igmp
GMP queue parameters
isis
ISIS queue parameters
link-local
Link-local queue parameters
nhop
Next hop queue parameters
ospf
OSPF queue parameters
pim
PIM queue parameters
reserved-mc
Reserved-mc queue parameters
rsvp-ldp
RSVP/LDP queue parameters
sflow
Sflow queue parameters
vrrp-rip-dhcp
VRRP/RIP/DHCP queue parameters
vxlan
VXLAN queue parameters
monitor
Monitor CPU queue usage
no-monitor
Do not monitor CPU queue usage
rate
Set CPU queue rate <0-100000>
Default
CPU queues are set with the default values as shown in
Table 29-2 and
Table 29-3.
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:
#configure terminal
(config)#cpu-queue cpu-q0 rate 400
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 |
+-------------------+--------------+-------------+--------------+-------------+
CPU0.q0 (100%) - - 470.63 58
bpdu ( 0%) - - 0.54 1
Use the following command to verify the maximum, configured, and default configuration values:
#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 900 - * no-monitor
cpu.q1 - 900 900 - * no-monitor
cpu.q2 - 900 900 - * no-monitor
cpu.q3 - 900 900 - * no-monitor
cpu.q4 - 900 900 - * no-monitor
cpu.q5 - 900 900 - * no-monitor
cpu.q6 - 900 900 - * no-monitor
cpu.q7 - 900 900 - * no-monitor
igmp - 1000 1000 - * no-monitor
is-is - 8000 8000 - no-monitor
reserved mc - 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 - 1000 1000 - no-monitor
bfd - 1000 1000 - no-monitor
sflow - 16384 16384 - no-monitor
dsp - 1500 1500 - no-monitor
vxlan - 500 500 - no-monitor
nhop - 500 500 - no-monitor
icmp-redirect - 400 400 - no-monitor
guest-vm - 8000 8000 - * no-monitor
Use the following command to remove the configuration:
(config)#no cpu-queue cpu.q0
(config)#exit
#
#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 900 - * no-monitor
cpu.q1 - 900 900 - * no-monitor
cpu.q2 - 900 900 - * no-monitor
cpu.q3 - 900 900 - * no-monitor
cpu.q4 - 900 900 - * no-monitor
cpu.q5 - 900 900 - * no-monitor
cpu.q6 - 900 900 - * no-monitor
cpu.q7 - 900 900 - * no-monitor
igmp - 1000 1000 - * no-monitor
is-is - 8000 8000 - no-monitor
reserved mc - 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 - 1000 1000 - no-monitor
bfd - 1000 1000 - no-monitor
sflow - 16384 16384 - no-monitor
dsp - 1500 1500 - no-monitor
vxlan - 500 500 - no-monitor
nhop - 500 500 - no-monitor
icmp-redirect - 400 400 - no-monitor
guest-vm - 8000 8000 - * no-monitor