From: don-netfil@isis.cs3-inc.com (Don Cohen) Subject: disturbing MTU experiment Date: Tue, 8 Apr 2003 09:44:08 -0700 Sender: netfilter-devel-admin@lists.netfilter.org Message-ID: <16018.64600.149601.372694@isis.cs3-inc.com> References: <20030408154101.13919.89741.Mailman@kashyyyk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: To: netfilter-devel@lists.netfilter.org In-Reply-To: <20030408154101.13919.89741.Mailman@kashyyyk> Errors-To: netfilter-devel-admin@lists.netfilter.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: List-Id: netfilter-devel.vger.kernel.org (Let me know if there's a more appropriate place to send this.) My understanding of IPv4 is that - the forwarding path between two machines might have links of different MTUs, - when an IP datagram marked DF is too big for one of those links, the machine that would otherwise forward it is supposed to return an ICMP unreachable reply - the sending machine is supposed to react to that ICMP reply, either by sending a smaller datagram or by allowing fragmentation or of course, giving up. The following experiment ought to exhibit this behavior: internet --- eth0:linux_firewall:eth1 --- client - on linux firewall do ifconfig eth1 mtu 1400 - on client machine try to use the internet, e.g., run a web browser When I do this I find, to my dismay, that MANY sites don't work! A tcpdump on the firewall shows the web server in the internet sending a DF packet of size 1500, the firewall sending the ICMP reply, and the server ignoring it, i.e., resending the large packet over and over. 1. Is there something wrong with my experiment or is a large part of the internet really broken in this way? Do others out there see the same thing? If I am correct, then 2. What's the cause of this breakage? Are servers filtering ICMP due to attacks? Are they behind firewalls that don't know how to forward the ICMP packets? Are ISPs filtering the ICMP packets? Are the servers themselves running broken network code? If so, which are the OS's with this defect? 3. Are links with MTU < 1500 are extremely rare in the internet? The fact that the internet mostly seems to work would suggest that. Surely this has not always been the case. When did it happen? Wouldn't this break various tunneling protocols? At least those that try to encapsulate one packet in one IP packet. Maybe those are also not much used? 4. What can be done about it? For instance, what would happen if the machines that send ICMP replies were to go ahead and fragment the DF packets (perhaps instead of sending out a second ICMP to the same offender)?