Re: [Cbor] Supporting IPv6 Link-Local with scope (was Re: Éric Vyncke's Discuss on draft-ietf-cbor-network-addresses-09: (with DISCUSS and COMMENT))

"Eric Vyncke (evyncke)" <evyncke@cisco.com> Tue, 05 October 2021 21:14 UTC

Return-Path: <evyncke@cisco.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 EFDB33A0802; Tue, 5 Oct 2021 14:14:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.599
X-Spam-Level:
X-Spam-Status: No, score=-9.599 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=eCBjsLnX; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=BXBq+wju
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 pqzdL5Y6ONKM; Tue, 5 Oct 2021 14:14:10 -0700 (PDT)
Received: from rcdn-iport-8.cisco.com (rcdn-iport-8.cisco.com [173.37.86.79]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3F2DD3A07F3; Tue, 5 Oct 2021 14:14:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3688; q=dns/txt; s=iport; t=1633468450; x=1634678050; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id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w4hAQ6lNAGBOgKKH3qBMYEBgggBAQYEBIUKGII1AwaBECqDAIQVglGEHQInHIFJRIEVJwwQgmc+gmMCgTRDgwE3gi6KHmsGaFMgAi4vRiBpKZRKAUaWPpIqCoMwikSOPYVjBSyDZ4tqkQKGOoU9nTGYcgIEAgQFAg4BAQY1gSw7gUUNB3AVZQGCPlEZD44gDBYVgzuKXnQ4AgYBCgEBAwkBgjqTNgEB
X-IronPort-AV: E=Sophos;i="5.85,349,1624320000"; d="scan'208";a="941695770"
Received: from rcdn-core-7.cisco.com ([173.37.93.143]) by rcdn-iport-8.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 05 Oct 2021 21:14:08 +0000
Received: from mail.cisco.com (xbe-aln-004.cisco.com [173.36.7.19]) by rcdn-core-7.cisco.com (8.15.2/8.15.2) with ESMTPS id 195LE7ED024225 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=OK); Tue, 5 Oct 2021 21:14:07 GMT
Received: from xfe-aln-004.cisco.com (173.37.135.124) by xbe-aln-004.cisco.com (173.36.7.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Tue, 5 Oct 2021 16:14:07 -0500
Received: from xfe-rcd-005.cisco.com (173.37.227.253) by xfe-aln-004.cisco.com (173.37.135.124) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Tue, 5 Oct 2021 16:14:06 -0500
Received: from NAM12-DM6-obe.outbound.protection.outlook.com (72.163.14.9) by xfe-rcd-005.cisco.com (173.37.227.253) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15 via Frontend Transport; Tue, 5 Oct 2021 16:14:06 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dE1DYLVvqmiOgc7ltZUMUaabzWkervzaCR+2JlDWe+VLaAPJHsf4BIF0vcFVZlCbPGNHcgkYwsmI/nAn/uT9+RZHU/WHMyI7s3V7hZ/XpdvXkIoRPynDeye8JosZW7uhavKRf0T06SP1bjIySGjZYAvMktvWDKAp7rdii4aTNdgi4OvLygInjoOLTwK9l6Db0LRuYQzd/FOj8l7eFoHBU3V8uipV33xWyb4V11ICSia6uaELszSO4i1aqL+2ElC+AnmH8C2hP7Bs+nMRFuRNNY0ELY5p1dptwwon7BoV1/kM8k1qN4XpfexVKZbP+sieCl7ISLpaetfdEyHubDeoEQ==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=+INdd8D0Un5j+k0EcGPX3izB3zYKGjQbZdpXJuf2vmI=; b=EAmAv/ICMrw29ddgFvXubqiW7MYNLz+hwueNN1e0kOZWB5Hb4lxmnnrRT7btGkRUtof1tB7syVK1Y7l5A7TxxoevIlmYd9rmQKnkoGsOLZNpi+EY4ytU4xyqrvXMdHV8+WU40CbQgr516hoDtqQ+VC0H/Kgy0UkbMlc5I1mH9oH3TH534oi8gA5p2tewT2MBsn2dw3QfMHxX2XBwn7uNRPh4KaUupvP+MBuvPd6ddNKLST34tg8Nv3pVkqe4efqc3SZkNII97uVjd5hFpb9IWXOOrYwDpp0hN0IpPv+WqThPAQf8265DmrpG55b+3XZ5khseDOyVI2oLPZwyXrGTtQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=+INdd8D0Un5j+k0EcGPX3izB3zYKGjQbZdpXJuf2vmI=; b=BXBq+wjuo+TrHGs3bg8Qnx7QM4PXj//NzBNDMpNbyWnLoj0nTG9Jr55UnuXhP7vXwM7gxVil+MRda9b2baWDIHW7LYIJ04bIfrsyx20Qj0zIhffdFi3OkvH/6mVMHzoPdCw894YnQugqiEklobD3cBaPLz3RUeEmtMtcIzYQZK0=
Received: from PH0PR11MB4966.namprd11.prod.outlook.com (2603:10b6:510:42::21) by PH0PR11MB4936.namprd11.prod.outlook.com (2603:10b6:510:42::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4566.17; Tue, 5 Oct 2021 21:14:05 +0000
Received: from PH0PR11MB4966.namprd11.prod.outlook.com ([fe80::596b:9fa6:18d4:67e7]) by PH0PR11MB4966.namprd11.prod.outlook.com ([fe80::596b:9fa6:18d4:67e7%8]) with mapi id 15.20.4566.022; Tue, 5 Oct 2021 21:14:05 +0000
From: "Eric Vyncke (evyncke)" <evyncke@cisco.com>
To: Michael Richardson <mcr+ietf@sandelman.ca>
CC: The IESG <iesg@ietf.org>, "d3e3e3@gmail.com" <d3e3e3@gmail.com>, "draft-ietf-cbor-network-addresses@ietf.org" <draft-ietf-cbor-network-addresses@ietf.org>, "barryleiba@computer.org" <barryleiba@computer.org>, "cbor-chairs@ietf.org" <cbor-chairs@ietf.org>, "cbor@ietf.org" <cbor@ietf.org>
Thread-Topic: Supporting IPv6 Link-Local with scope (was Re: [Cbor] Éric Vyncke's Discuss on draft-ietf-cbor-network-addresses-09: (with DISCUSS and COMMENT))
Thread-Index: AQHXuhqYWSWb+8o+30+Z6nZ4dHFSY6vFCSsA
Date: Tue, 05 Oct 2021 21:14:05 +0000
Message-ID: <790DCEB7-0CC9-4384-A671-AE2B9D397163@cisco.com>
References: <163344085669.17315.998599560097016034@ietfa.amsl.com> <24367.1633460118@localhost>
In-Reply-To: <24367.1633460118@localhost>
Accept-Language: fr-BE, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.53.21091200
authentication-results: sandelman.ca; dkim=none (message not signed) header.d=none;sandelman.ca; dmarc=none action=none header.from=cisco.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 8976e5f7-3d7e-4b47-f4ca-08d98845106f
x-ms-traffictypediagnostic: PH0PR11MB4936:
x-microsoft-antispam-prvs: <PH0PR11MB4936D9DD96B0B77C0E18095EA9AF9@PH0PR11MB4936.namprd11.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: ZiZ0vFbbJu3rv6aGYvFg+9jwxZF7Ss/ZF/YIDeDr8QgLoF4zXBAkwzin5tluiBYO2XbC9KMdU5oMIBAGDaNZlmurfrsrwiVZ98zjpP5z9B6TurNamsQcmXcbI2k4ZJsbiSz/X8suH4pGS0VtTYsFq9LDFJhxQxG8LPIVdSXwGNQClCk8xgVORlcxoOiG5yVTI4JZeGkvGBzs0vZXFFOUzioe95y8oekwzy3ult5NfcIBWAusj1Y2dpeAEvn89nGoH18h+21OVcPpx9OU6Z+N+2fHY4BcNLLpLNrEWHIC8G+qdN0DusuqZAGuofU7i/69Oo+dr0K8cQnEDQoAFBh+csNB+6txBp3dSktcWZhdkUDpZeJkuOqMroKOsrpmeipOFBOWNV7oqbovNy0lyt+4HTgr8FDGohFfXGLT8zx0W2zHnXq3c0hAX8kS4JT66shopfP2O/ymzlzVWiFvAwsRRZ/cvcBZ6TAXtD/aAFLtKrZ2m/OUfdYUO3esPiFC9oc0oRbfGG64wU8up3avUq648xN2ieqVN/G31xISytBz0zRvZM3PbqNKpJObhcscHsLz3hi2wOlcr5hRWt9PshZfL2ksaz0bxKu99Aqe1kkEf72qbTiGEsQLhLwYSUZC6T1hivsGahZq8oxs+MVwM6zAGDHXRTkxoIc3/VTvSITq8zGsNycZde0HmVANWvdDlw8ht9GFsXyvz9bSg/AiLJwN1pD9rICUIcbOf0BKRzmJzrEaiU3cHeTAYNbnzT0w/VrD9EjF+RU43wgOoyFD7ezbmDlDl2R5l+2Uilrsc63V2JH4HLOv30VsjXiipL0n4O0ndi3ciwf9C3iEu97HX7LB9A==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PH0PR11MB4966.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(508600001)(966005)(66446008)(66946007)(54906003)(2616005)(33656002)(66476007)(91956017)(6506007)(4326008)(224303003)(5660300002)(186003)(6486002)(64756008)(76116006)(38070700005)(66556008)(6512007)(83380400001)(71200400001)(38100700002)(86362001)(316002)(66574015)(36756003)(8936002)(2906002)(122000001)(45980500001); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: +vz5Ib+l5VXCbWv+tcA5j2ZzBy5M1mn5QqZbL3xFDFaRvgs5dAYUX8IOO759KA9Y7xk+mqFtAHbx33MYhH0gZ972FXZDYKtWCVtq7Q4LKL9vrnMQj/Kv6f0leOm//eYHP9K7gbZCTwSNQpxkfBj1kEyNONJOX/qui8h85AzTzZq567is5g++CJGTv+kZOTnuiNGxcbM9G8qJenTsDFdFXoN3xqRmXUUQnJbsNeiKhIr8Tbki0MVsMD60eSf8INvVbnqwS/bKZVH83/Tlfw04p1uwNd/NwAd9m0pS8/NAbvAy+p7d/U9+rG5OU6djGDijrm9m2Z0xHG4i5XKWR03X1ZKDFEnm3OJQ6JW2C/txeMh0WhezK5CJeZL1sL6gNQK9ePOf8Uq7QnC8bwZF2Yej/66NmM7EZEZaqZTEkBg/2qFLgbgIXXrVnf0f+c4lhM51ALUD0VnGgE0l9uwz675UPmBuBNxJ5j6d1pIqc3bknAyIcTCnEttux9oyE7tYiGU5PEqFVBNjgQyCn7/7XlCFT9CoJhoVyxGbzuVtjIdV4fUpFW8Ax9MyvRuQl6vfsNmmEZgPCz1ooEbjQH+EXMGMnl7PqSVWJogt93YI0ZZzqeo4jMT/sAJNJWzIddOCOgJWQq7Kp1e/y21t1Jp3WmOqK61/1g45DvNTKhJ6gFthcBY2lDU8L6jnjTNmvL/3cSjinmjmsBV0/Tnl4vcUlF1rpx0arD7xtFGbD2Yg6vbPg5GL/e/UqbbgNsPeG4L9R1/3geYID+Jx86X8WL6oe4mt06Xe+2QqBFBKWVJFvVTT9YZiw/GaGfQN8M/SqRbvlfbVlwPO8dM7n6hyx+K6TjK1bMtC7pYsMNelFVGKc+XkQSSMzR26pPfHqn3ImsX++Hc+rdeJimypQP4Cl2niNnsG5A9u29O6D8YhueUGSGFY253pjbObJCg74ReZ0ufMwe9FMswNwjC5PUvAinCfcC6jfmT7/Ny6YwcW5n0NFKfPdnYWl5AJt6CWkVz0YH20qYOCVLa+ABRaJWF/5V2+Nnp8ydHaRLbfp+0lS4zTTWm9wXZ5oO396o2Gk080GS2Lj5q4+z/K1YokaXCxvO9R4t4M4FxCPqlICoXOJueaupJ4n7e7AC4DnvHhqt3DGp0FHV++tEhb0WBmDuUhuMH3YkYX9TtWDElU7ThKW4BaRg50NufZVC6k6P2IixCGEXoO9GO21MdFGiPGYN5Bbj8/Ny6Kke1QEEJT+5b5kFlAcNNfWbUcVo4K7y46lJTJ+ywqHSz+LpTaaTCg9JrFiWe3ljAWpTvN5LVkpVcfGTPF/oI9CwAzg73PbwBlHb3HMSKYz0px4phUf0fZaJEul6RrtjqfiTI2kaYA4OFf8Ytv8ptpkyXf4t8HLfhnSFH3cnSRu/R0vhjYp07W5CST+k2bXj3pLg==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <6C8AF68FEEE99641A5F0074DCB204D63@namprd11.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB4966.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 8976e5f7-3d7e-4b47-f4ca-08d98845106f
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Oct 2021 21:14:05.7478 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: T2Xb148wG6XbxfYPld81ParaPstWsRx3yarAMumhdqHUBZ6T2KeM9opJ8E9KbLJ1WMXAEc3s9YMaIsrAtqj0sg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB4936
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.19, xbe-aln-004.cisco.com
X-Outbound-Node: rcdn-core-7.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/zblGNs6w5cWSd6LSNmBpUp_yGi8>
Subject: Re: [Cbor] Supporting IPv6 Link-Local with scope (was Re: Éric Vyncke's Discuss on draft-ietf-cbor-network-addresses-09: (with DISCUSS and COMMENT))
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, 05 Oct 2021 21:14:17 -0000

Michael

The problem is indeed solvable.

My own take would be not to use ifIndex (for the reasons you just explained) also it could be confusing with another encoding as both (length & ifindex) are uint...

As I wrote in my ballot, an alternative (not so nice though) would be to clearly state that the encoding is not applicable to LLA + scope

-éric

On 05/10/2021, 20:55, "Michael Richardson" <mcr+ietf@sandelman.ca> wrote:


    Captured as issue:
       https://github.com/cbor-wg/cbor-network-address/issues/12

    Éric Vyncke via Datatracker <noreply@ietf.org> wrote:
        > == DISCUSS ==

        > Generic comment how are link-local address (LLA) with scope encoded ? I would
        > expect CBOR to work also on LLA only networks... At the bare minimum, please
        > state that link-local addresses cannot be encoded with their scope, hence, they
        > cannot represent an interface.

        > -- Section 3.1.3 --
        > How can 2 valid link-local addresses (fe80::1%eth0, fe80::1%eth1) can be
        > represented in order to identity two interfaces ?

    There are three kinds of things encoded:
          a) addresses.
          b) prefixes
          c) interface definitions

    For (b) and (c), we could easily entertain (and did we discuss this in the
    thread that was CC'ed to 6man?) adding a third element to the array to store
    the interface ID.
    For (a), I'm not sure what we can do to add the interface ID, but see below.

    That's kinda the easy part.
    The hard part is deciding how to encode the scope.
    The simplest is as an integer, being the ifindex.

    CBOR makes that easy and efficient, and many systems don't have more than 24
    interfaces.  However, on systems where interfaces come/go a lot, the ifindex
    often increments anyway.  Using the ifindex is probably clearer on most any
    system than a string which can change, but it does change from one boot to
    another.
    While the ifindex is system specific and has no outside meaning, the purposes
    where I imagine this being used would be in some system specific container.
    (My use case, which drove me to do this, actually probably needed scope-id)

    One way to do (a) could be to append to the IPv6 string.
    Another way would be not to bother, to always use the interface definition
    when a IPv6-LL is needed.  Whether the length is 0, 128, or the actual
    interface prefix (probably 64) is something we could specify.

    --
    Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 IøT consulting )
               Sandelman Software Works Inc, Ottawa and Worldwide