diff options
author | Samuel Jero <sj323707@ohio.edu> | 2011-07-25 03:05:16 (GMT) |
---|---|---|
committer | Gerrit Renker <gerrit@erg.abdn.ac.uk> | 2011-08-01 13:52:36 (GMT) |
commit | 0ce95dc792549e0cf704e74aa8acb15a401f8cca (patch) | |
tree | 77a4b71b1de4e985e5ac8b711c8bca980195235f /mm/mempolicy.c | |
parent | d346d886a4c7f771c184e73833133f23a18de884 (diff) | |
download | linux-0ce95dc792549e0cf704e74aa8acb15a401f8cca.tar.xz |
dccp ccid-2: increment cwnd correctly
This patch fixes an issue where CCID-2 will not increase the congestion
window for numerous RTTs after an idle period, application-limited period,
or a loss once the algorithm is in Congestion Avoidance.
What happens is that, when CCID-2 is in Congestion Avoidance mode, it will
increase hc->tx_packets_acked by one for every packet and will increment cwnd
every cwnd packets. However, if there is now an idle period in the connection,
cwnd will be reduced, possibly below the slow start threshold. This will
cause the connection to go into Slow Start. However, in Slow Start CCID-2
performs this test to increment cwnd every second ack:
++hc->tx_packets_acked == 2
Unfortunately, this will be incorrect, if cwnd previous to the idle period
was larger than 2 and if tx_packets_acked was close to cwnd. For example:
cwnd=50 and tx_packets_acked=45.
In this case, the current code, will increment tx_packets_acked until it
equals two, which will only be once tx_packets_acked (an unsigned 32-bit
integer) overflows.
My fix is simply to change that test for tx_packets_acked greater than or
equal to two in slow start.
Signed-off-by: Samuel Jero <sj323707@ohio.edu>
Acked-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
Diffstat (limited to 'mm/mempolicy.c')
0 files changed, 0 insertions, 0 deletions