Re: [spring] SRH scratch space (was Re: Question about SRv6 Insert function)

Bob Hinden <bob.hinden@gmail.com> Wed, 11 December 2019 00:56 UTC

Return-Path: <bob.hinden@gmail.com>
X-Original-To: spring@ietfa.amsl.com
Delivered-To: spring@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 036581200F6; Tue, 10 Dec 2019 16:56:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] 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 ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fm5L-ODclo7y; Tue, 10 Dec 2019 16:56:57 -0800 (PST)
Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (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 A2E3412008C; Tue, 10 Dec 2019 16:56:56 -0800 (PST)
Received: by mail-wm1-x32d.google.com with SMTP id d73so1934613wmd.1; Tue, 10 Dec 2019 16:56:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=U7q0Aq1awOv/zjv1KZGD3DQGj8NXWEbJzJKO9ifP3W8=; b=AtYyXpdCPZwSvI0tc3X+ewl4dLVu5pu1Rsbe/1nn8N3n+NKjQpbxkm8LYaadoD+KkP VT3se+coWN2DjGSJtClX76RG5OwUafWpzq2KpmpLmo59DShkQ6CW0K5Z6BE0NCVPVgON xgN4ukqLkVOdDSEDKuyaoClgn3K53andJfD79vqXygu4Pdn/RAkU4I6wSRFAc2XiuRKX wKLRy9AkEoDMMWKAeIPMURjB9+c4cYqUS95Any5Nw4zKDUHmC08+h2BlOu3w7fb+SeP3 Fu2f6VBew5XKp9xxrzw5nIy7qr1mtReIbeWiKrvIh5fOWw5LvzMUezWWBTM/wsPIda9g SjGg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=U7q0Aq1awOv/zjv1KZGD3DQGj8NXWEbJzJKO9ifP3W8=; b=kWeMO9sVPSseVhHelyPeHSW9erEXfcMnRt7J62klvOAw20Xpq2pSoi8dmVF6xhhCgt UAUSSAYO9hkXPWjYEAA0YTtLXBVDRAXKM1fJk5c+UTQ6wrXa1y0DwGS35snUoGRFiCsG 1OdmAluSZD6/BEytx5vXlrgzABwyNI6jMI4i2MkUJD9EnS1SihL7vPLG43U7/E8JwxIa OFJ+AIqrRfOohyKgKwNoFznGrEKVWzI31T2Jg19l65Al+/ypb5Yq6goiaAgwWUlgQe8N +a9Lo2fh5mPUzLv2sRAP5Q3Rm62B529ThhdsgVrS6urUYegkWD8lbM426k9bb2YEKaUo HLFg==
X-Gm-Message-State: APjAAAXsRp6NLZLAGc6LFs8m7ITiaU28yVpaENvzHb+xm9xC6BsfYb7q KiebLV9rMipi7ZYXYYvGhjw=
X-Google-Smtp-Source: APXvYqyRE97ED1CnTudySdvwg74WABt67301V1u+ntrbTATpiFEN3/RmKsuRNyiUoXzguhknwQfR2Q==
X-Received: by 2002:a1c:6086:: with SMTP id u128mr191362wmb.131.1576025815022; Tue, 10 Dec 2019 16:56:55 -0800 (PST)
Received: from [10.0.0.199] (c-24-5-53-184.hsd1.ca.comcast.net. [24.5.53.184]) by smtp.gmail.com with ESMTPSA id k11sm322448wmc.20.2019.12.10.16.56.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Dec 2019 16:56:53 -0800 (PST)
From: Bob Hinden <bob.hinden@gmail.com>
Message-Id: <C9492B56-2AE6-48F7-AC24-29E6D5F224C5@gmail.com>
Content-Type: multipart/signed; boundary="Apple-Mail=_E9010039-D109-4658-ABCA-848218B710EF"; protocol="application/pgp-signature"; micalg="pgp-sha512"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Date: Tue, 10 Dec 2019 16:56:48 -0800
In-Reply-To: <CAOj+MMFUxiaMcxz93CPGS0N3-rHHPnAytNdoUUSXu-xbT7Uygw@mail.gmail.com>
Cc: Bob Hinden <bob.hinden@gmail.com>, "spring@ietf.org" <spring@ietf.org>, "6man@ietf.org" <6man@ietf.org>
To: Robert Raszuk <robert@raszuk.net>
References: <HK0PR03MB3970C6DCC635E7CD802D65FDFCBD0@HK0PR03MB3970.apcprd03.prod.outlook.com> <BYAPR05MB54636A2332FED916A26A6F14AEBD0@BYAPR05MB5463.namprd05.prod.outlook.com> <3e31873a-278a-2154-0e71-4d820bba323d@gont.com.ar> <4012D854-2F10-4476-951D-FFFE73C5083C@gmail.com> <cb2f56f8-acdc-d68d-0878-9609cb3d7b1b@gont.com.ar> <28214_1567694772_5D711FB4_28214_238_1_53C29892C857584299CBF5D05346208A48BFA9F3@OPEXCAUBM43.corporate.adroot.infra.ftgroup> <129bbb32-0f14-b799-430c-8f76fb6b1279@gont.com.ar> <1824_1575998223_5DEFD30F_1824_112_1_53C29892C857584299CBF5D05346208A48D24EBD@OPEXCAUBM43.corporate.adroot.infra.ftgroup> <4384c08a-65f5-dbfb-85c7-8365feba9662@gmail.com> <CAOj+MME1+JXth8m4U_E5R6VLvurVR_y_DQvOBy7JmGxHZp7T=Q@mail.gmail.com> <CAMGpriV8BFjOed_-QJYEZc_BANvEuc1hRgYjSdaVUYygVzPj+Q@mail.gmail.com> <CAOj+MMHCA+=9zv_UJAF3gC6R1TWKb6LQJxaGsrRa0N7Amdxrww@mail.gmail.com> <CAMGpriWbz3Gf2UcNDigRVo8gEssdaL6HnH2_6Ln050gQFbFDYQ@mail.gmail.com> <CAOj+MMGuParGLAA9_2n1zihGjJsKHr+NOK3EXP3j87ibXqmhmQ@mail.gmail.com> <93EAADC7-A4C4-4690-9DEB-27A1F44F4B56@gmail.com> <CAOj+MMFUxiaMcxz93CPGS0N3-rHHPnAytNdoUUSXu-xbT7Uygw@mail.gmail.com>
X-Mailer: Apple Mail (2.3445.104.11)
Archived-At: <https://mailarchive.ietf.org/arch/msg/spring/fJ0IwKIgPJQolia9SMOZV7p2mUY>
Subject: Re: [spring] SRH scratch space (was Re: Question about SRv6 Insert function)
X-BeenThere: spring@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Source Packet Routing in NetworkinG \(SPRING\)" <spring.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/spring>, <mailto:spring-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/spring/>
List-Post: <mailto:spring@ietf.org>
List-Help: <mailto:spring-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/spring>, <mailto:spring-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Dec 2019 00:56:59 -0000

Robert,

> On Dec 10, 2019, at 2:05 PM, Robert Raszuk <robert@raszuk.net> wrote:
> 
> 
> > Other EH’s allow for different forms of modification, for example SRH allows for TLV modification, see Section 2.1.
> 
> Section 2.1 talks about segment endpoint and that is where IPv6 outer header destination address matches the node address doing the modification.


I think it is clear that the intent is that destination options are only modified by the destination, that’s how destination options, routing header, etc., etc. work.   The Hop-by-Hop option extension header can be modified by any node as defined by a specific option.


> If you stating that it can be modified by any via node - that's pretty cool.
> 
> Regarding Hop-by-Hop - of course.

The same option format is used for destination and hop-by-hop option extension headers.  The option text definition about changing en route doesn’t make any distinction between destination and hop-by-hop options.  Personally, I don’t have a big problem if an intermediate node decides to parse extension headers and modified one based on the definition of the specific EH.

I am not sure why that is very useful, but I don’t think it would break anything.   Unlike inserting or deleting.

Bob


> For Destination Options to allow to define fields which can be modified by non outer IPv6 destination network elements - good to know.

> 
> Thx,
> R.
> 
> 
> On Tue, Dec 10, 2019 at 10:45 PM Bob Hinden <bob.hinden@gmail.com> wrote:
> Robert,
> 
> > On Dec 10, 2019, at 12:42 PM, Robert Raszuk <robert@raszuk.net> wrote:
> >
> >
> > The issue is that RFC8200 forbids even modification to any EH unless the node is a destination node in top most IPv6 header.
> 
> I don’t think that is true.   The options in the Hop-by-Hop Options header and the Destination Options Header allow the definition of options that support modifications.   See Section 4.2, specifically:
> 
>    The third-highest-order bit of the Option Type specifies whether or
>    not the Option Data of that option can change en route to the
>    packet's final destination.  When an Authentication header is present
>    in the packet, for any option whose data may change en route, its
>    entire Option Data field must be treated as zero-valued octets when
>    computing or verifying the packet's authenticating value.
> 
>        0 - Option Data does not change en route
>        1 - Option Data may change en route
> 
> Other EH’s allow for different forms of modification, for example SRH allows for TLV modification, see Section 2.1.
> 
> Bob
>