Internet-Draft PPID based Frag. and Reass. for SCTP June 2024
Tüxen, et al. Expires 6 December 2024 [Page]
Workgroup:
Network Working Group
Internet-Draft:
draft-tuexen-tsvwg-sctp-ppid-frag-01
Published:
Intended Status:
Standards Track
Expires:
Authors:
M. Tüxen
Münster Univ. of Appl. Sciences
R. Jesup
Mozilla
H. Tschofenig

Payload Protocol Identifier based Fragmentation and Reassembly for the Stream Control Transmission Protocol

Abstract

This document describes a method for the Stream Control Transmission Protocol (SCTP) allowing the upper layer to perform fragmentation, reassembly, and interleaving of large ordered user messages by using the payload protocol identifier (PPID).

According to the base specification supporting fragmentation of large user messages is optional. And even if an SCTP implementation supports fragmentation, interleaving of user messages is not supported by the base specification.

Status of This Memo

This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.

Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.

Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."

This Internet-Draft will expire on 6 December 2024.

Table of Contents

1. Introduction

This document specifies a method to use PPIDs for fragmenting ordered large user messages. Using this method also allows the ability to interleave large user messages as provided by [RFC8260] in combination with using the SCTP_FRAGMENT_INTERLEAVE level_2 as described [RFC6458], Section 8.1.20.

Reasons to use this method include:

This method does not apply to user messages sent using partial reliability as described in [RFC3758].

The idea described in this document was already described in [I-D.ietf-rtcweb-data-channel]. In the final specification [RFC8831], this method is declared deprecated.

2. Conventions

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.

3. Sender Side Considerations

An upper layer splits a user message in one or more user message fragments. The upper layer SHOULD choose the size of the user message fragments such than SCTP level fragmentation is avoided.

The upper layer uses two PPIDs. It MUST use one PPID for all user messages fragments except the last one, and it MUST the other PPID for the last user message fragments.

All user message fragments belonging to the same user message MUST be sent on the same stream, reliable, and ordered in the sequence they belong to the user message. User message fragments sent on different stream MAY be sent in any order. This allows the interleaving of user messages sent on different streams.

User messages not requiring to be split into multiple user message fragments are sent as a single user message fragment with the PPID used for last user fragments.

4. Receiver Side Considerations

The upper layer MUST process user message fragments received on different streams independently. All user message fragments are received by the upper layer in the correct ordering and the PPID MUST be used to reconstruct the user message boundaries. A user message fragment with the PPID marking the last user message fragment is the last fragment of a use message. The next received user message fragment on the stream is the first fragment of the next user message.

An upper layer MUST deal with interleaving of user messages.

Please note that notifications, if enabled, can be provided by the SCTP implementation at any time.

5. Socket API Considerations

This document does not require and changes or additions to the Socket API described in [RFC6458].

6. IANA Considerations

This document does not make any requests for IANA.

7. Security Considerations

This document does not change the considerations given in [RFC9260].

8. References

8.1. Normative References

[RFC2119]
Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, , <https://www.rfc-editor.org/info/rfc2119>.
[RFC8174]
Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, , <https://www.rfc-editor.org/info/rfc8174>.
[RFC9260]
Stewart, R., Tüxen, M., and K. Nielsen, "Stream Control Transmission Protocol", RFC 9260, DOI 10.17487/RFC9260, , <https://www.rfc-editor.org/info/rfc9260>.

8.2. Informative References

[I-D.ietf-rtcweb-data-channel]
Jesup, R., Loreto, S., and M. Tüxen, "WebRTC Data Channels", Work in Progress, Internet-Draft, draft-ietf-rtcweb-data-channel-06, , <https://datatracker.ietf.org/doc/html/draft-ietf-rtcweb-data-channel-06>.
[RFC3758]
Stewart, R., Ramalho, M., Xie, Q., Tuexen, M., and P. Conrad, "Stream Control Transmission Protocol (SCTP) Partial Reliability Extension", RFC 3758, DOI 10.17487/RFC3758, , <https://www.rfc-editor.org/info/rfc3758>.
[RFC6458]
Stewart, R., Tuexen, M., Poon, K., Lei, P., and V. Yasevich, "Sockets API Extensions for the Stream Control Transmission Protocol (SCTP)", RFC 6458, DOI 10.17487/RFC6458, , <https://www.rfc-editor.org/info/rfc6458>.
[RFC8260]
Stewart, R., Tuexen, M., Loreto, S., and R. Seggelmann, "Stream Schedulers and User Message Interleaving for the Stream Control Transmission Protocol", RFC 8260, DOI 10.17487/RFC8260, , <https://www.rfc-editor.org/info/rfc8260>.
[RFC8831]
Jesup, R., Loreto, S., and M. Tüxen, "WebRTC Data Channels", RFC 8831, DOI 10.17487/RFC8831, , <https://www.rfc-editor.org/info/rfc8831>.

Authors' Addresses

Michael Tüxen
Münster University of Applied Sciences
Stegerwaldstrasse 39
48565 Steinfurt
Germany
Randell Jesup
Mozilla Corporation
1835 Horse Shoe Trl
Malvern, PA 19355
United States of America
Hannes Tschofenig