Re: [babel] info-model: calculated and received metrics

"STARK, BARBARA H" <bs7652@att.com> Wed, 17 July 2019 14:01 UTC

Return-Path: <bs7652@att.com>
X-Original-To: babel@ietfa.amsl.com
Delivered-To: babel@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 74380120663 for <babel@ietfa.amsl.com>; Wed, 17 Jul 2019 07:01:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=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 4b06BNDuUKaP for <babel@ietfa.amsl.com>; Wed, 17 Jul 2019 07:00:59 -0700 (PDT)
Received: from mx0a-00191d01.pphosted.com (mx0a-00191d01.pphosted.com [67.231.149.140]) (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 3A58B120410 for <babel@ietf.org>; Wed, 17 Jul 2019 07:00:59 -0700 (PDT)
Received: from pps.filterd (m0053301.ppops.net [127.0.0.1]) by mx0a-00191d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x6HDn8AS003527; Wed, 17 Jul 2019 10:00:56 -0400
Received: from alpi154.enaf.aldc.att.com (sbcsmtp6.sbc.com [144.160.229.23]) by mx0a-00191d01.pphosted.com with ESMTP id 2tt3vbhws8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Jul 2019 10:00:47 -0400
Received: from enaf.aldc.att.com (localhost [127.0.0.1]) by alpi154.enaf.aldc.att.com (8.14.5/8.14.5) with ESMTP id x6HDwuZT008528; Wed, 17 Jul 2019 09:58:56 -0400
Received: from zlp30484.vci.att.com (zlp30484.vci.att.com [135.47.91.179]) by alpi154.enaf.aldc.att.com (8.14.5/8.14.5) with ESMTP id x6HDwopn008452 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 17 Jul 2019 09:58:50 -0400
Received: from zlp30484.vci.att.com (zlp30484.vci.att.com [127.0.0.1]) by zlp30484.vci.att.com (Service) with ESMTP id 9E455400037F; Wed, 17 Jul 2019 13:58:50 +0000 (GMT)
Received: from GAALPA1MSGHUBAH.ITServices.sbc.com (unknown [130.8.218.157]) by zlp30484.vci.att.com (Service) with ESMTPS id 874664000368; Wed, 17 Jul 2019 13:58:50 +0000 (GMT)
Received: from GAALPA1MSGUSRBF.ITServices.sbc.com ([169.254.5.84]) by GAALPA1MSGHUBAH.ITServices.sbc.com ([130.8.218.157]) with mapi id 14.03.0439.000; Wed, 17 Jul 2019 09:58:50 -0400
From: "STARK, BARBARA H" <bs7652@att.com>
To: 'Juliusz Chroboczek' <jch@irif.fr>
CC: 'Babel at IETF' <babel@ietf.org>
Thread-Topic: [babel] info-model: calculated and received metrics
Thread-Index: AdT2IrfeBlDu4vVISWCthPLc0HSMMgGGM80ADsRlWAABVTbSQA==
Date: Wed, 17 Jul 2019 13:58:49 +0000
Message-ID: <2D09D61DDFA73D4C884805CC7865E6114E22A14C@GAALPA1MSGUSRBF.ITServices.sbc.com>
References: <2D09D61DDFA73D4C884805CC7865E6114E151182@GAALPA1MSGUSRBF.ITServices.sbc.com> <87h8al9ibp.wl-jch@irif.fr> <2D09D61DDFA73D4C884805CC7865E6114E20EEFD@GAALPA1MSGUSRBF.ITServices.sbc.com>
In-Reply-To: <2D09D61DDFA73D4C884805CC7865E6114E20EEFD@GAALPA1MSGUSRBF.ITServices.sbc.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [135.174.19.151]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-07-17_06:, , signatures=0
X-Proofpoint-Spam-Details: rule=outbound_policy_notspam policy=outbound_policy score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=943 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1907170165
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/015CA5lK7tY8lpm5X190mNdzMiI>
Subject: Re: [babel] info-model: calculated and received metrics
X-BeenThere: babel@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "A list for discussion of the Babel Routing Protocol." <babel.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/babel>, <mailto:babel-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/babel/>
List-Post: <mailto:babel@ietf.org>
List-Help: <mailto:babel-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/babel>, <mailto:babel-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 17 Jul 2019 14:01:02 -0000

I've heard no response to this question. I've confirmed that in TR-181 I do have a problem (a uint with value of 0 or NULL will be transmitted in a TR-181 data model as 0), because it defines "NULL" as:
------------- excerpt from TR-106 Data Model Template --------------------
Each primitive data type has an associated null value that is used, for example, as the expansion of the {{null}} template (A.2.2.4). These null values are defined as follows:
* base64, hexBinary, string: an empty string
* unsignedInt, unsignedLong: 0
* int, long: -1
* boolean: false
* dateTime: 0001-01-01T00:00:00Z (the Unknown Time; see Section 3.2.1)
A null reference indicates that a reference parameter is not currently referencing anything. The value that indicates a null reference is the null value for the reference parameter's base data type, i.e.:
* string: an empty string
* unsignedInt: 0
* int:
-------------------------
But since the problem is just in the reporting and not in the Babel implementation's use of the values, maybe I should just mention that users should be careful when interpreting 0, since it can mean the value was not received / calculated?

What I could do is something like:

   babel-route-received-metric:  The metric with which this route was
      advertised by the neighbor, or maximum value to indicate the route
      was recently retracted and is temporarily unreachable (see
      Section 3.5.5 of [I-D.ietf-babel-rfc6126bis]).  This metric will
      be NULL if the route was not received from a neighbor.  At least one of babel-route-
      calculated-metric and babel-route-received-metric MUST be non-
      NULL.  Having both be non-NULL is expected for a route that is
      received and subsequently advertised.  This is a 16-bit unsigned
      integer. Some data models may be unable to distinguish between 0 (zero)
      and NULL for unsigned integers, which will cause NULL values to be
      reported as 0.

   babel-route-calculated-metric:  A calculated metric for this route.
      How the metric is calculated is implementation-specific.  Maximum
      value indicates the route was recently retracted and is
      temporarily unreachable (see Section 3.5.5 of
      [I-D.ietf-babel-rfc6126bis]).  At least one of babel-route-
      calculated-metric and babel-route-received-metric MUST be non-
      NULL.  Having both be non-NULL is expected for a route that is
      received and subsequently advertised.  This is a 16-bit unsigned
      integer. Some data models may be unable to distinguish between 0 (zero)
      and NULL for unsigned integers, which will cause NULL values to be
      reported as 0.

Barbara

> > > For a route to exist in the info model babel-routes object, either
> > > the received or calculated metric MUST be non-zero (rfc6126bis only
> > > mentions the received metric as being in its route table).
> >
> > Zero is a perfectly fine value for a metric (actually, the very best).
> > Perhaps you meant defined instead of non-zero?
> 
> I don't think I got the descriptions for calculated and received metrics right,
> given Juliusz statement that 0 is the best possible metric. What I'm struggling
> with, is what value is assigned to these parameters when they aren't
> received (for the received metric) or calculated (for the calculated metric)?
> Should they be "null"? Wouldn't that be a problem in systems/languages that
> don't distinguish between 0 and null for integer types? Or are there no such
> languages/systems?
> 
> Here are the descriptions in the current draft:
> 
>    babel-route-received-metric:  The metric with which this route was
>       advertised by the neighbor, or maximum value to indicate the route
>       was recently retracted and is temporarily unreachable (see
>       Section 3.5.5 of [I-D.ietf-babel-rfc6126bis]).  This metric will
>       be 0 (zero) if the route was not received from a neighbor but was
>       generated through other means.  At least one of babel-route-
>       calculated-metric and babel-route-received-metric MUST be non-
>       zero.  Having both be non-zero is expected for a route that is
>       received and subsequently advertised.  This is a 16-bit unsigned
>       integer.
> 
>    babel-route-calculated-metric:  A calculated metric for this route.
>       How the metric is calculated is implementation-specific.  Maximum
>       value indicates the route was recently retracted and is
>       temporarily unreachable (see Section 3.5.5 of
>       [I-D.ietf-babel-rfc6126bis]).  At least one of babel-route-
>       calculated-metric and babel-route-received-metric MUST be non-
>       zero.  Having both be non-zero is expected for a route that is
>       received and subsequently advertised.  This is a 16-bit unsigned
>       integer.
> 
> Barbara
> 
> _______________________________________________
> babel mailing list
> babel@ietf.org
> https://urldefense.proofpoint.com/v2/url?u=https-
> 3A__www.ietf.org_mailman_listinfo_babel&d=DwICAg&c=LFYZ-
> o9_HUMeMTSQicvjIg&r=LoGzhC-
> 8sc8SY8Tq4vrfog&m=sRdmY_yz1rFLX_CUhRDGHkslpc0QQlaKGcJIsOCpK0s&s
> =C8UEVNQ3LdSS0-QKrh8puspZGHWfGPY65gDV-zHQbzI&e=