| draft-ietf-taps-interface-24.txt | draft-ietf-taps-interface-25.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: 16 June 2024 University of Oslo | Expires: 2 August 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. | |||
| 14 December 2023 | 30 January 2024 | |||
| An Abstract Application Layer Interface to Transport Services | An Abstract Application Layer Interface to Transport Services | |||
| draft-ietf-taps-interface-24 | draft-ietf-taps-interface-25 | |||
| 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 16 June 2024. | This Internet-Draft will expire on 2 August 2024. | |||
| Copyright Notice | Copyright Notice | |||
| Copyright (c) 2023 IETF Trust and the persons identified as the | Copyright (c) 2024 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 | |||
| and restrictions with respect to this document. Code Components | and restrictions with respect to this document. Code Components | |||
| extracted from this document must include Revised BSD License text as | extracted from this document must include Revised BSD License text as | |||
| described in Section 4.e of the Trust Legal Provisions and are | described in Section 4.e of the Trust Legal Provisions and are | |||
| provided without warranty as described in the Revised BSD License. | provided without warranty as described in the Revised BSD License. | |||
| Table of Contents | Table of Contents | |||
| 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 4 | 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 5 | |||
| 1.1. Terminology and Notation . . . . . . . . . . . . . . . . 5 | 1.1. Terminology and Notation . . . . . . . . . . . . . . . . 5 | |||
| 1.2. Specification of Requirements . . . . . . . . . . . . . . 7 | 1.2. Specification of Requirements . . . . . . . . . . . . . . 7 | |||
| 2. Overview of the API Design . . . . . . . . . . . . . . . . . 7 | 2. Overview of the API Design . . . . . . . . . . . . . . . . . 7 | |||
| 3. API Summary . . . . . . . . . . . . . . . . . . . . . . . . . 8 | 3. API Summary . . . . . . . . . . . . . . . . . . . . . . . . . 8 | |||
| 3.1. Usage Examples . . . . . . . . . . . . . . . . . . . . . 9 | 3.1. Usage Examples . . . . . . . . . . . . . . . . . . . . . 9 | |||
| 3.1.1. Server Example . . . . . . . . . . . . . . . . . . . 9 | 3.1.1. Server Example . . . . . . . . . . . . . . . . . . . 10 | |||
| 3.1.2. Client Example . . . . . . . . . . . . . . . . . . . 10 | 3.1.2. Client Example . . . . . . . . . . . . . . . . . . . 11 | |||
| 3.1.3. Peer Example . . . . . . . . . . . . . . . . . . . . 12 | 3.1.3. Peer Example . . . . . . . . . . . . . . . . . . . . 13 | |||
| 4. Transport Properties . . . . . . . . . . . . . . . . . . . . 13 | 4. Transport Properties . . . . . . . . . . . . . . . . . . . . 14 | |||
| 4.1. Transport Property Names . . . . . . . . . . . . . . . . 14 | 4.1. Transport Property Names . . . . . . . . . . . . . . . . 15 | |||
| 4.2. Transport Property Types . . . . . . . . . . . . . . . . 15 | 4.2. Transport Property Types . . . . . . . . . . . . . . . . 16 | |||
| 5. Scope of the API Definition . . . . . . . . . . . . . . . . . 16 | 5. Scope of the API Definition . . . . . . . . . . . . . . . . . 17 | |||
| 6. Pre-Establishment Phase . . . . . . . . . . . . . . . . . . . 17 | 6. Pre-Establishment Phase . . . . . . . . . . . . . . . . . . . 18 | |||
| 6.1. Specifying Endpoints . . . . . . . . . . . . . . . . . . 18 | 6.1. Specifying Endpoints . . . . . . . . . . . . . . . . . . 19 | |||
| 6.1.1. Using Multicast Endpoints . . . . . . . . . . . . . . 20 | 6.1.1. Using Multicast Endpoints . . . . . . . . . . . . . . 21 | |||
| 6.1.2. Constraining Interfaces for Endpoints . . . . . . . . 21 | 6.1.2. Constraining Interfaces for Endpoints . . . . . . . . 22 | |||
| 6.1.3. Protocol-Specific Endpoints . . . . . . . . . . . . . 22 | 6.1.3. Protocol-Specific Endpoints . . . . . . . . . . . . . 23 | |||
| 6.1.4. Endpoint Examples . . . . . . . . . . . . . . . . . . 22 | 6.1.4. Endpoint Examples . . . . . . . . . . . . . . . . . . 23 | |||
| 6.1.5. Multicast Examples . . . . . . . . . . . . . . . . . 23 | 6.1.5. Multicast Examples . . . . . . . . . . . . . . . . . 24 | |||
| 6.2. Specifying Transport Properties . . . . . . . . . . . . . 26 | 6.2. Specifying Transport Properties . . . . . . . . . . . . . 27 | |||
| 6.2.1. Reliable Data Transfer (Connection) . . . . . . . . . 29 | 6.2.1. Reliable Data Transfer (Connection) . . . . . . . . . 30 | |||
| 6.2.2. Preservation of Message Boundaries . . . . . . . . . 29 | 6.2.2. Preservation of Message Boundaries . . . . . . . . . 30 | |||
| 6.2.3. Configure Per-Message Reliability . . . . . . . . . . 29 | 6.2.3. Configure Per-Message Reliability . . . . . . . . . . 30 | |||
| 6.2.4. Preservation of Data Ordering . . . . . . . . . . . . 30 | 6.2.4. Preservation of Data Ordering . . . . . . . . . . . . 31 | |||
| 6.2.5. Use 0-RTT Session Establishment with a Safely | 6.2.5. Use 0-RTT Session Establishment with a Safely | |||
| Replayable Message . . . . . . . . . . . . . . . . . 30 | Replayable Message . . . . . . . . . . . . . . . . . 31 | |||
| 6.2.6. Multistream Connections in Group . . . . . . . . . . 30 | 6.2.6. Multistream Connections in Group . . . . . . . . . . 31 | |||
| 6.2.7. Full Checksum Coverage on Sending . . . . . . . . . . 30 | 6.2.7. Full Checksum Coverage on Sending . . . . . . . . . . 31 | |||
| 6.2.8. Full Checksum Coverage on Receiving . . . . . . . . . 31 | 6.2.8. Full Checksum Coverage on Receiving . . . . . . . . . 32 | |||
| 6.2.9. Congestion control . . . . . . . . . . . . . . . . . 31 | 6.2.9. Congestion control . . . . . . . . . . . . . . . . . 32 | |||
| 6.2.10. Keep alive . . . . . . . . . . . . . . . . . . . . . 31 | 6.2.10. Keep alive . . . . . . . . . . . . . . . . . . . . . 32 | |||
| 6.2.11. Interface Instance or Type . . . . . . . . . . . . . 32 | 6.2.11. Interface Instance or Type . . . . . . . . . . . . . 33 | |||
| 6.2.12. Provisioning Domain Instance or Type . . . . . . . . 33 | 6.2.12. Provisioning Domain Instance or Type . . . . . . . . 34 | |||
| 6.2.13. Use Temporary Local Address . . . . . . . . . . . . . 34 | 6.2.13. Use Temporary Local Address . . . . . . . . . . . . . 35 | |||
| 6.2.14. Multipath Transport . . . . . . . . . . . . . . . . . 34 | 6.2.14. Multipath Transport . . . . . . . . . . . . . . . . . 35 | |||
| 6.2.15. Advertisement of Alternative Addresses . . . . . . . 35 | 6.2.15. Advertisement of Alternative Addresses . . . . . . . 36 | |||
| 6.2.16. Direction of communication . . . . . . . . . . . . . 35 | 6.2.16. Direction of communication . . . . . . . . . . . . . 36 | |||
| 6.2.17. Notification of ICMP soft error message arrival . . . 36 | 6.2.17. Notification of ICMP soft error message arrival . . . 37 | |||
| 6.2.18. Initiating side is not the first to write . . . . . . 36 | 6.2.18. Initiating side is not the first to write . . . . . . 37 | |||
| 6.3. Specifying Security Parameters and Callbacks . . . . . . 37 | 6.3. Specifying Security Parameters and Callbacks . . . . . . 38 | |||
| 6.3.1. Specifying Security Parameters on a Preconnection . . 37 | 6.3.1. Allowed security protocols . . . . . . . . . . . . . 39 | |||
| 6.3.2. Connection Establishment Callbacks . . . . . . . . . 39 | 6.3.2. Certificate bundles . . . . . . . . . . . . . . . . . 40 | |||
| 7. Establishing Connections . . . . . . . . . . . . . . . . . . 40 | 6.3.3. Pinned server certificate . . . . . . . . . . . . . . 40 | |||
| 7.1. Active Open: Initiate . . . . . . . . . . . . . . . . . . 40 | 6.3.4. Application-layer protocol negotiation . . . . . . . 40 | |||
| 7.2. Passive Open: Listen . . . . . . . . . . . . . . . . . . 41 | 6.3.5. Groups, ciphersuites, and signature algorithms . . . 41 | |||
| 7.3. Peer-to-Peer Establishment: Rendezvous . . . . . . . . . 43 | 6.3.6. Session cache options . . . . . . . . . . . . . . . . 41 | |||
| 7.4. Connection Groups . . . . . . . . . . . . . . . . . . . . 44 | 6.3.7. Pre-shared key . . . . . . . . . . . . . . . . . . . 41 | |||
| 7.5. Adding and Removing Endpoints on a Connection . . . . . . 46 | 6.3.8. Connection Establishment Callbacks . . . . . . . . . 42 | |||
| 8. Managing Connections . . . . . . . . . . . . . . . . . . . . 47 | 7. Establishing Connections . . . . . . . . . . . . . . . . . . 42 | |||
| 8.1. Generic Connection Properties . . . . . . . . . . . . . . 49 | 7.1. Active Open: Initiate . . . . . . . . . . . . . . . . . . 43 | |||
| 7.2. Passive Open: Listen . . . . . . . . . . . . . . . . . . 44 | ||||
| 7.3. Peer-to-Peer Establishment: Rendezvous . . . . . . . . . 45 | ||||
| 7.4. Connection Groups . . . . . . . . . . . . . . . . . . . . 47 | ||||
| 7.5. Adding and Removing Endpoints on a Connection . . . . . . 49 | ||||
| 8. Managing Connections . . . . . . . . . . . . . . . . . . . . 50 | ||||
| 8.1. Generic Connection Properties . . . . . . . . . . . . . . 51 | ||||
| 8.1.1. Required Minimum Corruption Protection Coverage for | 8.1.1. Required Minimum Corruption Protection Coverage for | |||
| Receiving . . . . . . . . . . . . . . . . . . . . . . 49 | Receiving . . . . . . . . . . . . . . . . . . . . . . 52 | |||
| 8.1.2. Connection Priority . . . . . . . . . . . . . . . . . 50 | 8.1.2. Connection Priority . . . . . . . . . . . . . . . . . 52 | |||
| 8.1.3. Timeout for Aborting Connection . . . . . . . . . . . 50 | 8.1.3. Timeout for Aborting Connection . . . . . . . . . . . 52 | |||
| 8.1.4. Timeout for keep alive packets . . . . . . . . . . . 50 | 8.1.4. Timeout for keep alive packets . . . . . . . . . . . 53 | |||
| 8.1.5. Connection Group Transmission Scheduler . . . . . . . 51 | 8.1.5. Connection Group Transmission Scheduler . . . . . . . 53 | |||
| 8.1.6. Capacity Profile . . . . . . . . . . . . . . . . . . 51 | 8.1.6. Capacity Profile . . . . . . . . . . . . . . . . . . 53 | |||
| 8.1.7. Policy for using Multipath Transports . . . . . . . . 53 | 8.1.7. Policy for using Multipath Transports . . . . . . . . 55 | |||
| 8.1.8. Bounds on Send or Receive Rate . . . . . . . . . . . 54 | 8.1.8. Bounds on Send or Receive Rate . . . . . . . . . . . 56 | |||
| 8.1.9. Group Connection Limit . . . . . . . . . . . . . . . 54 | 8.1.9. Group Connection Limit . . . . . . . . . . . . . . . 56 | |||
| 8.1.10. Isolate Session . . . . . . . . . . . . . . . . . . . 54 | 8.1.10. Isolate Session . . . . . . . . . . . . . . . . . . . 57 | |||
| 8.1.11. Read-only Connection Properties . . . . . . . . . . . 55 | 8.1.11. Read-only Connection Properties . . . . . . . . . . . 57 | |||
| 8.2. TCP-specific Properties: User Timeout Option (UTO) . . . 56 | 8.2. TCP-specific Properties: User Timeout Option (UTO) . . . 59 | |||
| 8.2.1. Advertised User Timeout . . . . . . . . . . . . . . . 57 | 8.2.1. Advertised User Timeout . . . . . . . . . . . . . . . 59 | |||
| 8.2.2. User Timeout Enabled . . . . . . . . . . . . . . . . 57 | 8.2.2. User Timeout Enabled . . . . . . . . . . . . . . . . 60 | |||
| 8.2.3. Timeout Changeable . . . . . . . . . . . . . . . . . 57 | 8.2.3. Timeout Changeable . . . . . . . . . . . . . . . . . 60 | |||
| 8.3. Connection Lifecycle Events . . . . . . . . . . . . . . . 58 | ||||
| 8.3.1. Soft Errors . . . . . . . . . . . . . . . . . . . . . 58 | 8.3. Connection Lifecycle Events . . . . . . . . . . . . . . . 60 | |||
| 8.3.2. Path change . . . . . . . . . . . . . . . . . . . . . 58 | 8.3.1. Soft Errors . . . . . . . . . . . . . . . . . . . . . 60 | |||
| 9. Data Transfer . . . . . . . . . . . . . . . . . . . . . . . . 58 | 8.3.2. Path change . . . . . . . . . . . . . . . . . . . . . 60 | |||
| 9.1. Messages and Framers . . . . . . . . . . . . . . . . . . 58 | 9. Data Transfer . . . . . . . . . . . . . . . . . . . . . . . . 61 | |||
| 9.1.1. Message Contexts . . . . . . . . . . . . . . . . . . 59 | 9.1. Messages and Framers . . . . . . . . . . . . . . . . . . 61 | |||
| 9.1.2. Message Framers . . . . . . . . . . . . . . . . . . . 59 | 9.1.1. Message Contexts . . . . . . . . . . . . . . . . . . 61 | |||
| 9.1.3. Message Properties . . . . . . . . . . . . . . . . . 62 | 9.1.2. Message Framers . . . . . . . . . . . . . . . . . . . 61 | |||
| 9.2. Sending Data . . . . . . . . . . . . . . . . . . . . . . 68 | 9.1.3. Message Properties . . . . . . . . . . . . . . . . . 64 | |||
| 9.2.1. Basic Sending . . . . . . . . . . . . . . . . . . . . 68 | 9.2. Sending Data . . . . . . . . . . . . . . . . . . . . . . 70 | |||
| 9.2.2. Send Events . . . . . . . . . . . . . . . . . . . . . 69 | 9.2.1. Basic Sending . . . . . . . . . . . . . . . . . . . . 70 | |||
| 9.2.3. Partial Sends . . . . . . . . . . . . . . . . . . . . 70 | 9.2.2. Send Events . . . . . . . . . . . . . . . . . . . . . 71 | |||
| 9.2.4. Batching Sends . . . . . . . . . . . . . . . . . . . 71 | 9.2.3. Partial Sends . . . . . . . . . . . . . . . . . . . . 72 | |||
| 9.2.5. Send on Active Open: InitiateWithSend . . . . . . . . 71 | 9.2.4. Batching Sends . . . . . . . . . . . . . . . . . . . 73 | |||
| 9.2.6. Priority and the Transport Services API . . . . . . . 72 | 9.2.5. Send on Active Open: InitiateWithSend . . . . . . . . 73 | |||
| 9.3. Receiving Data . . . . . . . . . . . . . . . . . . . . . 72 | 9.2.6. Priority and the Transport Services API . . . . . . . 74 | |||
| 9.3.1. Enqueuing Receives . . . . . . . . . . . . . . . . . 73 | 9.3. Receiving Data . . . . . . . . . . . . . . . . . . . . . 74 | |||
| 9.3.2. Receive Events . . . . . . . . . . . . . . . . . . . 73 | 9.3.1. Enqueuing Receives . . . . . . . . . . . . . . . . . 75 | |||
| 9.3.3. Receive Message Properties . . . . . . . . . . . . . 76 | 9.3.2. Receive Events . . . . . . . . . . . . . . . . . . . 75 | |||
| 10. Connection Termination . . . . . . . . . . . . . . . . . . . 78 | 9.3.3. Receive Message Properties . . . . . . . . . . . . . 78 | |||
| 11. Connection State and Ordering of Operations and Events . . . 79 | 10. Connection Termination . . . . . . . . . . . . . . . . . . . 80 | |||
| 12. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 81 | 11. Connection State and Ordering of Operations and Events . . . 81 | |||
| 13. Privacy and Security Considerations . . . . . . . . . . . . . 81 | 12. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 83 | |||
| 14. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . 83 | 13. Privacy and Security Considerations . . . . . . . . . . . . . 83 | |||
| 15. References . . . . . . . . . . . . . . . . . . . . . . . . . 83 | 14. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . 85 | |||
| 15.1. Normative References . . . . . . . . . . . . . . . . . . 83 | 15. References . . . . . . . . . . . . . . . . . . . . . . . . . 85 | |||
| 15.2. Informative References . . . . . . . . . . . . . . . . . 84 | 15.1. Normative References . . . . . . . . . . . . . . . . . . 85 | |||
| Appendix A. Implementation Mapping . . . . . . . . . . . . . . . 88 | 15.2. Informative References . . . . . . . . . . . . . . . . . 86 | |||
| A.1. Types . . . . . . . . . . . . . . . . . . . . . . . . . . 88 | Appendix A. Implementation Mapping . . . . . . . . . . . . . . . 90 | |||
| A.2. Events and Errors . . . . . . . . . . . . . . . . . . . . 89 | A.1. Types . . . . . . . . . . . . . . . . . . . . . . . . . . 90 | |||
| A.3. Time Duration . . . . . . . . . . . . . . . . . . . . . . 89 | A.2. Events and Errors . . . . . . . . . . . . . . . . . . . . 91 | |||
| Appendix B. Convenience Functions . . . . . . . . . . . . . . . 89 | A.3. Time Duration . . . . . . . . . . . . . . . . . . . . . . 91 | |||
| B.1. Adding Preference Properties . . . . . . . . . . . . . . 89 | Appendix B. Convenience Functions . . . . . . . . . . . . . . . 91 | |||
| B.2. Transport Property Profiles . . . . . . . . . . . . . . . 90 | B.1. Adding Preference Properties . . . . . . . . . . . . . . 91 | |||
| B.2.1. reliable-inorder-stream . . . . . . . . . . . . . . . 90 | B.2. Transport Property Profiles . . . . . . . . . . . . . . . 91 | |||
| B.2.2. reliable-message . . . . . . . . . . . . . . . . . . 90 | B.2.1. reliable-inorder-stream . . . . . . . . . . . . . . . 92 | |||
| B.2.3. unreliable-datagram . . . . . . . . . . . . . . . . . 91 | B.2.2. reliable-message . . . . . . . . . . . . . . . . . . 92 | |||
| B.2.3. unreliable-datagram . . . . . . . . . . . . . . . . . 92 | ||||
| Appendix C. Relationship to the Minimal Set of Transport Services | Appendix C. Relationship to the Minimal Set of Transport Services | |||
| for End Systems . . . . . . . . . . . . . . . . . . . . . 92 | for End Systems . . . . . . . . . . . . . . . . . . . . . 93 | |||
| Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 95 | Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 96 | |||
| 1. Introduction | 1. Introduction | |||
| This document specifies an abstract application programming interface | This document specifies an abstract application programming interface | |||
| (API) that describes the interface component of the high-level | (API) that describes the interface component of the high-level | |||
| Transport Services architecture defined in [I-D.ietf-taps-arch]. A | Transport Services architecture defined in [I-D.ietf-taps-arch]. A | |||
| Transport Services system supports asynchronous, atomic transmission | Transport Services system supports asynchronous, atomic transmission | |||
| of messages over transport protocols and network paths dynamically | of messages over transport protocols and network paths dynamically | |||
| selected at runtime, in environments where an endpoint selects from | selected at runtime, in environments where an endpoint selects from | |||
| multiple network paths and potential transport protocols. | multiple network paths and potential transport protocols. | |||
| skipping to change at page 10, line 10 ¶ | skipping to change at page 10, line 24 ¶ | |||
| This is an example of how an application might listen for incoming | This is an example of how an application might listen for incoming | |||
| Connections using the Transport Services API, receive a request, and | Connections using the Transport Services API, receive a request, and | |||
| send a response. | send a response. | |||
| 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(preserveMsgBoundaries) | |||
| // 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(serverCertificate, myCertificate) | |||
| 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 19, line 32 ¶ | skipping to change at page 20, line 32 ¶ | |||
| The Resolve action on a Preconnection can be used to obtain a list of | The Resolve action on a Preconnection can be used to obtain a list of | |||
| available local interfaces. | available local interfaces. | |||
| Note that an IPv6 address specified with a scope zone ID (e.g. | Note that an IPv6 address specified with a scope zone ID (e.g. | |||
| fe80::2001:db8%en0) is equivalent to WithIPAddress with an unscoped | fe80::2001:db8%en0) is equivalent to WithIPAddress with an unscoped | |||
| address and WithInterface together. | address and WithInterface together. | |||
| Applications creating Endpoint objects using WithHostName SHOULD | Applications creating Endpoint objects using WithHostName SHOULD | |||
| provide fully-qualified domain names (FQDNs). Not providing an FQDN | provide fully-qualified domain names (FQDNs). Not providing an FQDN | |||
| will result in the Transport Services Implementation needing to | will result in the Transport Services Implementation needing to use | |||
| resolve using DNS search domains, which might lead to inconsistent or | DNS search domains for name resolution, which might lead to | |||
| unpredictable behavior. | inconsistent or unpredictable behavior. | |||
| The design of the API MUST NOT permit an Endpoint object to be | The design of the API MUST NOT permit an Endpoint object to be | |||
| configured with multiple Endpoint Identifiers of the same type. For | configured with multiple Endpoint Identifiers of the same type. For | |||
| example, an Endpoint object cannot specify two IP addresses. Two | example, an Endpoint object cannot specify two IP addresses. Two | |||
| separate IP addresses are represented as two Endpoint objects. If a | separate IP addresses are represented as two Endpoint objects. If a | |||
| Preconnection specifies a Remote Endpoint with a specific IP address | Preconnection specifies a Remote Endpoint with a specific IP address | |||
| set, it will only establish Connections to that IP address. If, on | set, it will only establish Connections to that IP address. If, on | |||
| the other hand, a Remote Endpoint specifies a hostname but no | the other hand, a Remote Endpoint specifies a hostname but no | |||
| addresses, the Transport Services Implementation can perform name | addresses, the Transport Services Implementation can perform name | |||
| resolution and attempt using any address derived from the original | resolution and attempt using any address derived from the original | |||
| skipping to change at page 37, line 27 ¶ | skipping to change at page 38, line 27 ¶ | |||
| 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). | |||
| This document specifies an abstract API, which could appear to | This document specifies an abstract API, which could appear to | |||
| conflict with the need for security parameters to be unambiguous. | conflict with the need for security parameters to be unambiguous. | |||
| The Transport Services System SHOULD provide reasonable, secure | The Transport Services System SHOULD provide reasonable, secure | |||
| defaults for each enumerated security parameter, such that users of | defaults for each enumerated security parameter, such that users of | |||
| the system only need to specify parameters required to establish a | the system only need to specify parameters required to establish a | |||
| secure connection (e.g., 'server-certificate', 'client-certificate'). | secure connection (e.g., serverCertificate, clientCertificate). | |||
| Specifying specific security parameters from enumerated values (e.g., | Specifying security parameters from enumerated values (e.g., specific | |||
| specific ciphersuites) might constrain the Transport Protocols that | ciphersuites) might constrain which transport protocols can be | |||
| can be selected during connection establishment. | selected during Connection establishment. | |||
| Except as noted below, as with the rest of the Transport Services | Security configuration parameters are specified in the pre- | |||
| API, exact names of parameters and/or values of enumerations (e.g., | establishment phase and are created as follows: | |||
| ciphersuites) used in the security parameters are system and | ||||
| implementation specific, and ought to be chosen to follow the | ||||
| principle of least surprise for users of the platform / language | ||||
| environment in question. | ||||
| 6.3.1. Specifying Security Parameters on a Preconnection | ||||
| Common security parameters such as TLS ciphersuites are known to | ||||
| implementations. Applications SHOULD use common safe defaults for | ||||
| these values whenever possible. However, as discussed in [RFC8922], | ||||
| many transport security protocols require specific security | ||||
| parameters and constraints from the client at the time of | ||||
| configuration and actively during a handshake. | ||||
| The configuration parameters need to be specified in the pre- | ||||
| connection phase and are created as follows: | ||||
| SecurityParameters := NewSecurityParameters() | SecurityParameters := NewSecurityParameters() | |||
| Security configuration parameters and sample usage follow: | ||||
| * One or more certificate bundles identifying the Local Endpoint, | Specific parameters are added using a call to Set() on the | |||
| whether as a server certificate or a client certificate. Multiple | SecurityParameters. | |||
| bundles may be provided to allow selection among different | ||||
| protocol stacks that may require differently formatted bundles. | ||||
| The form and format of the certificate bundle is implementation- | ||||
| specific. Note that if the private keys associated with a bundle | ||||
| are not available, e.g., since they are stored in hardware | ||||
| security modules (HSMs), handshake callbacks are necessary. See | ||||
| below for details. | ||||
| SecurityParameters.Set(server-certificate, myCertificateBundle[]) | As with the rest of the Transport Services API, the exact names of | |||
| SecurityParameters.Set(client-certificate, myCertificateBundle[]) | parameters and/or values of enumerations (e.g., ciphersuites) used in | |||
| the security parameters are system- and implementation-specific, and | ||||
| ought to be chosen to follow the principle of least surprise for | ||||
| users of the platform / language environment in question. | ||||
| * One or more certificate chains to use as pinned server | For security parameters that are enumerations of known values, such | |||
| certificates, such that connecting will fail if the presented | as TLS ciphersuites, implementations are responsible for exposing the | |||
| server certificate does not match one of the supplied pinned | set of values they support. For security parameters that are not | |||
| certificates. The form and format of the certificate chain is | simple value types, such as certificates and keys, implementations | |||
| implementation-specific. | are responsible for exposing types appropriate for the platform / | |||
| language environment. | ||||
| SecurityParameters.Set(pinned-server-certificate, yourCertificateChain[]) | Applications SHOULD use common safe defaults for values such as TLS | |||
| ciphersuites whenever possible. However, as discussed in [RFC8922], | ||||
| many transport security protocols require specific security | ||||
| parameters and constraints from the client at the time of | ||||
| configuration and actively during a handshake. | ||||
| * Application-layer protocol negotiation (ALPN) values: used to | The set of security parameters defined here is not exhaustive, but | |||
| indicate which application-layer protocols are negotiated by the | illustrative. Implementations SHOULD expose an equivalent to the | |||
| security protocol layer. See [ALPN] for definition of the ALPN | parameters listed below to allow for sufficient configuration of | |||
| field. Note that the Transport Services System can provide ALPN | security parameters, but the details are expected to vary based on | |||
| values automatically, based on the protocols being used, if not | platform and implementation constraints. Applications MUST be able | |||
| explicitly specified by the application. | to constrain the security protocols and versions that the Transport | |||
| Services System will use. | ||||
| SecurityParameters.Set(alpn, "h2") | Representation of security parameters in implementations ought to | |||
| parallel that chosen for Transport Property names as suggested in | ||||
| Section 5. | ||||
| * Supported groups, ciphersuites, algorithms: Used to restrict what | ||||
| parameters are used by underlying transport security protocols. | ||||
| When not specified, these algorithms should use known and safe | ||||
| defaults for the system. | ||||
| SecurityParameters.Set(supported-group, "secp256r1") | ||||
| SecurityParameters.Set(ciphersuite, "TLS_AES_128_GCM_SHA256") | ||||
| SecurityParameters.Set(signature-algorithm, "ecdsa_secp256r1_sha256") | ||||
| * Session cache management: Used to tune session cache capacity, | ||||
| lifetime, and other policies. | ||||
| SecurityParameters.Set(max-cached-sessions, 16) | ||||
| SecurityParameters.Set(cached-session-lifetime-seconds, 3600) | ||||
| * Pre-Shared Key import: Used to install pre-shared keying material | ||||
| established out-of-band. Each instance of pre-shared keying | ||||
| material is associated with some identity that typically | ||||
| identifies its use or has some protocol-specific meaning to the | ||||
| Remote Endpoint. Note that use of a pre-shared key will tend to | ||||
| select a single security protocol, and therefore directly select a | ||||
| single underlying protocol stack. | ||||
| SecurityParameters.Set(pre-shared-key, key, myIdentity) | ||||
| Connections that use Transport Services SHOULD use security in | Connections that use Transport Services SHOULD use security in | |||
| general. However, for compatibility with endpoints that do not | general. However, for compatibility with endpoints that do not | |||
| support transport security protocols (such as a TCP endpoint that | support transport security protocols (such as a TCP endpoint that | |||
| does not support TLS), applications can initialize their security | does not support TLS), applications can initialize their security | |||
| parameters to indicate that security can be disabled, or can be | parameters to indicate that security can be disabled, or can be | |||
| opportunistic. If security is disabled, the Transport Services | opportunistic. If security is disabled, the Transport Services | |||
| system will not attempt to add transport security automatically. If | system will not attempt to add transport security automatically. If | |||
| security is opportunistic, it will allow Connections without | security is opportunistic, it will allow Connections without | |||
| transport security, but will still attempt to use unauthenticated | transport security, but will still attempt to use unauthenticated | |||
| security if available. | security if available. | |||
| SecurityParameters := NewDisabledSecurityParameters() | SecurityParameters := NewDisabledSecurityParameters() | |||
| SecurityParameters := NewOpportunisticSecurityParameters() | SecurityParameters := NewOpportunisticSecurityParameters() | |||
| Representation of security parameters in implementations ought to | 6.3.1. Allowed security protocols | |||
| parallel that chosen for Transport Property names as suggested in | ||||
| Section 5. | ||||
| 6.3.2. Connection Establishment Callbacks | Name: allowedSecurityProtocols | |||
| Type: Implementation-specific enumeration of security protocol names | ||||
| and/or versions. | ||||
| Default: Implementation-specific best available security protocols | ||||
| This property allows applications to restrict which security | ||||
| protocols and security protocol versions can be used in the protocol | ||||
| stack. Applications MUST be able to constrain the security protocols | ||||
| used by this or an equivalent mechanism, in order to prevent the use | ||||
| of security protocols with unknown or weak security properties. | ||||
| SecurityParameters.Set(allowedSecurityProtocols, [ tls_1_2, tls_1_3 ]) | ||||
| 6.3.2. Certificate bundles | ||||
| Names: serverCertificate, clientCertificate | ||||
| Type: Array of certificate objects | ||||
| Default: Empty array | ||||
| One or more certificate bundles identifying the Local Endpoint, | ||||
| whether as a server certificate or a client certificate. Multiple | ||||
| bundles may be provided to allow selection among different protocol | ||||
| stacks that may require differently formatted bundles. The form and | ||||
| format of the certificate bundle is implementation-specific. Note | ||||
| that if the private keys associated with a bundle are not available, | ||||
| e.g., since they are stored in hardware security modules (HSMs), | ||||
| handshake callbacks are necessary. See below for details. | ||||
| SecurityParameters.Set(serverCertificate, myCertificateBundle[]) | ||||
| SecurityParameters.Set(clientCertificate, myCertificateBundle[]) | ||||
| 6.3.3. Pinned server certificate | ||||
| Name: pinnedServerCertificate | ||||
| Type: Array of certificate chain objects | ||||
| Default: Empty array | ||||
| Zero or more certificate chains to use as pinned server certificates, | ||||
| such that connecting will fail if the presented server certificate | ||||
| does not match one of the supplied pinned certificates. The form and | ||||
| format of the certificate chain is implementation-specific. | ||||
| SecurityParameters.Set(pinnedServerCertificate, yourCertificateChain[]) | ||||
| 6.3.4. Application-layer protocol negotiation | ||||
| Name: alpn | ||||
| Type: Array of Strings | ||||
| Default: Automatic selection | ||||
| Application-layer protocol negotiation (ALPN) values: used to | ||||
| indicate which application-layer protocols are negotiated by the | ||||
| security protocol layer. See [ALPN] for definition of the ALPN | ||||
| field. Note that the Transport Services System can provide ALPN | ||||
| values automatically, based on the protocols being used, if not | ||||
| explicitly specified by the application. | ||||
| SecurityParameters.Set(alpn, ["h2"]) | ||||
| 6.3.5. Groups, ciphersuites, and signature algorithms | ||||
| Names: supportedGroup, ciphersuite, signatureAlgorithm | ||||
| Types: Arrays of implementation-specific enumerations | ||||
| Default: Automatic selection | ||||
| These are used to restrict what cryptographic parameters are used by | ||||
| underlying transport security protocols. When not specified, these | ||||
| algorithms should use known and safe defaults for the system. | ||||
| SecurityParameters.Set(supportedGroup, secp256r1) | ||||
| SecurityParameters.Set(ciphersuite, TLS_AES_128_GCM_SHA256) | ||||
| SecurityParameters.Set(signatureAlgorithm, ecdsa_secp256r1_sha256) | ||||
| 6.3.6. Session cache options | ||||
| Names: maxCachedSessions, cachedSessionLifetimeSeconds | ||||
| Type: Integer | ||||
| Default: Automatic selection | ||||
| These values are used to tune session cache capacity and lifetime, | ||||
| and can be extended to include other policies. | ||||
| SecurityParameters.Set(maxCachedSessions, 16) | ||||
| SecurityParameters.Set(cachedSessionLifetimeSeconds, 3600) | ||||
| 6.3.7. Pre-shared key | ||||
| Name: preSharedKey | ||||
| Type: Key and identity (platform-specific) | ||||
| Default: None | ||||
| Used to install pre-shared keying material established out-of-band. | ||||
| Each instance of pre-shared keying material is associated with some | ||||
| identity that typically identifies its use or has some protocol- | ||||
| specific meaning to the Remote Endpoint. Note that use of a pre- | ||||
| shared key will tend to select a single security protocol, and | ||||
| therefore directly select a single underlying protocol stack. A | ||||
| Transport Services API could express None in an environment-typical | ||||
| way, e.g., as a Union type or special value. | ||||
| SecurityParameters.Set(preSharedKey, key, myIdentity) | ||||
| 6.3.8. Connection Establishment Callbacks | ||||
| Security decisions, especially pertaining to trust, are not static. | Security decisions, especially pertaining to trust, are not static. | |||
| Once configured, parameters can also be supplied during Connection | Once configured, parameters can also be supplied during Connection | |||
| establishment. These are best handled as client-provided callbacks. | establishment. These are best handled as client-provided callbacks. | |||
| Callbacks block the progress of the Connection establishment, which | Callbacks block the progress of the Connection establishment, which | |||
| distinguishes them from other events in the transport system. How | distinguishes them from other events in the transport system. How | |||
| callbacks and events are implemented is specific to each | callbacks and events are implemented is specific to each | |||
| implementation. Security handshake callbacks that could be invoked | implementation. Security handshake callbacks that could be invoked | |||
| during Connection establishment include: | during Connection establishment include: | |||
| * Trust verification callback: Invoked when a Remote Endpoint's | * Trust verification callback: Invoked when a Remote Endpoint's | |||
| skipping to change at page 81, line 22 ¶ | skipping to change at page 83, line 22 ¶ | |||
| This document describes a generic API for interacting with a | This document describes a generic API for interacting with a | |||
| Transport Services system. Part of this API includes configuration | Transport Services system. Part of this API includes configuration | |||
| details for transport security protocols, as discussed in | details for transport security protocols, as discussed in | |||
| Section 6.3. It does not recommend use (or disuse) of specific | Section 6.3. It does not recommend use (or disuse) of specific | |||
| algorithms or protocols. Any API-compatible transport security | algorithms or protocols. Any API-compatible transport security | |||
| protocol ought to work in a Transport Services system. Security | protocol ought to work in a Transport Services system. Security | |||
| considerations for these protocols are discussed in the respective | considerations for these protocols are discussed in the respective | |||
| specifications. | specifications. | |||
| [I-D.ietf-taps-arch] provides general security considerations and | ||||
| requirements for any system that implements the Transport Services | ||||
| architecture. These include recommendations of relevance to the API, | ||||
| e.g. regarding the use of keying material. | ||||
| The described API is used to exchange information between an | The described API is used to exchange information between an | |||
| application and the Transport Services system. While it is not | application and the Transport Services system. While it is not | |||
| necessarily expected that both systems are implemented by the same | necessarily expected that both systems are implemented by the same | |||
| authority, it is expected that the Transport Services Implementation | authority, it is expected that the Transport Services Implementation | |||
| is either provided as a library that is selected by the application | is either provided as a library that is selected by the application | |||
| from a trusted party, or that it is part of the operating system that | from a trusted party, or that it is part of the operating system that | |||
| the application also relies on for other tasks. | the application also relies on for other tasks. | |||
| In either case, the Transport Services API is an internal interface | In either case, the Transport Services API is an internal interface | |||
| that is used to exchange information locally between two systems. | that is used to exchange information locally between two systems. | |||
| skipping to change at page 82, line 39 ¶ | skipping to change at page 84, line 42 ¶ | |||
| Messages. | Messages. | |||
| The Transport Services API explicitly does not require the | The Transport Services API explicitly does not require the | |||
| application to resolve names, though there is a tradeoff between | application to resolve names, though there is a tradeoff between | |||
| early and late binding of addresses to names. Early binding allows | early and late binding of addresses to names. Early binding allows | |||
| the Transport Services Implementation to reduce Connection setup | the Transport Services Implementation to reduce Connection setup | |||
| latency, at the cost of potentially limited scope for alternate path | latency, at the cost of potentially limited scope for alternate path | |||
| discovery during Connection establishment, as well as potential | discovery during Connection establishment, as well as potential | |||
| additional information leakage about application interest when used | additional information leakage about application interest when used | |||
| with a resolution method (such as DNS without TLS) which does not | with a resolution method (such as DNS without TLS) which does not | |||
| protect query confidentiality. | protect query confidentiality. Names used with the Transport | |||
| Services API SHOULD be fully-qualified domain names (FQDNs); not | ||||
| providing an FQDN will result in the Transport Services | ||||
| Implementation needing to to use DNS search domains for name | ||||
| resolution, which might lead to inconsistent or unpredictable | ||||
| behavior. | ||||
| 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 the application requires this or to implement a security | set if the application requires this or to implement a security | |||
| skipping to change at page 84, line 19 ¶ | skipping to change at page 86, line 27 ¶ | |||
| [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC | [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC | |||
| 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, | 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, | |||
| May 2017, <https://www.rfc-editor.org/rfc/rfc8174>. | May 2017, <https://www.rfc-editor.org/rfc/rfc8174>. | |||
| 15.2. Informative References | 15.2. Informative References | |||
| [I-D.ietf-taps-impl] | [I-D.ietf-taps-impl] | |||
| Brunstrom, A., Pauly, T., Enghardt, R., Tiesel, P. S., and | Brunstrom, A., Pauly, T., Enghardt, R., Tiesel, P. S., and | |||
| M. Welzl, "Implementing Interfaces to Transport Services", | M. Welzl, "Implementing Interfaces to Transport Services", | |||
| Work in Progress, Internet-Draft, draft-ietf-taps-impl-17, | Work in Progress, Internet-Draft, draft-ietf-taps-impl-18, | |||
| 9 November 2023, <https://datatracker.ietf.org/doc/html/ | 14 December 2023, <https://datatracker.ietf.org/doc/html/ | |||
| draft-ietf-taps-impl-17>. | draft-ietf-taps-impl-18>. | |||
| [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, | |||
| End of changes. 30 change blocks. | ||||
| 190 lines changed or deleted | 282 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/ | ||||