Customize PFC X-ON Threshold and Per-Queue Alpha Values
Overview
When you configure a congestion notification profile on an ingress port, lossless traffic is mapped to lossless priority groups. You configure these priority groups with priority-based flow control (PFC) X-OFF and X-ON thresholds. In case of congestion at an egress port, these priority groups ensure that the ingress port generates the PFC frames toward the peer based on the configured thresholds. When the shared occupancy or receive buffer on an ingress priority group reaches its PFC X-OFF limit, the corresponding priority group transmits the PFC pause frame to the egress peer. The peer temporarily stops transmitting packets to give the device time to resolve the traffic congestion.
The X-ON threshold is a buffer limit that is shared by the priority group. When the buffer usage on the ingress priority group drops below this PFC X-ON limit, the priority group sends a PFC message to the peer so it can resume packet transmission. Make sure the device has enough time to resolve the congestion. You must also ensure that traffic is not paused for long enough to cause disruption to your network. To optimize the downtime during a PFC pause storm, adjust the X-ON threshold through the congestion notification profile (CNP).
You can globally adjust the limit of buffers that each queue can consume from the shared buffer pool. The shared buffer pool is based on a dynamic threshold setting called the alpha value. You can configure a scheduler with different dynamic buffer threshold values for different queues, thereby controlling the shared buffer access by individual queues.
Benefits
-
Ensure that the device has enough time to resolve traffic congestion without disrupting your network.
-
Customize device responses to PFC pause storms.
-
Globally adjust the limits of buffers for ease of configuration.
Platform Support
See Feature Explorer for platform and release support. Starting in Junos OS Evolved Release 23.4R2, this feature is supported on these platforms:
-
QFX5230-64CD
-
QFX5240-64OD
-
QFX5240-64QD
Configuration Statements
Specify the number of X-ON threshold offset cells before the peer resumes transmission from the dynamic shared buffer. The range is 0 through 100000:
set class-of-service congestion-notification-profile profile-name input dscp code-point code-point-bits pfc set class-of-service congestion-notification-profile profile-name input dscp code-point code-point-bits xon value
Configure the per-queue alpha value through a scheduler. The range of the threshold for the maximum buffer share for a queue at the egress buffer partition is 0 through 10:
set class-of-service schedulers scheduler-name buffer-dynamic-threshold value
Implementation Notes
For the congestion notification profile, map the code-point
configuration to no-loss queues.
Per-queue alpha values are not supported for lossless queues.
Verification and Troubleshooting
show class-of-service shared-buffer show class-of-service dedicated-buffer-profile show class-of-service interface interface-name