OcNOS DC : Quality of Service Guide : Quality of Service Configuration Guide : FP Rules Queuing Configuration
FP Rules Queuing Configuration
This chapter contains basic information about cpu-queue properties and complete sample configuration for cpu-queue properties.
DUT has many CPU queues for management/classification of control traffic and provides rate limiters for control plane protection. Different types of CPU port bound packets are queued in different cpu-queues each with different properties like rate, queue-limit, monitoring status and drop status.
Topology
Simple configuration of CPU Queuing
Default Values
R1#show cpu-queue details
* - Can not configure the parameter
Cpu queue Rate In PPS Lossy Status Monitor Status
Name Configured Default Configured Default Configured Default
========= ========== ======= ========== ========== ========== ===========
sflow - 32000 - *lossy - monitor
bgp - 1500 - lossless - monitor
vrrp - 500 - lossless - monitor
ldp-rsvp - 500 - lossless - monitor
rip - 500 - lossless - monitor
ospf - 2000 - lossless - monitor
dhcp - 100 - lossy - no-monitor
nd - 6000 - lossless - monitor
mpls - 500 - lossy - no-monitor
pim - 4000 - *lossy - *no-monitor
arp - 6000 - lossless - monitor
igmp - 4000 - *lossy - *no-monitor
bpdu - 10000 - lossless - monitor
ccm - 500 - lossy - no-monitor
bfd - 2000 - lossy - no-monitor
ptp - 1000 - lossy - no-monitor
isis - 500 - lossless - monitor
trill-isis - 1000 - lossless - monitor
acl - 200 - *lossy - *no-monitor
vxlan - 500 - lossy - monitor
 
 
Note: Enable feature before validating cpu-queue for that protocol.
Monitor option will generate operational log, if it reaches above 90%. Log generation will stop, when it goes below 90%.
1. 2001 Jan 07 22:29:03.345 : R1 : HSL : NOTIF : [CPU_RATE_HIGH_4]: Average CPU queue rate for bpdu is 90% (540 pkts/sec).
2. 2001 Jan 07 22:29:08.346 : R1 : HSL : NOTIF : [CPU_QUEUE_RECOVERED_4]: CPU queue rate for bpdu is back to normal. Current average rate is 89%.
Lossless option will drop the traffic at ingress interface. We can use "show interface counters indiscard-stats" to verify the drop. Packets will be incremented in IBP Discards column.
Lossy option will drop the traffic at cpu. We can use “show interface cpu counters queue-stats`” to verify the drop.
“disable l3-protocols-cpu vxlan” command is used, when sending traffic to vxlan interface. In Vxlan, arp and nd traffic will go to vxlan queue. Remaining traffics are considered as data traffic.
Configuring CPU Queuing Lossless
Do the following to configure CPU queuing on an interface.
 
#configure terminal
 
(config)#bridge 1 protocol rstp
Configure Bridge 1
(config)#int xe52/2
 
(config)#switchport
Configure interface as L2
(config-cmap-qos)#bridge-group 1
Configure bridge 1 in interface
(config-cmap-qos)#int xe52/3
 
(config-cmap-qos)#switchport
Configure interface as L2
(config)#bridge-group 1
Configure bridge 1 in interface
(config-cmap-qos)#exit
 
(config)#cpu-queue bpdu rate 600 lossless no-monitor
Configure bpdu cpu-queue with rate of 600 pps and lossless and no-monitor option
Validation
Enter the commands listed in the sections below to confirm the configurations.
R1(config)#do show running-config | inc cpu
cpu-queue bpdu rate 600 lossless no-monitor
R1(config)#
R1(config)#do show cpu-queue details
* - Can not configure the parameter
Cpu queue Rate In PPS Lossy Status Monitor Status
Name Configured Default Configured Default Configured Default
========= ========== ======= ========== ========== ========== ===========
sflow - 32000 - *lossy - monitor
bgp - 1500 - lossless - monitor
vrrp - 500 - lossless - monitor
ldp-rsvp - 500 - lossless - monitor
rip - 500 - lossless - monitor
ospf - 2000 - lossless - monitor
dhcp - 100 - lossy - no-monitor
nd - 6000 - lossless - monitor
mpls - 500 - lossy - no-monitor
pim - 4000 - *lossy - *no-monitor
arp - 6000 - lossless - monitor
igmp - 4000 - *lossy - *no-monitor
bpdu 600 10000 lossless lossless no-monitor monitor
ccm - 500 - lossy - no-monitor
bfd - 2000 - lossy - no-monitor
ptp - 1000 - lossy - no-monitor
isis - 500 - lossless - monitor
trill-isis - 1000 - lossless - monitor
acl - 200 - *lossy - *no-monitor
vxlan - 500 - lossy - monitor
R1(config)#do clear interface cpu counters
R1(config)#do clear interface counters
 
R1(config)#do show interface counters rate
+-------------------+--------------+-------------+--------------+-------------+
| Interface | Rx bps | Rx pps | Tx bps | Tx pps |
+-------------------+--------------+-------------+--------------+-------------+
po1 436 0 2980 5
po2 768714 1372 769045 1373
xe52/1 0 0 44 0
xe52/2 0 0 263 0
xe52/3 669424827 99971 263 0
xe53/1 33 0 788 1
xe53/2 33 0 719 1
xe53/3 336 0 702 1
xe53/4 33 0 769 1
xe54/1 192176 343 192014 342
xe54/2 192166 343 192292 343
xe54/3 192150 343 192348 343
xe54/4 192204 343 192390 343
R1(config)#do show interface cpu counters rate
Load interval: 30 second
+-------------------+--------------+-------------+--------------+-------------+
| CPU Queue(%) | Rx bps | Rx pps | Tx bps | Tx pps |
+-------------------+--------------+-------------+--------------+-------------+
hw-bfd ( N/A) - - 101679 1374
bpdu (100%) - - 436856 600
ospf ( 0%) - - 84 0
bgp ( 0%) - - 44 0
R1(config)#do show interface cpu counters rate
Load interval: 30 second
+-------------------+--------------+-------------+--------------+-------------+
| CPU Queue(%) | Rx bps | Rx pps | Tx bps | Tx pps |
+-------------------+--------------+-------------+--------------+-------------+
hw-bfd ( N/A) - - 101574 1372
bpdu ( 99%) - - 433465 599
ospf ( 0%) - - 39 0
bgp ( 0%) - - 44 0
 
R1(config)#do show interface cpu counters queue-sta
E - Egress, I - Ingress, Q-Size is in bytes
+--------------------+--------+-----------------+-------------------+-----------------+-------------------+
| Queue/Class-map | Q-Size | Tx pkts | Tx bytes | Dropped pkts | Dropped bytes |
+--------------------+--------+-----------------+-------------------+-----------------+-------------------+
hw-bfd (E) 0 130582 9663068 0 0
bpdu (E) 2706080 57086 41576707 0 0
arp (E) 0 2 136 0 0
ospf (E) 0 35 4658 0 0
bgp (E) 0 95 7030 0 0
 
 
R1(config)#do show interface counters indiscard-stats
+-------------+------------------+---------------+---------------+-----------------+------------------+--------------+--------------------+
| Interface | Port Block Drops | Vlan Discards | ACL/QOS Drops | Policy Discards | EGR Port Unavail | IBP Discards | Total Discards |
+-------------+------------------+---------------+---------------+-----------------+------------------+--------------+--------------------+
xe52/3 0 0 0 0 0 13080579 13080579
 
Configuring cpu-queue with lossy
============================
Configuring CPU Queuing Lossy
Do the following to configure CPU queuing on an interface.
 
#configure terminal
 
R1(config)#cpu-queue bpdu rate 500 lossy no-monitor
Configure bpdu cpu-queue with rate of 500 pps and lossy and no-monitor option
R1(config-if)#exit
 
 
 
Validation
Enter the commands listed in the sections below to confirm the configurations.
R1(config)#do clear interface cpu counters
R1(config)#do clear interface counters
R1(config)#do show running-config | inc cpu
cpu-queue bpdu rate 500 lossy no-monitor
disable l3-protocols-cpu vxlan
R1(config)#do show cpu-queue details
* - Can not configure the parameter
Cpu queue Rate In PPS Lossy Status Monitor Status
Name Configured Default Configured Default Configured Default
========= ========== ======= ========== ========== ========== ===========
sflow - 32000 - *lossy - monitor
bgp - 1500 - lossless - monitor
vrrp - 500 - lossless - monitor
ldp-rsvp - 500 - lossless - monitor
rip - 500 - lossless - monitor
ospf - 2000 - lossless - monitor
dhcp - 100 - lossy - no-monitor
nd - 6000 - lossless - monitor
mpls - 500 - lossy - no-monitor
pim - 4000 - *lossy - *no-monitor
arp - 6000 - lossless - monitor
igmp - 4000 - *lossy - *no-monitor
bpdu 500 10000 lossy lossless no-monitor monitor
ccm - 500 - lossy - no-monitor
bfd - 2000 - lossy - no-monitor
ptp - 1000 - lossy - no-monitor
isis - 500 - lossless - monitor
trill-isis - 1000 - lossless - monitor
acl - 200 - *lossy - *no-monitor
vxlan - 500 - lossy - monitor
R1(config)#do show interface counters rate
+-------------------+--------------+-------------+--------------+-------------+
| Interface | Rx bps | Rx pps | Tx bps | Tx pps |
+-------------------+--------------+-------------+--------------+-------------+
po1 780 0 2974 5
po2 769353 1373 769260 1373
xe52/1 0 0 11 0
xe52/2 0 0 248 0
xe52/3 669564071 100000 248 0
xe53/1 98 0 871 1
xe53/2 98 0 692 1
xe53/3 485 0 699 1
xe53/4 98 0 710 1
xe54/1 192647 343 192322 343
xe54/2 191965 342 192280 343
xe54/3 192466 343 192278 343
xe54/4 192295 343 192416 343
R1(config)#do show interface cpu counters rate
Load interval: 30 second
+-------------------+--------------+-------------+--------------+-------------+
| CPU Queue(%) | Rx bps | Rx pps | Tx bps | Tx pps |
+-------------------+--------------+-------------+--------------+-------------+
hw-bfd ( N/A) - - 101505 1371
bpdu ( 99%) - - 345547 499
ospf ( 0%) - - 74 0
bgp ( 0%) - - 44 0
R1(config)#do show interface cpu counters rate
Load interval: 30 second
+-------------------+--------------+-------------+--------------+-------------+
| CPU Queue(%) | Rx bps | Rx pps | Tx bps | Tx pps |
+-------------------+--------------+-------------+--------------+-------------+
hw-bfd ( N/A) - - 101505 1371
bpdu ( 99%) - - 345547 499
ospf ( 0%) - - 74 0
bgp ( 0%) - - 44 0
R1(config)#do show cpu-queue details
cpu-queue bpdu rate 500 lossy no-monitor
disable l3-protocols-cpu vxlan
R1(config)#
R1(config)#
R1(config)#do 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 |
+--------------------+--------+-----------------+-------------------+-----------------+-------------------+
hw-bfd (E) 0 78216 5787984 0 0
bpdu (E) 978848 39290 27124511 7818876 6550244016
arp (E) 0 2 136 0 0
ospf (E) 0 21 3070 0 0
bgp (E) 0 55 4070 0 0
 
R1(config)#do show interface counters indiscard-stats
+-------------+------------------+---------------+---------------+-----------------+------------------+--------------+--------------------+
| Interface | Port Block Drops | Vlan Discards | ACL/QOS Drops | Policy Discards | EGR Port Unavail | IBP Discards | Total Discards |
+-------------+------------------+---------------+---------------+-----------------+------------------+--------------+--------------------+
xe53/3 4 0 0 0 4 0 4
xe54/1 3 0 0 0 3 0 3
xe54/2 2 0 0 0 2 0 2
xe54/3 1 0 0 0 1 0 1
xe54/4 3 0 0 0 3 0 3