Re: [Int-area] WG Adoption Call: IP Fragmentation Considered Fragile

Tom Herbert <tom@herbertland.com> Thu, 30 August 2018 01:34 UTC

Return-Path: <tom@herbertland.com>
X-Original-To: int-area@ietfa.amsl.com
Delivered-To: int-area@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 61A06130E95 for <int-area@ietfa.amsl.com>; Wed, 29 Aug 2018 18:34:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level:
X-Spam-Status: No, score=-1.909 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, T_DKIMWL_WL_MED=-0.01, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=herbertland-com.20150623.gappssmtp.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0OhMBBGPsdLN for <int-area@ietfa.amsl.com>; Wed, 29 Aug 2018 18:34:20 -0700 (PDT)
Received: from mail-qt0-x22f.google.com (mail-qt0-x22f.google.com [IPv6:2607:f8b0:400d:c0d::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 03472130EC5 for <int-area@ietf.org>; Wed, 29 Aug 2018 18:34:20 -0700 (PDT)
Received: by mail-qt0-x22f.google.com with SMTP id g44-v6so8050903qtb.12 for <int-area@ietf.org>; Wed, 29 Aug 2018 18:34:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=herbertland-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=daFyHdbhhuL7xsCsvk1FY1cyAUdqacr0yQ4n1u7WTIE=; b=Gq/s1fzZ4VB39ME2sMVG/w6SIMRxFQsFMD5EqTvTSq0nZU4OJ5SzgyBkJUJbQzIt9u aLTySv89B/+6TutGq2NQjVY7T3RXDjEu4AW9rWe1lB/383tlVZ2jaZucBbyQhsltPfJj 5VG3E7IQpLuRd9HW5eWNhLfemhJUel0T+32FNJzSenMJr5i6CLhn5CpwlVDupU4Q+kkF 6fRfLeUYMG17ECFS37TL2gFL2Pen4mEQ1j6irYwxuyT6Z5RB6HNmurC/ORo9DyzIv7iO RV+EPMrI9lAVhXxHwwOrUo2ylQd2Y7VAh5t93AkYShyM2fWH/tbyb/xZJzhvQ3j6wpmz VeWQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=daFyHdbhhuL7xsCsvk1FY1cyAUdqacr0yQ4n1u7WTIE=; b=f3FIoAMT0l/cFgbUjYWYIEpW8gzz2imfOQmUL4WmXcflcTcZEIWP4wTvcr5JKSqWY+ mez1HywJXXRlI3F+KrUxT72Uv6Cd08R0XtfummZzBHlJRi3W0bv7k1TG4nMEtG6VmmHQ ZSuAPK8k+QKcLGyJ+5xSMXnBw1tgDtkW9vQgN+EFtVTsKJJZK/EGZEfeDEssmbaTUcmz nv/QsZ3p84fRt0O+M/4L5Jp4lD0IqVcqQkCxTYfaXuo6hrrKL6edoFWfpD3QAWZA2zzc JRsjcQEKbXyf2LNMzviMIY4TBFsuUP3Tl8/R3lzLzPaEC9ot5gTEkRuoCkLGv42Fm4Ev SgiQ==
X-Gm-Message-State: APzg51BK4ijLKfQxSa4uI0Y0bewcnHM50VBFNhcNHgak9rTGW6iLbTxv IC8IMawvKUjCBHfIaBb7NOA83E5wKWUq4aYzGqdMO6YqMcAvbw==
X-Google-Smtp-Source: ANB0Vdagw/rqR3q2nKekDBhLiP27cCi1V7h7fK5w2WTn0QIZBweT6vbCOMA1qwXkcIdXtxle+qkwpPq6FYs0IchlKAw=
X-Received: by 2002:a0c:bd0e:: with SMTP id m14-v6mr9137163qvg.168.1535592858921; Wed, 29 Aug 2018 18:34:18 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:ac8:3312:0:0:0:0:0 with HTTP; Wed, 29 Aug 2018 18:34:18 -0700 (PDT)
In-Reply-To: <b40ed6c3fc32909e2df677cd999550dd@strayalpha.com>
References: <CAF493D3-37A2-4A89-BA88-81567E5B88F1@huitema.net> <538A6193-2BD7-4E72-BD28-736B81F97B33@strayalpha.com> <20180826215558.6hzff2povrxuis3y@faui48f.informatik.uni-erlangen.de> <0A065EE6-463C-4C71-BF12-C0E5A1C51680@strayalpha.com> <20180826233350.kz3q6gzqbq36nn4r@faui48f.informatik.uni-erlangen.de> <810cea0d-809f-040d-bc79-7c7413cd99f2@strayalpha.com> <20180827023513.2bxjrk335al2lbvz@faui48f.informatik.uni-erlangen.de> <E02F3C36-ECE6-419E-A219-08A15AD98D13@strayalpha.com> <20180828220915.fpx5hi7nhl46ou6r@faui48f.informatik.uni-erlangen.de> <CALx6S35vbtYOiEx2opqSh1uq9rfgG5QHEQcb+ccWLMcwWZA-uQ@mail.gmail.com> <20180829002430.fojlqonvnqdrhw4z@faui48f.informatik.uni-erlangen.de> <af424b4b449c4a1459b69ed01a984e48@strayalpha.com> <CALx6S3563g___ZP03dD5+sV++ZH7U5yudqRX0Bf2744BbBxGgQ@mail.gmail.com> <2b6dd7006cca65525ac6240a8edffabb@strayalpha.com> <CALx6S37EiFo8C4K7fO=O0hNpStoaS6wBvM8jVowmJTQHW2=DHw@mail.gmail.com> <b40ed6c3fc32909e2df677cd999550dd@strayalpha.com>
From: Tom Herbert <tom@herbertland.com>
Date: Wed, 29 Aug 2018 18:34:18 -0700
Message-ID: <CALx6S34WW4tj=UVmUBpREdeQ9Wshv=ZdTs3RLQLG9+nOr6ArjQ@mail.gmail.com>
To: Joe Touch <touch@strayalpha.com>
Cc: Toerless Eckert <tte@cs.fau.de>, Christian Huitema <huitema@huitema.net>, int-area <int-area@ietf.org>, intarea-chairs@ietf.org
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/int-area/b21tPkgE5ndwPa7_GdXo8CbGNf0>
Subject: Re: [Int-area] WG Adoption Call: IP Fragmentation Considered Fragile
X-BeenThere: int-area@ietf.org
X-Mailman-Version: 2.1.27
Precedence: list
List-Id: IETF Internet Area Mailing List <int-area.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/int-area>, <mailto:int-area-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/int-area/>
List-Post: <mailto:int-area@ietf.org>
List-Help: <mailto:int-area-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/int-area>, <mailto:int-area-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 30 Aug 2018 01:34:23 -0000

On Wed, Aug 29, 2018 at 5:32 PM, Joe Touch <touch@strayalpha.com> wrote:
>
>
>
>
> On 2018-08-29 10:38, Tom Herbert wrote:
>
>
> I don't think you need the part about acting as a host, that would
> have other implications.
>
>
> It does, and that's exactly why you do. In particular, this includes ICMP
> processing.
>
>
> Also, the reassembly requirement might be
> specific to NAT and not other middlebox functionality. For instance,
> it would be sufficient for a firewall that is dropping UDP packets to
> some port to only drop the first fragment that has UDP port numbers
> and let the other fragments pass. Without the first fragment
> reassembly at the destination will simply timeout and the whole packet
> is dropped.
>
>
> And that's a great example of why not reassembling (or equivalent) isn't the
> appropriate behavior.
>
> Yes, the packet will still not be delivered, but the receiver will end up
> doing a lot of work that isn't necessary. I.e., the middlebox has ignored
> work it was responsible for and caused work elsewhere.

Joe,

End hosts are already quite capable of dealing with reassembly, I
think you'll find the average middlebox is not prepared to handle it.
In truth, for this case it really doesn't save the hosts much at all.
A DOS attack on fragmentation is still possible by the attacker
sending all but the last fragment to a port that is allowed by the
firewall. Also, a destination host will receive all the fragments for
reassembly by virtue of it being the having destination address in the
packets. As discussed previously, there's no guarantee that a firewall
will see all the packets in a fragment train in a mulithomed
environment-- routing may take packets along different paths so they
hit hit different firewalls for a site. The answer to that seems to be
to somehow coordinate across all the firewalls for a site to act as
single host-- I suppose that's possible, but it would be nice to see
the interoperable protocol that makes that generally feasible at any
scale.

>
> Further, acting as a host is always the right thing for any node that
> sources packets with its own IP address -- that includes NATs and regular
> proxies. The behavior of transparent proxies is more complex, but can be
> similarly reasoned from the appropriate equivalence model.

Proxies aren't quite the same though. An explicit proxy at least is
both receiving and sourcing packet based on it's own address. NAT only
sources or receive packets with their own address half the time.
Firewalls, never do and don't even need a host address.

Tom