Skip to content

Fix SSN and MID in FORWARD-TSN and I-FORWARD-TSN - #187

Open
boivie wants to merge 1 commit into
webrtc:mainfrom
boivie:bug-u02-forward-tsn-ssn-zero-above-32767
Open

boivie wants to merge 1 commit into
webrtc:mainfrom
boivie:bug-u02-forward-tsn-ssn-zero-above-32767

Conversation

@boivie

@boivie boivie commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

When a partially reliable message with SSN >= 32768 (or MID >= 2^31 for I-FORWARD-TSN) was abandoned, the generated FORWARD-TSN or I-FORWARD-TSN chunk could carry sequence number 0 instead of the abandoned message's sequence number. Each chunk computes the highest skipped sequence number per stream from scratch starting from a baseline of 0, and under serial number arithmetic values in the upper half of the sequence number space are not greater than 0. As a result, 0 was never replaced whenever the abandoned range for a stream began in that half, including after earlier abandonments on the stream had already been SACKed.

A receiver seeing sequence number 0 either stalls delivery on the stream (at SSN 32768) or drops messages or may abort the association.

Per RFC 3758 (sections 3.2 and 3.5, C4) and RFC 8260 (section 2.3.1), each stream entry must hold the highest abandoned sequence number in the skipped TSN range.

Bug: https://issues.webrtc.org/590882116

When a partially reliable message with SSN >= 32768 (or MID >= 2^31 for
I-FORWARD-TSN) was abandoned, the generated FORWARD-TSN or I-FORWARD-TSN
chunk could carry sequence number 0 instead of the abandoned message's
sequence number. Each chunk computes the highest skipped sequence number
per stream from scratch starting from a baseline of 0, and under serial
number arithmetic values in the upper half of the sequence number space
are not greater than 0. As a result, 0 was never replaced whenever the
abandoned range for a stream began in that half, including after earlier
abandonments on the stream had already been SACKed.

A receiver seeing sequence number 0 either stalls delivery on the stream
(at SSN 32768) or drops messages or may abort the association. 

Per RFC 3758 (sections 3.2 and 3.5, C4) and RFC 8260 (section 2.3.1), 
each stream entry must hold the highest abandoned sequence number in the 
skipped TSN range.

Bug: https://issues.webrtc.org/590882116
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant