Yuchung Cheng 974c12360d tcp: detect loss above high_seq in recovery
Correctly implement a loss detection heuristic: New sequences (above
high_seq) sent during the fast recovery are deemed lost when higher
sequences are SACKed.

Current code does not catch these losses, because tcp_mark_head_lost()
does not check packets beyond high_seq. The fix is straight-forward by
checking packets until the highest sacked packet. In addition, all the
FLAG_DATA_LOST logic are in-effective and redundant and can be removed.

Update the loss heuristic comments. The algorithm above is documented
as heuristic B, but it is redundant too because heuristic A already
covers B.

Note that this change only marks some forward-retransmitted packets LOST.
It does NOT forbid TCP performing further CWR on new losses. A potential
follow-up patch under preparation is to perform another CWR on "new"
losses such as
1) sequence above high_seq is lost (by resetting high_seq to snd_nxt)
2) retransmission is lost.

Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2012-01-22 15:08:44 -05:00
..
2011-12-12 19:04:11 -05:00
2011-11-12 18:13:32 -05:00
2011-12-28 15:06:58 -05:00
2011-04-22 11:04:14 -07:00
2011-10-13 16:05:07 -04:00
2011-10-19 03:10:46 -04:00
2011-12-11 18:25:16 -05:00
2011-12-11 18:25:16 -05:00
2012-01-17 10:31:12 -05:00
2011-12-12 19:04:10 -05:00
2012-01-17 10:31:12 -05:00
2012-01-20 14:17:26 -05:00
2012-01-20 14:17:26 -05:00
2011-12-12 19:04:11 -05:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-12-12 19:04:11 -05:00
2011-12-11 18:25:16 -05:00
2012-01-17 10:31:12 -05:00
2011-12-09 14:14:08 -05:00
2010-07-12 12:57:54 -07:00