RFC 10055 documents UDP socket options for ECN on three systems

In short

2 bits the ECN field inside the old "Type of Service" byte of the IP header; 6 bits the DSCP field that shares that byte; 3 platform families covered: Apple, Linux, Windows; 0 IANA actions

The problem, in plain terms

This section is our explanation of the background the RFC assumes.

When too many packets arrive at a router, its queue fills. The traditional signal is a dropped packet: the sender notices something went missing and slows down. ECN, defined in RFC 3168, lets the router instead set a mark in the packet's IP header saying "the queue is building". The packet still arrives, the receiver reports the mark back, and the sender slows down without losing data.

For TCP this needs nothing from programmers. The RFC says that historically any incoming ECN marks are consumed inside the operating system's kernel, so there is "no application interface except for enabling and disabling the capability".

UDP is different. The operating system hands a UDP program raw datagrams and leaves congestion control to the program. QUIC, the transport under HTTP/3, runs over UDP and does its congestion control in the application, in user space. For a QUIC program to use ECN, the operating system has to show it the mark on each arriving packet, and let it set the mark on each outgoing one. That is done through a socket, the handle a program uses to send and receive network data.

The RFC says the Low Latency, Low Loss, Scalable Throughput (L4S) architecture of RFC 9330, together with QUIC, combined to increase interest in ECN over UDP. Its introduction also says the IETF knows of no SCTP-over-UDP efforts to use these interfaces, and cannot confirm any commercial deployment of the RTP-over-UDP ECN scheme in RFC 6679, though it knows of a research implementation.

Receiving marks: two steps

The RFC splits receiving into setting the socket to report marks, and reading the mark from each packet. Reading always uses the recvmsg() call, because the mark arrives as ancillary data, and the RFC says it comes as "cmsg" entries.

The table is our summary of sections 3.1 and 3.2.

Three details from the RFC show why the documentation gap matters:

Apple platforms also offer a separate Network framework, in which protocol metadata carries ECN flags in both directions without traditional socket options.

Does Windows let a program mark outgoing UDP packets?

The RFC explains why there are two ways to send. A connection normally uses one codepoint consistently, so a socket option is "generally more resource efficient". But some servers receive every incoming packet on one socket, while the many connections behind it may differ in ECN support, so marking each packet is suitable.

The RFC adds one hazard. Except on Apple, the setsockopt() call that sets the mark also sets the rest of the byte, the DSCP, which carries separate traffic-class instructions. Applications ought to preserve the existing DSCP, which might need an extra getsockopt() call, and with several threads "further safeguards will be necessary".

The RFC calls itself a snapshot. It tells readers to consult each platform's current documentation, and says the Windows limit applies "at the time of this writing". Whether Windows has changed since is not something this story checked.

Why the "Type of Service" name misleads

The RFC points out that many socket APIs still say "ToS byte" and use the label IP_TOS, even though RFC 2474 obsoleted that in 1998. The byte now holds a 6-bit DSCP and the 2-bit ECN field. So code that reads or writes IP_TOS to handle ECN is touching the same byte as traffic-class markings.

Security and scope

The RFC says the document is a guide to enabling capabilities already described in RFC 3168 and RFC 9330, so it "incurs no additional security considerations". It does note a privacy point: implementing ECN on some platforms and not others "can help peers identify the operating system in use by a host". It covers C and C++ interfaces only, and does not cover UDP transport-layer options (RFC 9868), which work at a different layer.

To let others check the details, it points to a small public code repository, "ecn-examples", and to Chromium's POSIX and Windows code as example implementations. The acknowledgments credit Michael Tüxen for writing the ecn-examples code.

Terms in plain English

These explanations are ours.

Where things stand

RFC 10055 is a published Informational document dated October 2026, with no IANA actions. It describes interfaces as of its writing; the RFC gives no figures on how many QUIC deployments use ECN, so this story gives none.

Sources

Sources

Related stories

More from Wi-Fi Wizards

All stories from Wi-Fi Wizards