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

Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de> Thu, 07 October 2021 10:58 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 39D243A0DCE; Thu, 7 Oct 2021 03:58:09 -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 S86mfxPanzsU; Thu, 7 Oct 2021 03:58:02 -0700 (PDT)
Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10040.outbound.protection.outlook.com [40.107.1.40]) (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 E2F163A0DC7; Thu, 7 Oct 2021 03:58:00 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dYApa2gigz9JVaNs39BUrz9InDTCgz35AWlRkB3l5BC9K0kakFpQQ3FhmSfHQPveQBKOIc1In1/RqrrzSGu8CNkfsXxVKsLVsT/PwNrE61a5x0WsEA6WjrdR7sQvZc2g273916r87TZaWuE2i6TJF7XZEUTdP8vG/9Dzqnesq00bbNZWxOLxOb8ePyv27iJjXhXfFJ2QPUkzaT7ODnKZNTPap2jQwf/swj7a5wdvdobknTSfr0EdgNPh6rqps/wL/8TIfvWksxyoAhEt2V2Gy9W78xcS68Oy2bNCMSSTO5GX3O6qNfV01cpIzUDuN6HnNoH5L9iJefnxBql/DqAV+g==
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=606c4fRZsL3r0U9jkfm0WMr07QD0NJYM8ok0SLNiXWA=; b=T57bo6vmnuISddU78BsKHseOAdeR31wH6sUHinbfrRyOoc5B/0L/dbw3CUcreEyO1vZ5653zOyK54LzMl7IadsdHvhLRJ1RaiUF5Db/0cGsH/6wMc5qdI7dB0Nj9E+mveuMBVmlDTrK5SdtNn1gGosPZbZrCnOTSBNeg92WLvDtH9Zg7TbQTU1JkIaOw85dy5g+sCECH4SoTBUm8t4P+pwgjupn/2mDYtdyJaUjKn0aFDJPoIe4zAGHG7YfxWU6Kk6dPikPGxzPZiPrlJN28BoCfoEoIIrF3a6XvewSLZRHU/p6IqTBU+ZU9IIQutP/PBVkKWwKHRWGddvfK06cWEw==
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=606c4fRZsL3r0U9jkfm0WMr07QD0NJYM8ok0SLNiXWA=; b=tTF9X9svbbiF8oZApgdH6yfPnsrFDdzvLMIAKE6ZxaupqZ67VGG7x2cA/UqKv2KNpykpZjlLT2lT2489wreN0rMRxu1MCaE5dJ4wtH6ck9Rsagh9978OJ/URS7sEkVaP52DVemX416hGu1UKY3Z1oTg/SjFafacf3xm+zD7Mvo0=
Authentication-Results: tzi.org; dkim=none (message not signed) header.d=none;tzi.org; dmarc=none action=none header.from=jacobs-university.de;
Received: from AM0P190MB0641.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:194::23) by AM9P190MB1057.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:270::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.18; Thu, 7 Oct 2021 10:57:54 +0000
Received: from AM0P190MB0641.EURP190.PROD.OUTLOOK.COM ([fe80::3431:c461:890b:fb94]) by AM0P190MB0641.EURP190.PROD.OUTLOOK.COM ([fe80::3431:c461:890b:fb94%9]) with mapi id 15.20.4587.018; Thu, 7 Oct 2021 10:57:54 +0000
Date: Thu, 07 Oct 2021 12:57:53 +0200
From: Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de>
To: Carsten Bormann <cabo@tzi.org>
Cc: Michael Richardson <mcr+ietf@sandelman.ca>, cbor@ietf.org, The IESG <iesg@ietf.org>, Donald Eastlake <d3e3e3@gmail.com>, Éric Vyncke <evyncke@cisco.com>, Barry Leiba <barryleiba@computer.org>, cbor-chairs@ietf.org
Message-ID: <20211007105753.n2kaxfuispujubps@anna.jacobs.jacobs-university.de>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
References: <163344085669.17315.998599560097016034@ietfa.amsl.com> <24367.1633460118@localhost> <1fcf3889-57d1-83f5-2913-51ae9155130b@gmail.com> <6442.1633537138@localhost> <9D5E9264-0A10-4A24-8F23-DB89EDE851B9@tzi.org> <9043.1633557346@localhost> <372df336-eb01-de6d-2e11-e094b9ff7cfd@gmail.com> <4C91B412-C484-458E-BDA6-0AEDAF8EA774@tzi.org> <20211007064338.vkrqz4emjh2ztrg2@anna.jacobs.jacobs-university.de> <D6EE42BD-E08D-4E29-86CD-F4861B590D30@tzi.org>
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <D6EE42BD-E08D-4E29-86CD-F4861B590D30@tzi.org>
X-ClientProxiedBy: AS9PR05CA0044.eurprd05.prod.outlook.com (2603:10a6:20b:489::34) To AM0P190MB0641.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:194::23)
MIME-Version: 1.0
Received: from localhost (212.201.44.244) by AS9PR05CA0044.eurprd05.prod.outlook.com (2603:10a6:20b:489::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4587.18 via Frontend Transport; Thu, 7 Oct 2021 10:57:54 +0000
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 9c0add70-347f-49d5-3a5e-08d989815085
X-MS-TrafficTypeDiagnostic: AM9P190MB1057:
X-MS-Exchange-Transport-Forked: True
X-Microsoft-Antispam-PRVS: <AM9P190MB1057AA371CB5F0A8F85A9E54DEB19@AM9P190MB1057.EURP190.PROD.OUTLOOK.COM>
X-MS-Oob-TLC-OOBClassifiers: OLM:9508;
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: uWaBzwyZWiWK8cH7TFUQXDL4frqR+X1VKZmyb3VS0ZgcsTB2hFwBnBiRH5jFLYchbTE4FBCJBOtdZ/4EmsemCD1bCcBr37ZbwlqxF8ymzH795OBsODl37p/4mplQYOqgoDf7WZozN2H/2zv8RyF18jr90Rj2oFsD2pVWBF2STsj+X1hlVWAOT4WSbiTBtNWsytja4AsNX8DtXPgo8KQ4zd/b/xG+1KaHJeATURCDtTY6U+X1T7hsY9aenuNDINlECQDxaIHp5lCGnHoPrOJIzWmkaN8GeYcz0YpbXToNhYUJn0Zj4ilfSXued5J5xQ4lquEskiI+MaH9hHdCXM0r/YPd0ADfpkpyosfaVYwP3ZU6xvfE6TJnlnXsEm3iD0Ado8z6vrhZSnuRAotlsOOJ6eW+rAuS5iX6qv1Dzjl47XUEDS9/9SX6aY+d+8vzhtNSasGLIkaz/GiHvRn78K6cM+5TUFaC2QJNzcO2SUuh8VhgnqMyAPC6GNpOXccBsbFB60gtGYGBqPrzU4VF0YW9XKdXKNFGDBfV0KQU2IgtErXxe2xep2Hak7pLySiQqcyBthYANYMeVdvGiEyq2oBNbuyNGvfXjhzNWAPK3eSmvvVcLFdTBH4IvR6TpXbE4+CO70T+8vlykpDRB6StTNV4RbJpjXMsHnjzoR3Wnc8DjpqP5EmQKmKIKDxcgAGXO8AVzsH1UeQP5/2cEPlGLiGJxFbVeN3K6PUtmgIZBcTOCUrhgpl4tYy+DJs7D7ut80UkUTRAXgCIi2uuBkqCcvLj0IAuEp2TGh+WT8jhfer3MFk=
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)(4326008)(40140700001)(66946007)(1076003)(38350700002)(38100700002)(508600001)(2906002)(3450700001)(85182001)(8936002)(83380400001)(53546011)(956004)(26005)(6496006)(66476007)(85202003)(66556008)(5660300002)(224303003)(52116002)(6486002)(86362001)(316002)(786003)(186003)(54906003)(6916009)(966005); DIR:OUT; SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: A06LqOZA3e+ndKmRi9SLLvfRoZCLcTrhmQ9oAPB7F9LoVs4BpeFwVMIWYyF4OrlW9mMH1tNYSRlPGF2Uvrmrhu6+Y4y0nsIY7FXhYitUmRwOKZwDNJIaHM9FPBiIwMiDHvsByogwtLoNt9+0uT3cGF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OwRTe9pMyAhpYIsGF6ikOCyr7AMloIe4NgSU3TpJXvPEr4EjarP2VabF9HzuhIHWVGVbkNOxkCwDxFoZ0PQvCosWzoH1OoVKzvHx8NMYW6JQ
X-OriginatorOrg: jacobs-university.de
X-MS-Exchange-CrossTenant-Network-Message-Id: 9c0add70-347f-49d5-3a5e-08d989815085
X-MS-Exchange-CrossTenant-AuthSource: AM0P190MB0641.EURP190.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Oct 2021 10:57:54.5236 (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: xwy04dFjdN6YMfUsOpB2l8zyBy0tkx6Oo864axZ0YuQ3JVVkUaaTjcgq8OkrVRsftvCICUzLiuvWKd6vuHKzj/axSxCFeGFK7XDBzoqjUxo=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9P190MB1057
Archived-At: <https://mailarchive.ietf.org/arch/msg/cbor/BbLdHvQRtMam_iCADXz9Gga4cDA>
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: Thu, 07 Oct 2021 10:58:10 -0000

Yes, there are two things, recognizing that there is a need to
disambiguate addresses and then what you choose to disambiguate
them. Back in SNMP times, everything was commonly identified by
numbers. When we moved to YANG, we started to prefer using names as
there was a push to move closer to what people use on their CLIs
instead of what a kernel may be using internally. (The ifTable was
indexed by the numeric ifIndex, the YANG interfaces list is keyed by
interface names.) I guess as part of this transition, we moved from
using numeric zone indexes (that usually are simply ifIndex values) to
zone names (that are usually interface names).

/js

On Thu, Oct 07, 2021 at 11:41:52AM +0200, Carsten Bormann wrote:
> Thank you!
> 
> I can’t find zones in 2851, but InetAddressIPv4z is in 3291 (of 2002 vintage, which also mentions InetAddressIPv6z in the Section 9, Changes) and 4001 (which we could reference alongside RFC 6991).  SNMP InetAddressIPv4z (or InetAddressIPv6z) only supports a numeric zone index, which is a 32-bit (Unsigned32 as per RFC4001 InetZoneIndex, which is mentioned in the RFC 4001 Section 8, Changes) number, but I think the generality of RFC 6991 (and the symmetry of the IP versions) wins here.
> 
> (RFC 3291 mentions v4-mapped IPv6 addresses as a source of zoned IPv4 addresses.  Thinking about it, that’s exactly where I have used them.)
> 
> Grüße, Carsten
> 
> 
> > On 2021-10-07, at 08:43, Jürgen Schönwälder <j.schoenwaelder@jacobs-university.de> wrote:
> > 
> > On Thu, Oct 07, 2021 at 03:40:24AM +0200, Carsten Bormann wrote:
> >> On 7. Oct 2021, at 00:44, Brian E Carpenter <brian.e.carpenter@gmail.com> wrote:
> >>> 
> >>> That's probably because there are none. As far as I know, there is no
> >>> "Scoped architecture for IPv4" RFC. I don't know why there is YANG support.
> >> 
> >> Zones are this gift that keeps on giving.
> >> 
> >> If we are doing zones, we need to do them like YANG.
> >> I would have a strong objection against including them but then doing them differently.
> >> Maybe we should simply reference RFC 6991 as well.
> >> 
> >> Jürgen:  Do you remember why ipv4-address has a zone ID (called “zone index”)?
> >> 
> > 
> > The YANG definitions were derived from the SNMP definitions. I think
> > the first RFC having support for zoned IPv4 addresses in the network
> > management world was RFC 2851 (published June 2000). I vaguely recall
> > that we had several side meetings during the draft writing stage where
> > people pointed to other work (that may have led to things like RFC
> > 3927 later on) and/or they pointed out that the need to disambiguate
> > IP addresses also exists in the IPv4 world. I think people also
> > pointed to routers running multiple links using the same non-global
> > (e.g., private) address spaces.
> > 
> > /js
> > 
> > -- 
> > 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/>
> > 
> > _______________________________________________
> > CBOR mailing list
> > CBOR@ietf.org
> > https://www.ietf.org/mailman/listinfo/cbor
> 

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