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

tom petch <ietfc@btconnect.com> Fri, 30 July 2021 09:22 UTC

Return-Path: <ietfc@btconnect.com>
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 679D33A233C; Fri, 30 Jul 2021 02:22:58 -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, RCVD_IN_DNSWL_BLOCKED=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=btconnect.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 ZDHIlTBRviQ7; Fri, 30 Jul 2021 02:22:54 -0700 (PDT)
Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60114.outbound.protection.outlook.com [40.107.6.114]) (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 AB0473A233E; Fri, 30 Jul 2021 02:22:54 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aANvJzTBrvutZk6asyHbBXVj9N4BuwVhfLMUuJx3iBdkXxhcn1NWSuSstErSMgp+dLA3d5HNlZ1pmnLVFUfoMNQvS56P6kPyBRwog9E631HXtGA8BW4fxWLPdTsfI8DHMsjX2i3M9eRymCBnwTxPIryL43UbxyQGo0TTjVrXz6FuVN4lQXo6q2x44AfqseB4D1Y5WIHQ5YFRrpKTTIe2Y0cqpznhsb2xdQVNZqVo0SBO3Qj/U4XuddSVsrtk0uhZ/wr/fQRd5AdfkBDtbFiO9TRdbB6TGU8ajMSgfnAo14AdtNaRWp7vdDmYA1cAu9NytdTkAt6JkazrTI1paRVYfg==
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=aQLvvK7Z1Hj+/W0GmYb0ivmT49KOozLYXM+VgmV5D7I=; b=hGdtaOCEY1wLdTqHbMPEiEt9rW7lc/CyNQyAyjsuYpvn/ML+oc8yRbGtDlpAmbBEpXPjE32u4kdHEuAlRiQWGiRilKbJc3JAtO2ckkE9Ae20KHyf+obyNbzv7A0I2SR7FNUiGoNCIpPbtIfxuNhjoY6qLzLIpYnee/5QqT7LDsT/H1hAnVAqxrCHhQ/ppml80u7MZIYjQtgNVUp+E9Vxs8vdhgxEX5KS5NNmGBEYfTM0FQeluJlmQT4TnWDE0sorv+4EK3ddwsM0qkaQGvMTwM88VVWI8tdFZ9+/lvetc+nlPhi1a3jB6ueRzdP/eoBirMUnPQDcQ5lz3PkT3AgyXA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=btconnect.com; dmarc=pass action=none header.from=btconnect.com; dkim=pass header.d=btconnect.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector2-btconnect-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=aQLvvK7Z1Hj+/W0GmYb0ivmT49KOozLYXM+VgmV5D7I=; b=Ph67D+VR++96/PfoUOw2925cD6Fr8a8luEwnCx1hyOTX7yTN99vb+d1yhDjj+O8EsmqcKws+fOtTyRKitpWXJXjmahal28ajUeEmI9tQwSKOCF3PgMd3t4caUtEoG+9lZfmbAQdIpWweR25I/ZeERW2YTTi7qW3mEzQJeBwEPGs=
Received: from AM7PR07MB6248.eurprd07.prod.outlook.com (2603:10a6:20b:134::11) by AM7PR07MB6248.eurprd07.prod.outlook.com (2603:10a6:20b:134::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.11; Fri, 30 Jul 2021 09:22:52 +0000
Received: from AM7PR07MB6248.eurprd07.prod.outlook.com ([fe80::fc5d:ca7a:e2ea:ca9d]) by AM7PR07MB6248.eurprd07.prod.outlook.com ([fe80::fc5d:ca7a:e2ea:ca9d%8]) with mapi id 15.20.4373.018; Fri, 30 Jul 2021 09:22:52 +0000
From: tom petch <ietfc@btconnect.com>
To: Brian E Carpenter <brian.e.carpenter@gmail.com>, Erik Kline <ek.ietf@gmail.com>, "cbor@ietf.org" <cbor@ietf.org>, 6MAN <6man@ietf.org>
Thread-Topic: changes in draft-ietf-cbor-network-addresses-05.txt
Thread-Index: AQHXdxLY9sV77huO5U6gtDJkMWbdUatSzBcAgAARfICAAlTdAIACJJEAgAARjgCAAA7jgIAD32gi
Date: Fri, 30 Jul 2021 09:22:52 +0000
Message-ID: <AM7PR07MB624861D6476085FC7665A9ECA0EC9@AM7PR07MB6248.eurprd07.prod.outlook.com>
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>
In-Reply-To: <e889a219-26b2-2a2e-6d05-bb6c7db1f89d@gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=btconnect.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 5db7fa26-ab75-4697-17eb-08d9533b9b32
x-ms-traffictypediagnostic: AM7PR07MB6248:
x-microsoft-antispam-prvs: <AM7PR07MB6248286A322A27DC1270C9C7A0EC9@AM7PR07MB6248.eurprd07.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: AyeJZqqWTDc87UxbzOZMa+K3DEbzvSE8eli37uJ/6BnV06OWggxyskPe+dWCC9zlOoe/0IrwRDMYl2IXZ3BVYHNYgErsEYLyjTn3fnwHurFR4Dse+dQ+sv4GslTbsbj+L5Lm5EE94Qv/yKqXKNYzqK1p+KudpqpX1p3svOAuEpTkmcDcaFptkWb0LgaXeVeeNQcca5wJNKe8CeFwg6dW8DJquozzRrqEVy2+htaHy7kcu+glspzFhi+Tdfslxlc2cwrUlkt4x8rpLe3sQG549HPrL0tgelBU05T0vsvpGZEb3NxxUk7TNr8XZPm95dqMwwLu1pHwPyWfwvTJOKH9rAJdwEfVAPj1xl6/KGF+9BWzCjtcXhZSCzLXXJIv896XiNSSI+KAKsOgsfdq9UTkZSPPU4Gw8WKtqjdbkLlmsYyr+FqIkNzEgMWmly22GRwZvLVlakR1XqAOLLi3ZHqG6aszuB6P47/x0+seJvEe2VVL4cvyH7f9PsNApS2+u1Ju7Qk4ibJ3AmLHzVMBObAbS1y0kffeQ+ht2wGo+683+zkkc88yzBH4UoYg3mejnTVuOB9hiQ80MLVuc//Q6VFJuZlH/qknFr6TzifFHVkyrgH7ciCtgyTTFz/n4vxLYpkOK4lAO3LCf+C4v4ILaLvrQ+g9Ax5cFnLcdLQHe3LufJ8fewpuXkKgnnfhj7rzTHLPQIwAztHgLZ2HttfmR+P5RhRvzUaG/7IqmH5WaZJrs9uUZYoHwPbQHkeYyFU2YHNn5H3r5FWiHMEOhCPAwk0LGA==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR07MB6248.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(508600001)(8676002)(52536014)(316002)(33656002)(66946007)(6506007)(110136005)(8936002)(66446008)(64756008)(38100700002)(91956017)(122000001)(76116006)(86362001)(5660300002)(66556008)(966005)(7696005)(2906002)(66476007)(186003)(71200400001)(26005)(53546011)(9686003)(55016002)(66574015)(38070700005)(83380400001); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: w4ouU3lYMo2XlJswpPpJEYUHntXIDtpQBSXDcuPp76HeMjoa7GUx/2sZ/k7rpmg9Ofai6Higosd1naj9RU4JpA5FCcodC3yfvkO70e43HSCvOiduNogha9C5aiap5Ong4gj+eMxh6uDLxq7YNmRxtAX66PBcwZ+10CDuuPomPdPIO52Qrrrqs2SDxHnZWpF5a9nCPWyhMHjn8An21479Sp9AagCs1c9/8gDIp904phJxOFnZFmq2lXSVxr74NcLfHt68SbgSyPbb0bwEpbkQCCA+D2y6Gq4Wc844nlurnzJMoZumLb+T9KeO65y/+lUN/YZZea0Beu3Uel1wZkn7JDQH2cqZNdDCXFIgDIR4kkP+VyNqDQ7VZVfUhQpdXaUczVy21bBBM39hNF2RxNO4m6FzVsxo0n4ftdaaCjRrtC7ZPA0GWpTtP2RYkOabKLCJ2UrBmlMtez9VmTehzd6Oq9yGgd6u2kpvTcIoX1VUGPeqP+V1DxG92Nhzh0kcEi2ACw46XCUSLIno5yYzRZMsXqqALm+94s0ocSPaw+ZG6E38yyb/OnARKgm5ZLXSCBUmDMUAeuLjdCZ2aB7VQj4Ghx+2OUr32AhL9HQ9lTkHF/M2ZEZejyxYGCbe1lxNCIHisemMJMiBynr7414AgOhOvTRouSUPFCAEa99fNScswfLO00mlqcDePmhjKkPS2VNxYHYytt713blgas4+tyKEzLW8JLM2DJwfmTT7BsNTww3byxRdeKIS7I0isVwxaCdKYi6yhbgeg6rsNg/Rakr9ludvdm/pjJPh22fiD9DrvQNhA7Pd32pD5BH4b1casBE3bXLoUTsbtBaYqEDJXKA5nEnH2s2+w0Trnn6uHCAr41SDYuCOXyyOrntaupdvH55FbrOuUOEafT4BoGx6IaB1LtgRw8uIIryMfvOOx5WZrLexmSrw60TyLJGJBCwfmeK4Gkf+L4TNbPkwCvxoIKEdpj/owhgfFFRIK/uhBna6i5YjnaEMGiFS1zUsISoxhHqjrlj564jTyL6tkwMQO0SWYB15gCfZaffapxg2n32sgsZncamW5OHiOZE9FzKs9ZfeI0d+TQDDRIOJLKwYpOygp9+YBQO8kszy8PzwUMVmih2Vzw0b7sGppaSW6vFQPT/E2nEushEZxl0AekPoNuhkrgQpjWC0vYy/UHCrchYzNwnoN6M1omUyNwneCMDIahoJHruOfnsAof910AfxdL9uk5ML0dQQmeyHZb1ahD9Szuq1zEjXoLTrsij/s3f3QHUzU3ojorL8LVWTpWLm0T7JGYcG0M6RGHUXwKNTchIBFe4=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM7PR07MB6248.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 5db7fa26-ab75-4697-17eb-08d9533b9b32
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Jul 2021 09:22:52.1294 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: cf8853ed-96e5-465b-9185-806bfe185e30
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: eFV2+jUrITsfqL+qDeOAEJ1IJEIhmvYUJ6JLs53BA49YXaZpCS6ksb6fp2v+86tRv7ntgkvr8RQU8v9oqrUkaQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM7PR07MB6248
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/OgHeTdGMucJeFJjb38doBUo9CxY>
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: Fri, 30 Jul 2021 09:22:59 -0000

From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Sent: 27 July 2021 23:00

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

<tp>

I am not Juergen but ..
The few zones that I have seen have been alphanumeric and not numeric so making the numeric form canonical has always puzzled me.

I agree with Juergen that for Problem or  Performance, then zone is helpful.  My concern was more about Configuration.  Thus draft-ietf-opsawg-l3sm-l3nm, currently in IETF LC, configures DHCPv6 customer-addresses as ipv6-address, ie with zone, while the protocol specification, RFC8415, has 128 bit fields for addresses i.e. no zone.  This implies that all YANG servers must accept addresses in the zone format and strip the zone before using them.  I do not know if that is what YANG servers do in practice.

Tom Petch

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
>