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

Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de> Sun, 01 August 2021 11:30 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 AA1173A3783; Sun, 1 Aug 2021 04:30:14 -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_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 VIWV6-0XNK2Z; Sun, 1 Aug 2021 04:30:10 -0700 (PDT)
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2063.outbound.protection.outlook.com [40.107.21.63]) (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 8F0743A3781; Sun, 1 Aug 2021 04:30:08 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Papg918JZk7isVS8nd5qEz41xom5VVFfYeaDDc8S4tOa+rgampipKrAh0VZXZtoTqNcgmEP71HTpkVy2VffrgOaTC5Cvyarm9qzZ0Yab2O+g9deTOWImUItZlxU8w838vmDItApym+JepUrvq3rotROYWkcmO+bnphzwGeUPaaN1XKtiPe3TFXd48ZElynXJUZLAdC1JCNj0fsJJaHzWUysJbiA+ZH+qooGQcqLjpKgW9bZk4OhMUruRL+RYDvsswPPVm6cjefkfTChVMT3JPpmoPFZ1ocF5tc9bO13g5p+9gbcGe+uAj5EMrhdt3YzdsAbPrRBuczSsPXawXbYEUQ==
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=iYuQ1RXVU/GoaCG//22otiDwpz8mNtYCT3SWTP9blLw=; b=mlmcC/7sY9hIZ6uYrlQ6wdDTWgj45Xyax3RSqoomHrVz+29BEdaSBloftPMK4NkT6NUTi6gMabeyfc2rrpmgIh8z37Y1opLLbsWdbK5WAJKIYMdk+y6u9lfxfvllc9d53scICFiASJB9Qp5LIrjKr1UkO5QmoCgP2mCIrA2UnBH9YR6npdrKh6G2TtzJWl6LBT1+O26XGMNjpsLmaBVSRNrWtdVVkdv/zDbzspk3Fp0cAhcu0pEaHZkMQb1R7fVvrlazWgB/hTbTXFht+2VAAm400Tg5YsPhBuuDhg+eW6v1VyxOJxTXpEw8VKPgeAfQvyqBoAXootzkQFEHeKcgpg==
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=iYuQ1RXVU/GoaCG//22otiDwpz8mNtYCT3SWTP9blLw=; b=CXKVvgDWhxE48OhBRvnWVuhAqS1Rnmu3bNY69Xdlu9b+cyxoqncSIO8qb7/ki1sBCQorbQ9+YTO2jwxEewCz+tW4dQrLJxczFXg31g5bYSgvDuqZKJA5X2DH2Me7nflBZtITJtWOCnzV6eKJYUB5Zc1VFGXuAy35YN3E1S0qlCI=
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 (2603:10a6:208:194::23) by AM9P190MB1425.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:3e7::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.26; Sun, 1 Aug 2021 11:30:03 +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; Sun, 1 Aug 2021 11:30:03 +0000
Date: Sun, 1 Aug 2021 13:30:01 +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: <20210801113001.yksklfouoz6v4hvz@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: <162608928922.11086.12172415971165753394@ietfa.amsl.com> <29067.1626090045@localhost> <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>
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <e889a219-26b2-2a2e-6d05-bb6c7db1f89d@gmail.com>
X-ClientProxiedBy: PR2PR09CA0023.eurprd09.prod.outlook.com (2603:10a6:101:16::35) 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 PR2PR09CA0023.eurprd09.prod.outlook.com (2603:10a6:101:16::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.19 via Frontend Transport; Sun, 1 Aug 2021 11:30:02 +0000
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: e1a60ef5-9a56-4ce7-0179-08d954dfb44a
X-MS-TrafficTypeDiagnostic: AM9P190MB1425:
X-MS-Exchange-Transport-Forked: True
X-Microsoft-Antispam-PRVS: <AM9P190MB14257D8E698A0532F53073CFDEEE9@AM9P190MB1425.EURP190.PROD.OUTLOOK.COM>
X-MS-Oob-TLC-OOBClassifiers: OLM:8882;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: qGZc47wbz5MCER1x4Cm7xOobQOmCBENK63L8Ls423oj3HX31mVRlmwlNBUgxgUkn+gkIuwYXTJiqQq2KENWn5pEBmMbnEQeuTteDFxiUmCp3rpNJvRALNdFknaA9kpbXyKkUwVrnG5kX6g4i7deWF8Da21x+XE2W3enpaAgIlHcTBK9Q5JkpePyNPHFrPN1kKBS9nsxMDkD6kIqnPutX3bIICZqURpZfH4pDvFxwGDnGFHwy42bHNrCEHqNXuBBbOriNqQ9QKs8vXQb/5ktT9NC8YBpaRGGl0nmQBT5EN1ZHEB4e58dNLRnjkNyvFH+GTvpHOwcsDWMwaaAveKAOccMOGbIuaHDdUPBXjjfPGpozRsrlKyR2T2oevY5SEvjSGIlc6duA073jb7cYYB5he+dM9ZQzM+rAhgyzV1xNC5RqNkMlkL7n6sNlUaBoYgzVZ8+BZk5pFxuKsDG9Op+n3K3DULIOUuAUFlk1LYbgis6PZ673A9sKJSrwrhrP4qwvE6Qan1vGZejSXHeEXbToypW979GPXj9+jBaJ10PamxXXIs/9f8k8wKYySHe8yVSlzVqQXf1Ug3EOk9u9MErn1ocO5yAdfNWPFoL848w+5Nb1GGLX9kSaqlPTURO6Oo8RoxiLWEvcej5zR48vBzHzlkS7CB92Bk5q8InDH5dnit9y0SWL/ZE2fWZBA4U9i467JVOadXED/PnpbCZD/p01OdfbKFBA0QbS7v8WZ0jKPnAY9BnxLRsTx09MgAzq2zNQtuU/aka+IznUayUOjLxt8BQgHnFvSFmx9GVIfLmI2BPbqkLVozrEDVUA392nL8p2
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:(396003)(366004)(376002)(346002)(39850400004)(136003)(26005)(52116002)(6496006)(478600001)(186003)(8936002)(6916009)(66946007)(66476007)(966005)(4326008)(6486002)(53546011)(66556008)(85202003)(38350700002)(2906002)(38100700002)(3450700001)(5660300002)(66574015)(86362001)(316002)(1076003)(786003)(83380400001)(85182001)(956004)(8676002)(54906003); DIR:OUT; SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?Z01FeFRmNnJWUTRtSXYyQ2ZLRFduVEVBTjZYc0xsOWh2amFjRXRkcjRReHEz?= =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message-Id: e1a60ef5-9a56-4ce7-0179-08d954dfb44a
X-MS-Exchange-CrossTenant-AuthSource: AM0P190MB0641.EURP190.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2021 11:30:03.0447 (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: 9L+eMf46zwxfPHs7keVv1FeyIOALegKyDu3a2jUImEqifYlabqPcmCGxS+UznP3k+YZ96h5n0fMmk+d4KH+uBH228MSRMWh4eLj5KX4rXvk=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9P190MB1425
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/0QqvCvfhMsq971thq8AFzpQUQUo>
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: Sun, 01 Aug 2021 11:30:15 -0000

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).

/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
> --------------------------------------------------------------------

-- 
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/>