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

"Randy Presuhn" <randy_presuhn@mindspring.com> Wed, 08 December 2010 01:58 UTC

Return-Path: <randy_presuhn@mindspring.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 14FDE3A68C5 for <opsawg@core3.amsl.com>; Tue, 7 Dec 2010 17:58:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -100.433
X-Spam-Level:
X-Spam-Status: No, score=-100.433 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FF_IHOPE_YOU_SINK=2.166, USER_IN_WHITELIST=-100]
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 ezUKf5pfS9Sx for <opsawg@core3.amsl.com>; Tue, 7 Dec 2010 17:58:01 -0800 (PST)
Received: from elasmtp-curtail.atl.sa.earthlink.net (elasmtp-curtail.atl.sa.earthlink.net [209.86.89.64]) by core3.amsl.com (Postfix) with ESMTP id 2C8DD3A68A7 for <opsawg@ietf.org>; Tue, 7 Dec 2010 17:58:01 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=dk20050327; d=mindspring.com; b=fQSk/4FPJZ4BNCmH6VzMCXAYLOb8er9hbY2tiOvQpIeavBDvIU17rjCm9G1pIQfw; h=Received:Message-ID:From:To:References:Subject:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:X-Priority:X-MSMail-Priority:X-Mailer:X-MimeOLE:X-ELNK-Trace:X-Originating-IP;
Received: from [99.60.5.191] (helo=oemcomputer) by elasmtp-curtail.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from <randy_presuhn@mindspring.com>) id 1PQ9JX-0002JC-06 for opsawg@ietf.org; Tue, 07 Dec 2010 20:59:27 -0500
Message-ID: <000b01cb967b$a5dc1980$6801a8c0@oemcomputer>
From: Randy Presuhn <randy_presuhn@mindspring.com>
To: opsawg@ietf.org
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>
Date: Tue, 07 Dec 2010 18:00:09 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1478
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1478
X-ELNK-Trace: 4488c18417c9426da92b9037bc8bcf44d4c20f6b8d69d888d26d9b9edb73dbfb11f7cad16cf296b2076bd65fe0915654350badd9bab72f9c350badd9bab72f9c
X-Originating-IP: 99.60.5.191
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: Wed, 08 Dec 2010 01:58:02 -0000

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