diff options
author | michele papalini <micpapal@cisco.com> | 2019-12-02 10:56:34 +0100 |
---|---|---|
committer | michele papalini <micpapal@cisco.com> | 2019-12-02 10:56:34 +0100 |
commit | b76d14df5b02b89fa4b96a6d8b91dbb7ea2f6c5a (patch) | |
tree | 3f4bf6c769fa15a134b3199fdea15b43cf435232 /libtransport/src/hicn/transport/protocols/rtc.cc | |
parent | b8da5e880fe199978aeb27dc5a466435d6389775 (diff) |
[HICN-425] RTC min window
Signed-off-by: michele papalini <micpapal@cisco.com>
Change-Id: Ieb41ffff61ed4341dc9aacb58d3e7c397e72fc41
Diffstat (limited to 'libtransport/src/hicn/transport/protocols/rtc.cc')
-rw-r--r-- | libtransport/src/hicn/transport/protocols/rtc.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libtransport/src/hicn/transport/protocols/rtc.cc b/libtransport/src/hicn/transport/protocols/rtc.cc index 4d8e4c514..c9993ac1c 100644 --- a/libtransport/src/hicn/transport/protocols/rtc.cc +++ b/libtransport/src/hicn/transport/protocols/rtc.cc @@ -356,6 +356,9 @@ void RTCTransportProtocol::computeMaxWindow(uint32_t productionRate, } else { maxCWin_ = min(maxWaintingInterest, maxCWin_); } + + if(maxCWin_ < HICN_MIN_CWIN) + maxCWin_ = HICN_MIN_CWIN; } void RTCTransportProtocol::updateWindow() { @@ -368,6 +371,9 @@ void RTCTransportProtocol::updateWindow() { currentCWin_ = max((uint32_t)(currentCWin_ * HICN_WIN_DECREASE_FACTOR), HICN_MIN_CWIN); } + + if(currentCWin_ < HICN_MIN_CWIN) + currentCWin_ = HICN_MIN_CWIN; } void RTCTransportProtocol::decreaseWindow() { |