Skip to content

Estimate rwnd by payload bytes#101

Open
boivie wants to merge 1 commit intowebrtc:mainfrom
boivie:bug-rwnd-payload-bytes
Open

Estimate rwnd by payload bytes#101
boivie wants to merge 1 commit intowebrtc:mainfrom
boivie:bug-rwnd-payload-bytes

Conversation

@boivie
Copy link
Copy Markdown
Collaborator

@boivie boivie commented Mar 10, 2026

The dcSCTP receiver was advertising available window space (arwnd) based solely on payload bytes, while the sender's rwnd estimation included packet headers. This mismatch caused the sender to underestimate the receiver's available buffer, potentially leading to reduced throughput.

This commit resolves the issue by ensuring both sender and receiver use payload bytes, as headers have been removed on the receiver side while in the reassembly queue.

This is a Rust port of the fix to the upstream C++ implementation at https://webrtc-review.googlesource.com/c/src/+/377122.

@boivie boivie requested a review from lndmrk March 10, 2026 15:16
@boivie boivie force-pushed the bug-rwnd-payload-bytes branch 2 times, most recently from e8c65d0 to f9ed7b3 Compare March 20, 2026 10:40
Copy link
Copy Markdown
Collaborator Author

@boivie boivie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for catching the bug!

@boivie boivie requested a review from lndmrk March 20, 2026 13:32
lndmrk
lndmrk previously approved these changes Mar 20, 2026
The dcSCTP receiver was advertising available window space (arwnd) based
solely on payload bytes, while the sender's rwnd estimation included
packet headers. This mismatch caused the sender to underestimate the
receiver's available buffer, potentially leading to reduced throughput.

This commit resolves the issue by ensuring both sender and receiver use
payload bytes, as headers have been removed on the receiver side while
in the reassembly queue.

This is a Rust port of the fix to the upstream C++ implementation at
https://webrtc-review.googlesource.com/c/src/+/377122.
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.

2 participants