Re: [Cbor] changes in draft-ietf-cbor-network-addresses-05.txt

Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de> Tue, 03 August 2021 05:53 UTC

Return-Path: <J.Schoenwaelder@jacobs-university.de>
X-Original-To: cbor@ietfa.amsl.com
Delivered-To: cbor@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D66123A142F; Mon, 2 Aug 2021 22:53:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=jacobsuniversity.onmicrosoft.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 p-585817PJWg; Mon, 2 Aug 2021 22:53:32 -0700 (PDT)
Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80084.outbound.protection.outlook.com [40.107.8.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4A8243A142B; Mon, 2 Aug 2021 22:53:31 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Fi2XEJxzNe3R/3Bx+2+pElQEgYQ54gmh9w/DKsLL+PEct581iI0802UsA0d8xHaFKWhfqvWwtIU3JZR90zgXRU/tC3Tl51wYMmX6/Wjgkv8nxsSziq6EvgrOm0/EWouQGR+27VKf2N1hYSCeXncjilvneAWpI1+zREwUGTF6aKI/4RmEFN4glMnKiBJhXy3zqjdHoDW348GSl0bbpr6GwijVYB8TiqtjZgXeNAJnANnYzGvt7ET5ksjRF40IN/kAvkvEfH95RYUGY1YMnWGXV6KSEyW/8EEw+g3AjtnNWVcFURE/AKxYh+7eRXd3DTaqXzjFhdXmcwVBXFogm714DA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EG4rVJD9svSOKE0KhxhTLqOt6mIoTiGWdv7eVQlyqZU=; b=SszQlrqvPN5wHg7HkNEC5uf5tuAcTbPzbT99eSEXTEKLT1LclBhzqg/NRIS3YG4yg78xTB/7RUDE72GIFgamRZEwyvJrOJoIVabeuF++yl4i90ifaucwpzQY/SZoQLcwwWWT73HiIe6fEym0CY9mvNdgDWUQupToF5+CC42jyTwHwhfeBLLEntlJ47bLen3hf1nuJ8p5VgE72l/EXQGNyE4SJtLJFEXAdgI+bprwUgi3g2uCYgQ+zrLu8DFIUTy/cAH8+JDj+Yrzgt3l1zWk3VG9Pc4ma8v6Yagu8krRUuhbZtuQZcWe2BHIlTdMfRQxyK3/L9S5uDWJkupVJ4ec+A==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=jacobs-university.de; dmarc=pass action=none header.from=jacobs-university.de; dkim=pass header.d=jacobs-university.de; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jacobsuniversity.onmicrosoft.com; s=selector2-jacobsuniversity-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=EG4rVJD9svSOKE0KhxhTLqOt6mIoTiGWdv7eVQlyqZU=; b=FUk8FH3N+P0MLISuU1yXL1NDVc34WTPsc0wPeS2lREnKSrnr+NELzr/Q3JsOQMrgeFTu8i2Z87sDg6t3Iypb6As6mEuEpivnONeQZ8AZOzdiU3gFznqmfUHmXzgvExhQzTRgXWtOoKrvmacXE/m4eV4jujLETrE3LU5JJBbqVL4=
Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=jacobs-university.de;
Received: from AM0P190MB0641.EURP190.PROD.OUTLOOK.COM (10.186.128.215) by AM9P190MB1218.EURP190.PROD.OUTLOOK.COM (20.182.233.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4394.15; Tue, 3 Aug 2021 05:53:28 +0000
Received: from AM0P190MB0641.EURP190.PROD.OUTLOOK.COM ([fe80::58c1:599a:1d3d:cdeb]) by AM0P190MB0641.EURP190.PROD.OUTLOOK.COM ([fe80::58c1:599a:1d3d:cdeb%9]) with mapi id 15.20.4373.026; Tue, 3 Aug 2021 05:53:28 +0000
Date: Tue, 3 Aug 2021 07:53:27 +0200
From: =?utf-8?B?SsO8cmdlbiBTY2jDtm53w6RsZGVy?= <j.schoenwaelder@jacobs-university.de>
To: Brian E Carpenter <brian.e.carpenter@gmail.com>
Cc: tom petch <ietfc@btconnect.com>, Erik Kline <ek.ietf@gmail.com>, "cbor@ietf.org" <cbor@ietf.org>, 6MAN <6man@ietf.org>
Message-ID: <20210803055327.ma3pvyr7flrcd3b5@anna.jacobs.jacobs-university.de>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: Brian E Carpenter <brian.e.carpenter@gmail.com>, tom petch <ietfc@btconnect.com>, Erik Kline <ek.ietf@gmail.com>, "cbor@ietf.org" <cbor@ietf.org>, 6MAN <6man@ietf.org>
References: <CAMGpriUnfMjhk7teAN-A0j5SCK=BpyJEDC+NOCJtHzmF1BFeow@mail.gmail.com> <aa9884b5-fd58-60cb-fa1d-b2d76f5a09a1@gmail.com> <VI1PR07MB6256E2C9CC9565FF2F080B5DA0E89@VI1PR07MB6256.eurprd07.prod.outlook.com> <c2c7a576-e138-1364-5ed0-a2987c1c1974@gmail.com> <20210727210706.buavt5nwairrjblf@anna.jacobs.jacobs-university.de> <e889a219-26b2-2a2e-6d05-bb6c7db1f89d@gmail.com> <20210801113001.yksklfouoz6v4hvz@anna.jacobs.jacobs-university.de> <b5f1c62e-4aa4-a397-8777-b3ec0eeafccc@gmail.com> <20210802070839.g2tjn3pqu5lpbd54@anna.jacobs.jacobs-university.de> <541ec837-d5ad-2c3f-aa98-6d9af4e11c53@gmail.com>
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <541ec837-d5ad-2c3f-aa98-6d9af4e11c53@gmail.com>
X-ClientProxiedBy: AM9P250CA0010.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:21c::15) To AM0P190MB0641.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:194::23)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from localhost (212.201.44.244) by AM9P250CA0010.EURP250.PROD.OUTLOOK.COM (2603:10a6:20b:21c::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.18 via Frontend Transport; Tue, 3 Aug 2021 05:53:27 +0000
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 5294033f-7399-4e75-17b6-08d9564303fd
X-MS-TrafficTypeDiagnostic: AM9P190MB1218:
X-MS-Exchange-Transport-Forked: True
X-Microsoft-Antispam-PRVS: <AM9P190MB121853AAF18DDCD44D74175EDEF09@AM9P190MB1218.EURP190.PROD.OUTLOOK.COM>
X-MS-Oob-TLC-OOBClassifiers: OLM:10000;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: n+UKBbGh4jNpinBcAgFbp5LUAC7IofhrmZTAhuYgBBdWLz/Zwj7c7eFTX1dpLrYO0MgB9B9yjQCYAqfXhdmdL1szSP9OUI77QYwZ7mZs0tLwR3yun0CucQqyc17GkxpgveU6JiU7AeSSBCtP4aI9Ct8q/0/GHeOW+JIYhVxye4Xfjt6uV7gG8agVHBcoMbMD/fuudL1JhktmdH3U3I6DxX6m0nBUXwzjgDoy+OYeiqSwfx/GppmAbJrKSN2Jrb10IiVL8lUpgKeV55Rou+TxWL5AbNy+TRyDjo6lAVBUGtReEiHJFMoA/nksk2IgTwGxHFR6Lcwi2+Vrnm0QtxSp6jotQWeoOo/a3LoIf28qcHlAXF+kjwH7VUVmfXOurkcmeklrBQrvXdT+OlfFoIWxNMqfPsxxc0dYi4MVGyjryZ3pYXq0wjlxjUHkr/3YEXSNeowfJvJP5yuDHyxiLat88kuGTsT6doS8EP4cukwFXDHJYkBG/K7DLqDfS1RChdESJtmianvjtHM7Ey6A7gZ+F0oULMBL4195LDVnqol3XNiD5UyTKfMU2xWwsUULhOJXqWJLaAJbpUd0HWgHukP+zfMPmrXQQXihRhKKzdqmPJO1/DsAukjLsy2IaDWA6Pj9HOQJoSUGOFeqSfPk4JS8WFltz62rDw6kURFBCrXQF+4KWwk1deE2+Im8zOdwFvvL43oOCViqM+CPGnFtmmAYf42JNCDPFNZsUEPlgYjazc3QBO0h2YEnsgq8p4VMjSHiYTuTeksAsX+C2/38SXpGGoYSVdSlwFH0DS7z0m0lqp1DAxi9zTUt+yF25m7+89PA
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0P190MB0641.EURP190.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(366004)(376002)(346002)(39840400004)(136003)(396003)(86362001)(6486002)(8676002)(85202003)(66574015)(4326008)(8936002)(478600001)(83380400001)(966005)(956004)(5660300002)(54906003)(85182001)(3450700001)(38350700002)(38100700002)(316002)(786003)(2906002)(1076003)(53546011)(6916009)(26005)(186003)(6496006)(66476007)(66556008)(66946007)(52116002); DIR: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FbGo4OHpOMVdkdGJYNURm?= =?utf-8?Q?apk3I0XePVahXdi/Gwnw+LW2mqT0U1G2cLWSC80?=
X-OriginatorOrg: jacobs-university.de
X-MS-Exchange-CrossTenant-Network-Message-Id: 5294033f-7399-4e75-17b6-08d9564303fd
X-MS-Exchange-CrossTenant-AuthSource: AM0P190MB0641.EURP190.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2021 05:53:28.0984 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: f78e973e-5c0b-4ab8-bbd7-9887c95a8ebd
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: Z2xXHtFAD/Mn4FD2qE4NeTJNhxlofFzM0VPewwB+ku9SUa7MyJXV/oEVRq/ocj88mXWEuhf6RaMSIVe6m9ldQClfaptLRdlTRHtdz0wKJqg=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9P190MB1218
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/fdBm9Bg6_0jF-Qe-5YFnFL8H078>
Subject: Re: [Cbor] changes in draft-ietf-cbor-network-addresses-05.txt
X-BeenThere: cbor@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Concise Binary Object Representation \(CBOR\)" <cbor.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/cbor>, <mailto:cbor-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cbor/>
List-Post: <mailto:cbor@ietf.org>
List-Help: <mailto:cbor-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/cbor>, <mailto:cbor-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 03 Aug 2021 05:53:39 -0000

On Tue, Aug 03, 2021 at 08:00:26AM +1200, Brian E Carpenter wrote:

> > Regarding your statement "Remotely, there is no way to know that on my
> > Linux machine, %wlp2s0 and %3 are the same thing.", please note that
> > applications having access to the IF-MIB or the ietf-interfaces YANG
> > module or a proprietary API exposing interface information will
> > understand how interface names map to interface indexes.
> 
> But not if the user has chosen to change some interface names, surely?

In the IF-MIB, ifName is read-only (so you can't change it via SNMP,
but this says nothing about other APIs) and ifIndex is used as the key
of the table. In ietf-interfaces, the config true interface/name is
used as the key of the list and the interface/if-index is a config
false property of the list. This change to refer to interfaces by name
instead of a number was the result of a long discussion and it
reflects that most routers and bridges use names to refer to
interfaces (and so does the *nix world).

> The mapping is not algorithmic in that case, and any names held
> remotely in the management plane could be out of date. IMHO it remains
> very inadvisable to export the names. I'd advocate making the use of
> interface numbers mandatory rather than "canonical".

The mapping is on many systems never purly algorithmic as software can
choose how newly created interfaces are named. And some people want
interface named by the customer networks they connect, others want to
have semantically meaningful vlan names. And lets not forget that
there was an interesting time where Linux could end up with different
interface names for the same physical interfaces on every reboot that
caused some serious surprises.

Synchronization of config changes is a general problem in the network
management world and not specific to changes of interface names. There
are boxes that disable or discourage access to the CLI so that all
changes go through a management daemon and then good management
protocols can take care. Some people moved to streaming approaches to
reduce the synchonization pains, where boxes are configured to push
all changes to management systems.

Given that ietf-interfaces does key interfaces by name (which reflects
the common practice of network operators to refer to router interfaces
by name), it seems the ship has sailed.

/js

> 
>    Brian
> > 
> > /js
> > 
> > On Mon, Aug 02, 2021 at 09:15:43AM +1200, Brian E Carpenter wrote:
> >> On 01-Aug-21 23:30, Jürgen Schönwälder wrote:
> >>> The description statements in RFC 6991 talk about a zone index, i.e.,
> >>> they assume the zone index is numeric (which kind of follows from my
> >>> reading of RFC 4007).
> >>>
> >>> The pattern is flexible enough to accept a string as well (e.g., an
> >>> interface name). In other words, a server may accept 'fe80::1%lo0' as
> >>> valid input on an edit-config put it will return 'fe80::1%0' on a
> >>> get-config since the numeric zone index is the canonical format
> >>> (assuming the lo0 interface has the interface index 0).
> >>
> >> This still makes me uncomfortable. The zone identifier syntax definition.
> >> in RFC4007 is pretty vague. If an implementer chooses to ignore the
> >> SHOULD on page 16, it seems that a valid name for interface index 7
> >> could be "6". That's why "canonical" is a bit weak. (Neither Windows
> >> nor Linux allow anything that silly, of course.)
> >>
> >> To be precise, consider these statements in RFC4007 page 16:
> >>
> >>    An implementation SHOULD support at least numerical indices that are
> >>    non-negative decimal integers as <zone_id>.
> >>    ...
> >>    An implementation MAY support other kinds of non-null strings as
> >>    <zone_id>.
> >>    ... the format MUST be used only within a
> >>    node and MUST NOT be sent on the wire unless every node that
> >>    interprets the format agrees on the semantics.
> >>
> >> Remotely, there is no way to know that on my Linux machine,
> >> %wlp2s0 and %3 are the same thing.
> >>
> >>    Brian
> >>  
> >>>
> >>> /js
> >>>
> >>> On Wed, Jul 28, 2021 at 10:00:23AM +1200, Brian E Carpenter wrote:
> >>>> Jürgen,
> >>>>
> >>>> We are not disagreeing. These are exactly the sort of use cases that 
> also
> >>>> motivate RFC6874 and RFC6874bis. 
> >>>>
> >>>> But I have a question. In the management plane, do you think that the
> >>>> zone index (an integer) is the item of interest, or a zone identifier
> >>>> (a string)? The description at
> >>>> https://datatracker.ietf.org/doc/html/rfc6991#page-20
> >>>> only says that the numerical format is "canonical".
> >>>>
> >>>> Regards
> >>>>    Brian
> >>>>
> >>>> On 28-Jul-21 09:07, Jürgen Schönwälder wrote:
> >>>>> On Wed, Jul 28, 2021 at 08:04:16AM +1200, Brian E Carpenter wrote:
> >>>>>> On 26-Jul-21 23:49, tom petch wrote:
> >>>>>>> From: ipv6 <ipv6-bounces@ietf.org> on behalf of Brian E Carpenter 
> <brian.e.carpenter@gmail.com>
> >>>>>>> Sent: 25 July 2021 00:44
> >>>>>>>
> >>>>>>> There's an "interesting" issue there, especially for IPv6, which is 
> >> that the interface ID (or "zone index", per RFC4007) has no meaning outside the host. So it really shouldn't need to be sent on the wire in normal 
> >> circumstances.
> >>>>>>>
> >>>>>>> (The conversation around RFC6874bis is slightly relevant.)
> >>>>>>>
> >>>>>>> <tp>
> >>>>>>> Brian
> >>>>>>>
> >>>>>>> As I may have said before, the YANG Types RFC6991 provides types for IPv4 and IPv6 addresses both with a zone index.  It also provides no-zone 
> >>>> types with a suffix 'no-zone' on the type name.  I see evidence that 
> most 
> >>>> authors of YANG modules do not realise that a reference to 'ip-address' per se is a reference to the format that includes the zone and so have specified that format in many if not most cases.  Thus it seems likely that many of the addresses on the wire are in the zone format, even if the zone is rarely present.  With hindsight, it might have been better to have specified 'ip-address' and 'ip-address-zone' rather than ip-address' and io-address-no-zone'.
> >>>>>>
> >>>>>> Makes sense. The reply I just sent to Christian Amsüss probably 
> >> applies to YANG too. Sending a zone index to another host is rarely meaningful or useful.
> >>>>>>
> >>>>>
> >>>>> YANG was designed for network management purposes and there are quite
> >>>>> some use cases where communicating the zone index is somewhat essential:
> >>>>>
> >>>>> - If you want to debug a problem, you likely need to know to which
> >>>>>   link a link-local address belongs.
> >>>>> - If you want to generate statistics for protocols using link-local
> >>>>>   addresses, you likely need to know to which links the link-local
> >>>>>   addresses belongs.
> >>>>> - If you want to configure a service to use a certain link-local
> >>>>>   address on a certain link, you may have to include the proper zone
> >>>>>   index.
> >>>>> - If an IP address is used to index lists, things can fall apart if
> >>>>>   you end up with duplicate link-local addresses on different links.
> >>>>>
> >>>>> Whether we should have picked different names for the types may be
> >>>>> debatable but at the end it is the YANG module author's responsibility
> >>>>> to pick the appropriate types.
> >>>>>
> >>>>> In other words, network management applications often need to be aware
> >>>>> of zone indexes in order to do the right thing. This is different from
> >>>>> end user applications (that usually have no topological awareness).
> >>>>>
> >>>>> /js
> >>>>>
> >>>>
> >>>> --------------------------------------------------------------------
> >>>> IETF IPv6 working group mailing list
> >>>> ipv6@ietf.org
> >>>> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> >>>> --------------------------------------------------------------------
> >>>
> >>
> >> --------------------------------------------------------------------
> >> IETF IPv6 working group mailing list
> >> ipv6@ietf.org
> >> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> >> --------------------------------------------------------------------
> > 
> 
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>