dccp ccid-2: check Ack Ratio when reducing cwnd
authorSamuel Jero <sj323707@ohio.edu>
Mon, 25 Jul 2011 02:57:49 +0000 (20:57 -0600)
committerGerrit Renker <gerrit@erg.abdn.ac.uk>
Mon, 1 Aug 2011 13:52:36 +0000 (07:52 -0600)
commitd96a9e8dd04cf5ab2782ca6192e395c5ca373f7d
tree2dbda401acc0150346b2ce46ff0fe83a2af17299
parent0ce95dc792549e0cf704e74aa8acb15a401f8cca
dccp ccid-2: check Ack Ratio when reducing cwnd

This patch causes CCID-2 to check the Ack Ratio after reducing the congestion
window. If the Ack Ratio is greater than the congestion window, it is
reduced. This prevents timeouts caused by an Ack Ratio larger than the
congestion window.

In this situation, we choose to set the Ack Ratio to half the congestion window
(or one if that's zero) so that if we loose one ack we don't trigger a timeout.

Signed-off-by: Samuel Jero <sj323707@ohio.edu>
Acked-by: Gerrit Renker <gerrit@erg.abdn.ac.uk>
net/dccp/ccids/ccid2.c