netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* tcp_mtu_probe implementation details
@ 2011-12-20 21:49 Anatoly Sivov
  2011-12-20 22:33 ` Vijay Subramanian
  0 siblings, 1 reply; 5+ messages in thread
From: Anatoly Sivov @ 2011-12-20 21:49 UTC (permalink / raw)
  To: netdev

Hi all,

Looking on TCP implementation in Linux I see that there are some things
that I don't understand in tcp_mtu_probe() implementation.
Could someone clear them for me or share the link to Linux PMTUD
documentation, please?
The first thing I don't understand is tp->snd_cwnd < 11 in
if (!icsk->icsk_mtup.enabled ||
             icsk->icsk_mtup.probe_size ||
             inet_csk(sk)->icsk_ca_state != TCP_CA_Open ||
             tp->snd_cwnd < 11 ||
             tp->rx_opt.num_sacks || tp->rx_opt.dsack)
                 return -1;
What is magic number "11" here?
The other question is about size_needed variable.
It is assigned to value probe_size + (tp->reordering + 1) * tp->mss_cache
And that is not clear for me.
What is this "(tp->reordering + 1) * tp->mss_cache" addition?

Thanks.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-12-24 16:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-12-20 21:49 tcp_mtu_probe implementation details Anatoly Sivov
2011-12-20 22:33 ` Vijay Subramanian
2011-12-21  9:50   ` Anatoly Sivov
2011-12-24 15:03     ` John Heffner
2011-12-24 16:15       ` Anatoly Sivov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).