Azure Local - Explicit Congestion Notification

July 25, 2025 ยท View on GitHub

Explicit Congestion Notification (ECN) is a network congestion management mechanism that enables switches and routers to signal congestion without dropping packets. In Azure Local QoS implementations, ECN is specifically configured for storage (RDMA) traffic to maintain lossless transport while providing congestion feedback to endpoints.

How ECN Works in Azure Local QoS

When implemented with WRED (Weighted Random Early Detection) in the QoS policy, ECN allows switches to mark packets instead of dropping them when queue thresholds are reached. For storage traffic (CoS 3), this is critical because RDMA requires lossless transport. The switch marks packets with congestion information, allowing the sending host to reduce its transmission rate and prevent further congestion, all while maintaining the lossless nature required for storage workloads.

This mechanism is particularly important in Azure Local environments where storage traffic must be protected from packet loss while still providing congestion control. The ECN marking occurs in the IP header's DSCP field using specific codepoints that communicate congestion status between network devices and endpoints.

An example of ECN packet codes

ECN FieldsDescriptionCodepoints
0x00Non ECN-Capable TransportNot-ECT
0x10ECN-Capable TransportECT(0)
0x01ECN-Capable TransportECT(1)
0x11Congestion EncounteredCE

Note

ECT(0) and ECT(1) are equivalent and indicate that the transport protocol supports ECN.

Packet Capture showing ECN fields packet capture showing ECN values

Reference