Striking the Right Balance: ECN and PFC Thresholds for AI Clusters

· Source: Microsoft Foundry Blog articles · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Cloud Computing & IT Infrastructure · Depth: Advanced, long

Summary

Microsoft Foundry Blog, on May 22, 2026, details critical best practices for configuring Explicit Congestion Notification (ECN) and Priority Flow Control (PFC) thresholds in RoCEv2-based AI training clusters. The article emphasizes that ECN must proactively signal congestion before PFC reactively pauses traffic to maintain high GPU utilization and low job completion times. Overly aggressive tuning, where PFC triggers before ECN, can cause severe performance issues like pause storms, throughput collapse, rate oscillation, and "ghost" tail latency spikes. A recommended strategy for 100 Gbps links involves setting ECN marking to start around 150 KB and ramp to 100% by 3,000 KB, with PFC Xoff at approximately 3,100 KB, ensuring ECN acts as the primary congestion control and PFC as a last resort.

Key takeaway

For MLOps Engineers optimizing AI cluster network performance, correctly balancing ECN and PFC thresholds is crucial. You should configure ECN to proactively manage congestion with a generous marking range (e.g., 150 KB to 3,000 KB) before PFC's reactive pause (e.g., Xoff at 3,100 KB) engages. Failing to prioritize ECN can lead to performance degradation, including pause storms and high tail latencies, directly impacting GPU utilization and job completion times. Validate your setup by monitoring PFC frames and ECN marks.

Key insights

ECN must proactively manage congestion before PFC reactively pauses traffic in AI clusters.

Principles

Method

Configure ECN marking to start at moderate queue occupancy (e.g., 150 KB) and ramp to full (e.g., 3,000 KB) before PFC Xoff (e.g., 3,100 KB) engages as a last resort.

In practice

Topics

Best for: AI Architect, MLOps Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Microsoft Foundry Blog articles.