Displaying QoS statistics

To display traffic statistics for each output queue on an interface, use the show interface <id> queue-detail command in running or candidate mode.

The following example displays output queue statistics for an interface on a 7250 IXR system. The output on a 7220 IXR-D2, D3, and D5 or 7220 IXR-H2 and H3 system is similar, but shows slightly different information.

# show interface ethernet-2/6 queue-detail  
================================================================================
Interface: ethernet-2/6
--------------------------------------------------------------------------------
  Description     : <None>
  Oper state      : up
  Last change     : 35s ago, No flaps since last clear
  Speed           : 100G
  Loopback mode   : false
  MTU             : 9232
  VLAN tagging    : false
  MAC address     : 12:12:02:FF:00:00
  Last stats clear: never
================================================================================
Scheduler details for for ethernet-2/6
--------------------------------------------------------------------------------
Tier 1
Node   Scheduling   Weight                         Serving
0      SP           -        queue multicast-1, multicast-2, multicast-3,       
                             multicast-4, multicast-5, multicast-6, multicast-7,
                             openconfig-multicast-0
1      SP           -        queue openconfig-unicast-0, unicast-1, unicast-2,  
                             unicast-3, unicast-4, unicast-5, unicast-6,        
                             unicast-7
================================================================================
Queue           : multicast-1
Forwarding class: fc1
--------------------------------------------------------------------------------
Scheduling
--------------------------------------------------------------------------------
PIR (%)        : 100
PIR (bps)      : -
Scheduler node : Tier 1, Node 0
--------------------------------------------------------------------------------
Queue Depth
--------------------------------------------------------------------------------
Maximum burst (bytes): 0
--------------------------------------------------------------------------------
Active WRED Slopes
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Active ECN Slopes
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Queue Statistics
--------------------------------------------------------------------------------
Tx Packets     : 0
Tx Bytes       : 0
Dropped Packets: 0
Dropped Bytes  : 0
--------------------------------------------------------------------------------
================================================================================
Queue           : multicast-2
Forwarding class: fc2
--------------------------------------------------------------------------------
Scheduling
--------------------------------------------------------------------------------
PIR (%)        : 100
PIR (bps)      : -
Scheduler node : Tier 1, Node 0
--------------------------------------------------------------------------------
Queue Depth
--------------------------------------------------------------------------------
Maximum burst (bytes): 0
--------------------------------------------------------------------------------
Active WRED Slopes
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Active ECN Slopes
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Queue Statistics
--------------------------------------------------------------------------------
Tx Packets     : 0
Tx Bytes       : 0
Dropped Packets: 0
Dropped Bytes  : 0
--------------------------------------------------------------------------------
================================================================================
Queue           : multicast-3
Forwarding class: fc3
--------------------------------------------------------------------------------
Scheduling
--------------------------------------------------------------------------------
PIR (%)        : 100
PIR (bps)      : -
Scheduler node : Tier 1, Node 0
--------------------------------------------------------------------------------
Queue Depth
--------------------------------------------------------------------------------
Maximum burst (bytes): 0
--------------------------------------------------------------------------------
Active WRED Slopes
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Active ECN Slopes
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Queue Statistics
--------------------------------------------------------------------------------
Tx Packets     : 0
Tx Bytes       : 0
Dropped Packets: 0
Dropped Bytes  : 0
--------------------------------------------------------------------------------
================================================================================
Queue           : multicast-4
Forwarding class: fc4
--------------------------------------------------------------------------------
Scheduling
--------------------------------------------------------------------------------
PIR (%)        : 100
PIR (bps)      : -
Scheduler node : Tier 1, Node 0
--------------------------------------------------------------------------------
Queue Depth
--------------------------------------------------------------------------------
Maximum burst (bytes): 0
--------------------------------------------------------------------------------
Active WRED Slopes
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Active ECN Slopes
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Queue Statistics
--------------------------------------------------------------------------------
Tx Packets     : 0
Tx Bytes       : 0
Dropped Packets: 0
Dropped Bytes  : 0
--------------------------------------------------------------------------------
================================================================================
Queue           : multicast-5
Forwarding class: fc5
--------------------------------------------------------------------------------
Scheduling
--------------------------------------------------------------------------------
PIR (%)        : 100
PIR (bps)      : -
Scheduler node : Tier 1, Node 0
--------------------------------------------------------------------------------
Queue Depth
--------------------------------------------------------------------------------
Maximum burst (bytes): 0
--------------------------------------------------------------------------------
Active WRED Slopes
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Active ECN Slopes
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Queue Statistics
--------------------------------------------------------------------------------
Tx Packets     : 0
Tx Bytes       : 0
Dropped Packets: 0
Dropped Bytes  : 0
--------------------------------------------------------------------------------
================================================================================
Queue           : multicast-6
Forwarding class: fc6
--------------------------------------------------------------------------------
Scheduling
--------------------------------------------------------------------------------
PIR (%)        : 100
PIR (bps)      : -
Scheduler node : Tier 1, Node 0
--------------------------------------------------------------------------------
Queue Depth
--------------------------------------------------------------------------------
Maximum burst (bytes): 0
--------------------------------------------------------------------------------
Active WRED Slopes
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Active ECN Slopes
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Queue Statistics
--------------------------------------------------------------------------------
Tx Packets     : 0
Tx Bytes       : 0
Dropped Packets: 0
Dropped Bytes  : 0
--------------------------------------------------------------------------------
================================================================================
Queue           : multicast-7
Forwarding class: fc7
--------------------------------------------------------------------------------
Scheduling
--------------------------------------------------------------------------------
PIR (%)        : 100
PIR (bps)      : -
Scheduler node : Tier 1, Node 0
--------------------------------------------------------------------------------
Queue Depth
--------------------------------------------------------------------------------
Maximum burst (bytes): 0
--------------------------------------------------------------------------------
Active WRED Slopes
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Active ECN Slopes
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Queue Statistics
--------------------------------------------------------------------------------
Tx Packets     : 0
Tx Bytes       : 0
Dropped Packets: 0
Dropped Bytes  : 0
--------------------------------------------------------------------------------
================================================================================
Queue           : openconfig-multicast-0
Forwarding class: openconfig-fc0
--------------------------------------------------------------------------------
Scheduling
--------------------------------------------------------------------------------
PIR (%)        : 100
PIR (bps)      : -
Scheduler node : Tier 1, Node 0
--------------------------------------------------------------------------------
Queue Depth
--------------------------------------------------------------------------------
Maximum burst (bytes): 0
--------------------------------------------------------------------------------
Active WRED Slopes
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Active ECN Slopes
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Queue Statistics
--------------------------------------------------------------------------------
Tx Packets     : 0
Tx Bytes       : 0
Dropped Packets: 0
Dropped Bytes  : 0
--------------------------------------------------------------------------------
================================================================================
Queue           : openconfig-unicast-0
Queue template  : default
Forwarding class: openconfig-fc0
--------------------------------------------------------------------------------
Scheduling
--------------------------------------------------------------------------------
PIR (%)        : 1
PIR (bps)      : 1000003000
Strict Priority: true
Weight         : 1
Scheduler node : Tier 1, Node 1
--------------------------------------------------------------------------------
Queue Depth
--------------------------------------------------------------------------------
Maximum burst (bytes): 268435456
--------------------------------------------------------------------------------
Active WRED Slopes
--------------------------------------------------------------------------------
Slope   Traffic type       Drop       Min-threshol   Max-threshol       Max     
                       probability      d(%MBS)        d(%MBS)      probability
1       all            low            0              0              0
2       all            medium         0              0              0
3       all            high           0              0              0
--------------------------------------------------------------------------------
Active ECN Slopes
--------------------------------------------------------------------------------
Slope   Drop probability         Min-               Max-         Max probability
                           threshold(%MBS)    threshold(%MBS)
1       all                0                  0                  0
--------------------------------------------------------------------------------
Queue Statistics
--------------------------------------------------------------------------------
Tx Packets     : 0
Tx Bytes       : 0
Dropped Packets: 0
Dropped Bytes  : 0
--------------------------------------------------------------------------------
VOQ Id         Fwd-         Fwd-Pkts(L/M/H)        Drop-              Drop-     
          Octets(L/M/H)                        Octets(L/M/H)       Pkts(L/M/H)
1        0/0/0              0/0/0             0/0/0              0/0/0
2        0/0/0              0/0/0             0/0/0              0/0/0
3        0/0/0              0/0/0             0/0/0              0/0/0
4        0/0/0              0/0/0             0/0/0              0/0/0
================================================================================
Queue           : unicast-1
Queue template  : default
Forwarding class: fc1
--------------------------------------------------------------------------------
Scheduling
--------------------------------------------------------------------------------
PIR (%)        : 100
PIR (bps)      : 101370431000
Strict Priority: true
Weight         : 1
Scheduler node : Tier 1, Node 1
--------------------------------------------------------------------------------
Queue Depth
--------------------------------------------------------------------------------
Maximum burst (bytes): 268435456
--------------------------------------------------------------------------------
Active WRED Slopes
--------------------------------------------------------------------------------
Slope   Traffic type       Drop       Min-threshol   Max-threshol       Max     
                       probability      d(%MBS)        d(%MBS)      probability
1       all            low            0              0              0
2       all            medium         0              0              0
3       all            high           0              0              0
--------------------------------------------------------------------------------
Active ECN Slopes
--------------------------------------------------------------------------------
Slope   Drop probability         Min-               Max-         Max probability
                           threshold(%MBS)    threshold(%MBS)
1       all                0                  0                  0
--------------------------------------------------------------------------------
Queue Statistics
--------------------------------------------------------------------------------
Tx Packets     : 0
Tx Bytes       : 0
Dropped Packets: 0
Dropped Bytes  : 0
--------------------------------------------------------------------------------
VOQ Id         Fwd-         Fwd-Pkts(L/M/H)        Drop-              Drop-     
          Octets(L/M/H)                        Octets(L/M/H)       Pkts(L/M/H)
1        0/0/0              0/0/0             0/0/0              0/0/0
2        0/0/0              0/0/0             0/0/0              0/0/0
3        0/0/0              0/0/0             0/0/0              0/0/0
4        0/0/0              0/0/0             0/0/0              0/0/0
================================================================================
Queue           : unicast-2
Queue template  : default
Forwarding class: fc2
--------------------------------------------------------------------------------
Scheduling
--------------------------------------------------------------------------------
PIR (%)        : 100
PIR (bps)      : 101370431000
Strict Priority: true
Weight         : 1
Scheduler node : Tier 1, Node 1
--------------------------------------------------------------------------------
Queue Depth
--------------------------------------------------------------------------------
Maximum burst (bytes): 268435456
--------------------------------------------------------------------------------
Active WRED Slopes
--------------------------------------------------------------------------------
Slope   Traffic type       Drop       Min-threshol   Max-threshol       Max     
                       probability      d(%MBS)        d(%MBS)      probability
1       all            low            0              0              0
2       all            medium         0              0              0
3       all            high           0              0              0
--------------------------------------------------------------------------------
Active ECN Slopes
--------------------------------------------------------------------------------
Slope   Drop probability         Min-               Max-         Max probability
                           threshold(%MBS)    threshold(%MBS)
1       all                0                  0                  0
--------------------------------------------------------------------------------
Queue Statistics
--------------------------------------------------------------------------------
Tx Packets     : 0
Tx Bytes       : 0
Dropped Packets: 0
Dropped Bytes  : 0
--------------------------------------------------------------------------------
VOQ Id         Fwd-         Fwd-Pkts(L/M/H)        Drop-              Drop-     
          Octets(L/M/H)                        Octets(L/M/H)       Pkts(L/M/H)
1        0/0/0              0/0/0             0/0/0              0/0/0
2        0/0/0              0/0/0             0/0/0              0/0/0
3        0/0/0              0/0/0             0/0/0              0/0/0
4        0/0/0              0/0/0             0/0/0              0/0/0
================================================================================
Queue           : unicast-3
Queue template  : default
Forwarding class: fc3
--------------------------------------------------------------------------------
Scheduling
--------------------------------------------------------------------------------
PIR (%)        : 100
PIR (bps)      : 101370431000
Strict Priority: true
Weight         : 1
Scheduler node : Tier 1, Node 1
--------------------------------------------------------------------------------
Queue Depth
--------------------------------------------------------------------------------
Maximum burst (bytes): 268435456
--------------------------------------------------------------------------------
Active WRED Slopes
--------------------------------------------------------------------------------
Slope   Traffic type       Drop       Min-threshol   Max-threshol       Max     
                       probability      d(%MBS)        d(%MBS)      probability
1       all            low            0              0              0
2       all            medium         0              0              0
3       all            high           0              0              0
--------------------------------------------------------------------------------
Active ECN Slopes
--------------------------------------------------------------------------------
Slope   Drop probability         Min-               Max-         Max probability
                           threshold(%MBS)    threshold(%MBS)
1       all                0                  0                  0
--------------------------------------------------------------------------------
Queue Statistics
--------------------------------------------------------------------------------
Tx Packets     : 0
Tx Bytes       : 0
Dropped Packets: 0
Dropped Bytes  : 0
--------------------------------------------------------------------------------
VOQ Id         Fwd-         Fwd-Pkts(L/M/H)        Drop-              Drop-     
          Octets(L/M/H)                        Octets(L/M/H)       Pkts(L/M/H)
1        0/0/0              0/0/0             0/0/0              0/0/0
2        0/0/0              0/0/0             0/0/0              0/0/0
3        0/0/0              0/0/0             0/0/0              0/0/0
4        0/0/0              0/0/0             0/0/0              0/0/0
================================================================================
Queue           : unicast-4
Queue template  : default
Forwarding class: fc4
--------------------------------------------------------------------------------
Scheduling
--------------------------------------------------------------------------------
PIR (%)        : 100
PIR (bps)      : 101370431000
Strict Priority: true
Weight         : 1
Scheduler node : Tier 1, Node 1
--------------------------------------------------------------------------------
Queue Depth
--------------------------------------------------------------------------------
Maximum burst (bytes): 268435456
--------------------------------------------------------------------------------
Active WRED Slopes
--------------------------------------------------------------------------------
Slope   Traffic type       Drop       Min-threshol   Max-threshol       Max     
                       probability      d(%MBS)        d(%MBS)      probability
1       all            low            0              0              0
2       all            medium         0              0              0
3       all            high           0              0              0
--------------------------------------------------------------------------------
Active ECN Slopes
--------------------------------------------------------------------------------
Slope   Drop probability         Min-               Max-         Max probability
                           threshold(%MBS)    threshold(%MBS)
1       all                0                  0                  0
--------------------------------------------------------------------------------
Queue Statistics
--------------------------------------------------------------------------------
Tx Packets     : 0
Tx Bytes       : 0
Dropped Packets: 0
Dropped Bytes  : 0
--------------------------------------------------------------------------------
VOQ Id         Fwd-         Fwd-Pkts(L/M/H)        Drop-              Drop-     
          Octets(L/M/H)                        Octets(L/M/H)       Pkts(L/M/H)
1        0/0/0              0/0/0             0/0/0              0/0/0
2        0/0/0              0/0/0             0/0/0              0/0/0
3        0/0/0              0/0/0             0/0/0              0/0/0
4        0/0/0              0/0/0             0/0/0              0/0/0
================================================================================
Queue           : unicast-5
Queue template  : default
Forwarding class: fc5
--------------------------------------------------------------------------------
Scheduling
--------------------------------------------------------------------------------
PIR (%)        : 100
PIR (bps)      : 101370431000
Strict Priority: true
Weight         : 1
Scheduler node : Tier 1, Node 1
--------------------------------------------------------------------------------
Queue Depth
--------------------------------------------------------------------------------
Maximum burst (bytes): 268435456
--------------------------------------------------------------------------------
Active WRED Slopes
--------------------------------------------------------------------------------
Slope   Traffic type       Drop       Min-threshol   Max-threshol       Max     
                       probability      d(%MBS)        d(%MBS)      probability
1       all            low            0              0              0
2       all            medium         0              0              0
3       all            high           0              0              0
--------------------------------------------------------------------------------
Active ECN Slopes
--------------------------------------------------------------------------------
Slope   Drop probability         Min-               Max-         Max probability
                           threshold(%MBS)    threshold(%MBS)
1       all                0                  0                  0
--------------------------------------------------------------------------------
Queue Statistics
--------------------------------------------------------------------------------
Tx Packets     : 0
Tx Bytes       : 0
Dropped Packets: 0
Dropped Bytes  : 0
--------------------------------------------------------------------------------
VOQ Id         Fwd-         Fwd-Pkts(L/M/H)        Drop-              Drop-     
          Octets(L/M/H)                        Octets(L/M/H)       Pkts(L/M/H)
1        0/0/0              0/0/0             0/0/0              0/0/0
2        0/0/0              0/0/0             0/0/0              0/0/0
3        0/0/0              0/0/0             0/0/0              0/0/0
4        0/0/0              0/0/0             0/0/0              0/0/0
================================================================================
Queue           : unicast-6
Queue template  : default
Forwarding class: fc6
--------------------------------------------------------------------------------
Scheduling
--------------------------------------------------------------------------------
PIR (%)        : 100
PIR (bps)      : 101370431000
Strict Priority: true
Weight         : 1
Scheduler node : Tier 1, Node 1
--------------------------------------------------------------------------------
Queue Depth
--------------------------------------------------------------------------------
Maximum burst (bytes): 268435456
--------------------------------------------------------------------------------
Active WRED Slopes
--------------------------------------------------------------------------------
Slope   Traffic type       Drop       Min-threshol   Max-threshol       Max     
                       probability      d(%MBS)        d(%MBS)      probability
1       all            low            0              0              0
2       all            medium         0              0              0
3       all            high           0              0              0
--------------------------------------------------------------------------------
Active ECN Slopes
--------------------------------------------------------------------------------
Slope   Drop probability         Min-               Max-         Max probability
                           threshold(%MBS)    threshold(%MBS)
1       all                0                  0                  0
--------------------------------------------------------------------------------
Queue Statistics
--------------------------------------------------------------------------------
Tx Packets     : 0
Tx Bytes       : 0
Dropped Packets: 0
Dropped Bytes  : 0
--------------------------------------------------------------------------------
VOQ Id         Fwd-         Fwd-Pkts(L/M/H)        Drop-              Drop-     
          Octets(L/M/H)                        Octets(L/M/H)       Pkts(L/M/H)
1        0/0/0              0/0/0             0/0/0              0/0/0
2        0/0/0              0/0/0             0/0/0              0/0/0
3        0/0/0              0/0/0             0/0/0              0/0/0
4        0/0/0              0/0/0             0/0/0              0/0/0
================================================================================
Queue           : unicast-7
Queue template  : default
Forwarding class: fc7
--------------------------------------------------------------------------------
Scheduling
--------------------------------------------------------------------------------
PIR (%)        : 100
PIR (bps)      : 101370431000
Strict Priority: true
Weight         : 1
Scheduler node : Tier 1, Node 1
--------------------------------------------------------------------------------
Queue Depth
--------------------------------------------------------------------------------
Maximum burst (bytes): 268435456
--------------------------------------------------------------------------------
Active WRED Slopes
--------------------------------------------------------------------------------
Slope   Traffic type       Drop       Min-threshol   Max-threshol       Max     
                       probability      d(%MBS)        d(%MBS)      probability
1       all            low            0              0              0
2       all            medium         0              0              0
3       all            high           0              0              0
--------------------------------------------------------------------------------
Active ECN Slopes
--------------------------------------------------------------------------------
Slope   Drop probability         Min-               Max-         Max probability
                           threshold(%MBS)    threshold(%MBS)
1       all                0                  0                  0
--------------------------------------------------------------------------------
Queue Statistics
--------------------------------------------------------------------------------
Tx Packets     : 0
Tx Bytes       : 0
Dropped Packets: 0
Dropped Bytes  : 0
--------------------------------------------------------------------------------
VOQ Id         Fwd-         Fwd-Pkts(L/M/H)        Drop-              Drop-     
          Octets(L/M/H)                        Octets(L/M/H)       Pkts(L/M/H)
1        0/0/0              0/0/0             0/0/0              0/0/0
2        0/0/0              0/0/0             0/0/0              0/0/0
3        0/0/0              0/0/0             0/0/0              0/0/0
4        0/0/0              0/0/0             0/0/0              0/0/0
================================================================================
--{ + candidate shared default }--[  ]--
A:rifa#  

Clearing QoS statistics

You can reset the queue statistics counters for an interface.

Reset all statistics counters on an interface

The following example resets all statistics counters on an interface:

--{ running }--[  ]--
# tools interface ethernet-1/1 statistics queue-statistics clear

Reset statistics counters for multicast egress queue

The following example resets statistics counters for a specified egress queue (multicast) on an interface:

--{ running }--[  ]--
# tools interface ethernet-1/1 statistics queue-statistics multicast-queue 1 clear

QoS profile resource usage

A QoS profile resource refers to the number of classifier and rewrite policies that are applied to interfaces on a line card. Each classifier or rewrite policy that is applied to an interface on a line card counts as one profile resource used.

For example, if you create classifier policy dscp1 and apply it to input IPv4 traffic on an interface, and apply the same dscp1 policy to input IPv6 traffic on a different interface on the same line card, it counts as two classifier profile resources used.

The SR Linux supports up to 15 classifier profile resources and up to 32 rewrite profile resources per line card. You can display the number of QoS profile resources in use for each line card.

Displaying QoS profile resource usage on a 7250 IXR system

The following example displays the number of used and free classifier and rewrite profile resources for a line card:

# info from state platform linecard 1 forwarding-complex 0 qos
    platform {
        linecard 1 {
            forwarding-complex 0 {
                qos {
                    resource classifier-profiles {
                        used 1
                        free 15
                    
                    resource rewrite-profiles {
                        used 1
                        free 31
                    }
                }
            }
        }
    }