Summary

  • RFC 6525 let SCTP reset chosen streams — their sequence numbering, not the association — while unlisted streams carried on untouched.
  • Sender’s Last Assigned TSN marked the end of the old epoch. Until cumulative acknowledgment reached it, the receiver answered “In progress” and held newer data back.
  • Reconfiguration ran on its own monotonic request numbers and replay-stable responses. To forget a data sequence safely, the protocol first had to remember the act of forgetting.

Zero is a liar: why a stream cannot simply start over

An SCTP association carries many unidirectional streams at once. In RFC 4960, every DATA fragment took a Transmission Sequence Number across the whole association, while each ordered user message took a Stream Sequence Number inside its own stream. RFC 9260 keeps that division of labour: TSNs handle acknowledgment and duplicate detection, ordered delivery stays local to a stream.

The arrangement lets one association hold two histories at the same time. Stream 3 may have finished its old job while one of its fragments is still being retransmitted somewhere out on the wire. Snap its SSN back to zero too early and that straggler comes home looking like a citizen of the new era. The obvious fix — tear down the association — settles the ambiguity by destroying far more than the problem: every unrelated stream, every path context, every piece of state that was working fine.

RFC 6525, published in 2012, chose a scalpel instead. The RE-CONFIG chunk did not recall packets already in flight. It negotiated the exact moment when both endpoints could close one numbering epoch and open the next.

The last assigned TSN draws the boundary

An Outgoing SSN Reset Request carries a Re-configuration Request Sequence Number, a Response Sequence Number, Sender’s Last Assigned TSN and an optional stream list. Omit the list and every outgoing stream is in scope. Name the streams and the rest are left alone.

Sender’s Last Assigned TSN is the next TSN to be assigned, minus one — a line drawn in the sand at the last number the sender actually used. Before sending the request, the sender stops assigning new SSNs to the affected streams and queues whatever the application writes next. Keep transmitting while the outcome is unknown, and a single lost request leaves fresh sequence numbers on the wire still wearing the old interpretation.

The receiver compares that boundary against its cumulative acknowledgment point. If the point sits lower, the reset enters deferred processing: data for the affected streams with TSNs above the boundary is held locally, and a Re-configuration Response comes back reading “In progress.” That answer proves the request was understood. It does not pretend the reset is finished.

Only when cumulative acknowledgment reaches the named TSN does the receiver set the next expected SSN to zero for the selected streams, release the held TSNs and return success. Unlisted streams keep their sequence state throughout. A stream becomes new not at a moment one application declares, but at a boundary both endpoints can independently see.

The command to forget needed a memory of its own

RE-CONFIG requests use monotonically increasing numbers seeded from the initial TSN. A response copies the request number and reports one of a small set of verdicts: success, denial, wrong SSN, request already in progress, bad sequence number, or still processing.

If the most recent request arrives again as a retransmission, the receiver returns the same response it returned the first time. It does not perform a second reset. The operation that changes data numbering is therefore protected by an entirely separate control history — the eraser keeps its own ledger.

An “In progress” response restarts the requester’s reconfiguration timer without bumping the association error counters. It is not evidence of a failing path or congestion. After success, the sender resets the affected outgoing sequencing state, drains the queue and resumes numbering.

The peer may also simply refuse. RFC 6525 calls that an administrative decision and lets it stay configurable long after the association has formed. Supporting the extension buys you a language for requesting change; it does not surrender authority over every future change.

Incoming and outgoing are different control surfaces

An SCTP stream is unidirectional. The same stream number in the opposite direction is not automatically the other half of one conversation — any correlation is the application’s business. An endpoint that wants to reset the sequencing it receives must ask its peer to reset the peer’s outgoing stream. Whoever assigned the old numbers controls the real cutoff.

SSN/TSN Reset is a separate, broader beast. It resets all incoming and outgoing SSNs and picks new TSN starting points in both directions. The sender stops assigning TSNs while it is pending, and the procedure takes maximum-segment-lifetime precautions so TSN wraparound cannot be mistaken for progress. It is not merely a louder spelling of selected-stream reset.

RFC 6458 exposes SCTP sequences and notification surfaces to applications, which is why RFC 6525 requires explicit application enablement and a subscription to reconfiguration notifications. An application that assumes monotonically increasing numbers needs to be told when its epoch has changed.

Interleaving moved the counter, not the boundary

RFC 8260 enables user-message interleaving through I-DATA and 32-bit Message Identifiers. Reset stream sequencing in that mode and two MID counters — one for ordered messages, one for unordered — return to zero. The late TSN assignment that many interleaving schedulers rely on complicates the implementation; it does not abolish the old-data boundary.

Stream reset is also not partial reliability. RFC 7496 adds policies for abandoning a message by priority or by retransmission count. Abandonment answers how long a sender will chase one message. Reset answers when a stream’s sequence space may be reused. Different state, different promises.

The IANA SCTP Parameters registry assigns chunk type 130 to RE-CONFIG and records its parameter numbers. It can decode a packet capture. It cannot prove that an implementation supports the extension, that two endpoints negotiated it, or that an application switched it on.

Sources