From: Andi Kleen <andi@firstfloor.org>
To: "Ristuccia, Brian" <bristuccia@starentnetworks.com>
Cc: <linux-kernel@vger.kernel.org>, netdev@vger.kernel.org
Subject: Re: 2.6.20.7 mss negotiation and path mtu discovery mostly broken?
Date: 25 Apr 2007 17:10:56 +0200 [thread overview]
Message-ID: <p73k5w032wv.fsf@bingen.suse.de> (raw)
In-Reply-To: <7CCD07160348804497EF29E9EA5560D7020F6203@exchtewks2.starentnetworks.com>
"Ristuccia, Brian" <bristuccia@starentnetworks.com> writes:
> I'm seeing a problem where the kernel attempts to send packets with a
> MSS larger than the one negotiated when the TCP connection is
> established. Even after ICMP "can't fragment" messages arrive, the
> kernel still attempts to increase the MSS rather aggressively. The end
> result is extremely poor throughput when sending to a network with a
> smaller MTU.
>
> In /proc/sys/net/ipv4:
> ip_no_pmtu_disc:0
> tcp_mtu_probing:0
>
> The sending host (10.2.10.254) has an MTU of 9000. The destination host
> (12.33.234.69) has an MTU of 1500. There is one router between the hosts
> which will drop packets with the "DF" flag when they don't fit the
> destination interface's MTU and generates the required icmp can't
> fragment message.
>
> The dump shows the initial handshake with correct mss options sent:
>
> 08:39:55.493029 IP 12.33.234.69.35026 > 10.2.10.254.22: S
> 2768979373:2768979373(
> 0) win 5840 <mss 1460,sackOK,timestamp 3873837730 0,nop,wscale 2>
> 08:39:55.493119 IP 10.2.10.254.22 > 12.33.234.69.35026: S
> 963242385:963242385(0)
> ack 2768979374 win 17896 <mss 8960,sackOK,timestamp 413751
The MSS clamp for sending to 10.2.10.254.22 is 8960. MSS is only
one way -- each uses what the other tells it.
> In the following dump, the system eventually gets in a state where it
> oscillates between sendng undeliverable 2896 byte packets and
> deliverable 1448 byte ones.
This should only happen on PMTU expire, which is normally ~15mins.
Perhaps you misconfigured it manually using sysctl.
-And
next parent reply other threads:[~2007-04-25 14:13 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <7CCD07160348804497EF29E9EA5560D7020F6203@exchtewks2.starentnetworks.com>
2007-04-25 15:10 ` Andi Kleen [this message]
2007-04-25 14:31 ` 2.6.20.7 mss negotiation and path mtu discovery mostly broken? Ristuccia, Brian
2007-04-25 20:09 Ristuccia, Brian
2007-04-25 20:11 ` Ristuccia, Brian
2007-04-25 20:16 ` David Miller
2007-05-03 23:24 ` Michael Chan
2007-05-04 0:23 ` David Miller
2007-04-25 22:48 ` Herbert Xu
2007-04-26 15:53 ` Ristuccia, Brian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=p73k5w032wv.fsf@bingen.suse.de \
--to=andi@firstfloor.org \
--cc=bristuccia@starentnetworks.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).