Summary

  • RFC 3168, September 2001, "specifies the incorporation of ECN (Explicit Congestion Notification) to TCP and IP, including ECN's use of two bits in the IP header." Two bits. That is the whole mechanism.
  • It swaps a punishment for a warning. With active queue management, "routers detect congestion before the queue overflows", so they are "no longer limited to packet drops" and can "set the Congestion Experienced (CE) codepoint in the IP header" instead.
  • The hard problem was never the encoding but the adoption: "Because ECN is likely to be adopted gradually, accommodating migration is essential", and the design had to work "without having to resort to 'islands' of ECN-capable and non-ECN-capable environments".

The network had one word for congestion: drop

TCP's congestion control runs on a single crude inference: a lost packet means a busy link. It is an inference, not a measurement. Loss also means a broken cable, a corrupted frame, or a queue that filled for a moment and then emptied.

A router knows better. Run an active queue-management algorithm and it can watch a queue grow and decide, well before the buffer fills, that this particular flow should ease off. Until ECN it had exactly one way to say so: drop something and let the sender work it out.

Two bits, and a different conversation

The mechanism is small. A capable sender marks its packets as ECN-capable; a router that would otherwise drop one for congestion sets a codepoint instead; the receiver echoes the mark back; the sender reduces its rate as if a packet had been lost.

Same information, different bill. Dropping wastes a round trip on retransmission. Marking wastes none, and the sender learns to slow down while the queue is still a slope rather than a cliff.

The bits were never the hard part

The hard part is incentive. A router that marked every packet, whether or not the sender understood the mark, would give senders no reason to understand it. Opting in has to buy something.

So the specification separates willingness from capability. The ECT codepoint announces that this flow is willing to be marked; the router drops unmarked flows and marks the ones that opted in. The document is explicit that "an ECT codepoint allows an end node to have the CE codepoint set in a packet instead of having the packet dropped", and that this is precisely what gives end nodes "some incentive to deploy ECN".

The real constraint was never the encoding

Sally Floyd, K. K. Ramakrishnan and David Black spend Section 3 on assumptions, and the first is migration. Some routers would keep dropping, some endpoints would not understand marks, and the design had to work with both present at once.

That rules out clean designs. A protocol that only works once everyone has upgraded is not deployable on a network carrying a decade of installed equipment, so ECN had to behave acceptably while half the participants ignored it. Publication is not adoption. RFC 3168 knew that in 2001, which is why it spends its pages on the migration rather than the encoding.

From referee to participant

Dropping is a punishment applied after the fact. Marking is a warning delivered before it. The network stops being a referee that discards and becomes a participant that speaks.

That is also why ECN took a quarter of a century to matter. A signal only helps if both ends and the middle agree to it, and the middle of the internet is the hardest place in the world to change.

What ECN actually teaches

A new signal has to be worth more to the receiver than the old one, and worth more to the sender than the effort of switching it on. Designers who specify the bits and skip the incentives produce standards that are implemented and never enabled.

RFC 3168 did the incentives first and the encoding second, which is why a two-bit change has kept attracting work for twenty-five years. The bits were the easy part. They always are.