Re: [netmod] Y34 - root node

Andy Bierman <andy@yumaworks.com> Wed, 26 August 2015 16:57 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9D80F1A1A52 for <netmod@ietfa.amsl.com>; Wed, 26 Aug 2015 09:57:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.378
X-Spam-Level:
X-Spam-Status: No, score=-1.378 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, J_CHICKENPOX_15=0.6, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=no
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 1ivescYwKgLv for <netmod@ietfa.amsl.com>; Wed, 26 Aug 2015 09:57:25 -0700 (PDT)
Received: from mail-la0-f52.google.com (mail-la0-f52.google.com [209.85.215.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 196471A007C for <netmod@ietf.org>; Wed, 26 Aug 2015 09:57:25 -0700 (PDT)
Received: by labns7 with SMTP id ns7so6101404lab.0 for <netmod@ietf.org>; Wed, 26 Aug 2015 09:57:23 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=NOEKHaIfqIUssM5hBXLX2aPpirj3TWx1vEegHE3LWSo=; b=OiOMVFK4QrplpWUcyMuqbbK+JgB9jfg4yDPIdugMynchi7lz9KuiVCf8evYp68v6MS Oc27UjtH559q8+J7v/q2okvb+wYLxWjDlHrX+vutBGpx7u2yK1gH6aO70OdVSD9fyG+a 0mYxvOtpPC/Qcrtn1cMjsbZJvqiUOye7Crwg5CqlPMBYleFqWURyLpsp5/mi8+/WCCMd ZCt2e1eOVK7jZh2E1tFRcHyLm5Z73pnGjH9zU9UR/wsFILqC3G9pdoLABwSFjR2x0zd7 KtwK+WZw34W70kss0O/8X3Pkg4dqx99v1XqkXLpffysfnVa+cCP0mjYnf8GACPiqMUMv jN1Q==
X-Gm-Message-State: ALoCoQn9FJFWulpeGIkGLFEBFZjTo0lHdWzCynI8su0CoM5NNScPni0Z4WdjUzkdKrtiEeXYK+Fn
MIME-Version: 1.0
X-Received: by 10.112.161.232 with SMTP id xv8mr31575250lbb.123.1440608243431; Wed, 26 Aug 2015 09:57:23 -0700 (PDT)
Received: by 10.112.200.104 with HTTP; Wed, 26 Aug 2015 09:57:23 -0700 (PDT)
In-Reply-To: <012901d0e01e$12c22b20$4001a8c0@gateway.2wire.net>
References: <55D36473.90609@cisco.com> <CABCOCHRP3omx37XmEJfPwg6eELuSKF=YL8pgpnvLh9PQxgV62A@mail.gmail.com> <55D45CAF.2070605@cisco.com> <20150819.132555.871710491924929960.mbj@tail-f.com> <013601d0da9b$907f6b00$4001a8c0@gateway.2wire.net> <20150823170415.GA77197@elstar.local> <012901d0e01e$12c22b20$4001a8c0@gateway.2wire.net>
Date: Wed, 26 Aug 2015 09:57:23 -0700
Message-ID: <CABCOCHR3A_474EFYf7LyGDLaoaD77u8XJSwaB1gJe6Us9Yvpog@mail.gmail.com>
From: Andy Bierman <andy@yumaworks.com>
To: "t.petch" <ietfc@btconnect.com>
Content-Type: multipart/alternative; boundary="001a11c3c46c9c6056051e39be12"
Archived-At: <http://mailarchive.ietf.org/arch/msg/netmod/rgE4d2wMHo-lat1cui7oISCj6Sc>
Cc: "netmod@ietf.org" <netmod@ietf.org>
Subject: Re: [netmod] Y34 - root node
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.15
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: Wed, 26 Aug 2015 16:57:27 -0000

On Wed, Aug 26, 2015 at 9:41 AM, t.petch <ietfc@btconnect.com> wrote:

> ----- Original Message -----
> From: "Juergen Schoenwaelder" <j.schoenwaelder@jacobs-university.de>
> To: "t. petch" <ietfc@btconnect.com>
> Cc: <rwilton@cisco.com>; "Martin Bjorklund" <mbj@tail-f.com>;
> <netmod@ietf.org>
> Sent: Sunday, August 23, 2015 6:04 PM
>
> > On Wed, Aug 19, 2015 at 05:24:41PM +0100, t. petch wrote:
> >
> > > The current model is a flat architecture of hundreds (or thousands)
> of
> > > modules each with their own top level nodes, namespace, namespace
> name,
> > > prefix etc.  (This is quite different to SMI with its hierarchy but
> that
> > > probably is only significant to those who have spent 20 years with
> SMI).
> >
> > This is most likely a wrong perception. There are basically only two
> > locations where SNMP modules are registered in the IETF: under mib-2
> > and under transmission (yes there are a few exceptions but overall in
> > number they do not matter). There are close to 240 MIB modules below
> > mib-2 and about 50 MIB modules below transmission.
>
> Juergen
>
> I know what you mean, that the MIB module tree is somewhat fasciated,
> but there is still one root, from which an obvious, absolute OID can be
> used to identify uniquely any MIB module (or in some contexts a
> relative one, relative to transmission or mib 2).  If SMI did have
> constraints, then there would not be an issue of how to express them,
> nor would there be any question of mounting a module elsewhere for
> whatever
> reason (which then creates problems for the references in the
> constraints).
>
> A flat sea of YANG modules is different; I haven't counted lately how
> many
> top level nodes I have seen but it is a lot and when I see people
> wanting to
> organise YANG modules into a tree, I wonder if they are trying to
> recreate
> an SMI-like tree and my reaction is that this is not SMI!
>
> The flat sea of
> YANG modules brings a different set of issues and I am unsure what they
> are;
> I understand what is involved with the references in constraints, I can
> see that
> there will be a lot of namespaces and prefixes and can speculate about
> what
> that will bring but what it means to have so many top level nodes, I do
> not
> know.
>
> I believe that in a year or three we will be wishing we had paid more
> attention
> to this.
>
>

YANG uses XPath absolute-path expressions to identify data instances.
Each node in the tree has a QName (namespace + local-name).
There is zero ambiguity in an absolute path expression, so it
works whether there are 3 modules or 30,000 modules.
But if the path expression cannot change over time.

We do not need to place every new node at the top.
In fact, we don't, as the ietf-ip module proves.
We do need to pick a home for data and never change it -- ever.
Starting over with a data node means picking a new location for its home.

IMO the "logical view" injected into the model is the worst part.
This does not apply to very many implementations, and these
virtual devices are usually dealt with in the protocol, not the data model.
That way, different logical views can be derived, instead of imposing
a single logical model (with a uint8 index to cover all possible logical
instances).







> Tom Petch
>

Andy


>
> > RFC 4181:
> >
> >    - The value assigned to the MODULE-IDENTITY descriptor MUST be
> unique
> >      and (for IETF standards-track MIB modules) SHOULD reside under
> the
> >      mgmt subtree [RFC2578].  Most often it will be an IANA-assigned
> >      value directly under mib-2 [RFC2578], although for media-specific
> >      MIB modules that extend the IF-MIB [RFC2863] it is customary to
> use
> >      an IANA-assigned value under transmission [RFC2578].  In the
> past,
> >      some IETF working groups have made their own assignments from
> >      subtrees delegated to them by IANA, but that practice has proven
> >      problematic and is NOT RECOMMENDED.
> >
> > /js
> >
> > --
> > Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> > Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> > Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>