Skip to content

ECN

📝 Short definition

Network mechanism (RFC 3168) that marks packets when congestion is imminent, letting the sender slow down before packets are dropped.

📖 Detailed definition

When a switch detects congestion (filling buffers), it marks packets with an ECN-CE bit. The receiver sends a CNP (Congestion Notification Packet) to the sender, which reduces injection rate. That avoids packet loss without relying on PFC alone.

On RoCE networks, ECN is combined with PFC via DCQCN (Data Center Quantized Congestion Notification, from Microsoft and NVIDIA) for finer congestion control.

💡 Why it matters for on-prem AI

Complements PFC by managing congestion proactively rather than reactively. A production-ready RoCE network should enable PFC + ECN/DCQCN on all gear.

⚠️ Common pitfalls

  • ECN alone is not enough: without PFC to absorb bursts, packets can still be lost.
  • DCQCN parameters (Kmin, Kmax, timer thresholds) must be tuned for link speed and cluster size — defaults are not tuned for AI workloads.

🔗 See also

Give my opinion

Everything is optional: one answer is enough. This site sends nothing: you send it, the way you choose.

Your noteNo note
Your opinion is about
About what? (several choices possible)
What will be sent
Send by e-mail

Private, no account: opens your mail program with the message ready, for ia-on-prem@damien.becherini.fr.

Open a GitHub issue ↗

Public, with a GitHub account. You read the issue again before you publish it.

To paste it wherever you want.

Give at least a note, a subject or a message to be able to send.