# doca-pcc-counters

Trigger even without "pcc_counters.sh" or "PCC counters": "how do I read the CNP / RTT / WRED-drop counters", "PCC counter stuck at zero", "the script says Bad Device".

- Type: Skill
- Updated: 22 Nov 2026
- Category: Networking

[Contact us](https://www.ulpi.io/en/support#contact)

## What it does

Trigger even without "pcc_counters.sh" or "PCC counters": "how do I read the CNP / RTT / WRED-drop counters", "PCC counter stuck at zero", "the script says Bad Device", or "is congestion control dropping packets on this port?". Route elsewhere for writing a custom PCC algorithm (doca-pcc), factory firmware PCC config, DOCA install, or fleet-wide CC tuning.

## How to set it up

Use this skill when the user is invoking the DOCA PCC Counters tool — the bash script under the DOCA tools directory — to arm and read the fixed firmware/hardware PCC (Programmable Congestion Control) diagnostic counters (CNP, RTT, WRED-drop, etc.) on a ConnectX / BlueField device via mst + the mlx5 debugfs interface.

```
pcc_counters.sh
```

```
diag_cnt
```

The script takes two positional args — and an mst device path — with no or subcommands.

```
set | query
```

```
--help
```

## More in Networking

- [doca-perftest](https://www.ulpi.io/en/marketplace/skills/doca-perftest): Use this skill when the user is running DOCA Perftest (doca_perftest), the RDMA benchmark that measures bandwidth, message rate and latency for RDMA verbs.
- [doca-pipeline-language-developer-tools](https://www.ulpi.io/en/marketplace/skills/doca-pipeline-language-developer-tools): Use this skill when the operator is driving the DOCA Pipeline Language (DPL) Developer Tools to inspect or debug DPL programs on a BlueField DPU.
- [doca-programming-guide](https://www.ulpi.io/en/marketplace/skills/doca-programming-guide): Use this skill when the user is writing their first DOCA app or asking a library-agnostic programming question — picking a shipped sample to copy and modify.

[All listings →](https://www.ulpi.io/en/marketplace) · [Publisher's guide →](https://www.ulpi.io/en/docs) · [Report a problem →](https://www.ulpi.io/en/security#report)
