Skip to content

Commit 9621b03

Browse files
Update aggregate_voq_counters.md
1 parent e0f1129 commit 9621b03

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

doc/voq/aggregate_voq_counters.md

+22-20
Original file line numberDiff line numberDiff line change
@@ -47,42 +47,44 @@ Figure 2: Aggregation of VOQ stats
4747
#### CHASSIS_APP_DB Changes
4848

4949
The following new VOQ counters should be available for each VOQ entry in the DB:
50-
* COUNTERS|fsi_id|asic_id|intf:VOQ_index
51-
* SAI_VOQ_STAT_PACKETS
52-
* SAI_VOQ_STAT_BYTES
53-
* SAI_VOQ_STAT_DROPPED_PACKETS
54-
* SAI_VOQ_STAT_DROPPED_BYTES
50+
* `COUNTERS|fsi_id|asic_id|intf@fsi_id|asic_id:VOQ_index`
51+
* `SAI_VOQ_STAT_PACKETS`
52+
* `SAI_VOQ_STAT_BYTES`
53+
* `SAI_VOQ_STAT_DROPPED_PACKETS`
54+
* `SAI_VOQ_STAT_DROPPED_BYTES`
55+
* The first part of the key ( before @ ) `fsi_id|asic_id|intf` denotes the physical location of the interface.
56+
* The second part of the key ( after @ ) `fsi_id|asic_id:VOQ_index` denotes the location of the VOQ and its index.
5557

5658
#### SWSS Changes
5759
##### PortsOrch Changes
5860
PortsOrch will periodically poll the VOQ stats through SAI call `get_queue_stats` and update them into `CHASSIS_APP_DB`
5961

6062
#### Repositories that need to be changed
61-
* sonic-swss
62-
* sonic-swss-common
63-
* sonic-utilities
63+
* sonic-swss-common: https://github.com/sonic-net/sonic-swss-common/pull/855
64+
* sonic-swss: https://github.com/sonic-net/sonic-swss/pull/3047
65+
* sonic-utilities: https://github.com/sonic-net/sonic-utilities/pull/3163
6466
* sonic-mgmt
6567

6668
### SAI API
6769
No new SAI API is being added. PortsOrch will use the existing SAI API i.e. `get_queue_stats`.
6870

6971
### Configuration and management
7072
#### CLI
71-
CLI (VOQstat.py) aggregates the VOQ stats for a VOQ across ASICS and present a consolidated view. No new CLI command is being introduced for this rather the following CLI command is leveraged to provide this output on an SSI.
73+
CLI (queuestat.py) aggregates the VOQ stats for a VOQ across ASICS and present a consolidated view. No new CLI command is being introduced for this rather the following CLI command is leveraged to provide this output on an SSI.
7274

7375
$ show VOQ counters [interface] --voq
7476
```
75-
admin@cmp217:~$ show VOQ counters Ethernet24 --voq
76-
Port Voq Counter/pkts Counter/bytes Drop/pkts Drop/bytes
77-
---------- ----- -------------- --------------- ----------- ------------
78-
Ethernet24 VOQ0 4 528 0 0
79-
Ethernet24 VOQ1 0 0 0 0
80-
Ethernet24 VOQ2 0 0 0 0
81-
Ethernet24 VOQ3 0 0 0 0
82-
Ethernet24 VOQ4 0 0 0 0
83-
Ethernet24 VOQ5 0 0 0 0
84-
Ethernet24 VOQ6 0 0 0 0
85-
Ethernet24 VOQ7 0 0 0 0
77+
admin@nfc404:~$ show queue counters "nfc404-3|Asic0|Ethernet4" --voq
78+
Port Voq Counter/pkts Counter/bytes Drop/pkts Drop/bytes
79+
------------------------ ----- -------------- --------------- ----------- ------------
80+
nfc404-3|Asic0|Ethernet4 VOQ0 45 12386 0 0
81+
nfc404-3|Asic0|Ethernet4 VOQ1 1 50 0 0
82+
nfc404-3|Asic0|Ethernet4 VOQ2 255 12750 0 0
83+
nfc404-3|Asic0|Ethernet4 VOQ3 0 0 0 0
84+
nfc404-3|Asic0|Ethernet4 VOQ4 37 1850 0 0
85+
nfc404-3|Asic0|Ethernet4 VOQ5 0 0 0 0
86+
nfc404-3|Asic0|Ethernet4 VOQ6 172 8600 0 0
87+
nfc404-3|Asic0|Ethernet4 VOQ7 0 0 0 0
8688
```
8789
8890

0 commit comments

Comments
 (0)