Skip to content

Commit da9f789

Browse files
Update aggregate_voq_counters.md
1 parent a2f2367 commit da9f789

1 file changed

Lines changed: 117 additions & 12 deletions

File tree

doc/voq/aggregate_voq_counters.md

Lines changed: 117 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ Aggretation happens for every system port.
8686
Figure 2: Aggregation of VOQ stats
8787
![Aggregation of VOQ Stats](images/voq_cli.png "Figure 2: Aggregation of VOQ Stats")
8888

89+
90+
8991
#### gNMI changes
9092
New virtual paths will be introduced to retrieve VOQ counters from linecard and aggregated VOQ counter stats from supervisor
9193

@@ -98,13 +100,79 @@ New virtual paths will be introduced to retrieve VOQ counters from linecard and
98100

99101
Note: For the sake of uniformity the virtual path for supervisor says target as `COUNTERS_DB` and table as `COUNTERS` but it will be internally mapped to `CHASSIS_COUNTERS_DB` and `COUNTERS_VOQ`.
100102

103+
##### Output from linecard
104+
105+
```
106+
admin@FSI $ gnmi_get -target_addr <FSI>:<PORT> …… -xpath_target COUNTERS_DB -xpath “/COUNTERS/asic0/Linecard4|asic0|Ethernet0/Voq”
107+
108+
== getResponse:
109+
notification: <
110+
………
111+
val: <
112+
json_ietf_val: {
113+
"Linecard4|asic0|Ethernet0:0”: {
114+
"SAI_QUEUE_STAT_BYTES”:4382,
115+
“SAI_QUEUE_STAT_PACKETS”:98,
116+
"SAI_QUEUE_STAT_CREDIT_WD_DELETED_PACKETS":0,
117+
“SAI_QUEUE_STAT_DROPPED_BYTES":0,
118+
"SAI_QUEUE_STAT_DROPPED_PACKETS":0},
119+
"Linecard4|asic0|Ethernet0:1":{
120+
"SAI_QUEUE_STAT_BYTES":8050,
121+
“SAI_QUEUE_STAT_PACKETS”:161,
122+
“SAI_QUEUE_STAT_CREDIT_WD_DELETED_PACKETS":0,
123+
"SAI_QUEUE_STAT_DROPPED_BYTES":0,
124+
“SAI_QUEUE_STAT_DROPPED_PACKETS":0},
125+
…………
126+
…………
127+
"Linecard4|asic0|Ethernet0:7":{
128+
"SAI_QUEUE_STAT_BYTES":32961,
129+
“SAI_QUEUE_STAT_PACKETS”:129,
130+
"SAI_QUEUE_STAT_CREDIT_WD_DELETED_PACKETS":0,
131+
"SAI_QUEUE_STAT_DROPPED_BYTES":0,
132+
"SAI_QUEUE_STAT_DROPPED_PACKETS":0}}"
133+
>
134+
135+
```
136+
137+
##### Output from supervisor
138+
```
139+
admin@SSI $ gnmi_get -target_addr <SSI>:<PORT> …… -xpath_target COUNTERS_DB -xpath “/COUNTERS/Linecard4|asic0|Ethernet0/Voq”
140+
141+
== getResponse:
142+
notification: <
143+
………
144+
val: <
145+
json_ietf_val: {
146+
"Linecard4|asic0|Ethernet0:0”: {
147+
"SAI_QUEUE_STAT_BYTES”:340650,
148+
“SAI_QUEUE_STAT_PACKETS”:6813,
149+
"SAI_QUEUE_STAT_CREDIT_WD_DELETED_PACKETS":0,
150+
“SAI_QUEUE_STAT_DROPPED_BYTES":0,
151+
"SAI_QUEUE_STAT_DROPPED_PACKETS":0},
152+
"Linecard4|asic0|Ethernet0:1":{
153+
"SAI_QUEUE_STAT_BYTES":8050,
154+
“SAI_QUEUE_STAT_PACKETS”:161,
155+
“SAI_QUEUE_STAT_CREDIT_WD_DELETED_PACKETS":0,
156+
"SAI_QUEUE_STAT_DROPPED_BYTES":0,
157+
“SAI_QUEUE_STAT_DROPPED_PACKETS":0},
158+
…………
159+
…………
160+
"Linecard4|asic0|Ethernet0:7":{
161+
"SAI_QUEUE_STAT_BYTES":42468,
162+
“SAI_QUEUE_STAT_PACKETS”:149,
163+
"SAI_QUEUE_STAT_CREDIT_WD_DELETED_PACKETS":0,
164+
"SAI_QUEUE_STAT_DROPPED_BYTES":0,
165+
"SAI_QUEUE_STAT_DROPPED_PACKETS":0}}"
166+
>
167+
168+
```
169+
101170
#### Repositories that need to be changed
102171
* sonic-buildimage
103172
* sonic-swss-common
104173
* sonic-swss
105174
* sonic-utilities
106175
* sonic-gnmi
107-
* sonic-mgmt
108176

109177
### SAI API
110178
No new SAI API is being added.
@@ -114,18 +182,55 @@ No new SAI API is being added.
114182
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.
115183

116184
$ show VOQ counters [interface] --voq
185+
186+
From linecard - nfc404-3 (existing CLI)
187+
188+
```
189+
admin@nfc404-3:~$ show queue counters "nfc404-3|Asic0|Ethernet4" --voq
190+
Port Voq Counter/pkts Counter/bytes Drop/pkts Drop/bytes
191+
------------------------ ----- -------------- --------------- ----------- ------------
192+
nfc404-3|Asic0|Ethernet4 VOQ0 45 12386 0 0
193+
nfc404-3|Asic0|Ethernet4 VOQ1 0 0 0 0
194+
nfc404-3|Asic0|Ethernet4 VOQ2 204 10200 0 0
195+
nfc404-3|Asic0|Ethernet4 VOQ3 0 0 0 0
196+
nfc404-3|Asic0|Ethernet4 VOQ4 21 1050 0 0
197+
nfc404-3|Asic0|Ethernet4 VOQ5 0 0 0 0
198+
nfc404-3|Asic0|Ethernet4 VOQ6 29 1450 0 0
199+
nfc404-3|Asic0|Ethernet4 VOQ7 0 0 0 0
200+
201+
```
202+
203+
204+
From linecard - nfc408-8 (existing CLI)
117205
```
118-
admin@cmp217:~$ show queue counters "cmp217-5|asic0|Ethernet24" --voq
119-
Port Voq Counter/pkts Counter/bytes Drop/pkts Drop/bytes Credit-WD-Del/pkts
120-
------------------------- ----- -------------- --------------- ----------- ------------ --------------------
121-
cmp217-5|asic0|Ethernet24 VOQ0 54 2700 0 0 0
122-
cmp217-5|asic0|Ethernet24 VOQ1 51 2550 0 0 0
123-
cmp217-5|asic0|Ethernet24 VOQ2 4 200 0 0 0
124-
cmp217-5|asic0|Ethernet24 VOQ3 45 2250 0 0 0
125-
cmp217-5|asic0|Ethernet24 VOQ4 7 350 0 0 0
126-
cmp217-5|asic0|Ethernet24 VOQ5 16 800 0 0 0
127-
cmp217-5|asic0|Ethernet24 VOQ6 23 1150 0 0 0
128-
cmp217-5|asic0|Ethernet24 VOQ7 47 13792 0 0 0
206+
admin@nfc404-8:~$ show queue counters "nfc404-3|Asic0|Ethernet4" --voq
207+
Port Voq Counter/pkts Counter/bytes Drop/pkts Drop/bytes
208+
------------------------ ----- -------------- --------------- ----------- ------------
209+
nfc404-3|Asic0|Ethernet4 VOQ0 0 0 0 0
210+
nfc404-3|Asic0|Ethernet4 VOQ1 1 50 0 0
211+
nfc404-3|Asic0|Ethernet4 VOQ2 51 2550 0 0
212+
nfc404-3|Asic0|Ethernet4 VOQ3 0 0 0 0
213+
nfc404-3|Asic0|Ethernet4 VOQ4 16 800 0 0
214+
nfc404-3|Asic0|Ethernet4 VOQ5 0 0 0 0
215+
nfc404-3|Asic0|Ethernet4 VOQ6 143 7150 0 0
216+
nfc404-3|Asic0|Ethernet4 VOQ7 0 0 0 0
217+
```
218+
219+
From supervisor (same command extended for sup.)
220+
221+
```
222+
admin@nfc404:~$ show queue counters "nfc404-3|Asic0|Ethernet4" --voq
223+
Port Voq Counter/pkts Counter/bytes Drop/pkts Drop/bytes
224+
------------------------ ----- -------------- --------------- ----------- ------------
225+
nfc404-3|Asic0|Ethernet4 VOQ0 45 12386 0 0
226+
nfc404-3|Asic0|Ethernet4 VOQ1 1 50 0 0
227+
nfc404-3|Asic0|Ethernet4 VOQ2 255 12750 0 0
228+
nfc404-3|Asic0|Ethernet4 VOQ3 0 0 0 0
229+
nfc404-3|Asic0|Ethernet4 VOQ4 37 1850 0 0
230+
nfc404-3|Asic0|Ethernet4 VOQ5 0 0 0 0
231+
nfc404-3|Asic0|Ethernet4 VOQ6 172 8600 0 0
232+
nfc404-3|Asic0|Ethernet4 VOQ7 0 0 0 0
233+
129234
```
130235

131236
### Testing Requirements/Design

0 commit comments

Comments
 (0)