RFC 8923
A Minimal Set of Transport Services for End Systems
RFC 8923: A Minimal Set of Transport Services for End Systems ๐
Title block (the important bits, bestie): This one is by M. Welzl and S. Gjessing from the University of Oslo. It's an Informational doc, not a Standards Track spec, published in October 2020 as RFC 8923 (ISSN 2070-1721). The title block doesn't list anything it obsoletes or updates. ๐
Abstract โจ
This document recommends a minimal set of Transport Services offered by end systems and gives guidance on choosing among the available mechanisms and protocols. It is based on the set of transport features in RFC 8303. ๐ฆ
Status of This Memo ๐
This document is not an Internet Standards Track specification; it is published for informational purposes.
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.
Information about the current status of this document, any errata, and how to provide feedback on it may be obtained at https://www.rfc-editor.org/info/rfc8923. ๐ธ
Copyright Notice ยฉ๏ธ
Copyright (c) 2020 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 Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Simplified BSD License. ๐
Table of Contents ๐๏ธ
1. Introduction
2. Terminology
3. Deriving the Minimal Set
4. The Reduced Set of Transport Features
4.1. CONNECTION-Related Transport Features
4.2. DATA-Transfer-Related Transport Features
4.2.1. Sending Data
4.2.2. Receiving Data
4.2.3. Errors
5. Discussion
5.1. Sending Messages, Receiving Bytes
5.2. Stream Schedulers without Streams
5.3. Early Data Transmission
5.4. Sender Running Dry
5.5. Capacity Profile
5.6. Security
5.7. Packet Size
6. The Minimal Set of Transport Features
6.1. ESTABLISHMENT, AVAILABILITY, and TERMINATION
6.2. MAINTENANCE
6.2.1. Connection Groups
6.2.2. Individual Connections
6.3. DATA Transfer
6.3.1. Sending Data
6.3.2. Receiving Data
7. IANA Considerations
8. Security Considerations
9. References
9.1. Normative References
9.2. Informative References
Appendix A. The Superset of Transport Features
A.1. CONNECTION-Related Transport Features
A.2. DATA-Transfer-Related Transport Features
A.2.1. Sending Data
A.2.2. Receiving Data
A.2.3. Errors
Acknowledgements
Authors' Addresses
1. Introduction ๐
Okay so, right now most apps use a Transport Service that's based on TCP and UDP (plus anything layered on top of them). That's kinda limiting, because the network stack can't easily use features from other transport protocols. ๐ For example, say a protocol supports out-of-order message delivery, but apps always assume the network gives them an ordered byte stream. Then the network stack can't immediately deliver a message that shows up out of order, because that would break a basic assumption the app makes. The net result is unnecessary head-of-line blocking delay. Not it. ๐
By exposing the Transport Services of multiple transport protocols, a transport system can let apps use those services without being stuck to one specific transport protocol. ๐ฆ The first steps toward this were taken by [RFC8095], which surveys a big pile of transports, and by [RFC8303] and [RFC8304]. Those identify the specific transport features that TCP, Multipath TCP (MPTCP), UDP(-Lite), and Stream Control Transmission Protocol (SCTP) expose to applications, plus the Low Extra Delay Background Transport (LEDBAT) congestion control mechanism. LEDBAT is the only congestion control mechanism on that list, and that's because its "low extra delay background transport" service is seriously different from what other congestion control mechanisms offer. This memo is based on those documents and uses the same terminology (also listed below). Since the transport protocols they looked at cover a really wide range of transport features, there's good reason to hope that the resulting set, and the reasoning behind it, will also apply to lots of other transport protocols that are in use today or will be designed later. โจ
Now, decoupling apps from transport protocols gives a transport system a different abstraction level than the Berkeley sockets interface [POSIX]. It's like high-level vs. low-level programming languages: a higher abstraction level gives more freedom for automation below the interface, but it takes some control away from the app programmer. ๐ง That's the design trade-off a transport system developer is facing, and this document gives guidance on designing this abstraction level. Some transport features are rarely offered by APIs right now, yet they must be offered or they can never be used. Other transport features are offered by the APIs of the protocols covered here, but not exposing them in an API would allow more freedom to automate protocol usage in a transport system. The minimal set presented here is an effort to find a middle ground that transport systems can recommend implementing, based on the transport features discussed in [RFC8303]. ๐
Apps use a wild variety of APIs today. This document was created to make sure the API developed in the Transport Services (TAPS) Working Group [TAPS-INTERFACE] includes the most important transport features. But the minimal set presented here must be reflected in all network APIs for the underlying functionality to become usable everywhere. ๐ญ For example, it doesn't help an app that talks to a library offering its own communication interface if the underlying Berkeley Sockets API gets extended to offer "unordered message delivery", but the library only exposes an ordered byte stream. Both the Berkeley Sockets API and the library would have to expose the "unordered message delivery" transport feature. (Alternatively, there may be ways for certain types of libraries to use this transport feature without exposing it, based on knowledge about the applications, but that's not the general case.) Similarly, transport protocols like the Stream Control Transmission Protocol (SCTP) offer multi-streaming, which can't be used, e.g., to prioritise messages between streams, unless applications communicate the priorities and the group of connections those priorities should be applied to. In most situations, for the sake of being as flexible and efficient as possible, the best choice will be for a library to expose at least all of the transport features recommended as a "minimal set" here. ๐ซถ
This "minimal set" can be implemented "one-sided" over TCP. That means a sender-side transport system can talk to a standard TCP receiver, and a receiver-side transport system can talk to a standard TCP sender. ๐ If certain limitations are put in place, the "minimal set" can also be implemented "one-sided" over UDP. That one-sided implementation may help with deployment, but it comes at the cost of limiting the set to services that TCP can also provide (or, with further limitations, UDP). So the minimal set here applies to many, but not all, applications. Some application protocols have requirements that this "minimal set" doesn't meet. ๐ธ
Note that, throughout this document, protocols are meant to be used natively. For example, when transport features of TCP, or "implementation over" TCP, are discussed, that refers to native usage of TCP, not TCP being encapsulated in some other transport protocol such as UDP. ๐
2. Terminology ๐
Key terms, bestie. Read these before you go any further. ๐
- Transport Feature: A specific end-to-end feature that the transport layer provides to an application. Examples include confidentiality, reliable delivery, ordered delivery, message-versus-stream orientation, etc.
- Transport Service: A set of Transport Features, without an association to any given framing protocol, that provides a complete service to an application.
- Transport Protocol: An implementation that provides one or more different Transport Services using a specific framing and header format on the wire.
- Application: An entity that uses a transport-layer interface for end-to-end delivery of data across the network (this may also be an upper-layer protocol or tunnel encapsulation).
- Application-specific knowledge: Knowledge that only applications have.
- End system: An entity that communicates with one or more other end systems using a transport protocol. An end system provides a transport-layer interface to applications.
- Connection: Shared state of two or more end systems that persists across messages that are transmitted between these end systems.
- Connection Group: A set of connections that share the same configuration (configuring one of them causes all other connections in the same group to be configured in the same way). We call connections that belong to a connection group "grouped", while "ungrouped" connections are not a part of a connection group. ๐ฆ
- Socket: The combination of a destination IP address and a destination port number.
Moreover, throughout the document, the protocol name "UDP(-Lite)" is used when discussing transport features that are equivalent for UDP and UDP-Lite. Similarly, the protocol name "TCP" refers to both TCP and MPTCP. ๐
Part 1 done, bestie! ๐ Part 2 is coming up next, so stay tuned ๐
3. Deriving the Minimal Set ๐
okay so we're starting from the assumption that apps don't have any special demands that need to know about the network, like which network interface to use or which end-to-end path to take ๐ฃ๏ธ. even with that assumption, there are certain requirements that transport protocols strictly keep today, and a transport system must keep them too ๐ . some of these requirements are about transport features we call "Functional".
"Functional" transport features give you functionality that you can't use unless the application knows about it, or they break assumptions that could make the application fail ๐ญ. for example, ordered message delivery is a functional transport feature. you can't configure it without the application knowing, because the app might be assuming messages always arrive in order ๐ฌ. "failure" includes any change to application behavior that isn't about performance, like security ๐.
"Change DSCP" and "Disable Nagle algorithm" are examples of transport features we call "Optimizing" โจ. if a transport system decides on its own to turn them on or off, the application won't fail ๐. but the transport system may be able to communicate more efficiently if the application is the one in control of this optimizing transport feature ๐ง . these features need application-specific knowledge, like about delay or bandwidth requirements, or how long the future data blocks to be sent will be ๐.
the transport features of IETF transport protocols that don't need application-specific knowledge, and could therefore be used by a transport system on its own without involving the application, are called "Automatable" ๐ค๐.
here's how we build the minimal set, step by step ๐งฉ:
- Categorization (Appendix A): The superset of transport features from [RFC8303] is presented, and transport features are categorized as Functional, Optimizing, or Automatable for later reduction.
- Reduction (Section 4): A shorter list of transport features is derived from the categorization in the first step. This removes all transport features that do not require application-specific knowledge or would result in semantically incorrect behavior if they were implemented over TCP or UDP.
- Discussion (Section 5): The resulting list shows a number of peculiarities that are discussed, to provide a basis for constructing the minimal set.
- Construction (Section 6): Based on the reduced set and the discussion of the transport features therein, a minimal set is constructed.
following [RFC8303] and keeping its terminology, we split the transport features into two main groups ๐๏ธ:
- CONNECTION-related transport features
- ESTABLISHMENT
- AVAILABILITY
- MAINTENANCE
- TERMINATION
- DATA-Transfer-related transport features
- Sending Data
- Receiving Data
- Errors
4. The Reduced Set of Transport Features ๐ธ
by hiding automatable transport features from the application, a transport system gets chances to automate the use of network-related functionality ๐ช. that makes life way easier for the application programmer, and it allows optimizations that might not be possible for an application to do itself. for instance, system-wide configurations about using multiple interfaces can be exploited better if the choice of interface isn't entirely up to the application ๐. so, since they aren't strictly necessary to expose in a transport system, we leave automatable transport features out of the reduced set ๐ซ. that leaves us with only the transport features that are either optimizing or functional ๐.
a transport system should be able to communicate via TCP or UDP if alternative transport protocols turn out not to work ๐. for many transport features this is possible, often by simply not doing anything when a specific request is made ๐. for some transport features, though, it was found that neither TCP nor UDP can directly be used. in these cases, even doing nothing would cause semantically incorrect behavior ๐ฌ. whenever an application would make use of one of these transport features, it would rule out the possibility of using TCP or UDP ๐ โโ๏ธ. so we only keep the functional and optimizing transport features for which an implementation over either TCP or UDP is possible in our reduced set ๐ฏ.
the list below contains the transport features from Appendix A, reduced using these rules โจ. the "minimal set" derived in this document is meant to be implementable "one-sided" over TCP and, with limitations, UDP ๐ง. so in the list, we put T: in front of a transport feature if an implementation over TCP is possible, U: if an implementation over UDP is possible, and T,U: if an implementation over either TCP or UDP is possible ๐ท๏ธ.
4.1. CONNECTION-Related Transport Features ๐
ESTABLISHMENT:
T,U:ConnectT,U:Specify number of attempts and/or timeout for the first establishment messageT,U:Disable MPTCPT:Configure authenticationT:Hand over a message to reliably transfer (possibly multiple times) before connection establishmentT:Hand over a message to reliably transfer during connection establishment
AVAILABILITY:
T,U:ListenT,U:Disable MPTCPT:Configure authentication
MAINTENANCE:
T:Change timeout for aborting connection (using retransmit limit or time value)T:Suggest timeout to the peerT,U:Disable Nagle algorithmT,U:Notification of Excessive Retransmissions (early warning below abortion threshold)T,U:Specify DSCP fieldT,U:Notification of ICMP error message arrivalT:Change authentication parametersT:Obtain authentication informationT,U:Set Cookie life valueT,U:Choose a scheduler to operate between streams of an associationT,U:Configure priority or weight for a schedulerT,U:Disable checksum when sendingT,U:Disable checksum requirement when receivingT,U:Specify checksum coverage used by the senderT,U:Specify minimum checksum coverage required by receiverT,U:Specify DF fieldT,U:Get max. transport-message size that may be sent using a non-fragmented IP packet from the configured interfaceT,U:Get max. transport-message size that may be received from the configured interfaceT,U:Obtain ECN fieldT,U:Enable and configure a "Low Extra Delay Background Transfer"
TERMINATION:
T:Close after reliably delivering all remaining data, causing an event informing the application on the other sideT:Abort without delivering remaining data, causing an event informing the application on the other sideT,U:Abort without delivering remaining data, not causing an event informing the application on the other sideT,U:Timeout event when data could not be delivered for too long
4.2. DATA-Transfer-Related Transport Features ๐ฆ
4.2.1. Sending Data ๐ค
T:Reliably transfer data, with congestion controlT:Reliably transfer a message, with congestion controlT,U:Unreliably transfer a messageT:Configurable Message ReliabilityT:Ordered message delivery (potentially slower than unordered)T,U:Unordered message delivery (potentially faster than ordered)T,U:Request not to bundle messagesT:Specifying a key id to be used to authenticate a messageT,U:Request not to delay the acknowledgement (SACK) of a message
4.2.2. Receiving Data ๐ฅ
T,U:Receive data (with no message delimiting)U:Receive a messageT,U:Information about partial message arrival
4.2.3. Errors ๐จ
this section describes sending failures that are associated with a specific call in the "Sending Data" category (Appendix A.2.1) ๐งพ.
T,U:Notification of send failuresT,U:Notification that the stack has no more user data to sendT,U:Notification to a receiver that a partial message delivery has been aborted
5. Discussion ๐ง
the reduced set in the previous section has a few peculiarities, and we'll talk through them now ๐ต๏ธโโ๏ธ. this section focuses on TCP because, with one exception ("Receive a message", which we'll get to in Section 5.1), the list shows that UDP is strictly a subset of TCP ๐. we can first figure out how to build a transport system that runs over TCP, and then narrow the result down so the system can always run over either TCP or UDP (which effectively means removing everything related to reliability, ordering, authentication, and closing/aborting with a notification to the peer) ๐ชถ.
note that, because the functional transport features of UDP are a subset of TCP (except for "Receive a message"), TCP can be used as a replacement for UDP whenever an application doesn't need message delimiting, for example because the application-layer protocol already does it ๐ซถ. lots of applications already do this in practice, by trying UDP first and falling back to TCP if the connection fails ๐ฅ.
5.1. Sending Messages, Receiving Bytes ๐ฌโจ
Okay so, bestie, for building a transport system on top of TCP, there are a bunch of sending-related transport features, but on the receiving side there's only ONE: "Receive data (with no message delimiting)" ๐ฅบ. (And, honestly kind of a plot twist, "information about partial message arrival" is in the mix too ๐.) Also, "Receive a message" is the only non-automatable UDP(-Lite) feature that has NO way to be done over TCP. Iconic behavior from TCP, not gonna lie ๐.
So to support those TCP receiver semantics, we define an "Application-Framed Byte Stream" (AFra Byte Stream) ๐. The whole point is that senders get to think in messages while the TCP socket API barely changes ๐ . Like, nothing changes on the receiver side! The data just comes in through a normal TCP socket ๐ฆ.
In an AFra Byte Stream, the sending app can optionally tell the transport about message boundaries and per-message properties (configurable order and reliability, or embedding a request not to delay the acknowledgement of a message) ๐ธ. Whenever the sending app specifies per-message properties that relax the notion of reliable in-order delivery of bytes, it MUST assume that the receiving application is 1) able to determine message boundaries, provided that messages are always kept intact, and 2) able to accept these relaxed per-message properties ๐ซถ. Any signaling of that info to the peer is up to an application-layer protocol and is out of scope for this document ๐ง.
For example, if an app asks to send fixed-size messages of 100 bytes with partial reliability, the receiving app needs to be ready to accept data in 100-byte chunks ๐. Then, if some of those 100-byte messages go missing (e.g., if SCTP with Configurable Reliability is used), that's the expected app behavior โจ. With TCP, no messages would be missing, but that's also correct for the app, and the possible retransmission delay is acceptable within the best-effort service model (see Section 3.5 of [RFC7305]) ๐. Still, the receiving app would split the byte stream into 100-byte chunks ๐.
Note that this usage of messages does NOT require all messages to be equal in size ๐. Lots of app protocols use some form of Type-Length-Value (TLV) encoding, e.g., by defining a header with length fields ๐; another option is byte stuffing methods like Consistent Overhead Byte Stuffing (COBS) [COBS] ๐ฆ. If an app needs message numbers, e.g., to restore the correct sequence of messages, the app has to encode those itself, because SCTP's sequence-number-related transport features are NOT provided by the "minimum set" (all in the interest of enabling usage of TCP) ๐ญ.
5.2. Stream Schedulers without Streams ๐
We already said that multi-streaming doesn't require app-specific knowledge ๐ . Potential benefits or disadvantages of, e.g., using two streams of an SCTP association versus two separate SCTP associations or TCP connections are about the network and the transport protocol in use, NOT the app ๐ง . However, the transport features "Choose a scheduler to operate between streams of an association" and "Configure priority or weight for a scheduler" operate on streams ๐. Here, streams are the communication channels a scheduler operates between, and they can be assigned a priority ๐. Also, all the MAINTENANCE transport features operate on associations in the case of SCTP, meaning they apply to every stream in that association ๐.
With only these semantics needed, the interface to a transport system gets way easier if we assume that a connection could be not only a transport protocol's connection or association, but also, say, a stream of an existing SCTP association โจ. We only need a way to define a grouping of connections ๐. Then, all MAINTENANCE transport features can be said to operate on connection groups instead of connections, and a scheduler operates on the connections within a group ๐.
To be compatible with multiple transport protocols and let people uniformly access both transport connections and streams of a multi-streaming protocol, the semantics of opening and closing need to be the MOST RESTRICTIVE subset of all the underlying options ๐ญ. For example, TCP's support for half-closed connections can be seen as a feature on top of the more restrictive "ABORT" ๐ฅ; this feature can't be supported, because not all protocols used by a transport system (including streams of an association) support half-closed connections ๐.
5.3. Early Data Transmission ๐
There are two transport features about transferring a message early: "Hand over a message to reliably transfer (possibly multiple times) before connection establishment", which relates to TCP Fast Open [RFC7413], and "Hand over a message to reliably transfer during connection establishment", which relates to SCTP's ability to transfer data together with the COOKIE-Echo chunk ๐ผ. Also, without TCP Fast Open, TCP can send data during the handshake, together with the SYN packet ๐ธ. BUT the receiver of that data MAY NOT hand it over to the app until the handshake has completed ๐. Also, unlike TCP Fast Open, this data isn't delimited as a message by TCP (so it's not visible as a "message") ๐ซ . This is commonly available in TCP and supported in several implementations, even though the TCP specification doesn't explain how to provide it to apps ๐คทโโ๏ธ.
A transport system could tell apart the cases of sending data "before" (possibly multiple times) or "during" the handshake ๐ฏ. Or, alternatively, it could assume that data handed over early will be sent as early as possible, and "before" the handshake would only be used for messages that are explicitly marked as "idempotent" (i.e., it would be fine to send them multiple times) โป๏ธ.
How much data can actually get through before or during the handshake depends on a bunch of factors: the transport protocol, the use of header options, the choice of IPv4 and IPv6, and the Path MTU ๐. So a transport system SHOULD let a sending app query the maximum amount of data it can possibly send before (or, if exposed, during) connection establishment ๐ .
5.4. Sender Running Dry ๐๏ธ
The transport feature "Notification that the stack has no more user data to send" relates to SCTP's "SENDER DRY" notification ๐. These notifications can, in principle, be used to avoid an unnecessarily large send buffer while making sure the transport sender always has data ready whenever it gets a chance to transmit ๐ซถ. This has been found to be super beneficial for some apps [WWDC2015] ๐. BUT "SENDER DRY" really means the ENTIRE send buffer (unsent AND unacknowledged data) has emptied, so by the time it notifies the sender, it's already too late ๐ฉ: the transport protocol already missed a chance to send data ๐. Some modern TCP implementations now include the unspecified "TCP_NOTSENT_LOWAT" socket option proposed in [WWDC2015], which limits how much unsent data TCP can keep in the socket buffer ๐ง. That lets you specify at what buffer fill level the socket becomes writable, instead of waiting for the buffer to run completely empty ๐.
SCTP lets you configure the sender-side buffer too; the automatable transport feature "Configure send buffer size" provides this, but only for the complete buffer, which includes both unsent and unacknowledged data ๐ฆ. SCTP does NOT let you control those two sizes separately ๐ โโ๏ธ. So it makes sense for a transport system to offer uniform access to "TCP_NOTSENT_LOWAT" as well as the "SENDER DRY" notification ๐.
5.5. Capacity Profile ๐๏ธ
The transport features:
- Disable Nagle algorithm
- Enable and configure a "Low Extra Delay Background Transfer"
- Specify DSCP field
are ALL about QoS-style app needs like "low latency" or "scavenger" ๐โโ๏ธ๐จ. For flexibility, they could be offered in a uniform, more abstract way, where the transport system could, e.g., decide on its own how to combine LEDBAT-like congestion control with certain DSCP values, and the app would only specify a general "capacity profile" (a description of how it wants to use the available capacity) ๐. A need for "lowest possible latency at the expense of overhead" could then translate into automatically disabling the Nagle algorithm โก.
In some cases, the Nagle algorithm is best controlled directly by the app, because it's tied not just to a general profile but also to knowledge about the size of future messages ๐ง. For fine-grained control over Nagle-like behavior, there's the "Request not to bundle messages" feature ๐ฏ.
5.6. Security ๐
Both TCP and SCTP offer authentication ๐ก๏ธ. TCP authenticates complete segments. SCTP lets you configure which of its chunk types MUST always be authenticated; if that's exposed as-is, it creates an undesirable dependency on the transport protocol ๐ฌ. For compatibility with TCP, a transport system SHOULD only allow configuring complete transport layer packets, including headers, IP pseudo-header (if any) and payload ๐ซก.
Security is discussed in a separate document [RFC8922] ๐. The minimal set presented in this document excludes ALL security-related transport features from Appendix A: "Configure authentication", "Change authentication parameters", "Obtain authentication information", and "Set Cookie life value", as well as "Specifying a key id to be used to authenticate a message" ๐ซ. It also excludes security transport features not listed in Appendix A, including content privacy toward in-path devices ๐.
5.7. Packet Size ๐ฆโจ
UDP(-Lite) has a transport feature called "Specify DF field" ๐ณ๏ธ. This yields an error message when sending a message that exceeds the Path MTU, which is necessary for a UDP-based app to implement Path MTU Discovery (a function UDP-based apps MUST do by themselves) ๐ค. The "Get max. transport-message size that may be sent using a non-fragmented IP packet from the configured interface" transport feature yields an upper limit for the Path MTU (minus headers), so it can help implement Path MTU Discovery more efficiently ๐ง ๐.
6. The Minimal Set of Transport Features โจ
Okay bestie, so based on the sorting, trimming, and chatting we did in Section 3, this section lays out a minimal set of transport features that end systems should offer ๐ . Any setup built on this minimum set can always be realized over TCP ๐ธ, but it also gives the transport system the flexibility to pick a different transport if one is implemented ๐ฆ. In this section, "not UDP" is how we flag the stuff that can't be implemented over UDP ๐. Anything that isn't marked "not UDP" can also be implemented over UDP ๐.
The arguments in Section 5 ("discussion") are why the final version of the minimal set is as short, simple, and general as possible ๐. Still, there may be situations where those arguments don't apply ๐ค. For example, implementers might have specific reasons to expose multi-streaming as a visible feature to applications, or the restrictive open/close semantics might be problematic in some circumstances ๐ญ. In those cases, the representation in Section 4 ("reduction") should be considered โจ.
As in Section 3, Section 4, and [RFC8303], we sort the minimal set into two groups: 1) CONNECTION related (ESTABLISHMENT, AVAILABILITY, MAINTENANCE, TERMINATION) and 2) DATA Transfer related (Sending Data, Receiving Data, Errors) ๐ง. Quick heads up: the focus here is on the connections the transport system offers to the application as an abstraction ๐ซถ, not the connections of the transport protocols the transport system uses under the hood ๐.
6.1. ESTABLISHMENT, AVAILABILITY, and TERMINATION
A connection must first be "created" so there's room for some initial configuration before the transport system can actively or passively establish communication with a remote end system ๐. As part of configuring the new connection, an application can choose to disallow usage of MPTCP ๐ . Also, all configuration parameters in Section 6.2 can be used initially, although some of them may only take effect once a connection has been established with a chosen transport protocol โจ. Configuring early helps the transport system make the right calls ๐. For example, grouping information can influence whether or not the transport system implements a connection as a stream of a multi-streaming protocol's existing association ๐ง.
For ungrouped connections, early configuration is necessary because it lets the transport system know which protocols it should try to use ๐ฅ. This is especially true for a transport system that only makes a one-time choice for a particular protocol. That kind of system must know early about strict requirements that must be kept, or it can end up in a deadlock situation (e.g., having chosen UDP and later being asked to support reliable transfer) ๐ญ. As an example of how to handle these cases correctly, here's the decision tree (derived from Section 4.1, excluding authentication as explained in Section 8) ๐ธ:
+----------------------------------------------------------+
| Will it ever be necessary to offer any of the following? |
| * Reliably transfer data |
| * Notify the peer of closing/aborting |
| * Preserve data ordering |
+----------------------------------------------------------+
| |
|Yes |No
| (SCTP or TCP) | (All protocols
| can be used.) | can be used.)
V V
+--------------------------------------+ +-----------------------------+
| Is any of the following useful to | | Is any of the following |
| the application? | | useful to the application? |
| * Choosing a scheduler to operate | | * Specify checksum coverage |
| between connections in a group, | | used by the sender |
| with the possibility to configure | | * Specify minimum checksum |
| a priority or weight per connection| | coverage required by the |
| * Configurable message reliability | | receiver |
| * Unordered message delivery | +-----------------------------+
| * Request not to delay the | | |
| acknowledgement (SACK) of a message| |Yes |No
+--------------------------------------+ | |
| | | |
|Yes |No | |
V | V V
SCTP is | UDP-Lite is UDP is
preferred. | preferred. preferred.
V
+------------------------------------------------------+
| Is any of the following useful to the application? |
| * Hand over a message to reliably transfer (possibly |
| multiple times) before connection establishment |
| * Suggest timeout to the peer |
| * Notification of Excessive Retransmissions (early |
| warning below abortion threshold) |
| * Notification of ICMP error message arrival |
+------------------------------------------------------+
| |
|Yes |No
V V
TCP is preferred. SCTP and TCP
are equally preferable.
Note that this decision tree is not optimal for all cases ๐. For example, if an application wants to use "Specify checksum coverage used by the sender", which is only offered by UDP-Lite, and "Configure priority or weight for a scheduler", which is only offered by SCTP, the decision tree above will always choose UDP-Lite. That makes it impossible to use SCTP's schedulers with priorities between grouped connections ๐ฉ. Also, several other factors may influence the decisions for or against a protocol, e.g., penetration rates, the ability to work through NATs, etc. We caution implementers to be aware of the full set of trade-offs, and we recommend consulting the list in Section 4.1 when deciding how to initialize a connection ๐ง.
To summarize, the following parameters serve as input for the transport system to help it choose and configure a suitable protocol ๐:
- Reliability: a boolean that should be set to true when any of the following will be useful to the application: reliably transfer data; notify the peer of closing/aborting; or preserve data ordering.
- Checksum coverage: a boolean to specify whether it will be useful to the application to specify checksum coverage when sending or receiving.
- Configure message priority: a boolean that should be set to true when any of the following per-message configuration or prioritization mechanisms will be useful to the application: choosing a scheduler to operate between grouped connections, with the possibility to configure a priority or weight per connection; configurable message reliability; unordered message delivery; or requesting not to delay the acknowledgement (SACK) of a message.
- Early message timeout notifications: a boolean that should be set to true when any of the following will be useful to the application: hand over a message to reliably transfer (possibly multiple times) before connection establishment; suggest timeout to the peer; notification of excessive retransmissions (early warning below abortion threshold); or notification of ICMP error message arrival.
Once a connection is created, it can be queried for the maximum amount of data that an application can possibly expect to have reliably transmitted before or during transport connection establishment (with zero being a possible answer) (see Section 6.2.1) ๐. An application can also give the connection a message for reliable transmission before or during connection establishment (not UDP), and the transport system will then try to transmit it as early as possible ๐. An application can make sending a message particularly early happen by marking it as "idempotent" (see Section 6.3.1) ๐ฏ. In this case, the receiving application must be prepared to potentially receive multiple copies of the message ๐ซฃ. (Because idempotent messages are reliably transferred, asking for idempotence is not necessary for systems that support UDP ๐ .)
After creation, a transport system can actively establish communication with a peer, or it can passively listen for incoming connection requests ๐. Note that active establishment may or may not trigger a notification on the listening side. It's possible that the first notification on the listening side is the arrival of the first data that the active side sends. (A receiver-side transport system could handle this by continuing to block a "Listen" call, immediately followed, for example, by issuing "Receive". Callback-based implementations could simply skip the equivalent of "Listen".) This also means that the active opening side is assumed to be the first side sending data ๐.
A transport system can actively close a connection, meaning it terminates the connection after reliably delivering all remaining data to the peer (if reliable data delivery was requested earlier (not UDP)). In that case, the peer is notified that the connection is closed ๐. Alternatively, a connection can be aborted without delivering outstanding data to the peer ๐ฅ. If reliable or partially reliable data delivery was requested earlier (not UDP), the peer is notified that the connection is aborted ๐จ. A timeout can be configured to abort a connection when data could not be delivered for too long (not UDP). However, timeout-based abortion does not notify the peer application that the connection has been aborted ๐คท. Because half-closed connections are not supported, when a host implementing a transport system receives a notification that the peer is closing or aborting the connection (not UDP), its peer may not be able to read outstanding data ๐ต. This means that unacknowledged data residing in a transport system's send buffer may have to be dropped from that buffer upon arrival of a "close" or "abort" notification from the peer ๐ซ .
6.2. MAINTENANCE
A transport system must offer means to group connections, but it cannot guarantee truly grouping them using the transport protocols that it uses. For example, it cannot be guaranteed that connections become multiplexed as streams on a single SCTP association when SCTP may not be available ๐งฉ. The transport system must therefore ensure that group- versus non-group-configurations are handled correctly in some way (e.g., by applying the configuration to all grouped connections even when they are not multiplexed, or by informing the application about grouping success or failure) ๐ซถ.
As a general rule, any configuration described below should be carried out as early as possible to aid the transport system's decision making โฐ.
6.2.1. Connection Groups
The following transport features and notifications (some directly from Section 4; some new or changed, based on the discussion in Section 5) automatically apply to all grouped connections:
Configure a timeout (not UDP) This can be done with the following parameters:
- A timeout value for aborting connections, in seconds.
- A timeout value to be suggested to the peer (if possible), in seconds.
- The number of retransmissions after which the application should be notified of "Excessive Retransmissions".
Configure urgency This can be done with the following parameters:
- A number to identify the type of scheduler that should be used to operate between connections in the group (no guarantees given). Schedulers are defined in [RFC8260].
- A "capacity profile" number to identify how an application wants to use its available capacity. Choices can be "lowest possible latency at the expense of overhead" (which would disable any Nagle-like algorithm), "scavenger", or values that help determine the DSCP value for a connection.
- A buffer limit (in bytes); when the sender has less than the provided limit of bytes in the buffer, the application may be notified. Notifications are not guaranteed, and it is optional for a transport system to support buffer limit values greater than
- Note that this limit and its notification should operate across the buffers of the whole transport system, i.e., also any potential buffers that the transport system itself may use on top of the transport's send buffer.
Following Section 5.7, these properties can be queried:
- The maximum message size that may be sent without fragmentation via the configured interface. This is optional for a transport system to offer and may return an error ("not available"). It can aid applications implementing Path MTU Discovery.
- The maximum transport message size that can be sent, in bytes. Irrespective of fragmentation, there is a size limit for the messages that can be handed over to SCTP or UDP(-Lite); because the service provided by a transport system is independent of the transport protocol, it must allow an application to query this value: the maximum size of a message in an Application-Framed Byte Stream (see Section 5.1). This may also return an error when data is not delimited ("not available").
- The maximum transport message size that can be received from the configured interface, in bytes (or "not available").
- The maximum amount of data that can possibly be sent before or during connection establishment, in bytes.
In addition to the already mentioned closing/aborting notifications and possible send errors, the following notifications can occur:
Excessive Retransmissions: The configured (or a default) number of retransmissions has been reached, yielding this early warning below an abortion threshold.
ICMP Arrival (parameter: ICMP message): An ICMP packet carrying the conveyed ICMP message has arrived.
ECN Arrival (parameter: ECN value): A packet carrying the conveyed Explicit Congestion Notification (ECN) value has arrived. This can be useful for applications implementing congestion control.
Timeout (parameter: s seconds): Data could not be delivered for s seconds.
Drain: The send buffer has either drained below the configured buffer limit or it has become completely empty. This is a generic notification that tries to enable uniform access to "TCP_NOTSENT_LOWAT" as well as the "SENDER DRY" notification (as discussed in Section 5.4; SCTP's "SENDER DRY" is a special case where the threshold (for unsent data) is 0 and there is also no more unacknowledged data in the send buffer).
6.2.2. Individual Connections
Configure priority or weight for a scheduler, as described in [RFC8260].
Configure checksum usage: This can be done with the following parameters, but there is no guarantee that any checksum limitations will indeed be enforced (the default behavior is "full coverage, checksum enabled"):
- a boolean to enable/disable usage of a checksum when sending
- the desired coverage (in bytes) of the checksum used when sending
- a boolean to enable/disable requiring a checksum when receiving
- the required minimum coverage (in bytes) of the checksum when receiving
6.3. DATA Transfer
6.3.1. Sending Data
When sending a message, no guarantees are given about the preservation of message boundaries to the peer; if message boundaries are needed, the receiving application at the peer must know about them beforehand (or the transport system cannot use TCP). Note that an application should already be able to hand over data before the transport system establishes a connection with a chosen transport protocol. Regarding the message that is being handed over, the following parameters can be used:
Reliability: This parameter is used to convey a choice of: fully reliable with congestion control (not UDP), unreliable without congestion control, unreliable with congestion control (not UDP), and partially reliable with congestion control (see [RFC3758] and [RFC7496] for details on how to specify partial reliability) (not UDP). The latter two choices are optional for a transport system to offer and may result in full reliability. Note that applications sending unreliable data without congestion control should themselves perform congestion control in accordance with [RFC8085].
Ordered (not UDP): This boolean lets an application choose between ordered message delivery (true) and possibly unordered, potentially faster message delivery (false).
Bundle: This boolean expresses a preference for allowing to bundle messages (true) or not (false). No guarantees are given.
DelAck: This boolean, if false, lets an application request that the peer not delay the acknowledgement for this message.
Fragment: This boolean expresses a preference for allowing to fragment messages (true) or not (false), at the IP level. No guarantees are given.
Idempotent (not UDP): This boolean expresses whether a message is idempotent (true) or not (false). Idempotent messages may arrive multiple times at the receiver (but they will arrive at least once). When data is idempotent, it can be used by the receiver immediately on a connection establishment attempt. Thus, if data is handed over before the transport system establishes a connection with a chosen transport protocol, stating that a message is idempotent facilitates transmitting it to the peer application particularly early.
An application can be notified of a failure to send a specific message. There is no guarantee of such notifications, i.e., send failures can also silently occur.
6.3.2. Receiving Data
A receiving application obtains an "Application-Framed Byte Stream" (AFra Byte Stream); this concept is further described in Section 5.1. In line with TCP's receiver semantics, an AFra Byte Stream is just a stream of bytes to the receiver. If message boundaries were specified by the sender, a receiver-side transport system implementing only the minimum set of Transport Services defined here will still not inform the receiving application about them (this limitation is only needed for transport systems that are implemented to directly use TCP).
Different from TCP's semantics, if the sending application has allowed that messages are not fully reliably transferred, or delivered out of order, then such reordering or unreliability may be reflected per message in the arriving data. Messages will always stay intact, i.e., if an incomplete message is contained at the end of the arriving data block, this message is guaranteed to continue in the next arriving data block.
- IANA Considerations
This document has no IANA actions.
- Security Considerations
Authentication, confidentiality protection, and integrity protection are identified as transport features by [RFC8095]. Often, these features are provided by a protocol or layer on top of the transport protocol; none of the full-featured standards-track transport protocols in [RFC8303], which this document is based upon, provide all of these transport features on its own. Therefore, they are not considered in this document, with the exception of native authentication capabilities of TCP and SCTP for which the security considerations in [RFC5925] and [RFC4895] apply. The minimum requirements for a secure transport system are discussed in a separate document [RFC8922].
- References
9.1. Normative References
[RFC8095] Fairhurst, G., Ed., Trammell, B., Ed., and M. Kuehlewind, Ed., "Services Provided by IETF Transport Protocols and Congestion Control Mechanisms", RFC 8095, DOI 10.17487/RFC8095, March 2017, <https://www.rfc-editor.org/info/rfc8095>.
[RFC8303] Welzl, M., Tuexen, M., and N. Khademi, "On the Usage of Transport Features Provided by IETF Transport Protocols", RFC 8303, DOI 10.17487/RFC8303, February 2018, <https://www.rfc-editor.org/info/rfc8303>.
[RFC8922] Enghardt, T., Pauly, T., Perkins, C., Rose, K., and C. Wood, "A Survey of the Interaction between Security Protocols and Transport Services", RFC 8922, DOI 10.17487/RFC8922, October 2020, <https://www.rfc-editor.org/info/rfc8922>.
9.2. Informative References โจ
[COBS] Cheshire, S. and M. Baker, "Consistent overhead byte
stuffing", IEEE/ACM Transactions on Networking, Volume 7,
Issue 2, DOI 10.1109/90.769765, April 1999,
<https://doi.org/10.1109/90.769765>.
[POSIX] The Open Group, "IEEE Standard for Information
Technology--Portable Operating System Interface (POSIX(R))
Base Specifications, Issue 7", (Revision of IEEE Std
1003.1-2008), IEEE Std 1003.1-2017, January 2018,
<https://www.opengroup.org/onlinepubs/9699919799/
functions/contents.html>.
[RFC3758] Stewart, R., Ramalho, M., Xie, Q., Tuexen, M., and P.
Conrad, "Stream Control Transmission Protocol (SCTP)
Partial Reliability Extension", RFC 3758,
DOI 10.17487/RFC3758, May 2004,
<https://www.rfc-editor.org/info/rfc3758>.
[RFC4895] Tuexen, M., Stewart, R., Lei, P., and E. Rescorla,
"Authenticated Chunks for the Stream Control Transmission
Protocol (SCTP)", RFC 4895, DOI 10.17487/RFC4895, August
2007, <https://www.rfc-editor.org/info/rfc4895>.
[RFC4987] Eddy, W., "TCP SYN Flooding Attacks and Common
Mitigations", RFC 4987, DOI 10.17487/RFC4987, August 2007,
<https://www.rfc-editor.org/info/rfc4987>.
[RFC5925] Touch, J., Mankin, A., and R. Bonica, "The TCP
Authentication Option", RFC 5925, DOI 10.17487/RFC5925,
June 2010, <https://www.rfc-editor.org/info/rfc5925>.
[RFC6897] Scharf, M. and A. Ford, "Multipath TCP (MPTCP) Application
Interface Considerations", RFC 6897, DOI 10.17487/RFC6897,
March 2013, <https://www.rfc-editor.org/info/rfc6897>.
[RFC7305] Lear, E., Ed., "Report from the IAB Workshop on Internet
Technology Adoption and Transition (ITAT)", RFC 7305,
DOI 10.17487/RFC7305, July 2014,
<https://www.rfc-editor.org/info/rfc7305>.
[RFC7413] Cheng, Y., Chu, J., Radhakrishnan, S., and A. Jain, "TCP
Fast Open", RFC 7413, DOI 10.17487/RFC7413, December 2014,
<https://www.rfc-editor.org/info/rfc7413>.
[RFC7496] Tuexen, M., Seggelmann, R., Stewart, R., and S. Loreto,
"Additional Policies for the Partially Reliable Stream
Control Transmission Protocol Extension", RFC 7496,
DOI 10.17487/RFC7496, April 2015,
<https://www.rfc-editor.org/info/rfc7496>.
[RFC8085] Eggert, L., Fairhurst, G., and G. Shepherd, "UDP Usage
Guidelines", BCP 145, RFC 8085, DOI 10.17487/RFC8085,
March 2017, <https://www.rfc-editor.org/info/rfc8085>.
[RFC8260] Stewart, R., Tuexen, M., Loreto, S., and R. Seggelmann,
"Stream Schedulers and User Message Interleaving for the
Stream Control Transmission Protocol", RFC 8260,
DOI 10.17487/RFC8260, November 2017,
<https://www.rfc-editor.org/info/rfc8260>.
[RFC8304] Fairhurst, G. and T. Jones, "Transport Features of the
User Datagram Protocol (UDP) and Lightweight UDP (UDP-
Lite)", RFC 8304, DOI 10.17487/RFC8304, February 2018,
<https://www.rfc-editor.org/info/rfc8304>.
[RFC8622] Bless, R., "A Lower-Effort Per-Hop Behavior (LE PHB) for
Differentiated Services", RFC 8622, DOI 10.17487/RFC8622,
June 2019, <https://www.rfc-editor.org/info/rfc8622>.
[SCTP-STREAM-1]
Weinrank, F. and M. Tuexen, "Transparent Flow Mapping for
NEAT", IFIP Networking 2017, Workshop on Future of
Internet Transport (FIT 2017), June 2017.
[SCTP-STREAM-2]
Welzl, M., Niederbacher, F., and S. Gjessing, "Beneficial
Transparent Deployment of SCTP: The Missing Pieces", IEEE
GlobeCom 2011, DOI 10.1109/GLOCOM.2011.6133554, December
2011, <https://doi.org/10.1109/GLOCOM.2011.6133554>.
[TAPS-INTERFACE]
Trammell, B., Welzl, M., Enghardt, T., Fairhurst, G.,
Kuehlewind, M., Perkins, C., Tiesel, P. S., Wood, C. A.,
and T. Pauly, "An Abstract Application Layer Interface to
Transport Services", Work in Progress, Internet-Draft,
draft-ietf-taps-interface-09, 27 July 2020,
<https://tools.ietf.org/html/draft-ietf-taps-interface-
09>.
[WWDC2015] Lakhera, P. and S. Cheshire, "Your App and Next Generation
Networks", Apple Worldwide Developers Conference 2015, San
Francisco, USA, June 2015,
<https://developer.apple.com/videos/wwdc/2015/?id=719>.
Appendix A. The Superset of Transport Features ๐ฆ
okay so in this bit, transport features get labelled with the naming scheme CATEGORY.[SUBCATEGORY].FEATURENAME.PROTOCOL ๐
which is the same thing as "pass 2" in [RFC8303]. we also sketch out how the functional or optimizing features could be built by a transport system ๐ง The "minimal set" derived in this document is meant to be implementable "one-sided" over TCP and, with limitations, UDP. so for every feature that's categorized as "functional" or "optimizing", and has no matching TCP and/or UDP primitive in "pass 2" of [RFC8303], there's a quick discussion on how to do it over TCP and/or UDP ๐ธ
we also label some features as "automatable" ๐ based on a bigger decision that affects several features at once:
- Most transport features related to multi-streaming were marked "automatable" ๐ and the reason is that deciding whether or not to use multi-streaming doesn't need any app-specific knowledge ๐คทโโ๏ธ So a connection the application sees could be run on a single stream of an SCTP association, instead of getting its own whole SCTP association or TCP connection. You'd do this by opening more than one stream when the association is first set up (the
CONNECT.SCTPparameter "outbound stream count"), keeping an internal stream number, and using that number when sending (theSEND.SCTPparameter "stream number"). Closing or aborting the connection would then just free that stream number up for later use โจ This is talked about more in Section 5.2. - Apart from "Disable MPTCP", every feature related to using multiple paths or picking the network interface got marked "automatable" ๐ฆ For example, "Listen" could always listen on all available interfaces, and "Connect" could use the default interface for the destination IP address ๐
Finally, in three cases the features get bundled together and/or tweaked a little bit from [RFC8303] below ๐ซถ These are marked "CHANGED FROM RFC 8303". None of them add new functionality, they're just a simple tidy-up that makes the derivation easier to follow (like dropping a parameter choice that apps may not even care about) ๐ The matching features are automatable too, and they're listed right under the "CHANGED FROM RFC 8303" one.
A.1. CONNECTION-Related Transport Features โจ
ESTABLISHMENT:
- Connect ๐
- Protocols: TCP, SCTP, UDP(-Lite)
- Functional, because apps often expect to be able to communicate once a "Connect" has succeeded, and the communication sequence tied to this feature is defined by the application protocol.
- Implementation: via
CONNECT.TCP,CONNECT.SCTPorCONNECT.UDP(-Lite).
- Specify which IP Options must always be used ๐ธ
- Protocols: TCP, UDP(-Lite)
- Automatable, because IP Options are about knowing the network, not the application.
- Request multiple streams ๐
- Protocols: SCTP
- Automatable, because using multi-streaming doesn't need app-specific knowledge (example implementations of using multi-streaming without involving the application are described in [SCTP-STREAM-1] and [SCTP-STREAM-2]).
- Implementation: see Section 5.2.
- Limit the number of inbound streams ๐ง
- Protocols: SCTP
- Automatable, because using multi-streaming doesn't need app-specific knowledge.
- Implementation: see Section 5.2.
- Specify number of attempts and/or timeout for the first establishment message โฑ๏ธ
- Protocols: TCP, SCTP
- Functional, because this is closely tied to reliable data delivery that might be assumed for data sent before or during connection establishment.
- Implementation: using a parameter of
CONNECT.TCPandCONNECT.SCTP. - Implementation over UDP: do nothing (this is irrelevant for UDP, because there, reliable data delivery isn't assumed).
- Obtain multiple sockets ๐ฆ
- Protocols: SCTP
- Automatable, because using multiple paths between the same end hosts in a non-parallel way is about knowing the network, not the application.
- Disable MPTCP ๐
- Protocols: MPTCP
- Optimizing, because using multiple paths in parallel between the same end hosts can boost performance. Whether or not to use this feature depends on knowledge about the network and app-specific knowledge (see Section 3.1 of [RFC6897]).
- Implementation: via a boolean parameter in
CONNECT.MPTCP. - Implementation over TCP: do nothing.
- Implementation over UDP: do nothing.
- Configure authentication ๐
- Protocols: TCP, SCTP
- Functional, because this has a direct influence on security ๐ญ
- Implementation: via parameters in
CONNECT.TCPandCONNECT.SCTP. With TCP, this lets you configure Master Key Tuples (MKTs) to authenticate complete segments (including the TCP IPv4 pseudoheader, TCP header, and TCP data). With SCTP, this lets you specify which chunk types must always be authenticated. Authenticating only certain chunk types creates a reduced level of security that TCP doesn't support, so to stay compatible, this should therefore only allow authenticating all chunk types. Key material must be provided in a way that is compatible with both [RFC4895] and [RFC5925]. - Implementation over UDP: not possible (UDP doesn't offer this functionality).
- Indicate (and/or obtain upon completion) an Adaptation Layer via an adaptation code point ๐
- Protocols: SCTP
- Functional, because it lets you send extra data to identify an adaptation layer, which by itself is application specific.
- Implementation: via a parameter in
CONNECT.SCTP. - Implementation over TCP: not possible. (TCP doesn't offer this functionality.)
- Implementation over UDP: not possible. (UDP doesn't offer this functionality.)
- Request to negotiate interleaving of user messages ๐
- Protocols: SCTP
- Automatable, because it requires using multiple streams, and requesting multiple streams in the CONNECTION.ESTABLISHMENT category is automatable.
- Implementation: controlled via a parameter in
CONNECT.SCTP. One possible implementation is to always try to enable interleaving.
- Hand over a message to reliably transfer (possibly multiple times) before connection establishment ๐ซถ
- Protocols: TCP
Okay so this is where the feature list really gets going ๐ Picking up right where we left off:
- Functional, bestie, because this is super tied to the properties of the data an app sends or expects to receive ๐
- Implementation: via a parameter in
CONNECT.TCP. - Implementation over UDP: not possible. (UDP doesn't do reliability, so it's a no-go ๐)
- Implementation: via a parameter in
- Hand over a message to reliably transfer during connection establishment ๐ฆ
- Protocols: SCTP
- Functional, because this can only work if the message is limited in size, which makes it closely tied to the properties of the data an app sends or expects to receive ๐
- Implementation: via a parameter in
CONNECT.SCTP. - Implementation over TCP: transmit the message with the SYN packet, sacrificing the ability to identify message boundaries.
- Implementation over UDP: not possible. (UDP is unreliable, so, sadly, no.)
- Enable UDP encapsulation with a specified remote UDP port number ๐ธ
- Protocols: SCTP
- Automatable, because UDP encapsulation is about knowledge of the network, not the application โจ
AVAILABILITY ๐
- Listen ๐
- Protocols: TCP, SCTP, UDP(-Lite)
- Functional, because accepting connection requests is often reflected in apps as an expectation to be able to communicate after a "Listen" succeeds. The communication sequence tied to this transport feature is defined by the application protocol, so it's literally a whole vibe ๐ซถ
- CHANGED FROM RFC 8303. This differs from the 3 automatable transport features below in that it leaves the choice of interfaces for listening open.
- Implementation: by listening on all interfaces via
LISTEN.TCP(not providing a local IP address) orLISTEN.SCTP(providing SCTP port number / address pairs for all local IP addresses).LISTEN.UDP(-Lite)supports both methods.
- Listen, 1 specified local interface ๐
- Protocols: TCP, SCTP, UDP(-Lite)
- Automatable, because decisions about local interfaces are about knowledge of the network and the Operating System, not the application ๐
- Listen, N specified local interfaces ๐ง
- Protocols: SCTP
- Automatable, because decisions about local interfaces are about knowledge of the network and the Operating System, not the application ๐
- Listen, all local interfaces ๐
- Protocols: TCP, SCTP, UDP(-Lite)
- Automatable, because decisions about local interfaces are about knowledge of the network and the Operating System, not the application ๐
- Specify which IP Options must always be used ๐ฆ
- Protocols: TCP, UDP(-Lite)
- Automatable, because IP Options are about knowledge of the network, not the application ๐ธ
- Disable MPTCP ๐
โโ๏ธ
- Protocols: MPTCP
- Optimizing, because parallel use of multiple paths between the same end hosts can improve performance. Whether to use this feature depends on knowledge about the network as well as application-specific knowledge (see Section 3.1 of [RFC6897]) ๐ง
- Implementation: via a boolean parameter in
LISTEN.MPTCP. - Implementation over TCP: do nothing.
- Implementation over UDP: do nothing.
- Configure authentication ๐
- Protocols: TCP, SCTP
- Functional, because this has a direct influence on security ๐ก๏ธ
- Implementation: via parameters in
LISTEN.TCPandLISTEN.SCTP. - Implementation over TCP: with TCP, this allows configuring Master Key Tuples (MKTs) to authenticate complete segments (including the TCP IPv4 pseudoheader, TCP header, and TCP data). With SCTP, this allows specifying which chunk types must always be authenticated. Authenticating only certain chunk types creates a reduced level of security that TCP doesn't support, so to stay compatible, this should therefore only allow authenticating all chunk types ๐ฅบ Key material must be provided in a way that is compatible with both [RFC4895] and [RFC5925].
- Implementation over UDP: not possible. (UDP doesn't offer authentication.)
- Obtain requested number of streams ๐
- Protocols: SCTP
- Automatable, because using multi-streaming doesn't require application-specific knowledge โจ
- Implementation: see Section 5.2.
- Limit the number of inbound streams ๐ง
- Protocols: SCTP
- Automatable, because using multi-streaming doesn't require application-specific knowledge โจ
- Implementation: see Section 5.2.
- Indicate (and/or obtain upon completion) an Adaptation Layer via an adaptation code point ๐งฉ
- Protocols: SCTP
- Functional, because it allows sending extra data for the sake of identifying an adaptation layer, which by itself is application specific ๐
- Implementation: via a parameter in
LISTEN.SCTP. - Implementation over TCP: not possible. (TCP doesn't offer this functionality.)
- Implementation over UDP: not possible. (UDP doesn't offer this functionality either.)
- Request to negotiate interleaving of user messages ๐
- Protocols: SCTP
- Automatable, because it requires using multiple streams, but requesting multiple streams in the CONNECTION.ESTABLISHMENT category is automatable ๐ค
- Implementation: via a parameter in
LISTEN.SCTP.
MAINTENANCE ๐งน
- Change timeout for aborting connection (using retransmit limit or time value) โฐ
- Protocols: TCP, SCTP
- Functional, because this is closely related to potentially assumed reliable data delivery ๐ซ
- Implementation: via
CHANGE_TIMEOUT.TCPorCHANGE_TIMEOUT.SCTP. - Implementation over UDP: not possible. (UDP is unreliable and there is no connection timeout.)
- Suggest timeout to the peer ๐ฌ
- Protocols: TCP
- Functional, because this is closely related to potentially assumed reliable data delivery ๐ซ
- Implementation: via
CHANGE_TIMEOUT.TCP. - Implementation over UDP: not possible. (UDP is unreliable and there is no connection timeout.)
- Disable Nagle algorithm ๐ผ
- Protocols: TCP, SCTP
- Optimizing, because this decision depends on knowledge about the size of future data blocks and the delay between them ๐ฆ
- Implementation: via
DISABLE_NAGLE.TCPandDISABLE_NAGLE.SCTP. - Implementation over UDP: do nothing (UDP does not implement the Nagle algorithm).
- Request an immediate heartbeat, returning success/failure ๐
- Protocols: SCTP
- Automatable, because this informs about network-specific knowledge ๐
- Notification of Excessive Retransmissions (early warning below abortion threshold) ๐จ
- Protocols: TCP
- Optimizing, because it's an early warning to the application, informing it of an impending functional event ๐
- Implementation: via
ERROR.TCP. - Implementation over UDP: do nothing (there is no abortion threshold).
- Add path ๐ฃ๏ธ
- Protocols: MPTCP, SCTP
- MPTCP Parameters: source-IP; source-Port; destination-IP; destination-Port
- SCTP Parameters: local IP address
- Automatable, because choosing paths between the same end hosts is about knowledge of the network, not the application ๐บ๏ธ
- Remove path ๐ฎ
- Protocols: MPTCP, SCTP
- MPTCP Parameters: source-IP; source-Port; destination-IP; destination-Port
- SCTP Parameters: local IP address
- Automatable, because choosing paths between the same end host is about knowledge of the network, not the application ๐บ๏ธ
- Set primary path โญ
- Protocols: SCTP
- Automatable, because choosing paths between the same end hosts is about knowledge of the network, not the application ๐บ๏ธ
- Suggest primary path to the peer ๐ฃ
- Protocols: SCTP
- Automatable, because choosing paths between the same end hosts is about knowledge of the network, not the application ๐บ๏ธ
- Configure Path Switchover ๐
- Protocols: SCTP
- Automatable, because choosing paths between the same end hosts is about knowledge of the network, not the application ๐บ๏ธ
- Obtain status (query or notification) ๐
- Protocols: SCTP, MPTCP
- SCTP parameters: association connection state; destination transport address list; destination transport address reachability states; current local and peer receiver window size; current local congestion window sizes; number of unacknowledged DATA chunks; number of DATA chunks pending receipt; primary path; most recent SRTT on primary path; RTO on primary path; SRTT and RTO on other destination addresses; MTU per path; interleaving supported yes/no
- MPTCP parameters: subflow-list (identified by source-IP; source-Port; destination-IP; destination-Port)
- Automatable, because these parameters are about knowledge of the network, not the application ๐
- Specify DSCP field ๐ท๏ธ
- Protocols: TCP, SCTP, UDP(-Lite)
- Optimizing, because choosing a suitable DSCP value requires application-specific knowledge ๐ฏ
- Implementation: via
SET_DSCP.TCP/SET_DSCP.SCTP/SET_DSCP.UDP(-Lite).
- Notification of ICMP error message arrival ๐จ
- Protocols: TCP, UDP(-Lite)
- Optimizing, because these messages can tell you about the success or failure of functional transport features (e.g., host unreachable relates to "Connect") ๐
- Implementation: via
ERROR.TCPorERROR.UDP(-Lite).
- Obtain information about interleaving support ๐
- Protocols: SCTP
- Automatable, because it requires using multiple streams, but requesting multiple streams in the CONNECTION.ESTABLISHMENT category is automatable ๐ค
- Implementation: via
STATUS.SCTP.
- Change authentication parameters ๐
- Protocols: TCP, SCTP
- Functional, because this has a direct influence on security ๐ก๏ธ
- Implementation: via
SET_AUTH.TCPandSET_AUTH.SCTP. - Implementation over TCP: with SCTP, this allows adjusting key_id, key, and hmac_id. With TCP, this allows changing the preferred outgoing MKT (current_key) and the preferred incoming MKT (rnext_key), respectively, for a segment that is sent on the connection. Key material must be provided in a way that is compatible with both [RFC4895] and [RFC5925].
- Implementation over UDP: not possible. (UDP doesn't offer authentication.)
- Obtain authentication information ๐ชช
- Protocols: SCTP
- Functional, because authentication decisions may have been made by the peer, and this influences the necessary application-level measures to provide a certain level of security ๐ง
- Implementation: via
GET_AUTH.SCTP. - Implementation over TCP: with SCTP, this allows obtaining key_id and a chunk list. With TCP, this allows obtaining current_key and rnext_key from a previously received segment. Key material must be provided in a way that is compatible with both [RFC4895] and [RFC5925].
- Implementation over UDP: not possible. (UDP doesn't offer authentication.)
- Reset Stream ๐
- Protocols: SCTP
- Automatable, because using multi-streaming doesn't require application-specific knowledge โจ
- Implementation: see Section 5.2.
- Notification of Stream Reset ๐
- Protocols: SCTP
- Automatable, because using multi-streaming doesn't require application-specific knowledge โจ
- Implementation: see Section 5.2.
- Reset Association ๐ฅ
- Protocols: SCTP
- Automatable, because deciding to reset an association doesn't require application-specific knowledge ๐ง
- Implementation: via
RESET_ASSOC.SCTP.
- Notification of Association Reset ๐ซง
- Protocols: SCTP
Automatable, bc this notification doesn't need any app-specific knowledge ๐ซถ The app doesn't have to know its own business for this one.
- Add Streams โจ
Protocols: SCTP
Automatable, bc using multi-streaming doesn't need app-specific knowledge ๐
Implementation: see Section 5.2.
- Notification of Added Stream ๐
Protocols: SCTP
Automatable, bc using multi-streaming doesn't need app-specific knowledge ๐
Implementation: see Section 5.2.
- Choose a scheduler to operate between streams of an association ๐
Protocols: SCTP
Optimizing, bc picking the scheduler needs app-specific knowledge. BUT if a transport system wouldn't use this, or sets it up wrong on its own, it only messes with how fast data moves ๐โโ๏ธ The result is still correct within the "best effort" service model, so no drama ๐
Implementation: using SET_STREAM_SCHEDULER.SCTP.
Implementation over TCP: do nothing (streams aren't available in TCP, but no guarantee is given that this transport feature has any effect).
Implementation over UDP: do nothing (streams aren't available in UDP, but no guarantee is given that this transport feature has any effect).
- Configure priority or weight for a scheduler โญ
Protocols: SCTP
Optimizing, bc the priority or weight needs app-specific knowledge. BUT same deal as before: if a transport system wouldn't use this, or sets it up wrong, it only affects how well data transfers perform. The outcome is still correct within the "best effort" service model ๐ธ
Implementation: using CONFIGURE_STREAM_SCHEDULER.SCTP.
Implementation over TCP: do nothing (streams aren't available in TCP, but no guarantee is given that this transport feature has any effect).
Implementation over UDP: do nothing (streams aren't available in UDP, but no guarantee is given that this transport feature has any effect).
- Configure send buffer size ๐ฆ
Protocols: SCTP
Automatable, bc this decision is about knowing the network and the Operating System, not the app (see also the discussion in Section 5.4) ๐ง
- Configure receive buffer (and rwnd) size ๐ฅ
Protocols: SCTP
Automatable, bc this decision is about knowing the network and the Operating System, not the app ๐ง
- Configure message fragmentation ๐งฉ
Protocols: SCTP
Automatable, bc this is about knowing the network and the Operating System, not the app. Note that this SCTP feature does NOT control IP-level fragmentation. It decides on fragmentation of messages by SCTP, in the end system ๐
Implementation: done by always enabling it with CONFIG_FRAGMENTATION.SCTP and auto-setting the fragmentation size based on network or Operating System conditions.
- Configure PMTUD ๐ฃ๏ธ
Protocols: SCTP
Automatable, bc Path MTU Discovery is about knowing the network, not the app ๐
- Configure delayed SACK timer โฒ๏ธ
Protocols: SCTP
Automatable, bc the receiver-side choice to delay sending SACKs is about knowing the network, not the app. (A sending app can ask not to delay the SACK of a message, but that's a different transport feature, so don't mix them up ๐)
- Set Cookie life value ๐ช
Protocols: SCTP
Functional, bc it's about security (keeping a cookie really long could weaken it) versus how much time there is between connection establishment attempts. Knowing about both issues can be app-specific ๐
Implementation over TCP: the closest specified TCP functionality is the cookie in TCP Fast Open. For this, [RFC7413] says the server "can expire the cookie at any time to enhance security", and Section 4.1.2 of [RFC7413] describes an example implementation where updating the key on the server side makes the cookie expire. Alternatively, for implementations that don't support TCP Fast Open, this transport feature could also affect the validity of SYN cookies (see Section 3.6 of [RFC4987]).
Implementation over UDP: not possible. (UDP doesn't offer this functionality ๐)
- Set maximum burst ๐จ
Protocols: SCTP
Automatable, bc it's about knowing the network, not the app ๐
- Configure size where messages are broken up for partial delivery ๐ฐ
Protocols: SCTP
Functional, bc this is super tied to the properties of the data an app sends or expects to receive ๐
Implementation over TCP: not possible. (TCP doesn't offer identification of message boundaries.)
Implementation over UDP: not possible. (UDP doesn't fragment messages.)
- Disable checksum when sending ๐ซ
Protocols: UDP
Functional, bc only app-specific knowledge can tell whether it's acceptable to lose data integrity when it comes to random corruption ๐ซ
Implementation: via SET_CHECKSUM_ENABLED.UDP.
Implementation over TCP: do nothing (TCP doesn't offer to disable the checksum, but sending data with an intact checksum won't give a semantically wrong result).
- Disable checksum requirement when receiving ๐ญ
Protocols: UDP
Functional, bc only app-specific knowledge can tell whether it's acceptable to lose data integrity when it comes to random corruption ๐ซ
Implementation: via SET_CHECKSUM_REQUIRED.UDP.
Implementation over TCP: do nothing (TCP doesn't offer to disable the checksum, but sending data with an intact checksum won't give a semantically wrong result).
- Specify checksum coverage used by the sender ๐ก๏ธ
Protocols: UDP-Lite
Functional, bc only app-specific knowledge can tell which parts of the data it's okay to lose integrity for when it comes to random corruption ๐ซง
Implementation: via SET_CHECKSUM_COVERAGE.UDP-Lite.
Implementation over TCP: do nothing (TCP doesn't offer to limit the checksum length, but sending data with an intact checksum won't give a semantically wrong result).
Implementation over UDP: if checksum coverage is set to cover payload data, do nothing. Else, either do nothing (sending data with an intact checksum won't give a semantically wrong result), or use the transport feature "Disable checksum when sending".
- Specify minimum checksum coverage required by receiver ๐ก๏ธ
Protocols: UDP-Lite
Functional, bc only app-specific knowledge can tell which parts of the data it's okay to lose integrity for when it comes to random corruption ๐ซง
Implementation: via SET_MIN_CHECKSUM_COVERAGE.UDP-Lite.
Implementation over TCP: do nothing (TCP doesn't offer to limit the checksum length, but sending data with an intact checksum won't give a semantically wrong result).
Implementation over UDP: if checksum coverage is set to cover payload data, do nothing. Else, either do nothing (sending data with an intact checksum won't give a semantically wrong result), or use the transport feature "Disable checksum requirement when receiving".
- Specify DF field ๐ฉ
Protocols: UDP(-Lite)
Optimizing, bc the DF field can be used to do Path MTU Discovery, which can lead an app to pick message sizes that go through more efficiently ๐
Implementation: via MAINTENANCE.SET_DF.UDP(-Lite) and SEND_FAILURE.UDP(-Lite).
Implementation over TCP: do nothing (with TCP, the sending app isn't in control of transport message sizes, so this is irrelevant ๐ โโ๏ธ).
- Get max. transport-message size that may be sent using a non-fragmented IP packet from the configured interface ๐
Protocols: UDP(-Lite)
Optimizing, bc this can lead an app to pick message sizes that go through more efficiently โก
Implementation over TCP: do nothing (this info isn't available with TCP).
- Get max. transport-message size that may be received from the configured interface ๐ฌ
Protocols: UDP(-Lite)
Optimizing, bc this can, for example, change how an app manages its memory ๐ง
Implementation over TCP: do nothing (this info isn't available with TCP).
- Specify TTL/Hop count field โ
Protocols: UDP(-Lite)
Automatable, bc a transport system can use a big enough system default to avoid communication failures. Letting an app set it differently can produce notifications of ICMP error message arrivals that only tell you about the network, not the app ๐
- Obtain TTL/Hop count field ๐
Protocols: UDP(-Lite)
Automatable, bc the TTL/Hop count field is about knowing the network, not the app ๐
- Specify ECN field ๐ฆ
Protocols: UDP(-Lite)
Automatable, bc the ECN field is about knowing the network, not the app ๐
- Obtain ECN field ๐
Protocols: UDP(-Lite)
Optimizing, bc an app can use this info to do congestion control better. (This matters when you pick a data transmission Transport Service that doesn't already do congestion control ๐)
Implementation over TCP: do nothing (this info isn't available with TCP).
- Specify IP Options ๐๏ธ
Protocols: UDP(-Lite)
Automatable, bc IP Options are about knowing the network, not the app ๐
- Obtain IP Options ๐
Protocols: UDP(-Lite)
Automatable, bc IP Options are about knowing the network, not the app ๐
- Enable and configure a "Low Extra Delay Background Transfer" ๐
Protocols: a protocol implementing the LEDBAT congestion control mechanism
Optimizing, bc whether this feature is right depends on app-specific knowledge. BUT using it wrong only changes the speed of data transfers (including other transfers that might compete with the transport system's transfer in the network), so it's still correct within the "best effort" service model ๐ซถ
Implementation: via CONFIGURE.LEDBAT and/or SET_DSCP.TCP / SET_DSCP.SCTP / SET_DSCP.UDP(-Lite) [RFC8622].
Implementation over TCP: do nothing (TCP doesn't support LEDBAT congestion control, but not implementing this won't give a semantically wrong behavior).
Implementation over UDP: do nothing (UDP doesn't offer congestion control).
TERMINATION: ๐
- Close after reliably delivering all remaining data, causing an event informing the application on the other side ๐
Protocols: TCP, SCTP
Functional, bc a "connection" is often understood by apps as an expectation that all outstanding data gets delivered, and that you can't keep communicating after a "Close" succeeded. The communication sequence for this transport feature is defined by the application protocol ๐
Implementation: via CLOSE.TCP and CLOSE.SCTP.
Okay so the UDP situation here is a whole mood ๐ UDP is unreliable, which means it has no clue when all the remaining data has actually arrived, and it can't trigger any closing event over at the peer ๐
- Abort without delivering remaining data, causing an event informing the application on the other side
- Protocols: TCP, SCTP
- Functional because apps often treat a connection as something where, after an "Abort" succeeds, you might not get all your outstanding data and you can't talk anymore ๐ญ On both sides, an application protocol may define a communication sequence tied to this feature ๐
- Implementation: via
ABORT.TCPandABORT.SCTP. - Implementation over UDP: not possible. (UDP doesn't offer a way to cause an event about aborting at the peer ๐ซถ)
- Abort without delivering remaining data, not causing an event informing the application on the other side
- Protocols: UDP(-Lite)
- Functional because apps often treat a connection as something where, after an "Abort" succeeds, you might not get all your outstanding data and you can't talk anymore ๐ On both sides, an application protocol may define a communication sequence tied to this feature ๐ฆ
- Implementation: via
ABORT.UDP(-Lite). - Implementation over TCP: stop using the connection and wait for a timeout โณ
- Timeout event when data could not be delivered for too long
- Protocols: TCP, SCTP
- Functional because this tells you that the reliable delivery you were kind of assuming is no longer being provided ๐ณ
- Implementation: via
TIMEOUT.TCPandTIMEOUT.SCTP. - Implementation over UDP: do nothing (this event will never happen with UDP ๐ธ)
A.2. DATA-Transfer-Related Transport Features
A.2.1. Sending Data
- Reliably transfer data, with congestion control
- Protocols: TCP, SCTP
- Functional because this is super tied to the properties of the data an app sends or expects to receive ๐ฅ
- Implementation: via
SEND.TCPandSEND.SCTP. - Implementation over UDP: not possible. (UDP is unreliable ๐ค)
- Reliably transfer a message, with congestion control
- Protocols: SCTP
- Functional because this is super tied to the properties of the data an app sends or expects to receive โจ
- Implementation: via
SEND.SCTP. - Implementation over TCP: via
SEND.TCP. WithSEND.TCP, the receiver can't identify message boundaries, because TCP is a byte-stream service ๐ง - Implementation over UDP: not possible. (UDP is unreliable ๐)
- Unreliably transfer a message
- Protocols: SCTP, UDP(-Lite)
- Optimizing because only the apps know how time-critical their communication is, and reliably transferring a message is never wrong for the receiver of a potentially unreliable transfer. It's just slower ๐ข
- CHANGED FROM RFC 8303. This one is different from the two automatable transport features below, because it leaves the choice of congestion control open ๐
- Implementation: via
SEND.SCTPorSEND.UDP(-Lite). - Implementation over TCP: use
SEND.TCP. WithSEND.TCP, messages are sent reliably, and the receiver can't identify message boundaries ๐
- Unreliably transfer a message, with congestion control
- Protocols: SCTP
- Automatable because congestion control is about knowledge of the network, not the app ๐ง
- Unreliably transfer a message, without congestion control
- Protocols: UDP(-Lite)
- Automatable because congestion control is about knowledge of the network, not the app ๐ง
- Configurable Message Reliability
- Protocols: SCTP
- Optimizing because only the apps know how time-critical their communication is, and reliably transferring a message is never wrong for the receiver of a potentially unreliable transfer. It's just slower ๐
- Implementation: via
SEND.SCTP. - Implementation over TCP: done by using
SEND.TCPand ignoring this configuration. Based on the best-effort service model assumption, delivering data unnecessarily doesn't break app expectations ๐ซง Also, it's not possible to tie the requested reliability to a "message" in TCP anyway ๐คทโโ๏ธ - Implementation over UDP: not possible. (UDP is unreliable ๐ฅฒ)
- Choice of stream
- Protocols: SCTP
- Automatable because it requires using multiple streams, but asking for multiple streams in the CONNECTION.ESTABLISHMENT category is automatable ๐
- Implementation: see Section 5.2.
- Choice of path (destination address)
- Protocols: SCTP
- Automatable because it requires using multiple sockets, but getting multiple sockets in the CONNECTION.ESTABLISHMENT category is automatable ๐ฆ
- Ordered message delivery (potentially slower than unordered)
- Protocols: SCTP
- Functional because this is super tied to the properties of the data an app sends or expects to receive ๐
- Implementation: via
SEND.SCTP. - Implementation over TCP: done by using
SEND.TCP. WithSEND.TCP, messages won't be identifiable by the receiver ๐ซ - Implementation over UDP: not possible. (UDP offers no ordering guarantees ๐ฉ)
- Unordered message delivery (potentially faster than ordered)
- Protocols: SCTP, UDP(-Lite)
- Functional because this is super tied to the properties of the data an app sends or expects to receive ๐
- Implementation: via
SEND.SCTP. - Implementation over TCP: done by using
SEND.TCPand always sending data ordered. Based on the best-effort service model assumption, ordered delivery may just be slower and doesn't break app expectations ๐ท Also, it's not possible to tie the requested delivery order to a "message" in TCP anyway ๐
- Request not to bundle messages
- Protocols: SCTP
- Optimizing because this decision depends on knowing the size of future data blocks and the delay between them ๐งฎ
- Implementation: via
SEND.SCTP. - Implementation over TCP: done by using
SEND.TCPandDISABLE_NAGLE.TCPto disable the Nagle algorithm when the request is made, and enable it again when the request is no longer made. Note that this isn't fully equivalent, because it relates to the time the request is issued rather than a specific message โฐ - Implementation over UDP: do nothing (UDP never bundles messages ๐)
- Specifying a "payload protocol-id" (handed over as such by the receiver)
- Protocols: SCTP
- Functional because it lets you send extra application data with every message, for identifying data, which is app-specific by itself ๐ช
- Implementation:
SEND.SCTP. - Implementation over TCP: not possible. (This isn't available in TCP ๐ โโ๏ธ)
- Implementation over UDP: not possible. (This isn't available in UDP ๐ โโ๏ธ)
- Specifying a key id to be used to authenticate a message
- Protocols: SCTP
- Functional because this directly influences security ๐
- Implementation: via a parameter in
SEND.SCTP. - Implementation over TCP: this could be emulated by using
SET_AUTH.TCPbefore and after the message is sent. Note that this isn't fully equivalent, because it relates to the time the request is issued rather than a specific message ๐ซฃ - Implementation over UDP: not possible. (UDP doesn't offer authentication ๐ค)
- Request not to delay the acknowledgement (SACK) of a message
- Protocols: SCTP
- Optimizing because only an app knows which message it wants to hear quickly about, regarding whether its delivery succeeded or failed ๐ฌ
- Implementation over TCP: do nothing (TCP doesn't offer this, but ignoring the request won't produce a semantically wrong behavior ๐ผ)
- Implementation over UDP: do nothing (UDP doesn't offer this either, but ignoring the request won't produce a semantically wrong behavior ๐ผ)
A.2.2. Receiving Data
- Receive data (with no message delimiting)
- Protocols: TCP
- Functional because a transport system has to be able to send and receive data, period ๐โโ๏ธ
- Implementation: via
RECEIVE.TCP. - Implementation over UDP: do nothing (UDP only works on messages. These can be handed over, and the app can still ignore the message boundaries ๐)
- Receive a message
- Protocols: SCTP, UDP(-Lite)
- Functional because this is super tied to the properties of the data an app sends or expects to receive ๐
- Implementation: via
RECEIVE.SCTPandRECEIVE.UDP(-Lite). - Implementation over TCP: not possible. (TCP doesn't support identifying message boundaries ๐)
- Choice of stream to receive from
- Protocols: SCTP
- Automatable because it requires using multiple streams, but asking for multiple streams in the CONNECTION.ESTABLISHMENT category is automatable ๐ง
- Implementation: see Section 5.2.
- Information about partial message arrival
- Protocols: SCTP
- Functional because this is super tied to the properties of the data an app sends or expects to receive ๐ฉท
- Implementation: via
RECEIVE.SCTP. - Implementation over TCP: do nothing (this information isn't available with TCP ๐ซฅ)
- Implementation over UDP: do nothing (this information isn't available with UDP ๐ซฅ)
A.2.3. Errors ๐
okay so this section is all about the sending failures that are tied to one specific call in the "Sending Data" category (Appendix A.2.1) ๐ฆ that's the whole tea
- Notification of send failures ๐ฅ
- Protocols: SCTP, UDP(-Lite)
- Functional because this notifies that potentially assumed reliable data delivery is no longer provided. ๐ญ
- CHANGED FROM RFC 8303. This differs from the 2 automatable transport features below in that it does not distinguish between unsent and unacknowledged messages.
- Implementation: via
SENDFAILURE-EVENT.SCTPandSEND_FAILURE.UDP(-Lite). โจ - Implementation over TCP: do nothing (this notification is not available and will therefore not occur with TCP). ๐
- Notification of an unsent (part of a) message ๐ญ
- Protocols: SCTP, UDP(-Lite)
- Automatable because the distinction between unsent and unacknowledged does not relate to application-specific knowledge. ๐ค
- Notification of an unacknowledged (part of a) message ๐ฌ
- Protocols: SCTP
- Automatable because the distinction between unsent and unacknowledged does not relate to application-specific knowledge. ๐ค
- Notification that the stack has no more user data to send ๐๏ธ
- Protocols: SCTP
- Optimizing because reacting to this notification requires the application to be involved, and ensuring that the stack does not run dry of data (for too long) can improve performance. ๐
- Implementation over TCP: do nothing (see the discussion in Section 5.4).
- Implementation over UDP: do nothing (this notification is not available and will therefore not occur with UDP). ๐
- Notification to a receiver that a partial message delivery has been aborted ๐
- Protocols: SCTP
- Functional because this is closely tied to properties of the data that an application sends or expects to receive. ๐ฏ
- Implementation over TCP: do nothing (this notification is not available and will therefore not occur with TCP). ๐
- Implementation over UDP: do nothing (this notification is not available and will therefore not occur with UDP). ๐
Acknowledgements ๐ซถ
The authors would like to thank all the participants of the TAPS Working Group and the NEAT and MAMI research projects for valuable input to this document. We especially thank Michael Tรผxen for help with connection establishment/teardown, Gorry Fairhurst for his suggestions regarding fragmentation and packet sizes, and Spencer Dawkins for his extremely detailed and constructive review. This work has received funding from the European Union's Horizon 2020 research and innovation program under grant agreement No. 644334 (NEAT). ๐
Authors' Addresses ๐
Michael Welzl
University of Oslo
PO Box 1080 Blindern
N-0316 Oslo
Norway
Phone: +47 22 85 24 20
Email: michawe@ifi.uio.no
Stein Gjessing
University of Oslo
PO Box 1080 Blindern
N-0316 Oslo
Norway
Phone: +47 22 85 24 44
Email: steing@ifi.uio.no
๐ฆ where this page comes from
- ietf: rfc8923 2020-10
- ๐ girlified by claude-haiku-5-5 on : a language model's rewrite of the original, under its terms