RFC 9870
Export of UDP Options Information in IP Flow Information Export (IPFIX)
RFC 9870: Export of UDP Options Information in IP Flow Information Export (IPFIX) ๐
okay bestie, this one is the spec for how routers and flow collectors can report which UDP Options they spotted in traffic ๐ฆ It's Standards Track, so it's an official Internet protocol doc, not just a vibe.
Title block facts:
- Series and number: RFC 9870
- Written by: M. Boucadair (Orange) and T. Reddy.K (Nokia)
- Category: Standards Track
- ISSN: 2070-1721
- Date: October 2025
- Obsoletes or updates: the title block doesn't list any, so this one doesn't touch another RFC in that way ๐
Abstract โจ
This doc specifies new IP Flow Information Export (IPFIX) Information Elements for UDP Options. ๐
Status of This Memo ๐
This is an Internet Standards Track document.
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). Further information on Internet Standards is available in Section 2 of RFC 7841.
Info about the current status of this document, any errata, and how to send feedback can be found at https://www.rfc-editor.org/info/rfc9870. ๐ธ
Copyright Notice ยฉ๏ธ
Copyright (c) 2025 IETF Trust and the persons identified as the document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, since 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. โญ
Table of Contents ๐ง
1. Introduction
2. Conventions and Definitions
3. UDP Options at a Glance
4. New UDP IPFIX Information Elements
4.1. udpSafeOptions
4.2. udpUnsafeOptions
4.3. udpExID
5. Examples
5.1. Reduced-Size Encoding
5.2. SAFE Experimental Option
5.3. ExIDs and Reduced-Size Encoding
6. Security Considerations
7. IANA Considerations
7.1. IPFIX Information Elements
8. References
8.1. Normative References
8.2. Informative References
Acknowledgments
Authors' Addresses
1. Introduction ๐
okay so IP Flow Information Export (IPFIX) [RFC7011] is a protocol that's already everywhere in networks for traffic management (Section 2 of [RFC6632]) ๐ It defines how a set of basic data types gets encoded and how the different Information Elements (IEs) get sent. To export new flow measurement data, new IEs can be defined and registered in a dedicated IANA registry [IANA-IPFIX] so everyone can interoperate. It's giving organization. โจ
This document defines new IPFIX Information Elements for UDP Options (Section 4). There's a quick overview of UDP Options in Section 3.
The IE in Section 4.1 uses the new abstract data type ("unsigned256") from [RFC9740]. ๐ฆ
Transport stuff (including MTU) is covered in Section 10 of [RFC7011].
Examples showing how to use the new IPFIX IEs are in Section 5. ๐ซถ
2. Conventions and Definitions ๐
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. So capitals = official meaning, lowercase = just normal words ๐
This doc uses IPFIX-specific terminology (like Flow) defined in Section 2 of [RFC7011]. Same as the base IPFIX spec [RFC7011], these IPFIX-specific terms get a capital first letter. ๐
The document follows the naming conventions for Information Elements in Section 2.3 of [RFC7012]. ๐
This doc also uses the terms defined in Section 3 of [RFC9868], especially "datagram" and "surplus area". ๐
3. UDP Options at a Glance ๐ฆ
ngl, UDP [RFC0768] has no extension mechanism like the options that other transport protocols have, such as TCP [RFC9293], Stream Control Transmission Protocol (SCTP) [RFC9260], or Datagram Congestion Control Protocol (DCCP) [RFC4340]. That's a real gap, because apps can use this for stuff like discovering a path MTU or sharing timestamps. To fill the void, [RFC9868] extends UDP with a way to insert extensions into datagrams. Unlike the usual approach that relies on transport headers, [RFC9868] uses trailers ๐ง Concretely, UDP Options go in the surplus area, which is the part of the IP payload that comes after a UDP packet. See Figure 1. An example of UDP Options being used for Datagram Packetization Layer Path MTU Discovery (DPLPMTUD) is described in [RFC9869]. ๐
IP transport payload
<------------------------------------------------->
+--------+---------+----------------------+------------------+
| IP Hdr | UDP Hdr | UDP user data | surplus area |
+--------+---------+----------------------+------------------+
<------------------------------>
UDP Length
Figure 1: Surplus Area
Sections 4.1 and 4.2 define new IEs to export the observed UDP Options. ๐ค
UDP Options are uniquely identified by a 1-byte field called "Kind". ๐
Options with Kind values in the range 0-191 are called SAFE Options. Legacy receivers can silently ignore these because they don't alter the UDP user data (Section 11 of [RFC9868]). SAFE Options are exported using the IE defined in Section 4.1. ๐ซง
Options with Kind values in the range 192-255 are called UNSAFE Options. Legacy receivers can't safely ignore these, because they alter the UDP user data (Section 12 of [RFC9868]). UNSAFE Options are exported using the IE defined in Section 4.2. ๐จ
UDP Options show up per-packet within a Flow, and they can be inserted at any time in the Flow. โฐ
[RFC9868] reserves two options for experiments: the Experimental (EXP, Kind=127) Option for SAFE Options, and the UNSAFE Experimental (UEXP, Kind=254) Option. Both use Experiment Identifiers (ExIDs) to tell apart concurrent uses of these options. Known ExIDs are expected to be registered with IANA. Section 4.4 defines a new IPFIX IE to export observed ExIDs in EXP Options, and Section 4.5 defines one to export observed ExIDs in UEXP Options. Only 16-bit ExIDs are supported in [RFC9868]. ๐งช
This document doesn't try to cover operational guidance or implications of UDP Options. It only focuses on exporting observed UDP Options in datagrams. ๐ โโ๏ธ
4. New UDP IPFIX Information Elements ๐
Here's the deal: the Kind structure of SAFE and UNSAFE UDP Options means that one single IE multiplexing both types would waste the benefits of reduced-size encoding whenever UNSAFE Options are around. For example, at least 24 octets would be needed just to report mandatory SAFE Options observed in a Flow. So to use fewer bits to report observed UDP Options, separate IEs are defined for SAFE (Section 4.1) and UNSAFE (Section 4.2) UDP Options. As Section 5.1 explains further, only one octet is needed to report mandatory SAFE Options. ๐ซฐ
4.1. udpSafeOptions ๐
- Name:
udpSafeOptions - ElementID:
525 - Description: This IE reports observed SAFE UDP Options in a Flow, encoded as a set of bit fields. ๐งฉ
Options get mapped to bits according to their option numbers. UDP Option Kind 0 maps to the least significant bit of the udpSafeOptions IE, while Kind 191 maps to the 65th most significant bit of the IE. The bit is set to 1 if the matching SAFE UDP Option is observed at least once in the Flow, and it's set to 0 if that option is never observed in the Flow. The 64 most significant bits MUST be set to 0. ๐ฏ
The reduced-size encoding from Section 6.2 of [RFC7011] is used whenever fewer octets are enough to report observed SAFE UDP Options. For example, if only option Kinds <= 31 are observed, the udpSafeOptions IE value can be encoded as unsigned32. If only option Kinds <= 63 are observed, it can be encoded as unsigned64. ๐
The presence of udpSafeExIDList indicates that the SAFE Experimental Option is observed in a Flow. Its presence takes precedence over setting the matching bit in the udpSafeOptions IE for the same Flow. To optimize the use of reduced-size encoding when the udpSafeExIDList IE is present, the Exporter MUST NOT set the EXP flag of the udpSafeOptions IE reported for the same Flow to 1. ๐
- Abstract Data Type:
unsigned256 - Data Type Semantics:
flags - Additional Information: See the "UDP Option Kind Numbers" registry at [UDP_OPTIONS]. See [RFC9868] for more details about UDP Options.
- Reference:
RFC 9870
4.2. udpUnsafeOptions ๐ฅ
- Name:
udpUnsafeOptions - ElementID:
526 - Description: This IE reports observed UNSAFE UDP Options in a Flow, encoded as a set of bit fields. ๐งฉ
Options get mapped to bits according to their option numbers. UDP Option Kind 192 maps to the least significant bit of the udpUnsafeOptions IE, while Kind 255 maps to the most significant bit of the IE. The bit is set to 1 if the matching UNSAFE UDP Option is observed at least once in the Flow, and it's set to 0 if that option is never observed in the Flow. ๐ฏ
The reduced-size encoding from Section 6.2 of [RFC7011] is used whenever fewer octets are enough to report observed UNSAFE UDP Options. ๐
The presence of udpUnsafeExIDList indicates that the UNSAFE Experimental Option is observed in a Flow. Its presence takes precedence over setting the matching bit in the udpUnsafeOptions IE for the same Flow. To optimize the use of reduced-size encoding when the udpUnsafeExIDList IE is present, the Exporter MUST NOT set the UEXP flag of the udpUnsafeOptions IE reported for the same Flow to 1. ๐ โโ๏ธ
- Abstract Data Type:
unsigned64 - Data Type Semantics:
flags - Additional Information: See the "UDP Option Kind Numbers" registry at [UDP_OPTIONS]. See [RFC9868] for more details about UDP Options.
- Reference:
RFC 9870
4.3. udpExID ๐ง
- Name:
udpExID - ElementID:
527 - Description: This IE reports an observed ExID in an Experimental (EXP, Kind=127) Option or an UNSAFE Experimental (UEXP, Kind=254) Option. A basicList of udpExID is used to report udpSafeExIDList and udpUnsafeExIDList values. ๐ช
- Abstract Data Type:
unsigned16 - Data Type Semantics:
identifier - Additional Information: See the "TCP/UDP Experimental Option Experiment Identifiers (TCP/UDP ExIDs)" registry at [UDP_ExIDs]. See [RFC9868] for more details about ExIDs.
- Reference:
RFC 9870
4.4. udpSafeExIDList โจ
okay so this one is the list of ExIDs ๐
- Name:
udpSafeExIDList - ElementID:
528 - Description: Observed ExIDs in the Experimental (EXP, Kind=127) Option. It's a basicList of udpExID IEs, and each udpExID IE carries the ExID observed in an EXP Option ๐ฅ
- Abstract Data Type:
basicList - Data Type Semantics:
list - Additional Information: Check the "TCP/UDP Experimental Option Experiment Identifiers (TCP/UDP ExIDs)" registry at [UDP_ExIDs]. See [RFC9868] for more details about ExIDs.
- Reference:
RFC 9870
4.5. udpUnsafeExIDList ๐
same energy, different vibe ๐
- Name:
udpUnsafeExIDList - ElementID:
529 - Description: Observed ExIDs in the UNSAFE Experimental (UEXP, Kind=254) Option. It's a basicList of udpExID IEs, and each udpExID IE carries the ExID observed in a UEXP Option ๐
- Abstract Data Type:
basicList - Data Type Semantics:
list - Additional Information: Check the "TCP/UDP Experimental Option Experiment Identifiers (TCP/UDP ExIDs)" registry at [UDP_ExIDs]. See [RFC9868] for more details about ExIDs.
- Reference:
RFC 9870
5. Examples ๐
5.1. Reduced-Size Encoding ๐
okay, examples time, and I'm obsessed. Given the UDP Kind allocation in Section 10 of [RFC9868] and the option mapping defined in Section 4.1 of this document, fewer octets are likely to be used for Flows with mandatory UDP Options. Lowkey genius ๐ง
Figure 2 shows an example of the Kind/bit mappings in the udpSafeOptions IE for a Flow in which End of Options List (EOL, Kind=0) and Additional Payload Checksum (APC, Kind=2) Options are observed. Only the bits that correspond to EOL and APC Options are set to 1.
MSB LSB
1 25
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 ... 8 9 0 1 2 3 4 5
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+...+-+-+-+-+-+-+-+-+
|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0| |0|0|0|0|0|1|0|1|
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-++-++-+-+-+-+...+-+-+-+-+-+-+-+-+
Figure 2: An Example of udpSafeOptions IE with EOL and APC Options
One octet is sufficient to report these observed options because the leading zeros are dropped per the reduced-size encoding guidance. Concretely, the reported udpSafeOptions IE will be set to 0x05 (Figure 3).
MSB LSB
0 1 2 3 4 5 6 7
+-+-+-+-+-+-+-+-+
|0|0|0|0|0|1|0|1|
+-+-+-+-+-+-+-+-+
Figure 3: An Example of the Wire udpSafeOptions IE Value with EOL and APC Options
5.2. SAFE Experimental Option ๐ฆ
let's now look at a UDP Flow where SAFE Experimental Options are observed ๐ If a udpSafeOptions IE is exported for this Flow, then that IE will have the EXP bit set to 1 (Figure 4). This example does not make any assumption about the presence of other UDP Options ("X" can be set to 0 or 1). Iykyk โจ
MSB LSB
12 25
0 1 2 3 ... 7 8 9 0 1 2 3 4 5 6 7 8 9 ... 8 9 0 1 2 3 4 5
+-+-+-+-+...+-+-+-+-+-+-+-+-+-+-+-+-+-+-+...+-+-+-+-+-+-+-+
|X|X|X|X| |X|X|X|X|X|X|X|X|X|X|X|1|X|X| |X|X|X|X|X|X|X|
+-+-+-+-+...+-+-+-+-+-+-+-+-+-++-++-+-+-+-+...+-+-+-+-+-+-+-+
Figure 4: An Example of udpSafeOptions with EXP Option
5.3. ExIDs and Reduced-Size Encoding ๐
now imagine EOL, APC, EXP, and UEXP Options are all observed in one Flow ๐คฏ Say the observed SAFE Experimental Options have ExIDs set to 0x9858 and 0xE2D4, and the UNSAFE Experimental Options have ExIDs set to 0xC3D9 and 0x1234. Figure 5 shows an excerpt of the Data Set encoding with a focus on SAFE Experimental Options that have ExIDs. The fields are defined in [RFC6313].
MSB LSB
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
: ... :
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| 255 | List Length = 9 |semantic=allof |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| udpExID = 527 | Field Length = 2 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| SAFE ExID = 0x9858 | SAFE ExID = 0xE2D4 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| 255 | List Length = 9 |semantic=allof |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| udpExID = 527 | Field Length = 2 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| UNSAFE ExID = 0xC3D9 | UNSAFE ExID = 0x1234 |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
: ... :
Figure 5: Example of UDP Experimental Option ExID IEs
Following the guidance in Section 4.1, the reported udpSafeOptions IE will be set to 0x05 even in the presence of EXP Options. Periodt ๐
6. Security Considerations ๐ฅ
โ ๏ธ Security is serious business, bestie, so read this part carefully ๐
This document does not introduce new security considerations other than those already discussed in Section 11 of [RFC7011] and Section 8 of [RFC7012].
The reader may refer to Section 24 of [RFC9868] for the security considerations related to UDP Options.
7. IANA Considerations ๐ธ
7.1. IPFIX Information Elements ๐ง
IANA has added the following new IEs to the "IPFIX Information Elements" registry under the "IP Flow Information Export (IPFIX) Entities" registry group [IANA-IPFIX]:
+===========+===================+=========================+
| ElementID | Name | Reference |
+===========+===================+=========================+
| 525 | udpSafeOptions | Section 4.1 of RFC 9870 |
+-----------+-------------------+-------------------------+
| 526 | udpUnsafeOptions | Section 4.2 of RFC 9870 |
+-----------+-------------------+-------------------------+
| 527 | udpExID | Section 4.3 of RFC 9870 |
+-----------+-------------------+-------------------------+
| 528 | udpSafeExIDList | Section 4.4 of RFC 9870 |
+-----------+-------------------+-------------------------+
| 529 | udpUnsafeExIDList | Section 4.5 of RFC 9870 |
+-----------+-------------------+-------------------------+
Table 1: New IPFIX Information Elements
udpSafeOptions uses the abstract data type ("unsigned256") defined in [RFC9740].
8. References ๐
8.1. Normative References
[RFC0768]Postel, J., "User Datagram Protocol", STD 6, RFC 768, DOI 10.17487/RFC0768, August 1980,https://www.rfc-editor.org/info/rfc768.[RFC2119]Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997,https://www.rfc-editor.org/info/rfc2119.[RFC6313]Claise, B., Dhandapani, G., Aitken, P., and S. Yates, "Export of Structured Data in IP Flow Information Export (IPFIX)", RFC 6313, DOI 10.17487/RFC6313, July 2011,https://www.rfc-editor.org/info/rfc6313.[RFC7011]Claise, B., Ed., Trammell, B., Ed., and P. Aitken, "Specification of the IP Flow Information Export (IPFIX) Protocol for the Exchange of Flow Information", STD 77, RFC 7011, DOI 10.17487/RFC7011, September 2013,https://www.rfc-editor.org/info/rfc7011.[RFC7012]Claise, B., Ed. and B. Trammell, Ed., "Information Model for IP Flow Information Export (IPFIX)", RFC 7012, DOI 10.17487/RFC7012, September 2013,https://www.rfc-editor.org/info/rfc7012.[RFC8174]Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017,https://www.rfc-editor.org/info/rfc8174.[RFC9740]Boucadair, M. and B. Claise, "New IPFIX Information Elements for TCP Options and IPv6 Extension Headers", RFC 9740, DOI 10.17487/RFC9740, March 2025,https://www.rfc-editor.org/info/rfc9740.[RFC9868]Touch, J. and C. Heard, Ed., "Transport Options for UDP", RFC 9868, DOI 10.17487/RFC9868, October 2025,https://www.rfc-editor.org/info/rfc9868.
8.2. Informative References
[IANA-IPFIX]IANA, "IP Flow Information Export (IPFIX) Entities",https://www.iana.org/assignments/ipfix.[RFC4340]Kohler, E., Handley, M., and S. Floyd, "Datagram Congestion Control Protocol (DCCP)", RFC 4340, DOI 10.17487/RFC4340, March 2006,https://www.rfc-editor.org/info/rfc4340.[RFC6632]Ersue, M., Ed. and B. Claise, "An Overview of the IETF Network Management Standards", RFC 6632, DOI 10.17487/RFC6632, June 2012,https://www.rfc-editor.org/info/rfc6632.[RFC9260]Stewart, R., Tรผxen, M., and K. Nielsen, "Stream Control Transmission Protocol", RFC 9260, DOI 10.17487/RFC9260, June 2022,https://www.rfc-editor.org/info/rfc9260.[RFC9293]Eddy, W., Ed., "Transmission Control Protocol (TCP)", STD 7, RFC 9293, DOI 10.17487/RFC9293, August 2022,https://www.rfc-editor.org/info/rfc9293.[RFC9869]Fairhurst, G. and T. Jones, "Datagram Packetization Layer Path MTU Discovery (DPLPMTUD) for UDP Options", RFC 9869, DOI 10.17487/RFC9869, October 2025,https://www.rfc-editor.org/info/rfc9869.[UDP_ExIDs]IANA, "TCP/UDP Experimental Option Experiment Identifiers (TCP/UDP ExIDs)",https://www.iana.org/assignments/udp.[UDP_OPTIONS]IANA, "UDP Option Kind Numbers",https://www.iana.org/assignments/udp.
Acknowledgments ๐ซถ
Thanks to Benoรฎt Claise for the discussion on the ordering of IPFIX IEs. Thanks to Paul Aitken for the review and comments.
Thanks to Tommy Pauly for the TSVART review, Joe Touch for the INTDIR review, Robert Sparks for the GENART review, Watson Ladd for the SECDIR review, and Jouni Korhonen for the OPSDIR review.
Thanks to Thomas Graf for the shepherd review.
Thanks to Mahesh Jethanandani for the AD review.
Thanks to รric Vyncke, Roman Danyliw, and Zahed Sarker for the IESG review.
Authors' Addresses ๐ฆ
Mohamed Boucadair Orange 35000 Rennes France Email: mohamed.boucadair@orange.com
Tirumaleswar Reddy.K Nokia India Email: kondtir@gmail.com
๐ฆ where this page comes from
- ietf: rfc9870 2025-10
- ๐ girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms