Internet-Draft Domain-Local Early-Warning ECN November 2026
Hu Expires 1 June 2027 [Page]
Workgroup:
Transport Area Working Group
Internet-Draft:
draft-hu-tsvwg-ecn-early-warning-00
Updates:
6040 (if approved)
Published:
Intended Status:
Informational
Expires:
Author:
Jiayuan. Hu, Ed.
China Telecom

Domain-Local Early-Warning ECN with Congestion Event Notification for WAN

Abstract

This document defines an early-warning ECN mechanism for WAN. With the growing demand for AI computing power, the computational capacity of a single Artificial Intelligence Data Center (AIDC) can no longer meet the requirements of large-scale model training. This has led to the emergence of cross-AIDC distributed model training, driving the need for transmitting RoCEv2 packets across WANs. AI training is highly sensitive to network packet loss, where even minimal packet loss can significantly degrade training efficiency. Additionally, elephant flows and extreme concurrent traffic impose higher demands on network performance.

ECN achieves active feedback of network congestion by setting ECN flag bits in the header of IP packets, which is an effective traffic control method. RFC 6040 specifies how ECN is propagated across IP-in-IP tunnels. However, due to the much higher end-to-end delay in WAN than in DC, and the frequent occurrence of instantaneous traffic bursts in WAN, it is easy to trigger ECN at the wrong time. This document addresses these limitations with a two-threshold ECN mechanism for a single managed WAN domain: a lower threshold marks packets ECT(1) as a domain-local early-warning signal, a higher threshold marks packets CE to indicate severe congestion, and congested network devices additionally send a Congestion Event Notification (CEN) to the tunnel ingress PE for prompt in-network reaction. It updates RFC 6040 to specify a domain-local early-warning semantics for the ECT(1) codepoint within managed WAN infrastructure.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

This Internet-Draft will expire on 1 June 2027.

▲

Table of Contents

1. Introduction

The rapid growth of AI computing power, particularly for large-scale model training, has necessitated distributed training across multiple Artificial Intelligence Data Centers (AIDCs). This shift has increased the demand for reliable and high-performance transmission of RoCEv2 (RDMA over Converged Ethernet version 2) traffic over the WAN. However, AI workloads are highly sensitive to network congestion and packet loss, even minor packet drops can significantly degrade training efficiency. Due to the long links and significant end-to-end latency in wide area networks, traditional congestion control mechanisms may not be effective in a timely manner. They are insufficient for AI workloads due to their reactive nature and inability to ensure near-zero packet loss.

To address these challenges, this document explores the use of Explicit Congestion Notification (ECN) for early-warning congestion signaling in WAN environments, particularly for RoCEv2 over IP tunnels. ECN enables proactive congestion signaling by marking packets instead of dropping them, allowing endpoints to adjust transmission rates before congestion escalates. However, traditional ECN implementations face challenges in WAN scenarios, including inconsistent ECN propagation across tunnel boundaries and inefficient congestion response mechanisms. This document focuses on optimizing ECN for lossless RoCEv2 transmission in WANs by:

1. Ensuring Accurate ECN Propagation: Defining rules for consistent ECN field handling across IP-in-IP tunnels to prevent packet loss.

2. Enhancing Congestion Feedback: Adjusting the rate of individual flows at the ingress of the WAN domain, so that prompt reactions do not have to wait for end-to-end feedback across long RTTs.

3. Supporting Multi-Level Congestion Signaling: Extending ECN to differentiate between varying congestion severities, improving responsiveness for AI traffic.

By refining ECN mechanisms for WAN environments, this approach enhances network efficiency for distributed AI training while maintaining backward compatibility with existing protocols. The proposed framework provides a scalable and reliable solution for future large-scale distributed computing applications.

This document specifies the behavior of network devices within a single managed WAN domain. It does not define or modify the behavior of RoCEv2 end systems: RoCEv2 and its congestion control mechanisms are specified by the InfiniBand Trade Association, and all end-system behavior is left to those specifications.

3. Conventions Used in This Document

3.1. Requirements Language

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here. This document is an Informational contribution; the keywords precisely describe the behaviour of the mechanism and do not impose normative requirements beyond the scope of this document.

3.2. Abbreviations

AIDC: Artificial Intelligence Data Center

RoCEv2: RDMA over Converged Ethernet version 2

ECN: Explicit Congestion Notification

CEN: Congestion Event Notification

4. ECN for WAN

4.1. ECN Tunnelling Behaviour

In WANs, tunneling is a fundamental technique used to encapsulate and transport data packets across different network domains while maintaining security, performance, and compatibility. Tunneling works by embedding an original packet (the inner payload) within a new packet (the outer header), allowing it to traverse intermediate networks that may not natively support the original protocol.

ECN, as a traditional congestion notification mechanism, has also been extended from DC to WAN. [RFC6040] introduces how to label and use ECN mechanisms in tunnels, dividing the behavior into tunnel ingress behavior and tunnel egress behavior. The ingress behavior defines two encapsulation modes: a "compatibility mode," which is for backward compatibility with tunnel decapsulators that do not comprehend ECN, and a REQUIRED "normal mode"; the egress behavior defines a single decapsulation mode (Section 4.4 of [RFC6040]). The detail of the ingress behavior is shown below:

+-----------------+------------------------------+
| Incoming Header |    Departing Outer Header    |
| (also equal to  +---------------+--------------+
| departing Inner | Compatibility |    Normal    |
|      Header)    |       Mode    |     Mode     |
+-----------------+---------------+--------------+
|     Not-ECT     |      Not-ECT  |    Not-ECT   |
|      ECT(0)     |      Not-ECT  |     ECT(0)   |
|      ECT(1)     |      Not-ECT  |     ECT(1)   |
|       CE        |      Not-ECT  |      CE      |
+-----------------+---------------+--------------+

Figure 1: Early-Warning ECN: Encapsulation Behaviours

For the decapsulation behavior, detail is shown below:

+---------+------------------------------------------------+
|Arriving |            Arriving Outer Header               |
|   Inner +---------+------------+------------+------------+
|  Header | Not-ECT | ECT(0)     | ECT(1)     |     CE     |
+---------+---------+------------+------------+------------+
| Not-ECT | Not-ECT |Not-ECT(!!!)|Not-ECT(!!!)| <drop>(!!!)|
|  ECT(0) |  ECT(0) | ECT(0)     | ECT(0)*    |     CE     |
|  ECT(1) |  ECT(1) | ECT(1) (!) | ECT(1)*    |     CE     |
|    CE   |      CE |     CE     |     CE(!!!)|     CE     |
+---------+---------+------------+------------+------------+
* The departing inner header carries the arriving inner codepoint
  unchanged: an arriving outer ECT(1) mark denotes the local
  early-warning state defined in this document and is consumed at
  the decapsulating PE (not copied to the inner header, not
  propagated further), so the domain-local semantics are not
  exposed to nodes outside the domain.

Figure 2: Early-Warning ECN: Decapsulation Behaviours

In the decapsulation table above, '(!)' and '(!!!)' follow the notation of [RFC6040] for combinations of inner and outer ECN fields that were still unused (CU) when RFC 6040 was specified, for which it also specifies that a decapsulator SHOULD log the event. The entries marked '*' in the column for an arriving outer ECT(1) header denote the early-warning state defined in this document. The decapsulating PE consumes the arriving mark as a local early-warning state and leaves the inner ECN field unchanged, so that the domain-local ECT(1) semantics are not propagated beyond the domain boundary. For an arriving inner ECT(0) header this changes the departing inner codepoint relative to [RFC6040], which would propagate ECT(1); for an arriving inner ECT(1) header the departing codepoint is ECT(1) in both cases. The CEN itself is generated by the congested device (see below); consumption of the mark at the egress is independent of it.

[RFC6040] allows ECT(0) and ECT(1) to indicate the same severity of congestion marking (e.g., "not congestion marked"), and it also allows schemes in which ECT(1) indicates a more severe marking than ECT(0), ranking the codepoints CE > ECT(1) > ECT(0) > Not-ECT. This document builds on exactly that flexibility: within the managed WAN domain, ECT(1) carries the early-warning semantics defined below, while ECT(0) denotes an ECT-capable packet that has not yet been marked.

4.2. Two-Threshold ECN Mechanism for WAN

The high latency and bursty nature of WAN links introduce significant challenges for timely and accurate congestion management. Traditional single-threshold ECN or packet-drop mechanisms often result in delayed feedback, causing over-correction (global synchronization) or under-correction (persistent congestion). To address this, this document proposes a Two-Threshold ECN Mechanism specifically designed for WAN environments carrying latency-sensitive, loss-averse traffic like RoCEv2 for AI training.

4.2.1. Mechanism Overview

This mechanism redefines the use of the ECT(1) codepoint within a managed WAN domain (e.g., a provider's WAN core), leveraging the flexibility permitted by [RFC8311]. Network devices (e.g., routers, switches) supporting this mechanism are configured with two queue occupancy thresholds: a Lower Threshold (T1) and a Higher Threshold (T2).

ECT(1) as the "Early Warning" Signal: When the average queue length exceeds T1, the device interprets this as incipient or light congestion. Packets with an outer IP header ECN field of ECT(0) or ECT(1) are remarked to ECT(1) with a probability that increases linearly with the queue length. This ECT(1) marking is defined within this WAN domain as an early-warning congestion signal (referred to below simply as the "early-warning signal"). Its purpose is to signal an impending congestion condition before queues build to a level that would impact latency or cause loss.

CE as "Severe Congestion" Signal: When the average queue length exceeds T2, the device interprets this as severe congestion requiring immediate action. ECT-capable packets (with an outer header of ECT(0) or ECT(1)) are marked with the CE codepoint following a standard RED-like algorithm. This signal indicates severe congestion to the data sender; the sender's reaction is defined by its transport-layer congestion control, outside the scope of this document.

4.2.2. Congestion Event Notification (CEN) and Ingress PE Action

A critical component of this mechanism is the generation and processing of a Congestion Event Notification (CEN). This is a control message generated by the congested device (or a network controller monitoring it) and sent to the tunnel ingress Provider Edge (PE) device -- the point where the traffic entered the WAN domain.

The ECT(1) or CE marking travels in-band with the affected packets, while the CEN is a separate control message addressed to the ingress PE; both are produced at the congested device, and the consumption of the early-warning mark at the egress is independent of the CEN.

CEN Format: this specification does not mandate a new CEN wire format; the CEN is carried as a control message between the congested device and the ingress PE over an existing channel (for example, a UDP-based or in-band control channel). At minimum, the CEN MUST identify the affected flow (e.g., a 5-tuple or a flow identifier), the congestion level (early or severe), and include a value or timestamp sufficient for rate limiting. The ingress PE MUST rate-limit CEN handling to avoid reacting to transient micro-bursts, and SHOULD discard CENs that refer to flows it does not serve, or that duplicate CENs already received for the same flow.

4.2.2.1. T1 Reached: Early-Warning (ECT(1)) Marking

The congested device generates and sends a CEN to the ingress PE. This CEN identifies the affected flow (e.g., via 5-tuple) and indicates a light congestion event.

Ingress PE Action: Upon receiving this CEN, the ingress PE MAY take proactive measures to alleviate the impending congestion without involving the end host. This can include:

Local Rate Adjustment: Slightly reducing the transmission rate for the identified flow into the tunnel.

Traffic Rerouting: Dynamically steering the flow to an alternative, less congested path within the WAN if available (e.g., using SRv6 policy).

ECN Propagation at the Egress: independently of the CEN, when a packet carrying the outer ECT(1) early-warning mark reaches the decapsulating (egress) PE, that PE does not copy the mark to the inner IP header and consumes it locally. The end host remains unaware of this early warning, preventing an over-reaction from a distant sender whose feedback loop is delayed by the WAN RTT.

4.2.2.2. T2 Reached: Severe Congestion (CE) Marking

The congested device generates and sends a CEN to the ingress PE, now indicating a severe congestion event.

Ingress PE Action: Upon receiving this CEN, the ingress PE MUST intensify its local congestion control for the affected flow, for example by applying stronger versions of the Local Rate Adjustment and Traffic Rerouting actions described for the T1 case. Independently of this, the decapsulating (egress) PE performs standard RFC 6040 "normal mode" decapsulation: for an ECN-capable inner header, the CE codepoint from the outer header is copied to the inner IP header, so that the end-to-end transport's congestion control is engaged (a Not-ECT inner header with an arriving CE outer is dropped, per the decapsulation table above).

The packet, now with CE set in the inner header, is forwarded to the receiver. The receiver's transport (e.g., RoCEv2) then feeds this congestion signal back to the original sender; how the sender reacts is defined by its congestion control algorithm as specified by the InfiniBand Architecture, and this document imposes no requirement on it.

4.2.3. Deployment and Compatibility Considerations

Backward Compatibility: Devices not implementing this two-threshold mechanism will treat ECT(1) as equivalent to ECT(0) per [RFC3168], and will process CE normally. This ensures safe co-existence and incremental deployment.

Domain of Application: This mechanism is intended for use within a managed WAN domain (e.g., a single provider's core). The re-definition of the ECT(1) semantics is a local policy, confined to the outer tunnel header inside the domain. At the egress PE leaving this domain, standard RFC 6040 rules apply for forwarding packets into external networks. The tunnel MUST run in normal mode: in compatibility mode the departing outer header is Not-ECT and cannot carry ECN marks, so neither marking level of this mechanism can take effect.

Interaction with L4S: both this mechanism and the L4S service [RFC9330] use the ECT(1) codepoint with different meanings. An L4S-capable source marks ECT(1) to identify its traffic, while this mechanism re-marks packets to ECT(1) inside the domain as an early-warning signal, and the two cannot be distinguished on the wire. Therefore, this mechanism MUST NOT be enabled on any path where L4S traffic may be present, including paths carrying traffic from sources outside the domain that may already have set ECT(1); see [RFC9331] and Section 2.

Egress Behavior at the Domain Boundary: when a packet traverses the egress PE that leaves the managed WAN domain, the outer header is stripped and the inner ECN field is preserved, following the standard RFC 6040 normal-mode decapsulation rules (see the decapsulation table above). In particular, an early-warning (ECT(1)) mark applied to the outer header inside the domain MUST NOT be propagated beyond the domain boundary: the egress PE consumes the mark -- it is not copied to the inner header and not propagated further -- and leaves the inner ECN field unchanged, so that the local ECT(1) semantics are not leaked to nodes outside the domain. CE is asserted only when severe congestion applies.

Threshold Tuning: The values of T1 and T2 are critical and should be set based on link capacity, typical traffic profiles, and the desired latency-loss trade-off for the target applications (e.g., AI training). T1 should be set low enough to provide meaningful early warning but high enough to avoid triggering on transient micro-bursts. T2 MUST be set strictly greater than T1, so that the early-warning and severe congestion regions are clearly separated.

5. IANA Considerations

No IANA actions are required by this specification; it does not define new protocol elements, codepoints, or registries.

6. Security Considerations

The proposed enhancements introduce new mechanisms that must be evaluated for potential security vulnerabilities. This section expands upon the security considerations of [RFC3168] and [RFC6040] within the context of this document.

CEN Spoofing and Forgery: An attacker could generate malicious CENs and send them to an ingress PE, falsely indicating congestion. This could trigger unnecessary rate reduction or rerouting, leading to denial-of-service (performance degradation) for legitimate flows or manipulation of traffic paths for interception. Within a single administrative domain, this can be contained by restricting the channel that carries CENs to trusted devices and, where available, authenticating it.

Threshold Manipulation: An on-path attacker with access to network device configuration could alter the T1 or T2 thresholds. Lowering T1 excessively would cause frequent ECT(1) marking and CEN generation, leading to under-utilization of the link. Raising T2 excessively could suppress legitimate CE signals, leading to bufferbloat and packet loss.

ECN Field Tampering within the Tunnel: As noted in [RFC3168] and [RFC6040], the outer ECN field is mutable. An attacker within the WAN could erase CE marks to hide congestion from the sender, or could set false CE/ECT(1) marks to artificially throttle flows. The two-threshold mechanism's use of ECT(1) as a significant signal creates a new vector for manipulation.

6.2. Covert Channel Considerations

[RFC6040] explicitly relaxed earlier restrictions on the covert channel bandwidth across tunnels, deeming a 2-bit per packet channel manageable. This mechanism does not alter that fundamental assessment. However, the specific arrangement where the egress PE suppresses ECT(1) at the domain boundary while the ingress PE does act on CENs could theoretically be exploited by a colluding ingress and egress point to encode information. This is considered a manageable risk within a single administrative domain.

7. References

7.1. Normative References

[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/info/rfc2119>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/info/rfc8174>.
[RFC6040]
Briscoe, B., "Tunnelling of Explicit Congestion Notification", RFC 6040, DOI 10.17487/RFC6040, , <https://www.rfc-editor.org/info/rfc6040>.
[RFC3168]
Ramakrishnan, K., Floyd, S., and D. Black, "The Addition of Explicit Congestion Notification (ECN) to IP", RFC 3168, DOI 10.17487/RFC3168, , <https://www.rfc-editor.org/info/rfc3168>.
[RFC8311]
Black, D., "Relaxing Restrictions on Explicit Congestion Notification (ECN) Experimentation", RFC 8311, DOI 10.17487/RFC8311, , <https://www.rfc-editor.org/info/rfc8311>.
[RFC4774]
Floyd, S., "Specifying Alternate Semantics for the Explicit Congestion Notification (ECN) Field", BCP 124, RFC 4774, DOI 10.17487/RFC4774, , <https://www.rfc-editor.org/info/rfc4774>.

7.2. Informative References

[RFC5559]
Eardley, P., Ed., "Pre-Congestion Notification (PCN) Architecture", RFC 5559, DOI 10.17487/RFC5559, , <https://www.rfc-editor.org/info/rfc5559>.
[RFC6660]
Briscoe, B., Moncaster, T., and M. Menth, "Encoding Three Pre-Congestion Notification (PCN) States in the IP Header Using a Single Diffserv Codepoint (DSCP)", RFC 6660, DOI 10.17487/RFC6660, , <https://www.rfc-editor.org/info/rfc6660>.
[RFC9330]
Briscoe, B., Ed., De Schepper, K., Bagnulo, M., and G. White, "Low Latency, Low Loss, and Scalable Throughput (L4S) Internet Service: Architecture", RFC 9330, DOI 10.17487/RFC9330, , <https://www.rfc-editor.org/info/rfc9330>.
[RFC9331]
De Schepper, K. and B. Briscoe, Ed., "The Explicit Congestion Notification (ECN) Protocol for Low Latency, Low Loss, and Scalable Throughput (L4S)", RFC 9331, DOI 10.17487/RFC9331, , <https://www.rfc-editor.org/info/rfc9331>.
[RFC9332]
De Schepper, K., Briscoe, B., Ed., and G. White, "Dual-Queue Coupled Active Queue Management (AQM) for Low Latency, Low Loss, and Scalable Throughput (L4S)", RFC 9332, DOI 10.17487/RFC9332, , <https://www.rfc-editor.org/info/rfc9332>.
[RFC9599]
Briscoe, B. and J. Kaippallimalil, "Guidelines for Adding Congestion Notification to Protocols that Encapsulate IP", BCP 89, RFC 9599, DOI 10.17487/RFC9599, , <https://www.rfc-editor.org/info/rfc9599>.
[RFC9768]
Briscoe, B., Kühlewind, M., and R. Scheffenegger, "More Accurate Explicit Congestion Notification (AccECN) Feedback in TCP", RFC 9768, DOI 10.17487/RFC9768, , <https://www.rfc-editor.org/info/rfc9768>.
[I-D.xiao-fann-fast-cnp-with-proxy]
Min, X., Han, T., and Z. Hu, "Fast Congestion Notification Packet (CNP) with Proxy", Work in Progress, Internet-Draft, draft-xiao-fann-fast-cnp-with-proxy-05, , <https://datatracker.ietf.org/doc/draft-xiao-fann-fast-cnp-with-proxy/>.
[I-D.xiao-fann-fast-cnp]
Min, X., Li, H., Han, T., Cheng, W., Yang, J., and X. He, "Fast Congestion Notification Packet (CNP) in RoCEv2 Networks", Work in Progress, Internet-Draft, draft-xiao-fann-fast-cnp-01, , <https://datatracker.ietf.org/doc/draft-xiao-fann-fast-cnp/>.
[I-D.liu-fann-srv6-cc]
Lin, C., Yao, J., Xiao, M., and Y. Liu, "Congestion Control Based on SRv6 Path", Work in Progress, Internet-Draft, draft-liu-fann-srv6-cc-01, , <https://datatracker.ietf.org/doc/draft-liu-fann-srv6-cc/>.

Contributors

Thanks to all the contributors.

Author's Address

Jiayuan Hu (editor)
China Telecom
109, West Zhongshan Road, Tianhe District
Guangzhou
Guangzhou, 510000
China