Re: [OPSAWG] Fw: I-D Action:draft-presuhn-floats-01.txt

Andy Bierman <biermana@Brocade.com> Thu, 09 December 2010 08:14 UTC

Return-Path: <biermana@Brocade.com>
X-Original-To: opsawg@core3.amsl.com
Delivered-To: opsawg@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 9858A3A6A79 for <opsawg@core3.amsl.com>; Thu, 9 Dec 2010 00:14:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.944
X-Spam-Level:
X-Spam-Status: No, score=-0.944 tagged_above=-999 required=5 tests=[AWL=-0.845, BAYES_00=-2.599, FF_IHOPE_YOU_SINK=2.166, IP_NOT_FRIENDLY=0.334]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DRTnLxjeWr6C for <opsawg@core3.amsl.com>; Thu, 9 Dec 2010 00:14:14 -0800 (PST)
Received: from mx0a-000f0801.pphosted.com (mx0a-000f0801.pphosted.com [67.231.144.122]) by core3.amsl.com (Postfix) with ESMTP id 649103A6A76 for <opsawg@ietf.org>; Thu, 9 Dec 2010 00:14:14 -0800 (PST)
Received: from pps.filterd (m0000542 [127.0.0.1]) by mx0a-000f0801.pphosted.com (8.14.4/8.14.4) with SMTP id oB98ClnG027308; Thu, 9 Dec 2010 00:15:43 -0800
Received: from hq1-exedge.brocade.com (hq1-exedge.brocade.com [144.49.141.11]) by mx0a-000f0801.pphosted.com with ESMTP id t2qy1g2k5-1 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Thu, 09 Dec 2010 00:15:43 -0800
Received: from HQ1WP-EXHUB01.corp.brocade.com (10.70.36.14) by HQ1WP-EXEDGE02.corp.brocade.com (144.49.141.11) with Microsoft SMTP Server (TLS) id 8.2.254.0; Thu, 9 Dec 2010 00:21:20 -0800
Received: from HQ1-EXCH01.corp.brocade.com ([fe80::6452:4b5c:f595:4894]) by HQ1WP-EXHUB01.corp.brocade.com ([::1]) with mapi; Thu, 9 Dec 2010 00:15:42 -0800
From: Andy Bierman <biermana@Brocade.com>
To: Randy Presuhn <randy_presuhn@mindspring.com>, "opsawg@ietf.org" <opsawg@ietf.org>
Date: Thu, 09 Dec 2010 00:15:40 -0800
Thread-Topic: [OPSAWG] Fw: I-D Action:draft-presuhn-floats-01.txt
Thread-Index: AcuWe48ACqMsmTaMTauVNsDPm4dA+wA/QJGA
Message-ID: <B11AB91666F22D498EEC66410EB3D3C4F412CEB53B@HQ1-EXCH01.corp.brocade.com>
References: <00c501cb92aa$4b914ba0$6801a8c0@oemcomputer><20101205084420.63ebb996@sparta.com><20101205135439.GB6663@elstar.local><20101206093733.58c23bcd@sparta.com><20101206155017.GB9666@elstar.local><sdtyiqzdzn.fsf@wjh.hardakers.net><B11AB91666F22D498EEC66410EB3D3C4F412CEAF56@HQ1-EXCH01.corp.brocade.com><20101207232933.GA15185@elstar.local> <B11AB91666F22D498EEC66410EB3D3C4F412CEB06E@HQ1-EXCH01.corp.brocade.com> <000b01cb967b$a5dc1980$6801a8c0@oemcomputer>
In-Reply-To: <000b01cb967b$a5dc1980$6801a8c0@oemcomputer>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
acceptlanguage: en-US
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.10432:5.2.15, 1.0.148, 0.0.0000 definitions=2010-12-09_04:2010-12-08, 2010-12-09, 1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=1 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1010190000 definitions=main-1012090002
Subject: Re: [OPSAWG] Fw: I-D Action:draft-presuhn-floats-01.txt
X-BeenThere: opsawg@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: OPSA Working Group Mail List <opsawg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/opsawg>, <mailto:opsawg-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/opsawg>
List-Post: <mailto:opsawg@ietf.org>
List-Help: <mailto:opsawg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/opsawg>, <mailto:opsawg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 09 Dec 2010 08:14:16 -0000

Hi Randy,

I think all 3 TCs (32, 64, 128) are fine.
The usage rule should be the same as for other numbers...
Use the smallest size number that you need.
MIB reviewers should check Float128 objects to see if Float64
could be used instead.


Andy


-----Original Message-----
From: opsawg-bounces@ietf.org [mailto:opsawg-bounces@ietf.org] On Behalf Of Randy Presuhn
Sent: Tuesday, December 07, 2010 6:00 PM
To: opsawg@ietf.org
Subject: Re: [OPSAWG] Fw: I-D Action:draft-presuhn-floats-01.txt

Hi -

> From: "Andy Bierman" <biermana@Brocade.com>
> To: "Juergen Schoenwaelder" <j.schoenwaelder@jacobs-university.de>
> Cc: <opsawg@ietf.org>; "Robert Story" <Robert.Story@cobham.com>
> Sent: Tuesday, December 07, 2010 4:13 PM
> Subject: Re: [OPSAWG] Fw: I-D Action:draft-presuhn-floats-01.txt
>
> Adding TCs to the standards track without any use cases seems like a
> bad idea to me.

draft-ietf-ipfix-psamp-mib-02.txt is an example of a use case.
Whether it is a good example or a bad one is another question.
 
> I am not suggesting we revisit the Counter64 debates.
> That led to the logic that a 'rule' is needed to tell implementers
> which data type to use (i.e., wrap in < hour: use Counter64).
> I can imagine WGs defining lots of numbers as Float128 "just in case"
> it is ever needed.  This has an impact on agent performance,
> assuming the agent can even support Float128 at all.

Which will it be?  If you want this (or some other) document to provide
"advice", the nature of the IETF is that that advice will end up being
what looks like a bunch of rules, and those rules will almost certainly
be both over-engineered and short-sighted, like the rules for integer
types in SMI.  Codifying "common sense" is a notoriously difficult thing.

I think the performance argument is really a strawman.  If something is
in a MIB as a floating type, that's presumably because that is the
natural representation for the information, and consequently that
is the most likely internal form anyway.  That's a lot cheaper than
converting it to a human-readable character string, or even 
converting it from an interal float to a scaled integer for SNMP.

> In NETCONF, we got rid of floating point numbers since they
> are rarely needed and not commonly supported in routers and switches.
> I think the decimal64 data type is a good compromise (fixed point).

Fixed point is the wrong answer for data with a potentially large dynamic
range.  Floating point is the wrong answer for data, for example, that
is truly decimal / can be handled adequately by re-thinking the UNITS.
Maybe we need a reference to Knuth vol. 2 chapter 4, though I'd hope
anyone writing code would be aware of these CS basics and could
evaluate the trade-offs.

Randy

_______________________________________________
OPSAWG mailing list
OPSAWG@ietf.org
https://www.ietf.org/mailman/listinfo/opsawg