Re: Comments on draft-herbert-ipv6-update-dest-ops

Tom Herbert <tom@herbertland.com> Tue, 21 August 2018 15:09 UTC

Return-Path: <tom@herbertland.com>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 625CC130DFE for <ipv6@ietfa.amsl.com>; Tue, 21 Aug 2018 08:09:51 -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=ham 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 qoUacpbVoND4 for <ipv6@ietfa.amsl.com>; Tue, 21 Aug 2018 08:09:47 -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 A0E26130DC5 for <ipv6@ietf.org>; Tue, 21 Aug 2018 08:09:47 -0700 (PDT)
Received: by mail-qt0-x22f.google.com with SMTP id d4-v6so20505637qtn.13 for <ipv6@ietf.org>; Tue, 21 Aug 2018 08:09:47 -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:content-transfer-encoding; bh=u6k/tfhnAVwMw7Yz2sJPSSHxTb3njm3WEdRDW0eE7P4=; b=IqQhVeb+HbP0a5gVsfsORqGiOFdMVz12rbg73p1lpL710WU7eAEzQC4EiahMaouYba cy+pqjT9VpLoI0vzWTx4g6qfKvVwQFd1wWCiL4FMOERw0UhMD83TPl7LtX8dPJtZFwWN 8+TKQfJJahqT6dJC/BUv55R4gSgi3g9MdbVG/ErwXAkHT6Z5ffsiaATqgQlmPb74Seaj ZEKowC7dhJNzEkrUTOGhGmITNIO4bZmC+CjbEsSwSQvn4RBMAclusEb7GkXTX0rG5lwe 3ZnSON7mJ2hbK9OuQOKHbyWKjxDC3a8sPjkFzi+icNnsoYjAbZb4k+SkiWVmNBLOde37 tTYg==
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:content-transfer-encoding; bh=u6k/tfhnAVwMw7Yz2sJPSSHxTb3njm3WEdRDW0eE7P4=; b=X0oMEuC7jAKu4iaVJfnEXwT7j9UDGaiYJt9NDP4BXoOqCJ9miReXL1fUp11Z1dT2rJ oa7Zcm2nJ4dayJW9EpgMZ7ZQVGLjE3XA5Yb84o5P2V3vCyqmTMrzyYOf53Vy5ohEgp51 DFVFt6E+jgpczZs2UeKJYWd1ngXJb08Lz4XAGOqAnp7VGlNU+somTB6AxuU4deAr3X9N Fkyoqo2ke9EuvPlYg1AvuOJ6Z5T5ayl0lhKZAKoSB9Rab+scsqYz4Th2IipkoFglt7qy oStFmJJ/PhjH+yh2tK1NWytTimZSYM86SGO/D3Ad0d0FylaGMBySSdvcL/9yzQCY7klL BiKQ==
X-Gm-Message-State: APzg51CUeLz3a15tWL85iaNUbjP6Udp5V4yXm1nzk0x56dNkSa8KgVEr pQcQa5WqT1yrkCDLxyS1/SxRCJQq69VMLi/cQI6kJg==
X-Google-Smtp-Source: AA+uWPx+Hz0/l3qBS5D5jZIu1C6j9NaK3PAGQekKtLTf5vjvyfLVWRr/zbanwAiTJdMmkQAfJFigJSGBO6w4qsIPVZ0=
X-Received: by 2002:ac8:27d5:: with SMTP id x21-v6mr6952843qtx.18.1534864186500; Tue, 21 Aug 2018 08:09:46 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:ac8:3312:0:0:0:0:0 with HTTP; Tue, 21 Aug 2018 08:09:45 -0700 (PDT)
In-Reply-To: <970CDF5C-1E76-4241-9BCA-B053F637DE40@employees.org>
References: <CACL_3VF+EoKOEF-TkB3179UsmN_Yhaqt60jh_h2d2GLnE0EWDA@mail.gmail.com> <CALx6S356TVnbnZ_zp5+aK_x-DmMJUTidw0Wzbc3Tn=cscTd7VA@mail.gmail.com> <CACL_3VGUUs1FS4Qog6pzJ2WZyir2-keEVZTU6opzXQ4t0M-XUw@mail.gmail.com> <CALx6S35q5EqZt26KSPTGHBXZpzaNYyFBO9UxVNsi4is1BxUHrQ@mail.gmail.com> <CACL_3VGfMj6DjAWsxib6Hw_x=5X3CWASKU1oiGqvFdksDuFXDw@mail.gmail.com> <CALx6S37c_WCa+A3aD7X-rq-kj_RTGfGur8HVekt_LWTg6Os18g@mail.gmail.com> <F01E55CE-0E88-47BF-A30B-B83A0B7F5F0F@employees.org> <CALx6S35mAnjCw=0Jmz7Niacobw2QmKkUxNJPJ-CNVok_4dAOeQ@mail.gmail.com> <EDE97FE5-B72A-4ED5-A4B0-F143A0F23C3A@employees.org> <CALx6S35mZQ1HyDS3EWLZXJtT0ViXNJt1L_v3QqrKH9n7zDOM1g@mail.gmail.com> <837265C7-AF4A-4E78-A7B4-5D4AE5C38C8A@employees.org> <CALx6S37mE6wXGk9jkkJeG_tuSA8x157wgCGqh-QxW-3Kws1ZnQ@mail.gmail.com> <CBA29A6D-9C4C-4F7D-9621-6C3A04AEFC7E@employees.org> <CALx6S35uOuoAd2rdAxKTnEgcuXg2z0AQPdKrP2=7jm0ehVd3fQ@mail.gmail.com> <970CDF5C-1E76-4241-9BCA-B053F637DE40@employees.org>
From: Tom Herbert <tom@herbertland.com>
Date: Tue, 21 Aug 2018 08:09:45 -0700
Message-ID: <CALx6S36rgC=FVo-qabKBJED3dLU3yHc06k6Vw8GzK46i5KYYJw@mail.gmail.com>
Subject: Re: Comments on draft-herbert-ipv6-update-dest-ops
To: Ole Troan <otroan@employees.org>
Cc: "C. M. Heard" <heard@pobox.com>, 6man WG <ipv6@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/8yIFKfcjUOLACAGjs63rAjPlgO8>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.27
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipv6/>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 21 Aug 2018 15:09:52 -0000

On Tue, Aug 21, 2018 at 3:55 AM, Ole Troan <otroan@employees.org> wrote:
> Hi Tom,
>
>>>>>> Consider the folling scenario:
>>>>>>
>>>>>> Someone is developing a new Destination Option that might be of
>>>>>> interest for use with tunnels and might even become one of those
>>>>>> options "that makes sense to support" . Maybe it's an option for thenaforementioned insitu-OAM, or maybe a general packet CRC, etc. The
>>>>>> developer dutifully uses experimental option type 0x1e for the type
>>>>>> value of their option to test it. In particular, the action taken if
>>>>>> the option is unknown to a receiver is to skip over it. They made that
>>>>>> choice because that allows incremental deployment of the support for
>>>>>> the option in any combination supporting sending side or receivers. In
>>>>>> other words, they don't want a flag day for the option that requires
>>>>>> all nodes to support the new option.
>>>>>>
>>>>>> Now they go to test backwards comapatbility of the option by sending
>>>>>> it to a node that hasn't been updated to receive it. If the receiving
>>>>>> node is a Linux system, then the option is ignored and the tunneled
>>>>>> packet is processed as before-- expected behavior per the spec.
>>>>>> However, if it's sent to a VPP node then the packet is dropped-- not
>>>>>> expected. Even if this doesn't lead to incorrectness, it does breaks
>>>>>> interoperability and violates "be liberal in what you receive". This
>>>>>> net effect is that this makes development, test, and pilot deployment
>>>>>> of new options really hard. Just implementing the TLV loop, even if
>>>>>> the implementation doesn't process any of them, would resolve this.
>>>>>
>>>>> Absolutely. The set of _optional_ destination options would benefit from this approach.
>>>>> Of which we have none. I’d much rather just implement new options as they come available (if they ever will)
>>>>
>>>> Ole,
>>>>
>>>> I'm not sure what "comes available" mean here. Does that mean VPP
>>>> would only support TLVs parsing once one becomes standardized and the
>>>> VPP maintainers think is worth supporting? As shown in the scenario
>>>> above, with that approach its difficult to develop optional TLVs if
>>>> implementations don't properly skip over them.
>>>
>>> No, don’t get me wrong.
>>> As in any open source project you are welcome to provide a patch, and I’m pretty sure it would get in.
>>>
>> I would, but for me VPP code is very hard to decipher. For someone who
>> knows the code this should be relatively easy. The ip6_parse_tlv (in
>> net-next/net/ipv6/exthdrs.c) function does this in Linux in < 100 LOC.
>> It's straightforward, supporting padding, unknown options, and limits.
>>
>>> That said since we’re talking about tunnels, and in those cases you generally know whom you are talking to, I’m not sure I buy the argument that would make deploying new destination options harder. It’s not like a tunnel head end accepts traffic from random sources around the Internet (well, we’ve tried that with stuff like RFC1933, 6to4 and so on, but that didn’t quite pan out).
>>
>> I'm not sure this is just about tunnels. It looks like VPP can also
>> support TCP connections (there's a reference on web to HTTP server for
>> VPP) as well as UDP sockets, and VPP also can do classification, NAT,
>> and other firewall functions. Do you know if VPP properly handle
>> Destination Options in these cases?
>>
>> I'm afraid this might be an example of an implementation deployed on
>> middleboxes in the Internet (like firewalls) that arbitrarily drop
>> packets because they have a DestOpts extension header (RFC7872).
>> That's exactly a principle reason why Destination Options are unusable
>> on the Internet, and hence why there's been so much effort to avoid
>> using them and no one bother's trying to create "useful" options. This
>> is an example of death of a good protocol feature by undermining it
>> with a thousand arbitrary decisions on what parts of the spec to
>> implement or not.
>>
>> This goes goes back to a major rationale for this draft. If an
>> implementation really doesn't want to implement the TLV loop for
>> processing options then so be it, but then at least they should skip
>> over the options instead of just dropping the packet so as not to kill
>> the feature for everyone else.
>
> You have at least 4 arguments going at once here.
>
> 1) How to deal with destination options on intermediate devices terminating and forwarding traffic (tunnels, source routing)
> 2) Dealing with destination options when terminating traffic as a host
> 3) Dealing with destination options when acting as a layer violating middlebox.

Note that that RFC8200 doesn't distiguish any of the cases. Per the
spec there is no difference between a tunnel endpoint and a end host
in how they are supposed to process Destination Options. Neither is
there is any difference between how a hardware and software
implemenation of protocol is supposed to work. Middleboxes that aren't
destinations of a packet aren't supposed to be looking at Destination
Options header at all.

> 4) Why after 20 years aren’t there any “useful” destination options created?

One could also argue that IPv6 itself has gotten enough traction until
recently to warrant interest in the creating them.
>

All these fall under the same root problem, namely how do we undo the
effects of non-compliant implementations for core protocol features
(i.e. Destination Options in this case). It seems like there's three
alternatives: abandon trying to use the feature and try to do
something else to get the functionality, fix implementations to be
compliant, change protocols to adapt to reality of implementation that
best preserves the feature.

VPP is an example of an implementation that should simply be fixed to
be compliant (I have taken that up with the VPP developers). This
draft updates processing of Destination Options before the Routing
header relax the requirements similar to how this was does for
Hop-by-Hop options. It makes the assumption that some intermediate
devices in a routing list won't processing the Destination Options per
the current specification. That assumption seems to be true for VPP,
and it seems like that some other implementations will also not be
processing them ostensibly because of performance hit and processing
cost.

Tom

> Best regards,
> Ole
>
>