Description

This article explain how the ddos queues installed in the command "show ddos-protection protocols statistics terse"

Symptoms

On 2 different QFX5210-64C with Junos 22.4R3.25 the output for the command is different.
Screenshot 2024-09-20 at 5.24.37 PM.png

Solution

  • At PFE level all the ASIC-queues are present on the switch:

FPC0(QFX5210-64C vty)# show halp-pkt asic-queues   

------ --------- -------- -------- ------------------------------

 CMICQ Channel  bwidth  burst   Qlen      Proto(s)

------ ---------- -------- -------- --------- ------------------------------

   0    3   500    10   200       uncls

   4    1   4000   200   200     vchassis

   7    3   500   200   200       vxlan

   8    3   1500   200   200      localnh

   9    3   1000   200   200     vcipc-udp

  10    3   2000   200   200   sample-source

  11    3   2000   200   200    sample-dest

  12    3    50    10   200    l3mtu-fail,ttl,ip-opt

  14    3   100    10   200    garp-reply

  15    3   500    10   200      fw-host

  16    3   500   200   200       ndpv6

  17    3   1000   200   200     dhcpv4v6

  19    3   1500   200   200   ipmc-reserved

  20    3   300   200   200      resolve

  21    3   100    10   200    l3dest-miss

  22    3   100    10   200     redirect

  23    3   300   200   200      l3nhop

  24    3   100    10   200  l3mc-sgvhit-icl

  25    3    50    10   200  martian-address

  26    3   1000   200   200       l2pt

  27    3    50    10   200     urpf-fail

  28    3   1000   300   300   ipmcast-miss

  29    2   300    10   200  nonucast-switch

  30    2   3000   200   200       rsvp,ldp,bgp

  31    2   3000   200   200   unknown-l2mc,rip,ospf

  32    2   1000   200   200   fip-snooping

  33    2   1000   200   200       igmp

  34    2   500   200   200        arp

  35    2   1500   200   200     pim-data

  36    2   1500   200   200    ospf-hello

  37    2   1500   200   200     pim-ctrl

  38    2   2000   200   200       isis

  39    1   250   200   200       lacp

  40    1   1200   200   200        bfd

  41    1   100    10   200        ntp

  42    1   500   200   200     vchassis

  43    1   1000   200   200        stp,pvstp,lldp

 

  • However the below command only shows the queues for which we've received the traffic. If we've not received traffic for any of the queue, the queue will not be shown under the output.

labroot@QFX5210-64C> show ddos-protection protocols statistics terse 

Packet types: 45, Received traffic: 11, Currently violated: 0

 

Protocol  Packet   Received    Dropped    Rate   Violation State

group    type    (packets)    (packets)   (pps)  counts

rsvp    aggregate  113375     0       0    0     ok  

bfd     aggregate  1171481     0       3    0     ok  

ldp     aggregate  113375     0       0    0     ok  

bgp     aggregate  113375     0       0    0     ok  

lacp    aggregate  95055      0       0    0     ok  

stp     aggregate  31268      0       0    0     ok  

lldp    aggregate  31268      0       0    0     ok  

arp     aggregate  707       0       0    0     ok  

pvstp    aggregate  31268      0       0    0     ok  

vxlan    aggregate  4        0       0    0     ok  

localnh   aggregate  3        0       0    0     ok

 

  • Same output can be verified at the PFE level

FPC0(QFX5210-64C vty)# show halp-pkt pkt-stats   

===Trimmed===

RX PER QUEUE STATS:

rx queue 7 : rxq_req 4 rxq_success 4

rx queue 8 : rxq_req 3 rxq_success 3

rx queue 30 : rxq_req 113371 rxq_success 113371

rx queue 34 : rxq_req 707 rxq_success 707

rx queue 39 : rxq_req 95042 rxq_success 0

rx queue 40 : rxq_req 1171441 rxq_success 1171441

rx queue 43 : rxq_req 31266 rxq_success 0

 

 

Modification History

2024-09-19 : Article Created