Send SACK-IMMEDIATELY before CWND full#739
Open
pando-emil wants to merge 1 commit intosctplab:masterfrom
Open
Conversation
SACK-IMMEDIATELY was introduced in RFC-7053 to improve performance in various situations. While usrsctp support the SACK-IMMEDIATELY, it does not implement the case where SACK-IMMEDIATELY should be sent on last packet before hitting the congestion window limit. Setting the SACK-IMMEDIATELY flag on the last packet before the congestion window is full is crucial for the performance on high latency links. Pion has made a similar patch, see reasoning and meassures here: pion/sctp#62. I have came to similiar conclusions in my speed tests. This patch tries to detect last packet in congestion window without too much code refactoring. There is a risk that too many packets gets the SACK-IMMEDIATELY flag (if the packets are much smaller than 1 MTU), but the only drawback of that, as far as I can tell, is potentially some extra SACKs sent by the receiver.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SACK-IMMEDIATELY was introduced in RFC-7053 to improve performance in various situations. While usrsctp support the SACK-IMMEDIATELY, it does not implement the case where SACK-IMMEDIATELY should be sent on last packet before hitting the congestion window limit.
Setting the SACK-IMMEDIATELY flag on the last packet before the congestion window is full is crucial for the performance on high latency links. Pion has made a similar patch, see reasoning and meassures here: pion/sctp#62. I have came to similiar conclusions in my speed tests.
This patch tries to detect last packet in congestion window without too much code refactoring. There is a risk that too many packets gets the SACK-IMMEDIATELY flag (if the packets are much smaller than 1 MTU), but the only drawback of that, as far as I can tell, is potentially some extra SACKs sent by the receiver.