[P4-dev] Extracting queueing metadata from bmv2

Vikas Kumar mailvikasnow at gmail.com
Sat Mar 17 16:24:59 EDT 2018

Hello Everyone,

I am trying to collect switch statistics for INT from each switch. I am
successfully able to collect some metrics like ingress port,egress port,
hop latency. But for some queuing metadata like enq_qdepth and deq_qdepth I
am getting 0 value always. However these metadta are declared in v1model.p4
(https://github.com/p4lang/p4c/blob/master/p4include/v1model.p4 ). Is it
that bmv2 still does not expose these intrinsic queueing metadata mentioned
here (

action int_set_header_3() {
     hdr.int_q_occupancy.q_id = 0; //assuming there is only 1 queue

hdr.int_q_occupancy.q_occupancy =
(bit<24>) standard_metadata.deq_qdepth;
I observed that while sending burst traffic from source to destination the
hop latency changes from switch to switch but the enq_qdepth always remains

*Vikas Kumar | ** Hospitality & PR Coordinator*
*Mood Indigo, IIT Bombay*
*+91-9694532954 | mailvikasnow at gmail.com <mailvikasnow at gmail.com>*
[image: Facebook] <https://www.facebook.com/vikas.cse.iitb>

<https://mailtrack.io/> Sent with Mailtrack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20180318/8bcb1294/attachment.html>

More information about the P4-dev mailing list