draft-ietf-taps-interface-22.txt   draft-ietf-taps-interface-23.txt 
TAPS Working Group B. Trammell, Ed. TAPS Working Group B. Trammell, Ed.
Internet-Draft Google Switzerland GmbH Internet-Draft Google Switzerland GmbH
Intended status: Standards Track M. Welzl, Ed. Intended status: Standards Track M. Welzl, Ed.
Expires: 7 January 2024 University of Oslo Expires: 17 May 2024 University of Oslo
R. Enghardt R. Enghardt
Netflix Netflix
G. Fairhurst G. Fairhurst
University of Aberdeen University of Aberdeen
M. Kuehlewind M. Kuehlewind
Ericsson Ericsson
C. Perkins C. Perkins
University of Glasgow University of Glasgow
P. Tiesel P. Tiesel
SAP SE SAP SE
T. Pauly T. Pauly
Apple Inc. Apple Inc.
6 July 2023 14 November 2023
An Abstract Application Layer Interface to Transport Services An Abstract Application Layer Interface to Transport Services
draft-ietf-taps-interface-22 draft-ietf-taps-interface-23
Abstract Abstract
This document describes an abstract application programming This document describes an abstract application programming
interface, API, to the transport layer that enables the selection of interface, API, to the transport layer that enables the selection of
transport protocols and network paths dynamically at runtime. This transport protocols and network paths dynamically at runtime. This
API enables faster deployment of new protocols and protocol features API enables faster deployment of new protocols and protocol features
without requiring changes to the applications. The specified API without requiring changes to the applications. The specified API
follows the Transport Services architecture by providing follows the Transport Services architecture by providing
asynchronous, atomic transmission of messages. It is intended to asynchronous, atomic transmission of messages. It is intended to
replace the BSD sockets API as the common interface to the transport replace the BSD sockets API as the common interface to the transport
layer, in an environment where endpoints could select from multiple layer, in an environment where endpoints could select from multiple
interfaces and potential transport protocols. network paths and potential transport protocols.
Status of This Memo Status of This Memo
This Internet-Draft is submitted in full conformance with the This Internet-Draft is submitted in full conformance with the
provisions of BCP 78 and BCP 79. provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet- working documents as Internet-Drafts. The list of current Internet-
Drafts is at https://datatracker.ietf.org/drafts/current/. Drafts is at https://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress." material or to cite them other than as "work in progress."
This Internet-Draft will expire on 7 January 2024. This Internet-Draft will expire on 17 May 2024.
Copyright Notice Copyright Notice
Copyright (c) 2023 IETF Trust and the persons identified as the Copyright (c) 2023 IETF Trust and the persons identified as the
document authors. All rights reserved. document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents (https://trustee.ietf.org/ Provisions Relating to IETF Documents (https://trustee.ietf.org/
license-info) in effect on the date of publication of this document. license-info) in effect on the date of publication of this document.
Please review these documents carefully, as they describe your rights Please review these documents carefully, as they describe your rights
skipping to change at page 2, line 40 skipping to change at page 2, line 40
1.2. Specification of Requirements . . . . . . . . . . . . . . 7 1.2. Specification of Requirements . . . . . . . . . . . . . . 7
2. Overview of the API Design . . . . . . . . . . . . . . . . . 7 2. Overview of the API Design . . . . . . . . . . . . . . . . . 7
3. API Summary . . . . . . . . . . . . . . . . . . . . . . . . . 8 3. API Summary . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.1. Usage Examples . . . . . . . . . . . . . . . . . . . . . 9 3.1. Usage Examples . . . . . . . . . . . . . . . . . . . . . 9
3.1.1. Server Example . . . . . . . . . . . . . . . . . . . 9 3.1.1. Server Example . . . . . . . . . . . . . . . . . . . 9
3.1.2. Client Example . . . . . . . . . . . . . . . . . . . 10 3.1.2. Client Example . . . . . . . . . . . . . . . . . . . 10
3.1.3. Peer Example . . . . . . . . . . . . . . . . . . . . 12 3.1.3. Peer Example . . . . . . . . . . . . . . . . . . . . 12
4. Transport Properties . . . . . . . . . . . . . . . . . . . . 13 4. Transport Properties . . . . . . . . . . . . . . . . . . . . 13
4.1. Transport Property Names . . . . . . . . . . . . . . . . 14 4.1. Transport Property Names . . . . . . . . . . . . . . . . 14
4.2. Transport Property Types . . . . . . . . . . . . . . . . 15 4.2. Transport Property Types . . . . . . . . . . . . . . . . 15
5. Scope of the API Definition . . . . . . . . . . . . . . . . . 15 5. Scope of the API Definition . . . . . . . . . . . . . . . . . 16
6. Pre-Establishment Phase . . . . . . . . . . . . . . . . . . . 16 6. Pre-Establishment Phase . . . . . . . . . . . . . . . . . . . 17
6.1. Specifying Endpoints . . . . . . . . . . . . . . . . . . 17 6.1. Specifying Endpoints . . . . . . . . . . . . . . . . . . 18
6.1.1. Using Multicast Endpoints . . . . . . . . . . . . . . 19 6.1.1. Using Multicast Endpoints . . . . . . . . . . . . . . 20
6.1.2. Constraining Interfaces for Endpoints . . . . . . . . 20 6.1.2. Constraining Interfaces for Endpoints . . . . . . . . 21
6.1.3. Endpoint Aliases . . . . . . . . . . . . . . . . . . 21 6.1.3. Protocol-Specific Endpoints . . . . . . . . . . . . . 22
6.1.4. Endpoint Examples . . . . . . . . . . . . . . . . . . 22 6.1.4. Endpoint Examples . . . . . . . . . . . . . . . . . . 22
6.1.5. Multicast Examples . . . . . . . . . . . . . . . . . 22 6.1.5. Multicast Examples . . . . . . . . . . . . . . . . . 23
6.2. Specifying Transport Properties . . . . . . . . . . . . . 25 6.2. Specifying Transport Properties . . . . . . . . . . . . . 26
6.2.1. Reliable Data Transfer (Connection) . . . . . . . . . 28 6.2.1. Reliable Data Transfer (Connection) . . . . . . . . . 29
6.2.2. Preservation of Message Boundaries . . . . . . . . . 28 6.2.2. Preservation of Message Boundaries . . . . . . . . . 29
6.2.3. Configure Per-Message Reliability . . . . . . . . . . 28 6.2.3. Configure Per-Message Reliability . . . . . . . . . . 29
6.2.4. Preservation of Data Ordering . . . . . . . . . . . . 28 6.2.4. Preservation of Data Ordering . . . . . . . . . . . . 30
6.2.5. Use 0-RTT Session Establishment with a Safely 6.2.5. Use 0-RTT Session Establishment with a Safely
Replayable Message . . . . . . . . . . . . . . . . . 29 Replayable Message . . . . . . . . . . . . . . . . . 30
6.2.6. Multistream Connections in Group . . . . . . . . . . 29 6.2.6. Multistream Connections in Group . . . . . . . . . . 30
6.2.7. Full Checksum Coverage on Sending . . . . . . . . . . 29 6.2.7. Full Checksum Coverage on Sending . . . . . . . . . . 30
6.2.8. Full Checksum Coverage on Receiving . . . . . . . . . 29 6.2.8. Full Checksum Coverage on Receiving . . . . . . . . . 31
6.2.9. Congestion control . . . . . . . . . . . . . . . . . 30 6.2.9. Congestion control . . . . . . . . . . . . . . . . . 31
6.2.10. Keep alive . . . . . . . . . . . . . . . . . . . . . 30 6.2.10. Keep alive . . . . . . . . . . . . . . . . . . . . . 31
6.2.11. Interface Instance or Type . . . . . . . . . . . . . 30 6.2.11. Interface Instance or Type . . . . . . . . . . . . . 32
6.2.12. Provisioning Domain Instance or Type . . . . . . . . 31 6.2.12. Provisioning Domain Instance or Type . . . . . . . . 33
6.2.13. Use Temporary Local Address . . . . . . . . . . . . . 32 6.2.13. Use Temporary Local Address . . . . . . . . . . . . . 34
6.2.14. Multipath Transport . . . . . . . . . . . . . . . . . 33 6.2.14. Multipath Transport . . . . . . . . . . . . . . . . . 34
6.2.15. Advertisement of Alternative Addresses . . . . . . . 34 6.2.15. Advertisement of Alternative Addresses . . . . . . . 35
6.2.16. Direction of communication . . . . . . . . . . . . . 34 6.2.16. Direction of communication . . . . . . . . . . . . . 35
6.2.17. Notification of ICMP soft error message arrival . . . 35 6.2.17. Notification of ICMP soft error message arrival . . . 36
6.2.18. Initiating side is not the first to write . . . . . . 35 6.2.18. Initiating side is not the first to write . . . . . . 36
6.3. Specifying Security Parameters and Callbacks . . . . . . 36 6.3. Specifying Security Parameters and Callbacks . . . . . . 37
6.3.1. Specifying Security Parameters on a Pre-Connection . 36 6.3.1. Specifying Security Parameters on a Preconnection . . 37
6.3.2. Connection Establishment Callbacks . . . . . . . . . 38 6.3.2. Connection Establishment Callbacks . . . . . . . . . 39
7. Establishing Connections . . . . . . . . . . . . . . . . . . 38 7. Establishing Connections . . . . . . . . . . . . . . . . . . 40
7.1. Active Open: Initiate . . . . . . . . . . . . . . . . . . 39 7.1. Active Open: Initiate . . . . . . . . . . . . . . . . . . 40
7.2. Passive Open: Listen . . . . . . . . . . . . . . . . . . 40 7.2. Passive Open: Listen . . . . . . . . . . . . . . . . . . 41
7.3. Peer-to-Peer Establishment: Rendezvous . . . . . . . . . 41 7.3. Peer-to-Peer Establishment: Rendezvous . . . . . . . . . 43
7.4. Connection Groups . . . . . . . . . . . . . . . . . . . . 43 7.4. Connection Groups . . . . . . . . . . . . . . . . . . . . 44
7.5. Adding and Removing Endpoints on a Connection . . . . . . 45 7.5. Adding and Removing Endpoints on a Connection . . . . . . 46
8. Managing Connections . . . . . . . . . . . . . . . . . . . . 45 8. Managing Connections . . . . . . . . . . . . . . . . . . . . 47
8.1. Generic Connection Properties . . . . . . . . . . . . . . 47 8.1. Generic Connection Properties . . . . . . . . . . . . . . 49
8.1.1. Required Minimum Corruption Protection Coverage for 8.1.1. Required Minimum Corruption Protection Coverage for
Receiving . . . . . . . . . . . . . . . . . . . . . . 47 Receiving . . . . . . . . . . . . . . . . . . . . . . 49
8.1.2. Connection Priority . . . . . . . . . . . . . . . . . 48 8.1.2. Connection Priority . . . . . . . . . . . . . . . . . 50
8.1.3. Timeout for Aborting Connection . . . . . . . . . . . 48 8.1.3. Timeout for Aborting Connection . . . . . . . . . . . 50
8.1.4. Timeout for keep alive packets . . . . . . . . . . . 48 8.1.4. Timeout for keep alive packets . . . . . . . . . . . 50
8.1.5. Connection Group Transmission Scheduler . . . . . . . 49 8.1.5. Connection Group Transmission Scheduler . . . . . . . 51
8.1.6. Capacity Profile . . . . . . . . . . . . . . . . . . 49 8.1.6. Capacity Profile . . . . . . . . . . . . . . . . . . 51
8.1.7. Policy for using Multipath Transports . . . . . . . . 51 8.1.7. Policy for using Multipath Transports . . . . . . . . 53
8.1.8. Bounds on Send or Receive Rate . . . . . . . . . . . 52 8.1.8. Bounds on Send or Receive Rate . . . . . . . . . . . 54
8.1.9. Group Connection Limit . . . . . . . . . . . . . . . 52 8.1.9. Group Connection Limit . . . . . . . . . . . . . . . 54
8.1.10. Isolate Session . . . . . . . . . . . . . . . . . . . 52 8.1.10. Isolate Session . . . . . . . . . . . . . . . . . . . 54
8.1.11. Read-only Connection Properties . . . . . . . . . . . 53 8.1.11. Read-only Connection Properties . . . . . . . . . . . 55
8.2. TCP-specific Properties: User Timeout Option (UTO) . . . 54 8.2. TCP-specific Properties: User Timeout Option (UTO) . . . 56
8.2.1. Advertised User Timeout . . . . . . . . . . . . . . . 54 8.2.1. Advertised User Timeout . . . . . . . . . . . . . . . 57
8.2.2. User Timeout Enabled . . . . . . . . . . . . . . . . 54 8.2.2. User Timeout Enabled . . . . . . . . . . . . . . . . 57
8.2.3. Timeout Changeable . . . . . . . . . . . . . . . . . 55 8.2.3. Timeout Changeable . . . . . . . . . . . . . . . . . 57
8.3. Connection Lifecycle Events . . . . . . . . . . . . . . . 55 8.3. Connection Lifecycle Events . . . . . . . . . . . . . . . 58
8.3.1. Soft Errors . . . . . . . . . . . . . . . . . . . . . 55 8.3.1. Soft Errors . . . . . . . . . . . . . . . . . . . . . 58
8.3.2. Path change . . . . . . . . . . . . . . . . . . . . . 55 8.3.2. Path change . . . . . . . . . . . . . . . . . . . . . 58
9. Data Transfer . . . . . . . . . . . . . . . . . . . . . . . . 55 9. Data Transfer . . . . . . . . . . . . . . . . . . . . . . . . 58
9.1. Messages and Framers . . . . . . . . . . . . . . . . . . 56 9.1. Messages and Framers . . . . . . . . . . . . . . . . . . 58
9.1.1. Message Contexts . . . . . . . . . . . . . . . . . . 56 9.1.1. Message Contexts . . . . . . . . . . . . . . . . . . 59
9.1.2. Message Framers . . . . . . . . . . . . . . . . . . . 56 9.1.2. Message Framers . . . . . . . . . . . . . . . . . . . 59
9.1.3. Message Properties . . . . . . . . . . . . . . . . . 59 9.1.3. Message Properties . . . . . . . . . . . . . . . . . 62
9.2. Sending Data . . . . . . . . . . . . . . . . . . . . . . 65 9.2. Sending Data . . . . . . . . . . . . . . . . . . . . . . 68
9.2.1. Basic Sending . . . . . . . . . . . . . . . . . . . . 65 9.2.1. Basic Sending . . . . . . . . . . . . . . . . . . . . 68
9.2.2. Send Events . . . . . . . . . . . . . . . . . . . . . 66 9.2.2. Send Events . . . . . . . . . . . . . . . . . . . . . 69
9.2.3. Partial Sends . . . . . . . . . . . . . . . . . . . . 67 9.2.3. Partial Sends . . . . . . . . . . . . . . . . . . . . 70
9.2.4. Batching Sends . . . . . . . . . . . . . . . . . . . 68 9.2.4. Batching Sends . . . . . . . . . . . . . . . . . . . 71
9.2.5. Send on Active Open: InitiateWithSend . . . . . . . . 68 9.2.5. Send on Active Open: InitiateWithSend . . . . . . . . 71
9.2.6. Priority and the Transport Services API . . . . . . . 69 9.2.6. Priority and the Transport Services API . . . . . . . 72
9.3. Receiving Data . . . . . . . . . . . . . . . . . . . . . 70 9.3. Receiving Data . . . . . . . . . . . . . . . . . . . . . 72
9.3.1. Enqueuing Receives . . . . . . . . . . . . . . . . . 70 9.3.1. Enqueuing Receives . . . . . . . . . . . . . . . . . 73
9.3.2. Receive Events . . . . . . . . . . . . . . . . . . . 71 9.3.2. Receive Events . . . . . . . . . . . . . . . . . . . 73
9.3.3. Receive Message Properties . . . . . . . . . . . . . 73 9.3.3. Receive Message Properties . . . . . . . . . . . . . 76
10. Connection Termination . . . . . . . . . . . . . . . . . . . 75 10. Connection Termination . . . . . . . . . . . . . . . . . . . 78
11. Connection State and Ordering of Operations and Events . . . 76 11. Connection State and Ordering of Operations and Events . . . 79
12. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 78 12. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 81
13. Privacy and Security Considerations . . . . . . . . . . . . . 78 13. Privacy and Security Considerations . . . . . . . . . . . . . 81
14. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 80 14. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . 83
15. References . . . . . . . . . . . . . . . . . . . . . . . . . 80 15. References . . . . . . . . . . . . . . . . . . . . . . . . . 83
15.1. Normative References . . . . . . . . . . . . . . . . . . 80 15.1. Normative References . . . . . . . . . . . . . . . . . . 83
15.2. Informative References . . . . . . . . . . . . . . . . . 81 15.2. Informative References . . . . . . . . . . . . . . . . . 84
Appendix A. Implementation Mapping . . . . . . . . . . . . . . . 85 Appendix A. Implementation Mapping . . . . . . . . . . . . . . . 88
A.1. Types . . . . . . . . . . . . . . . . . . . . . . . . . . 85 A.1. Types . . . . . . . . . . . . . . . . . . . . . . . . . . 88
A.2. Events and Errors . . . . . . . . . . . . . . . . . . . . 85 A.2. Events and Errors . . . . . . . . . . . . . . . . . . . . 89
A.3. Time Duration . . . . . . . . . . . . . . . . . . . . . . 86 A.3. Time Duration . . . . . . . . . . . . . . . . . . . . . . 89
Appendix B. Convenience Functions . . . . . . . . . . . . . . . 86 Appendix B. Convenience Functions . . . . . . . . . . . . . . . 89
B.1. Adding Preference Properties . . . . . . . . . . . . . . 86 B.1. Adding Preference Properties . . . . . . . . . . . . . . 89
B.2. Transport Property Profiles . . . . . . . . . . . . . . . 86 B.2. Transport Property Profiles . . . . . . . . . . . . . . . 90
B.2.1. reliable-inorder-stream . . . . . . . . . . . . . . . 86 B.2.1. reliable-inorder-stream . . . . . . . . . . . . . . . 90
B.2.2. reliable-message . . . . . . . . . . . . . . . . . . 87 B.2.2. reliable-message . . . . . . . . . . . . . . . . . . 90
B.2.3. unreliable-datagram . . . . . . . . . . . . . . . . . 87 B.2.3. unreliable-datagram . . . . . . . . . . . . . . . . . 91
Appendix C. Relationship to the Minimal Set of Transport Services Appendix C. Relationship to the Minimal Set of Transport Services
for End Systems . . . . . . . . . . . . . . . . . . . . . 88 for End Systems . . . . . . . . . . . . . . . . . . . . . 92
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 91 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 95
1. Introduction 1. Introduction
This document specifies an abstract application programming interface This document specifies an abstract application programming interface
(API) that describes the interface component of the high-level (API) that describes the interface component of the high-level
Transport Services architecture defined in [I-D.ietf-taps-arch]. A Transport Services architecture defined in [I-D.ietf-taps-arch]. A
Transport Services system supports asynchronous, atomic transmission Transport Services system supports asynchronous, atomic transmission
of messages over transport protocols and network paths dynamically of messages over transport protocols and network paths dynamically
selected at runtime, in environments where an endpoint selects from selected at runtime, in environments where an endpoint selects from
multiple interfaces and potential transport protocols. multiple network paths and potential transport protocols.
Applications that adopt this API will benefit from a wide set of Applications that adopt this API will benefit from a wide set of
transport features that can evolve over time. This protocol- transport features that can evolve over time. This protocol-
independent API ensures that the system providing the API can independent API ensures that the system providing the API can
optimize its behavior based on the application requirements and optimize its behavior based on the application requirements and
network conditions, without requiring changes to the applications. network conditions, without requiring changes to the applications.
This flexibility enables faster deployment of new features and This flexibility enables faster deployment of new features and
protocols, and can support applications by offering racing and protocols, and can support applications by offering racing and
fallback mechanisms, which otherwise need to be separately fallback mechanisms, which otherwise need to be separately
implemented in each application. Transport Services implementations implemented in each application. Transport Services Implementations
are free to take any desired form as long as the API specification in are free to take any desired form as long as the API specification in
this document is honored; a nonprescriptive guide to implementing a this document is honored; a nonprescriptive guide to implementing a
Transport Services system is available [I-D.ietf-taps-impl]. Transport Services system is available [I-D.ietf-taps-impl].
The Transport Services system derives specific path and protocol The Transport Services system derives specific path and protocol
selection properties and supported transport features from the selection properties and supported transport features from the
analysis provided in [RFC8095], [RFC8923], and [RFC8922]. The analysis provided in [RFC8095], [RFC8923], and [RFC8922]. The
Transport Services API enables an implementation to dynamically Transport Services API enables an implementation to dynamically
choose a transport protocol rather than statically binding choose a transport protocol rather than statically binding
applications to a protocol at compile time. The Transport Services applications to a protocol at compile time. The Transport Services
skipping to change at page 6, line 15 skipping to change at page 6, line 15
Object.Action() Object.Action()
* An object sends an event: * An object sends an event:
Object -> Event<> Object -> Event<>
* An action takes a set of Parameters; an event contains a set of * An action takes a set of Parameters; an event contains a set of
Parameters. action and event parameters whose names are suffixed Parameters. action and event parameters whose names are suffixed
with a question mark are optional. with a question mark are optional.
Action(param0, param1?, ...) / Event<param0, param1, ...> Action(param0, param1?, ...)
Event<param0, param1?, ...>
Objects that are passed as parameters to actions use call-by-value Objects that are passed as parameters to actions use call-by-value
behavior. Actions associated with no object are actions on the API; behavior. Actions associated with no object are actions on the API;
they are equivalent to actions on a per-application global context. they are equivalent to actions on a per-application global context.
Events are sent to the application or application-supplied code (e.g. Events are sent to the application or application-supplied code (e.g.
framers, see Section 9.1.2) for processing; the details of event framers, see Section 9.1.2) for processing; the details of event
interfaces are platform- and implementation-specific, and may be interfaces are platform- and implementation-specific, and can be
implemented using other forms of asynchronous processing, as implemented using other forms of asynchronous processing, as
idiomatic for the implementing platform. idiomatic for the implementing platform.
We also make use of the following basic types: We also make use of the following basic types:
* Boolean: Instances take the value true or false. * Boolean: Instances take the value true or false.
* Integer: Instances take positive or negative integer values. * Integer: Instances take integer values.
* Numeric: Instances take positive or negative real number values. * Numeric: Instances take real number values.
* String: Instances are represented in a way that is common to the * String: Instances are represented in UTF-8.
programming language, e.g. UTF-8.
* IP Address: An IPv4 or IPv6 address. * IP Address: An IPv4 or IPv6 address [RFC5952].
* Enumeration: A family of types in which each instance takes one of * Enumeration: A family of types in which each instance takes one of
a fixed, predefined set of values specific to a given enumerated a fixed, predefined set of values specific to a given enumerated
type. type.
* Tuple: An ordered grouping of multiple value types, represented as * Tuple: An ordered grouping of multiple value types, represented as
a comma-separated list in parentheses, e.g., (Enumeration, a comma-separated list in parentheses, e.g., (Enumeration,
Preference). Instances take a sequence of values each valid for Preference). Instances take a sequence of values each valid for
the corresponding value type. the corresponding value type.
* Array: Denoted []Type, an instance takes a value for each of zero * Array: Denoted []Type, an instance takes a value for each of zero
or more elements in a sequence of the given Type. An array may be or more elements in a sequence of the given Type. An array can be
of fixed or variable length. of fixed or variable length.
* Collection: An unordered grouping of one or more values of the * Set: An unordered grouping of one or more different values of the
same type. same type.
For guidance on how these abstract concepts may be implemented in For guidance on how these abstract concepts can be implemented in
languages in accordance with native design patterns and language and languages in accordance with language-specific design patterns and
platform features, see Appendix A. platform features, see Appendix A.
1.2. Specification of Requirements 1.2. Specification of Requirements
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
"OPTIONAL" in this document are to be interpreted as described in BCP "OPTIONAL" in this document are to be interpreted as described in BCP
14 [RFC2119] [RFC8174] when, and only when, they appear in all 14 [RFC2119] [RFC8174] when, and only when, they appear in all
capitals, as shown here. capitals, as shown here.
skipping to change at page 8, line 6 skipping to change at page 8, line 6
reception. This allows concurrent operations during establishment reception. This allows concurrent operations during establishment
and event-driven application interactions with the transport and event-driven application interactions with the transport
layer. layer.
* Selection between alternate network paths, using additional * Selection between alternate network paths, using additional
information about the networks over which a Connection can operate information about the networks over which a Connection can operate
(e.g. Provisioning Domain (PvD) information [RFC7556]) where (e.g. Provisioning Domain (PvD) information [RFC7556]) where
available. available.
* Explicit support for transport-specific features to be applied, * Explicit support for transport-specific features to be applied,
should that particular transport be part of a chosen Protocol when that particular transport is part of a chosen Protocol Stack.
Stack.
* Explicit support for security properties as first-order transport * Explicit support for security properties as first-order transport
features. features.
* Explicit support for configuration of cryptographic identities and * Explicit support for configuration of cryptographic identities and
transport security parameters persistent across multiple transport security parameters persistent across multiple
Connections. Connections.
* Explicit support for multistreaming and multipath transport * Explicit support for multistreaming and multipath transport
protocols, and the grouping of related Connections into Connection protocols, and the grouping of related Connections into Connection
skipping to change at page 8, line 38 skipping to change at page 8, line 37
an Endpoint. A Connection object represents an instance of a an Endpoint. A Connection object represents an instance of a
transport Protocol Stack on which data can be sent to and/or received transport Protocol Stack on which data can be sent to and/or received
from a Remote Endpoint (i.e., a logical connection that, depending on from a Remote Endpoint (i.e., a logical connection that, depending on
the kind of transport, can be bi-directional or unidirectional, and the kind of transport, can be bi-directional or unidirectional, and
that can use a stream protocol or a datagram protocol). Connections that can use a stream protocol or a datagram protocol). Connections
are presented consistently to the application, irrespective of are presented consistently to the application, irrespective of
whether the underlying transport is connection-less or connection- whether the underlying transport is connection-less or connection-
oriented. Connections can be created from Preconnections in three oriented. Connections can be created from Preconnections in three
ways: ways:
* by initiating the Preconnection (i.e., actively opening, as in a * by initiating the Preconnection (i.e., creating a Connection from
client; Section 7.1), the Preconnection, actively opening, as in a client; see
Initiate() in Section 7.1),
* through listening on the Preconnection (i.e., passively opening, * by listening on the Preconnection (i.e., creating a Listener based
as in a server Section 7.2), on the Preconnection, passively opening, as in a server; see
Listen() in Section 7.2),
* or rendezvousing on the Preconnection (i.e., peer to peer * or by a rendezvous for the Preconnection (i.e., peer to peer
establishment; Section 7.3). establishment; see Rendezvous() in Section 7.3).
Once a Connection is established, data can be sent and received on it Once a Connection is established, data can be sent and received on it
in the form of Messages. The API supports the preservation of in the form of Messages. The API supports the preservation of
message boundaries both via explicit Protocol Stack support, and via message boundaries both via explicit Protocol Stack support, and via
application support through a Message Framer that finds message application support through a Message Framer that finds message
boundaries in a stream. Messages are received asynchronously through boundaries in a stream. Messages are received asynchronously through
event handlers registered by the application. Errors and other event handlers registered by the application. Errors and other
notifications also happen asynchronously on the Connection. It is notifications also happen asynchronously on the Connection. It is
not necessary for an application to handle all events; some events not necessary for an application to handle all events; some events
may have implementation-specific default handlers. The application can have implementation-specific default handlers.
should not assume that ignoring events (e.g., errors) is always safe.
The application SHOULD NOT assume that ignoring events (e.g., errors)
is always safe.
3.1. Usage Examples 3.1. Usage Examples
The following usage examples illustrate how an application might use The following usage examples illustrate how an application might use
the Transport Services API to: the Transport Services API to:
* Act as a server, by listening for incoming Connections, receiving * Act as a server, by listening for incoming Connections, receiving
requests, and sending responses, see Section 3.1.1. requests, and sending responses, see Section 3.1.1.
* Act as a client, by connecting to a Remote Endpoint using * Act as a client, by connecting to a Remote Endpoint using
Initiate, sending requests, and receiving responses, see Initiate, sending requests, and receiving responses, see
skipping to change at page 10, line 44 skipping to change at page 10, line 44
// Stop listening for incoming Connections // Stop listening for incoming Connections
// (this example supports only one Connection) // (this example supports only one Connection)
Listener.Stop() Listener.Stop()
//---- Receive event handler end ---- //---- Receive event handler end ----
3.1.2. Client Example 3.1.2. Client Example
This is an example of how an application might open two Connections This is an example of how an application might open two Connections
to a remote application using the Transport Services API, and send a to a remote application using the Transport Services API, and send a
request as well as receive a response on each of them. request as well as receive a response on each of them. The code
designated with comments as "Ready event handler" could, e.g., be
implemented as a callback function, for example. This function would
receive the Connection that it expects to operate on ("Connection"
and "Connection2" in the example), handed over using the variable
name "C".
RemoteSpecifier := NewRemoteEndpoint() RemoteSpecifier := NewRemoteEndpoint()
RemoteSpecifier.WithHostname("example.com") RemoteSpecifier.WithHostName("example.com")
RemoteSpecifier.WithService("https") RemoteSpecifier.WithService("https")
TransportProperties := NewTransportProperties() TransportProperties := NewTransportProperties()
TransportProperties.Require(preserve-msg-boundaries) TransportProperties.Require(preserve-msg-boundaries)
// Reliable Data Transfer and Preserve Order are Required by default // Reliable Data Transfer and Preserve Order are Required by default
SecurityParameters := NewSecurityParameters() SecurityParameters := NewSecurityParameters()
TrustCallback := NewCallback({ TrustCallback := NewCallback({
// Verify identity of the Remote Endpoint, return the result // Verify identity of the Remote Endpoint, return the result
}) })
SecurityParameters.SetTrustVerificationCallback(TrustCallback) SecurityParameters.SetTrustVerificationCallback(TrustCallback)
// Specifying a local endpoint is optional when using Initiate // Specifying a Local Endpoint is optional when using Initiate
Preconnection := NewPreconnection(RemoteSpecifier, Preconnection := NewPreconnection(RemoteSpecifier,
TransportProperties, TransportProperties,
SecurityParameters) SecurityParameters)
Connection := Preconnection.Initiate() Connection := Preconnection.Initiate()
Connection2 := Connection.Clone() Connection2 := Connection.Clone()
Connection -> Ready<> Connection -> Ready<>
Connection2 -> Ready<> Connection2 -> Ready<>
skipping to change at page 11, line 44 skipping to change at page 11, line 44
C.Receive() C.Receive()
//---- Ready event handler for any Connection C end ---- //---- Ready event handler for any Connection C end ----
Connection -> Received<messageDataResponse, messageContext> Connection -> Received<messageDataResponse, messageContext>
Connection2 -> Received<messageDataResponse, messageContext> Connection2 -> Received<messageDataResponse, messageContext>
// Close the Connection in a Receive event handler // Close the Connection in a Receive event handler
Connection.Close() Connection.Close()
Connection2.Close() Connection2.Close()
Preconnections are reusable after being used to initiate a A Preconnection serves as a template for creating a Connection via
Connection, whether this Connection was closed or not. Hence, it initiating, listening, or via rendezvous. Once a Connection has been
would be correct to continue as follows after the above example: created, changes made to the Preconnection that was used to create it
do not affect this Connection. Preconnections are reusable after
being used to create a Connection, whether this Connection was closed
or not. Hence, in the above example, it would be correct for the
client to initiate a third Connection to the example.com server by
continuing as follows:
//.. carry out adjustments to the Preconnection, if desired //.. carry out adjustments to the Preconnection, if desired
Connection := Preconnection.Initiate() Connection3 := Preconnection.Initiate()
3.1.3. Peer Example 3.1.3. Peer Example
This is an example of how an application might establish a Connection This is an example of how an application might establish a Connection
with a peer using Rendezvous, send a Message, and receive a Message. with a peer using Rendezvous, send a Message, and receive a Message.
// Configure local candidates: a port on the Local Endpoint // Configure local candidates: a port on the Local Endpoint
// and via a STUN server // and via a STUN server
HostCandidate := NewLocalEndpoint() HostCandidate := NewLocalEndpoint()
HostCandidate.WithPort(9876) HostCandidate.WithPort(9876)
skipping to change at page 12, line 40 skipping to change at page 12, line 43
// the remote candidates have not yet been specified, the // the remote candidates have not yet been specified, the
// ResolvedRemote list returned will be empty and is not // ResolvedRemote list returned will be empty and is not
// used. // used.
ResolvedLocal, ResolvedRemote = Preconnection.Resolve() ResolvedLocal, ResolvedRemote = Preconnection.Resolve()
// Application-specific code goes here to send the ResolvedLocal // Application-specific code goes here to send the ResolvedLocal
// list to peer via some out-of-band signalling channel (e.g., // list to peer via some out-of-band signalling channel (e.g.,
// in a SIP message) // in a SIP message)
... ...
// Application-specific code goes here to receive the list of // Application-specific code goes here to receive RemoteCandidates
// RemoteCandidates from peer via the signalling channel // (type []RemoteEndpoint, a list of RemoteEndpoint objects) from
// the peer via the signalling channel
... ...
// Add remote candidates and initiate the rendezvous: // Add remote candidates and initiate the rendezvous:
Preconnection.AddRemote(RemoteCandidates) Preconnection.AddRemote(RemoteCandidates)
Preconnection.Rendezvous() Preconnection.Rendezvous()
Preconnection -> RendezvousDone<Connection> Preconnection -> RendezvousDone<Connection>
//---- RendezvousDone event handler begin ---- //---- RendezvousDone event handler begin ----
Connection.Send(messageDataRequest) Connection.Send(messageDataRequest)
Connection.Receive() Connection.Receive()
//---- RendezvousDone event handler end ---- //---- RendezvousDone event handler end ----
Connection -> Received<messageDataResponse, messageContext> Connection -> Received<messageDataResponse, messageContext>
// If new Remote Endpoint candidates are received from the // If new Remote Endpoint candidates are received from the
// peer over the signalling channel, for example if using // peer over the signalling channel, for example if using
// Trickle ICE, then add them to the Connection: // Trickle ICE, then add them to the Connection:
Connection.AddRemote(NewRemoteCandidates) Connection.AddRemote(NewRemoteCandidates)
// On a PathChange<> events, resolve the local endpoints to // On a PathChange<> event, resolve the Local Endpoint Identifiers to
// see if a new local endpoint has become available and, if // see if a new Local Endpoint has become available and, if
// so, send to the peer as a new candidate and add to the // so, send to the peer as a new candidate and add to the
// Connection: // Connection:
Connection -> PathChange<> Connection -> PathChange<>
//---- PathChange event handler begin ---- //---- PathChange event handler begin ----
ResolvedLocal, ResolvedRemote = Preconnection.Resolve() ResolvedLocal, ResolvedRemote = Preconnection.Resolve()
if ResolvedLocal has changed: if ResolvedLocal has changed:
// Application-specific code goes here to send the // Application-specific code goes here to send the
// ResolvedLocal list to peer via signalling channel // ResolvedLocal list to peer via signalling channel
... ...
// Add the new local endpoints to the Connection: // Add the new Local Endpoints to the Connection:
Connection.AddLocal(ResolvedLocal) Connection.AddLocal(ResolvedLocal)
//---- PathChange event handler end ---- //---- PathChange event handler end ----
// Close the Connection in a Receive event handler // Close the Connection in a Receive event handler
Connection.Close() Connection.Close()
4. Transport Properties 4. Transport Properties
Each application using the Transport Services API declares its Each application using the Transport Services API declares its
preferences for how the Transport Services system should operate. preferences for how the Transport Services system is to operate.
This is done by using Transport Properties, as defined in This is done by using Transport Properties, as defined in
[I-D.ietf-taps-arch], at each stage of the lifetime of a Connection. [I-D.ietf-taps-arch], at each stage of the lifetime of a Connection.
Transport Properties are divided into Selection, Connection, and Transport Properties are divided into Selection, Connection, and
Message Properties. Message Properties.
Selection Properties (see Section 6.2) can only be set during pre- Selection Properties (see Section 6.2) can only be set during pre-
establishment. They are only used to specify which paths and establishment. They are only used to specify which paths and
Protocol Stacks can be used and are preferred by the application. Protocol Stacks can be used and are preferred by the application.
Calling Initiate on a Preconnection creates an outbound Connection, Calling Initiate on a Preconnection creates an outbound Connection,
and the Selection Properties remain readable from the Connection, but and the Selection Properties remain readable from the Connection, but
become immutable. Selection Properties can be set on Preconnections, become immutable. Selection Properties can be set on Preconnections,
and the effect of Selection Properties can be queried on Connections and the effect of Selection Properties can be queried on Connections
and Messages. and Messages.
Connection Properties (see Section 8.1) are used to inform decisions Connection Properties (see Section 8.1) are used to inform decisions
made during establishment and to fine-tune the established made during establishment and to fine-tune the established
Connection. They can be set during pre-establishment, and may be Connection. They can be set during pre-establishment, and can be
changed later. Connection Properties can be set on Connections and changed later. Connection Properties can be set on Connections and
Preconnections; when set on Preconnections, they act as an initial Preconnections; when set on Preconnections, they act as an initial
default for the resulting Connections. default for the resulting Connections.
Message Properties (see Section 9.1.3) control the behavior of the Message Properties (see Section 9.1.3) control the behavior of the
selected protocol stack(s) when sending Messages. Message Properties selected protocol stack(s) when sending Messages. Message Properties
can be set on Messages, Connections, and Preconnections; when set on can be set on Messages, Connections, and Preconnections; when set on
the latter two, they act as an initial default for the Messages sent the latter two, they act as an initial default for the Messages sent
over those Connections. over those Connections.
skipping to change at page 14, line 29 skipping to change at page 14, line 32
Preconnections is preferred over setting them later. Early Preconnections is preferred over setting them later. Early
specification of Connection Properties allows their use as additional specification of Connection Properties allows their use as additional
input to the selection process. Protocol-specific Properties, which input to the selection process. Protocol-specific Properties, which
enable configuration of specialized features of a specific protocol enable configuration of specialized features of a specific protocol
(see Section 3.2 of [I-D.ietf-taps-arch]) are not used as an input to (see Section 3.2 of [I-D.ietf-taps-arch]) are not used as an input to
the selection process, but only support configuration if the the selection process, but only support configuration if the
respective protocol has been selected. respective protocol has been selected.
4.1. Transport Property Names 4.1. Transport Property Names
Transport Properties are referred to by property names. For the Transport Properties are referred to by property names, represented
purposes of this document, these names are alphanumeric strings in as case-insensitive strings. These names serve two purposes:
which the following characters are allowed: lowercase letters a-z,
uppercase letters A-Z, digits 0-9, the hyphen -, and the underscore
_. These names serve two purposes:
* Allowing different components of a Transport Services * Allowing different components of a Transport Services
implementation to pass Transport Properties, e.g., between a Implementation to pass Transport Properties, e.g., between a
language frontend and a policy manager, or as a representation of language frontend and a policy manager, or as a representation of
properties retrieved from a file or other storage. properties retrieved from a file or other storage.
* Making the code of different Transport Services implementations * Making the code of different Transport Services Implementations
look similar. While individual programming languages may preclude look similar. While individual programming languages might
strict adherence to the aforementioned naming convention (for preclude strict adherence to the aforementioned naming convention
instance, by prohibiting the use of hyphens in symbols), users (for instance, by prohibiting the use of hyphens in symbols),
interacting with multiple implementations will still benefit from users interacting with multiple implementations will still benefit
the consistency resulting from the use of visually similar from the consistency resulting from the use of visually similar
symbols. symbols.
Transport Property Names are hierarchically organized in the form Transport Property Names are hierarchically organized in the form
[<Namespace>.]<PropertyName>. [<Namespace>.]<PropertyName>.
* The Namespace component MUST be empty for well-known, generic * The optional Namespace component and its trailing character . MUST
properties, i.e., for properties that are not specific to a be omitted for well-known, generic properties, i.e., for
protocol. properties that are not specific to a protocol.
* Protocol-specific Properties MUST use the protocol acronym as the * Protocol-specific Properties MUST use the protocol acronym as the
Namespace (e.g., a tcp Connection could support a TCP-specific Namespace (e.g., a Connection that uses TCP could support a TCP-
Transport Property, such as the user timeout value, in a Protocol- specific Transport Property, such as the TCP user timeout value,
specific Property called tcp.userTimeoutValue (see Section 8.2)). in a Protocol-specific Property called tcp.userTimeoutValue (see
Section 8.2)).
* Vendor or implementation specific properties MUST use a string * Vendor or implementation specific properties MUST be placed in a
identifying the vendor or implementation as the Namespace. Namespace starting with the underscore _ character and SHOULD use
a string identifying the vendor or implementation.
* For IETF protocols, the name of a Protocol-specific Property * For IETF protocols, the name of a Protocol-specific Property
SHOULD be specified in an IETF document published in the RFC SHOULD be specified in an IETF document published in the RFC
Series. Series after IETF review. An IETF protocol Namespace does not
start with an underscore character.
Namespaces for each of the keywords provided in the IANA protocol Namespaces for each of the keywords provided in the IANA protocol
numbers registry (see https://www.iana.org/assignments/protocol- numbers registry (see https://www.iana.org/assignments/protocol-
numbers/protocol-numbers.xhtml) are reserved for Protocol-specific numbers/protocol-numbers.xhtml) are reserved for Protocol-specific
Properties and MUST NOT be used for vendor or implementation-specific Properties and MUST NOT be used for vendor or implementation-specific
properties. Terms listed as keywords as in the protocol numbers properties. Terms listed as keywords as in the protocol numbers
registry SHOULD be avoided as any part of a vendor- or registry SHOULD be avoided as any part of a vendor- or
implementation-specific property name. implementation-specific property name.
Though Transport Property Names are case-insensitive, it is
recommended to use camelCase to improve readability. Implementations
may transpose Transport Property Names into snake_case or PascalCase
to blend into the language environment.
4.2. Transport Property Types 4.2. Transport Property Types
Each Transport Property has one of the basic types described in Each Transport Property has one of the basic types described in
Section 1.1. Section 1.1.
Most Selection Properties (see Section 6.2) are of the Enumeration Most Selection Properties (see Section 6.2) are of the Enumeration
type, and use the Preference Enumeration, which takes one of five type, and use the Preference Enumeration, which takes one of five
possible values (Prohibit, Avoid, Ignore, Prefer, or Require) possible values (Prohibit, Avoid, No Preference, Prefer, or Require)
denoting the level of preference for a given property during protocol denoting the level of preference for a given property during protocol
selection. selection.
5. Scope of the API Definition 5. Scope of the API Definition
This document defines a language- and platform-independent API of a This document defines a language- and platform-independent API of a
Transport Services system. Given the wide variety of languages and Transport Services system. Given the wide variety of languages and
language conventions used to write applications that use the language conventions used to write applications that use the
transport layer to connect to other applications over the Internet, transport layer to connect to other applications over the Internet,
this independence makes this API necessarily abstract. this independence makes this API necessarily abstract.
skipping to change at page 16, line 31 skipping to change at page 16, line 45
Property that is not available in a transport protocol implemented Property that is not available in a transport protocol implemented
on a specific platform. For example, if TCP is the only on a specific platform. For example, if TCP is the only
underlying transport protocol, the Message Property msgOrdered can underlying transport protocol, the Message Property msgOrdered can
be implemented (trivially, as a no-op) as disabling the be implemented (trivially, as a no-op) as disabling the
requirement for ordering will not have any effect on delivery requirement for ordering will not have any effect on delivery
order for Connections over TCP. Similarly, the msgLifetime order for Connections over TCP. Similarly, the msgLifetime
Message Property can be implemented but ignored, as the Message Property can be implemented but ignored, as the
description of this Property states that "it is not guaranteed description of this Property states that "it is not guaranteed
that a Message will not be sent when its Lifetime has expired". that a Message will not be sent when its Lifetime has expired".
* Implementations may use other representations for Transport * Implementations can use other representations for Transport
Property Names, e.g., by providing constants, but should provide a Property Names, e.g., by providing constants, but should provide a
straight-forward mapping between their representation and the straight-forward mapping between their representation and the
property names specified here. property names specified here.
6. Pre-Establishment Phase 6. Pre-Establishment Phase
The pre-establishment phase allows applications to specify properties The pre-establishment phase allows applications to specify properties
for the Connections that they are about to make, or to query the API for the Connections that they are about to make, or to query the API
about potential Connections they could make. about potential Connections they could make.
skipping to change at page 17, line 23 skipping to change at page 17, line 38
connections. If no Local Endpoint is specified, the Transport connections. If no Local Endpoint is specified, the Transport
Services system will assign an ephemeral local port to the Connection Services system will assign an ephemeral local port to the Connection
on the appropriate interface(s). At least one Remote Endpoint MUST on the appropriate interface(s). At least one Remote Endpoint MUST
be specified if the Preconnection is used to Initiate Connections, be specified if the Preconnection is used to Initiate Connections,
but the list of Remote Endpoints MAY be empty if the Preconnection is but the list of Remote Endpoints MAY be empty if the Preconnection is
used to Listen for incoming Connections. At least one Local Endpoint used to Listen for incoming Connections. At least one Local Endpoint
and one Remote Endpoint MUST be specified if a peer-to-peer and one Remote Endpoint MUST be specified if a peer-to-peer
Rendezvous is to occur based on the Preconnection. Rendezvous is to occur based on the Preconnection.
If more than one Local Endpoint is specified on a Preconnection, then If more than one Local Endpoint is specified on a Preconnection, then
all the Local Endpoints on the Preconnection MUST represent the same the application is indicating that all of the Local Endpoints are
host. For example, they might correspond to different interfaces on eligible to be used for Connections. For example, their Endpoint
a multi-homed host, of they might correspond to local interfaces and Identifiers might correspond to different interfaces on a multi-homed
a STUN server that can be resolved to a server reflexive address for host, or their Endpoint Identifiers might correspond to local
a Preconnection used to make a peer-to-peer Rendezvous. interfaces and a STUN server that can be resolved to a server
reflexive address for a Preconnection used to make a peer-to-peer
Rendezvous.
If more than one Remote Endpoint is specified on the Preconnection, If more than one Remote Endpoint is specified on the Preconnection,
then all the Remote Endpoints on the Preconnection should represent the application is indicating that it expects all of the Remote
the same service, to the extent that the application and the Endpoints to offer an equivalent service, and that the Transport
Transport Services system can validate that the Remote Endpoints are Services system can choose any of them for a Connection. For
indeed the same service. For example, the Remote Endpoints might example, a Remote Endpoint might represent various network interfaces
represent various network interfaces of a host, or a server reflexive of a host, or a server reflexive address that can be used to reach a
address that can be used to reach a host, or a set of hosts that host, or a set of hosts that provide equivalent local balanced
provide equivalent local balanced service. service.
In most cases, it is expected that a single Remote Endpoint will be In most cases, it is expected that a single Remote Endpoint will be
specified by name, and a later call to Initiate on the Preconnection specified by name, and a later call to Initiate on the Preconnection
(see Section 7.1) will internally resolve that name to a list of (see Section 7.1) will internally resolve that name to a list of
concrete endpoints. Specifying multiple Remote Endpoints on a concrete Endpoint Identifers. Specifying multiple Remote Endpoints
Preconnection allows applications to override this for more detailed on a Preconnection allows applications to override this for more
control. detailed control.
If Message Framers are used (see Section 9.1.2), they MUST be added If Message Framers are used (see Section 9.1.2), they MUST be added
to the Preconnection during pre-establishment. to the Preconnection during pre-establishment.
6.1. Specifying Endpoints 6.1. Specifying Endpoints
The Transport Services API uses the Local Endpoint and Remote The Transport Services API uses the Local Endpoint and Remote
Endpoint objects to refer to the endpoints of a Connection. Endpoint objects to refer to the endpoints of a Connection.
Endpoints can be created as either remote or local: Endpoints can be created as either remote or local:
RemoteSpecifier := NewRemoteEndpoint() RemoteSpecifier := NewRemoteEndpoint()
LocalSpecifier := NewLocalEndpoint() LocalSpecifier := NewLocalEndpoint()
A single Endpoint object represents the identity of a network host. A single Endpoint object represents the identity of a network host.
That endpoint can be more or less specific depending on which That endpoint can be more or less specific depending on which
identifiers are set. For example, an Endpoint that only specifies a Endpoint Identifiers are set. For example, an Endpoint that only
hostname may in fact end up corresponding to several different IP specifies a hostname can, in fact, finally correspond to several
addresses on different hosts. different IP addresses on different hosts.
An Endpoint object can be configured with the following identifiers: An Endpoint object can be configured with the following identifiers:
* Hostname (string): * HostName (string):
RemoteSpecifier.WithHostname("example.com") RemoteSpecifier.WithHostName("example.com")
* Port (a 16-bit integer): * Port (a 16-bit unsigned Integer):
RemoteSpecifier.WithPort(443) RemoteSpecifier.WithPort(443)
* Service (an identifier string that maps to a port; either a
service name associated with a port number, from
https://www.iana.org/assignments/service-names-port-numbers/
service-names-port-numbers.xhtml, or a DNS SRV service name to be
resolved):
* Service (an identifier that maps to a port; either the name of a
well-known service, or a DNS SRV service name to be resolved):
RemoteSpecifier.WithService("https") RemoteSpecifier.WithService("https")
* IP address (IPv4 or IPv6 address): * IP address (IPv4 or IPv6 address):
RemoteSpecifier.WithIPAddress(192.0.2.21) RemoteSpecifier.WithIPAddress(192.0.2.21)
RemoteSpecifier.WithIPAddress(2001:db8:4920:e29d:a420:7461:7073:0a) RemoteSpecifier.WithIPAddress(2001:db8:4920:e29d:a420:7461:7073:a)
* Interface name (string), e.g., to qualify link-local or multicast * Interface name (string), e.g., to qualify link-local addresses
addresses (see Section 6.1.2 for details): (see Section 6.1.2 for details):
LocalSpecifier.WithInterface("en0") LocalSpecifier.WithInterface("en0")
Note that an IPv6 address specified with a scope (e.g. The Resolve action on a Preconnection can be used to obtain a list of
2001:db8:4920:e29d:a420:7461:7073:0a%en0) is equivalent to available local interfaces.
WithIPAddress with an unscoped address and WithInterface together.
The design of the API MUST NOT permit an Endpoint to be configured Note that an IPv6 address specified with a scope zone ID (e.g.
with multiple identifiers of the same type. For example, an endpoint fe80::2001:db8%en0) is equivalent to WithIPAddress with an unscoped
cannot have two IP addresses specified. Two separate IP addresses address and WithInterface together.
are represented as two Endpoint objects. If a Preconnection
specifies a Remote Endpoint with a specific IP address set, it will
only establish Connections to that IP address. If, on the other
hand, the Remote Endpoint specifies a hostname but no addresses, the
Connection can perform name resolution and attempt using any address
derived from the original hostname of the Remote Endpoint. Note that
multiple Remote Endpoints can be added to a Preconnection, as
discussed in Section 7.5.
Applications creating Endpoint objects using WithHostName SHOULD
provide fully-qualified domain names (FQDNs). Not providing an FQDN
will result in the Transport Services Implementation needing to
resolve using DNS search domains, which might lead to inconsistent or
unpredictable behavior.
The design of the API MUST NOT permit an Endpoint object to be
configured with multiple Endpoint Identifiers of the same type. For
example, an Endpoint object cannot specify two IP addresses. Two
separate IP addresses are represented as two Endpoint objects. If a
Preconnection specifies a Remote Endpoint with a specific IP address
set, it will only establish Connections to that IP address. If, on
the other hand, a Remote Endpoint specifies a hostname but no
addresses, the Transport Services Implementation can perform name
resolution and attempt using any address derived from the original
hostname of the Remote Endpoint. Note that multiple Remote Endpoints
can be added to a Preconnection, as discussed in Section 7.5.
The Transport Services system resolves names internally, when the The Transport Services system resolves names internally, when the
Initiate, Listen, or Rendezvous method is called to establish a Initiate, Listen, or Rendezvous method is called to establish a
Connection. Privacy considerations for the timing of this resolution Connection. Privacy considerations for the timing of this resolution
are given in Section 13. are given in Section 13.
The Resolve action on a Preconnection can be used by the application The Resolve action on a Preconnection can be used by the application
to force early binding when required, for example with some Network to force early binding when required, for example with some Network
Address Translator (NAT) traversal protocols (see Section 7.3). Address Translator (NAT) traversal protocols (see Section 7.3).
6.1.1. Using Multicast Endpoints 6.1.1. Using Multicast Endpoints
To use multicast, a Preconnection is first created with the Local/ To use multicast, a Preconnection is first created with the Local/
Remote Endpoint specifying the any-source multicast (ASM) or source- Remote Endpoint Identifer specifying the any-source multicast (ASM)
specific multicast (SSM) multicast group and destination port number. or source-specific multicast (SSM) multicast group and destination
This is then followed by a call to either Initiate, Listen, or port number. This is then followed by a call to either Initiate,
Rendezvous depending on whether the resulting Connection is to be Listen, or Rendezvous depending on whether the resulting Connection
used to send messages to the multicast group, receive messages from is to be used to send messages to the multicast group, receive
the group, or, for an any-source multicast group, to both send and messages from the group, or, for an any-source multicast group, to
receive messages. both send and receive messages.
Note that the Transport Services API has separate specifier calls for
multicast groups to avoid introducing filter properties for single-
source multicast and seeks to avoid confusion that can be caused by
overloading the unicast specifiers.
Calling Initiate on that Preconnection creates a Connection that can Calling Initiate on that Preconnection creates a Connection that can
be used to send Messages to the multicast group. The Connection be used to send Messages to the multicast group. The Connection
object that is created will support Send but not Receive. Any object that is created will support Send but not Receive. Any
Connections created this way are send-only, and do not join the Connections created this way are send-only, and do not join the
multicast group. The resulting Connection will have a Local Endpoint multicast group. The resulting Connection will have a Local Endpoint
indicating the local interface to which the Connection is bound and a identifying the local interface to which the Connection is bound and
Remote Endpoint indicating the multicast group. a Remote Endpoint identifying the multicast group.
The following API calls can be used to configure a Preconnection The following API calls can be used to configure a Preconnection
before calling Initiate: before calling Initiate:
RemoteSpecifier.WithMulticastGroupIP(GroupAddress) RemoteSpecifier.WithMulticastGroupIP(GroupAddress)
RemoteSpecifier.WithPort(PortNumber) RemoteSpecifier.WithPort(PortNumber)
RemoteSpecifier.WithTTL(TTL) RemoteSpecifier.WithHopLimit(HopLimit)
Calling Listen on a Preconnection with a multicast group specified on Calling Listen on a Preconnection with a multicast group specified on
the Remote Endpoint will join the multicast group to receive the Remote Endpoint will join the multicast group to receive
Messages. This Listener will create one Connection for each Remote Messages. This Listener will create one Connection for each Remote
Endpoint sending to the group, with the Local Endpoint set to the Endpoint sending to the group, with the Local Endpoint Identifer
group address. The set of Connection objects created forms a specified as a group address. The set of Connection objects created
Connection Group. The receiving interface can be restricted by forms a Connection Group. The receiving interface can be restricted
passing it as part of the LocalSpecifier or queried through the by passing it as part of the LocalSpecifier or queried through the
Message Context on the Messages received (see Section 9.1.1 for Message Context on the Messages received (see Section 9.1.1 for
further details). further details).
Specifying WithHopLimit sets the Time To Live (TTL) field in the
header of IPv4 packets or the Hop Count field in the header of IPv6
packets.
The following API calls can be used to configure a Preconnection The following API calls can be used to configure a Preconnection
before calling Listen: before calling Listen:
LocalSpecifier.WithSingleSourceMulticastGroupIP(GroupAddress, LocalSpecifier.WithSingleSourceMulticastGroupIP(GroupAddress,
SourceAddress) SourceAddress)
LocalSpecifier.WithAnySourceMulticastGroupIP(GroupAddress) LocalSpecifier.WithAnySourceMulticastGroupIP(GroupAddress)
LocalSpecifier.WithPort(PortNumber) LocalSpecifier.WithPort(PortNumber)
Calling Rendezvous on a Preconnection with an any-source multicast Calling Rendezvous on a Preconnection with an any-source multicast
group address as the Remote Endpoint will join the multicast group, group address as the Remote Endpoint Identifer will join the
and also indicates that the resulting Connection can be used to send multicast group, and also indicates that the resulting Connection can
Messages to the multicast group. The Rendezvous call will return be used to send Messages to the multicast group. The Rendezvous call
both a Connection that can be used to send to the group, that acts will return both a Connection that can be used to send to the group,
the same as a Connection returned by calling Initiate with a that acts the same as a Connection returned by calling Initiate with
multicast Remote Endpoint, and a Listener that acts as if Listen had a multicast Remote Endpoint, and a Listener that acts as if Listen
been called with a multicast Remote Endpoint. Calling Rendezvous on had been called with a multicast Remote Endpoint. Calling Rendezvous
a Preconnection with a source-specific multicast group address as the on a Preconnection with a source-specific multicast group address as
Local Endpoint results in an EstablishmentError. the Local Endpoint Identifer results in an EstablishmentError.
The following API calls can be used to configure a Preconnection The following API calls can be used to configure a Preconnection
before calling Rendezvous: before calling Rendezvous:
RemoteSpecifier.WithMulticastGroupIP(GroupAddress) RemoteSpecifier.WithMulticastGroupIP(GroupAddress)
RemoteSpecifier.WithPort(PortNumber) RemoteSpecifier.WithPort(PortNumber)
RemoteSpecifier.WithTTL(TTL) RemoteSpecifier.WithHopLimit(HopLimit)
LocalSpecifier.WithAnySourceMulticastGroupIP(GroupAddress) LocalSpecifier.WithAnySourceMulticastGroupIP(GroupAddress)
LocalSpecifier.WithPort(PortNumber) LocalSpecifier.WithPort(PortNumber)
LocalSpecifier.WithTTL(TTL) LocalSpecifier.WithHopLimit(HopLimit)
See Section 6.1.5 for more examples. See Section 6.1.5 for more examples.
6.1.2. Constraining Interfaces for Endpoints 6.1.2. Constraining Interfaces for Endpoints
Note that this API has multiple ways to constrain and prioritize Note that this API has multiple ways to constrain and prioritize
endpoint candidates based on the network interface: endpoint candidates based on the network interface:
* Specifying an interface on a RemoteEndpoint qualifies the scope of * Specifying an interface on a Remote Endpoint qualifies the scope
the Remote Endpoint, e.g., for link-local addresses. zone of the Remote Endpoint, e.g., for link-local addresses.
* Specifying an interface on a LocalEndpoint explicitly binds all * Specifying an interface on a Local Endpoint explicitly binds all
candidates derived from this endpoint to use the specified candidates derived from this Endpoint to use the specified
interface. interface.
* Specifying an interface using the interface Selection Property * Specifying an interface using the interface Selection Property
(Section 6.2.11) or indirectly via the pvd Selection Property (Section 6.2.11) or indirectly via the pvd Selection Property
(Section 6.2.12) influences the selection among the available (Section 6.2.12) influences the selection among the available
candidates. candidates.
While specifying an Interface on an Endpoint restricts the candidates While specifying an Interface on an Endpoint restricts the candidates
available for Connection establishment in the Pre-Establishment available for Connection establishment in the Pre-Establishment
Phase, the Selection Properties prioritize and constrain the Phase, the Selection Properties prioritize and constrain the
Connection establishment. Connection establishment.
6.1.3. Endpoint Aliases 6.1.3. Protocol-Specific Endpoints
An Endpoint can have an alternative definition when using different An Endpoint can have an alternative definition when using different
protocols. For example, a server that supports both TLS/TCP and QUIC protocols. For example, a server that supports both TLS/TCP and QUIC
may be accessible on two different port numbers depending on which could be accessible on two different port numbers depending on which
protocol is used. protocol is used.
To support this, Endpoint objects can specify "aliases". An Endpoint To scope an Endpoint to apply conditionally to a specific transport
can have multiple aliases set. protocol (such as defining an alternate port to use when QUIC is
selected, as opposed to TCP), an Endpoint can be associated with a
protocol identifier. Protocol identifiers are objects or enumeration
values provided by the Transport Services API, which will vary based
on which protocols are implemented in a particular system.
RemoteSpecifier.AddAlias(AlternateRemoteSpecifier)
In order to scope an alias to a specific transport protocol, an
Endpoint can specify a protocol identifier.
AlternateRemoteSpecifier.WithProtocol(QUIC) AlternateRemoteSpecifier.WithProtocol(QUIC)
The following example shows a case where example.com has a server The following example shows a case where example.com has a server
running on port 443, with an alternate port of 8443 for QUIC. running on port 443, with an alternate port of 8443 for QUIC. Both
endpoints can be passed when creating a Preconnection.
RemoteSpecifier := NewRemoteEndpoint() RemoteSpecifier := NewRemoteEndpoint()
RemoteSpecifier.WithHostname("example.com") RemoteSpecifier.WithHostName("example.com")
RemoteSpecifier.WithPort(443) RemoteSpecifier.WithPort(443)
QUICRemoteSpecifier := NewRemoteEndpoint() QUICRemoteSpecifier := NewRemoteEndpoint()
QUICRemoteSpecifier.WithHostname("example.com") QUICRemoteSpecifier.WithHostName("example.com")
QUICRemoteSpecifier.WithPort(8443) QUICRemoteSpecifier.WithPort(8443)
QUICRemoteSpecifier.WithProtocol(QUIC) QUICRemoteSpecifier.WithProtocol(QUIC)
RemoteSpecifier.AddAlias(QUICRemoteSpecifier) RemoteSpecifiers := [ RemoteSpecifier, QUICRemoteSpecifier ]
6.1.4. Endpoint Examples 6.1.4. Endpoint Examples
The following examples of Endpoints show common usage patterns. The following examples of Endpoints show common usage patterns.
Specify a Remote Endpoint using a hostname and service name: Specify a Remote Endpoint using a hostname "example.com" and a
service name "https", which tells the system to use the default port
for HTTPS (443):
RemoteSpecifier := NewRemoteEndpoint() RemoteSpecifier := NewRemoteEndpoint()
RemoteSpecifier.WithHostname("example.com") RemoteSpecifier.WithHostName("example.com")
RemoteSpecifier.WithService("https") RemoteSpecifier.WithService("https")
Specify a Remote Endpoint using an IPv6 address and remote port: Specify a Remote Endpoint using an IPv6 address and remote port:
RemoteSpecifier := NewRemoteEndpoint() RemoteSpecifier := NewRemoteEndpoint()
RemoteSpecifier.WithIPAddress(2001:db8:4920:e29d:a420:7461:7073:0a) RemoteSpecifier.WithIPAddress(2001:db8:4920:e29d:a420:7461:7073:a)
RemoteSpecifier.WithPort(443) RemoteSpecifier.WithPort(443)
Specify a Remote Endpoint using an IPv4 address and remote port: Specify a Remote Endpoint using an IPv4 address and remote port:
RemoteSpecifier := NewRemoteEndpoint() RemoteSpecifier := NewRemoteEndpoint()
RemoteSpecifier.WithIPAddress(192.0.2.21) RemoteSpecifier.WithIPAddress(192.0.2.21)
RemoteSpecifier.WithPort(443) RemoteSpecifier.WithPort(443)
Specify a Local Endpoint using a local interface name and no local
port, to let the system assign an ephemeral local port:
LocalSpecifier := NewLocalEndpoint()
LocalSpecifier.WithInterface("en0")
Specify a Local Endpoint using a local interface name and local port: Specify a Local Endpoint using a local interface name and local port:
LocalSpecifier := NewLocalEndpoint() LocalSpecifier := NewLocalEndpoint()
LocalSpecifier.WithInterface("en0") LocalSpecifier.WithInterface("en0")
LocalSpecifier.WithPort(443) LocalSpecifier.WithPort(443)
As an alternative to specifying an interface name for the Local As an alternative to specifying an interface name for the Local
Endpoint, an application can express more fine-grained preferences Endpoint, an application can express more fine-grained preferences
using the Interface Instance or Type Selection Property, see using the Interface Instance or Type Selection Property, see
Section 6.2.11. However, if the application specifies Selection Section 6.2.11. However, if the application specifies Selection
skipping to change at page 23, line 15 skipping to change at page 24, line 15
RemoteSpecifier := NewRemoteEndpoint() RemoteSpecifier := NewRemoteEndpoint()
LocalSpecifier := NewLocalEndpoint() LocalSpecifier := NewLocalEndpoint()
LocalSpecifier.WithAnySourceMulticastGroupIP(233.252.0.0) LocalSpecifier.WithAnySourceMulticastGroupIP(233.252.0.0)
LocalSpecifier.WithPort(5353) LocalSpecifier.WithPort(5353)
LocalSpecifier.WithInterface("en0") LocalSpecifier.WithInterface("en0")
TransportProperties := ... TransportProperties := ...
SecurityParameters := ... SecurityParameters := ...
Preconnection := newPreconnection(LocalSpecifier, Preconnection := NewPreconnection(LocalSpecifier,
RemoteSpecifier, RemoteSpecifier,
TransportProperties, TransportProperties,
SecurityProperties) SecurityProperties)
Listener := Preconnection.Listen() Listener := Preconnection.Listen()
Join an Source-Specific Multicast group in receive-only mode, bound Join a Source-Specific Multicast group in receive-only mode, bound to
to a known port on a named local interface: a known port on a named local interface:
RemoteSpecifier := NewRemoteEndpoint() RemoteSpecifier := NewRemoteEndpoint()
LocalSpecifier := NewLocalEndpoint() LocalSpecifier := NewLocalEndpoint()
LocalSpecifier.WithSingleSourceMulticastGroupIP(233.252.0.0, LocalSpecifier.WithSingleSourceMulticastGroupIP(233.252.0.0,
198.51.100.10) 198.51.100.10)
LocalSpecifier.WithPort(5353) LocalSpecifier.WithPort(5353)
LocalSpecifier.WithInterface("en0") LocalSpecifier.WithInterface("en0")
TransportProperties := ... TransportProperties := ...
SecurityParameters := ... SecurityParameters := ...
Preconnection := newPreconnection(LocalSpecifier, Preconnection := NewPreconnection(LocalSpecifier,
RemoteSpecifier, RemoteSpecifier,
TransportProperties, TransportProperties,
SecurityProperties) SecurityProperties)
Listener := Preconnection.Listen() Listener := Preconnection.Listen()
Create a Source-Specific Multicast group as a sender: Create a Source-Specific Multicast group as a sender:
RemoteSpecifier := NewRemoteEndpoint() RemoteSpecifier := NewRemoteEndpoint()
RemoteSpecifier.WithMulticastGroupIP(232.1.1.1) RemoteSpecifier.WithMulticastGroupIP(233.251.240.1)
RemoteSpecifier.WithPort(5353) RemoteSpecifier.WithPort(5353)
RemoteSpecifier.WithTTL(8) RemoteSpecifier.WithHopLimit(8)
LocalSpecifier := NewLocalEndpoint() LocalSpecifier := NewLocalEndpoint()
LocalSpecifier.WithIPAddress(192.0.2.22) LocalSpecifier.WithIPAddress(192.0.2.22)
LocalSpecifier.WithInterface("en0") LocalSpecifier.WithInterface("en0")
TransportProperties := ... TransportProperties := ...
SecurityParameters := ... SecurityParameters := ...
Preconnection := newPreconnection(LocalSpecifier, Preconnection := NewPreconnection(LocalSpecifier,
RemoteSpecifier, RemoteSpecifier,
TransportProperties, TransportProperties,
SecurityProperties) SecurityProperties)
Connection := Preconnection.Initiate() Connection := Preconnection.Initiate()
Join an any-source multicast group as both a sender and a receiver: Join an any-source multicast group as both a sender and a receiver:
RemoteSpecifier := NewRemoteEndpoint() RemoteSpecifier := NewRemoteEndpoint()
RemoteSpecifier.WithMulticastGroupIP(233.252.0.0) RemoteSpecifier.WithMulticastGroupIP(233.252.0.0)
RemoteSpecifier.WithPort(5353) RemoteSpecifier.WithPort(5353)
RemoteSpecifier.WithTTL(8) RemoteSpecifier.WithHopLimit(8)
LocalSpecifier := NewLocalEndpoint() LocalSpecifier := NewLocalEndpoint()
LocalSpecifier.WithAnySourceMulticastGroupIP(233.252.0.0) LocalSpecifier.WithAnySourceMulticastGroupIP(233.252.0.0)
LocalSpecifier.WithIPAddress(192.0.2.22) LocalSpecifier.WithIPAddress(192.0.2.22)
LocalSpecifier.WithPort(5353) LocalSpecifier.WithPort(5353)
LocalSpecifier.WithInterface("en0") LocalSpecifier.WithInterface("en0")
TransportProperties := ... TransportProperties := ...
SecurityParameters := ... SecurityParameters := ...
Preconnection := newPreconnection(LocalSpecifier, Preconnection := NewPreconnection(LocalSpecifier,
RemoteSpecifier, RemoteSpecifier,
TransportProperties, TransportProperties,
SecurityProperties) SecurityProperties)
Connection, Listener := Preconnection.Rendezvous() Connection, Listener := Preconnection.Rendezvous()
6.2. Specifying Transport Properties 6.2. Specifying Transport Properties
A Preconnection object holds properties reflecting the application's A Preconnection object holds properties reflecting the application's
requirements and preferences for the transport. These include requirements and preferences for the transport. These include
Selection Properties for selecting Protocol Stacks and paths, as well Selection Properties for selecting Protocol Stacks and paths, as well
as Connection Properties and Message Properties for configuration of as Connection Properties and Message Properties for configuration of
the detailed operation of the selected Protocol Stacks on a per- the detailed operation of the selected Protocol Stacks on a per-
Connection and Message level. Connection and Message level.
The protocol(s) and path(s) selected as candidates during The protocol(s) and path(s) selected as candidates during
establishment are determined and configured using these properties. establishment are determined and configured using these properties.
Since there could be paths over which some transport protocols are Since there could be paths over which some transport protocols are
unable to operate, or Remote Endpoints that support only specific unable to operate, or Remote Endpoints that support only specific
network addresses or transports, transport protocol selection is network addresses or transports, transport protocol selection is
necessarily tied to path selection. This may involve choosing necessarily tied to path selection. This could involve choosing
between multiple local interfaces that are connected to different between multiple local interfaces that are connected to different
access networks. access networks.
When additional information (such as Provisioning Domain (PvD) When additional information (such as Provisioning Domain (PvD)
information [RFC7556]) is available about the networks over which an information [RFC7556]) is available about the networks over which an
endpoint can operate, this can inform the selection between alternate endpoint can operate, this can inform the selection between alternate
network paths. Path information can include PMTU, set of supported network paths. Path information can include PMTU, set of supported
DSCPs, expected usage, cost, etc. The usage of this information by DSCPs, expected usage, cost, etc. The usage of this information by
the Transport Services System is generally independent of the the Transport Services System is generally independent of the
specific mechanism/protocol used to receive the information (e.g. specific mechanism/protocol used to receive the information (e.g.
skipping to change at page 26, line 14 skipping to change at page 27, line 14
+============+========================================+ +============+========================================+
| Preference | Effect | | Preference | Effect |
+============+========================================+ +============+========================================+
| Require | Select only protocols/paths providing | | Require | Select only protocols/paths providing |
| | the property, fail otherwise | | | the property, fail otherwise |
+------------+----------------------------------------+ +------------+----------------------------------------+
| Prefer | Prefer protocols/paths providing the | | Prefer | Prefer protocols/paths providing the |
| | property, proceed otherwise | | | property, proceed otherwise |
+------------+----------------------------------------+ +------------+----------------------------------------+
| Ignore | No preference | | No | No preference |
| Preference | |
+------------+----------------------------------------+ +------------+----------------------------------------+
| Avoid | Prefer protocols/paths not providing | | Avoid | Prefer protocols/paths not providing |
| | the property, proceed otherwise | | | the property, proceed otherwise |
+------------+----------------------------------------+ +------------+----------------------------------------+
| Prohibit | Select only protocols/paths not | | Prohibit | Select only protocols/paths not |
| | providing the property, fail otherwise | | | providing the property, fail otherwise |
+------------+----------------------------------------+ +------------+----------------------------------------+
Table 1: Selection Property Preference Levels Table 1: Selection Property Preference Levels
skipping to change at page 27, line 37 skipping to change at page 28, line 43
Section 8.1 provides a list of Connection Properties, while Selection Section 8.1 provides a list of Connection Properties, while Selection
Properties are listed in the subsections below. Selection Properties Properties are listed in the subsections below. Selection Properties
are only considered during establishment, and can not be changed are only considered during establishment, and can not be changed
after a Connection is established. After a Connection is after a Connection is established. After a Connection is
established, Selection Properties can only be read to check the established, Selection Properties can only be read to check the
properties used by the Connection. Upon reading, the Preference type properties used by the Connection. Upon reading, the Preference type
of a Selection Property changes into Boolean, where true means that of a Selection Property changes into Boolean, where true means that
the selected Protocol Stack supports the feature or uses the path the selected Protocol Stack supports the feature or uses the path
associated with the Selection Property, and false means that the associated with the Selection Property, and false means that the
Protocol Stack does not support the feature or use the path. Protocol Stack does not support the feature or use the path.
Implementations of Transport Services systems may alternatively use Implementations of Transport Services systems could alternatively use
the two Preference values Require and Prohibit to represent true and the two Preference values Require and Prohibit to represent true and
false, respectively. false, respectively. Other types of Selection Properties remain
unchanged when they are made available for reading after a Connection
is established.
An implementation of the Transport Services API needs to provide An implementation of the Transport Services API needs to provide
sensible defaults for Selection Properties. The default values for sensible defaults for Selection Properties. The default values for
each property below represent a configuration that can be implemented each property below represent a configuration that can be implemented
over TCP. If these default values are used and TCP is not supported over TCP. If these default values are used and TCP is not supported
by a Transport Services system, then an application using the default by a Transport Services system, then an application using the default
set of Properties might not succeed in establishing a Connection. set of Properties might not succeed in establishing a Connection.
Using the same default values for independent Transport Services Using the same default values for independent Transport Services
systems can be beneficial when applications are ported between systems can be beneficial when applications are ported between
different implementations/platforms, even if this default could lead different implementations/platforms, even if this default could lead
skipping to change at page 28, line 15 skipping to change at page 29, line 23
6.2.1. Reliable Data Transfer (Connection) 6.2.1. Reliable Data Transfer (Connection)
Name: reliability Name: reliability
Type: Preference Type: Preference
Default: Require Default: Require
This property specifies whether the application needs to use a This property specifies whether the application needs to use a
transport protocol that ensures that all data is received at the transport protocol that ensures that all data is received at the
Remote Endpoint without corruption. When reliable data transfer is Remote Endpoint in order without loss or duplication. When reliable
enabled, this also entails being notified when a Connection is closed data transfer is enabled, this also entails being notified when a
or aborted. Connection is closed or aborted.
6.2.2. Preservation of Message Boundaries 6.2.2. Preservation of Message Boundaries
Name: preserveMsgBoundaries Name: preserveMsgBoundaries
Type: Preference Type: Preference
Default: Ignore Default: No Preference
This property specifies whether the application needs or prefers to This property specifies whether the application needs or prefers to
use a transport protocol that preserves message boundaries. use a transport protocol that preserves message boundaries.
6.2.3. Configure Per-Message Reliability 6.2.3. Configure Per-Message Reliability
Name: perMsgReliability Name: perMsgReliability
Type: Preference Type: Preference
Default: Ignore Default: No Preference
This property specifies whether an application considers it useful to This property specifies whether an application considers it useful to
specify different reliability requirements for individual Messages in specify different reliability requirements for individual Messages in
a Connection. a Connection.
6.2.4. Preservation of Data Ordering 6.2.4. Preservation of Data Ordering
Name: preserveOrder Name: preserveOrder
Type: Preference Type: Preference
skipping to change at page 29, line 11 skipping to change at page 30, line 23
This property specifies whether the application wishes to use a This property specifies whether the application wishes to use a
transport protocol that can ensure that data is received by the transport protocol that can ensure that data is received by the
application at the Remote Endpoint in the same order as it was sent. application at the Remote Endpoint in the same order as it was sent.
6.2.5. Use 0-RTT Session Establishment with a Safely Replayable Message 6.2.5. Use 0-RTT Session Establishment with a Safely Replayable Message
Name: zeroRttMsg Name: zeroRttMsg
Type: Preference Type: Preference
Default: Ignore Default: No Preference
This property specifies whether an application would like to supply a This property specifies whether an application would like to supply a
Message to the transport protocol before connection establishment Message to the transport protocol before connection establishment
that will then be reliably transferred to the other side before or that will then be reliably transferred to the Remote Endpoint before
during connection establishment. This Message can potentially be or during connection establishment. This Message can potentially be
received multiple times (i.e., multiple copies of the Message data received multiple times (i.e., multiple copies of the Message data
may be passed to the Remote Endpoint). See also Section 9.1.3.4. could be passed to the Remote Endpoint). See also Section 9.1.3.4.
6.2.6. Multistream Connections in Group 6.2.6. Multistream Connections in Group
Name: multistreaming Name: multistreaming
Type: Preference Type: Preference
Default: Prefer Default: Prefer
This property specifies whether the application would prefer multiple This property specifies whether the application would prefer multiple
skipping to change at page 29, line 42 skipping to change at page 31, line 6
6.2.7. Full Checksum Coverage on Sending 6.2.7. Full Checksum Coverage on Sending
Name: fullChecksumSend Name: fullChecksumSend
Type: Preference Type: Preference
Default: Require Default: Require
This property specifies the application's need for protection against This property specifies the application's need for protection against
corruption for all data transmitted on this Connection. Disabling corruption for all data transmitted on this Connection. Disabling
this property could enable later control of the sender checksum this property could enable the application to influence the sender
coverage (see Section 9.1.3.6). checksum coverage after Connection establishment (see
Section 9.1.3.6).
6.2.8. Full Checksum Coverage on Receiving 6.2.8. Full Checksum Coverage on Receiving
Name: fullChecksumRecv Name: fullChecksumRecv
Type: Preference Type: Preference
Default: Require Default: Require
This property specifies the application's need for protection against This property specifies the application's need for protection against
corruption for all data received on this Connection. Disabling this corruption for all data received on this Connection. Disabling this
property could enable later control of the required minimum receiver property could enable the application to influence the required
checksum coverage (see Section 8.1.1). minimum receiver checksum coverage after Connection establishment
(see Section 8.1.1).
6.2.9. Congestion control 6.2.9. Congestion control
Name: congestionControl Name: congestionControl
Type: Preference Type: Preference
Default: Require Default: Require
This property specifies whether the application would like the This property specifies whether the application would like the
skipping to change at page 30, line 35 skipping to change at page 31, line 50
unlikely to succeed. If the Connection is congestion controlled, unlikely to succeed. If the Connection is congestion controlled,
performing additional congestion control in the application can have performing additional congestion control in the application can have
negative performance implications. negative performance implications.
6.2.10. Keep alive 6.2.10. Keep alive
Name: keepAlive Name: keepAlive
Type: Preference Type: Preference
Default: Ignore Default: No Preference
This property specifies whether the application would like the This property specifies whether the application would like the
Connection to send keep-alive packets or not. Note that if a Connection to send keep-alive packets or not. Note that if a
Connection determines that keep-alive packets are being sent, the Connection determines that keep-alive packets are being sent, the
application should itself avoid generating additional keep-alive application SHOULD itself avoid generating additional keep-alive
messages. Note that when supported, the system will use the default messages. Note that when supported, the system will use the default
period for generation of the keep alive-packets. (See also period for generation of the keep alive-packets. (See also
Section 8.1.4). Section 8.1.4).
6.2.11. Interface Instance or Type 6.2.11. Interface Instance or Type
Name: interface Name: interface
Type: Collection of (Preference, Enumeration) Type: Set of (Preference, Enumeration)
Default: Empty (not setting a preference for any interface) Default: Empty (not setting a preference for any interface)
This property allows the application to select any specific network This property allows the application to select any specific network
interfaces or categories of interfaces it wants to Require, Prohibit, interfaces or categories of interfaces it wants to Require, Prohibit,
Prefer, or Avoid. Note that marking a specific interface as Require Prefer, or Avoid. Note that marking a specific interface as Require
strictly limits path selection to that single interface, and often strictly limits path selection to that single interface, and often
leads to less flexible and resilient connection establishment. leads to less flexible and resilient connection establishment.
In contrast to other Selection Properties, this property is a tuple In contrast to other Selection Properties, this property is a set of
of an (Enumerated) interface identifier and a preference, and can tuples of (Enumerated) interface identifier and preference. It can
either be implemented directly as such, or for making one preference either be implemented directly as such, or for making one preference
available for each interface and interface type available on the available for each interface and interface type available on the
system. system.
The set of valid interface types is implementation- and system- The set of valid interface types is implementation- and system-
specific. For example, on a mobile device, there may be Wi-Fi and specific. For example, on a mobile device, there could be Wi-Fi and
Cellular interface types available; whereas on a desktop computer, Cellular interface types available; whereas on a desktop computer,
Wi-Fi and Wired Ethernet interface types might be available. An Wi-Fi and Wired Ethernet interface types might be available. An
implementation should provide all types that are supported on the implementation should provide all types that are supported on the
local system, to allow applications to be written generically. For local system, to allow applications to be written generically. For
example, if a single implementation is used on both mobile devices example, if a single implementation is used on both mobile devices
and desktop devices, it ought to define the Cellular interface type and desktop devices, it ought to define the Cellular interface type
for both systems, since an application might wish to always prohibit for both systems, since an application might wish to always prohibit
cellular. cellular.
The set of interface types is expected to change over time as new The set of interface types is expected to change over time as new
access technologies become available. The taxonomy of interface access technologies become available. The taxonomy of interface
types on a given Transport Services system is implementation- types on a given Transport Services system is implementation-
specific. specific.
Interface types should not be treated as a proxy for properties of Interface types SHOULD NOT be treated as a proxy for properties of
interfaces such as metered or unmetered network access. If an interfaces such as metered or unmetered network access. If an
application needs to prohibit metered interfaces, this should be application needs to prohibit metered interfaces, this should be
specified via Provisioning Domain attributes (see Section 6.2.12) or specified via Provisioning Domain attributes (see Section 6.2.12) or
another specific property. another specific property.
Note that this property is not used to specify an interface scope for Note that this property is not used to specify an interface scope
a particular endpoint. Section 6.1.2 provides details about how to zone for a particular Endpoint. Section 6.1.2 provides details about
qualify endpoint candidates on a per-interface basis. how to qualify endpoint candidates on a per-interface basis.
6.2.12. Provisioning Domain Instance or Type 6.2.12. Provisioning Domain Instance or Type
Name: pvd Name: pvd
Type: Collection of (Preference, Enumeration) Type: Set of (Preference, Enumeration)
Default: Empty (not setting a preference for any PvD) Default: Empty (not setting a preference for any PvD)
Similar to interface (see Section 6.2.11), this property allows the Similar to interface (see Section 6.2.11), this property allows the
application to control path selection by selecting which specific application to control path selection by selecting which specific
Provisioning Domain (PvD) or categories of PVDs it wants to Require, Provisioning Domain (PvD) or categories of PVDs it wants to Require,
Prohibit, Prefer, or Avoid. Provisioning Domains define consistent Prohibit, Prefer, or Avoid. Provisioning Domains define consistent
sets of network properties that may be more specific than network sets of network properties that might be more specific than network
interfaces [RFC7556]. interfaces [RFC7556].
As with interface instances and types, this property is a tuple of an As with interface instances and types, this property is a set of
(Enumerated) PvD identifier and a preference, and can either be tuples of (Enumerated) PvD identifier and preference. It can either
implemented directly as such, or for making one preference available be implemented directly as such, or for making one preference
for each interface and interface type available on the system. available for each interface and interface type available on the
system.
The identification of a specific PvD is implementation- and system- The identification of a specific PvD is implementation- and system-
specific, because there is currently no portable standard format for specific. [RFC8801] defines how to use an FQDN to identify a PvD
a PvD identifier. For example, this identifier might be a string when advertised by a network, but systems might also use other
name or an integer. As with requiring specific interfaces, requiring locally-relevant identifiers such as string names or Integers to
a specific PvD strictly limits the path selection. identify PvDs. As with requiring specific interfaces, requiring a
specific PvD strictly limits the path selection.
Categories or types of PvDs are also defined to be implementation- Categories or types of PvDs are also defined to be implementation-
and system-specific. These can be useful to identify a service that and system-specific. These can be useful to identify a service that
is provided by a PvD. For example, if an application wants to use a is provided by a PvD. For example, if an application wants to use a
PvD that provides a Voice-Over-IP service on a Cellular network, it PvD that provides a Voice-Over-IP service on a Cellular network, it
can use the relevant PvD type to require a PvD that provides this can use the relevant PvD type to require a PvD that provides this
service, without needing to look up a particular instance. While service, without needing to look up a particular instance. While
this does restrict path selection, it is broader than requiring this does restrict path selection, it is broader than requiring
specific PvD instances or interface instances, and should be specific PvD instances or interface instances, and should be
preferred over these options. preferred over these options.
skipping to change at page 34, line 26 skipping to change at page 35, line 32
protocol that is capable of using multiple paths, e.g., it does not protocol that is capable of using multiple paths, e.g., it does not
prevent choosing TCP, but prevents sending the MP_CAPABLE option in prevent choosing TCP, but prevents sending the MP_CAPABLE option in
the TCP handshake. the TCP handshake.
6.2.15. Advertisement of Alternative Addresses 6.2.15. Advertisement of Alternative Addresses
Name: advertisesAltaddr Name: advertisesAltaddr
Type: Boolean Type: Boolean
Default: False Default: false
This property specifies whether alternative addresses, e.g., of other This property specifies whether alternative addresses, e.g., of other
interfaces, should be advertised to the peer endpoint by the Protocol interfaces, ought to be advertised to the peer endpoint by the
Stack. Advertising these addresses enables the peer-endpoint to Protocol Stack. Advertising these addresses enables the peer
establish additional connectivity, e.g., for Connection migration or endpoint to establish additional connectivity, e.g., for Connection
using multiple paths. migration or using multiple paths.
Note that this can have privacy implications because it might result Note that this can have privacy implications because it might result
in users being linkable across the multiple paths. Also, note that in users being linkable across the multiple paths. Also, note that
setting this to false does not prevent the local Transport Services setting this to false does not prevent the local Transport Services
system from _establishing_ connectivity using alternate paths (see system from _establishing_ connectivity using alternate paths (see
Section 6.2.14 above); it only prevents _proactive advertisement_ of Section 6.2.14 above); it only prevents _proactive advertisement_ of
addresses. addresses.
6.2.16. Direction of communication 6.2.16. Direction of communication
skipping to change at page 35, line 14 skipping to change at page 36, line 20
data data
Unidirectional send: The Connection must support sending data, and Unidirectional send: The Connection must support sending data, and
the application cannot use the Connection to receive any data the application cannot use the Connection to receive any data
Unidirectional receive: The Connection must support receiving data, Unidirectional receive: The Connection must support receiving data,
and the application cannot use the Connection to send any data and the application cannot use the Connection to send any data
Since unidirectional communication can be supported by transports Since unidirectional communication can be supported by transports
offering bidirectional communication, specifying unidirectional offering bidirectional communication, specifying unidirectional
communication may cause a transport stack that supports bidirectional communication might cause a transport stack that supports
communication to be selected. bidirectional communication to be selected.
6.2.17. Notification of ICMP soft error message arrival 6.2.17. Notification of ICMP soft error message arrival
Name: softErrorNotify Name: softErrorNotify
Type: Preference Type: Preference
Default: Ignore Default: No Preference
This property specifies whether an application considers it useful to This property specifies whether an application considers it useful to
be informed when an ICMP error message arrives that does not force be informed when an ICMP error message arrives that does not force
termination of a connection. When set to true, received ICMP errors termination of a connection. When set to true, received ICMP errors
are available as SoftError events, see Section 8.3.1. Note that even are available as SoftError events, see Section 8.3.1. Note that even
if a protocol supporting this property is selected, not all ICMP if a protocol supporting this property is selected, not all ICMP
errors will necessarily be delivered, so applications cannot rely errors will necessarily be delivered, so applications cannot rely
upon receiving them [RFC8085]. upon receiving them [RFC8085].
6.2.18. Initiating side is not the first to write 6.2.18. Initiating side is not the first to write
Name: activeReadBeforeSend Name: activeReadBeforeSend
Type: Preference Type: Preference
Default: Ignore Default: No Preference
The most common client-server communication pattern involves the The most common client-server communication pattern involves the
client actively opening a Connection, then sending data to the client actively opening a Connection, then sending data to the
server. The server listens (passive open), reads, and then answers. server. The server listens (passive open), reads, and then answers.
This property specifies whether an application wants to diverge from This property specifies whether an application wants to diverge from
this pattern -- either by actively opening with Initiate, immediately this pattern -- either by actively opening with Initiate, immediately
followed by reading, or passively opening with Listen, immediately followed by reading, or passively opening with Listen, immediately
followed by writing. This property is ignored when establishing followed by writing. This property is ignored when establishing
connections using Rendezvous. Requiring this property limits the connections using Rendezvous. Requiring this property limits the
choice of mappings to underlying protocols, which can reduce choice of mappings to underlying protocols, which can reduce
efficiency. For example, it prevents the Transport Services system efficiency. For example, it prevents the Transport Services system
from mapping Connections to SCTP streams, where the first transmitted from mapping Connections to SCTP streams, where the first transmitted
data takes the role of an active open signal. data takes the role of an active open signal.
6.3. Specifying Security Parameters and Callbacks 6.3. Specifying Security Parameters and Callbacks
Most security parameters, e.g., TLS ciphersuites, local identity and Most security parameters, e.g., TLS ciphersuites, local identity and
private key, etc., may be configured statically. Others are private key, etc., can be configured statically. Others are
dynamically configured during Connection establishment. Security dynamically configured during Connection establishment. Security
parameters and callbacks are partitioned based on their place in the parameters and callbacks are partitioned based on their place in the
lifetime of Connection establishment. Similar to Transport lifetime of Connection establishment. Similar to Transport
Properties, both parameters and callbacks are inherited during Properties, both parameters and callbacks are inherited during
cloning (see Section 7.4). cloning (see Section 7.4).
6.3.1. Specifying Security Parameters on a Pre-Connection This document specifies an abstract API, which could appear to
conflict with the need for security parameters to be unambiguous.
The Transport Services System SHOULD provide reasonable, secure
defaults for each enumerated security parameter, such that users of
the system only need to specify parameters required to establish a
secure connection (e.g., 'server-certificate', 'client-certificate').
Specifying specific security parameters from enumerated values (e.g.,
specific ciphersuites) might constrain the Transport Protocols that
can be selected during connection establishment.
Except as noted below, as with the rest of the Transport Services
API, exact names of parameters and/or values of enumerations (e.g.,
ciphersuites) used in the security parameters are system and
implementation specific, and ought to be chosen to follow the
principle of least surprise for users of the platform / language
environment in question.
6.3.1. Specifying Security Parameters on a Preconnection
Common security parameters such as TLS ciphersuites are known to Common security parameters such as TLS ciphersuites are known to
implementations. Clients should use common safe defaults for these implementations. Applications SHOULD use common safe defaults for
values whenever possible. However, as discussed in [RFC8922], many these values whenever possible. However, as discussed in [RFC8922],
transport security protocols require specific security parameters and many transport security protocols require specific security
constraints from the client at the time of configuration and actively parameters and constraints from the client at the time of
during a handshake. These configuration parameters need to be configuration and actively during a handshake.
specified in the pre-connection phase and are created as follows:
SecurityParameters := NewSecurityParameters() The configuration parameters need to be specified in the pre-
connection phase and are created as follows:
SecurityParameters := NewSecurityParameters()
Security configuration parameters and sample usage follow: Security configuration parameters and sample usage follow:
* Local identity, certificates, and private keys: Used to perform * One or more certificate bundles identifying the Local Endpoint,
private key operations and prove one's identity to the Remote whether as a server certificate or a client certificate. Multiple
Endpoint. (Note, if private keys are not available, e.g., since bundles may be provided to allow selection among different
they are stored in hardware security modules (HSMs), handshake protocol stacks that may require differently formatted bundles.
callbacks must be used. See below for details.) The form and format of the certificate bundle is implementation-
specific. Note that if the private keys associated with a bundle
are not available, e.g., since they are stored in hardware
security modules (HSMs), handshake callbacks are necessary. See
below for details.
SecurityParameters.Set(identity, myIdentity) SecurityParameters.Set(server-certificate, myCertificateBundle[])
SecurityParameters.Set(server-certificate, myCertificate) SecurityParameters.Set(client-certificate, myCertificateBundle[])
SecurityParameters.Set(client-certificate, myCertificate)
SecurityParameters.Set(key-pair, myPrivateKey, myPublicKey)
* Supported algorithms: Used to restrict what parameters are used by
underlying transport security protocols. When not specified,
these algorithms should use known and safe defaults for the
system. Parameters include: ciphersuites, supported groups, and
signature algorithms. These parameters take a collection of
supported algorithms as parameter.
* One or more certificate chains to use as pinned server
certificates, such that connecting will fail if the presented
server certificate does not match one of the supplied pinned
certificates. The form and format of the certificate chain is
implementation-specific.
SecurityParameters.Set(pinned-server-certificate, yourCertificateChain[])
* Application-layer protocol negotiation (ALPN) values: used to
indicate which application-layer protocols are negotiated by the
security protocol layer. See [ALPN] for definition of the ALPN
field. Note that the Transport Services System can provide ALPN
values automatically, based on the protocols being used, if not
explicitly specified by the application.
SecurityParameters.Set(alpn, "h2")
* Supported groups, ciphersuites, algorithms: Used to restrict what
parameters are used by underlying transport security protocols.
When not specified, these algorithms should use known and safe
defaults for the system.
SecurityParameters.Set(supported-group, "secp256r1") SecurityParameters.Set(supported-group, "secp256r1")
SecurityParameters.Set(ciphersuite, "TLS_AES_128_GCM_SHA256") SecurityParameters.Set(ciphersuite, "TLS_AES_128_GCM_SHA256")
SecurityParameters.Set(signature-algorithm, "ecdsa_secp256r1_sha256") SecurityParameters.Set(signature-algorithm, "ecdsa_secp256r1_sha256")
* Pre-Shared Key import: Used to install pre-shared keying material
established out-of-band. Each pre-shared keying material is
associated with some identity that typically identifies its use or
has some protocol-specific meaning to the Remote Endpoint.
SecurityParameters.Set(pre-shared-key, key, identity)
* Session cache management: Used to tune session cache capacity, * Session cache management: Used to tune session cache capacity,
lifetime, and other policies. lifetime, and other policies.
SecurityParameters.Set(max-cached-sessions, 16) SecurityParameters.Set(max-cached-sessions, 16)
SecurityParameters.Set(cached-session-lifetime-seconds, 3600) SecurityParameters.Set(cached-session-lifetime-seconds, 3600)
* Pre-Shared Key import: Used to install pre-shared keying material
established out-of-band. Each instance of pre-shared keying
material is associated with some identity that typically
identifies its use or has some protocol-specific meaning to the
Remote Endpoint. Note that use of a pre-shared key will tend to
select a single security protocol, and therefore directly select a
single underlying protocol stack.
SecurityParameters.Set(pre-shared-key, key, myIdentity)
Connections that use Transport Services SHOULD use security in Connections that use Transport Services SHOULD use security in
general. However, for compatibility with endpoints that do not general. However, for compatibility with endpoints that do not
support transport security protocols (such as a TCP endpoint that support transport security protocols (such as a TCP endpoint that
does not support TLS), applications can initialize their security does not support TLS), applications can initialize their security
parameters to indicate that security can be disabled, or can be parameters to indicate that security can be disabled, or can be
opportunistic. If security is disabled, the Transport Services opportunistic. If security is disabled, the Transport Services
system will not attempt to add transport security automatically. If system will not attempt to add transport security automatically. If
security is opportunistic, it will allow Connections without security is opportunistic, it will allow Connections without
transport security, but will still attempt to use security if transport security, but will still attempt to use unauthenticated
available. security if available.
SecurityParameters := NewDisabledSecurityParameters() SecurityParameters := NewDisabledSecurityParameters()
SecurityParameters := NewOpportunisticSecurityParameters() SecurityParameters := NewOpportunisticSecurityParameters()
Representation of security parameters in implementations should Representation of security parameters in implementations ought to
parallel that chosen for Transport Property names as suggested in parallel that chosen for Transport Property names as suggested in
Section 5. Section 5.
6.3.2. Connection Establishment Callbacks 6.3.2. Connection Establishment Callbacks
Security decisions, especially pertaining to trust, are not static. Security decisions, especially pertaining to trust, are not static.
Once configured, parameters may also be supplied during Connection Once configured, parameters can also be supplied during Connection
establishment. These are best handled as client-provided callbacks. establishment. These are best handled as client-provided callbacks.
Callbacks block the progress of the Connection establishment, which Callbacks block the progress of the Connection establishment, which
distinguishes them from other events in the transport system. How distinguishes them from other events in the transport system. How
callbacks and events are implemented is specific to each callbacks and events are implemented is specific to each
implementation. Security handshake callbacks that may be invoked implementation. Security handshake callbacks that could be invoked
during Connection establishment include: during Connection establishment include:
* Trust verification callback: Invoked when a Remote Endpoint's * Trust verification callback: Invoked when a Remote Endpoint's
trust must be verified before the handshake protocol can continue. trust must be verified before the handshake protocol can continue.
For example, the application could verify an X.509 certificate as For example, the application could verify an X.509 certificate as
described in [RFC5280]. described in [RFC5280].
TrustCallback := NewCallback({ TrustCallback := NewCallback({
// Handle trust, return the result // Handle trust, return the result
}) })
skipping to change at page 38, line 42 skipping to change at page 40, line 26
}) })
SecurityParameters.SetIdentityChallengeCallback(ChallengeCallback) SecurityParameters.SetIdentityChallengeCallback(ChallengeCallback)
7. Establishing Connections 7. Establishing Connections
Before a Connection can be used for data transfer, it needs to be Before a Connection can be used for data transfer, it needs to be
established. Establishment ends the pre-establishment phase; all established. Establishment ends the pre-establishment phase; all
transport properties and cryptographic parameter specification must transport properties and cryptographic parameter specification must
be complete before establishment, as these will be used to select be complete before establishment, as these will be used to select
candidate Paths and Protocol Stacks for the Connection. candidate Paths and Protocol Stacks for the Connection.
Establishment may be active, using the Initiate action; passive, Establishment can be active, using the Initiate action; passive,
using the Listen action; or simultaneous for peer-to-peer, using the using the Listen action; or simultaneous for peer-to-peer, using the
Rendezvous action. These actions are described in the subsections Rendezvous action. These actions are described in the subsections
below. below.
7.1. Active Open: Initiate 7.1. Active Open: Initiate
Active open is the action of establishing a Connection to a Remote Active open is the action of establishing a Connection to a Remote
Endpoint presumed to be listening for incoming Connection requests. Endpoint presumed to be listening for incoming Connection requests.
Active open is used by clients in client-server interactions. Active Active open is used by clients in client-server interactions. Active
open is supported by the Transport Services API through the Initiate open is supported by the Transport Services API through the Initiate
action: action:
Connection := Preconnection.Initiate(timeout?) Connection := Preconnection.Initiate(timeout?)
The timeout parameter specifies how long to wait before aborting The timeout parameter specifies how long to wait before aborting
Active open. Before calling Initiate, the caller must have populated Active open. Before calling Initiate, the caller must have populated
a Preconnection object with a Remote Endpoint specifier, optionally a a Preconnection object with a Remote Endpoint object to identify the
Local Endpoint specifier (if not specified, the system will attempt endpoint, optionally a Local Endpoint object (if not specified, the
to determine a suitable Local Endpoint), as well as all properties system will attempt to determine a suitable Local Endpoint), as well
necessary for candidate selection. as all properties necessary for candidate selection.
The Initiate action returns a Connection object. Once Initiate has The Initiate action returns a Connection object. Once Initiate has
been called, any changes to the Preconnection MUST NOT have any been called, any changes to the Preconnection MUST NOT have any
effect on the Connection. However, the Preconnection can be reused, effect on the Connection. However, the Preconnection can be reused,
e.g., to Initiate another Connection. e.g., to Initiate another Connection.
Once Initiate is called, the candidate Protocol Stack(s) may cause Once Initiate is called, the candidate Protocol Stack(s) can cause
one or more candidate transport-layer connections to be created to one or more candidate transport-layer connections to be created to
the specified Remote Endpoint. The caller may immediately begin the specified Remote Endpoint. The caller could immediately begin
sending Messages on the Connection (see Section 9.2) after calling sending Messages on the Connection (see Section 9.2) after calling
Initiate; note that any data marked as "safely replayable" that is Initiate; note that any data marked as "safely replayable" that is
sent while the Connection is being established may be sent multiple sent while the Connection is being established could be sent multiple
times or on multiple candidates. times or on multiple candidates.
The following events may be sent by the Connection after Initiate is The following events can be sent by the Connection after Initiate is
called: called:
Connection -> Ready<> Connection -> Ready<>
The Ready event occurs after Initiate has established a transport- The Ready event occurs after Initiate has established a transport-
layer connection on at least one usable candidate Protocol Stack over layer connection on at least one usable candidate Protocol Stack over
at least one candidate Path. No Receive events (see Section 9.3) at least one candidate Path. No Receive events (see Section 9.3)
will occur before the Ready event for Connections established using will occur before the Ready event for Connections established using
Initiate. Initiate.
Connection -> EstablishmentError<reason?> Connection -> EstablishmentError<reason?>
An EstablishmentError occurs either when the set of transport An EstablishmentError occurs either when the set of transport
properties and security parameters cannot be fulfilled on a properties and security parameters cannot be fulfilled on a
Connection for initiation (e.g., the set of available Paths and/or Connection for initiation (e.g., the set of available Paths and/or
Protocol Stacks meeting the constraints is empty) or reconciled with Protocol Stacks meeting the constraints is empty) or reconciled with
the Local and/or Remote Endpoints; when the remote specifier cannot the Local and/or Remote Endpoints; when a remote Endpoint Identifier
be resolved; or when no transport-layer connection can be established cannot be resolved; or when no transport-layer connection can be
to the Remote Endpoint (e.g., because the Remote Endpoint is not established to the Remote Endpoint (e.g., because the Remote Endpoint
accepting connections, the application is prohibited from opening a is not accepting connections, the application is prohibited from
Connection by the operating system, or the establishment attempt has opening a Connection by the operating system, or the establishment
timed out for any other reason). attempt has timed out for any other reason).
Connection establishment and transmission of the first Message can be Connection establishment and transmission of the first Message can be
combined in a single action Section 9.2.5. combined in a single action (Section 9.2.5).
7.2. Passive Open: Listen 7.2. Passive Open: Listen
Passive open is the action of waiting for Connections from Remote Passive open is the action of waiting for Connections from Remote
Endpoints, commonly used by servers in client-server interactions. Endpoints, commonly used by servers in client-server interactions.
Passive open is supported by the Transport Services API through the Passive open is supported by the Transport Services API through the
Listen action and returns a Listener object: Listen action and returns a Listener object:
Listener := Preconnection.Listen() Listener := Preconnection.Listen()
Before calling Listen, the caller must have initialized the Before calling Listen, the caller must have initialized the
Preconnection during the pre-establishment phase with a Local Preconnection during the pre-establishment phase with a Local
Endpoint specifier, as well as all properties necessary for Protocol Endpoint object, as well as all properties necessary for Protocol
Stack selection. A Remote Endpoint may optionally be specified, to Stack selection. A Remote Endpoint can optionally be specified, to
constrain what Connections are accepted. constrain what Connections are accepted.
The Listen action returns a Listener object. Once Listen has been The Listen action returns a Listener object. Once Listen has been
called, any changes to the Preconnection MUST NOT have any effect on called, any changes to the Preconnection MUST NOT have any effect on
the Listener. The Preconnection can be disposed of or reused, e.g., the Listener. The Preconnection can be disposed of or reused, e.g.,
to create another Listener. to create another Listener.
Listener.Stop() Listener.Stop()
Listening continues until the global context shuts down, or until the Listening continues until the global context shuts down, or until the
skipping to change at page 41, line 46 skipping to change at page 43, line 28
along with the Transport Properties and security parameters needed along with the Transport Properties and security parameters needed
for Protocol Stack selection, before the Rendezvous action is for Protocol Stack selection, before the Rendezvous action is
initiated. initiated.
The Rendezvous action listens on the Local Endpoint candidates for an The Rendezvous action listens on the Local Endpoint candidates for an
incoming Connection from the Remote Endpoint candidates, while also incoming Connection from the Remote Endpoint candidates, while also
simultaneously trying to establish a Connection from the Local simultaneously trying to establish a Connection from the Local
Endpoint candidates to the Remote Endpoint candidates. Endpoint candidates to the Remote Endpoint candidates.
If there are multiple Local Endpoints or Remote Endpoints configured, If there are multiple Local Endpoints or Remote Endpoints configured,
then initiating a Rendezvous action will systematically probe the then initiating a Rendezvous action will cause the Transport Services
reachability of those endpoint candidates following an approach such Implementation to systematically probe the reachability of those
as that used in Interactive Connectivity Establishment (ICE) endpoint candidates following an approach such as that used in
[RFC8445]. Interactive Connectivity Establishment (ICE) [RFC8445].
If the endpoints are suspected to be behind a NAT, Rendezvous can be If the endpoints are suspected to be behind a NAT, and the Local
initiated using Local Endpoints that support a method of discovering Endpoint supports a method of discovering NAT bindings, such as
NAT bindings such as Session Traversal Utilities for NAT (STUN) Session Traversal Utilities for NAT (STUN) [RFC8489] or Traversal
[RFC8489] or Traversal Using Relays around NAT (TURN) [RFC8656]. In Using Relays around NAT (TURN) [RFC8656], then the Resolve action on
this case, the Local Endpoint will resolve to a mixture of local and the Preconnection can be used to discover such bindings:
server reflexive addresses. The Resolve action on the Preconnection
can be used to discover these bindings:
[]LocalEndpoint, []RemoteEndpoint := Preconnection.Resolve() []LocalEndpoint, []RemoteEndpoint := Preconnection.Resolve()
The Resolve call returns lists of Local Endpoints and Remote The Resolve call returns lists of Local Endpoints and Remote
Endpoints, that represent the concrete addresses, local and server Endpoints that represent the concrete addresses, local and server
reflexive, on which a Rendezvous for the Preconnection will listen reflexive, on which a Rendezvous for the Preconnection will listen
for incoming Connections, and to which it will attempt to establish for incoming Connections, and to which it will attempt to establish
Connections. Connections.
Note that the set of Local Endpoints returned by Resolve might or Note that the set of Local Endpoints returned by Resolve might or
might not contain information about all possible local interfaces; it might not contain information about all possible local interfaces
is valid only for a Rendezvous happening at the same time as the depending on how the Preconnection is configured. The set of
resolution. Care should be taken in using these values in any other available local interfaces can also change over time so care needs to
context. be taken when using stored interface names.
An application that uses Rendezvous to establish a peer-to-peer An application that uses Rendezvous to establish a peer-to-peer
Connection in the presence of NATs will configure the Preconnection Connection in the presence of NATs will configure the Preconnection
object with at least one a Local Endpoint that supports NAT binding object with at least one Local Endpoint that supports NAT binding
discovery. It will then Resolve the Preconnection, and pass the discovery. It will then Resolve the Preconnection, and pass the
resulting list of Local Endpoint candidates to the peer via a resulting list of Local Endpoint candidates to the peer via a
signalling protocol, for example as part of an ICE [RFC8445] exchange signalling protocol, for example as part of an ICE [RFC8445] exchange
within SIP [RFC3261] or WebRTC [RFC7478]. The peer will then, via within SIP [RFC3261] or WebRTC [RFC7478]. The peer will then, via
the same signalling channel, return the Remote Endpoint candidates. the same signalling channel, return the Remote Endpoint candidates.
The set of Remote Endpoint candidates are then configured onto the The set of Remote Endpoint candidates are then configured onto the
Preconnection: Preconnection:
Preconnection.AddRemote([]RemoteEndpoint) Preconnection.AddRemote([]RemoteEndpoint)
The Rendezvous action can be initiated once both the Local Endpoint The Rendezvous action is initiated, and causes the Transport Services
candidates and the Remote Endpoint candidates retrieved from the peer Implementation to begin connectivity checks, once the application has
via the signalling channel have been added to the Preconnection. added both the Local Endpoint candidates and the Remote Endpoint
candidates retrieved from the peer via the signalling channel to the
Preconnection.
If successful, the Rendezvous action returns a Connection object via If successful, the Rendezvous action returns a Connection object via
a RendezvousDone<> event: a RendezvousDone<> event:
Preconnection -> RendezvousDone<Connection> Preconnection -> RendezvousDone<Connection>
The RendezvousDone<> event occurs when a Connection is established The RendezvousDone<> event occurs when a Connection is established
with the Remote Endpoint. For Connection-oriented transports, this with the Remote Endpoint. For Connection-oriented transports, this
occurs when the transport-layer connection is established; for occurs when the transport-layer connection is established; for
Connectionless transports, it occurs when the first Message is Connectionless transports, it occurs when the first Message is
skipping to change at page 44, line 11 skipping to change at page 45, line 36
Message Properties set on a Connection also apply only to that Message Properties set on a Connection also apply only to that
Connection. Connection.
A new Connection created by Clone can have a Message Framer assigned A new Connection created by Clone can have a Message Framer assigned
via the optional framer parameter of the Clone action. If this via the optional framer parameter of the Clone action. If this
parameter is not supplied, the stack of Message Framers associated parameter is not supplied, the stack of Message Framers associated
with a Connection is copied to the cloned Connection when calling with a Connection is copied to the cloned Connection when calling
Clone. Then, a cloned Connection has the same stack of Message Clone. Then, a cloned Connection has the same stack of Message
Framers as the Connection from which they are cloned, but these Framers as the Connection from which they are cloned, but these
Framers may internally maintain per-Connection state. Framers can internally maintain per-Connection state.
It is also possible to check which Connections belong to the same It is also possible to check which Connections belong to the same
Connection Group. Calling GroupedConnections on a specific Connection Group. Calling GroupedConnections on a specific
Connection returns a set of all Connections in the same group. Connection returns a set of all Connections in the same group.
[]Connection := Connection.GroupedConnections() []Connection := Connection.GroupedConnections()
Connections will belong to the same group if the application Connections will belong to the same group if the application
previously called Clone. Passive Connections can also be added to previously called Clone. Passive Connections can also be added to
the same group -- e.g., when a Listener receives a new Connection the same group -- e.g., when a Listener receives a new Connection
skipping to change at page 44, line 44 skipping to change at page 46, line 24
the Transport Services system will ensure consistency of Connection the Transport Services system will ensure consistency of Connection
Properties by uniformly applying them to all underlying connections Properties by uniformly applying them to all underlying connections
in a group. Even in such a case, there are possibilities for a in a group. Even in such a case, there are possibilities for a
Transport Services system to implement prioritization within a Transport Services system to implement prioritization within a
Connection Group [TCP-COUPLING] [RFC8699]. Connection Group [TCP-COUPLING] [RFC8699].
Attempts to clone a Connection can result in a CloneError: Attempts to clone a Connection can result in a CloneError:
Connection -> CloneError<reason?> Connection -> CloneError<reason?>
A CloneError can also occur later, after Clone was successfully
called. In this case, it informs the application that the Connection
that sends the CloneError is no longer a part of any Connection
Group. For example, this can occur when the Transport Services
system is unable to implement entanglement (a Connection Property was
changed on a different Connection in the Connection Group, but this
change could not be successfully applied to the Connection that sends
the CloneError).
The connPriority Connection Property operates on Connections in a The connPriority Connection Property operates on Connections in a
Connection Group using the same approach as in Section 9.1.3.2: when Connection Group using the same approach as in Section 9.1.3.2: when
allocating available network capacity among Connections in a allocating available network capacity among Connections in a
Connection Group, sends on Connections with higher Priority values Connection Group, sends on Connections with numerically lower
will be prioritized over sends on Connections that have lower Priority values will be prioritized over sends on Connections that
Priority values. Capacity will be shared among these Connections have numerically higher Priority values. Capacity will be shared
according to the connScheduler property (Section 8.1.5). See among these Connections according to the connScheduler property
Section 9.2.6 for more. (Section 8.1.5). See Section 9.2.6 for more.
7.5. Adding and Removing Endpoints on a Connection 7.5. Adding and Removing Endpoints on a Connection
Transport protocols that are explicitly multipath aware are expected Transport protocols that are explicitly multipath aware are expected
to automatically manage the set of Remote Endpoints that they are to automatically manage the set of Remote Endpoints that they are
communicating with, and the paths to those endpoints. A PathChange<> communicating with, and the paths to those endpoints. A PathChange<>
event, described in Section 8.3.2, will be generated when the path event, described in Section 8.3.2, will be generated when the path
changes. changes.
In some cases, however, it is necessary to explicitly indicate to a In some cases, however, it is necessary to explicitly indicate to a
skipping to change at page 45, line 26 skipping to change at page 47, line 18
is most common in the case of peer to peer connections using Trickle is most common in the case of peer to peer connections using Trickle
ICE [RFC8838]. ICE [RFC8838].
The AddRemote action can be used to add one or more new Remote The AddRemote action can be used to add one or more new Remote
Endpoints to a Connection: Endpoints to a Connection:
Connection.AddRemote([]RemoteEndpoint) Connection.AddRemote([]RemoteEndpoint)
Endpoints that are already known to the Connection are ignored. A Endpoints that are already known to the Connection are ignored. A
call to AddRemote makes the new Remote Endpoints available to the call to AddRemote makes the new Remote Endpoints available to the
Connection, but whether the Connection makes use of those endpoints Connection, but whether the Connection makes use of those Endpoints
will depend on the underlying transport protocol. will depend on the underlying transport protocol.
Similarly, the RemoveRemote action can be used to tell a Connection Similarly, the RemoveRemote action can be used to tell a Connection
to stop using one or more Remote Endpoints: to stop using one or more Remote Endpoints:
Connection.RemoveRemote([]RemoteEndpoint) Connection.RemoveRemote([]RemoteEndpoint)
Removing all known Remote Endpoints can have the effect of aborting Removing all known Remote Endpoints can have the effect of aborting
the connection. The effect of removing the active Remote Endpoint(s) the connection. The effect of removing the active Remote Endpoint(s)
depends on the underlying transport: multipath aware transports might depends on the underlying transport: multipath aware transports might
be able to switch to a new path if other reachable Remote Endpoints be able to switch to a new path if other reachable Remote Endpoints
exist, or the connection might abort. exist, or the connection might abort.
Similarly, the AddLocal and RemoveLocal actions can be used to add Similarly, the AddLocal and RemoveLocal actions can be used to add
and remove local endpoints to/from a Connection. and remove Local Endpoints to/from a Connection.
8. Managing Connections 8. Managing Connections
During pre-establishment and after establishment, (Pre-)Connections During pre-establishment and after establishment, (Pre-)Connections
can be configured and queried using Connection Properties, and can be configured and queried using Connection Properties, and
asynchronous information may be available about the state of the asynchronous information could be available about the state of the
Connection via SoftError events. Connection via SoftError events.
Connection Properties represent the configuration and state of the Connection Properties represent the configuration and state of the
selected Protocol Stack(s) backing a Connection. These Connection selected Protocol Stack(s) backing a Connection. These Connection
Properties may be Generic, applying regardless of transport protocol, Properties can be generic, applying regardless of transport protocol,
or Specific, applicable to a single implementation of a single or specific, applicable to a single implementation of a single
transport Protocol Stack. Generic Connection Properties are defined transport Protocol Stack. Generic Connection Properties are defined
in Section 8.1 below. in Section 8.1 below.
Protocol-specific Properties are defined in a transport- and Protocol-specific Properties are defined in a transport- and
implementation-specific way to permit more specialized protocol implementation-specific way to permit more specialized protocol
features to be used. Too much reliance by an application on features to be used. Too much reliance by an application on
Protocol-specific Properties can significantly reduce the flexibility Protocol-specific Properties can significantly reduce the flexibility
of a transport services system to make appropriate selection and of a transport services system to make appropriate selection and
configuration choices. Therefore, it is RECOMMENDED that Protocol- configuration choices. Therefore, it is RECOMMENDED that Generic
specific Properties are used for properties common across different Connection Properties are used for properties common across different
protocols and that Protocol-specific Properties are only used where protocols and that Protocol-specific Connection Properties are only
specific protocols or properties are necessary. used where specific protocols or properties are necessary.
The application can set and query Connection Properties on a per- The application can set and query Connection Properties on a per-
Connection basis. Connection Properties that are not read-only can Connection basis. Connection Properties that are not read-only can
be set during pre-establishment (see Section 6.2), as well as on be set during pre-establishment (see Section 6.2), as well as on
Connections directly using the SetProperty action: Connections directly using the SetProperty action:
ErrorCode := Connection.SetProperty(property, value) ErrorCode := Connection.SetProperty(property, value)
If an error is encountered in setting a property (for example, if the If an error is encountered in setting a property (for example, if the
application tries to set a TCP-specific property on a Connection that application tries to set a TCP-specific property on a Connection that
skipping to change at page 46, line 43 skipping to change at page 48, line 35
At any point, the application can query Connection Properties. At any point, the application can query Connection Properties.
ConnectionProperties := Connection.GetProperties() ConnectionProperties := Connection.GetProperties()
value := ConnectionProperties.Get(property) value := ConnectionProperties.Get(property)
if ConnectionProperties.Has(boolean_or_preference_property) then ... if ConnectionProperties.Has(boolean_or_preference_property) then ...
Depending on the status of the Connection, the queried Connection Depending on the status of the Connection, the queried Connection
Properties will include different information: Properties will include different information:
* The Connection state, which can be one of the following: * The Connection state, which can be one of the following:
Establishing, Established, Closing, or Closed. Establishing, Established, Closing, or Closed (see
Section 8.1.11.1).
* Whether the Connection can be used to send data. A Connection can * Whether the Connection can be used to send data (see
not be used for sending if the Connection was created with the Section 8.1.11.2). A Connection can not be used for sending if
Selection Property direction set to unidirectional receive or if a the Connection was created with the Selection Property direction
Message marked as Final was sent over this Connection. See also set to unidirectional receive or if a Message marked as Final was
Section 9.1.3.5. sent over this Connection. See also Section 9.1.3.5.
* Whether the Connection can be used to receive data. A Connection * Whether the Connection can be used to receive data (see
cannot be used for reading if the Connection was created with the Section 8.1.11.3). A Connection cannot be used for receiving if
Selection Property direction set to unidirectional send or if a the Connection was created with the Selection Property direction
Message marked as Final was received. See Section 9.3.3.3. The set to unidirectional send or if a Message marked as Final was
latter is only supported by certain transport protocols, e.g., by received. See Section 9.3.3.3. The latter is only supported by
TCP as half-closed connection. certain transport protocols, e.g., by TCP as half-closed
connection.
* For Connections that are Established, Closing, or Closed: * For Connections that are Established, Closing, or Closed:
Connection Properties (Section 8.1) of the actual protocols that Connection Properties (Section 8.1) of the actual protocols that
were selected and instantiated, and Selection Properties that the were selected and instantiated, and Selection Properties that the
application specified on the Preconnection. Selection Properties application specified on the Preconnection. Selection Properties
of type Preference will be exposed as boolean values indicating of type Preference will be exposed as boolean values indicating
whether or not the property applies to the selected transport. whether or not the property applies to the selected transport.
Note that the instantiated Protocol Stack might not match all Note that the instantiated Protocol Stack might not match all
Protocol Selection Properties that the application specified on Protocol Selection Properties that the application specified on
the Preconnection. the Preconnection.
* For Connections that are Established: information concerning the * For Connections that are Established: Transport Services system
implementations ought to provide information concerning the
path(s) used by the Protocol Stack. This can be derived from path(s) used by the Protocol Stack. This can be derived from
local PVD information, measurements by the Protocol Stack, or local PVD information, measurements by the Protocol Stack, or
other sources. For example, a Transport System that is configured other sources. For example, a Transport System that is configured
to receive and process PVD information [RFC7556] could also to receive and process PVD information [RFC7556] could also
provide network configuration information for the chosen path(s). provide network configuration information for the chosen path(s).
8.1. Generic Connection Properties 8.1. Generic Connection Properties
Generic Connection Properties are defined independent of the chosen Generic Connection Properties are defined independent of the chosen
Protocol Stack and therefore available on all Connections. Protocol Stack and therefore available on all Connections.
skipping to change at page 48, line 9 skipping to change at page 49, line 45
Name: recvChecksumLen Name: recvChecksumLen
Type: Integer (non-negative) or Full Coverage Type: Integer (non-negative) or Full Coverage
Default: Full Coverage Default: Full Coverage
If this property is an Integer, it specifies the minimum number of If this property is an Integer, it specifies the minimum number of
bytes in a received Message that need to be covered by a checksum. A bytes in a received Message that need to be covered by a checksum. A
receiving endpoint will not forward Messages that have less coverage receiving endpoint will not forward Messages that have less coverage
to the application. The application is responsible for handling any to the application. The application is responsible for handling any
corruption within the non-protected part of the Message [RFC8085]. A corruption within the non-protected part of the Message [RFC8085]. A
special value of 0 means that a received packet may also have a zero special value of 0 means that a received packet might also have a
checksum field, and the enumerated value Full Coverage means that the zero checksum field, and the enumerated value Full Coverage means
entire Message needs to be protected by a checksum. that the entire Message needs to be protected by a checksum. An
implementation is supposed to express Full Coverage in an
environment-typical way, e.g., as a Union type or special value.
8.1.2. Connection Priority 8.1.2. Connection Priority
Name: connPriority Name: connPriority
Type: Integer (non-negative) Type: Integer (non-negative)
Default: 100 Default: 100
This property is a non-negative integer representing the priority of This property is a non-negative Integer representing the priority of
this Connection relative to other Connections in the same Connection this Connection relative to other Connections in the same Connection
Group. A higher value reflects a higher priority. It has no effect Group. A numerically lower value reflects a higher priority. It has
on Connections not part of a Connection Group. As noted in no effect on Connections not part of a Connection Group. As noted in
Section 7.4, this property is not entangled when Connections are Section 7.4, this property is not entangled when Connections are
cloned, i.e., changing the Priority on one Connection in a Connection cloned, i.e., changing the Priority on one Connection in a Connection
Group does not change it on the other Connections in the same Group does not change it on the other Connections in the same
Connection Group. No guarantees of a specific behavior regarding Connection Group. No guarantees of a specific behavior regarding
Connection Priority are given; a Transport Services system may ignore Connection Priority are given; a Transport Services system could
this property. See Section 9.2.6 for more details. ignore this property. See Section 9.2.6 for more details.
8.1.3. Timeout for Aborting Connection 8.1.3. Timeout for Aborting Connection
Name: connTimeout Name: connTimeout
Type: Numeric (non-negative) or Disabled Type: Numeric (positive) or Disabled
Default: Disabled Default: Disabled
If this property is Numeric, it specifies how long to wait before If this property is Numeric, it specifies how long to wait before
deciding that an active Connection has failed when trying to reliably deciding that an active Connection has failed when trying to reliably
deliver data to the Remote Endpoint. Adjusting this property will deliver data to the Remote Endpoint. Adjusting this property will
only take effect when the underlying stack supports reliability. If only take effect when the underlying stack supports reliability. If
this property has the enumerated value Disabled, it means that no this property has the enumerated value Disabled, it means that no
timeout is scheduled. timeout is scheduled. A Transport Services API could express
Disabled in an environment-typical way, e.g., as a Union type or
special value.
8.1.4. Timeout for keep alive packets 8.1.4. Timeout for keep alive packets
Name: keepAliveTimeout Name: keepAliveTimeout
Type: Numeric (non-negative) or Disabled Type: Numeric (positive) or Disabled
Default: Disabled Default: Disabled
A Transport Services API can request a protocol that supports sending A Transport Services API can request a protocol that supports sending
keep alive packets Section 6.2.10. If this property is Numeric, it keep alive packets (Section 6.2.10). If this property is Numeric, it
specifies the maximum length of time an idle Connection (one for specifies the maximum length of time an idle Connection (one for
which no transport packets have been sent) should wait before the which no transport packets have been sent) ought to wait before the
Local Endpoint sends a keep-alive packet to the Remote Endpoint. Local Endpoint sends a keep-alive packet to the Remote Endpoint.
Adjusting this property will only take effect when the underlying Adjusting this property will only take effect when the underlying
stack supports sending keep-alive packets. Guidance on setting this stack supports sending keep-alive packets. Guidance on setting this
value for connection-less transports is provided in [RFC8085]. A value for connection-less transports is provided in [RFC8085]. A
value greater than the Connection timeout (Section 8.1.3) or the value greater than the Connection timeout (Section 8.1.3) or the
enumerated value Disabled will disable the sending of keep-alive enumerated value Disabled will disable the sending of keep-alive
packets. packets. A Transport Services API could express Disabled in an
environment-typical way, e.g., as a Union type or special value.
8.1.5. Connection Group Transmission Scheduler 8.1.5. Connection Group Transmission Scheduler
Name: connScheduler Name: connScheduler
Type: Enumeration Type: Enumeration
Default: Weighted Fair Queueing (see Section 3.6 in [RFC8260]) Default: Weighted Fair Queueing (see Section 3.6 in [RFC8260])
This property specifies which scheduler should be used among This property specifies which scheduler is used among Connections
Connections within a Connection Group, see Section 7.4. A set of within a Connection Group to apportion the available capacity
schedulers is described in [RFC8260]. according to Connection priorities (see Section 7.4 and
Section 8.1.2). A set of schedulers is described in [RFC8260].
8.1.6. Capacity Profile 8.1.6. Capacity Profile
Name: connCapacityProfile Name: connCapacityProfile
Type: Enumeration Type: Enumeration
Default: Default Profile (Best Effort) Default: Default Profile (Best Effort)
This property specifies the desired network treatment for traffic This property specifies the desired network treatment for traffic
skipping to change at page 50, line 22 skipping to change at page 52, line 18
Scavenger: The application is not interactive. It expects to send Scavenger: The application is not interactive. It expects to send
and/or receive data without any urgency. This can, for example, and/or receive data without any urgency. This can, for example,
be used to select Protocol Stacks with scavenger transmission be used to select Protocol Stacks with scavenger transmission
control and/or to assign the traffic to a lower-effort service. control and/or to assign the traffic to a lower-effort service.
Transport Services systems that map the requested capacity profile Transport Services systems that map the requested capacity profile
onto per-connection DSCP signaling SHOULD assign the DSCP Less onto per-connection DSCP signaling SHOULD assign the DSCP Less
than Best Effort [RFC8622] PHB. than Best Effort [RFC8622] PHB.
Low Latency/Interactive: The application is interactive, and prefers Low Latency/Interactive: The application is interactive, and prefers
loss to latency. Response time should be optimized at the expense loss to latency. Response time SHOULD be optimized at the expense
of delay variation and efficient use of the available capacity of delay variation and efficient use of the available capacity
when sending on this Connection. This can be used by the system when sending on this Connection. This can be used by the system
to disable the coalescing of multiple small Messages into larger to disable the coalescing of multiple small Messages into larger
packets (Nagle's algorithm); to prefer immediate acknowledgment packets (Nagle's algorithm); to prefer immediate acknowledgment
from the peer endpoint when supported by the underlying transport; from the peer endpoint when supported by the underlying transport;
and so on. Transport Services systems that map the requested and so on. Transport Services systems that map the requested
capacity profile onto per-connection DSCP signaling without capacity profile onto per-connection DSCP signaling without
multiplexing SHOULD assign a DSCP Assured Forwarding multiplexing SHOULD assign a DSCP Assured Forwarding
(AF41,AF42,AF43,AF44) [RFC2597] PHB. Inelastic traffic that is (AF41,AF42,AF43,AF44) [RFC2597] PHB. Inelastic traffic that is
expected to conform to the configured network service rate could expected to conform to the configured network service rate could
be mapped to the DSCP Expedited Forwarding [RFC3246] or [RFC5865] be mapped to the DSCP Expedited Forwarding [RFC3246] or [RFC5865]
PHBs. PHBs.
Low Latency/Non-Interactive: The application prefers loss to Low Latency/Non-Interactive: The application prefers loss to
latency, but is not interactive. Response time should be latency, but is not interactive. Response time SHOULD be
optimized at the expense of delay variation and efficient use of optimized at the expense of delay variation and efficient use of
the available capacity when sending on this Connection. Transport the available capacity when sending on this Connection. Transport
system implementations that map the requested capacity profile system implementations that map the requested capacity profile
onto per-connection DSCP signaling without multiplexing SHOULD onto per-connection DSCP signaling without multiplexing SHOULD
assign a DSCP Assured Forwarding (AF21,AF22,AF23,AF24) [RFC2597] assign a DSCP Assured Forwarding (AF21,AF22,AF23,AF24) [RFC2597]
PHB. PHB.
Constant-Rate Streaming: The application expects to send/receive Constant-Rate Streaming: The application expects to send/receive
data at a constant rate after Connection establishment. Delay and data at a constant rate after Connection establishment. Delay and
delay variation should be minimized at the expense of efficient delay variation SHOULD be minimized at the expense of efficient
use of the available capacity. This implies that the Connection use of the available capacity. This implies that the Connection
might fail if the Path is unable to maintain the desired rate. A might fail if the Path is unable to maintain the desired rate. A
transport can interpret this capacity profile as preferring a transport can interpret this capacity profile as preferring a
circuit breaker [RFC8084] to a rate-adaptive congestion circuit breaker [RFC8084] to a rate-adaptive congestion
controller. Transport system implementations that map the controller. Transport system implementations that map the
requested capacity profile onto per-connection DSCP signaling requested capacity profile onto per-connection DSCP signaling
without multiplexing SHOULD assign a DSCP Assured Forwarding without multiplexing SHOULD assign a DSCP Assured Forwarding
(AF31,AF32,AF33,AF34) [RFC2597] PHB. (AF31,AF32,AF33,AF34) [RFC2597] PHB.
Capacity-Seeking: The application expects to send/receive data at Capacity-Seeking: The application expects to send/receive data at
skipping to change at page 52, line 12 skipping to change at page 54, line 9
capacity limitations of the individual paths. The actual strategy capacity limitations of the individual paths. The actual strategy
is implementation specific. is implementation specific.
Note that this is a local choice – the Remote Endpoint can choose a Note that this is a local choice – the Remote Endpoint can choose a
different policy. different policy.
8.1.8. Bounds on Send or Receive Rate 8.1.8. Bounds on Send or Receive Rate
Name: minSendRate / minRecvRate / maxSendRate / maxRecvRate Name: minSendRate / minRecvRate / maxSendRate / maxRecvRate
Type: Numeric (non-negative) or Unlimited / Numeric (non-negative) Type: Numeric (positive) or Unlimited / Numeric (positive) or
or Unlimited / Numeric (non-negative) or Unlimited / Numeric (non- Unlimited / Numeric (positive) or Unlimited / Numeric (positive)
negative) or Unlimited or Unlimited
Default: Unlimited / Unlimited / Unlimited / Unlimited Default: Unlimited / Unlimited / Unlimited / Unlimited
Numeric values of these properties specify an upper-bound rate that a Numeric values of these properties specify an upper-bound rate that a
transfer is not expected to exceed (even if flow control and transfer is not expected to exceed (even if flow control and
congestion control allow higher rates), and/or a lower-bound rate congestion control allow higher rates), and/or a lower-bound
below which the application does not deem it will be useful. These application-layer rate below which the application does not deem it
are specified in bits per second. The enumerated value Unlimited will be useful. These rate values are measured at the application
indicates that no bound is specified. layer, i.e. do not consider the header overhead from protocols used
by the Transport Services system. The values are specified in bits
per second, and assumed to be measured over one-second time
intervals. E.g., specifying a maxSendRate of X bits per second means
that, from the moment at which the property value is chosen, not more
than X bits will be send in any following second. The enumerated
value Unlimited indicates that no bound is specified. A Transport
Services API could express Unlimited in an environment-typical way,
e.g., as a Union type or special value.
8.1.9. Group Connection Limit 8.1.9. Group Connection Limit
Name: groupConnLimit Name: groupConnLimit
Type: Numeric (non-negative) or Unlimited Type: Numeric (positive) or Unlimited
Default: Unlimited Default: Unlimited
If this property is Numeric, it controls the number of Connections If this property is Numeric, it controls the number of Connections
that can be accepted from a peer as new members of the Connection's that can be accepted from a peer as new members of the Connection's
group. Similar to SetNewConnectionLimit, this limits the number of group. Similar to SetNewConnectionLimit, this limits the number of
ConnectionReceived events that will occur, but constrained to the ConnectionReceived events that will occur, but constrained to the
group of the Connection associated with this property. For a multi- group of the Connection associated with this property. For a multi-
streaming transport, this limits the number of allowed streams. streaming transport, this limits the number of allowed streams. A
Transport Services API could express Unlimited in an environment-
typical way, e.g., as a Union type or special value.
8.1.10. Isolate Session 8.1.10. Isolate Session
Name: isolateSession Name: isolateSession
Type: Boolean Type: Boolean
Default: false Default: false
When set to true, this property will initiate new Connections using When set to true, this property will initiate new Connections using
as little cached information (such as session tickets or cookies) as as little cached information (such as session tickets or cookies) as
possible from previous Connections that are not in the same possible from previous Connections that are not in the same
Connection Group. Any state generated by this Connection will only Connection Group. Any state generated by this Connection will only
be shared with Connections in the same Connection Group. Cloned be shared with Connections in the same Connection Group. Cloned
Connections will use saved state from within the Connection Group. Connections will use saved state from within the Connection Group.
This is used for separating Connection Contexts as specified in This is used for separating Connection Contexts as specified in
Section 4.2.3 of [I-D.ietf-taps-arch]. Section 4.2.3 of [I-D.ietf-taps-arch].
Note that this does not guarantee no leakage of information, as Note that this does not guarantee no leakage of information, as
implementations may not be able to fully isolate all caches (e.g. implementations might not be able to fully isolate all caches (e.g.
RTT estimates). Note that this property may degrade Connection RTT estimates). Note that this property could degrade Connection
performance. performance.
8.1.11. Read-only Connection Properties 8.1.11. Read-only Connection Properties
The following generic Connection Properties are read-only, i.e. they The following generic Connection Properties are read-only, i.e. they
cannot be changed by an application. cannot be changed by an application.
8.1.11.1. Maximum Message Size Before Fragmentation or Segmentation 8.1.11.1. Connection state
Name: connState
Type: Enumeration
This property informs about the current state of the Connection.
Possible values are: Establishing, Established, Closing or Closed;
for more details on Connection state, see Section 11.
8.1.11.2. Can Send Data
Name: canSend
Type: Boolean
This property can be queried to learn whether the Connection can be
used to send data.
8.1.11.3. Can Receive Data
Name: canReceive
Type: Boolean
This property can be queried to learn whether the Connection can be
used to receive data.
8.1.11.4. Maximum Message Size Before Fragmentation or Segmentation
Name: singularTransmissionMsgMaxLen Name: singularTransmissionMsgMaxLen
Type: Integer (non-negative) or Not applicable Type: Integer (non-negative) or Not applicable
This property, if applicable, represents the maximum Message size This property, if applicable, represents the maximum Message size
that can be sent without incurring network-layer fragmentation at the that can be sent without incurring network-layer fragmentation at the
sender. It is specified as the number of bytes. It exposes a value sender. It is specified as a number of bytes and is less than or
to the application based on the Maximum Packet Size (MPS) as equal to the Maximum Message Size on Send. It exposes a readable
described in Datagram PLPMTUD [RFC8899]. This can allow a sending value to the application based on the Maximum Packet Size (MPS). The
stack to avoid unwanted fragmentation at the network-layer or value of this property can change over time (and can be updated by
segmentation by the transport layer. Datagram PLPMTUD [RFC8899]). This value allows a sending stack to
avoid unwanted fragmentation at the network-layer or segmentation by
the transport layer before choosing the message size and/or after a
SendError occurs indicating an attempt to send a Message that is too
large. A Transport Services API could express Not applicable in an
environment-typical way, e.g., as a Union type or special value
(e.g., 0).
8.1.11.2. Maximum Message Size on Send 8.1.11.5. Maximum Message Size on Send
Name: sendMsgMaxLen Name: sendMsgMaxLen
Type: Integer (non-negative) Type: Integer (non-negative)
This property represents the maximum Message size that an application This property represents the maximum Message size that an application
can send. It is specified as the number of bytes. can send. It is specified as the number of bytes. A value of 0
indicates that sending is not possible.
8.1.11.3. Maximum Message Size on Receive 8.1.11.6. Maximum Message Size on Receive
Name: recvMsgMaxLen Name: recvMsgMaxLen
Type: Integer (non-negative) Type: Integer (non-negative)
This property represents the maximum Message size that an application This property represents the maximum Message size that an application
can receive. It specified as the number of bytes. can receive. It is specified as the number of bytes. A value of 0
indicates that receiving is not possible.
8.2. TCP-specific Properties: User Timeout Option (UTO) 8.2. TCP-specific Properties: User Timeout Option (UTO)
These properties specify configurations for the User Timeout Option These properties specify configurations for the TCP User Timeout
(UTO), in the case that TCP becomes the chosen transport protocol. Option (UTO). This is a TCP-specific property, that is only used in
Implementation is optional and useful only if TCP is implemented in the case that TCP becomes the chosen transport protocol and useful
the Transport Services system. only if TCP is implemented in the Transport Services system.
Protocol-specific options could also be defined for other transport
protocols.
These TCP-specific properties are included here because the feature These are included here because the feature Suggest timeout to the
Suggest timeout to the peer is part of the minimal set of transport peer is part of the minimal set of transport services [RFC8923],
services [RFC8923], where this feature was categorized as where this feature was categorized as "functional". This means that
"functional". This means that when an Transport Services system when a Transport Services system offers this feature, the Transport
offers this feature, the Transport Services API has to expose an Services API has to expose an interface to the application.
interface to the application. Otherwise, the implementation might Otherwise, the implementation might violate assumptions by the
violate assumptions by the application, which could cause the application, which could cause the application to fail.
application to fail.
All of the below properties are optional (e.g., it is possible to All of the below properties are optional (e.g., it is possible to
specify User Timeout Enabled as true, but not specify an Advertised specify User Timeout Enabled as true, but not specify an Advertised
User Timeout value; in this case, the TCP default will be used). User Timeout value; in this case, the TCP default will be used).
These properties reflect the API extension specified in Section 3 of These properties reflect the API extension specified in Section 3 of
[RFC5482]. [RFC5482].
8.2.1. Advertised User Timeout 8.2.1. Advertised User Timeout
Name: tcp.userTimeoutValue Name: tcp.userTimeoutValue
Type: Integer (non-negative) Type: Integer (positive)
Default: the TCP default Default: the TCP default
This time value is advertised via the TCP User Timeout Option (UTO) This time value is advertised via the TCP User Timeout Option (UTO)
[RFC5482] at the Remote Endpoint to adapt its own Timeout for [RFC5482] to the Remote Endpoint which can use it to adapt its own
aborting Connection (see Section 8.1.3) value. Timeout for aborting Connection (see Section 8.1.3) value.
8.2.2. User Timeout Enabled 8.2.2. User Timeout Enabled
Name: tcp.userTimeoutEnabled Name: tcp.userTimeoutEnabled
Type: Boolean Type: Boolean
Default: false Default: false
This property controls whether the UTO option is enabled for a This property controls whether the TCP UTO option is enabled for a
connection. This applies to both sending and receiving. connection. This applies to both sending and receiving.
8.2.3. Timeout Changeable 8.2.3. Timeout Changeable
Name: tcp.userTimeoutChangeable Name: tcp.userTimeoutChangeable
Type: Boolean Type: Boolean
Default: true Default: true
This property controls whether the TCP connTimeout (see
Section 8.1.3) can be changed based on a UTO option received from the
remote peer. This boolean becomes false when connTimeout (see
Section 8.1.3) is used.
This property controls whether the connTimeout (see Section 8.1.3)
may be changed based on a UTO option received from the remote peer.
This boolean becomes false when connTimeout (see Section 8.1.3) is
used.
8.3. Connection Lifecycle Events 8.3. Connection Lifecycle Events
During the lifetime of a Connection there are events that can occur During the lifetime of a Connection there are events that can occur
when configured. when configured.
8.3.1. Soft Errors 8.3.1. Soft Errors
Asynchronous introspection is also possible, via the SoftError event. Asynchronous introspection is also possible, via the SoftError event.
This event informs the application about the receipt and contents of This event informs the application about the receipt and contents of
an ICMP error message related to the Connection. This will only an ICMP error message related to the Connection. This will only
skipping to change at page 56, line 7 skipping to change at page 58, line 42
Connection -> PathChange<> Connection -> PathChange<>
9. Data Transfer 9. Data Transfer
Data is sent and received as Messages, which allows the application Data is sent and received as Messages, which allows the application
to communicate the boundaries of the data being transferred. to communicate the boundaries of the data being transferred.
9.1. Messages and Framers 9.1. Messages and Framers
Each Message has an optional Message Context, which allows to add Each Message has an optional Message Context, which allows adding
Message Properties, identify Send events related to a specific Message Properties, identify Send events related to a specific
Message or to inspect meta-data related to the Message sent. Framers Message or to inspect meta-data related to the Message sent. Framers
can be used to extend or modify the Message data with additional can be used to extend or modify the Message data with additional
information that can be processed at the receiver to detect message information that can be processed at the receiver to detect message
boundaries. boundaries.
9.1.1. Message Contexts 9.1.1. Message Contexts
Using the MessageContext object, the application can set and retrieve Using the MessageContext object, the application can set and retrieve
meta-data of the Message, including Message Properties (see meta-data of the Message, including Message Properties (see
Section 9.1.3) and framing meta-data (see Section 9.1.2.2). Section 9.1.3) and framing meta-data (see Section 9.1.2.2).
Therefore, a MessageContext object can be passed to the Send action Therefore, a MessageContext object can be passed to the Send action
and is returned by each Send and Receive related event. and is returned by each Send and Receive related event.
Message Properties can be set and queried using the Message Context: Message Properties can be set and queried using the Message Context:
MessageContext.add(property, value) MessageContext.add(property, value)
PropertyValue := MessageContext.get(property) PropertyValue := MessageContext.get(property)
These Message Properties may be generic properties or Protocol- These Message Properties can be generic properties or Protocol-
specific Properties. specific Properties.
For MessageContexts returned by Send events (see Section 9.2.2) and For MessageContexts returned by Send events (see Section 9.2.2) and
Receive events (see Section 9.3.2), the application can query Receive events (see Section 9.3.2), the application can query
information about the Local and Remote Endpoint: information about the Local and Remote Endpoint:
RemoteEndpoint := MessageContext.GetRemoteEndpoint() RemoteEndpoint := MessageContext.GetRemoteEndpoint()
LocalEndpoint := MessageContext.GetLocalEndpoint() LocalEndpoint := MessageContext.GetLocalEndpoint()
9.1.2. Message Framers 9.1.2. Message Framers
skipping to change at page 57, line 13 skipping to change at page 60, line 10
evolved over TCP, which does not provide message boundary evolved over TCP, which does not provide message boundary
preservation, and since many of these protocols require message preservation, and since many of these protocols require message
boundaries to function, each application layer protocol has defined boundaries to function, each application layer protocol has defined
its own framing. its own framing.
To use a Message Framer, the application adds it to its Preconnection To use a Message Framer, the application adds it to its Preconnection
object. Then, the Message Framer can intercept all calls to Send or object. Then, the Message Framer can intercept all calls to Send or
Receive on a Connection to add Message semantics, in addition to Receive on a Connection to add Message semantics, in addition to
interacting with the setup and teardown of the Connection. A Framer interacting with the setup and teardown of the Connection. A Framer
can start sending data before the application sends data if the can start sending data before the application sends data if the
framing protocol requires a prefix or handshake (see [RFC8229] for an framing protocol requires a prefix or handshake (see [RFC9329] for an
example of such a framing protocol). example of such a framing protocol).
Initiate() Send() Receive() Close() Initiate() Send() Receive() Close()
| | ^ | | | ^ |
| | | | | | | |
+----v----------v---------+----------v-----+ +----v----------v---------+----------v-----+
| Connection | | Connection |
+----+----------+---------^----------+-----+ +----+----------+---------^----------+-----+
| | | | | | | |
| +-----------------+ | | +-----------------+ |
skipping to change at page 57, line 44 skipping to change at page 60, line 41
| | | | | | | |
+----v----------v---------+----------v-----+ +----v----------v---------+----------v-----+
| Transport Protocol Stack | | Transport Protocol Stack |
+------------------------------------------+ +------------------------------------------+
Figure 1: Protocol Stack showing a Message Framer Figure 1: Protocol Stack showing a Message Framer
Note that while Message Framers add the most value when placed above Note that while Message Framers add the most value when placed above
a protocol that otherwise does not preserve message boundaries, they a protocol that otherwise does not preserve message boundaries, they
can also be used with datagram- or message-based protocols. In these can also be used with datagram- or message-based protocols. In these
cases, they add an additional transformation to further encode or cases, they add a transformation to further encode or encapsulate,
encapsulate, and can potentially support packing multiple and can potentially support packing multiple application-layer
application-layer Messages into individual transport datagrams. Messages into individual transport datagrams.
The API to implement a Message Framer can vary depending on the The API to implement a Message Framer can vary depending on the
implementation; guidance on implementing Message Framers can be found implementation; guidance on implementing Message Framers can be found
in [I-D.ietf-taps-impl]. in [I-D.ietf-taps-impl].
9.1.2.1. Adding Message Framers to Pre-Connections 9.1.2.1. Adding Message Framers to Pre-Connections
The Message Framer object can be added to one or more Preconnections The Message Framer object can be added to one or more Preconnections
to run on top of transport protocols. Multiple Framers may be added to run on top of transport protocols. Multiple Framers can be added
to a Preconnection; in this case, the Framers operate as a framing to a Preconnection; in this case, the Framers operate as a framing
stack, i.e. the last one added runs first when framing outbound stack, i.e. the last one added runs first when framing outbound
Messages, and last when parsing inbound data. Messages, and last when parsing inbound data.
The following example adds a basic HTTP Message Framer to a The following example adds a basic HTTP Message Framer to a
Preconnection: Preconnection:
framer := NewHTTPMessageFramer() framer := NewHTTPMessageFramer()
Preconnection.AddFramer(framer) Preconnection.AddFramer(framer)
Since Message Framers pass from Preconnection to Listener or Since Message Framers pass from Preconnection to Listener or
Connection, addition of Framers must happen before any operation that Connection, addition of Framers must happen before any operation that
may result in the creation of a Connection. might result in the creation of a Connection.
9.1.2.2. Framing Meta-Data 9.1.2.2. Framing Meta-Data
When sending Messages, applications can add Framer-specific When sending Messages, applications can add Framer-specific
properties to a MessageContext (Section 9.1.1). In order to set properties to a MessageContext (Section 9.1.1) with the add action.
these properties, the add and get actions on the MessageContext. To To avoid naming conflicts, the property names SHOULD be prefixed with
avoid naming conflicts, the property names SHOULD be prefixed with a a namespace referencing the framer implementation or the protocol it
namespace referencing the framer implementation or the protocol it
implements as described in Section 4.1. implements as described in Section 4.1.
This mechanism can be used, for example, to set the type of a Message This mechanism can be used, for example, to set the type of a Message
for a TLV format. The namespace of values is custom for each unique for a TLV format. The namespace of values is custom for each unique
Message Framer. Message Framer.
messageContext := NewMessageContext() messageContext := NewMessageContext()
messageContext.add(framer, key, value) messageContext.add(framer, key, value)
Connection.Send(messageData, messageContext) Connection.Send(messageData, messageContext)
skipping to change at page 60, line 13 skipping to change at page 63, line 13
Selection Properties of the Connection yields an error. Selection Properties of the Connection yields an error.
If a Message Property contradicts a Connection Property, and if this If a Message Property contradicts a Connection Property, and if this
per-Message behavior can be supported, it overrides the Connection per-Message behavior can be supported, it overrides the Connection
Property for the specific Message. For example, if reliability is Property for the specific Message. For example, if reliability is
set to Require and a protocol with configurable per-Message set to Require and a protocol with configurable per-Message
reliability is used, setting msgReliable to false for a particular reliability is used, setting msgReliable to false for a particular
Message will allow this Message to be sent without any reliability Message will allow this Message to be sent without any reliability
guarantees. Changing the msgReliable Message Property is only guarantees. Changing the msgReliable Message Property is only
possible for Connections that were established enabling the Selection possible for Connections that were established enabling the Selection
Property perMsgReliability. Property perMsgReliability. If the contradicting Message Property
cannot be supported by the Connection (such as requiring reliability
on a Connection that uses an unreliable protocol), the Send action
will result in a SendError event.
The following Message Properties are supported: The following Message Properties are supported:
9.1.3.1. Lifetime 9.1.3.1. Lifetime
Name: msgLifetime Name: msgLifetime
Type: Numeric (non-negative) Type: Numeric (positive)
Default: infinite Default: infinite
The Lifetime specifies how long a particular Message can wait in the The Lifetime specifies how long a particular Message can wait in the
Transport Services system before it is sent to the Remote Endpoint. Transport Services system before it is sent to the Remote Endpoint.
After this time, it is irrelevant and no longer needs to be After this time, it is irrelevant and no longer needs to be
(re-)transmitted. This is a hint to the Transport Services system -- (re-)transmitted. This is a hint to the Transport Services system --
it is not guaranteed that a Message will not be sent when its it is not guaranteed that a Message will not be sent when its
Lifetime has expired. Lifetime has expired.
skipping to change at page 60, line 48 skipping to change at page 63, line 51
9.1.3.2. Priority 9.1.3.2. Priority
Name: msgPriority Name: msgPriority
Type: Integer (non-negative) Type: Integer (non-negative)
Default: 100 Default: 100
This property specifies the priority of a Message, relative to other This property specifies the priority of a Message, relative to other
Messages sent over the same Connection. Messages sent over the same Connection. A numerically lower value
represents a higher priority.
A Message with Priority 0 will yield to a Message with Priority 1, A Message with Priority 2 will yield to a Message with Priority 1,
which will yield to a Message with Priority 2, and so on. Priorities which will yield to a Message with Priority 0, and so on. Priorities
may be used as a sender-side scheduling construct only, or be used to can be used as a sender-side scheduling construct only, or be used to
specify priorities on the wire for Protocol Stacks supporting specify priorities on the wire for Protocol Stacks supporting
prioritization. prioritization.
Note that this property is not a per-Message override of connPriority Note that this property is not a per-Message override of connPriority
- see Section 8.1.2. The priority properties may interact, but can - see Section 8.1.2. The priority properties might interact, but can
be used independently and be realized by different mechanisms; see be used independently and be realized by different mechanisms; see
Section 9.2.6. Section 9.2.6.
9.1.3.3. Ordered 9.1.3.3. Ordered
Name: msgOrdered Name: msgOrdered
Type: Boolean Type: Boolean
Default: the queried Boolean value of the Selection Property Default: the queried Boolean value of the Selection Property
skipping to change at page 61, line 50 skipping to change at page 64, line 50
Name: safelyReplayable Name: safelyReplayable
Type: Boolean Type: Boolean
Default: false Default: false
If true, safelyReplayable specifies that a Message is safe to send to If true, safelyReplayable specifies that a Message is safe to send to
the Remote Endpoint more than once for a single Send action. It the Remote Endpoint more than once for a single Send action. It
marks the data as safe for certain 0-RTT establishment techniques, marks the data as safe for certain 0-RTT establishment techniques,
where retransmission of the 0-RTT data may cause the remote where retransmission of the 0-RTT data could cause the remote
application to receive the Message multiple times. application to receive the Message multiple times.
For protocols that do not protect against duplicated Messages, e.g., For protocols that do not protect against duplicated Messages, e.g.,
UDP, all Messages need to be marked as "safely replayable" by UDP, all Messages need to be marked as "safely replayable" by
enabling this property. To enable protocol selection to choose such enabling this property. To enable protocol selection to choose such
a protocol, safelyReplayable needs to be added to the a protocol, safelyReplayable needs to be added to the
TransportProperties passed to the Preconnection. If such a protocol TransportProperties passed to the Preconnection. If such a protocol
was chosen, disabling safelyReplayable on individual Messages MUST was chosen, disabling safelyReplayable on individual Messages MUST
result in a SendError. result in a SendError.
skipping to change at page 63, line 25 skipping to change at page 66, line 25
Name: msgReliable Name: msgReliable
Type: Boolean Type: Boolean
Default: the queried Boolean value of the Selection Property Default: the queried Boolean value of the Selection Property
reliability (Section 6.2.1) reliability (Section 6.2.1)
When true, this property specifies that a Message should be sent in When true, this property specifies that a Message should be sent in
such a way that the transport protocol ensures all data is received such a way that the transport protocol ensures all data is received
on the other side without corruption. Changing the msgReliable by the Remote Endpoint. Changing the msgReliable property on
property on Messages is only possible for Connections that were Messages is only possible for Connections that were established
established enabling the Selection Property perMsgReliability. When enabling the Selection Property perMsgReliability. When this is not
this is not the case, changing msgReliable will generate an error. the case, changing msgReliable will generate an error.
Disabling this property indicates that the Transport Services system Disabling this property indicates that the Transport Services system
may disable retransmissions or other reliability mechanisms for this could disable retransmissions or other reliability mechanisms for
particular Message, but such disabling is not guaranteed. this particular Message, but such disabling is not guaranteed.
If it is not configured by the application before sending, this If it is not configured by the application before sending, this
property's default value will be based on the Selection Property property's default value will be based on the Selection Property
reliability of the Connection associated with the Send action. reliability of the Connection associated with the Send action.
9.1.3.8. Message Capacity Profile Override 9.1.3.8. Message Capacity Profile Override
Name: msgCapacityProfile Name: msgCapacityProfile
Type: Enumeration Type: Enumeration
skipping to change at page 64, line 24 skipping to change at page 67, line 24
Name: noFragmentation Name: noFragmentation
Type: Boolean Type: Boolean
Default: false Default: false
This property specifies that a Message should be sent and received This property specifies that a Message should be sent and received
without network-layer fragmentation, if possible. It can be used to without network-layer fragmentation, if possible. It can be used to
avoid network layer fragmentation when transport segmentation is avoid network layer fragmentation when transport segmentation is
prefered. preferred.
This only takes effect when the transport uses a network layer that This only takes effect when the transport uses a network layer that
supports this functionality. When it does take effect, setting this supports this functionality. When it does take effect, setting this
property to true will cause the sender to avoid network-layer source property to true will cause the sender to avoid network-layer source
fragmentation. When using IPv4, this will result in the Don't fragmentation. When using IPv4, this will result in the Don't
Fragment bit being set in the IP header. Fragment bit being set in the IP header.
Attempts to send a Message with this property that result in a size Attempts to send a Message with this property that result in a size
greater than the transport's current estimate of its maximum packet greater than the transport's current estimate of its maximum packet
size (singularTransmissionMsgMaxLen) can result in transport size (singularTransmissionMsgMaxLen) can result in transport
segmentation when permitted, or in a SendError. segmentation when permitted, or in a SendError.
Note: noSegmentation should be used when it is desired to only send a Note: noSegmentation is used when it is desired to only send a
Message within a single network packet. Message within a single network packet.
9.1.3.10. No Segmentation 9.1.3.10. No Segmentation
Name: noSegmentation Name: noSegmentation
Type: Boolean Type: Boolean
Default: false Default: false
When set to true, this property requests the transport layer to not When set to true, this property requests the transport layer to not
provide segmentation of Messages larger than the maximum size provide segmentation of Messages larger than the maximum size
permitted by the network layer, and also to avoid network-layer permitted by the network layer, and also to avoid network-layer
source fragmentation of Messages. When running over IPv4, setting source fragmentation of Messages. When running over IPv4, setting
this property to true will result in a sending endpount setting the this property to true will result in a sending endpoint setting the
Don't Fragment bit in the IPv4 header of packets generated by the Don't Fragment bit in the IPv4 header of packets generated by the
transport layer. transport layer.
An attempt to send a Message that results in a size greater than the An attempt to send a Message that results in a size greater than the
transport's current estimate of its maximum packet size transport's current estimate of its maximum packet size
(singularTransmissionMsgMaxLen) will result in a SendError. This (singularTransmissionMsgMaxLen) will result in a SendError. This
only takes effect when the transport and network layer support this only takes effect when the transport and network layer support this
functionality. functionality.
9.2. Sending Data 9.2. Sending Data
skipping to change at page 66, line 6 skipping to change at page 69, line 6
9.2.1. Basic Sending 9.2.1. Basic Sending
The most basic form of sending on a Connection involves enqueuing a The most basic form of sending on a Connection involves enqueuing a
single Data block as a complete Message with default Message single Data block as a complete Message with default Message
Properties. Properties.
messageData := "hello" messageData := "hello"
Connection.Send(messageData) Connection.Send(messageData)
The interpretation of a Message to be sent is dependent on the The interpretation of a Message to be sent is dependent on the
implementation, and on the constraints on the Protocol Stacks implied implementation, and on the constraints on the Protocol Stacks implied
by the Connection’s transport properties. For example, a Message may by the Connection’s transport properties. For example, a Message
be a single datagram for UDP Connections; or an HTTP Request for HTTP could be the payload of a single datagram for a UDP Connection; or an
Connections. HTTP Request for an HTTP Connection.
Some transport protocols can deliver arbitrarily sized Messages, but Some transport protocols can deliver arbitrarily sized Messages, but
other protocols constrain the maximum Message size. Applications can other protocols constrain the maximum Message size. Applications can
query the Connection Property sendMsgMaxLen (Section 8.1.11.2) to query the Connection Property sendMsgMaxLen (Section 8.1.11.5) to
determine the maximum size allowed for a single Message. If a determine the maximum size allowed for a single Message. If a
Message is too large to fit in the Maximum Message Size for the Message is too large to fit in the Maximum Message Size for the
Connection, the Send will fail with a SendError event Connection, the Send will fail with a SendError event
(Section 9.2.2.3). For example, it is invalid to send a Message over (Section 9.2.2.3). For example, it is invalid to send a Message over
a UDP connection that is larger than the available datagram sending a UDP connection that is larger than the available datagram sending
size. size.
9.2.2. Send Events 9.2.2. Send Events
Like all actions in Transport Services API, the Send action is Like all actions in Transport Services API, the Send action is
skipping to change at page 67, line 28 skipping to change at page 70, line 28
(see Section 9.1.3.1) expired. This is separate from SendError, as (see Section 9.1.3.1) expired. This is separate from SendError, as
it is an expected behavior for partially reliable transports. The it is an expected behavior for partially reliable transports. The
Expired event contains a reference to the Message Context of the Expired event contains a reference to the Message Context of the
Message to which it applies. Message to which it applies.
9.2.2.3. SendError 9.2.2.3. SendError
Connection -> SendError<messageContext, reason?> Connection -> SendError<messageContext, reason?>
A SendError occurs when a Message was not sent due to an error A SendError occurs when a Message was not sent due to an error
condition: an attempt to send a Message which is too large for the condition: an attempt to send a Message that is too large for the
system and Protocol Stack to handle, some failure of the underlying system and Protocol Stack to handle, some failure of the underlying
Protocol Stack, or a set of Message Properties not consistent with Protocol Stack, or a set of Message Properties not consistent with
the Connection's transport properties. The SendError contains a the Connection's transport properties. The SendError contains a
reference to the Message Context of the Message to which it applies. reference to the Message Context of the Message to which it applies.
9.2.3. Partial Sends 9.2.3. Partial Sends
It is not always possible for an application to send all data It is not always possible for an application to send all data
associated with a Message in a single Send action. The Message data associated with a Message in a single Send action. The Message data
may be too large for the application to hold in memory at one time, might be too large for the application to hold in memory at one time,
or the length of the Message may be unknown or unbounded. or the length of the Message might be unknown or unbounded.
Partial Message sending is supported by passing an endOfMessage Partial Message sending is supported by passing an endOfMessage
boolean parameter to the Send action. This value is always true by Boolean parameter to the Send action. This value is always true by
default, and the simpler forms of Send are equivalent to passing true default, and the simpler forms of Send are equivalent to passing true
for endOfMessage. for endOfMessage.
The following example sends a Message in two separate calls to Send. The following example sends a Message in two separate calls to Send.
messageContext := NewMessageContext() messageContext := NewMessageContext()
messageContext.add(parameter, value) messageContext.add(parameter, value)
messageData := "hel" messageData := "hel"
endOfMessage := false endOfMessage := false
skipping to change at page 69, line 16 skipping to change at page 72, line 16
Message passed to InitiateWithSend as "safely replayable" using the Message passed to InitiateWithSend as "safely replayable" using the
safelyReplayable property. This allows the Transport Services system safelyReplayable property. This allows the Transport Services system
to make use of 0-RTT establishment in case this is supported by the to make use of 0-RTT establishment in case this is supported by the
available Protocol Stacks. When the selected stack(s) do not support available Protocol Stacks. When the selected stack(s) do not support
transmitting data upon connection establishment, InitiateWithSend is transmitting data upon connection establishment, InitiateWithSend is
identical to Initiate followed by Send. identical to Initiate followed by Send.
Neither partial sends nor send batching are supported by Neither partial sends nor send batching are supported by
InitiateWithSend. InitiateWithSend.
The events that may be sent after InitiateWithSend are equivalent to The events that are sent after InitiateWithSend are equivalent to
those that would be sent by an invocation of Initiate followed those that would be sent by an invocation of Initiate followed
immediately by an invocation of Send, with the caveat that a send immediately by an invocation of Send, with the caveat that a send
failure that occurs because the Connection could not be established failure that occurs because the Connection could not be established
will not result in a SendError separate from the EstablishmentError will not result in a SendError separate from the EstablishmentError
signaling the failure of Connection establishment. signaling the failure of Connection establishment.
9.2.6. Priority and the Transport Services API 9.2.6. Priority and the Transport Services API
The Transport Services API provides two properties to allow a sender The Transport Services API provides two properties to allow a sender
to signal the relative priority of data transmission: msgPriority to signal the relative priority of data transmission: msgPriority
Section 9.1.3.2 and connPriority Section 8.1.2. These properties are Section 9.1.3.2 and connPriority Section 8.1.2. These properties are
designed to allow the expression and implementation of a wide variety designed to allow the expression and implementation of a wide variety
of approaches to transmission priority in the transport and of approaches to transmission priority in the transport and
application layer, including those which do not appear on the wire application layer, including those which do not appear on the wire
(affecting only sender-side transmission scheduling) as well as those (affecting only sender-side transmission scheduling) as well as those
that do (e.g. [RFC9218]. that do (e.g. [RFC9218]. A Transport Services system gives no
guarantees about how its expression of relative priorities will be
realized.
A Transport Services system gives no guarantees about how its
expression of relative priorities will be realized. However, the
Transport Services system will seek to ensure that performance of
relatively-prioritized Connections and Messages is not worse with
respect to those Connections and Messages than an equivalent
configuration in which all prioritization properties are left at
their defaults.
The Transport Services API does order connPriority over msgPriority. The Transport Services API does order connPriority over msgPriority.
In the absence of other externalities (e.g., transport-layer flow In the absence of other externalities (e.g., transport-layer flow
control), a priority 1 Message on a priority 0 Connection will be control), a priority 1 Message on a priority 0 Connection will be
sent before a priority 0 Message on a priority 1 Connection in the sent before a priority 0 Message on a priority 1 Connection in the
same group. same group.
9.3. Receiving Data 9.3. Receiving Data
Once a Connection is established, it can be used for receiving data Once a Connection is established, it can be used for receiving data
(unless the direction property is set to unidirectional send). As (unless the direction property is set to unidirectional send). As
skipping to change at page 70, line 30 skipping to change at page 73, line 18
Receive takes two parameters to specify the length of data that an Receive takes two parameters to specify the length of data that an
application is willing to receive, both of which are optional and application is willing to receive, both of which are optional and
have default values if not specified. have default values if not specified.
Connection.Receive(minIncompleteLength?, maxLength?) Connection.Receive(minIncompleteLength?, maxLength?)
By default, Receive will try to deliver complete Messages in a single By default, Receive will try to deliver complete Messages in a single
event (Section 9.3.2.1). event (Section 9.3.2.1).
The application can set a minIncompleteLength value to indicate the The application can set a minIncompleteLength value to indicate the
smallest partial Message data size in bytes that should be delivered smallest partial Message data size in bytes to be delivered in
in response to this Receive. By default, this value is infinite, response to this Receive. By default, this value is infinite, which
which means that only complete Messages should be delivered (see means that only complete Messages should be delivered (see
Section 9.3.2.2 and Section 9.1.2 for more information on how this is Section 9.3.2.2 and Section 9.1.2 for more information on how this is
accomplished). If this value is set to some smaller value, the accomplished). If this value is set to some smaller value, the
associated receive event will be triggered only when at least that associated receive event will be triggered only when at least that
many bytes are available, or the Message is complete with fewer many bytes are available, or the Message is complete with fewer
bytes, or the system needs to free up memory. Applications should bytes, or the system needs to free up memory. Applications SHOULD
always check the length of the data delivered to the receive event always check the length of the data delivered to the receive event
and not assume it will be as long as minIncompleteLength in the case and not assume it will be as long as minIncompleteLength in the case
of shorter complete Messages or memory issues. of shorter complete Messages or memory issues.
The maxLength argument indicates the maximum size of a Message in The maxLength argument indicates the maximum size of a Message in
bytes that the application is currently prepared to receive. The bytes that the application is currently prepared to receive. The
default value for maxLength is infinite. If an incoming Message is default value for maxLength is infinite. If an incoming Message is
larger than the minimum of this size and the maximum Message size on larger than the minimum of this size and the maximum Message size on
receive for the Connection's Protocol Stack, it will be delivered via receive for the Connection's Protocol Stack, it will be delivered via
ReceivedPartial events (Section 9.3.2.2). ReceivedPartial events (Section 9.3.2.2).
Note that maxLength does not guarantee that the application will Note that maxLength does not guarantee that the application will
receive that many bytes if they are available; the Transport Services receive that many bytes if they are available; the Transport Services
API could return ReceivedPartial events with less data than maxLength API could return ReceivedPartial events with less data than maxLength
according to implementation constraints. Note also that maxLength according to implementation constraints. Note also that maxLength
and minIncompleteLength are intended only to manage buffering, and and minIncompleteLength are intended only to manage buffering, and
are not interpreted as a receiver preference for Message reordering. are not interpreted as a receiver preference for Message reordering.
9.3.2. Receive Events 9.3.2. Receive Events
Each call to Receive will be paired with a single Receive event, Each call to Receive will be paired with a single Receive event.
which can be a success or an error. This allows an application to This allows an application to provide backpressure to the transport
provide backpressure to the transport stack when it is temporarily stack when it is temporarily not ready to receive Messages. For
not ready to receive Messages. example, an application that will later be able to handle multiple
receive events at the same time can make multiple calls to Receive
without waiting for, or processing, any receive events. An
application that is temporarily unable to process received events for
a connection could refrain from calling Receive or delay calling it.
This would lead to a build-up of unread data, which, in turn, could
result in backpressure to the sender via a transport protocol's flow
control.
The Transport Services API should allow the application to correlate The Transport Services API should allow the application to correlate
which call to Receive resulted in a particular Receive event. The which call to Receive resulted in a particular Receive event. The
manner in which this correlation is indicated is implementation- manner in which this correlation is indicated is implementation-
specific. specific.
9.3.2.1. Received 9.3.2.1. Received
Connection -> Received<messageData, messageContext> Connection -> Received<messageData, messageContext>
skipping to change at page 72, line 12 skipping to change at page 75, line 12
continue to receive more of the same Message, the application must continue to receive more of the same Message, the application must
invoke Receive again. invoke Receive again.
Multiple invocations of ReceivedPartial deliver data for the same Multiple invocations of ReceivedPartial deliver data for the same
Message by passing the same MessageContext, until the endOfMessage Message by passing the same MessageContext, until the endOfMessage
flag is delivered or a ReceiveError occurs. All partial blocks of a flag is delivered or a ReceiveError occurs. All partial blocks of a
single Message are delivered in order without gaps. This event does single Message are delivered in order without gaps. This event does
not support delivering non-contiguous partial Messages. If, for not support delivering non-contiguous partial Messages. If, for
example, Message A is divided into three pieces (A1, A2, A3) and example, Message A is divided into three pieces (A1, A2, A3) and
Message B is divided into three pieces (B1, B2, B3), and Message B is divided into three pieces (B1, B2, B3), and
preserveOrder is not Required, the ReceivedPartial may deliver them preserveOrder is not Required, the ReceivedPartial could deliver them
in a sequence like this: A1, B1, B2, A2, A3, B3, because the in a sequence like this: A1, B1, B2, A2, A3, B3, because the
MessageContext allows the application to identify the pieces as MessageContext allows the application to identify the pieces as
belonging to Message A and B, respectively. However, a sequence belonging to Message A and B, respectively. However, a sequence
like: A1, A3 will never occur. like: A1, A3 will never occur.
If the minIncompleteLength in the Receive request was set to be If the minIncompleteLength in the Receive request was set to be
infinite (indicating a request to receive only complete Messages), infinite (indicating a request to receive only complete Messages),
the ReceivedPartial event may still be delivered if one of the the ReceivedPartial event could still be delivered if one of the
following conditions is true: following conditions is true:
* the underlying Protocol Stack supports message boundary * the underlying Protocol Stack supports message boundary
preservation, and the size of the Message is larger than the preservation, and the size of the Message is larger than the
buffers available for a single Message; buffers available for a single Message;
* the underlying Protocol Stack does not support message boundary * the underlying Protocol Stack does not support message boundary
preservation, and the Message Framer (see Section 9.1.2) cannot preservation, and the Message Framer (see Section 9.1.2) cannot
determine the end of the Message using the buffer space it has determine the end of the Message using the buffer space it has
available; or available; or
skipping to change at page 73, line 27 skipping to change at page 76, line 27
9.3.2.3. ReceiveError 9.3.2.3. ReceiveError
Connection -> ReceiveError<messageContext, reason?> Connection -> ReceiveError<messageContext, reason?>
A ReceiveError occurs when data is received by the underlying A ReceiveError occurs when data is received by the underlying
Protocol Stack that cannot be fully retrieved or parsed, and when it Protocol Stack that cannot be fully retrieved or parsed, and when it
is useful for the application to be notified of such errors. For is useful for the application to be notified of such errors. For
example, a ReceiveError can indicate that a Message (identified via example, a ReceiveError can indicate that a Message (identified via
the messageContext value) that was being partially received the messageContext value) that was being partially received
previously, but had not completed, encountered an error and will not previously, but had not completed, encountered an error and will not
be completed. This can be useful for an application, which may want be completed. This can be useful for an application, which might
to use this error as a hint to remove previously received Message wish to use this error as a hint to remove previously received
parts from memory. As another example, if an incoming Message does Message parts from memory. As another example, if an incoming
not fulfill the recvChecksumLen property (see Section 8.1.1), an Message does not fulfill the recvChecksumLen property (see
application can use this error as a hint to inform the peer Section 8.1.1), an application can use this error as a hint to inform
application to adjust the msgChecksumLen property (see the peer application to adjust the msgChecksumLen property (see
Section 9.1.3.6). Section 9.1.3.6).
In contrast, internal protocol reception errors (e.g., loss causing In contrast, internal protocol reception errors (e.g., loss causing
retransmissions in TCP) are not signalled by this event. Conditions retransmissions in TCP) are not signalled by this event. Conditions
that irrevocably lead to the termination of the Connection are that irrevocably lead to the termination of the Connection are
signaled using ConnectionError (see Section 10). signaled using ConnectionError (see Section 10).
9.3.3. Receive Message Properties 9.3.3. Receive Message Properties
Each Message Context may contain metadata from protocols in the Each Message Context could contain metadata from protocols in the
Protocol Stack; which metadata is available is Protocol Stack Protocol Stack; which metadata is available is Protocol Stack
dependent. These are exposed through additional read-only Message dependent. These are exposed through additional read-only Message
Properties that can be queried from the MessageContext object (see Properties that can be queried from the MessageContext object (see
Section 9.1.1) passed by the receive event. The following metadata Section 9.1.1) passed by the receive event. The following metadata
values are supported: values are supported:
9.3.3.1. UDP(-Lite)-specific Property: ECN 9.3.3.1. UDP(-Lite)-specific Property: ECN
When available, Message metadata carries the value of the Explicit When available, Message metadata carries the value of the Explicit
Congestion Notification (ECN) field. This information can be used Congestion Notification (ECN) field. This information can be used
skipping to change at page 74, line 38 skipping to change at page 77, line 38
data is enabled, applications should check this metadata field for data is enabled, applications should check this metadata field for
Messages received during Connection establishment and respond Messages received during Connection establishment and respond
accordingly. accordingly.
9.3.3.3. Receiving Final Messages 9.3.3.3. Receiving Final Messages
The Message Context can indicate whether or not this Message is the The Message Context can indicate whether or not this Message is the
Final Message on a Connection. For any Message that is marked as Final Message on a Connection. For any Message that is marked as
Final, the application can assume that there will be no more Messages Final, the application can assume that there will be no more Messages
received on the Connection once the Message has been completely received on the Connection once the Message has been completely
delivered. This corresponds to the final property that may be marked delivered. This corresponds to the final property that can be marked
on a sent Message, see Section 9.1.3.5. on a sent Message, see Section 9.1.3.5.
Some transport protocols and peers do not support signaling of the Some transport protocols and peers do not support signaling of the
final property. Applications therefore should not rely on receiving final property. Applications therefore SHOULD NOT rely on receiving
a Message marked Final to know that the sending endpoint is done a Message marked Final to know that the sending endpoint is done
sending on a Connection. sending on a Connection.
Any calls to Receive once the Final Message has been delivered will Any calls to Receive once the Final Message has been delivered will
result in errors. result in errors.
10. Connection Termination 10. Connection Termination
A Connection can be terminated i) by the Local Endpoint (i.e., the A Connection can be terminated i) by the Local Endpoint (i.e., the
application calls the Close, CloseGroup, Abort or AbortGroup action), application calls the Close, CloseGroup, Abort or AbortGroup action),
skipping to change at page 75, line 26 skipping to change at page 78, line 26
the Connection to send a ConnectionError event, indicating local the Connection to send a ConnectionError event, indicating local
Abort as a reason, and a local call of the AbortGroup action will Abort as a reason, and a local call of the AbortGroup action will
cause all of the Connections in the group to send a ConnectionError cause all of the Connections in the group to send a ConnectionError
event, indicating local Abort as a reason. event, indicating local Abort as a reason.
Remote action calls map to events similar to local calls (e.g., a Remote action calls map to events similar to local calls (e.g., a
remote Close causes the Connection to either send a Closed event or a remote Close causes the Connection to either send a Closed event or a
ConnectionError event), but, different from local action calls, it is ConnectionError event), but, different from local action calls, it is
not guaranteed that such events will indeed be invoked. When an not guaranteed that such events will indeed be invoked. When an
application needs to free resources associated with a Connection, it application needs to free resources associated with a Connection, it
should therefore not rely on the invocation of such events due to ought not to therefore rely on the invocation of such events due to
termination calls from the Remote Endpoint, but instead use the local termination calls from the Remote Endpoint, but instead use the local
termination actions. termination actions.
Close terminates a Connection after satisfying all the requirements Close terminates a Connection after satisfying all the requirements
that were specified regarding the delivery of Messages that the that were specified regarding the delivery of Messages that the
application has already given to the Transport Services system. Upon application has already given to the Transport Services system. Upon
successfully satisfying all these requirements, the Connection will successfully satisfying all these requirements, the Connection will
send the Closed event. For example, if reliable delivery was send the Closed event. For example, if reliable delivery was
requested for a Message handed over before calling Close, the Closed requested for a Message handed over before calling Close, the Closed
event will signify that this Message has indeed been delivered. This event will signify that this Message has indeed been delivered. This
skipping to change at page 76, line 45 skipping to change at page 79, line 45
Connection -> ConnectionError<reason?> Connection -> ConnectionError<reason?>
11. Connection State and Ordering of Operations and Events 11. Connection State and Ordering of Operations and Events
This Transport Services API is designed to be independent of an This Transport Services API is designed to be independent of an
implementation's concurrency model. The details of how exactly implementation's concurrency model. The details of how exactly
actions are handled, and how events are dispatched, are actions are handled, and how events are dispatched, are
implementation dependent. implementation dependent.
Each transition of Connection state is associated with one of more Some transitions of Connection states are associated with events:
events:
* Ready<> occurs when a Connection created with Initiate or * Ready<> occurs when a Connection created with Initiate or
InitiateWithSend transitions to Established state. InitiateWithSend transitions to Established state.
* ConnectionReceived<> occurs when a Connection created with Listen * ConnectionReceived<> occurs when a Connection created with Listen
transitions to Established state. transitions to Established state.
* RendezvousDone<> occurs when a Connection created with Rendezvous * RendezvousDone<> occurs when a Connection created with Rendezvous
transitions to Established state. transitions to Established state.
skipping to change at page 78, line 15 skipping to change at page 81, line 7
* No events will occur on a Connection after it is closed; i.e., * No events will occur on a Connection after it is closed; i.e.,
after a Closed<> event, an EstablishmentError<> or after a Closed<> event, an EstablishmentError<> or
ConnectionError<> will not occur on that Connection. To ensure ConnectionError<> will not occur on that Connection. To ensure
this ordering, Closed<> will not occur on a Connection while other this ordering, Closed<> will not occur on a Connection while other
events on the Connection are still locally outstanding (i.e., events on the Connection are still locally outstanding (i.e.,
known to the Transport Services API and waiting to be dealt with known to the Transport Services API and waiting to be dealt with
by the application). by the application).
12. IANA Considerations 12. IANA Considerations
RFC-EDITOR: Please remove this section before publication.
This document has no actions for IANA. Later versions of this This document has no actions for IANA. Later versions of this
document may create IANA registries for generic transport property document might create IANA registries for generic transport property
names and transport property namespaces (see Section 4.1). names and transport property namespaces (see Section 4.1).
13. Privacy and Security Considerations 13. Privacy and Security Considerations
This document describes a generic API for interacting with a This document describes a generic API for interacting with a
Transport Services system. Part of this API includes configuration Transport Services system. Part of this API includes configuration
details for transport security protocols, as discussed in details for transport security protocols, as discussed in
Section 6.3. It does not recommend use (or disuse) of specific Section 6.3. It does not recommend use (or disuse) of specific
algorithms or protocols. Any API-compatible transport security algorithms or protocols. Any API-compatible transport security
protocol ought to work in a Transport Services system. Security protocol ought to work in a Transport Services system. Security
considerations for these protocols are discussed in the respective considerations for these protocols are discussed in the respective
specifications. specifications.
The described API is used to exchange information between an The described API is used to exchange information between an
application and the Transport Services system. While it is not application and the Transport Services system. While it is not
necessarily expected that both systems are implemented by the same necessarily expected that both systems are implemented by the same
authority, it is expected that the Transport Services implementation authority, it is expected that the Transport Services Implementation
is either provided as a library that is selected by the application is either provided as a library that is selected by the application
from a trusted party, or that it is part of the operating system that from a trusted party, or that it is part of the operating system that
the application also relies on for other tasks. the application also relies on for other tasks.
In either case, the Transport Services API is an internal interface In either case, the Transport Services API is an internal interface
that is used to exchange information locally between two systems. that is used to exchange information locally between two systems.
However, as the Transport Services system is responsible for network However, as the Transport Services system is responsible for network
communication, it is in the position to potentially share any communication, it is in the position to potentially share any
information provided by the application with the network or another information provided by the application with the network or another
communication peer. Most of the information provided over the communication peer. Most of the information provided over the
Transport Services API are useful to configure and select protocols Transport Services API are useful to configure and select protocols
and paths and are not necessarily privacy sensitive. Still, some and paths and are not necessarily privacy-sensitive. Still, some
information could be privacy sensitive because it might reveal usage information could be privacy sensitive because it might reveal usage
characteristics and habits of the user of an application. characteristics and habits of the user of an application.
Of course any communication over a network reveals usage Of course any communication over a network reveals usage
characteristics, because all packets, as well as their timing and characteristics, because all packets, as well as their timing and
size, are part of the network-visible wire image [RFC8546]. However, size, are part of the network-visible wire image [RFC8546]. However,
the selection of a protocol and its configuration also impacts which the selection of a protocol and its configuration also impacts which
information is visible, potentially in clear text, and which other information is visible, potentially in clear text, and which other
entities can access it. In most cases, information provided for entities can access it. How Transport Services systems ought to
protocol and path selection should not directly translate to choose protocols depending on the security properties required is out
information that can be observed by network devices on the path. of scope of this specification, as it is limited to transport
However, there might be specific configuration information that is protocols. The choice of a security protocol can be informed by the
intended for path exposure, e.g., a DiffServ codepoint setting, that survey provided in [RFC8922].
is either provided directly by the application or indirectly
configured for a traffic profile.
In most cases, information provided for protocol and path selection
does not directly translate to information that can be observed by
network devices on the path. However, there might be specific
configuration information that is intended for path exposure, e.g., a
DiffServ codepoint setting, that is either provided directly by the
application or indirectly configured for a traffic profile.
Applications should be aware that a single communication attempt can Applications should be aware that a single communication attempt can
lead to more than one connection establishment procedure. This is lead to more than one connection establishment procedure. This is
the case, for example, when the Transport Services system also the case, for example, when the Transport Services system also
executes name resolution, when support mechanisms such as TURN or ICE executes name resolution, when support mechanisms such as TURN or ICE
are used to establish connectivity, if protocols or paths are raced, are used to establish connectivity, if protocols or paths are raced,
or if a path fails and fallback or re-establishment is supported in or if a path fails and fallback or re-establishment is supported in
the Transport Services system. Applications should take special care the Transport Services system. Applications should take special care
when using 0-RTT session resumption (see Section 6.2.5), as early when using 0-RTT session resumption (see Section 6.2.5), as early
data sent across multiple paths during connection establishment may data sent across multiple paths during connection establishment could
reveal information that can be used to correlate endpoints on these reveal information that can be used to correlate endpoints on these
paths. paths.
Applications should also take care to not assume that all data Applications should also take care to not assume that all data
received using the Transport Services API is always complete or well- received using the Transport Services API is always complete or well-
formed. Specifically, Messages that are received partially formed. Specifically, Messages that are received partially
Section 9.3.2.2 could be a source of truncation attacks if Section 9.3.2.2 could be a source of truncation attacks if
applications do not distinguish between partial Messages and complete applications do not distinguish between partial Messages and complete
Messages. Messages.
The Transport Services API explicitly does not require the The Transport Services API explicitly does not require the
application to resolve names, though there is a tradeoff between application to resolve names, though there is a tradeoff between
early and late binding of addresses to names. Early binding allows early and late binding of addresses to names. Early binding allows
the Transport Services implementation to reduce Connection setup the Transport Services Implementation to reduce Connection setup
latency, at the cost of potentially limited scope for alternate path latency, at the cost of potentially limited scope for alternate path
discovery during Connection establishment, as well as potential discovery during Connection establishment, as well as potential
additional information leakage about application interest when used additional information leakage about application interest when used
with a resolution method (such as DNS without TLS) which does not with a resolution method (such as DNS without TLS) which does not
protect query confidentiality. protect query confidentiality.
These communication activities are not different from what is used These communication activities are not different from what is used
today. However, the goal of a Transport Services system is to today. However, the goal of a Transport Services system is to
support such mechanisms as a generic service within the transport support such mechanisms as a generic service within the transport
layer. This enables applications to more dynamically benefit from layer. This enables applications to more dynamically benefit from
innovations and new protocols in the transport, although it reduces innovations and new protocols in the transport, although it reduces
transparency of the underlying communication actions to the transparency of the underlying communication actions to the
application itself. The Transport Services API is designed such that application itself. The Transport Services API is designed such that
protocol and path selection can be limited to a small and controlled protocol and path selection can be limited to a small and controlled
set if required by the application for functional or security set if the application requires this or to implement a security
purposes. Further, introspection on the properties of Connection policy. can be limited to a small and controlled set if required by
objects allows an application to determine whith protocol(s) and the application to perform a function or to provide security.
path(s) are in use. A Tranport Services system SHOULD provide a Further, introspection on the properties of Connection objects allows
facility logging the communication events of each Connection. an application to determine which protocol(s) and path(s) are in use.
A Transport Services system SHOULD provide a facility logging the
communication events of each Connection.
14. Acknowledgements 14. Acknowledgments
This work has received funding from the European Union's Horizon 2020 This work has received funding from the European Union's Horizon 2020
research and innovation programme under grant agreements No. 644334 research and innovation programme under grant agreements No. 644334
(NEAT) and No. 688421 (MAMI). (NEAT) and No. 688421 (MAMI).
This work has been supported by Leibniz Prize project funds of DFG - This work has been supported by Leibniz Prize project funds of DFG -
German Research Foundation: Gottfried Wilhelm Leibniz-Preis 2011 (FKZ German Research Foundation: Gottfried Wilhelm Leibniz-Preis 2011 (FKZ
FE 570/4-1). FE 570/4-1).
This work has been supported by the UK Engineering and Physical This work has been supported by the UK Engineering and Physical
skipping to change at page 80, line 40 skipping to change at page 83, line 36
Eyeballs, that heavily influenced this work. Thanks to Laurent Chuat Eyeballs, that heavily influenced this work. Thanks to Laurent Chuat
and Jason Lee for initial work on the Post Sockets interface, from and Jason Lee for initial work on the Post Sockets interface, from
which this work has evolved. Thanks to Maximilian Franke for asking which this work has evolved. Thanks to Maximilian Franke for asking
good questions based on implementation experience and for good questions based on implementation experience and for
contributing text, e.g., on multicast. contributing text, e.g., on multicast.
15. References 15. References
15.1. Normative References 15.1. Normative References
[ALPN] Friedl, S., Popov, A., Langley, A., and E. Stephan,
"Transport Layer Security (TLS) Application-Layer Protocol
Negotiation Extension", RFC 7301, DOI 10.17487/RFC7301,
July 2014, <https://www.rfc-editor.org/rfc/rfc7301>.
[I-D.ietf-taps-arch] [I-D.ietf-taps-arch]
Pauly, T., Trammell, B., Brunstrom, A., Fairhurst, G., and Pauly, T., Trammell, B., Brunstrom, A., Fairhurst, G., and
C. Perkins, "An Architecture for Transport Services", Work C. Perkins, "Architecture and Requirements for Transport
in Progress, Internet-Draft, draft-ietf-taps-arch-18, 30 Services", Work in Progress, Internet-Draft, draft-ietf-
May 2023, <https://datatracker.ietf.org/doc/html/draft- taps-arch-19, 9 November 2023,
ietf-taps-arch-18>. <https://datatracker.ietf.org/doc/html/draft-ietf-taps-
arch-19>.
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119, Requirement Levels", BCP 14, RFC 2119,
DOI 10.17487/RFC2119, March 1997, DOI 10.17487/RFC2119, March 1997,
<https://www.rfc-editor.org/rfc/rfc2119>. <https://www.rfc-editor.org/rfc/rfc2119>.
[RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC
2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174,
May 2017, <https://www.rfc-editor.org/rfc/rfc8174>. May 2017, <https://www.rfc-editor.org/rfc/rfc8174>.
15.2. Informative References 15.2. Informative References
[I-D.ietf-taps-impl] [I-D.ietf-taps-impl]
Brunstrom, A., Pauly, T., Enghardt, R., Tiesel, P. S., and Brunstrom, A., Pauly, T., Enghardt, R., Tiesel, P. S., and
M. Welzl, "Implementing Interfaces to Transport Services", M. Welzl, "Implementing Interfaces to Transport Services",
Work in Progress, Internet-Draft, draft-ietf-taps-impl-16, Work in Progress, Internet-Draft, draft-ietf-taps-impl-17,
5 June 2023, <https://datatracker.ietf.org/doc/html/draft- 9 November 2023, <https://datatracker.ietf.org/doc/html/
ietf-taps-impl-16>. draft-ietf-taps-impl-17>.
[RFC2474] Nichols, K., Blake, S., Baker, F., and D. Black, [RFC2474] Nichols, K., Blake, S., Baker, F., and D. Black,
"Definition of the Differentiated Services Field (DS "Definition of the Differentiated Services Field (DS
Field) in the IPv4 and IPv6 Headers", RFC 2474, Field) in the IPv4 and IPv6 Headers", RFC 2474,
DOI 10.17487/RFC2474, December 1998, DOI 10.17487/RFC2474, December 1998,
<https://www.rfc-editor.org/rfc/rfc2474>. <https://www.rfc-editor.org/rfc/rfc2474>.
[RFC2597] Heinanen, J., Baker, F., Weiss, W., and J. Wroclawski, [RFC2597] Heinanen, J., Baker, F., Weiss, W., and J. Wroclawski,
"Assured Forwarding PHB Group", RFC 2597, "Assured Forwarding PHB Group", RFC 2597,
DOI 10.17487/RFC2597, June 1999, DOI 10.17487/RFC2597, June 1999,
skipping to change at page 82, line 20 skipping to change at page 85, line 25
[RFC5482] Eggert, L. and F. Gont, "TCP User Timeout Option", [RFC5482] Eggert, L. and F. Gont, "TCP User Timeout Option",
RFC 5482, DOI 10.17487/RFC5482, March 2009, RFC 5482, DOI 10.17487/RFC5482, March 2009,
<https://www.rfc-editor.org/rfc/rfc5482>. <https://www.rfc-editor.org/rfc/rfc5482>.
[RFC5865] Baker, F., Polk, J., and M. Dolly, "A Differentiated [RFC5865] Baker, F., Polk, J., and M. Dolly, "A Differentiated
Services Code Point (DSCP) for Capacity-Admitted Traffic", Services Code Point (DSCP) for Capacity-Admitted Traffic",
RFC 5865, DOI 10.17487/RFC5865, May 2010, RFC 5865, DOI 10.17487/RFC5865, May 2010,
<https://www.rfc-editor.org/rfc/rfc5865>. <https://www.rfc-editor.org/rfc/rfc5865>.
[RFC5952] Kawamura, S. and M. Kawashima, "A Recommendation for IPv6
Address Text Representation", RFC 5952,
DOI 10.17487/RFC5952, August 2010,
<https://www.rfc-editor.org/rfc/rfc5952>.
[RFC7478] Holmberg, C., Hakansson, S., and G. Eriksson, "Web Real- [RFC7478] Holmberg, C., Hakansson, S., and G. Eriksson, "Web Real-
Time Communication Use Cases and Requirements", RFC 7478, Time Communication Use Cases and Requirements", RFC 7478,
DOI 10.17487/RFC7478, March 2015, DOI 10.17487/RFC7478, March 2015,
<https://www.rfc-editor.org/rfc/rfc7478>. <https://www.rfc-editor.org/rfc/rfc7478>.
[RFC7556] Anipko, D., Ed., "Multiple Provisioning Domain [RFC7556] Anipko, D., Ed., "Multiple Provisioning Domain
Architecture", RFC 7556, DOI 10.17487/RFC7556, June 2015, Architecture", RFC 7556, DOI 10.17487/RFC7556, June 2015,
<https://www.rfc-editor.org/rfc/rfc7556>. <https://www.rfc-editor.org/rfc/rfc7556>.
[RFC7657] Black, D., Ed. and P. Jones, "Differentiated Services [RFC7657] Black, D., Ed. and P. Jones, "Differentiated Services
skipping to change at page 82, line 48 skipping to change at page 86, line 11
[RFC8085] Eggert, L., Fairhurst, G., and G. Shepherd, "UDP Usage [RFC8085] Eggert, L., Fairhurst, G., and G. Shepherd, "UDP Usage
Guidelines", BCP 145, RFC 8085, DOI 10.17487/RFC8085, Guidelines", BCP 145, RFC 8085, DOI 10.17487/RFC8085,
March 2017, <https://www.rfc-editor.org/rfc/rfc8085>. March 2017, <https://www.rfc-editor.org/rfc/rfc8085>.
[RFC8095] Fairhurst, G., Ed., Trammell, B., Ed., and M. Kuehlewind, [RFC8095] Fairhurst, G., Ed., Trammell, B., Ed., and M. Kuehlewind,
Ed., "Services Provided by IETF Transport Protocols and Ed., "Services Provided by IETF Transport Protocols and
Congestion Control Mechanisms", RFC 8095, Congestion Control Mechanisms", RFC 8095,
DOI 10.17487/RFC8095, March 2017, DOI 10.17487/RFC8095, March 2017,
<https://www.rfc-editor.org/rfc/rfc8095>. <https://www.rfc-editor.org/rfc/rfc8095>.
[RFC8229] Pauly, T., Touati, S., and R. Mantha, "TCP Encapsulation
of IKE and IPsec Packets", RFC 8229, DOI 10.17487/RFC8229,
August 2017, <https://www.rfc-editor.org/rfc/rfc8229>.
[RFC8260] Stewart, R., Tuexen, M., Loreto, S., and R. Seggelmann, [RFC8260] Stewart, R., Tuexen, M., Loreto, S., and R. Seggelmann,
"Stream Schedulers and User Message Interleaving for the "Stream Schedulers and User Message Interleaving for the
Stream Control Transmission Protocol", RFC 8260, Stream Control Transmission Protocol", RFC 8260,
DOI 10.17487/RFC8260, November 2017, DOI 10.17487/RFC8260, November 2017,
<https://www.rfc-editor.org/rfc/rfc8260>. <https://www.rfc-editor.org/rfc/rfc8260>.
[RFC8293] Ghanwani, A., Dunbar, L., McBride, M., Bannai, V., and R. [RFC8293] Ghanwani, A., Dunbar, L., McBride, M., Bannai, V., and R.
Krishnan, "A Framework for Multicast in Network Krishnan, "A Framework for Multicast in Network
Virtualization over Layer 3", RFC 8293, Virtualization over Layer 3", RFC 8293,
DOI 10.17487/RFC8293, January 2018, DOI 10.17487/RFC8293, January 2018,
skipping to change at page 84, line 9 skipping to change at page 87, line 15
[RFC8656] Reddy, T., Ed., Johnston, A., Ed., Matthews, P., and J. [RFC8656] Reddy, T., Ed., Johnston, A., Ed., Matthews, P., and J.
Rosenberg, "Traversal Using Relays around NAT (TURN): Rosenberg, "Traversal Using Relays around NAT (TURN):
Relay Extensions to Session Traversal Utilities for NAT Relay Extensions to Session Traversal Utilities for NAT
(STUN)", RFC 8656, DOI 10.17487/RFC8656, February 2020, (STUN)", RFC 8656, DOI 10.17487/RFC8656, February 2020,
<https://www.rfc-editor.org/rfc/rfc8656>. <https://www.rfc-editor.org/rfc/rfc8656>.
[RFC8699] Islam, S., Welzl, M., and S. Gjessing, "Coupled Congestion [RFC8699] Islam, S., Welzl, M., and S. Gjessing, "Coupled Congestion
Control for RTP Media", RFC 8699, DOI 10.17487/RFC8699, Control for RTP Media", RFC 8699, DOI 10.17487/RFC8699,
January 2020, <https://www.rfc-editor.org/rfc/rfc8699>. January 2020, <https://www.rfc-editor.org/rfc/rfc8699>.
[RFC8801] Pfister, P., Vyncke, É., Pauly, T., Schinazi, D., and W.
Shao, "Discovering Provisioning Domain Names and Data",
RFC 8801, DOI 10.17487/RFC8801, July 2020,
<https://www.rfc-editor.org/rfc/rfc8801>.
[RFC8838] Ivov, E., Uberti, J., and P. Saint-Andre, "Trickle ICE: [RFC8838] Ivov, E., Uberti, J., and P. Saint-Andre, "Trickle ICE:
Incremental Provisioning of Candidates for the Interactive Incremental Provisioning of Candidates for the Interactive
Connectivity Establishment (ICE) Protocol", RFC 8838, Connectivity Establishment (ICE) Protocol", RFC 8838,
DOI 10.17487/RFC8838, January 2021, DOI 10.17487/RFC8838, January 2021,
<https://www.rfc-editor.org/rfc/rfc8838>. <https://www.rfc-editor.org/rfc/rfc8838>.
[RFC8899] Fairhurst, G., Jones, T., Tüxen, M., Rüngeler, I., and T. [RFC8899] Fairhurst, G., Jones, T., Tüxen, M., Rüngeler, I., and T.
Völker, "Packetization Layer Path MTU Discovery for Völker, "Packetization Layer Path MTU Discovery for
Datagram Transports", RFC 8899, DOI 10.17487/RFC8899, Datagram Transports", RFC 8899, DOI 10.17487/RFC8899,
September 2020, <https://www.rfc-editor.org/rfc/rfc8899>. September 2020, <https://www.rfc-editor.org/rfc/rfc8899>.
skipping to change at page 84, line 40 skipping to change at page 88, line 5
[RFC8981] Gont, F., Krishnan, S., Narten, T., and R. Draves, [RFC8981] Gont, F., Krishnan, S., Narten, T., and R. Draves,
"Temporary Address Extensions for Stateless Address "Temporary Address Extensions for Stateless Address
Autoconfiguration in IPv6", RFC 8981, Autoconfiguration in IPv6", RFC 8981,
DOI 10.17487/RFC8981, February 2021, DOI 10.17487/RFC8981, February 2021,
<https://www.rfc-editor.org/rfc/rfc8981>. <https://www.rfc-editor.org/rfc/rfc8981>.
[RFC9218] Oku, K. and L. Pardue, "Extensible Prioritization Scheme [RFC9218] Oku, K. and L. Pardue, "Extensible Prioritization Scheme
for HTTP", RFC 9218, DOI 10.17487/RFC9218, June 2022, for HTTP", RFC 9218, DOI 10.17487/RFC9218, June 2022,
<https://www.rfc-editor.org/rfc/rfc9218>. <https://www.rfc-editor.org/rfc/rfc9218>.
[RFC9329] Pauly, T. and V. Smyslov, "TCP Encapsulation of Internet
Key Exchange Protocol (IKE) and IPsec Packets", RFC 9329,
DOI 10.17487/RFC9329, November 2022,
<https://www.rfc-editor.org/rfc/rfc9329>.
[TCP-COUPLING] [TCP-COUPLING]
Islam, S., Welzl, M., Hiorth, K., Hayes, D., Armitage, G., Islam, S., Welzl, M., Hiorth, K., Hayes, D., Armitage, G.,
and S. Gjessing, "ctrlTCP: Reducing Latency through and S. Gjessing, "ctrlTCP: Reducing Latency through
Coupled, Heterogeneous Multi-Flow TCP Congestion Control", Coupled, Heterogeneous Multi-Flow TCP Congestion Control",
IEEE INFOCOM Global Internet Symposium (GI) workshop (GI IEEE INFOCOM Global Internet Symposium (GI) workshop (GI
2018) , 2018. 2018) , 2018.
Appendix A. Implementation Mapping Appendix A. Implementation Mapping
The way the concepts from this abstract API map into concrete APIs in The way the concepts from this abstract API map into concrete APIs in
skipping to change at page 85, line 26 skipping to change at page 88, line 38
The basic types mentioned in Section 1.1 typically have natural The basic types mentioned in Section 1.1 typically have natural
correspondences in practical programming languages, perhaps correspondences in practical programming languages, perhaps
constrained by implementation-specific limitations. For example: constrained by implementation-specific limitations. For example:
* An Integer can typically be represented in C by an int or long, * An Integer can typically be represented in C by an int or long,
subject to the underlying platform's ranges for each. subject to the underlying platform's ranges for each.
* In C, a Tuple may be represented as a struct with one member for * In C, a Tuple may be represented as a struct with one member for
each of the value types in the ordered grouping. In Python, by each of the value types in the ordered grouping. In Python, by
contrast, a Tuple may be represented natively as a tuple, a contrast, a Tuple may be represented as a tuple, a sequence of
sequence of dynamically-typed elements. dynamically-typed elements.
* A Collection may be represented as a std::set in C++ or as a set * A Set may be represented as a std::set in C++ or as a set in
in Python. In C, it may be represented as an array or as a Python. In C, it may be represented as an array or as a higher-
higher-level data structure with appropriate accessors defined. level data structure with appropriate accessors defined.
The objects described in Section 1.1 can similarly be represented in The objects described in Section 1.1 can similarly be represented in
different ways depending on which programming language is used. different ways depending on which programming language is used.
Objects like Preconnections, Connections, and Listeners can be long- Objects like Preconnections, Connections, and Listeners can be long-
lived, and benefit from using object-oriented constructs. Note that lived, and benefit from using object-oriented constructs. Note that
in C, these objects may need to provide a way to release or free in C, these objects may need to provide a way to release or free
their underlying memory when the application is done using them. For their underlying memory when the application is done using them. For
example, since a Preconnection can be used to initiate multiple example, since a Preconnection can be used to initiate multiple
Connections, it is the responsibility of the application to clean up Connections, it is the responsibility of the application to clean up
the Preconnection memory if necessary. the Preconnection memory if necessary.
skipping to change at page 86, line 24 skipping to change at page 89, line 45
B.1. Adding Preference Properties B.1. Adding Preference Properties
TransportProperties will frequently need to set Selection Properties TransportProperties will frequently need to set Selection Properties
of type Preference, therefore implementations can provide special of type Preference, therefore implementations can provide special
actions for adding each preference level i.e, actions for adding each preference level i.e,
TransportProperties.Set(some_property, avoid) is equivalent TransportProperties.Set(some_property, avoid) is equivalent
toTransportProperties.Avoid(some_property)`: toTransportProperties.Avoid(some_property)`:
TransportProperties.Require(property) TransportProperties.Require(property)
TransportProperties.Prefer(property) TransportProperties.Prefer(property)
TransportProperties.Ignore(property) TransportProperties.NoPreference(property)
TransportProperties.Avoid(property) TransportProperties.Avoid(property)
TransportProperties.Prohibit(property) TransportProperties.Prohibit(property)
B.2. Transport Property Profiles B.2. Transport Property Profiles
To ease the use of the Transport Services API, implementations can To ease the use of the Transport Services API, implementations can
provide a mechanism to create Transport Property objects (see provide a mechanism to create Transport Property objects (see
Section 6.2) that are pre-configured with frequently used sets of Section 6.2) that are preconfigured with frequently used sets of
properties; the following are in common use in current applications: properties; the following are in common use in current applications:
B.2.1. reliable-inorder-stream B.2.1. reliable-inorder-stream
This profile provides reliable, in-order transport service with This profile provides reliable, in-order transport service with
congestion control. TCP is an example of a protocol that provides congestion control. TCP is an example of a protocol that provides
this service. It should consist of the following properties: this service. It should consist of the following properties:
+=======================+=========+ +=======================+===============+
| Property | Value | | Property | Value |
+=======================+=========+ +=======================+===============+
| reliability | require | | reliability | require |
+-----------------------+---------+ +-----------------------+---------------+
| preserveOrder | require | | preserveOrder | require |
+-----------------------+---------+ +-----------------------+---------------+
| congestionControl | require | | congestionControl | require |
+-----------------------+---------+ +-----------------------+---------------+
| preserveMsgBoundaries | ignore | | preserveMsgBoundaries | no preference |
+-----------------------+---------+ +-----------------------+---------------+
Table 2: reliable-inorder- Table 2: reliable-inorder-stream
stream preferences preferences
B.2.2. reliable-message B.2.2. reliable-message
This profile provides message-preserving, reliable, in-order This profile provides message-preserving, reliable, in-order
transport service with congestion control. SCTP is an example of a transport service with congestion control. SCTP is an example of a
protocol that provides this service. It should consist of the protocol that provides this service. It should consist of the
following properties: following properties:
+=======================+=========+ +=======================+=========+
| Property | Value | | Property | Value |
skipping to change at page 88, line 5 skipping to change at page 91, line 26
Table 3: reliable-message Table 3: reliable-message
preferences preferences
B.2.3. unreliable-datagram B.2.3. unreliable-datagram
This profile provides a datagram transport service without any This profile provides a datagram transport service without any
reliability guarantee. An example of a protocol that provides this reliability guarantee. An example of a protocol that provides this
service is UDP. It consists of the following properties: service is UDP. It consists of the following properties:
+=======================+=========+ +=======================+===============+
| Property | Value | | Property | Value |
+=======================+=========+ +=======================+===============+
| reliability | avoid | | reliability | avoid |
+-----------------------+---------+ +-----------------------+---------------+
| preserveOrder | avoid | | preserveOrder | avoid |
+-----------------------+---------+ +-----------------------+---------------+
| congestionControl | ignore | | congestionControl | no preference |
+-----------------------+---------+ +-----------------------+---------------+
| preserveMsgBoundaries | require | | preserveMsgBoundaries | require |
+-----------------------+---------+ +-----------------------+---------------+
| safelyReplayable | true | | safelyReplayable | true |
+-----------------------+---------+ +-----------------------+---------------+
Table 4: unreliable-datagram Table 4: unreliable-datagram preferences
preferences
Applications that choose this Transport Property Profile would avoid Applications that choose this Transport Property Profile would avoid
the additional latency that could be introduced by retransmission or the additional latency that could be introduced by retransmission or
reordering in a transport protocol. reordering in a transport protocol.
Applications that choose this Transport Property Profile to reduce Applications that choose this Transport Property Profile to reduce
latency should also consider setting an appropriate capacity profile latency should also consider setting an appropriate capacity profile
Property, see Section 8.1.6 and might benefit from controlling Property, see Section 8.1.6 and might benefit from controlling
checksum coverage, see Section 6.2.7 and Section 6.2.8. checksum coverage, see Section 6.2.7 and Section 6.2.8.
skipping to change at page 88, line 46 skipping to change at page 92, line 20
transport features of TCP, MPTCP, UDP, UDP-Lite, SCTP and LEDBAT transport features of TCP, MPTCP, UDP, UDP-Lite, SCTP and LEDBAT
available that 1) require interaction with the application, and 2) do available that 1) require interaction with the application, and 2) do
not get in the way of a possible implementation over TCP (or, with not get in the way of a possible implementation over TCP (or, with
limitations, UDP). The following text explains how this minimal set limitations, UDP). The following text explains how this minimal set
is reflected in the present API. For brevity, it is based on the is reflected in the present API. For brevity, it is based on the
list in Section 4.1 of [RFC8923], updated according to the discussion list in Section 4.1 of [RFC8923], updated according to the discussion
in Section 5 of [RFC8923]. The present API covers all elements of in Section 5 of [RFC8923]. The present API covers all elements of
this section. This list is a subset of the transport features in this section. This list is a subset of the transport features in
Appendix A of [RFC8923], which refers to the primitives in "pass 2" Appendix A of [RFC8923], which refers to the primitives in "pass 2"
(Section 4) of [RFC8303] for further details on the implementation (Section 4) of [RFC8303] for further details on the implementation
with TCP, MPTCP, UDP, UDP-Lite, SCTP and LEDBAT. with TCP, MPTCP, UDP, UDP-Lite, SCTP and LEDBAT. This facilitates
finding the specifications for implementing the services listed below
with these protocols.
* Connect: Initiate action (Section 7.1). * Connect: Initiate action (Section 7.1).
* Listen: Listen action (Section 7.2). * Listen: Listen action (Section 7.2).
* Specify number of attempts and/or timeout for the first * Specify number of attempts and/or timeout for the first
establishment Message: timeout parameter of Initiate (Section 7.1) establishment Message: timeout parameter of Initiate (Section 7.1)
or InitiateWithSend action (Section 9.2.5). or InitiateWithSend action (Section 9.2.5).
* Disable MPTCP: multipath property (Section 6.2.14). * Disable MPTCP: multipath property (Section 6.2.14).
skipping to change at page 89, line 47 skipping to change at page 93, line 21
* "Specify minimum checksum coverage required by receiver" and * "Specify minimum checksum coverage required by receiver" and
"Disable checksum requirement when receiving": recvChecksumLen "Disable checksum requirement when receiving": recvChecksumLen
property (Section 8.1.1) and fullChecksumRecv property property (Section 8.1.1) and fullChecksumRecv property
(Section 6.2.8). (Section 6.2.8).
* "Specify DF field": noFragmentation property (Section 9.1.3.9). * "Specify DF field": noFragmentation property (Section 9.1.3.9).
* Get max. transport-message size that may be sent using a non- * Get max. transport-message size that may be sent using a non-
fragmented IP packet from the configured interface: fragmented IP packet from the configured interface:
singularTransmissionMsgMaxLen property (Section 8.1.11.1). singularTransmissionMsgMaxLen property (Section 8.1.11.4).
* Get max. transport-message size that may be received from the * Get max. transport-message size that may be received from the
configured interface: recvMsgMaxLen property (Section 8.1.11.3). configured interface: recvMsgMaxLen property (Section 8.1.11.6).
* Obtain ECN field: This is a read-only Message Property of the * Obtain ECN field: This is a read-only Message Property of the
MessageContext object (see "UDP(-Lite)-specific Property: ECN" MessageContext object (see "UDP(-Lite)-specific Property: ECN"
Section 9.3.3.1). Section 9.3.3.1).
* "Specify DSCP field", "Disable Nagle algorithm", "Enable and * "Specify DSCP field", "Disable Nagle algorithm", "Enable and
configure a Low Extra Delay Background Transfer": as suggested in configure a Low Extra Delay Background Transfer": as suggested in
Section 5.5 of [RFC8923], these transport features are Section 5.5 of [RFC8923], these transport features are
collectively offered via the connCapacityProfile property collectively offered via the connCapacityProfile property
(Section 8.1.6). Per-Message control ("Request not to bundle (Section 8.1.6). Per-Message control ("Request not to bundle
skipping to change at page 91, line 5 skipping to change at page 94, line 24
* Configurable Message Reliability: the msgLifetime Message Property * Configurable Message Reliability: the msgLifetime Message Property
implements a time-based way to configure message reliability implements a time-based way to configure message reliability
(Section 9.1.3.1). (Section 9.1.3.1).
* "Ordered message delivery (potentially slower than unordered)" and * "Ordered message delivery (potentially slower than unordered)" and
"Unordered message delivery (potentially faster than ordered)": "Unordered message delivery (potentially faster than ordered)":
these two transport features are controlled via the Message these two transport features are controlled via the Message
Property msgOrdered (Section 9.1.3.3). Property msgOrdered (Section 9.1.3.3).
* Request not to delay the acknowledgement (SACK) of a message: * Request not to delay the acknowledgment (SACK) of a message:
should the protocol support it, this is one of the transport should the protocol support it, this is one of the transport
features the Transport Services system can apply when an features the Transport Services system can apply when an
application uses the connCapacityProfile Property (Section 8.1.6) application uses the connCapacityProfile Property (Section 8.1.6)
or the msgCapacityProfile Message Property (Section 9.1.3.8) with or the msgCapacityProfile Message Property (Section 9.1.3.8) with
value Low Latency/Interactive. value Low Latency/Interactive.
* Receive data (with no message delimiting): Receive action * Receive data (with no message delimiting): Receive action
(Section 9.3) and Received event (Section 9.3.2.1). (Section 9.3.1) and Received event (Section 9.3.2.1).
* Receive a message: Receive action (Section 9.3) and Received event * Receive a message: Receive action (Section 9.3.1) and Received
(Section 9.3.2.1), using Message Framers (Section 9.1.2). event (Section 9.3.2.1), using Message Framers (Section 9.1.2).
* Information about partial message arrival: Receive action * Information about partial message arrival: Receive action
(Section 9.3) and ReceivedPartial event (Section 9.3.2.2). (Section 9.3.1) and ReceivedPartial event (Section 9.3.2.2).
* Notification of send failures: Expired event (Section 9.2.2.2) and * Notification of send failures: Expired event (Section 9.2.2.2) and
SendError event (Section 9.2.2.3). SendError event (Section 9.2.2.3).
* Notification that the stack has no more user data to send: * Notification that the stack has no more user data to send:
applications can obtain this information via the Sent event applications can obtain this information via the Sent event
(Section 9.2.2.1). (Section 9.2.2.1).
* Notification to a receiver that a partial message delivery has * Notification to a receiver that a partial message delivery has
been aborted: ReceiveError event (Section 9.3.2.3). been aborted: ReceiveError event (Section 9.3.2.3).
 End of changes. 265 change blocks. 
605 lines changed or deleted 791 lines changed or added

This html diff was produced by rfcdiff 1.46. The latest version is available from http://tools.ietf.org/tools/rfcdiff/