DCQCN (Data Center Quantized Congestion Notification) is a rate-based congestion control algorithm that combines Explicit Congestion Notification (ECN) marking with Priority Flow Control (PFC) to manage traffic in RoCE networks. It operates by having network switches mark packets when queue occupancy exceeds a threshold, prompting receivers to signal senders to reduce their injection rates before buffer overflows occur.
Glossary
DCQCN

What is DCQCN?
DCQCN is a congestion control algorithm specifically designed for RDMA over Converged Ethernet (RoCE) networks to prevent packet loss in loss-sensitive GPU cluster fabrics.
Developed collaboratively by Microsoft and Mellanox, DCQCN addresses the fundamental tension in lossless Ethernet fabrics: PFC prevents packet loss but can cause congestion trees, while ECN alone reacts too slowly. The algorithm uses a Reaction Point (RP) at the sender and a Congestion Point (CP) at the switch, with the receiver acting as a Notification Point (NP) to relay congestion feedback, enabling sub-microsecond response to incipient congestion.
Key Characteristics of DCQCN
DCQCN is a rate-based congestion control algorithm purpose-built for RDMA over Converged Ethernet (RoCEv2). It integrates Explicit Congestion Notification (ECN) for end-to-end signaling with Priority Flow Control (PFC) for hop-by-hop loss prevention, creating a hybrid scheme that maintains the lossless fabric required by RDMA in modern GPU clusters.
Hybrid ECN and PFC Architecture
DCQCN operates as a dual-layer defense against packet loss. The primary mechanism relies on Explicit Congestion Notification (ECN) marking from switches to signal incipient congestion to the end hosts. When a switch queue depth exceeds a configured threshold, it marks IP packets. The receiver reflects this marking back to the sender, which adjusts its injection rate using a multiplicative decrease algorithm. Priority Flow Control (PFC) acts as a safety net: if congestion builds too rapidly for ECN to react, PFC pauses the upstream link to prevent buffer overflow and packet drop. This hybrid design prevents the PFC deadlock and congestion spreading issues that plague PFC-only networks.
Rate-Based Sender Algorithm
The DCQCN reaction point resides entirely on the sender NIC. It maintains a current sending rate and adjusts it based on Congestion Notification Packets (CNPs) received from the destination. The algorithm uses three key parameters:
- R_AI (Rate Increase): Additive increment applied when no congestion is detected
- R_GD (Rate Decrease): Multiplicative factor for fast recovery during congestion
- Alpha: A per-flow variable tracking the fraction of marked packets, updated using exponential weighted moving average
When a CNP arrives, the rate is reduced multiplicatively (R = R * (1 - R_GD/2)). During recovery without CNPs, the rate increases additively in a fast recovery phase before transitioning to a slower additive increase.
Congestion Notification Packet (CNP) Flow
The CNP mechanism forms the closed-loop feedback system:
- Switch Detection: An ECN-capable switch marks the ECN bits in the IP header when its egress queue exceeds the Kmin threshold
- Receiver Reflection: The destination NIC, upon receiving an ECN-marked packet, generates a CNP and sends it back to the source
- Rate Adjustment: The sender processes the CNP and immediately reduces its current rate
To prevent CNP storms, the receiver enforces a CNP generation rate limit, typically one CNP per 50 microseconds per flow. This ensures the feedback channel does not itself become a source of congestion.
ECN Marking Thresholds (Kmin, Kmax, Pmax)
Switch-side ECN configuration is critical to DCQCN performance. Three parameters define the marking probability curve:
- Kmin: The queue depth below which no packets are marked. Sets the target operating point for low latency
- Kmax: The queue depth above which all packets are marked with 100% probability
- Pmax: The maximum marking probability applied between Kmin and Kmax
The marking probability increases linearly from 0 at Kmin to Pmax at Kmax. Proper tuning of these thresholds balances throughput and tail latency. Kmin is typically set to cover the bandwidth-delay product of the network to absorb transient bursts without triggering unnecessary rate reductions.
PFC Deadlock Prevention
A key innovation of DCQCN is its mitigation of PFC-induced pathologies. Pure PFC networks suffer from congestion spreading, where a single congested port triggers backpressure that cascades through the network, and PFC deadlock, where circular buffer dependencies cause permanent stalls. DCQCN addresses these by:
- Using ECN as the primary congestion signal, triggering rate reduction before PFC activates
- Configuring PFC thresholds significantly higher than ECN thresholds, so PFC engages only as a last resort
- Limiting PFC pause duration to prevent indefinite head-of-line blocking
This layered approach ensures that PFC acts as a safety valve rather than the primary control mechanism.
DCQCN in GPU Cluster Fabrics
DCQCN is the default congestion control scheme in NVIDIA Mellanox ConnectX adapters for RoCEv2 deployments and is widely adopted in AI training clusters. Its design aligns with the traffic patterns of distributed training:
- All-reduce bursts: Synchronous gradient aggregation creates periodic, high-bandwidth incast patterns that DCQCN's fast reaction time handles effectively
- Elephant flows: Large parameter server updates benefit from the additive increase phase achieving full link utilization
- Loss sensitivity: RDMA operations abort on packet loss; DCQCN's lossless guarantee prevents expensive retransmission and connection teardown
Properly tuned DCQCN enables GPU clusters to achieve line-rate throughput on 200Gb/s and 400Gb/s fabrics while maintaining microsecond-scale tail latency.
DCQCN vs. Other Congestion Control Mechanisms
A technical comparison of DCQCN against alternative congestion control algorithms used in RDMA over Converged Ethernet (RoCE) fabrics for GPU cluster interconnects.
| Feature | DCQCN | PFC (IEEE 802.1Qbb) | Timely |
|---|---|---|---|
Congestion Detection Method | ECN marking on switches | Queue depth threshold on switch ports | Round-trip time (RTT) measurement at NIC |
Reaction Mechanism | Rate throttling via RP algorithm at sender | Pause frames sent to upstream device | Rate adjustment based on RTT gradient |
Granularity of Control | Per-flow rate adjustment | Per-priority flow control (8 priorities) | Per-flow rate adjustment |
Head-of-Line Blocking Prevention | |||
Congestion Spreading Risk | Low (early ECN marking) | High (cascading pause frames) | Low (preemptive RTT detection) |
Requires Switch Support | |||
Packet Loss Under Extreme Congestion | < 0.001% | 0% (prevents loss entirely) | < 0.01% |
Deployment Complexity | Moderate (switch ECN config + NIC tuning) | Low (switch-only configuration) | High (NIC-side RTT measurement + tuning) |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Frequently Asked Questions
Clear answers to the most common technical questions about Data Center Quantized Congestion Notification, the critical congestion control algorithm that prevents packet loss in RDMA over Converged Ethernet (RoCEv2) fabrics for GPU clusters.
Data Center Quantized Congestion Notification (DCQCN) is a congestion control algorithm specifically designed for RDMA over Converged Ethernet (RoCEv2) networks. It prevents packet loss in lossless Ethernet fabrics by combining two mechanisms: Explicit Congestion Notification (ECN) for end-to-end rate adjustment and Priority Flow Control (PFC) as a last-resort safety net. When a switch buffer exceeds a configured threshold, it marks packets with an ECN flag. The receiving Reaction Point (RP) relays this congestion information back to the sender, which then reduces its injection rate using a multiplicative decrease algorithm. The sender subsequently recovers its rate through a fast recovery phase followed by additive increase. This multi-stage approach avoids the catastrophic throughput collapse that occurs when PFC triggers indiscriminate pause frames across the network, maintaining high utilization while protecting the lossless fabric from buffer overflow.
Related Terms
DCQCN operates within a broader ecosystem of high-performance networking and congestion management technologies. These related concepts are essential for understanding how lossless RDMA fabrics are built and maintained in GPU clusters.
Priority Flow Control (PFC)
A link-layer flow control mechanism defined by IEEE 802.1Qbb that prevents packet loss by pausing traffic on a per-priority basis. DCQCN relies on PFC as a last-resort safety net when ECN-based rate reduction is insufficient.
- Operates at the Ethernet hop-by-hop level
- Creates 8 virtual lanes with independent pause control
- Misconfiguration can cause head-of-line blocking and congestion spreading
- PFC pause frames are triggered when ingress buffers exceed a configured threshold
PFC is the reactive counterpart to DCQCN's proactive ECN-based rate adjustment.
Explicit Congestion Notification (ECN)
A TCP/IP extension defined in RFC 3168 that marks packets instead of dropping them when congestion is detected. DCQCN uses ECN as its primary congestion signal to trigger rate reduction at the sender before queues overflow.
- Switches set the Congestion Experienced (CE) codepoint in IP headers
- Receivers relay ECN marks back to senders via Congestion Notification Packets (CNPs)
- Enables proactive congestion control rather than reactive packet loss
- Requires end-to-end support across all switches and NICs in the fabric
Quantized Congestion Notification (QCN)
The IEEE 802.1Qau standard that serves as DCQCN's algorithmic foundation. QCN defines a congestion control framework for Layer 2 Ethernet using a sampling-based feedback loop between congestion points and reaction points.
- Uses probabilistic sampling to avoid feedback implosion
- Reaction point adjusts rate using a multiplicative decrease, additive increase algorithm
- DCQCN extends QCN concepts to Layer 3 RDMA environments
- Defines the Congestion Point (CP) and Reaction Point (RP) architecture
RoCE v2
RDMA over Converged Ethernet version 2 encapsulates RDMA transport in UDP/IP packets, enabling RDMA over routable IP networks. DCQCN is the de facto congestion control algorithm for RoCE v2 fabrics.
- Uses UDP port 4791 for RDMA transport
- Requires a lossless Ethernet fabric — the exact problem DCQCN solves
- Enables RDMA across Layer 3 boundaries unlike RoCE v1
- Widely deployed in NVIDIA Spectrum and Cisco Nexus switch ecosystems
Without DCQCN, RoCE v2 fabrics experience severe throughput collapse under congestion.
Data Center TCP (DCTCP)
A TCP congestion control variant developed by Microsoft Research that leverages ECN for fine-grained rate adjustment in data center networks. DCTCP's ECN-based approach directly influenced DCQCN's design.
- Uses instantaneous ECN marking fraction rather than binary signals
- Maintains high throughput while keeping switch buffer occupancy low
- Defined in RFC 8257 as an experimental standard
- DCQCN adapts DCTCP's ECN feedback loop for RDMA's unique requirements
DCTCP demonstrated that ECN-based control could achieve both low latency and high utilization — a principle DCQCN extends to lossless fabrics.
Data Center Bridging (DCB)
A suite of IEEE 802.1 standards that enhance Ethernet for converged storage and compute fabrics. DCB provides the lossless transport foundation upon which DCQCN operates.
- PFC (802.1Qbb): Priority-based flow control
- ETS (802.1Qaz): Enhanced Transmission Selection for bandwidth allocation
- DCBX (802.1Qaz): Data Center Bridging eXchange protocol for auto-negotiation
- DCQCN is the Layer 3/4 complement to DCB's Layer 2 guarantees
DCB prevents packet loss at the link level; DCQCN prevents congestion from developing in the first place.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us