dcsctp: Allow more outstanding fragments
There limit that decides if an incoming TSN should be accepted or not was decided based on very small transfers with no packet loss. But in simulations where a socket tries to send a lot of data and when there is moderate packet loss, the number of tracker data chunks on the receive side will be considerably higher than what the limit was. Set the limit to allow high data rate also on moderate packet loss. Bug: webrtc:12799 Change-Id: I6ca237e5609d8b511e9b10c919da33dca7420c01 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/220761 Reviewed-by: Florent Castelli <orphis@webrtc.org> Commit-Queue: Victor Boivie <boivie@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34169}
This commit is contained in:
parent
8267724a85
commit
261eec5456
@ -48,7 +48,7 @@ class DataTracker {
|
|||||||
// received data. Data received beyond this limit will be dropped, which will
|
// received data. Data received beyond this limit will be dropped, which will
|
||||||
// force the transmitter to send data that actually increases the last
|
// force the transmitter to send data that actually increases the last
|
||||||
// cumulative acked TSN.
|
// cumulative acked TSN.
|
||||||
static constexpr uint32_t kMaxAcceptedOutstandingFragments = 256;
|
static constexpr uint32_t kMaxAcceptedOutstandingFragments = 100000;
|
||||||
|
|
||||||
explicit DataTracker(absl::string_view log_prefix,
|
explicit DataTracker(absl::string_view log_prefix,
|
||||||
Timer* delayed_ack_timer,
|
Timer* delayed_ack_timer,
|
||||||
|
|||||||
@ -226,8 +226,6 @@ TEST_F(DataTrackerTest, WillNotAcceptInvalidTSNs) {
|
|||||||
size_t limit = DataTracker::kMaxAcceptedOutstandingFragments;
|
size_t limit = DataTracker::kMaxAcceptedOutstandingFragments;
|
||||||
EXPECT_FALSE(buf_.IsTSNValid(TSN(*last_tsn + limit + 1)));
|
EXPECT_FALSE(buf_.IsTSNValid(TSN(*last_tsn + limit + 1)));
|
||||||
EXPECT_FALSE(buf_.IsTSNValid(TSN(*last_tsn - (limit + 1))));
|
EXPECT_FALSE(buf_.IsTSNValid(TSN(*last_tsn - (limit + 1))));
|
||||||
EXPECT_FALSE(buf_.IsTSNValid(TSN(*last_tsn + 65536)));
|
|
||||||
EXPECT_FALSE(buf_.IsTSNValid(TSN(*last_tsn - 65536)));
|
|
||||||
EXPECT_FALSE(buf_.IsTSNValid(TSN(*last_tsn + 0x8000000)));
|
EXPECT_FALSE(buf_.IsTSNValid(TSN(*last_tsn + 0x8000000)));
|
||||||
EXPECT_FALSE(buf_.IsTSNValid(TSN(*last_tsn - 0x8000000)));
|
EXPECT_FALSE(buf_.IsTSNValid(TSN(*last_tsn - 0x8000000)));
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user