Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F9C0C43381 for ; Wed, 20 Mar 2019 21:06:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 571CA2184E for ; Wed, 20 Mar 2019 21:06:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727540AbfCTVGT (ORCPT ); Wed, 20 Mar 2019 17:06:19 -0400 Received: from andre.telenet-ops.be ([195.130.132.53]:41188 "EHLO andre.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727084AbfCTVGS (ORCPT ); Wed, 20 Mar 2019 17:06:18 -0400 Received: from [10.2.2.197] ([141.135.125.133]) by andre.telenet-ops.be with bizsmtp id qM6F1z00F2soW7901M6Fj7; Wed, 20 Mar 2019 22:06:17 +0100 Message-ID: <5C92AB4F.3060105@mail.wizbit.be> Date: Wed, 20 Mar 2019 22:06:23 +0100 From: Bram Yvahk User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: netdev@vger.kernel.org CC: steffen.klassert@secunet.com, herbert@gondor.apana.org.au, davem@davemloft.net Subject: Re: [ipsec/xfrm] IPv6 fragmentation/path-mtu References: <5C8EE03D.1030603@mail.wizbit.be> <5C9180A1.8070108@mail.wizbit.be> In-Reply-To: <5C9180A1.8070108@mail.wizbit.be> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > > What I would've expected to happen is that 'Gateway A' would send out > two fragmented IPv6 packets containing the encrypted data. 'Gateway A' > is the originator of the IPv6 ESP packet so it can fragment these. > This similar to how it's done for IPv4. When the ESP is fragmented > then the IPv6 packet from 'client A' is left intact/not fragmented. > > With my - limited - understanding of the IPv6 RFC I think this would > be allowed. Parts from the IPv6 RFC that I think are relevant: 5. Packet Size Issues IPv6 requires that every link in the internet have an MTU of 1280 octets or greater. On any link that cannot convey a 1280-octet packet in one piece, link-specific fragmentation and reassembly must be provided at a layer below IPv6. + link - a communication facility or medium over which nodes can communicate at the link layer, i.e., the layer immediately below IPv6. Examples are Ethernets (simple or bridged); PPP links; X.25, Frame Relay, or ATM networks; and internet (or higher) layer "tunnels", such as tunnels over IPv4 or IPv6 itself. *My* interpretation from this: an IPv6 IPsec tunnel is considered a "link" in the IPv6 RFC. This means that the mtu inside an IPsec tunnel - which tunnels IPv6 traffic - must be at least 1280 octets. What this technically means for IPsec: when the path-mtu between the two IPsec Gateways is 1280 then the IPsec tunnel should still provide a 1280 octets mtu inside the IPsec tunnel. The way it can do this is by transmitting fragmented IPv6 ESP packets. [Data inside the tunnel is *not* fragmented] Before continuing: is my understanding correct? and/or does everyone agree with the above? Is it reasonable to expect tunneling to work when path-mtu between the IPsec gateways is 1280? (In case it is reasonable then one can discuss what the mtu inside the tunnel should be when path-mtu is 1280 (or better put when path-mtu - ESP overhead < 1280) - but let's leave that discussion for later)