public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: JP Navarro <navarro@mcs.anl.gov>
To: linux-kernel@vger.kernel.org
Subject: IP fragmentation (DF) and ip_no_pmtu_disc in 2.2 vs 2.4
Date: Fri, 01 Dec 2000 12:29:09 -0600	[thread overview]
Message-ID: <3A27EDF5.6060609@mcs.anl.gov> (raw)

In 2.2.17 when /proc/sys/net/ipv4/ip_no_pmtu_disc is 0/false we're 
seeing outbound udp packets with the IP DF (don't fragment) bit clear. 
With 2.4.0-test11, when ip_no_pmtu_disc is still 0/false we're seeing 
outbound udp packets with the IP DF bit set.  Is this change in default 
behavior a fix or a break?

[start non expert thinking]
ip_no_pmtu_disc = 0/false means that we DO want MTU discovery.
ip_no_pmtu_disc = 1/true means that we DON't want MTU discovery.
to do MTU discovery you want DF set, so if fragmenting is necessary to 
reach your target you get an unreachable error and can try smaller MTUs.

So, it appears that 2.4 fixed a problem with 2.2, correct?
[stop non expert thinking]

The problem that led us to notice this behavior was:

Intel PXE uses tftp to download boot images and discards IP packets with 
the DF bit set; so a tftpd server on 2.4 with the default 
ip_no_pmtu_disc set to 0/false can't serve tftp to PXE. Changing 
ip_no_pmtu_disc to 1/true "fixes it". One problem is that we'd rather 
have our tftpd server w/ 2.4 configured for mtu discovery.

We've tried to setsockopt(sock, SOL_IP, IP_MTU_DISCOVER, ...) with the 
IP_PMTUDISC_DONT option but can't make it work. How does one change MTU 
discovery and/or the don't fragment bit on a single socket?


JP Navarro
-- 
John-Paul Navarro                                      (630) 252-1233
Mathematics & Computer Science Division
Argonne National Laboratory                       navarro@mcs.anl.gov
Argonne, IL 60439                     http://www.mcs.anl.gov/~navarro

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

             reply	other threads:[~2000-12-01 19:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-01 18:29 JP Navarro [this message]
2000-12-01 18:36 ` IP fragmentation (DF) and ip_no_pmtu_disc in 2.2 vs 2.4 Alan Cox
2000-12-01 19:13   ` Paul Jakma
2000-12-01 23:47     ` H. Peter Anvin

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=3A27EDF5.6060609@mcs.anl.gov \
    --to=navarro@mcs.anl.gov \
    --cc=linux-kernel@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