Re: [netmod] What is the best way to HW identities

"Bogaert, Bart (Nokia - BE/Antwerp)" <bart.bogaert@nokia.com> Thu, 17 August 2017 13:40 UTC

Return-Path: <bart.bogaert@nokia.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 51D9E132400 for <netmod@ietfa.amsl.com>; Thu, 17 Aug 2017 06:40:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.92
X-Spam-Level:
X-Spam-Status: No, score=-1.92 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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=nokia.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 6qdadOXweEiL for <netmod@ietfa.amsl.com>; Thu, 17 Aug 2017 06:40:00 -0700 (PDT)
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0090.outbound.protection.outlook.com [104.47.2.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 395101323CE for <netmod@ietf.org>; Thu, 17 Aug 2017 06:40:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=JQxVUMSVY8aWgp+wkTMyHOMJNy/NElhzZzyfNJqL3Cc=; b=ELCPumOBirWPaeBcDDnfPrDLSIP77NxTzbrNs2hJeRUJ8tBR65dM5Z2MThfJdJu0VoFcbMzloUvA5iKrjoojw2Yn1F06O/BC5hopsgdGPaSBTmZPJaWZ4cjTATwRYjfabOt4WzoFkRjnu1zO28joceSDh7pxc6fVOlPXbHucGw4=
Received: from AM2PR07MB0627.eurprd07.prod.outlook.com (10.160.54.154) by AM2PR07MB0850.eurprd07.prod.outlook.com (10.161.71.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1385.4; Thu, 17 Aug 2017 13:39:54 +0000
Received: from AM2PR07MB0627.eurprd07.prod.outlook.com ([fe80::182e:6400:46fc:f36e]) by AM2PR07MB0627.eurprd07.prod.outlook.com ([fe80::182e:6400:46fc:f36e%13]) with mapi id 15.01.1362.018; Thu, 17 Aug 2017 13:39:54 +0000
From: "Bogaert, Bart (Nokia - BE/Antwerp)" <bart.bogaert@nokia.com>
To: Martin Bjorklund <mbj@tail-f.com>, "netmod@ietf.org" <netmod@ietf.org>
CC: "Pauwels, Ludwig (Nokia - BE/Antwerp)" <ludwig.pauwels@nokia.com>, "joey.boyd@adtran.com" <joey.boyd@adtran.com>
Thread-Topic: [netmod] What is the best way to HW identities
Thread-Index: AdMXOxJtbuifQeSdR6iiACPpuek3uwADTqEAAAUTp0A=
Date: Thu, 17 Aug 2017 13:39:54 +0000
Message-ID: <AM2PR07MB0627E31F9189389903E2B31494830@AM2PR07MB0627.eurprd07.prod.outlook.com>
References: <AM2PR07MB0627F9D2CBD31D40AA6BCC8294830@AM2PR07MB0627.eurprd07.prod.outlook.com> <20170817.130222.702011777700824230.mbj@tail-f.com>
In-Reply-To: <20170817.130222.702011777700824230.mbj@tail-f.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=bart.bogaert@nokia.com;
x-originating-ip: [135.245.212.3]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; AM2PR07MB0850; 6:tm76oY3tSne7Oo40XJYaogwGdY0Amo0uk2yHZ2BbFRHgTUlVlLQQ8h9BiUrRLDQgsm47dvzUjaenSbefNJlzadtrBgDggRhVDwzBqN7RtCaakLSN6JJn/tOMT+th9FkygXIJjGmVWQ+QyN3fz9z2naeqGgBnWJ3Bf3YNCzRXjGKf859QFVP9tWbh3jlc6ikpNiemPJMcn0T8IIXRbw+lp6S1tHbQVpuVavsNNnRyl/bfV25xe2qR8ILKDUoWDB0vBQWV8WT3bT4n2Jq+QgdI9zbEKsQ+cHSH5R7LATqZJlprqGSYJfGPaKSEVWAEZ3B/BgP63ejgiBsAbTNrulXHbA==; 5:kg4EoTag5eDwjMoGbUdDhrhyMaxbMn3bEXUtg4reihjb9VuRkixKbbaglDSrIK3WFvGPqlejVPy+LM67Z94ezWOE9/pb9dG8Oapx4zQQHmoxvGia5bqZW+Bw+HV4nZYJCas0/aIW1fOGXaSSSTuSGQ==; 24:ehBKlISHS8UxTYxmzaE/fCxjIVvt39o80fWvndpzI31VcRyN865V503FxArM9XgPPeWIYb0ndoCE4jXCCI04JoTLHz/UU5XAKjWpzHCia9s=; 7:Nk4RS8xJ1mHBx1TyJUD0qfO4guMWQi3bUUhO8pAkZmo3qhXAk4YrH942MW7IUH0VVGyJmqNU3wMNyptfxUjSOme+Z1yVIBOoQeE1guv2+5WurWjzSgppTEum0/ZYdganRMfp3xm+ig48ACLrn5HabFJOZ97H1MGtZ+zc9ldV7H8v2vZH7xw9LN+ZVy/dzq3zgzwhZf9SGtG1XDVpn40c4geEMkg03ZkU/wg/6Sx4K9g=
x-ms-office365-filtering-correlation-id: 366d9987-0af1-42b9-88d9-08d4e57571b3
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(48565401081)(300000503095)(300135400095)(2017052603031)(49563074)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:AM2PR07MB0850;
x-ms-traffictypediagnostic: AM2PR07MB0850:
x-exchange-antispam-report-test: UriScan:(82608151540597);
x-microsoft-antispam-prvs: <AM2PR07MB085004F23FB3715331253CF394830@AM2PR07MB0850.eurprd07.prod.outlook.com>
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(102415395)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123564025)(20161123558100)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM2PR07MB0850; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM2PR07MB0850;
x-forefront-prvs: 0402872DA1
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(39860400002)(13464003)(199003)(189002)(24454002)(377454003)(2906002)(3846002)(102836003)(2950100002)(33656002)(7696004)(305945005)(105586002)(106356001)(4326008)(6116002)(53546010)(5660300001)(66066001)(68736007)(7736002)(6246003)(86362001)(3660700001)(14454004)(3280700002)(101416001)(8936002)(189998001)(2900100001)(54356999)(25786009)(97736004)(76176999)(50986999)(99936001)(9686003)(229853002)(74316002)(53936002)(81156014)(54906002)(5250100002)(81166006)(2501003)(99286003)(8676002)(6506006)(55016002)(478600001)(6436002)(43043002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM2PR07MB0850; H:AM2PR07MB0627.eurprd07.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:3; MX:1; LANG:en;
received-spf: None (protection.outlook.com: nokia.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="SHA1"; boundary="----=_NextPart_000_03DA_01D3176F.11C0E7E0"
MIME-Version: 1.0
X-OriginatorOrg: nokia.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Aug 2017 13:39:54.6137 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5d471751-9675-428d-917b-70f44f9630b0
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR07MB0850
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/ivOYhzi9MkMR1LSbCapuxbt08A8>
Subject: Re: [netmod] What is the best way to HW identities
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 17 Aug 2017 13:40:07 -0000

Hi Martin,

Using this feedback, there is a basis to continue the work in BBF

What is the best way to continue with the sub-classes w.r.t. IANA, who needs
to initiate this?  Your reply seems to suggest that irrespective of this
email, still something was required?  Anyhow, BBF can define sub-identities
to continue and align later when there would be standardized HW
sub-identities.

Best regards, Bart

-----Original Message-----
From: Martin Bjorklund [mailto:mbj@tail-f.com] 
Sent: Thursday, August 17, 2017 1:02 PM
To: Bogaert, Bart (Nokia - BE/Antwerp) <bart.bogaert@nokia.com>
Cc: netmod@ietf.org; joey.boyd@adtran.com; Pauwels, Ludwig (Nokia -
BE/Antwerp) <ludwig.pauwels@nokia.com>
Subject: Re: [netmod] What is the best way to HW identities

Hi,

"Bogaert, Bart (Nokia - BE/Antwerp)" <bart.bogaert@nokia.com> wrote:
> Hello,
> 
>  
> 
> Within BBF we have had a discussion on the use of 
> draft-ietf-netmod-entity-03, and we would appreciate to hear the 
> opinion of IETF. More specific the discussion is on the use of the 
> leaf 'class' and the leaf 'parent-rel-pos'.
> 
>  
> 
> First some BBF context:
> 
> - the systems for which BBF specifies YANG models can be built with 
> various 'types of hardware', e.g. as pluggable item (module) it can 
> contain boards and it can contain SFP/XFPs. As 'type of port' it can 
> have connectors to terminate fastdsl links (supported over copper 
> wires), and it can have positions to insert optical fibers (e.g. the 
> position in the SFP in which one can plug the optical fiber).
> 
>  
> 
> - in the data model we have the need for some conditional data: e.g. 
> an SFP/XFP has some data that is defined in SFF-8472. This data is not 
> applicable to boards. Hence we need to distinguish between these 2 
> types of pluggable items. A 2nd example: for the optical fibers 
> terminated by an SFP/XFP, we have specific data that is also defined 
> in SFF-8472, e.g. the wavelength. This data is not applicable to 
> fastdsl ports. On fastdsl ports we have specific data that relates to 
> remote power feeding. Obviously there is no power feeding over the 
> optical fiber. There might be other ports with (for now) no specific 
> data, e.g. an rj45. Conclusion: need data conditional to the port type.
> 
>  
> 
> In draft-ietf-netmod-entity-03 we read
> 
> - "The "class" leaf is a YANG identity that describes the type of the 
> hardware.  Vendors are encouraged to either directly use one of the 
> common IANA-defined identities, or derive a more specific identity 
> from one of them.
> 
>  
> 
> - As description for 'parent-rel-pos': "An indication of the relative 
> position of this child component among all its sibling components.  
> Sibling components are defined as components that share the same 
> instance values of each of the 'parent' and 'class' nodes.
> 
>  
> 
> Based on what we read in the first bullet a thought was to specialize 
> the various hardware-class identities. Examples:
> 
>  
> 
>   identity board {
> 
>     base ianahw:module;
> 
>     description
> 
>       "A board is a special type of module that represents a physical 
> item, commonly known as a board or a card.";
> 
>   }
> 
>  
> 
>   identity transceiver {
> 
>     base ianahw:module;
> 
>     description
> 
>       "A transceiver is a special type of module that represents a 
> physical item like a pluggable SFP, an SFP+, or an XFP; or a soldered 
> SFF.";
> 
>   }
> 
>  
> 
>   identity transceiver-link {
> 
>     base ianahw:port;
> 
>     description
> 
>       "A transceiver-link is a special type of port that terminates an 
> optical fiber.";
> 
>   }
> 
>  
> 
>   identity rj45 {
> 
>     base ianahw:port;
> 
>     description
> 
>       "A RJ45 is a special type of port that terminates an electrical 
> Ethernet link.";
> 
>   }
> 
>   identity fastdsl {
> 
>     base ianahw:port;
> 
>     description
> 
>       "A fastdsl is a special type of port that terminates a copper 
> wire supporting a FAST or one of the DSL types link.";
> 
>   }
> 
>  
> 
> The intention with this approach: the 'class' leaf is used to 
> distinguish between all types of hardware. If hardware specific data 
> is augmented to the hardware model, then it is using a 'when' 
> condition referring to the value of the leaf 'class'.
> 
>  
> 
> Based on the description of the parent-rel-pos it is understood that 
> the value of this leaf is relative to the value of the class, so 
> numbering of e.g. the various types of port supported by one board is 
> independent of each other.
> 
>  
> 
> Then the worry starts: 
> 
> - some of the BBF members understand this concept of specializing the 
> hardware identities and use these values for the leaf class as the way 
> to go, and take the impact on the numbering as a given.
> 
>  
> 
> - Others think this impact on the parent-rel-pos is not the intention 
> and assume a flat numbering of all childs within a parent

Good point.  In the original model (i.e. the MIB), with fixed values for the
class, having separate numbering schemes for separate classes makes sense.
For example, if a certain board has a set of ports, some fans and a power
supply, it makes sense that these are numbered individually.

However, with specialized ports, this may or may not make sense.

It might be possible to define parent-rel-pos in a way that gives the
implementation some flexibility.  For example, all ports could share the
same numbering scheme.  The important thing in the current model is that
there must not exist two components with the same values for 'parent',
'class', and 'parent-rel-pos'.  (strictly speaking, there is no requirement
that the parent-rel-pos is always monotonically increasing amongst siblings,
so maybe this is possible even today)

> , hence do not want to
> use the class leaf for further specialization, hence want to introduce 
> a new separate leaf to contain the more detailed information, hence 
> the conditional data for the various types of hardware shall be 
> defined with a 'when statement' referring to this new separate leaf.
> 
>  
> 
> The feedback we would appreciate from IETF: 
> 
> - did IETF consider the need for additional conditional data?

Yes, the idea was to use the 'class' leaf for this.

> - which approach is the IETF preference?

I would prefer to see if we can find a definition of parent-rel-pos that
makes numbering work better so that the 'class' identity can be used for
specialization.

> - in case the IETF preference is to specialize the hardware 
> identities, does IETF think it is worth to standardize them in IANA, 
> or is the preference to keep these identities within BBF?

I don't know the answer to this question, but if we want to allow for
standardized sub-classes, we have to create a new IANA registry (or extend
the current one), since the current one only contains the top-level class
(hmm, I just realized that the document needs an updated IANA considerations
section anyway; it needs to mimic RFC
7224 -- probably needs to create a common registry for hardware types from
which the MIB and YANG module can be generated)


/martin