# Queue Depth Always 0 in My INT Implementation

**URL:** <https://forum.p4.org/t/queue-depth-always-0-in-my-int-implementation/1269>\
**Category:** Getting Started with P4\
**Created:** [March 5, 2025, 8:21am UTC](https://forum.p4.org/t/queue-depth-always-0-in-my-int-implementation/1269 "2025-03-05T08:21:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NNy1671](https://avatars.discourse-cdn.com/v4/letter/n/d9b06d/32.png) [@NNy1671](https://forum.p4.org/u/NNy1671)\
**Post date:** [March 5, 2025, 8:21am UTC](https://forum.p4.org/t/queue-depth-always-0-in-my-int-implementation/1269/1 "2025-03-05T08:21:32Z")

</div>

I am working on an In-band Network Telemetry (INT) project using P4. However, I noticed that the queue depth in my INT metadata is always reported as **0** , regardless of the network load. I have tried change the sleep from 1 to 0.000001, but the qdepth is still always 0.

#### **Questions:**

- What could be the reason that queue depth is always 0?
- Is there any specific configuration required in BMv2 (or hardware target) to enable queue depth measurement?
- How can I debug queue occupancy in BMv2 to verify if packets are actually queued?

---

<div class="post-metadata">

**Author:** ![Faris](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.p4.org/faris/32/134_2.png) [@Faris](https://forum.p4.org/u/Faris)\
**Post date:** [March 7, 2025, 12:53pm UTC](https://forum.p4.org/t/queue-depth-always-0-in-my-int-implementation/1269/2 "2025-03-07T12:53:59Z")

</div>

for bmv2 you need to set queue depth and queue rate from the simple\_switch\_CLI  
please have a look at this page:

> <https://github.com/p4lang/behavioral-model/blob/main/docs/runtime_CLI.md>

and look for set\_queue\_depth and set\_queue\_rate commands

after you do so, your packet rate should be higher than the value you set for set\_queue\_rate for packets to start queuing
