[Rtg-yang-coord] Floating point (was: Fwd: Last Call: <draft-ietf-ospf-te-metric-extensions-08.txt> (OSPF Traffic Engineering (TE) Metric Extensions) to Proposed Standard)

Benoit Claise <bclaise@cisco.com> Fri, 09 January 2015 23:18 UTC

Return-Path: <bclaise@cisco.com>
X-Original-To: rtg-yang-coord@ietfa.amsl.com
Delivered-To: rtg-yang-coord@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 702691A1B35 for <rtg-yang-coord@ietfa.amsl.com>; Fri, 9 Jan 2015 15:18:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -12.344
X-Spam-Level:
X-Spam-Status: No, score=-12.344 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FF_IHOPE_YOU_SINK=2.166, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham
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 L9BrXAzAGDQB for <rtg-yang-coord@ietfa.amsl.com>; Fri, 9 Jan 2015 15:18:38 -0800 (PST)
Received: from aer-iport-4.cisco.com (aer-iport-4.cisco.com [173.38.203.54]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 08B351A1A3B for <Rtg-yang-coord@ietf.org>; Fri, 9 Jan 2015 15:18:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=11013; q=dns/txt; s=iport; t=1420845518; x=1422055118; h=message-id:date:from:mime-version:to:cc:subject: references:in-reply-to; bh=WZNf9LVcgaPjVw+Wkxprn9nHsi5K7K+aChoZbIPlMN4=; b=KvVl/V+GObfgguo2CfANfNLXjoqsvwk9mv2dd+xuZNQRJ+wjzdGQKSv7 yLoBczt+76h3zanBxeLUiHv6Hl2O39yQ/aMRQjrHCJOP5Gm2hW+9+aI1L hgTtv9NRdMhAMjXBv6U/RW3XqB0yZnkoBjEZMLRapprIi4JSuousu42tk A=;
X-IronPort-AV: E=Sophos;i="5.07,733,1413244800"; d="scan'208,217";a="301476142"
Received: from aer-iport-nat.cisco.com (HELO aer-core-4.cisco.com) ([173.38.203.22]) by aer-iport-4.cisco.com with ESMTP; 09 Jan 2015 23:18:36 +0000
Received: from [10.60.67.84] (ams-bclaise-8913.cisco.com [10.60.67.84]) by aer-core-4.cisco.com (8.14.5/8.14.5) with ESMTP id t09NIZiM003491; Fri, 9 Jan 2015 23:18:35 GMT
Message-ID: <54B061CB.2090108@cisco.com>
Date: Sat, 10 Jan 2015 00:18:35 +0100
From: Benoit Claise <bclaise@cisco.com>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.7.0
MIME-Version: 1.0
To: "Acee Lindem (acee)" <acee@cisco.com>, Martin Bjorklund <mbj@tail-f.com>
References: <CABCOCHThwQXPYZqK_gapK4ycGfkNUrfgL_81FZU1watVm8pM=A@mail.gmail.com> <20141221213240.GA34831@elstar.local> <D0BCC95F.AC81%acee@cisco.com> <20141222.100038.719440000332847338.mbj@tail-f.com> <D0D20519.B275%acee@cisco.com>
In-Reply-To: <D0D20519.B275%acee@cisco.com>
Content-Type: multipart/alternative; boundary="------------000207080603060700010604"
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtg-yang-coord/29gJ574btgX8OwdBBdG2i4SJvYs>
Cc: "Rtg-yang-coord@ietf.org" <Rtg-yang-coord@ietf.org>, "ietfc@btconnect.com" <ietfc@btconnect.com>, "j.schoenwaelder@jacobs-university.de" <j.schoenwaelder@jacobs-university.de>, "andy@yumaworks.com" <andy@yumaworks.com>, "akatlas@gmail.com" <akatlas@gmail.com>
Subject: [Rtg-yang-coord] Floating point (was: Fwd: Last Call: <draft-ietf-ospf-te-metric-extensions-08.txt> (OSPF Traffic Engineering (TE) Metric Extensions) to Proposed Standard)
X-BeenThere: rtg-yang-coord@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "\"List to discuss coordination between the Routing related YANG models\"" <rtg-yang-coord.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtg-yang-coord>, <mailto:rtg-yang-coord-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtg-yang-coord/>
List-Post: <mailto:rtg-yang-coord@ietf.org>
List-Help: <mailto:rtg-yang-coord-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtg-yang-coord>, <mailto:rtg-yang-coord-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 09 Jan 2015 23:18:41 -0000

Dear all,

I discussed the floating point situation with the NETMOD chairs.
Let me try to summarize the situation.

There are two main options:

1. The NETMOD WG last time once decided not to add IEEE floating point types to the base type system. The routing experts, or whoever needs the floating point types, should come and articulate why they believe this decision was wrong to make the NETMOD
folks change their opinion. Practically, that means writing a YANG module defining IEEE float/double typedefs. 

2. We try to understand which concrete types are needed for traffic engineering and routing purposes and we define specific typedefs such as

  typedef probability {
     type unit decimal64 {
        fraction-digits 18;  // need to discuss precision needed
        range "0 .. 1";
     }
     description
       "[to be written, need to discuss which precision is needed]";
  }

  typedef quality {
     type unit decimal64 {
        fraction-digits 18;  // need to discuss precision needed
        range "0 .. 1";
     }
     description
       "[to be written, need to discuss which precision is needed]";
  }

  typedef bandwidth {
     type uint64;
     // perhaps restrict range to avoid Y59 issues.
     // 2^56 would still allow for ~72 peta bits per second
     unit "bits per second"
     description
       "[to be written]";
  }

  These could be additions to the common typedefs we have.

So basically, my message is: if you want the solution 1, the ball is
your court.

Regards, Benoit
>
> On 12/22/14, 4:00 AM, "Martin Bjorklund" <mbj@tail-f.com> wrote:
>
>> "Acee Lindem (acee)" <acee@cisco.com> wrote:
>>>
>>> On 12/21/14, 4:32 PM, "Juergen Schoenwaelder"
>>> <j.schoenwaelder@jacobs-university.de> wrote:
>>>
>>>> On Sun, Dec 21, 2014 at 08:23:46AM -0800, Andy Bierman wrote:
>>>>> On Sun, Dec 21, 2014 at 4:57 AM, Juergen Schoenwaelder
>>>>> <j.schoenwaelder@jacobs-university.de> wrote:
>>>>>> It is not a big deal. I just wanted to point out that what RSVP
>>> and TE
>>>>>> protocols do is, from a viewpoint of accuracy and efficiency,
>>> somewhat
>>>>>> questionable.
>>>>> It is a big deal to add a base type.  It can only be used in the new
>>>>> language version which will not be available in tools for a long
>>> time,
>>>>> and could create compatibility issues.
>>>> Yes, and note that I did not write 'base type'.
>>>>
>>>>> However, a typedef can be added now and will work with YANG 1.0.
>>>> Exactly.
>>>>
>>>> I still remain unconvinced that IEEE floats are technically the
>>>> correct solution for token buckets and the like. I doubt that the
>>>> Linux netlink interface into the kernel uses floats. But then TE must
>>>> decide whether they like to see a float, even though they may give a
>>>> false sense of precision.
>>> I agree that IEEE Float-32 is not an optimal choice for representation
>>> of
>>> bandwidth and other integrated services values in RSVP. My point was
>>> that
>>> this was the choice that was made (although I didn¹t articulate this
>>> very
>>> well). 
>> Ok, it is clear that the protocol uses floats internally.  Does it
>> follow that the configuration model has to use floats as well?  Or
>> would decimal64 work?
> I doubt that configuration API for Traffic Engineering bandwidth are
> floating point. However, we have been modeling the IGP Link State
> Databases in the operational state.
>
> Thanks,
> Acee 
>
>
>> For the interested reader, the following mail threads may be useful to
>> read.  Background: from the start YANG had floats, but we removed them
>> when we couldn't get them to work nicely.
>>
>> http://www.ietf.org/mail-archive/web/netmod/current/msg01855.html
>>
>> http://www.ietf.org/mail-archive/web/netmod/current/msg02216.html
>>
>>
>> /martin
> _______________________________________________
> Rtg-yang-coord mailing list
> Rtg-yang-coord@ietf.org
> https://www.ietf.org/mailman/listinfo/rtg-yang-coord