RFC 10055 documents UDP socket options for ECN on three systems
In short
- RFC 10055, published by the IETF in October 2026 as an Informational document, records how to make the three common operating-system families, Apple, Linux and Windows, hand Explicit Congestion Notification (ECN) marks to a program using UDP.
- The author is M. Duke of Google. The RFC says the work came from getting ECN to run on UDP for Chromium, whose projects provide, in the RFC's words, a widely deployed protocol library that includes QUIC.
- Its reason for existing: ECN "had limited deployment for UDP until QUIC became widely adopted", so documentation of UDP socket interfaces for ECN "is sparse".
- On receiving, the three platforms differ only in names and details. On sending, Windows is the odd one: the RFC says that "at the time of this writing" it has no way to set the mark for a whole socket, only per packet.
- It is not a standard. It "does not bind platforms to any API nor suggest any such API".
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:
- Dual-stack sockets. An IPv6 socket that is not IPv6-only needs the extra IP_RECVTOS option on Linux to see marks on IPv4 packets. The RFC says this step is not needed on Apple or FreeBSD. On Windows, WSASetRecvIPEcn() will not enable reporting for IPv4 on such a socket, so a separate IP_RECVECN call is needed.
- A Windows error. If a socket is bound to an IPv4-mapped IPv6 address, WSASetRecvIPEcn() returns the error EINVAL, and the RFC says to use an explicit setsockopt() call instead.
- Windows versions. The RFC says WSASetRecvIPEcn() dates to Windows 10 Build 20348, according to Microsoft's documentation.
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.
- Per socket. Apple, FreeBSD and Linux use IP_TOS for IPv4 and IPV6_TCLASS for IPv6, both as an int. Windows: "does not provide a way to configure marking on a per-socket basis".
- Per packet. All three platforms accept it through the ancillary data of sendmsg(). Apple, FreeBSD and Linux use IP_TOS or IPV6_TCLASS. Windows uses IP_ECN for IPv4 and IPV6_ECN for IPv6.
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.
- ECN: a two-bit mark a router can set on a packet to say its queue is filling, instead of dropping the packet.
- UDP: a bare-bones way to send packets with no built-in congestion control or retransmission.
- QUIC: a transport protocol built on UDP that does its own congestion control in the application.
- Socket: the handle a program uses to send and receive network data.
- Ancillary data (cmsg): extra information the operating system attaches to a packet that a program reads, such as the ECN mark.
- DSCP: the six-bit traffic-class field that shares a byte with the ECN bits.
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
- RFC 10055: Configuring UDP Sockets for Explicit Congestion Notification (ECN) for Common Platforms, IETF, October 2026
Sources
Related stories
- IETF defines Quality of Outcome, a 0-100% network score per app
- RFC 10094 clarifies SRv6 SID list entries are 128-bit values
- RFC 10087 runs the domain-registry EPP protocol over QUIC
- RFC 10021 lets IoT devices verify who sent a multicast command
- RFC 10063 mirrors routing registry data as signed HTTPS files
- RFC 10073 pairs ML-DSA with RSA, ECDSA or EdDSA in one signature
More from Wi-Fi Wizards
- RFC 10075 defines one router-advert bit that marks SNAC routers
- RFC 10049 specifies Roughtime, a way to get secure time
- Meta says VR Glasses weigh about 100 g with a pocket puck
- Meta announces 43-gram Ray-Ban Meta Audio glasses from $349
- 1024-Bit RSA Signatures Forged Without Factoring the Key, at Close to Special-Sieve Cost