Re: Other use cases for header insertion (was Re: Header Insertion and TI-FA)

Brian E Carpenter <brian.e.carpenter@gmail.com> Mon, 11 May 2020 20:36 UTC

Return-Path: <brian.e.carpenter@gmail.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 796193A0B6E for <ipv6@ietfa.amsl.com>; Mon, 11 May 2020 13:36:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 HvW2yb7HAVg8 for <ipv6@ietfa.amsl.com>; Mon, 11 May 2020 13:36:37 -0700 (PDT)
Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) (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 675F33A0B79 for <6man@ietf.org>; Mon, 11 May 2020 13:36:37 -0700 (PDT)
Received: by mail-pg1-x52f.google.com with SMTP id u5so2478176pgn.5 for <6man@ietf.org>; Mon, 11 May 2020 13:36:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=LLDrXyNYPuD2NEGfcVYoU2PsQODIsSymb/sWLTMxuA8=; b=JFsNEXMto9rrBaxjEocr4gddamMlbpa6AjXZ0A53lJ18mJjMxcwhr7pNbTJ6oTIpBA GVwnhz5QhCABqqn+zM/O5P9OfVk5mhpTL+O1xQBrVM5sFrpoA65CIwGLIvu01T/Gpy6k GcK/PygoivBG6CYAxhZLfYKagxNniuPyWdnK1mvvCLW6xWj8a5LS2oScNGWD5EXcjlYF wd/PyzVfduZuTUHG0GetP2UPj4E3PctpQhHUEsrsjaCkoNJZgTbeUn/jLFELC/fmFyAV xfWZTQVvhvevQ12B480/6aPp8H+QMt+QmtmcSb2lEqdd66TKaqIGni73IAqTpErA6gcF 5TVQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=LLDrXyNYPuD2NEGfcVYoU2PsQODIsSymb/sWLTMxuA8=; b=DIaGSHzm/b7zUHps5k/EyDRscaufhnGiaPcA1xN3Q/wAKe1KjGDgCnp0xhGbLFXA89 VS9raAqfOXLsgLhSPDsDrQgkIb4u1JKBoBCnocj7Bw6WERx0YzqmIz5QekBzZwkELMFa Ls2RGIGbyxC5JASngdzoitXIeO1+43lzALAcqQqQk+2Xwx/WSKg7uqCRXLxEJMpj5idd Cc9UTHYiR+9v1HJ/jCTuy6x3gndBIdChCU5KTm3Ig17rNqp1j2+NaumCPHzFDOOY8hvT VqaGZHAfQ/YWe8IaXH4xAXjUF2jwQpY9m1CyjQlbJhN8KtAZI8arwxS+vWk/0qrS5vJF wLAA==
X-Gm-Message-State: AOAM5322hinVu3jtAqGuzEmsYzs+dhHf81oSdR37HiMF8manHhDZAJI1 Z+RO5u4ntV4u/IaqEaFK33f7K81C
X-Google-Smtp-Source: ABdhPJxfeXCzAi5IO9FAatiN97tUAA5QjPqJlht4HIEeBpZIGNPrwfzUZnnjjHDsF8z++TzfdZbeNA==
X-Received: by 2002:a63:4504:: with SMTP id s4mr3207229pga.247.1589229396546; Mon, 11 May 2020 13:36:36 -0700 (PDT)
Received: from [192.168.178.30] ([165.84.12.178]) by smtp.gmail.com with ESMTPSA id b5sm10102385pfb.190.2020.05.11.13.36.34 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 May 2020 13:36:35 -0700 (PDT)
Subject: Re: Other use cases for header insertion (was Re: Header Insertion and TI-FA)
To: Tom Herbert <tom@herbertland.com>, Ron Bonica <rbonica=40juniper.net@dmarc.ietf.org>
Cc: 6man <6man@ietf.org>
References: <DM6PR05MB6348FA1FC00258ACE4FDE444AEA10@DM6PR05MB6348.namprd05.prod.outlook.com> <CALx6S35EncqhfBCP0aZHqBQ2MBT1VSxpRUB59dOTBpP4wwFsjg@mail.gmail.com>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Organization: University of Auckland
Message-ID: <41a5a637-7b77-e9b8-180a-9a0d0958edfd@gmail.com>
Date: Tue, 12 May 2020 08:36:31 +1200
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
MIME-Version: 1.0
In-Reply-To: <CALx6S35EncqhfBCP0aZHqBQ2MBT1VSxpRUB59dOTBpP4wwFsjg@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/YZGeT9oqZV_KdUzISlNo3As4T1w>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.29
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: Mon, 11 May 2020 20:36:38 -0000

On 12-May-20 02:48, Tom Herbert wrote:
> On Mon, May 11, 2020 at 5:58 AM Ron Bonica
> <rbonica=40juniper.net@dmarc.ietf.org> wrote:
>>
>> Folks,
>>
>> Happy Monday!

This is confusing. For me, that was yesterday ;-)

>> As I was painting this weekend, I remembered that the use-case for IPv6 Header insertion is TI-LFA. This made the following questions come to mind:
>>
> 
> Ron,
> 
> There is at least one other use case for IPv6 Header insertion, that
> being IOAM. For example, an operator may wish to collect per packet
> statistics as packets traverse its network. An ingress router would
> insert headers containing IOAM, routers would annotate the
> information, and the egress router is expected to consume and remove
> the headers. The big difference between this use case and SR is that
> there's no source routing involved so the ingress router doesn't
> necessarily know what the egress router is, hence the ingress router
> wouldn't know the right destination address to use in encapsulation.
> 
> I believe that this is currently being developed and maybe even being
> deployed, but not under the auspices of IETF. Frankly, figuring out
> how to do header insertion in a sensible and standard way would be a
> step up from some of the methods being proposed. The most egregious
> proposal I've seen was one in which the ingress router would place the
> IOAM information in the TCP payload and then use diff serv bits to
> indicate the TCP payload is modified. Of course the day a network
> fails to remove the inserted information this completely breaks TCP!
> 
> This use case makes me think the WG should consider how to make header
> insertion safe and viable.

Unless I'm missing something, that would require a reworking of the last
sentence of this paragraph in RFC8200:

      o  The Upper-Layer Packet Length in the pseudo-header is the
         length of the upper-layer header and data (e.g., TCP header
         plus TCP data).  Some upper-layer protocols carry their own
         length information (e.g., the Length field in the UDP header);
         for such protocols, that is the length used in the pseudo-
         header.  Other protocols (such as TCP) do not carry their own
         length information, in which case the length used in the
         pseudo-header is the Payload Length from the IPv6 header, minus
         the length of any extension headers present between the IPv6
         header and the upper-layer header.

And some changes to the IPSec/AH rules about mutable fields, of course.

I'm not sure this is feasible without changing the IP version number.

    Brian