<?xml version='1.0' encoding='utf-8'?>
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" version="3" ipr="trust200902" docName="draft-ietf-tsvwg-udp-ecn-08" category="info" consensus="true" submissionType="IETF" xml:lang="en" number="10055" tocInclude="true" sortRefs="true" symRefs="true" prepTime="2026-10-14T22:42:10" indexInclude="true" scripts="Common,Latin" tocDepth="3">
  <link href="https://dx.doi.org/10.17487/rfc10055" rel="alternate"/>
  <link href="urn:issn:2070-1721" rel="alternate"/>
  <link href="https://datatracker.ietf.org/doc/draft-ietf-tsvwg-udp-ecn-08" rel="prev"/>
  <front>
    <title abbrev="UDP Sockets for ECN">Configuring UDP Sockets for Explicit Congestion Notification (ECN) for Common Platforms</title>
    <seriesInfo name="RFC" value="10055" stream="IETF"/>
    <author initials="M." surname="Duke" fullname="Martin Duke">
      <organization showOnFrontPage="true">Google</organization>
      <address>
        <email>martin.h.duke@gmail.com</email>
      </address>
    </author>
    <date month="10" year="2026"/>
    <area>WIT</area>
    <workgroup>tsvwg</workgroup>
    <keyword>udp</keyword>
    <keyword>ecn</keyword>
    <abstract pn="section-abstract">
      <t indent="0" pn="section-abstract-1">Explicit Congestion Notification (ECN) applies to all transport protocols in
principle. However, it had limited deployment for UDP until QUIC became widely
adopted. As a result, documentation of UDP socket APIs for ECN on various
platforms is sparse. This document records the results of experimenting with
these APIs in order to get ECN working on UDP for Chromium on Apple, Linux, and
Windows platforms.</t>
      <t indent="0" pn="section-abstract-2">This document provides a snapshot of the ECN state of affairs as supported by these
platforms at the time of writing. Readers should refer to the documentation of
the various platforms for more up-to-date information.</t>
    </abstract>
    <boilerplate>
      <section anchor="status-of-memo" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.1">
        <name slugifiedName="name-status-of-this-memo">Status of This Memo</name>
        <t indent="0" pn="section-boilerplate.1-1">
            This document is not an Internet Standards Track specification; it is
            published for informational purposes.  
        </t>
        <t indent="0" pn="section-boilerplate.1-2">
            This document is a product of the Internet Engineering Task Force
            (IETF).  It represents the consensus of the IETF community.  It has
            received public review and has been approved for publication by the
            Internet Engineering Steering Group (IESG).  Not all documents
            approved by the IESG are candidates for any level of Internet
            Standard; see Section 2 of RFC 7841. 
        </t>
        <t indent="0" pn="section-boilerplate.1-3">
            Information about the current status of this document, any
            errata, and how to provide feedback on it may be obtained at
            <eref target="https://www.rfc-editor.org/info/rfc10055" brackets="none"/>.
        </t>
      </section>
      <section anchor="copyright" numbered="false" removeInRFC="false" toc="exclude" pn="section-boilerplate.2">
        <name slugifiedName="name-copyright-notice">Copyright Notice</name>
        <t indent="0" pn="section-boilerplate.2-1">
            Copyright (c) 2026 IETF Trust and the persons identified as the
            document authors. All rights reserved.
        </t>
        <t indent="0" pn="section-boilerplate.2-2">
            This document is subject to BCP 78 and the IETF Trust's Legal
            Provisions Relating to IETF Documents
            (<eref target="https://trustee.ietf.org/license-info" brackets="none"/>) in effect on the date of
            publication of this document. Please review these documents
            carefully, as they describe your rights and restrictions with
            respect to this document. Code Components extracted from this
            document must include Revised BSD License text as described in
            Section 4.e of the Trust Legal Provisions and are provided without
            warranty as described in the Revised BSD License.
        </t>
      </section>
    </boilerplate>
    <toc>
      <section anchor="toc" numbered="false" removeInRFC="false" toc="exclude" pn="section-toc.1">
        <name slugifiedName="name-table-of-contents">Table of Contents</name>
        <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1">
          <li pn="section-toc.1-1.1">
            <t indent="0" keepWithNext="true" pn="section-toc.1-1.1.1"><xref derivedContent="1" format="counter" sectionFormat="of" target="section-1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-introduction">Introduction</xref></t>
          </li>
          <li pn="section-toc.1-1.2">
            <t indent="0" keepWithNext="true" pn="section-toc.1-1.2.1"><xref derivedContent="2" format="counter" sectionFormat="of" target="section-2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-conventions-and-definitions">Conventions and Definitions</xref></t>
          </li>
          <li pn="section-toc.1-1.3">
            <t indent="0" pn="section-toc.1-1.3.1"><xref derivedContent="3" format="counter" sectionFormat="of" target="section-3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-receiving-ecn-codepoints">Receiving ECN Codepoints</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.3.2">
              <li pn="section-toc.1-1.3.2.1">
                <t indent="0" pn="section-toc.1-1.3.2.1.1"><xref derivedContent="3.1" format="counter" sectionFormat="of" target="section-3.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-setting-the-socket-to-repor">Setting the Socket to Report Incoming ECN Codepoints</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.3.2.1.2">
                  <li pn="section-toc.1-1.3.2.1.2.1">
                    <t indent="0" keepWithNext="true" pn="section-toc.1-1.3.2.1.2.1.1"><xref derivedContent="3.1.1" format="counter" sectionFormat="of" target="section-3.1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-linux-apple-and-freebsd">Linux, Apple, and FreeBSD</xref></t>
                  </li>
                  <li pn="section-toc.1-1.3.2.1.2.2">
                    <t indent="0" pn="section-toc.1-1.3.2.1.2.2.1"><xref derivedContent="3.1.2" format="counter" sectionFormat="of" target="section-3.1.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-windows">Windows</xref></t>
                  </li>
                </ul>
              </li>
              <li pn="section-toc.1-1.3.2.2">
                <t indent="0" pn="section-toc.1-1.3.2.2.1"><xref derivedContent="3.2" format="counter" sectionFormat="of" target="section-3.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-retrieving-ecn-codepoints-o">Retrieving ECN Codepoints on Incoming Packets</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.3.2.2.2">
                  <li pn="section-toc.1-1.3.2.2.2.1">
                    <t indent="0" pn="section-toc.1-1.3.2.2.2.1.1"><xref derivedContent="3.2.1" format="counter" sectionFormat="of" target="section-3.2.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-linux">Linux</xref></t>
                  </li>
                  <li pn="section-toc.1-1.3.2.2.2.2">
                    <t indent="0" pn="section-toc.1-1.3.2.2.2.2.1"><xref derivedContent="3.2.2" format="counter" sectionFormat="of" target="section-3.2.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-apple-and-freebsd">Apple and FreeBSD</xref></t>
                  </li>
                  <li pn="section-toc.1-1.3.2.2.2.3">
                    <t indent="0" pn="section-toc.1-1.3.2.2.2.3.1"><xref derivedContent="3.2.3" format="counter" sectionFormat="of" target="section-3.2.3"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-windows-2">Windows</xref></t>
                  </li>
                </ul>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.4">
            <t indent="0" pn="section-toc.1-1.4.1"><xref derivedContent="4" format="counter" sectionFormat="of" target="section-4"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-sending-ecn-codepoints">Sending ECN Codepoints</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.4.2">
              <li pn="section-toc.1-1.4.2.1">
                <t indent="0" pn="section-toc.1-1.4.2.1.1"><xref derivedContent="4.1" format="counter" sectionFormat="of" target="section-4.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-on-a-per-socket-basis">On a Per-Socket Basis</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.4.2.1.2">
                  <li pn="section-toc.1-1.4.2.1.2.1">
                    <t indent="0" pn="section-toc.1-1.4.2.1.2.1.1"><xref derivedContent="4.1.1" format="counter" sectionFormat="of" target="section-4.1.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-apple-freebsd-and-linux">Apple, FreeBSD, and Linux</xref></t>
                  </li>
                  <li pn="section-toc.1-1.4.2.1.2.2">
                    <t indent="0" pn="section-toc.1-1.4.2.1.2.2.1"><xref derivedContent="4.1.2" format="counter" sectionFormat="of" target="section-4.1.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-windows-3">Windows</xref></t>
                  </li>
                </ul>
              </li>
              <li pn="section-toc.1-1.4.2.2">
                <t indent="0" pn="section-toc.1-1.4.2.2.1"><xref derivedContent="4.2" format="counter" sectionFormat="of" target="section-4.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-on-a-per-packet-basis">On a Per-Packet Basis</xref></t>
                <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.4.2.2.2">
                  <li pn="section-toc.1-1.4.2.2.2.1">
                    <t indent="0" pn="section-toc.1-1.4.2.2.2.1.1"><xref derivedContent="4.2.1" format="counter" sectionFormat="of" target="section-4.2.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-apple-freebsd-and-linux-2">Apple, FreeBSD, and Linux</xref></t>
                  </li>
                  <li pn="section-toc.1-1.4.2.2.2.2">
                    <t indent="0" pn="section-toc.1-1.4.2.2.2.2.1"><xref derivedContent="4.2.2" format="counter" sectionFormat="of" target="section-4.2.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-windows-4">Windows</xref></t>
                  </li>
                </ul>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.5">
            <t indent="0" pn="section-toc.1-1.5.1"><xref derivedContent="5" format="counter" sectionFormat="of" target="section-5"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-security-considerations">Security Considerations</xref></t>
          </li>
          <li pn="section-toc.1-1.6">
            <t indent="0" pn="section-toc.1-1.6.1"><xref derivedContent="6" format="counter" sectionFormat="of" target="section-6"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-iana-considerations">IANA Considerations</xref></t>
          </li>
          <li pn="section-toc.1-1.7">
            <t indent="0" pn="section-toc.1-1.7.1"><xref derivedContent="7" format="counter" sectionFormat="of" target="section-7"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-references">References</xref></t>
            <ul bare="true" empty="true" indent="2" spacing="compact" pn="section-toc.1-1.7.2">
              <li pn="section-toc.1-1.7.2.1">
                <t indent="0" pn="section-toc.1-1.7.2.1.1"><xref derivedContent="7.1" format="counter" sectionFormat="of" target="section-7.1"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-normative-references">Normative References</xref></t>
              </li>
              <li pn="section-toc.1-1.7.2.2">
                <t indent="0" pn="section-toc.1-1.7.2.2.1"><xref derivedContent="7.2" format="counter" sectionFormat="of" target="section-7.2"/>.  <xref derivedContent="" format="title" sectionFormat="of" target="name-informative-references">Informative References</xref></t>
              </li>
            </ul>
          </li>
          <li pn="section-toc.1-1.8">
            <t indent="0" pn="section-toc.1-1.8.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.a"/><xref derivedContent="" format="title" sectionFormat="of" target="name-acknowledgments">Acknowledgments</xref></t>
          </li>
          <li pn="section-toc.1-1.9">
            <t indent="0" pn="section-toc.1-1.9.1"><xref derivedContent="" format="none" sectionFormat="of" target="section-appendix.b"/><xref derivedContent="" format="title" sectionFormat="of" target="name-authors-address">Author's Address</xref></t>
          </li>
        </ul>
      </section>
    </toc>
  </front>
  <middle>
    <section anchor="introduction" numbered="true" removeInRFC="false" toc="include" pn="section-1">
      <name slugifiedName="name-introduction">Introduction</name>
      <t indent="0" pn="section-1-1"><xref target="RFC3168" format="default" sectionFormat="of" derivedContent="RFC3168"/> defines a 2-bit field in the IP header for Explicit Congestion
Notification (ECN), which provides network feedback to endpoint congestion
controllers. Historically, this has mostly been relevant to TCP <xref target="RFC9293" format="default" sectionFormat="of" derivedContent="RFC9293"/>,
where any incoming ECN codepoints are internally consumed by the kernel and,
therefore, imply no application interface except for enabling and disabling the
capability.</t>
      <t indent="0" pn="section-1-2">The Stream Control Transmission Protocol (SCTP) <xref target="RFC9260" format="default" sectionFormat="of" derivedContent="RFC9260"/> has long supported
ECN in its design. SCTP is sometimes carried over DTLS and UDP <xref target="RFC8261" format="default" sectionFormat="of" derivedContent="RFC8261"/>.
In principle, user-space implementers might have leveraged UDP ECN APIs to
deliver ECN codepoints between SCTP and the UDP socket. At the time of
publication, the IETF is not aware of any such efforts.</t>
      <t indent="0" pn="section-1-3"><xref target="RFC6679" format="default" sectionFormat="of" derivedContent="RFC6679"/> defines ECN over RTP over UDP. The IETF is aware of a research
implementation but cannot confirm any commercial deployments. <xref target="RFC8888" format="default" sectionFormat="of" derivedContent="RFC8888"/>
proposes a different feedback format to work with <xref target="RFC6679" format="default" sectionFormat="of" derivedContent="RFC6679"/>, and there are
a few implementations of this.</t>
      <t indent="0" pn="section-1-4">QUIC <xref target="RFC9000" format="default" sectionFormat="of" derivedContent="RFC9000"/> runs over UDP and has seen wider deployment than SCTP. The Low
Latency, Low Loss, Scalable Throughput (L4S) architecture <xref target="RFC9330" format="default" sectionFormat="of" derivedContent="RFC9330"/> and
QUIC have combined to increase interest in ECN over UDP.</t>
      <t indent="0" pn="section-1-5">The Chromium Projects <xref target="CHROMIUM" format="default" sectionFormat="of" derivedContent="CHROMIUM"/> provide a widely deployed protocol library
that includes QUIC. An effort to provide ECN support for QUIC on the many
platforms on which Chromium is deployed revealed that many ECN-related UDP
socket interfaces are poorly documented.</t>
      <t indent="0" pn="section-1-6">This Informational document provides a record of that experience to encourage
further support for ECN in other QUIC implementations and any consumer
of ECN codepoints that operates over UDP. It is not a Standards Track document
and does not bind platforms to any API nor suggest any such API.</t>
      <t indent="0" pn="section-1-7">Many socket APIs continue to reference the "ToS (Type of Service) byte",
including the IP_TOS label, even though <xref target="RFC2474" format="default" sectionFormat="of" derivedContent="RFC2474"/> obsoleted that in 1998.
That 8-bit field now contains a 6-bit Differentiated Services Code Point (DSCP)
and the 2-bit ECN field.</t>
      <t indent="0" pn="section-1-8">This document focuses on the APIs for the C and C++ languages. Other languages
are likely to have different syntax and capabilities.</t>
      <t indent="0" pn="section-1-9">The "ecn-examples" code repository <xref target="EXAMPLES" format="default" sectionFormat="of" derivedContent="EXAMPLES"/> is extremely compact code that
can verify the information in this document.</t>
      <t indent="0" pn="section-1-10">This document addresses access to the ECN field in the IP header via socket
APIs. It does not address UDP transport-layer options <xref target="RFC9868" format="default" sectionFormat="of" derivedContent="RFC9868"/>, which are a
separate extension mechanism operating at a different layer.</t>
    </section>
    <section anchor="conventions-and-definitions" numbered="true" removeInRFC="false" toc="include" pn="section-2">
      <name slugifiedName="name-conventions-and-definitions">Conventions and Definitions</name>
      <t indent="0" pn="section-2-1">This document is not a general tutorial on UDP socket programming and does assume
familiarity with basic socket concepts like binding, socket options, and
common system error codes.</t>
      <t indent="0" pn="section-2-2">Throughout this document, "Apple" refers to both macOS and iOS. "Linux" guidance
also applies to Android.</t>
    </section>
    <section anchor="receiving-ecn-codepoints" numbered="true" removeInRFC="false" toc="include" pn="section-3">
      <name slugifiedName="name-receiving-ecn-codepoints">Receiving ECN Codepoints</name>
      <t indent="0" pn="section-3-1">Network devices can change the ECN codepoint in the IP header. Since this
feedback is required at the packet sender, the packet receiver needs to extract
this codepoint from the UDP socket in order to report to the sender.</t>
      <t indent="0" pn="section-3-2">There are two components to this: 1) setting the socket to report incoming ECN
marks and 2) retrieving the ECN codepoint for each incoming packet.</t>
      <t indent="0" pn="section-3-3">Note that Apple platforms additionally provide a framework for network
connections that allows receiving ECN flags when using UDP without traditional
socket option semantics. When sending or receiving UDP datagrams, IP protocol
metadata carries ECN information in both directions. See
<xref target="APPLE-NETWORK-FRAMEWORK" format="default" sectionFormat="of" derivedContent="APPLE-NETWORK-FRAMEWORK"/>.</t>
      <section anchor="setting-the-socket-to-report-incoming-ecn-codepoints" numbered="true" removeInRFC="false" toc="include" pn="section-3.1">
        <name slugifiedName="name-setting-the-socket-to-repor">Setting the Socket to Report Incoming ECN Codepoints</name>
        <section anchor="linux-apple-and-freebsd" numbered="true" removeInRFC="false" toc="include" pn="section-3.1.1">
          <name slugifiedName="name-linux-apple-and-freebsd">Linux, Apple, and FreeBSD</name>
          <t indent="0" pn="section-3.1.1-1">To receive ECN codepoints, applications set a socket option to "true" using a setsockopt()
call.</t>
          <t indent="0" pn="section-3.1.1-2">On all platforms, IPv4 sockets require the IPPROTO_IP-level socket option with the
name IP_RECVTOS to be set.</t>
          <t indent="0" pn="section-3.1.1-3">On all platforms, IPv6 sockets require the IPPROTO_IPV6-level socket option with the
name IPV6_RECVTCLASS to be set.</t>
          <t indent="0" pn="section-3.1.1-4">If the IPv6 socket is not IPv6 only, on Linux hosts it is required to also set
the IPPROTO_IP-level socket option IP_RECVTOS to receive ECN codepoints for
UDP/IPv4 packets. This step is not necessary for Apple or FreeBSD.</t>
          <t indent="0" pn="section-3.1.1-5">At the time of writing, an example implementation can be found at
<xref target="CHROMIUM-POSIX" format="default" sectionFormat="of" derivedContent="CHROMIUM-POSIX"/>.</t>
        </section>
        <section anchor="windows" numbered="true" removeInRFC="false" toc="include" pn="section-3.1.2">
          <name slugifiedName="name-windows">Windows</name>
          <t indent="0" pn="section-3.1.2-1">Windows documentation recommends using the function WSASetRecvIPEcn() to
enable ECN codepoint reporting regardless of the IP version. This function dates
to Windows 10 Build 20348, according to <xref target="WINDOWS-DOC" format="default" sectionFormat="of" derivedContent="WINDOWS-DOC"/>.</t>
          <t indent="0" pn="section-3.1.2-2">However, this can also be accomplished by calling setsockopt() and using
options of level IPPROTO_IP and name IP_RECVECN for IPv4 and level IPPROTO_IPV6
and name IPV6_RECVECN for IPv6. These options are documented at
<xref target="WINDOWS-SOCKOPT" format="default" sectionFormat="of" derivedContent="WINDOWS-SOCKOPT"/>.</t>
          <t indent="0" pn="section-3.1.2-3">For IPv6 sockets that are not IPv6 only, WSASetRecvIPEcn() will not enable ECN
reporting for IPv4. This requires a separate setsockopt() call using the
IP_RECVECN option.</t>
          <t indent="0" pn="section-3.1.2-4">If a socket is bound to an IPv4-mapped IPv6 address (i.e., it is of the format
::ffff:&lt;IPv4 address&gt;; see <xref section="2.5.5.2" sectionFormat="of" target="RFC4291" format="default" derivedLink="https://rfc-editor.org/rfc/rfc4291#section-2.5.5.2" derivedContent="RFC4291"/>), then calls to
WSASetRecvIpEcn() return the error EINVAL. These sockets should instead use an
explicit setsockopt() call to set IP_RECVECN.</t>
          <t indent="0" pn="section-3.1.2-5">At the time of writing, an example implementation can be found at
<xref target="CHROMIUM-WINDOWS" format="default" sectionFormat="of" derivedContent="CHROMIUM-WINDOWS"/>.</t>
        </section>
      </section>
      <section anchor="retrieving-ecn-codepoints-on-incoming-packets" numbered="true" removeInRFC="false" toc="include" pn="section-3.2">
        <name slugifiedName="name-retrieving-ecn-codepoints-o">Retrieving ECN Codepoints on Incoming Packets</name>
        <t indent="0" pn="section-3.2-1">All platforms described in this document require the use of a recvmsg() call to
read data from the socket and to retrieve the ECN codepoint, because that information
is provided as ancillary data.
Those platforms all return zero or more "cmsg"s that contain requested information
about the arriving packet.</t>
        <t indent="0" pn="section-3.2-2">Examples of the technique described below can be found at <xref target="CHROMIUM-POSIX" format="default" sectionFormat="of" derivedContent="CHROMIUM-POSIX"/>
and <xref target="CHROMIUM-WINDOWS" format="default" sectionFormat="of" derivedContent="CHROMIUM-WINDOWS"/>.</t>
        <section anchor="linux" numbered="true" removeInRFC="false" toc="include" pn="section-3.2.1">
          <name slugifiedName="name-linux">Linux</name>
          <t indent="0" pn="section-3.2.1-1">If a UDP/IPv4 message is received, Linux will include a cmsg of level IPPROTO_IP
and type IP_TOS. The cmsg data contains an unsigned char.
This applies to IPv4 sockets and to IPv6 sockets that are not IPv6 only.</t>
          <t indent="0" pn="section-3.2.1-2">If a UDP/IPv6 message is received, Linux will include a cmsg of level IPPROTO_IPV6
and type IPV6_TCLASS. The cmsg data contains an int.
This applies to IPv6 sockets.</t>
          <t indent="0" pn="section-3.2.1-3">The cmsg data contains the entire IP header byte, which includes the DSCP
and the ECN codepoint.
The ECN codepoint constitutes the two least significant bits of this byte.</t>
          <t indent="0" pn="section-3.2.1-4">The same applies to the Linux-specific recvmmsg() call.</t>
        </section>
        <section anchor="apple-and-freebsd" numbered="true" removeInRFC="false" toc="include" pn="section-3.2.2">
          <name slugifiedName="name-apple-and-freebsd">Apple and FreeBSD</name>
          <t indent="0" pn="section-3.2.2-1">If a UDP/IPv4 message is received on an IPv4 socket, the ancillary data
will contain a cmsg of level IPPROTO_IP and type IP_RECVTOS. The cmsg data
contains an unsigned char.</t>
          <t indent="0" pn="section-3.2.2-2">If a UDP/IPv6 or UDP/IPv4 message is received on an IPv6 socket, the
ancillary data will contain a cmsg of level IPPROTO_IPV6 and type IPV6_TCLASS.
The cmsg data contains an int.</t>
          <t indent="0" pn="section-3.2.2-3">The cmsg data contains the entire IP header byte, which includes the DSCP
and the ECN codepoint.
The ECN codepoint constitutes the two least significant bits of this byte.</t>
        </section>
        <section anchor="windows-1" numbered="true" removeInRFC="false" toc="include" pn="section-3.2.3">
          <name slugifiedName="name-windows-2">Windows</name>
          <t indent="0" pn="section-3.2.3-1">If the incoming packet is UDP/IPv4, the socket will include a cmsg of level
IPPROTO_IP and type IP_ECN. The cmsg data contains an int.</t>
          <t indent="0" pn="section-3.2.3-2">If the incoming packet is UDP/IPv6, the socket will include a cmsg of level
IPPROTO_IPV6 and type IPV6_ECN. The cmsg data contains an int.</t>
          <t indent="0" pn="section-3.2.3-3">The cmsg data solely consists of the ECN codepoint and requires no
further bitwise operations.</t>
        </section>
      </section>
    </section>
    <section anchor="sending-ecn-codepoints" numbered="true" removeInRFC="false" toc="include" pn="section-4">
      <name slugifiedName="name-sending-ecn-codepoints">Sending ECN Codepoints</name>
      <t indent="0" pn="section-4-1">Existing ECN specifications (<xref target="RFC3168" format="default" sectionFormat="of" derivedContent="RFC3168"/> and <xref target="RFC9330" format="default" sectionFormat="of" derivedContent="RFC9330"/>) envision a particular
connection that is consistently sending the same ECN codepoint. It might transition that
marking after successfully completing a handshake, recognizing that the path or the
peer does not support ECN or transitioning to a new path. Therefore, using a
socket option to configure a consistent marking is generally more
resource efficient.</t>
      <t indent="0" pn="section-4-2">However, some server designs receive all incoming packets on a single socket.
As the many connections that constitute this packet stream may have different
support for ECN, it is suitable to provide the ECN codepoint on a per-packet basis.</t>
      <t indent="0" pn="section-4-3">Note that Apple platforms additionally provide a framework for network
connections that allows sending ECN flags when using UDP without traditional
socket option semantics. When sending or receiving UDP datagrams, IP protocol
metadata carries ECN information in both directions. See
<xref target="APPLE-NETWORK-FRAMEWORK" format="default" sectionFormat="of" derivedContent="APPLE-NETWORK-FRAMEWORK"/>.</t>
      <section anchor="on-a-per-socket-basis" numbered="true" removeInRFC="false" toc="include" pn="section-4.1">
        <name slugifiedName="name-on-a-per-socket-basis">On a Per-Socket Basis</name>
        <section anchor="apple-freebsd-and-linux" numbered="true" removeInRFC="false" toc="include" pn="section-4.1.1">
          <name slugifiedName="name-apple-freebsd-and-linux">Apple, FreeBSD, and Linux</name>
          <t indent="0" pn="section-4.1.1-1">For sending UDP/IPv4 packets on an IPv4 socket, Apple, FreeBSD, and Linux platforms
allow the outgoing ECN codepoint to be configured by using the IPPROTO_IP-level socket
option with the name IP_TOS.
The value has the type int.</t>
          <t indent="0" pn="section-4.1.1-2">For sending UDP/IPv6 packets on an IPv6 socket, Apple, FreeBSD, and Linux platforms
allow the outgoing ECN codepoint to be configured by using the IPPROTO_IPV6-level socket
option with the name IPV6_TCLASS.
The value has the type int.</t>
          <t indent="0" pn="section-4.1.1-3">For sending UDP/IPv4 packets on an IPv6 socket, Linux platforms allow
the outgoing ECN codepoint to be configured by using the IPPROTO_IP-level socket
option with the name IP_TOS.</t>
          <t indent="0" pn="section-4.1.1-4">For sending UDP/IPv4 packets on an IPv6 socket, Apple and FreeBSD platforms allow
the outgoing ECN codepoint to be configured by using the IPPROTO_IPV6-level socket
option with the name IPV6_TCLASS.</t>
          <t indent="0" pn="section-4.1.1-5">Except for Apple platforms, this setsockopt() call also sets the
DSCP that comprises the rest of the header byte.
Applications making this call ought to preserve any existing DSCP setting, which
might require an additional getsockopt() call, to avoid overriding commands set
by other code in the stack. If there are multiple threads making changes to this
byte, further safeguards will be necessary.</t>
          <t indent="0" pn="section-4.1.1-6">An example of the technique described above can be found at <xref target="CHROMIUM-POSIX" format="default" sectionFormat="of" derivedContent="CHROMIUM-POSIX"/>.</t>
        </section>
        <section anchor="windows-2" numbered="true" removeInRFC="false" toc="include" pn="section-4.1.2">
          <name slugifiedName="name-windows-3">Windows</name>
          <t indent="0" pn="section-4.1.2-1">At the time of this writing, Windows does not provide a way to configure
marking on a per-socket basis.</t>
        </section>
      </section>
      <section anchor="on-a-per-packet-basis" numbered="true" removeInRFC="false" toc="include" pn="section-4.2">
        <name slugifiedName="name-on-a-per-packet-basis">On a Per-Packet Basis</name>
        <t indent="0" pn="section-4.2-1">Packets can be individually marked with ECN codepoints using the ancillary data
that accompanies a sendmsg() call.</t>
        <section anchor="apple-freebsd-and-linux-1" numbered="true" removeInRFC="false" toc="include" pn="section-4.2.1">
          <name slugifiedName="name-apple-freebsd-and-linux-2">Apple, FreeBSD, and Linux</name>
          <t indent="0" pn="section-4.2.1-1">For sending UDP/IPv4 packets on an IPv4 socket, Apple, FreeBSD, and Linux use
a cmsg with level IPPROTO_IP and type IP_TOS. On Apple and Linux, the type of
data is int; and for FreeBSD, it is unsigned char.</t>
          <t indent="0" pn="section-4.2.1-2">For sending UDP/IPv6 packets on an IPv6 socket, Apple, FreeBSD, and Linux use
a cmsg with level IPPROTO_IPV6 and type IPV6_TCLASS. The type of the data
is int.</t>
          <t indent="0" pn="section-4.2.1-3">For sending UDP/IPv4 packets on an IPv6 socket, Linux requires a cmsg with
level IPPROTO_IP and type IP_TOS.
Apple and FreeBSD accept a cmsg with level IPPROTO_IPV6 and type IPV6_TCLASS.</t>
          <t indent="0" pn="section-4.2.1-4">The same applies to the Linux-specific sendmmsg() call.</t>
        </section>
        <section anchor="windows-3" numbered="true" removeInRFC="false" toc="include" pn="section-4.2.2">
          <name slugifiedName="name-windows-4">Windows</name>
          <t indent="0" pn="section-4.2.2-1">For IPv4 packets, Windows uses a cmsg with level IPPROTO_IP and type IP_ECN.</t>
          <t indent="0" pn="section-4.2.2-2">For IPv6 packets, Windows uses a cmsg with level IPPROTO_IPV6 and type IPV6_ECN.</t>
          <t indent="0" pn="section-4.2.2-3">An example of the technique described above can be found at
<xref target="CHROMIUM-WINDOWS" format="default" sectionFormat="of" derivedContent="CHROMIUM-WINDOWS"/>.</t>
        </section>
      </section>
    </section>
    <section anchor="security-considerations" numbered="true" removeInRFC="false" toc="include" pn="section-5">
      <name slugifiedName="name-security-considerations">Security Considerations</name>
      <t indent="0" pn="section-5-1">The security implications of ECN are documented in <xref target="RFC3168" format="default" sectionFormat="of" derivedContent="RFC3168"/> and <xref target="RFC9330" format="default" sectionFormat="of" derivedContent="RFC9330"/>.
This document is a guide to enabling these capabilities, which incurs no
additional security considerations.</t>
      <t indent="0" pn="section-5-2">Note that implementing ECN capabilities on some platforms, but not others, can
help peers identify the operating system in use by a host, which can have
privacy implications. This document aims to mitigate that possibility.</t>
    </section>
    <section anchor="iana-considerations" numbered="true" removeInRFC="false" toc="include" pn="section-6">
      <name slugifiedName="name-iana-considerations">IANA Considerations</name>
      <t indent="0" pn="section-6-1">This document has no IANA actions.</t>
    </section>
  </middle>
  <back>
    <references anchor="sec-combined-references" pn="section-7">
      <name slugifiedName="name-references">References</name>
      <references anchor="sec-normative-references" pn="section-7.1">
        <name slugifiedName="name-normative-references">Normative References</name>
        <reference anchor="RFC2474" target="https://www.rfc-editor.org/info/rfc2474" quoteTitle="true" derivedAnchor="RFC2474">
          <front>
            <title>Definition of the Differentiated Services Field (DS Field) in the IPv4 and IPv6 Headers</title>
            <author fullname="K. Nichols" initials="K." surname="Nichols"/>
            <author fullname="S. Blake" initials="S." surname="Blake"/>
            <author fullname="F. Baker" initials="F." surname="Baker"/>
            <author fullname="D. Black" initials="D." surname="Black"/>
            <date month="December" year="1998"/>
            <abstract>
              <t indent="0">This document defines the IP header field, called the DS (for differentiated services) field. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="2474"/>
          <seriesInfo name="DOI" value="10.17487/RFC2474"/>
        </reference>
        <reference anchor="RFC3168" target="https://www.rfc-editor.org/info/rfc3168" quoteTitle="true" derivedAnchor="RFC3168">
          <front>
            <title>The Addition of Explicit Congestion Notification (ECN) to IP</title>
            <author fullname="K. Ramakrishnan" initials="K." surname="Ramakrishnan"/>
            <author fullname="S. Floyd" initials="S." surname="Floyd"/>
            <author fullname="D. Black" initials="D." surname="Black"/>
            <date month="September" year="2001"/>
            <abstract>
              <t indent="0">This memo specifies the incorporation of ECN (Explicit Congestion Notification) to TCP and IP, including ECN's use of two bits in the IP header. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="3168"/>
          <seriesInfo name="DOI" value="10.17487/RFC3168"/>
        </reference>
        <reference anchor="RFC9330" target="https://www.rfc-editor.org/info/rfc9330" quoteTitle="true" derivedAnchor="RFC9330">
          <front>
            <title>Low Latency, Low Loss, and Scalable Throughput (L4S) Internet Service: Architecture</title>
            <author fullname="B. Briscoe" initials="B." role="editor" surname="Briscoe"/>
            <author fullname="K. De Schepper" initials="K." surname="De Schepper"/>
            <author fullname="M. Bagnulo" initials="M." surname="Bagnulo"/>
            <author fullname="G. White" initials="G." surname="White"/>
            <date month="January" year="2023"/>
            <abstract>
              <t indent="0">This document describes the L4S architecture, which enables Internet applications to achieve low queuing latency, low congestion loss, and scalable throughput control. L4S is based on the insight that the root cause of queuing delay is in the capacity-seeking congestion controllers of senders, not in the queue itself. With the L4S architecture, all Internet applications could (but do not have to) transition away from congestion control algorithms that cause substantial queuing delay and instead adopt a new class of congestion controls that can seek capacity with very little queuing. These are aided by a modified form of Explicit Congestion Notification (ECN) from the network. With this new architecture, applications can have both low latency and high throughput.</t>
              <t indent="0">The architecture primarily concerns incremental deployment. It defines mechanisms that allow the new class of L4S congestion controls to coexist with 'Classic' congestion controls in a shared network. The aim is for L4S latency and throughput to be usually much better (and rarely worse) while typically not impacting Classic performance.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9330"/>
          <seriesInfo name="DOI" value="10.17487/RFC9330"/>
        </reference>
      </references>
      <references anchor="sec-informative-references" pn="section-7.2">
        <name slugifiedName="name-informative-references">Informative References</name>
        <reference anchor="APPLE-NETWORK-FRAMEWORK" target="https://developer.apple.com/documentation/network/nwprotocolip/metadata" quoteTitle="true" derivedAnchor="APPLE-NETWORK-FRAMEWORK">
          <front>
            <title>NWProtocolIP.Metadata</title>
            <author>
              <organization showOnFrontPage="true"/>
            </author>
            <date/>
          </front>
        </reference>
        <reference anchor="CHROMIUM" target="https://www.chromium.org/chromium-projects/" quoteTitle="true" derivedAnchor="CHROMIUM">
          <front>
            <title>The Chromium Projects</title>
            <author>
              <organization showOnFrontPage="true"/>
            </author>
            <date/>
          </front>
        </reference>
        <reference anchor="CHROMIUM-POSIX" target="https://source.chromium.org/chromium/chromium/src/+/main:net/socket/udp_socket_posix.cc" quoteTitle="true" derivedAnchor="CHROMIUM-POSIX">
          <front>
            <title>udp_socket_posix.cc</title>
            <author>
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2026" month="June" day="19"/>
          </front>
          <refcontent>commit 6bdc14d</refcontent>
        </reference>
        <reference anchor="CHROMIUM-WINDOWS" target="https://source.chromium.org/chromium/chromium/src/+/main:net/socket/udp_socket_win.cc" quoteTitle="true" derivedAnchor="CHROMIUM-WINDOWS">
          <front>
            <title>udp_socket_win.cc</title>
            <author>
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2026" month="June" day="10"/>
          </front>
          <refcontent>commit 85a1d1c</refcontent>
        </reference>
        <reference anchor="EXAMPLES" target="https://github.com/nplab/ecn-examples" quoteTitle="true" derivedAnchor="EXAMPLES">
          <front>
            <title>ecn-examples</title>
            <author>
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2025" month="December" day="01"/>
          </front>
          <refcontent>commit 39e39bf</refcontent>
        </reference>
        <reference anchor="RFC4291" target="https://www.rfc-editor.org/info/rfc4291" quoteTitle="true" derivedAnchor="RFC4291">
          <front>
            <title>IP Version 6 Addressing Architecture</title>
            <author fullname="R. Hinden" initials="R." surname="Hinden"/>
            <author fullname="S. Deering" initials="S." surname="Deering"/>
            <date month="February" year="2006"/>
            <abstract>
              <t indent="0">This specification defines the addressing architecture of the IP Version 6 (IPv6) protocol. The document includes the IPv6 addressing model, text representations of IPv6 addresses, definition of IPv6 unicast addresses, anycast addresses, and multicast addresses, and an IPv6 node's required addresses.</t>
              <t indent="0">This document obsoletes RFC 3513, "IP Version 6 Addressing Architecture". [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="4291"/>
          <seriesInfo name="DOI" value="10.17487/RFC4291"/>
        </reference>
        <reference anchor="RFC6679" target="https://www.rfc-editor.org/info/rfc6679" quoteTitle="true" derivedAnchor="RFC6679">
          <front>
            <title>Explicit Congestion Notification (ECN) for RTP over UDP</title>
            <author fullname="M. Westerlund" initials="M." surname="Westerlund"/>
            <author fullname="I. Johansson" initials="I." surname="Johansson"/>
            <author fullname="C. Perkins" initials="C." surname="Perkins"/>
            <author fullname="P. O'Hanlon" initials="P." surname="O'Hanlon"/>
            <author fullname="K. Carlberg" initials="K." surname="Carlberg"/>
            <date month="August" year="2012"/>
            <abstract>
              <t indent="0">This memo specifies how Explicit Congestion Notification (ECN) can be used with the Real-time Transport Protocol (RTP) running over UDP, using the RTP Control Protocol (RTCP) as a feedback mechanism. It defines a new RTCP Extended Report (XR) block for periodic ECN feedback, a new RTCP transport feedback message for timely reporting of congestion events, and a Session Traversal Utilities for NAT (STUN) extension used in the optional initialisation method using Interactive Connectivity Establishment (ICE). Signalling and procedures for negotiation of capabilities and initialisation methods are also defined. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6679"/>
          <seriesInfo name="DOI" value="10.17487/RFC6679"/>
        </reference>
        <reference anchor="RFC8261" target="https://www.rfc-editor.org/info/rfc8261" quoteTitle="true" derivedAnchor="RFC8261">
          <front>
            <title>Datagram Transport Layer Security (DTLS) Encapsulation of SCTP Packets</title>
            <author fullname="M. Tuexen" initials="M." surname="Tuexen"/>
            <author fullname="R. Stewart" initials="R." surname="Stewart"/>
            <author fullname="R. Jesup" initials="R." surname="Jesup"/>
            <author fullname="S. Loreto" initials="S." surname="Loreto"/>
            <date month="November" year="2017"/>
            <abstract>
              <t indent="0">The Stream Control Transmission Protocol (SCTP) is a transport protocol originally defined to run on top of the network protocols IPv4 or IPv6. This document specifies how SCTP can be used on top of the Datagram Transport Layer Security (DTLS) protocol. Using the encapsulation method described in this document, SCTP is unaware of the protocols being used below DTLS; hence, explicit IP addresses cannot be used in the SCTP control chunks. As a consequence, the SCTP associations carried over DTLS can only be single-homed.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8261"/>
          <seriesInfo name="DOI" value="10.17487/RFC8261"/>
        </reference>
        <reference anchor="RFC8888" target="https://www.rfc-editor.org/info/rfc8888" quoteTitle="true" derivedAnchor="RFC8888">
          <front>
            <title>RTP Control Protocol (RTCP) Feedback for Congestion Control</title>
            <author fullname="Z. Sarker" initials="Z." surname="Sarker"/>
            <author fullname="C. Perkins" initials="C." surname="Perkins"/>
            <author fullname="V. Singh" initials="V." surname="Singh"/>
            <author fullname="M. Ramalho" initials="M." surname="Ramalho"/>
            <date month="January" year="2021"/>
            <abstract>
              <t indent="0">An effective RTP congestion control algorithm requires more fine-grained feedback on packet loss, timing, and Explicit Congestion Notification (ECN) marks than is provided by the standard RTP Control Protocol (RTCP) Sender Report (SR) and Receiver Report (RR) packets. This document describes an RTCP feedback message intended to enable congestion control for interactive real-time traffic using RTP. The feedback message is designed for use with a sender-based congestion control algorithm, in which the receiver of an RTP flow sends back to the sender RTCP feedback packets containing the information the sender needs to perform congestion control.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="8888"/>
          <seriesInfo name="DOI" value="10.17487/RFC8888"/>
        </reference>
        <reference anchor="RFC9000" target="https://www.rfc-editor.org/info/rfc9000" quoteTitle="true" derivedAnchor="RFC9000">
          <front>
            <title>QUIC: A UDP-Based Multiplexed and Secure Transport</title>
            <author fullname="J. Iyengar" initials="J." role="editor" surname="Iyengar"/>
            <author fullname="M. Thomson" initials="M." role="editor" surname="Thomson"/>
            <date month="May" year="2021"/>
            <abstract>
              <t indent="0">This document defines the core of the QUIC transport protocol. QUIC provides applications with flow-controlled streams for structured communication, low-latency connection establishment, and network path migration. QUIC includes security measures that ensure confidentiality, integrity, and availability in a range of deployment circumstances. Accompanying documents describe the integration of TLS for key negotiation, loss detection, and an exemplary congestion control algorithm.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9000"/>
          <seriesInfo name="DOI" value="10.17487/RFC9000"/>
        </reference>
        <reference anchor="RFC9260" target="https://www.rfc-editor.org/info/rfc9260" quoteTitle="true" derivedAnchor="RFC9260">
          <front>
            <title>Stream Control Transmission Protocol</title>
            <author fullname="R. Stewart" initials="R." surname="Stewart"/>
            <author fullname="M. Tüxen" initials="M." surname="Tüxen"/>
            <author fullname="K. Nielsen" initials="K." surname="Nielsen"/>
            <date month="June" year="2022"/>
            <abstract>
              <t indent="0">This document describes the Stream Control Transmission Protocol (SCTP) and obsoletes RFC 4960. It incorporates the specification of the chunk flags registry from RFC 6096 and the specification of the I bit of DATA chunks from RFC 7053. Therefore, RFCs 6096 and 7053 are also obsoleted by this document. In addition, RFCs 4460 and 8540, which describe errata for SCTP, are obsoleted by this document.</t>
              <t indent="0">SCTP was originally designed to transport Public Switched Telephone Network (PSTN) signaling messages over IP networks. It is also suited to be used for other applications, for example, WebRTC.</t>
              <t indent="0">SCTP is a reliable transport protocol operating on top of a connectionless packet network, such as IP. It offers the following services to its users:</t>
              <t indent="0">The design of SCTP includes appropriate congestion avoidance behavior and resistance to flooding and masquerade attacks.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9260"/>
          <seriesInfo name="DOI" value="10.17487/RFC9260"/>
        </reference>
        <reference anchor="RFC9293" target="https://www.rfc-editor.org/info/rfc9293" quoteTitle="true" derivedAnchor="RFC9293">
          <front>
            <title>Transmission Control Protocol (TCP)</title>
            <author fullname="W. Eddy" initials="W." role="editor" surname="Eddy"/>
            <date month="August" year="2022"/>
            <abstract>
              <t indent="0">This document specifies the Transmission Control Protocol (TCP). TCP is an important transport-layer protocol in the Internet protocol stack, and it has continuously evolved over decades of use and growth of the Internet. Over this time, a number of changes have been made to TCP as it was specified in RFC 793, though these have only been documented in a piecemeal fashion. This document collects and brings those changes together with the protocol specification from RFC 793. This document obsoletes RFC 793, as well as RFCs 879, 2873, 6093, 6429, 6528, and 6691 that updated parts of RFC 793. It updates RFCs 1011 and 1122, and it should be considered as a replacement for the portions of those documents dealing with TCP requirements. It also updates RFC 5961 by adding a small clarification in reset handling while in the SYN-RECEIVED state. The TCP header control bits from RFC 793 have also been updated based on RFC 3168.</t>
            </abstract>
          </front>
          <seriesInfo name="STD" value="7"/>
          <seriesInfo name="RFC" value="9293"/>
          <seriesInfo name="DOI" value="10.17487/RFC9293"/>
        </reference>
        <reference anchor="RFC9868" target="https://www.rfc-editor.org/info/rfc9868" quoteTitle="true" derivedAnchor="RFC9868">
          <front>
            <title>Transport Options for UDP</title>
            <author fullname="J. Touch" initials="J." surname="Touch"/>
            <author fullname="C. Heard" initials="C." role="editor" surname="Heard"/>
            <date month="October" year="2025"/>
            <abstract>
              <t indent="0">Transport protocols are extended through the use of transport header options. This document updates RFC 768 (UDP) by indicating the location, syntax, and semantics for UDP transport layer options within the surplus area after the end of the UDP user data but before the end of the IP datagram.</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="9868"/>
          <seriesInfo name="DOI" value="10.17487/RFC9868"/>
        </reference>
        <reference anchor="WINDOWS-DOC" target="https://learn.microsoft.com/en-us/windows/win32/api/ws2tcpip/nf-ws2tcpip-wsasetrecvipecn" quoteTitle="true" derivedAnchor="WINDOWS-DOC">
          <front>
            <title>WSASetRecvIPEcn function (ws2tcpip.h)</title>
            <author>
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2024" month="February" day="22"/>
          </front>
        </reference>
        <reference anchor="WINDOWS-SOCKOPT" target="https://learn.microsoft.com/en-us/windows/win32/winsock/ipproto-ip-socket-options" quoteTitle="true" derivedAnchor="WINDOWS-SOCKOPT">
          <front>
            <title>MSDN - IPPROTO_IP socket options</title>
            <author>
              <organization showOnFrontPage="true"/>
            </author>
            <date year="2026" month="May" day="07"/>
          </front>
        </reference>
      </references>
    </references>
    <section numbered="false" anchor="acknowledgments" removeInRFC="false" toc="include" pn="section-appendix.a">
      <name slugifiedName="name-acknowledgments">Acknowledgments</name>
      <t indent="0" pn="section-appendix.a-1">The author would like to thank <contact fullname="Ryan Hamilton"/>, who provided constant advice
through this effort. <contact fullname="Randall Meyer"/> from Apple and <contact fullname="Nick Grifka"/> from Microsoft
provided useful hints about the behavior of their respective operating systems.
However, the author takes full responsibility for any errors above.</t>
      <t indent="0" pn="section-appendix.a-2"><contact fullname="Michael Tüxen"/> wrote the "ecn-examples" code that was very helpful in verifying
the conclusions in this document. He also made multiple editorial contributions.</t>
      <t indent="0" pn="section-appendix.a-3"><contact fullname="Neal Cardwell"/>, <contact fullname="Gorry Fairhurst"/>, <contact fullname="Max Franke"/>, <contact fullname="Rodney Grimes"/>, <contact fullname="Will Hawkins"/>,
<contact fullname="Guillaume Hétier"/>, <contact fullname="Max Inden"/>, <contact fullname="Jonathan Lennox"/>, <contact fullname="Colin Perkins"/>, <contact fullname="Marten Seemann"/>, and <contact fullname="Greg White"/> made improvements to this document.</t>
    </section>
    <section anchor="authors-addresses" numbered="false" removeInRFC="false" toc="include" pn="section-appendix.b">
      <name slugifiedName="name-authors-address">Author's Address</name>
      <author initials="M." surname="Duke" fullname="Martin Duke">
        <organization showOnFrontPage="true">Google</organization>
        <address>
          <email>martin.h.duke@gmail.com</email>
        </address>
      </author>
    </section>
  </back>
</rfc>
