RFC 8923

A Minimal Set of Transport Services for End Systems

๐Ÿ“… published October 2020, from ietf

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 (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 ๐Ÿงฉ:

  1. 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.
  2. 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.
  3. Discussion (Section 5): The resulting list shows a number of peculiarities that are discussed, to provide a basis for constructing the minimal set.
  4. 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 ๐Ÿ—‚๏ธ:

  1. CONNECTION-related transport features
    • ESTABLISHMENT
    • AVAILABILITY
    • MAINTENANCE
    • TERMINATION
  2. 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 ๐Ÿท๏ธ.

ESTABLISHMENT:

  • T,U: Connect
  • T,U: Specify number of attempts and/or timeout for the first establishment message
  • T,U: Disable MPTCP
  • T: Configure authentication
  • T: Hand over a message to reliably transfer (possibly multiple times) before connection establishment
  • T: Hand over a message to reliably transfer during connection establishment

AVAILABILITY:

  • T,U: Listen
  • T,U: Disable MPTCP
  • T: Configure authentication

MAINTENANCE:

  • T: Change timeout for aborting connection (using retransmit limit or time value)
  • T: Suggest timeout to the peer
  • T,U: Disable Nagle algorithm
  • T,U: Notification of Excessive Retransmissions (early warning below abortion threshold)
  • T,U: Specify DSCP field
  • T,U: Notification of ICMP error message arrival
  • T: Change authentication parameters
  • T: Obtain authentication information
  • T,U: Set Cookie life value
  • T,U: Choose a scheduler to operate between streams of an association
  • T,U: Configure priority or weight for a scheduler
  • T,U: Disable checksum when sending
  • T,U: Disable checksum requirement when receiving
  • T,U: Specify checksum coverage used by the sender
  • T,U: Specify minimum checksum coverage required by receiver
  • T,U: Specify DF field
  • T,U: Get max. transport-message size that may be sent using a non-fragmented IP packet from the configured interface
  • T,U: Get max. transport-message size that may be received from the configured interface
  • T,U: Obtain ECN field
  • T,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 side
  • T: Abort without delivering remaining data, causing an event informing the application on the other side
  • T,U: Abort without delivering remaining data, not causing an event informing the application on the other side
  • T,U: Timeout event when data could not be delivered for too long

4.2.1. Sending Data ๐Ÿ“ค

  • T: Reliably transfer data, with congestion control
  • T: Reliably transfer a message, with congestion control
  • T,U: Unreliably transfer a message
  • T: Configurable Message Reliability
  • T: Ordered message delivery (potentially slower than unordered)
  • T,U: Unordered message delivery (potentially faster than ordered)
  • T,U: Request not to bundle messages
  • T: Specifying a key id to be used to authenticate a message
  • T,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 message
  • T,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 failures
  • T,U: Notification that the stack has no more user data to send
  • T,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
    1. 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.

  1. IANA Considerations

This document has no IANA actions.

  1. 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].

  1. 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.SCTP parameter "outbound stream count"), keeping an internal stream number, and using that number when sending (the SEND.SCTP parameter "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.

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.SCTP or CONNECT.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.TCP and CONNECT.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.TCP and CONNECT.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 ๐Ÿ™ˆ)
  • 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) or LISTEN.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.TCP and LISTEN.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.TCP or CHANGE_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.TCP and DISABLE_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.TCP or ERROR.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.TCP and SET_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.TCP and ABORT.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.TCP and TIMEOUT.SCTP.
    • Implementation over UDP: do nothing (this event will never happen with UDP ๐ŸŒธ)

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.TCP and SEND.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. With SEND.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.SCTP or SEND.UDP(-Lite).
    • Implementation over TCP: use SEND.TCP. With SEND.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.TCP and 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. With SEND.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.TCP and 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.TCP and DISABLE_NAGLE.TCP to 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.TCP before 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.SCTP and RECEIVE.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.SCTP and SEND_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