Sharing of VOQ statistics counters
Sharing of Virtual Output Queue (VOQ) counters is a congestion optimization technique that
-
reduces the counter consumption required to monitor enqueued and dropped packets across VOQs and,
-
allows multiple VOQs to share a set of counters, thus conserving hardware counter resources.
Key attributes of sharing VOQ statistics counters
-
Each VOQ group that shares counters reports both enqueued and dropped packets (in packets and bytes).
-
Sharing options include 1 (no sharing), 2, 4, or 8 VOQs per counter set.
-
Sharing VOQ counters enables scalability in large-scale deployments by mitigating device counter capacity limits
Guidelines for configuring VOQ counter sharing
Configure VOQ counter sharing before applying egress policies
To conserve VOQ counter resources and prevent counter exhaustion, configure VOQ counter sharing (using hw-module profile stats voqs-sharing-counters ) before applying any egress queuing policy.
If you do not configure VOQ counter sharing first, the egress queuing policies may use default or previously set counter-sharing configurations, which could exceed hardware limits or misrepresent queue statistics.
Delete all existing egress queuing policies and reload all nodes (using router#reload location all ) to apply the new shared counter configuration successfully.
Shared VOQ counter modes
Configure shared VOQ counters
Before you begin
-
Ensure no egress queuing policy is applied on any interface.
-
Prepare to reload all nodes
Procedure
|
Step 1 |
Choose one of the available options (1, 2, or 4) based on your needs for granularity versus counter resource conservation. Example:
|
|
Step 2 |
Reload all nodes on your router. This step is required for the configuration to take effect. Example:
This example sets the mode where 2 VOQs share counters. |
|
Step 3 |
Verify the VOQ statistics. Example:
|
Feedback