Displaying QoS statistics

To display traffic statistics for each output queue on an interface, use the info from state qos interfaces interface <id> output queues queue queue-statistics command.

Display ethernet interface queue statistics

# info from state qos interfaces interface ethernet-1/1 output queues queue * queue-statistics aggregate-statistics | filter fields * | as table

+-------------+------------+------+-------+--------+-------+-------+-------+-------+-------+--------+
| Interface   | Queue      |Last- |Transm |Transm  |Droppe |Droppe |Egq-dr |Egq-dr |Queue- |Queue-  |
|             |            |clear |itted- |itted-  |d-pack |d-     |opped- |opped- |depth  |depth   |
|             |            |      |packet |octets  |ets    |octets |packet |octets |last-  |high-t  |
|             |            |      |s      |        |       |       |s      |       |high-t |hresho  |
|             |            |      |       |        |       |       |       |       |hresho |ld-     |
|             |            |      |       |        |       |       |       |       |ld-    |bytes   |
|             |            |      |       |        |       |       |       |       |time   |        |
+=============+============+======+=======+========+=======+=======+=======+=======+=======+========+
+-------------+------------+------+-------+--------+-------+-------+-------+-------+-------+--------+
+=============+============+======+=======+========+=======+=======+=======+=======+=======+========+
|ethernet-1/1 |multicast-0 |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
|ethernet-1/1 |multicast-1 |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
|ethernet-1/1 |multicast-2 |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
|ethernet-1/1 |multicast-3 |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
|ethernet-1/1 |multicast-4 |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
|ethernet-1/1 |multicast-5 |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
|ethernet-1/1 |multicast-6 |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
|ethernet-1/1 |multicast-7 |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
|ethernet-1/1 |unicast-0   |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
|ethernet-1/1 |unicast-1   |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
|ethernet-1/1 |unicast-2   |      |     5 |    340 |     0 |     0 |     0 |     0 |       |        |
|ethernet-1/1 |unicast-3   |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
|ethernet-1/1 |unicast-4   |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
|ethernet-1/1 |unicast-5   |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
|ethernet-1/1 |unicast-6   |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
|ethernet-1/1 |unicast-7   |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
+-------------+------------+------+-------+--------+-------+-------+-------+-------+-------+--------+

Display LAG interface queue statistics

# info from state qos interfaces interface lag1 output queues queue * queue-statistics aggregate-statistics | filter fields * | as table
+-------------+------------+------+-------+--------+-------+-------+-------+-------+-------+--------+
| Interface   | Queue      |Last- |Transm |Transm  |Droppe |Droppe |Egq-dr |Egq-dr |Queue- |Queue-  |
|             |            |clear |itted- |itted-  |d-pack |d-     |opped- |opped- |depth  |depth   |
|             |            |      |packet |octets  |ets    |octets |packet |octets |last-  |high-t  |
|             |            |      |s      |        |       |       |s      |       |high-t |hresho  |
|             |            |      |       |        |       |       |       |       |hresho |ld-     |
|             |            |      |       |        |       |       |       |       |ld-    |bytes   |
|             |            |      |       |        |       |       |       |       |time   |        |
+=============+============+======+=======+========+=======+=======+=======+=======+=======+========+
+-------------+------------+------+-------+--------+-------+-------+-------+-------+-------+--------+
+=============+============+======+=======+========+=======+=======+=======+=======+=======+========+
| lag1        |multicast-0 |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
| lag1        |multicast-1 |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
| lag1        |multicast-2 |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
| lag1        |multicast-3 |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
| lag1        |multicast-4 |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
| lag1        |multicast-5 |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
| lag1        |multicast-6 |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
| lag1        |multicast-7 |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
| lag1        |unicast-0   |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
| lag1        |unicast-1   |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
| lag1        |unicast-2   |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
| lag1        |unicast-3   |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
| lag1        |unicast-4   |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
| lag1        |unicast-5   |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
| lag1        |unicast-6   |      |     5 |    340 |     0 |     0 |     0 |     0 |       |        |
| lag1        |unicast-7   |      |     0 |      0 |     0 |     0 |     0 |     0 |       |        |
+-------------+------------+------+-------+--------+-------+-------+-------+-------+-------+--------+

Display LAG member queue statistics (truncated output)

# info from state qos interfaces interface lag1 output queues queue * queue-statistics per-lag-member-statistics member-interface ethernet-1/3 | filter fields * | as table
+---------------+---------------+---------------+---------------+---------------+---------------+
|   Interface   |     Queue     |    Member-    |  Last-clear   | Transmitted-  | Transmitted-  |
|               |               |  interface-   |               |    packets    |    octets     |
|               |               |     name      |               |               |               |
|               |               |               |               |               |               |
+===============+===============+===============+===============+===============+===============+
| lag1          | multicast-0   | ethernet-1/3  |               |             0 |             0 |
| lag1          | multicast-1   | ethernet-1/3  |               |             0 |             0 |
| lag1          | multicast-2   | ethernet-1/3  |               |             0 |             0 |
| lag1          | multicast-3   | ethernet-1/3  |               |             0 |             0 |
| lag1          | multicast-4   | ethernet-1/3  |               |             0 |             0 |
| lag1          | multicast-5   | ethernet-1/3  |               |             0 |             0 |
| lag1          | multicast-6   | ethernet-1/3  |               |             0 |             0 |
| lag1          | multicast-7   | ethernet-1/3  |               |             0 |             0 |
| lag1          | unicast-0     | ethernet-1/3  |               |             0 |             0 |
| lag1          | unicast-1     | ethernet-1/3  |               |             0 |             0 |
| lag1          | unicast-2     | ethernet-1/3  |               |             0 |             0 |
| lag1          | unicast-3     | ethernet-1/3  |               |             0 |             0 |
| lag1          | unicast-4     | ethernet-1/3  |               |             0 |             0 |
| lag1          | unicast-5     | ethernet-1/3  |               |             0 |             0 |
| lag1          | unicast-6     | ethernet-1/3  |               |             5 |           340 |
| lag1          | unicast-7     | ethernet-1/3  |               |             0 |             0 |
+---------------+---------------+---------------+---------------+---------------+---------------+

Clearing QoS statistics

To reset the queue statistics counters for an interface, use the tools interface qos output queue-statistics clear command.

Reset all statistics counters on an interface

The following example resets all output queue statistics counters on an interface:

--{ running }--[  ]--
# tools qos interfaces interface ethernet-1/1 output queues clear-statistics

Reset statistics counters for multicast egress queue

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

--{ running }--[  ]--
# tools qos interfaces interface ethernet-1/1 output queues queue multicast-queue-1 queue-statistics 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

To display QoS profile resource usage on a 7250 IXR system, use the info from state command.

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
                    }
                }
            }
        }
    }