| draft-ietf-taps-interface-21.txt | draft-ietf-taps-interface-22.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: 1 December 2023 University of Oslo | Expires: 7 January 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. | |||
| 30 May 2023 | 6 July 2023 | |||
| An Abstract Application Layer Interface to Transport Services | An Abstract Application Layer Interface to Transport Services | |||
| draft-ietf-taps-interface-21 | draft-ietf-taps-interface-22 | |||
| 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 | |||
| skipping to change at page 2, line 10 ¶ | skipping to change at page 2, line 10 ¶ | |||
| 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 1 December 2023. | This Internet-Draft will expire on 7 January 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 46 ¶ | skipping to change at page 2, line 46 ¶ | |||
| 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 . . . . . . . . . . . . . . . . . 15 | |||
| 6. Pre-Establishment Phase . . . . . . . . . . . . . . . . . . . 16 | 6. Pre-Establishment Phase . . . . . . . . . . . . . . . . . . . 16 | |||
| 6.1. Specifying Endpoints . . . . . . . . . . . . . . . . . . 17 | 6.1. Specifying Endpoints . . . . . . . . . . . . . . . . . . 17 | |||
| 6.1.1. Using Multicast Endpoints . . . . . . . . . . . . . . 19 | 6.1.1. Using Multicast Endpoints . . . . . . . . . . . . . . 19 | |||
| 6.1.2. Constraining Interfaces for Endpoints . . . . . . . . 20 | 6.1.2. Constraining Interfaces for Endpoints . . . . . . . . 20 | |||
| 6.1.3. Endpoint Aliases . . . . . . . . . . . . . . . . . . 21 | 6.1.3. Endpoint Aliases . . . . . . . . . . . . . . . . . . 21 | |||
| 6.1.4. Endpoint Examples . . . . . . . . . . . . . . . . . . 21 | 6.1.4. Endpoint Examples . . . . . . . . . . . . . . . . . . 22 | |||
| 6.1.5. Multicast Examples . . . . . . . . . . . . . . . . . 22 | 6.1.5. Multicast Examples . . . . . . . . . . . . . . . . . 22 | |||
| 6.2. Specifying Transport Properties . . . . . . . . . . . . . 25 | 6.2. Specifying Transport Properties . . . . . . . . . . . . . 25 | |||
| 6.2.1. Reliable Data Transfer (Connection) . . . . . . . . . 28 | 6.2.1. Reliable Data Transfer (Connection) . . . . . . . . . 28 | |||
| 6.2.2. Preservation of Message Boundaries . . . . . . . . . 28 | 6.2.2. Preservation of Message Boundaries . . . . . . . . . 28 | |||
| 6.2.3. Configure Per-Message Reliability . . . . . . . . . . 28 | 6.2.3. Configure Per-Message Reliability . . . . . . . . . . 28 | |||
| 6.2.4. Preservation of Data Ordering . . . . . . . . . . . . 28 | 6.2.4. Preservation of Data Ordering . . . . . . . . . . . . 28 | |||
| 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 . . . . . . . . . . . . . . . . . 29 | |||
| 6.2.6. Multistream Connections in Group . . . . . . . . . . 29 | 6.2.6. Multistream Connections in Group . . . . . . . . . . 29 | |||
| 6.2.7. Full Checksum Coverage on Sending . . . . . . . . . . 29 | 6.2.7. Full Checksum Coverage on Sending . . . . . . . . . . 29 | |||
| skipping to change at page 4, line 13 ¶ | skipping to change at page 4, line 13 ¶ | |||
| 9.1.1. Message Contexts . . . . . . . . . . . . . . . . . . 56 | 9.1.1. Message Contexts . . . . . . . . . . . . . . . . . . 56 | |||
| 9.1.2. Message Framers . . . . . . . . . . . . . . . . . . . 56 | 9.1.2. Message Framers . . . . . . . . . . . . . . . . . . . 56 | |||
| 9.1.3. Message Properties . . . . . . . . . . . . . . . . . 59 | 9.1.3. Message Properties . . . . . . . . . . . . . . . . . 59 | |||
| 9.2. Sending Data . . . . . . . . . . . . . . . . . . . . . . 65 | 9.2. Sending Data . . . . . . . . . . . . . . . . . . . . . . 65 | |||
| 9.2.1. Basic Sending . . . . . . . . . . . . . . . . . . . . 65 | 9.2.1. Basic Sending . . . . . . . . . . . . . . . . . . . . 65 | |||
| 9.2.2. Send Events . . . . . . . . . . . . . . . . . . . . . 66 | 9.2.2. Send Events . . . . . . . . . . . . . . . . . . . . . 66 | |||
| 9.2.3. Partial Sends . . . . . . . . . . . . . . . . . . . . 67 | 9.2.3. Partial Sends . . . . . . . . . . . . . . . . . . . . 67 | |||
| 9.2.4. Batching Sends . . . . . . . . . . . . . . . . . . . 68 | 9.2.4. Batching Sends . . . . . . . . . . . . . . . . . . . 68 | |||
| 9.2.5. Send on Active Open: InitiateWithSend . . . . . . . . 68 | 9.2.5. Send on Active Open: InitiateWithSend . . . . . . . . 68 | |||
| 9.2.6. Priority and the Transport Services API . . . . . . . 69 | 9.2.6. Priority and the Transport Services API . . . . . . . 69 | |||
| 9.3. Receiving Data . . . . . . . . . . . . . . . . . . . . . 69 | 9.3. Receiving Data . . . . . . . . . . . . . . . . . . . . . 70 | |||
| 9.3.1. Enqueuing Receives . . . . . . . . . . . . . . . . . 70 | 9.3.1. Enqueuing Receives . . . . . . . . . . . . . . . . . 70 | |||
| 9.3.2. Receive Events . . . . . . . . . . . . . . . . . . . 70 | 9.3.2. Receive Events . . . . . . . . . . . . . . . . . . . 71 | |||
| 9.3.3. Receive Message Properties . . . . . . . . . . . . . 73 | 9.3.3. Receive Message Properties . . . . . . . . . . . . . 73 | |||
| 10. Connection Termination . . . . . . . . . . . . . . . . . . . 74 | 10. Connection Termination . . . . . . . . . . . . . . . . . . . 75 | |||
| 11. Connection State and Ordering of Operations and Events . . . 76 | 11. Connection State and Ordering of Operations and Events . . . 76 | |||
| 12. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 77 | 12. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 78 | |||
| 13. Privacy and Security Considerations . . . . . . . . . . . . . 77 | 13. Privacy and Security Considerations . . . . . . . . . . . . . 78 | |||
| 14. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 79 | 14. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 80 | |||
| 15. References . . . . . . . . . . . . . . . . . . . . . . . . . 80 | 15. References . . . . . . . . . . . . . . . . . . . . . . . . . 80 | |||
| 15.1. Normative References . . . . . . . . . . . . . . . . . . 80 | 15.1. Normative References . . . . . . . . . . . . . . . . . . 80 | |||
| 15.2. Informative References . . . . . . . . . . . . . . . . . 81 | 15.2. Informative References . . . . . . . . . . . . . . . . . 81 | |||
| Appendix A. Implementation Mapping . . . . . . . . . . . . . . . 84 | Appendix A. Implementation Mapping . . . . . . . . . . . . . . . 85 | |||
| A.1. Types . . . . . . . . . . . . . . . . . . . . . . . . . . 84 | A.1. Types . . . . . . . . . . . . . . . . . . . . . . . . . . 85 | |||
| A.2. Events and Errors . . . . . . . . . . . . . . . . . . . . 85 | A.2. Events and Errors . . . . . . . . . . . . . . . . . . . . 85 | |||
| A.3. Time Duration . . . . . . . . . . . . . . . . . . . . . . 85 | A.3. Time Duration . . . . . . . . . . . . . . . . . . . . . . 86 | |||
| Appendix B. Convenience Functions . . . . . . . . . . . . . . . 85 | Appendix B. Convenience Functions . . . . . . . . . . . . . . . 86 | |||
| B.1. Adding Preference Properties . . . . . . . . . . . . . . 85 | B.1. Adding Preference Properties . . . . . . . . . . . . . . 86 | |||
| B.2. Transport Property Profiles . . . . . . . . . . . . . . . 86 | B.2. Transport Property Profiles . . . . . . . . . . . . . . . 86 | |||
| B.2.1. reliable-inorder-stream . . . . . . . . . . . . . . . 86 | B.2.1. reliable-inorder-stream . . . . . . . . . . . . . . . 86 | |||
| B.2.2. reliable-message . . . . . . . . . . . . . . . . . . 86 | B.2.2. reliable-message . . . . . . . . . . . . . . . . . . 87 | |||
| B.2.3. unreliable-datagram . . . . . . . . . . . . . . . . . 87 | B.2.3. unreliable-datagram . . . . . . . . . . . . . . . . . 87 | |||
| 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 . . . . . . . . . . . . . . . . . . . . . 88 | |||
| Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 91 | Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 91 | |||
| 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 | |||
| skipping to change at page 6, line 35 ¶ | skipping to change at page 6, line 35 ¶ | |||
| 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 positive or negative integer values. | |||
| * Numeric: Instances take positive or negative real number values. | * Numeric: Instances take positive or negative real number values. | |||
| * String: Instances are represented in a way that is common to the | ||||
| programming language, e.g. UTF-8. | ||||
| * IP Address: An IPv4 or IPv6 address. | ||||
| * 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 | |||
| skipping to change at page 10, line 15 ¶ | skipping to change at page 10, line 15 ¶ | |||
| LocalSpecifier := NewLocalEndpoint() | LocalSpecifier := NewLocalEndpoint() | |||
| LocalSpecifier.WithInterface("any") | LocalSpecifier.WithInterface("any") | |||
| LocalSpecifier.WithService("https") | LocalSpecifier.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() | |||
| SecurityParameters.Set(identity, myIdentity) | SecurityParameters.Set(identity, myIdentity) | |||
| SecurityParameters.Set(key-pair, myPrivateKey, myPublicKey) | SecurityParameters.Set(server-certificate, myCertificate) | |||
| // Specifying a Remote Endpoint is optional when using Listen | // Specifying a Remote Endpoint is optional when using Listen | |||
| Preconnection := NewPreconnection(LocalSpecifier, | Preconnection := NewPreconnection(LocalSpecifier, | |||
| TransportProperties, | TransportProperties, | |||
| SecurityParameters) | SecurityParameters) | |||
| Listener := Preconnection.Listen() | Listener := Preconnection.Listen() | |||
| Listener -> ConnectionReceived<Connection> | Listener -> ConnectionReceived<Connection> | |||
| skipping to change at page 11, line 45 ¶ | skipping to change at page 11, line 45 ¶ | |||
| //---- 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 | Preconnections are reusable after being used to initiate a | |||
| Connection. Hence, for example, after the Connections were closed, | Connection, whether this Connection was closed or not. Hence, it | |||
| the following would be correct: | would be correct to continue as follows after the above example: | |||
| //.. carry out adjustments to the Preconnection, if desired | //.. carry out adjustments to the Preconnection, if desired | |||
| Connection := Preconnection.Initiate() | Connection := 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) | |||
| StunCandidate := NewLocalEndpoint() | StunCandidate := NewLocalEndpoint() | |||
| StunCandidate.WithStunServer(address, port, credentials) | StunCandidate.WithStunServer(address, port, credentials) | |||
| LocalCandidates = [HostCandidate, StunCandidate] | LocalCandidates = [HostCandidate, StunCandidate] | |||
| // Configure transport and security properties | TransportProperties := // ...Configure transport properties | |||
| TransportProperties := ... | SecurityParameters := // ...Configure security properties | |||
| SecurityParameters := ... | ||||
| Preconnection := NewPreconnection(LocalCandidates, | Preconnection := NewPreconnection(LocalCandidates, | |||
| [], // No remote candidates yet | [], // No remote candidates yet | |||
| TransportProperties, | TransportProperties, | |||
| SecurityParameters) | SecurityParameters) | |||
| // Resolve the LocalCandidates. The Preconnection.Resolve() call | // Resolve the LocalCandidates. The Preconnection.Resolve() | |||
| // resolves both local and remote candidates but, since the remote | // call resolves both local and remote candidates but, since | |||
| // candidates have not yet been specified, the ResolvedRemote list | // the remote candidates have not yet been specified, the | |||
| // returned will be empty and is not used. | // ResolvedRemote list returned will be empty and is not | |||
| ResolvedLocal, ResolvedRemote = Preconnection.Resolve() | // used. | |||
| ResolvedLocal, ResolvedRemote = Preconnection.Resolve() | ||||
| // ...Send the ResolvedLocal list to peer via signalling channel | // Application-specific code goes here to send the ResolvedLocal | |||
| // ...Receive a list of RemoteCandidates from peer via | // list to peer via some out-of-band signalling channel (e.g., | |||
| // signalling channel | // in a SIP message) | |||
| ... | ||||
| Preconnection.AddRemote(RemoteCandidates) | // Application-specific code goes here to receive the list of | |||
| Preconnection.Rendezvous() | // RemoteCandidates from peer via the signalling channel | |||
| ... | ||||
| Preconnection -> RendezvousDone<Connection> | // Add remote candidates and initiate the rendezvous: | |||
| Preconnection.AddRemote(RemoteCandidates) | ||||
| Preconnection.Rendezvous() | ||||
| //---- RendezvousDone event handler begin ---- | Preconnection -> RendezvousDone<Connection> | |||
| Connection.Send(messageDataRequest) | ||||
| Connection.Receive() | ||||
| //---- RendezvousDone event handler end ---- | ||||
| Connection -> Received<messageDataResponse, messageContext> | //---- RendezvousDone event handler begin ---- | |||
| Connection.Send(messageDataRequest) | ||||
| Connection.Receive() | ||||
| //---- RendezvousDone event handler end ---- | ||||
| // If new Remote Endpoint candidates are received from the peer over | Connection -> Received<messageDataResponse, messageContext> | |||
| // the signalling channel, for example if using Trickle ICE, then add | ||||
| // them to the Connection: | ||||
| Connection.AddRemote(NewRemoteCandidates) | ||||
| // On a PathChange<> events, resolve the local endpoints to see if a | // If new Remote Endpoint candidates are received from the | |||
| // new local endpoint has become available and, if so, send to the peer | // peer over the signalling channel, for example if using | |||
| // as a new candidate and add to the Connection: | // Trickle ICE, then add them to the Connection: | |||
| Connection -> PathChange<> | Connection.AddRemote(NewRemoteCandidates) | |||
| //---- PathChange event handler begin ---- | // On a PathChange<> events, resolve the local endpoints to | |||
| ResolvedLocal, ResolvedRemote = Preconnection.Resolve() | // see if a new local endpoint has become available and, if | |||
| if ResolvedLocal has changed: | // so, send to the peer as a new candidate and add to the | |||
| // ...Send the ResolvedLocal list to peer via signalling channel | // Connection: | |||
| // Add the new local endpoints to the Connection: | Connection -> PathChange<> | |||
| Connection.AddLocal(ResolvedLocal) | ||||
| //---- PathChange event handler end ---- | ||||
| // Close the Connection in a Receive event handler | //---- PathChange event handler begin ---- | |||
| Connection.Close() | ResolvedLocal, ResolvedRemote = Preconnection.Resolve() | |||
| if ResolvedLocal has changed: | ||||
| // Application-specific code goes here to send the | ||||
| // ResolvedLocal list to peer via signalling channel | ||||
| ... | ||||
| // Add the new local endpoints to the Connection: | ||||
| Connection.AddLocal(ResolvedLocal) | ||||
| //---- PathChange event handler end ---- | ||||
| // Close the Connection in a Receive event handler | ||||
| 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 should 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. Selection Properties (see Section 6.2) can only | Message Properties. | |||
| be set during pre-establishment. They are only used to specify which | ||||
| paths and Protocol Stacks can be used and are preferred by the | ||||
| application. Although Connection Properties (see Section 8.1) can be | ||||
| set during pre-establishment, they may be changed later. They are | ||||
| used to inform decisions made during establishment and to fine-tune | ||||
| the established Connection. Calling Initiate on a Preconnection | ||||
| creates an outbound Connection or a Listener, and the Selection | ||||
| Properties remain readable from the Connection or Listener, but | ||||
| become immutable. | ||||
| The behavior of the selected Protocol Stack(s) when sending Messages | Selection Properties (see Section 6.2) can only be set during pre- | |||
| is controlled by Message Properties (see Section 9.1.3). | establishment. They are only used to specify which paths and | |||
| Protocol Stacks can be used and are preferred by the application. | ||||
| Calling Initiate on a Preconnection creates an outbound Connection, | ||||
| and the Selection Properties remain readable from the Connection, but | ||||
| become immutable. Selection Properties can be set on Preconnections, | ||||
| and the effect of Selection Properties can be queried on Connections | ||||
| and Messages. | ||||
| Selection Properties can be set on Preconnections, and the effect of | Connection Properties (see Section 8.1) are used to inform decisions | |||
| Selection Properties can be queried on Connections and Messages. | made during establishment and to fine-tune the established | |||
| Connection Properties can be set on Connections and Preconnections; | Connection. They can be set during pre-establishment, and may be | |||
| when set on Preconnections, they act as an initial default for the | changed later. Connection Properties can be set on Connections and | |||
| resulting Connections. Message Properties can be set on Messages, | Preconnections; when set on Preconnections, they act as an initial | |||
| Connections, and Preconnections; when set on the latter two, they act | default for the resulting Connections. | |||
| as an initial default for the Messages sent over those Connections. | ||||
| Message Properties (see Section 9.1.3) control the behavior of the | ||||
| selected protocol stack(s) when sending Messages. Message Properties | ||||
| can be set on Messages, Connections, and Preconnections; when set on | ||||
| the latter two, they act as an initial default for the Messages sent | ||||
| over those Connections. | ||||
| Note that configuring Connection Properties and Message Properties on | Note that configuring Connection Properties and Message Properties on | |||
| 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. For the | |||
| purposes of this document, these names are alphanumeric strings in | purposes of this document, these names are alphanumeric strings in | |||
| which words may be separated by hyphens. Specifically, the following | which the following characters are allowed: lowercase letters a-z, | |||
| characters are allowed: lowercase letters a-z, uppercase letters A-Z, | uppercase letters A-Z, digits 0-9, the hyphen -, and the underscore | |||
| digits 0-9, the hyphen -, and the underscore _. These names serve two | _. These names serve two purposes: | |||
| 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 may preclude | |||
| strict adherence to the aforementioned naming convention (for | strict adherence to the aforementioned naming convention (for | |||
| instance, by prohibiting the use of hyphens in symbols), users | instance, by prohibiting the use of hyphens in symbols), users | |||
| interacting with multiple implementations will still benefit from | interacting with multiple implementations will still benefit from | |||
| the consistency resulting from the use of visually similar | 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 Namespace component MUST be empty for well-known, generic | |||
| properties, i.e., for properties that are not specific to a | properties, i.e., for properties that are not specific to a | |||
| protocol and are defined in an RFC. | 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 tcp Connection could support a TCP-specific | |||
| Transport Property, such as the user timeout value, in a Protocol- | Transport Property, such as the user timeout value, in a Protocol- | |||
| specific Property called tcp.userTimeoutValue (see Section 8.2)). | specific Property called tcp.userTimeoutValue (see Section 8.2)). | |||
| * Vendor or implementation specific properties MUST use a string | * Vendor or implementation specific properties MUST use a string | |||
| identifying the vendor or implementation as the Namespace. | identifying the vendor or implementation as the Namespace. | |||
| * 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. | |||
| 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. Avoid using any of the terms listed as keywords in the | properties. Terms listed as keywords as in the protocol numbers | |||
| protocol numbers registry as any part of a vendor- or implementation- | registry SHOULD be avoided as any part of a vendor- or | |||
| specific property name. | implementation-specific property name. | |||
| 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, Ignore, 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 | |||
| skipping to change at page 15, line 49 ¶ | skipping to change at page 16, line 4 ¶ | |||
| 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. | |||
| There is no interoperability benefit in tightly defining how the API | There is no interoperability benefit in tightly defining how the API | |||
| is presented to application programmers across diverse platforms. | is presented to application programmers across diverse platforms. | |||
| However, maintaining the "shape" of the abstract API across different | However, maintaining the "shape" of the abstract API across different | |||
| platforms reduces the effort for programmers who learn to use the | platforms reduces the effort for programmers who learn to use the | |||
| Transport Services API to then apply their knowledge to another | Transport Services API to then apply their knowledge to another | |||
| platform. | platform. That said, implementations have significant freedom in | |||
| presenting this API to programmers, balancing the conventions of the | ||||
| protocol with the shape of the API. We make the following | ||||
| recommendations: | ||||
| We therefore make the following recommendations: | ||||
| * Actions, events, and errors in implementations of the Transport | * Actions, events, and errors in implementations of the Transport | |||
| Services API SHOULD use the names given for them in the document, | Services API SHOULD use the names given for them in the document, | |||
| subject to capitalization, punctuation, and other typographic | subject to capitalization, punctuation, and other typographic | |||
| conventions in the language of the implementation, unless the | conventions in the language of the implementation, unless the | |||
| implementation itself uses different names for substantially | implementation itself uses different names for substantially | |||
| equivalent objects for networking by convention. | equivalent objects for networking by convention. | |||
| * Transport Services systems SHOULD implement each Selection | * Transport Services systems SHOULD implement each Selection | |||
| Property, Connection Property, and Message Context Property | Property, Connection Property, and Message Context Property | |||
| specified in this document. The Transport Services API SHOULD be | specified in this document. These features SHOULD be implemented | |||
| implemented even when in a specific implementation/platform it | even when in a specific implementation it will always result in no | |||
| will always result in no operation, e.g. there is no action when | operation, e.g. there is no action when the API specifies a | |||
| the API specifies a Property that is not available in a transport | Property that is not available in a transport protocol implemented | |||
| protocol implemented on a specific platform. For example, if TCP | on a specific platform. For example, if TCP is the only | |||
| is the only underlying transport protocol, the Message Property | underlying transport protocol, the Message Property msgOrdered can | |||
| msgOrdered can be implemented (trivially, as a no-op) as disabling | be implemented (trivially, as a no-op) as disabling the | |||
| 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 may 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. | |||
| skipping to change at page 17, line 25 ¶ | skipping to change at page 17, line 30 ¶ | |||
| 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 | all the Local Endpoints on the Preconnection MUST represent the same | |||
| host. For example, they might correspond to different interfaces on | host. For example, they might correspond to different interfaces on | |||
| a multi-homed host, of they might correspond to local interfaces and | a multi-homed host, of they might correspond to local interfaces and | |||
| a STUN server that can be resolved to a server reflexive address for | a STUN server that can be resolved to a server reflexive address for | |||
| a Preconnection used to make a peer-to-peer Rendezvous. | 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 | then all the Remote Endpoints on the Preconnection should represent | |||
| the same service. For example, the Remote Endpoints might represent | the same service, to the extent that the application and the | |||
| various network interfaces of a host, or a server reflexive address | Transport Services system can validate that the Remote Endpoints are | |||
| that can be used to reach a host, or a set of hosts that provide | indeed the same service. For example, the Remote Endpoints might | |||
| equivalent local balanced service. | represent various network interfaces of a host, or a server reflexive | |||
| address that can be used to reach a host, or a set of hosts that | ||||
| provide equivalent local balanced 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 endpoints. Specifying multiple Remote Endpoints on a | |||
| Preconnection allows applications to override this for more detailed | Preconnection allows applications to override this for more detailed | |||
| control. | 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. | |||
| skipping to change at page 18, line 27 ¶ | skipping to change at page 18, line 31 ¶ | |||
| RemoteSpecifier.WithPort(443) | RemoteSpecifier.WithPort(443) | |||
| * Service (an identifier that maps to a port; either the name of a | * 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): | 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.WithIPv4Address(192.0.2.21) | RemoteSpecifier.WithIPAddress(192.0.2.21) | |||
| RemoteSpecifier.WithIPv6Address(2001:db8:4920:e29d:a420:7461:7073:0a) | RemoteSpecifier.WithIPAddress(2001:db8:4920:e29d:a420:7461:7073:0a) | |||
| * Interface name (string), e.g., to qualify link-local or multicast | * Interface name (string), e.g., to qualify link-local or multicast | |||
| addresses (see Section 6.1.2 for details): | addresses (see Section 6.1.2 for details): | |||
| LocalSpecifier.WithInterface("en0") | LocalSpecifier.WithInterface("en0") | |||
| Note that an IPv6 address specified with a scope (e.g. | Note that an IPv6 address specified with a scope (e.g. | |||
| 2001:db8:4920:e29d:a420:7461:7073:0a%en0) is equivalent to | 2001:db8:4920:e29d:a420:7461:7073:0a%en0) is equivalent to | |||
| WithIPv6Address with an unscoped address and WithInterface together. | WithIPAddress with an unscoped address and WithInterface together. | |||
| The design of the API MUST NOT permit an Endpoint to be configured | The design of the API MUST NOT permit an Endpoint to be configured | |||
| with multiple identifiers of the same type. For example, an endpoint | with multiple identifiers of the same type. For example, an endpoint | |||
| cannot have two IP addresses specified. Two separate IP addresses | cannot have two IP addresses specified. Two separate IP addresses | |||
| are represented as two Endpoint objects. If a Preconnection | are represented as two Endpoint objects. If a Preconnection | |||
| specifies a Remote Endpoint with a specific IP address set, it will | specifies a Remote Endpoint with a specific IP address set, it will | |||
| only establish Connections to that IP address. If, on the other | only establish Connections to that IP address. If, on the other | |||
| hand, the Remote Endpoint specifies a hostname but no addresses, the | hand, the Remote Endpoint specifies a hostname but no addresses, the | |||
| Connection can perform name resolution and attempt using any address | Connection can perform name resolution and attempt using any address | |||
| derived from the original hostname of the Remote Endpoint. Note that | derived from the original hostname of the Remote Endpoint. Note that | |||
| skipping to change at page 19, line 19 ¶ | skipping to change at page 19, line 31 ¶ | |||
| 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 specifying the any-source multicast (ASM) or source- | |||
| specific multicast (SSM) multicast group and destination port number. | specific multicast (SSM) multicast group and destination port number. | |||
| This is then followed by a call to either Initiate, Listen, or | ||||
| Rendezvous depending on whether the resulting Connection is to be | ||||
| used to send messages to the multicast group, receive messages from | ||||
| the group, or, for an any-source multicast group, to both send and | ||||
| receive messages. | ||||
| 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 | indicating the local interface to which the Connection is bound and a | |||
| Remote Endpoint indicating the multicast group. | Remote Endpoint indicating 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.WithMulticastGroupIPv4(GroupAddress) | RemoteSpecifier.WithMulticastGroupIP(GroupAddress) | |||
| RemoteSpecifier.WithMulticastGroupIPv6(GroupAddress) | ||||
| RemoteSpecifier.WithPort(PortNumber) | RemoteSpecifier.WithPort(PortNumber) | |||
| RemoteSpecifier.WithTTL(TTL) | RemoteSpecifier.WithTTL(TTL) | |||
| 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 set to the | |||
| group address. The set of Connection objects created forms a | group address. The set of Connection objects created forms a | |||
| Connection Group. The receiving interface can be restricted by | Connection Group. The receiving interface can be restricted by | |||
| passing it as part of the LocalSpecifier or queried through the | 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). | |||
| 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.WithSingleSourceMulticastGroupIPv4(GroupAddress, SourceAddress) | LocalSpecifier.WithSingleSourceMulticastGroupIP(GroupAddress, | |||
| LocalSpecifier.WithSingleSourceMulticastGroupIPv6(GroupAddress, SourceAddress) | SourceAddress) | |||
| LocalSpecifier.WithAnySourceMulticastGroupIPv4(GroupAddress) | LocalSpecifier.WithAnySourceMulticastGroupIP(GroupAddress) | |||
| LocalSpecifier.WithAnySourceMulticastGroupIPv6(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 will join the multicast group, | |||
| and also indicates that the resulting Connection can be used to send | and also indicates that the resulting Connection can be used to send | |||
| Messages to the multicast group. The Rendezvous call will return | Messages to the multicast group. The Rendezvous call will return | |||
| both a Connection that can be used to send to the group, that acts | both a Connection that can be used to send to the group, that acts | |||
| the same as a Connection returned by calling Initiate with a | the same as a Connection returned by calling Initiate with a | |||
| multicast Remote Endpoint, and a Listener that acts as if Listen had | multicast Remote Endpoint, and a Listener that acts as if Listen had | |||
| been called with a multicast Remote Endpoint. Calling Rendezvous on | been called with a multicast Remote Endpoint. Calling Rendezvous on | |||
| a Preconnection with a source-specific multicast group address as the | a Preconnection with a source-specific multicast group address as the | |||
| Local Endpoint results in an EstablishmentError. | Local Endpoint 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.WithMulticastGroupIPv4(GroupAddress) | RemoteSpecifier.WithMulticastGroupIP(GroupAddress) | |||
| RemoteSpecifier.WithMulticastGroupIPv6(GroupAddress) | ||||
| RemoteSpecifier.WithPort(PortNumber) | RemoteSpecifier.WithPort(PortNumber) | |||
| RemoteSpecifier.WithTTL(TTL) | RemoteSpecifier.WithTTL(TTL) | |||
| LocalSpecifier.WithAnySourceMulticastGroupIPv4(GroupAddress) | LocalSpecifier.WithAnySourceMulticastGroupIP(GroupAddress) | |||
| LocalSpecifier.WithAnySourceMulticastGroupIPv6(GroupAddress) | ||||
| LocalSpecifier.WithPort(PortNumber) | LocalSpecifier.WithPort(PortNumber) | |||
| LocalSpecifier.WithTTL(TTL) | LocalSpecifier.WithTTL(TTL) | |||
| 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: | |||
| skipping to change at page 21, line 25 ¶ | skipping to change at page 21, line 34 ¶ | |||
| protocol is used. | protocol is used. | |||
| To support this, Endpoint objects can specify "aliases". An Endpoint | To support this, Endpoint objects can specify "aliases". An Endpoint | |||
| can have multiple aliases set. | can have multiple aliases set. | |||
| RemoteSpecifier.AddAlias(AlternateRemoteSpecifier) | RemoteSpecifier.AddAlias(AlternateRemoteSpecifier) | |||
| In order to scope an alias to a specific transport protocol, an | In order to scope an alias to a specific transport protocol, an | |||
| Endpoint can specify a protocol identifier. | Endpoint can specify a protocol identifier. | |||
| RemoteSpecifier.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. | |||
| 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") | |||
| skipping to change at page 22, line 6 ¶ | skipping to change at page 22, line 18 ¶ | |||
| Specify a Remote Endpoint using a hostname and service name: | Specify a Remote Endpoint using a hostname and service name: | |||
| 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.WithIPv6Address(2001:db8:4920:e29d:a420:7461:7073:0a) | RemoteSpecifier.WithIPAddress(2001:db8:4920:e29d:a420:7461:7073:0a) | |||
| 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.WithIPv4Address(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 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 | |||
| skipping to change at page 23, line 8 ¶ | skipping to change at page 23, line 8 ¶ | |||
| 6.1.5. Multicast Examples | 6.1.5. Multicast Examples | |||
| The following examples show how multicast groups can be used. | The following examples show how multicast groups can be used. | |||
| Join an Any-Source Multicast group in receive-only mode, bound to a | Join an Any-Source Multicast group in receive-only mode, bound to a | |||
| known port on a named local interface: | known port on a named local interface: | |||
| RemoteSpecifier := NewRemoteEndpoint() | RemoteSpecifier := NewRemoteEndpoint() | |||
| LocalSpecifier := NewLocalEndpoint() | LocalSpecifier := NewLocalEndpoint() | |||
| LocalSpecifier.WithAnySourceMulticastGroupIPv4(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 an Source-Specific Multicast group in receive-only mode, bound | |||
| to a known port on a named local interface: | to a known port on a named local interface: | |||
| RemoteSpecifier := NewRemoteEndpoint() | RemoteSpecifier := NewRemoteEndpoint() | |||
| LocalSpecifier := NewLocalEndpoint() | LocalSpecifier := NewLocalEndpoint() | |||
| LocalSpecifier.WithSingleSourceMulticastGroupIPv4(233.252.0.0, 198.51.100.10) | ||||
| LocalSpecifier.WithPort(5353) | ||||
| LocalSpecifier.WithInterface("en0") | ||||
| TransportProperties := ... | LocalSpecifier.WithSingleSourceMulticastGroupIP(233.252.0.0, | |||
| SecurityParameters := ... | 198.51.100.10) | |||
| LocalSpecifier.WithPort(5353) | ||||
| LocalSpecifier.WithInterface("en0") | ||||
| Preconnection := newPreconnection(LocalSpecifier, | TransportProperties := ... | |||
| RemoteSpecifier, | SecurityParameters := ... | |||
| TransportProperties, | ||||
| SecurityProperties) | ||||
| Listener := Preconnection.Listen() | ||||
| Preconnection := newPreconnection(LocalSpecifier, | ||||
| RemoteSpecifier, | ||||
| TransportProperties, | ||||
| SecurityProperties) | ||||
| 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.WithMulticastGroupIPv4(232.1.1.1) | RemoteSpecifier.WithMulticastGroupIP(232.1.1.1) | |||
| RemoteSpecifier.WithPort(5353) | RemoteSpecifier.WithPort(5353) | |||
| RemoteSpecifier.WithTTL(8) | RemoteSpecifier.WithTTL(8) | |||
| LocalSpecifier := NewLocalEndpoint() | LocalSpecifier := NewLocalEndpoint() | |||
| LocalSpecifier.WithIPv4Address(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.WithMulticastGroupIPv4(233.252.0.0) | RemoteSpecifier.WithMulticastGroupIP(233.252.0.0) | |||
| RemoteSpecifier.WithPort(5353) | RemoteSpecifier.WithPort(5353) | |||
| RemoteSpecifier.WithTTL(8) | RemoteSpecifier.WithTTL(8) | |||
| LocalSpecifier := NewLocalEndpoint() | LocalSpecifier := NewLocalEndpoint() | |||
| LocalSpecifier.WithAnySourceMulticastGroupIPv4(233.252.0.0) | LocalSpecifier.WithAnySourceMulticastGroupIP(233.252.0.0) | |||
| LocalSpecifier.WithIPv4Address(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) | |||
| skipping to change at page 36, line 15 ¶ | skipping to change at page 36, line 15 ¶ | |||
| 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 [I-D.ietf-taps-impl]. | 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., may 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). | |||
| skipping to change at page 36, line 41 ¶ | skipping to change at page 36, line 41 ¶ | |||
| values whenever possible. However, as discussed in [RFC8922], many | values whenever possible. However, as discussed in [RFC8922], many | |||
| transport security protocols require specific security parameters and | transport security protocols require specific security parameters and | |||
| constraints from the client at the time of configuration and actively | constraints from the client at the time of configuration and actively | |||
| during a handshake. These configuration parameters need to be | during a handshake. These configuration parameters need to be | |||
| specified in the pre-connection phase and are created as follows: | specified in the pre-connection phase and are created as follows: | |||
| SecurityParameters := NewSecurityParameters() | SecurityParameters := NewSecurityParameters() | |||
| Security configuration parameters and sample usage follow: | Security configuration parameters and sample usage follow: | |||
| * Local identity and private keys: Used to perform private key | * Local identity, certificates, and private keys: Used to perform | |||
| operations and prove one's identity to the Remote Endpoint. | private key operations and prove one's identity to the Remote | |||
| (Note, if private keys are not available, e.g., since they are | Endpoint. (Note, if private keys are not available, e.g., since | |||
| stored in hardware security modules (HSMs), handshake callbacks | they are stored in hardware security modules (HSMs), handshake | |||
| must be used. See below for details.) | callbacks must be used. See below for details.) | |||
| SecurityParameters.Set(identity, myIdentity) | SecurityParameters.Set(identity, myIdentity) | |||
| SecurityParameters.Set(server-certificate, myCertificate) | ||||
| SecurityParameters.Set(client-certificate, myCertificate) | ||||
| SecurityParameters.Set(key-pair, myPrivateKey, myPublicKey) | SecurityParameters.Set(key-pair, myPrivateKey, myPublicKey) | |||
| * Supported algorithms: Used to restrict what parameters are used by | * Supported algorithms: Used to restrict what parameters are used by | |||
| underlying transport security protocols. When not specified, | underlying transport security protocols. When not specified, | |||
| these algorithms should use known and safe defaults for the | these algorithms should use known and safe defaults for the | |||
| system. Parameters include: ciphersuites, supported groups, and | system. Parameters include: ciphersuites, supported groups, and | |||
| signature algorithms. These parameters take a collection of | signature algorithms. These parameters take a collection of | |||
| supported algorithms as parameter. | supported algorithms as parameter. | |||
| 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") | |||
| skipping to change at page 38, line 24 ¶ | skipping to change at page 38, line 24 ¶ | |||
| 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 | |||
| }) | }) | |||
| SecurityParameters.SetTrustVerificationCallback(trustCallback) | SecurityParameters.SetTrustVerificationCallback(TrustCallback) | |||
| * Identity challenge callback: Invoked when a private key operation | * Identity challenge callback: Invoked when a private key operation | |||
| is required, e.g., when local authentication is requested by a | is required, e.g., when local authentication is requested by a | |||
| Remote Endpoint. | Remote Endpoint. | |||
| ChallengeCallback := NewCallback({ | ChallengeCallback := NewCallback({ | |||
| // Handle challenge | // Handle challenge | |||
| }) | }) | |||
| 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 may 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 | |||
| skipping to change at page 49, line 27 ¶ | skipping to change at page 49, line 27 ¶ | |||
| 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 should be used among | |||
| Connections within a Connection Group, see Section 7.4. The set of | Connections within a Connection Group, see Section 7.4. A set of | |||
| schedulers can be taken from [RFC8260]. | 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 53, line 6 ¶ | skipping to change at page 53, line 6 ¶ | |||
| 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 | |||
| [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 may 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 may 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. | |||
| skipping to change at page 68, line 43 ¶ | skipping to change at page 68, line 43 ¶ | |||
| Connection.Send(messageData) | Connection.Send(messageData) | |||
| Connection.Send(messageData) | Connection.Send(messageData) | |||
| Connection.EndBatch() | Connection.EndBatch() | |||
| 9.2.5. Send on Active Open: InitiateWithSend | 9.2.5. Send on Active Open: InitiateWithSend | |||
| For application-layer protocols where the Connection initiator also | For application-layer protocols where the Connection initiator also | |||
| sends the first Message, the InitiateWithSend action combines | sends the first Message, the InitiateWithSend action combines | |||
| Connection initiation with a first Message sent: | Connection initiation with a first Message sent: | |||
| Connection := Preconnection.InitiateWithSend(messageData, messageContext?, timeout?) | Connection := Preconnection.InitiateWithSend(messageData, | |||
| messageContext?, | ||||
| timeout?) | ||||
| Whenever possible, a MessageContext should be provided to declare the | Whenever possible, a MessageContext should be provided to declare the | |||
| 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 | |||
| skipping to change at page 71, line 29 ¶ | skipping to change at page 71, line 43 ¶ | |||
| for this Message, along with the length of the byte array. The | for this Message, along with the length of the byte array. The | |||
| messageContext value is provided to enable retrieving metadata about | messageContext value is provided to enable retrieving metadata about | |||
| the Message and referring to the Message. The MessageContext object | the Message and referring to the Message. The MessageContext object | |||
| is described in Section 9.1.1. | is described in Section 9.1.1. | |||
| See Section 9.1.2 for handling Message framing in situations where | See Section 9.1.2 for handling Message framing in situations where | |||
| the Protocol Stack only provides a byte-stream transport. | the Protocol Stack only provides a byte-stream transport. | |||
| 9.3.2.2. ReceivedPartial | 9.3.2.2. ReceivedPartial | |||
| Connection -> ReceivedPartial<messageData, messageContext, endOfMessage> | Connection -> ReceivedPartial<messageData, messageContext, | |||
| endOfMessage> | ||||
| If a complete Message cannot be delivered in one event, one part of | If a complete Message cannot be delivered in one event, one part of | |||
| the Message can be delivered with a ReceivedPartial event. To | the Message can be delivered with a ReceivedPartial event. To | |||
| 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 | |||
| skipping to change at page 72, line 27 ¶ | skipping to change at page 73, line 5 ¶ | |||
| Note that in the absence of message boundary preservation or a | Note that in the absence of message boundary preservation or a | |||
| Message Framer, all bytes received on the Connection will be | Message Framer, all bytes received on the Connection will be | |||
| represented as one large Message of indeterminate length. | represented as one large Message of indeterminate length. | |||
| In the following example, an application only wants to receive up to | In the following example, an application only wants to receive up to | |||
| 1000 bytes at a time from a Connection. If a 1500-byte Message | 1000 bytes at a time from a Connection. If a 1500-byte Message | |||
| arrives, it would receive the Message in two separate ReceivedPartial | arrives, it would receive the Message in two separate ReceivedPartial | |||
| events. | events. | |||
| Connection.Receive(1, 1000) | Connection.Receive(1, 1000) | |||
| // Receive first 1000 bytes, message is incomplete | // Receive first 1000 bytes, message is incomplete | |||
| Connection -> ReceivedPartial<messageData(1000 bytes), messageContext, false> | Connection -> ReceivedPartial<messageData(1000 bytes), | |||
| messageContext, false> | ||||
| Connection.Receive(1, 1000) | Connection.Receive(1, 1000) | |||
| // Receive last 500 bytes, message is now complete | // Receive last 500 bytes, message is now complete | |||
| Connection -> ReceivedPartial<messageData(500 bytes), messageContext, true> | Connection -> ReceivedPartial<messageData(500 bytes), | |||
| messageContext, true> | ||||
| 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 | |||
| skipping to change at page 78, line 39 ¶ | skipping to change at page 79, line 18 ¶ | |||
| 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. In most cases, information provided for | |||
| protocol and path selection should not directly translate to | protocol and path selection should not directly translate to | |||
| information that can be observed by network devices on the path. | information that can be observed by network devices on the path. | |||
| However, there might be specific configuration information that is | However, there might be specific configuration information that is | |||
| intended for path exposure, e.g., a DiffServ codepoint setting, that | intended for path exposure, e.g., a DiffServ codepoint setting, that | |||
| is either provided directly by the application or indirectly | is either provided directly by the application or indirectly | |||
| configured for a traffic profile. | configured for a traffic profile. | |||
| Applications should be aware that communication attempts can lead to | Applications should be aware that a single communication attempt can | |||
| more than one connection establishment procedures. This is the case, | lead to more than one connection establishment procedure. This is | |||
| for example, when the Transport Services system also executes name | the case, for example, when the Transport Services system also | |||
| resolution, when support mechanisms such as TURN or ICE are used to | executes name resolution, when support mechanisms such as TURN or ICE | |||
| establish connectivity, if protocols or paths are raised, or if a | are used to establish connectivity, if protocols or paths are raced, | |||
| path fails and fallback or re-establishment is supported in the | or if a path fails and fallback or re-establishment is supported in | |||
| 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 may | |||
| 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 | |||
| skipping to change at page 79, line 31 ¶ | skipping to change at page 80, line 7 ¶ | |||
| 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 required by the application for functional or security | |||
| purposes. Further, a Transport Services system should provide an | purposes. Further, introspection on the properties of Connection | |||
| interface to poll information about which protocol and path is | objects allows an application to determine whith protocol(s) and | |||
| currently in use as well as provide logging about the communication | path(s) are in use. A Tranport Services system SHOULD provide a | |||
| events of each Connection. | facility logging the communication events of each Connection. | |||
| 14. Acknowledgements | 14. Acknowledgements | |||
| 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). | |||
| skipping to change at page 80, line 29 ¶ | skipping to change at page 81, line 5 ¶ | |||
| C. Perkins, "An Architecture for Transport Services", Work | C. Perkins, "An Architecture for Transport Services", Work | |||
| in Progress, Internet-Draft, draft-ietf-taps-arch-18, 30 | in Progress, Internet-Draft, draft-ietf-taps-arch-18, 30 | |||
| May 2023, <https://datatracker.ietf.org/doc/html/draft- | May 2023, <https://datatracker.ietf.org/doc/html/draft- | |||
| ietf-taps-arch-18>. | ietf-taps-arch-18>. | |||
| [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>. | |||
| [RFC2914] Floyd, S., "Congestion Control Principles", BCP 41, | ||||
| RFC 2914, DOI 10.17487/RFC2914, September 2000, | ||||
| <https://www.rfc-editor.org/rfc/rfc2914>. | ||||
| [RFC8084] Fairhurst, G., "Network Transport Circuit Breakers", | ||||
| BCP 208, RFC 8084, DOI 10.17487/RFC8084, March 2017, | ||||
| <https://www.rfc-editor.org/rfc/rfc8084>. | ||||
| [RFC8085] Eggert, L., Fairhurst, G., and G. Shepherd, "UDP Usage | ||||
| Guidelines", BCP 145, RFC 8085, DOI 10.17487/RFC8085, | ||||
| March 2017, <https://www.rfc-editor.org/rfc/rfc8085>. | ||||
| [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>. | |||
| [RFC8446] Rescorla, E., "The Transport Layer Security (TLS) Protocol | ||||
| Version 1.3", RFC 8446, DOI 10.17487/RFC8446, August 2018, | ||||
| <https://www.rfc-editor.org/rfc/rfc8446>. | ||||
| [RFC8981] Gont, F., Krishnan, S., Narten, T., and R. Draves, | ||||
| "Temporary Address Extensions for Stateless Address | ||||
| Autoconfiguration in IPv6", RFC 8981, | ||||
| DOI 10.17487/RFC8981, February 2021, | ||||
| <https://www.rfc-editor.org/rfc/rfc8981>. | ||||
| 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-15, | Work in Progress, Internet-Draft, draft-ietf-taps-impl-16, | |||
| 9 March 2023, <https://datatracker.ietf.org/doc/html/ | 5 June 2023, <https://datatracker.ietf.org/doc/html/draft- | |||
| draft-ietf-taps-impl-15>. | ietf-taps-impl-16>. | |||
| [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, | |||
| <https://www.rfc-editor.org/rfc/rfc2597>. | <https://www.rfc-editor.org/rfc/rfc2597>. | |||
| [RFC2914] Floyd, S., "Congestion Control Principles", BCP 41, | ||||
| RFC 2914, DOI 10.17487/RFC2914, September 2000, | ||||
| <https://www.rfc-editor.org/rfc/rfc2914>. | ||||
| [RFC3246] Davie, B., Charny, A., Bennet, J.C.R., Benson, K., Le | [RFC3246] Davie, B., Charny, A., Bennet, J.C.R., Benson, K., Le | |||
| Boudec, J.Y., Courtney, W., Davari, S., Firoiu, V., and D. | Boudec, J.Y., Courtney, W., Davari, S., Firoiu, V., and D. | |||
| Stiliadis, "An Expedited Forwarding PHB (Per-Hop | Stiliadis, "An Expedited Forwarding PHB (Per-Hop | |||
| Behavior)", RFC 3246, DOI 10.17487/RFC3246, March 2002, | Behavior)", RFC 3246, DOI 10.17487/RFC3246, March 2002, | |||
| <https://www.rfc-editor.org/rfc/rfc3246>. | <https://www.rfc-editor.org/rfc/rfc3246>. | |||
| [RFC3261] Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston, | [RFC3261] Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston, | |||
| A., Peterson, J., Sparks, R., Handley, M., and E. | A., Peterson, J., Sparks, R., Handley, M., and E. | |||
| Schooler, "SIP: Session Initiation Protocol", RFC 3261, | Schooler, "SIP: Session Initiation Protocol", RFC 3261, | |||
| DOI 10.17487/RFC3261, June 2002, | DOI 10.17487/RFC3261, June 2002, | |||
| skipping to change at page 82, line 28 ¶ | skipping to change at page 82, line 34 ¶ | |||
| [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 | |||
| (Diffserv) and Real-Time Communication", RFC 7657, | (Diffserv) and Real-Time Communication", RFC 7657, | |||
| DOI 10.17487/RFC7657, November 2015, | DOI 10.17487/RFC7657, November 2015, | |||
| <https://www.rfc-editor.org/rfc/rfc7657>. | <https://www.rfc-editor.org/rfc/rfc7657>. | |||
| [RFC8084] Fairhurst, G., "Network Transport Circuit Breakers", | ||||
| BCP 208, RFC 8084, DOI 10.17487/RFC8084, March 2017, | ||||
| <https://www.rfc-editor.org/rfc/rfc8084>. | ||||
| [RFC8085] Eggert, L., Fairhurst, G., and G. Shepherd, "UDP Usage | ||||
| Guidelines", BCP 145, RFC 8085, DOI 10.17487/RFC8085, | ||||
| March 2017, <https://www.rfc-editor.org/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 | [RFC8229] Pauly, T., Touati, S., and R. Mantha, "TCP Encapsulation | |||
| of IKE and IPsec Packets", RFC 8229, DOI 10.17487/RFC8229, | of IKE and IPsec Packets", RFC 8229, DOI 10.17487/RFC8229, | |||
| August 2017, <https://www.rfc-editor.org/rfc/rfc8229>. | August 2017, <https://www.rfc-editor.org/rfc/rfc8229>. | |||
| skipping to change at page 83, line 16 ¶ | skipping to change at page 83, line 28 ¶ | |||
| Transport Features Provided by IETF Transport Protocols", | Transport Features Provided by IETF Transport Protocols", | |||
| RFC 8303, DOI 10.17487/RFC8303, February 2018, | RFC 8303, DOI 10.17487/RFC8303, February 2018, | |||
| <https://www.rfc-editor.org/rfc/rfc8303>. | <https://www.rfc-editor.org/rfc/rfc8303>. | |||
| [RFC8445] Keranen, A., Holmberg, C., and J. Rosenberg, "Interactive | [RFC8445] Keranen, A., Holmberg, C., and J. Rosenberg, "Interactive | |||
| Connectivity Establishment (ICE): A Protocol for Network | Connectivity Establishment (ICE): A Protocol for Network | |||
| Address Translator (NAT) Traversal", RFC 8445, | Address Translator (NAT) Traversal", RFC 8445, | |||
| DOI 10.17487/RFC8445, July 2018, | DOI 10.17487/RFC8445, July 2018, | |||
| <https://www.rfc-editor.org/rfc/rfc8445>. | <https://www.rfc-editor.org/rfc/rfc8445>. | |||
| [RFC8446] Rescorla, E., "The Transport Layer Security (TLS) Protocol | ||||
| Version 1.3", RFC 8446, DOI 10.17487/RFC8446, August 2018, | ||||
| <https://www.rfc-editor.org/rfc/rfc8446>. | ||||
| [RFC8489] Petit-Huguenin, M., Salgueiro, G., Rosenberg, J., Wing, | [RFC8489] Petit-Huguenin, M., Salgueiro, G., Rosenberg, J., Wing, | |||
| D., Mahy, R., and P. Matthews, "Session Traversal | D., Mahy, R., and P. Matthews, "Session Traversal | |||
| Utilities for NAT (STUN)", RFC 8489, DOI 10.17487/RFC8489, | Utilities for NAT (STUN)", RFC 8489, DOI 10.17487/RFC8489, | |||
| February 2020, <https://www.rfc-editor.org/rfc/rfc8489>. | February 2020, <https://www.rfc-editor.org/rfc/rfc8489>. | |||
| [RFC8546] Trammell, B. and M. Kuehlewind, "The Wire Image of a | [RFC8546] Trammell, B. and M. Kuehlewind, "The Wire Image of a | |||
| Network Protocol", RFC 8546, DOI 10.17487/RFC8546, April | Network Protocol", RFC 8546, DOI 10.17487/RFC8546, April | |||
| 2019, <https://www.rfc-editor.org/rfc/rfc8546>. | 2019, <https://www.rfc-editor.org/rfc/rfc8546>. | |||
| [RFC8622] Bless, R., "A Lower-Effort Per-Hop Behavior (LE PHB) for | [RFC8622] Bless, R., "A Lower-Effort Per-Hop Behavior (LE PHB) for | |||
| skipping to change at page 84, line 15 ¶ | skipping to change at page 84, line 30 ¶ | |||
| [RFC8922] Enghardt, T., Pauly, T., Perkins, C., Rose, K., and C. | [RFC8922] Enghardt, T., Pauly, T., Perkins, C., Rose, K., and C. | |||
| Wood, "A Survey of the Interaction between Security | Wood, "A Survey of the Interaction between Security | |||
| Protocols and Transport Services", RFC 8922, | Protocols and Transport Services", RFC 8922, | |||
| DOI 10.17487/RFC8922, October 2020, | DOI 10.17487/RFC8922, October 2020, | |||
| <https://www.rfc-editor.org/rfc/rfc8922>. | <https://www.rfc-editor.org/rfc/rfc8922>. | |||
| [RFC8923] Welzl, M. and S. Gjessing, "A Minimal Set of Transport | [RFC8923] Welzl, M. and S. Gjessing, "A Minimal Set of Transport | |||
| Services for End Systems", RFC 8923, DOI 10.17487/RFC8923, | Services for End Systems", RFC 8923, DOI 10.17487/RFC8923, | |||
| October 2020, <https://www.rfc-editor.org/rfc/rfc8923>. | October 2020, <https://www.rfc-editor.org/rfc/rfc8923>. | |||
| [RFC8981] Gont, F., Krishnan, S., Narten, T., and R. Draves, | ||||
| "Temporary Address Extensions for Stateless Address | ||||
| Autoconfiguration in IPv6", RFC 8981, | ||||
| DOI 10.17487/RFC8981, February 2021, | ||||
| <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>. | |||
| [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. | |||
| skipping to change at page 92, line 6 ¶ | skipping to change at page 92, line 34 ¶ | |||
| Email: mirja.kuehlewind@ericsson.com | Email: mirja.kuehlewind@ericsson.com | |||
| Colin Perkins | Colin Perkins | |||
| University of Glasgow | University of Glasgow | |||
| School of Computing Science | School of Computing Science | |||
| Glasgow G12 8QQ | Glasgow G12 8QQ | |||
| United Kingdom | United Kingdom | |||
| Email: csp@csperkins.org | Email: csp@csperkins.org | |||
| Philipp S. Tiesel | Philipp S. Tiesel | |||
| SAP SE | SAP SE | |||
| Konrad-Zuse-Ring 10 | George-Stephenson-Straße 7-13 | |||
| 14469 Potsdam | 10557 Berlin | |||
| Germany | Germany | |||
| Email: philipp@tiesel.net | Email: philipp@tiesel.net | |||
| Tommy Pauly | Tommy Pauly | |||
| Apple Inc. | Apple Inc. | |||
| One Apple Park Way | One Apple Park Way | |||
| Cupertino, California 95014, | Cupertino, California 95014, | |||
| United States of America | United States of America | |||
| Email: tpauly@apple.com | Email: tpauly@apple.com | |||
| End of changes. 87 change blocks. | ||||
| 204 lines changed or deleted | 233 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/ | ||||