Re: [netmod] Question on intefaces-state model

Robert Wilton <rwilton@cisco.com> Wed, 14 June 2017 09:15 UTC

Return-Path: <rwilton@cisco.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 3D1A01273E2 for <netmod@ietfa.amsl.com>; Wed, 14 Jun 2017 02:15:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.503
X-Spam-Level:
X-Spam-Status: No, score=-14.503 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-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
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 g4FpjYdsFUf4 for <netmod@ietfa.amsl.com>; Wed, 14 Jun 2017 02:15:25 -0700 (PDT)
Received: from aer-iport-4.cisco.com (aer-iport-4.cisco.com [173.38.203.54]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 908A0126BF0 for <netmod@ietf.org>; Wed, 14 Jun 2017 02:15:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=4634; q=dns/txt; s=iport; t=1497431724; x=1498641324; h=subject:to:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding; bh=sr7sxVzfpDE9YCyZp12fOu0YTWpqpFl2hXZtJUn5B+0=; b=A0yJh8lNoOlsng1Cv8jmWW4rav0o9iU+tCh/jpZdr/EAXW/i6OGDbffF vb7gdUM9OeKJVXXb5jg4sdFOl8ejKI6dcsueWinekhSNVlu/qn4TbmWmk YjN51G7L0LuSzvWRlwFmGDF6s++MehRPKkZYnhZJ3CVNW+wKJSdow1oyH U=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CMAAAE/kBZ/xbLJq1aAxkBAQEBAQEBAQEBAQcBAQEBAYMrgQ+BDY4Oc5EDlgOCESELhS5KAoMIGAECAQEBAQEBAWsohRgBAQEBAgEBATY2GQILEAgnBxsMHxEGAQwGAgEBiiAIELA0hBYBhygBAQEBAQEBAQEBAQEBAQEBAQEBAR4FhlyCC4J1hFQ3JoUsBZ5Hk1CLFYZzjDeIPh84gQowIQgbFUiGUwE7PzaJagEBAQ
X-IronPort-AV: E=Sophos;i="5.39,340,1493683200"; d="scan'208";a="655411553"
Received: from aer-iport-nat.cisco.com (HELO aer-core-2.cisco.com) ([173.38.203.22]) by aer-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jun 2017 09:15:22 +0000
Received: from [10.63.23.55] (dhcp-ensft1-uk-vla370-10-63-23-55.cisco.com [10.63.23.55]) by aer-core-2.cisco.com (8.14.5/8.14.5) with ESMTP id v5E9FM9v005360; Wed, 14 Jun 2017 09:15:22 GMT
To: Vladimir Vassilev <vladimir@transpacket.com>, Andy Bierman <andy@yumaworks.com>, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, "Bogaert, Bart (Nokia - BE/Antwerp)" <bart.bogaert@nokia.com>, "netmod@ietf.org" <netmod@ietf.org>
References: <AM2PR07MB06272FF9E8BA4D00B0669F9794CE0@AM2PR07MB0627.eurprd07.prod.outlook.com> <20170612172141.GA52797@elstar.local> <CABCOCHSK1h4HQ4LgkYd_Lxp3JYzxYBMmCka64_-iVjq2N_PR7g@mail.gmail.com> <65e1aa8e-c37b-d323-a351-c17fa4e96b3e@transpacket.com>
From: Robert Wilton <rwilton@cisco.com>
Message-ID: <c436c7ac-b5f5-7bbf-8bea-bf109f390b11@cisco.com>
Date: Wed, 14 Jun 2017 10:15:22 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <65e1aa8e-c37b-d323-a351-c17fa4e96b3e@transpacket.com>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/tGrbUyIRgCLvmktxG_jxFFfLKdw>
Subject: Re: [netmod] Question on intefaces-state model
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: Wed, 14 Jun 2017 09:15:27 -0000


On 13/06/2017 10:15, Vladimir Vassilev wrote:
> On 06/12/2017 08:31 PM, Andy Bierman wrote:
>
>>
>>
>> On Mon, Jun 12, 2017 at 10:21 AM, Juergen Schoenwaelder 
>> <j.schoenwaelder@jacobs-university.de 
>> <mailto:j.schoenwaelder@jacobs-university.de>> wrote:
>>
>>     On Fri, Jun 09, 2017 at 10:55:20AM +0000, Bogaert, Bart (Nokia -
>>     BE/Antwerp) wrote:
>>     >
>>     > We have a question regarding the statistics container as defined
>>     in the
>>     > interfaces-state model.  This container defines one mandatory leaf
>>     > (discontinuity-time) while all other leafs are optional.  What
>>     is the
>>     > rationale behind this leaf being mandatory and not an optional
>>     field?
>>     >
>>     > It does not make a lot of sense to return a discontinuity-time
>>     value and no
>>     > counters if none of the counters are relevant for a specific
>>     interface.
>>     >
>>     > Another alternative could be to add, via a deviation, a when
>>     clause to the
>>     > container indicating for which ifType(s) the container is (or is
>>     not)
>>     > present. But that would lead to not supporting the IETF
>>     interfaces model to
>>     > the full extent.
>>     >
>>
> The alternative which we use is to not have 
> /interfaces-state/interface/statistics container for the interfaces 
> without counters. The container is mandatory=false.
>>
>>
>>     The discontinuity-time is relevant for _any_ counter associated with
>>     an interface, regardless whether the counter is defined in the
>>     interfaces model or elsewhere. I have a hard time to imagine an
>>     interface that has zero counters.
+1

>>
> There are some though. Optical amplifiers and similar equipment that 
> does not have counters - the status data is only signal levels.
For me the question is here is whether the objects being modelled by 
optical amplifiers are actually interfaces or something else, and I 
think that they are probably something else.

I appreciate that this may not be the universal view, but I think of an 
interface as something that forwards traffic at layer 2 or above.  I.e. 
it is something that is potentially meaningful to have a IP address on, 
assign a routing protocol to, have frame or packet statistics, etc.

I would rather IETF defines a separate list of objects (e.g. Cisco's IOS 
XR would call them 'controllers') for L1 forwarding objects, given that 
most of the configuration and properties of these L1 forwarding 
constructs is generally quite different from 'regular' interfaces.


>>
>> The mandatory-stmt is very confusing for config=false nodes. 
>> Mandatory=true means
>> an <rpc-reply> must contain an instance of the mandatory leaf.
>>
>> Mandatory=false does not mean optional-to-implement although it sure
>> looks that way for config=false nodes.  Only if-feature can make a 
>> node optional to implement.
> If we take serial interface with hardware that only has in-octets and 
> out-octets counters I would expect to only find these two in 
> /interfaces-state/interface/statistics +  discontinuity-time. Do you 
> say the rest of the counters must be present (e.g. allways 0) for 
> proper implementation of ietf-interfaces?

Returning zero values here is not useful, in fact it is misleading. I 
think that if a server doesn't have a value to return for a particular 
node it is much better to return nothing than to return a false value.

As an aside, I think that this is also why default values for config 
false leaves aren't helpful because they can cause ambiguity as to 
whether a server has no value to return, or is instead returning the 
default value.

Rob


>
>
> Vladimir
>>
>>
>>
>> /js
>>
>>
>> Andy
>>
>>     --
>>     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/
>>     <http://www.jacobs-university.de/>>
>>
>>     _______________________________________________
>>     netmod mailing list
>>     netmod@ietf.org <mailto:netmod@ietf.org>
>>     https://www.ietf.org/mailman/listinfo/netmod
>>     <https://www.ietf.org/mailman/listinfo/netmod>
>>
>>
>>
>>
>> _______________________________________________
>> netmod mailing list
>> netmod@ietf.org
>> https://www.ietf.org/mailman/listinfo/netmod
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
> .
>