Re: [IPv6] Removing extension headers from packets (revisited)

Brian E Carpenter <brian.e.carpenter@gmail.com> Tue, 15 August 2023 21:06 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 E3B22C1519BB for <ipv6@ietfa.amsl.com>; Tue, 15 Aug 2023 14:06:59 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.199
X-Spam-Level:
X-Spam-Status: No, score=-2.199 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, NICE_REPLY_A=-0.091, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3I4pDJg5M9Ok for <ipv6@ietfa.amsl.com>; Tue, 15 Aug 2023 14:06:59 -0700 (PDT)
Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8435EC15199D for <6man@ietf.org>; Tue, 15 Aug 2023 14:06:59 -0700 (PDT)
Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1bdf4752c3cso10970025ad.2 for <6man@ietf.org>; Tue, 15 Aug 2023 14:06:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692133619; x=1692738419; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=K9MlS5a049/x96vb56r9lHoXJ1nHrHXlMwL9MIJj2ok=; b=hvDDLk/KrkoD4tl+DpXwDfkkvMLne6HkSTEm/8k48VI1fmHi3UBBiApLKwx5BQEZZM iJADzWPCjF5TNMgxL7qJtl44iI1f5kT7a208dLXwWTpuhjTc1ukcYYXXI7de6gSgp6Ie 37LWuWBuc5rumE7VDjTN7qMXCGFVs/gsXFmhJFscYDS3jqn2LjHjzZju9Erqh4t2BvHs V0zaek0YvLXLj7x+bq3jTNVxe4uEcvGA9GSKzQJYUtbo8cp5Jp/dIt+C/e2uzGLduTjb 9U1JrXoSErEdOVsMl+1Ef9/IFeUor+hx+JTL5MNDN29bs5osH3DitDcXuzdeSlHcyv6O O+tQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692133619; x=1692738419; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=K9MlS5a049/x96vb56r9lHoXJ1nHrHXlMwL9MIJj2ok=; b=B/ObfoelQapVjcmBKYPEdKQgaLR65XoNBB1FEijNbiDuOgQcrfwP5zx78OyxZ+QdJk klNDvrlLeePpp0YCHf69Z8venGlYCW0wFFp0VLoJO6soDMt4KUevh0LJSaC3he0ITOAq 42Eb0HiZs933ybeGydnPDD8FBzRXm5IYcMJF0VUJ2zeTl44o+L4owWxh0iu3Hk5oPz50 D4Z8YokWrh+KCGiR3twSl3tK+78L16CJqTppNAn+thqvLXVbzPYGyCkAfdf+8alP8KdM /Re+GveoHs76wzfwWl/S/3VCEONOl2QIrx0C7sbPTVYru1iqGni8QyM3gF2VNiuGxBPw D5sw==
X-Gm-Message-State: AOJu0YwF6umFm5ytS0F6rKPYTL8ptnZ+ef+LA0dDFcRimE4mF5J38MqX v0GT3OmDbhaaIlkHti7lVPs=
X-Google-Smtp-Source: AGHT+IHOGjAUKjw0OUVQd3JeIceT1AHntJMvOitaAUTkLUBhdmg4vTSd6h3bdqOoP04VLCLX9CCwOw==
X-Received: by 2002:a17:902:d507:b0:1b3:8862:9823 with SMTP id b7-20020a170902d50700b001b388629823mr37948plg.28.1692133618650; Tue, 15 Aug 2023 14:06:58 -0700 (PDT)
Received: from ?IPV6:2406:e003:10cc:9901:b2e1:1101:7ba7:19fd? ([2406:e003:10cc:9901:b2e1:1101:7ba7:19fd]) by smtp.gmail.com with ESMTPSA id ja11-20020a170902efcb00b001b83e5ec666sm11485892plb.6.2023.08.15.14.06.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Aug 2023 14:06:58 -0700 (PDT)
Message-ID: <333f468d-eb0c-fe53-729c-d588067ecab1@gmail.com>
Date: Wed, 16 Aug 2023 09:06:52 +1200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0
Content-Language: en-US
To: Mark Smith <markzzzsmith@gmail.com>
Cc: Tom Herbert <tom=40herbertland.com@dmarc.ietf.org>, Joel Halpern <jmh@joelhalpern.com>, 6MAN <6man@ietf.org>
References: <CALx6S36gQBgNAp-Poq3pRupGWUh0iA8M546=S=vUp5cQK_82TQ@mail.gmail.com> <CAO42Z2zAf4EAKhX1ZJC1KUk4DXcNZykA82hdUfo64h45q8DVUQ@mail.gmail.com> <CALx6S36pk0+YjdjgNvWCsAjF5NVmQLnp8pKc30uOb1DZmcfasQ@mail.gmail.com> <CAO42Z2zmxiGANzdB6RdrfgGLfH_Q-D7-U_JGJ0V++3ms8nGxOg@mail.gmail.com> <CALx6S37BYjhShGhHbg8qK4Fxeubrep7BGzRBmrHD9DcBcToxPw@mail.gmail.com> <620318f4-d6ae-3c29-c5f1-93797363d47c@joelhalpern.com> <CALx6S36RvnkZf6=dfFPJZo7MHzJTU28LOjVgV1Eq27p7iA_9-Q@mail.gmail.com> <2e6fe4e1-1020-2341-94aa-cd53859b0eed@gmail.com> <CAO42Z2znSNj4W16jEiWfR_z9TfhmQTmtZJdS8xCXAw3iur191A@mail.gmail.com>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
In-Reply-To: <CAO42Z2znSNj4W16jEiWfR_z9TfhmQTmtZJdS8xCXAw3iur191A@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/I3ICu5bgqeSJ9Pi2o0HyEdbh6qA>
Subject: Re: [IPv6] Removing extension headers from packets (revisited)
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.39
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, 15 Aug 2023 21:07:00 -0000

On 15-Aug-23 17:26, Mark Smith wrote:
> Hi Brian,
> 
> On Tue, 15 Aug 2023 at 12:04, Brian E Carpenter
> <brian.e.carpenter@gmail.com> wrote:
>>
> 
> <snip>
> 
>>
>> Hang on. If my initial packet is (simplified):
>>
>> SAx|DAy|EHz|payload
>>
>> (where SAx and DAy are the specific source and destination GUAs)
>>
>> and an egress router wraps it up as
>>
>> SAx|DAy|(SAx|DAy|EHz|payload)
>>
>> i.e. the packet was encapsulated with protocol 41 *using the same addresses* but no EH's, and later the ingress router that owns the prefix of DAy unwraps it as:
>>
>> SAx|DAy|EHz|payload
>>
>> again, it seems to me that the process can be fast and simple, and the packet on the open Internet has no EH and therefore no problem. No tunnel set-up needed, as long as everyone lets protocol 41 through.
>>
> 
> The drawback of duplicate SA/DA is that a receiving router needs to
> inspect literally every packet it receives beyond the fixed IPv6
> header, looking for the special handling EH. (Side note: Duplicate
> SA/DA was also proposed in draft-ietf-ippm-ioam-ipv6-options for
> IOAM).

Yes, after it's unwrapped it. That's the price of being a border
node on a limited domain. There is no free lunch here (see my
points about service level agreements sent a minute or two ago).

     Brian

> 
> 
> If special handling could be encoded in the outer packet's DA, they
> could then easily be identified for special handling using a /128
> route in the FIB.
> 
> Other packets without the special handling DA are forwarded normally,
> without looking for the EH.
> 
> 
> An address like this already exists:
> 
> fe80::0/128 - the link-local subnet router anycast address
> 
> 
> The packet sent by the host would look like this (H.<address type>
> meaning host address of <type>):
> 
> (Outer:)[SA:H.LLA|DA:fe80::0|Special Handling EH]
> (Inner:)[SA:H.LLA/ULA/GUA|DA:<blah>|payload for <blah> DA to process]
> 
> 
> 1. The first hop router would receive the packet, FIB match on DA fe80::0/128.
> 
> 2. It would remove the outer IPv6 header, and then perform the
> processing according to [Special Handling EH].
> 
> 3. Post-processing, the decapsulated packet is then sent back into the
> forwarding plane or forwarding domain as
> [SA:H.ULA/GUA|DA:<blah>][payload for DA to process] for further
> forwarding.
> 
> 
> Encoding of special handling in DAs is not new, emergency telephone
> numbers (000/911/112) are also examples, as are anycast pizza chain
> local shop instance phone numbers.
> 
> Regards,
> Mark.
> .