Internet-Draft | Proto Num Opt in UDP Options | July 2023 |
Yuyama & Asai | Expires 11 January 2024 | [Page] |
This document defines the protocol number option in UDP options. The protocol number option specifies the protocol immediately following the UDP header.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 11 January 2024.¶
Copyright (c) 2023 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, 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.¶
The User Datagram Protocol [RFC0768] provides only a port number and a checksum as a minimum functional transport protocol. Because of its simplicity and interoperability in the Internet, new transport protocols such as QUIC [RFC9000] and SCTP [RFC6951] are implemented over UDP. However, UDP has no field in the header that identifies the encapsulated protocol. Typically, the IANA port number [IANA_service_names_port_numbers] is used for that purpose, but the port number corresponds to the service of the communication. We argue that it is a clear misuse of the port number to indicate the protocol on UDP. Currently, it is not possible to provide the UDP layer with information that maps UDP to the transport protocols implemented on top of UDP.¶
Transport Options for UDP [I-D.ietf-tsvwg-udp-options] is a proposal for extending UDP to have an options area, using the difference between the total length field in the IP header and the length field in the UDP field. It allows options to be added in TLV(Type-Length-Value) format.¶
This document describes the protocol number option, which allows information about the protocol following the UDP header to be provided in the UDP options area.¶
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.¶
Frequently, new transport protocols are implemented based on UDP, such as QUIC, and are used as transport protocols for existing applications.¶
The following are examples of applications that operate using UDP-based transport protocols.¶
HTTP¶
DNS¶
The UDP header does not have any information to identify the encapsulated protocol. Without this information, problems may arise when there are applications that can communicate with multiple transport protocols using the same port number. In the case of client-server communication, the server cannot instantly determine which transport protocol was used to send the packet sent by the client.¶
For instance, when a new transport protocol other than QUIC is developed and used that is based on UDP and works as a transport for HTTP, the server will not be able to instantly identify whether QUIC is used as the transport protocol or the new one is used.¶
Therefore, if the next protocol after the UDP header is a transport protocol, it should be possible to have a field in the UDP layer information that identifies the protocol that follows the UDP header.¶
The protocol number is a number to identify the protocol immediately following the UDP header. In many cases, the port number of the transport layer is available for this number, but a new protocol number is needed for protocols that do not have a port number, such as QUIC.¶
The UDP option is provided in the form of a TLV. The protocol number is represented by 16 bits. It is shown in Figure 1.¶
TBD¶
On publication, request IANA to create a new registry for protocol numbers. The details of the number will be described in a later revision. Also, request IANA to assign one number from the Safe Options range of the UDP Option Kind Number as Protocol Number (PROTONUM).¶
This document should not affect the security of the Internet.¶