aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/tcp.h
diff options
context:
space:
mode:
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>2007-02-22 02:10:39 -0500
committerDavid S. Miller <davem@sunset.davemloft.net>2007-04-26 01:23:12 -0400
commit46d0de4ed92650b95f27acae09914996bbe624e7 (patch)
tree455e6a9772294ef16a88800709685797e1779b75 /include/net/tcp.h
parent7c9a4a5b67926dd186d427bc5b9fce6ccbde154c (diff)
[TCP] FRTO: Entry is allowed only during (New)Reno like recovery
This interpretation comes from RFC4138: "If the sender implements some loss recovery algorithm other than Reno or NewReno [FHG04], the F-RTO algorithm SHOULD NOT be entered when earlier fast recovery is underway." I think the RFC means to say (especially in the light of Appendix B) that ...recovery is underway (not just fast recovery) or was underway when it was interrupted by an earlier (F-)RTO that hasn't yet been resolved (snd_una has not advanced enough). Thus, my interpretation is that whenever TCP has ever retransmitted other than head, basic version cannot be used because then the order assumptions which are used as FRTO basis do not hold. NewReno has only the head segment retransmitted at a time. Therefore, walk up to the segment that has not been SACKed, if that segment is not retransmitted nor anything before it, we know for sure, that nothing after the non-SACKed segment should be either. This assumption is valid because TCPCB_EVER_RETRANS does not leave holes but each non-SACKed segment is rexmitted in-order. Check for retrans_out > 1 avoids more expensive walk through the skb list, as we can know the result beforehand: F-RTO will not be allowed. SACKed skb can turn into non-SACked only in the extremely rare case of SACK reneging, in this case we might fail to detect retransmissions if there were them for any other than head. To get rid of that feature, whole rexmit queue would have to be walked (always) or FRTO should be prevented when SACK reneging happens. Of course RTO should still trigger after reneging which makes this issue even less likely to show up. And as long as the response is as conservative as it's now, nothing bad happens even then. Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r--include/net/tcp.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h
index 572a77bb6907..7fd6b77519c3 100644
--- a/include/net/tcp.h
+++ b/include/net/tcp.h
@@ -341,7 +341,7 @@ extern struct sock * tcp_check_req(struct sock *sk,struct sk_buff *skb,
341extern int tcp_child_process(struct sock *parent, 341extern int tcp_child_process(struct sock *parent,
342 struct sock *child, 342 struct sock *child,
343 struct sk_buff *skb); 343 struct sk_buff *skb);
344extern int tcp_use_frto(const struct sock *sk); 344extern int tcp_use_frto(struct sock *sk);
345extern void tcp_enter_frto(struct sock *sk); 345extern void tcp_enter_frto(struct sock *sk);
346extern void tcp_enter_loss(struct sock *sk, int how); 346extern void tcp_enter_loss(struct sock *sk, int how);
347extern void tcp_clear_retrans(struct tcp_sock *tp); 347extern void tcp_clear_retrans(struct tcp_sock *tp);