Skip to content

Accept gap-filling DATA chunks above reassembly watermark - #188

Open
boivie wants to merge 1 commit into
webrtc:mainfrom
boivie:bug-u33-gap-filler-dropped-above-watermark
Open

boivie wants to merge 1 commit into
webrtc:mainfrom
boivie:bug-u33-gap-filler-dropped-above-watermark

Conversation

@boivie

@boivie boivie commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator

Dropping every incoming DATA chunk once the reassembly queue reached its 90% high watermark also dropped the next expected TSN. If out-of-order data reached the watermark (for example from a peer overshooting the advertised window or acting on a reordered SACK with a stale a_rwnd), the missing chunk could never be accepted, leaving buffered ordered data behind the gap permanently undeliverable. The same drop also prevented fragments of a large in-order message from completing within the remaining 10% headroom up to the configured buffer limit.

RFC 9260 section 6.2 suggests discarding the highest buffered TSN to make room when the advertised window is zero, but this receiver never reneges on already gap-acked data. Using the headroom between the high watermark and the maximum buffer size to accept chunks that advance the cumulative TSN ack lets gaps close without revoking previously acknowledged TSNs.

When chunks are dropped, an immediate SACK will be sent to inform the sender about the empty receiver window.

Dropping every incoming DATA chunk once the reassembly queue reached its
90% high watermark also dropped the next expected TSN. If out-of-order
data reached the watermark (for example from a peer overshooting the
advertised window or acting on a reordered SACK with a stale a_rwnd),
the missing chunk could never be accepted, leaving buffered ordered data
behind the gap permanently undeliverable. The same drop also prevented
fragments of a large in-order message from completing within the
remaining 10% headroom up to the configured buffer limit.

RFC 9260 section 6.2 suggests discarding the highest buffered TSN to
make room when the advertised window is zero, but this receiver never
reneges on already gap-acked data. Using the headroom between the high
watermark and the maximum buffer size to accept chunks that advance the
cumulative TSN ack lets gaps close without revoking previously
acknowledged TSNs.

When chunks are dropped, an immediate SACK will be sent to inform the 
sender about the empty receiver window.
@boivie boivie changed the title jAccept gap-filling DATA chunks above reassembly watermark Accept gap-filling DATA chunks above reassembly watermark Nov 27, 2026
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