Re: [babel] Martin Duke's No Objection on draft-ietf-babel-yang-model-10: (with COMMENT)

Martin Duke <martin.h.duke@gmail.com> Tue, 18 May 2021 18:09 UTC

Return-Path: <martin.h.duke@gmail.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 C6BB83A1BC7; Tue, 18 May 2021 11:09:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.096
X-Spam-Level:
X-Spam-Status: No, score=-1.096 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 ZeaJwfT0ca0I; Tue, 18 May 2021 11:09:53 -0700 (PDT)
Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2A17A3A1BC5; Tue, 18 May 2021 11:09:53 -0700 (PDT)
Received: by mail-io1-xd35.google.com with SMTP id t11so10318729iol.9; Tue, 18 May 2021 11:09:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ndWL9SvlOAluq4AzPZrVhFCT/cXzSipBN3DNx1XEmPU=; b=mPzXgPl3vLBuEAM1yVx5ppNNiNSBFH1Dza+9fx/nPHDr3cpt1j4TVoMTlHgVAvd9ZP wmLcuYGOmu1Wrv1OL3Rn1P6dB7LJOL/NsL7oWDxzB22MTUH6if1JwxqqUxzm4TBE8vH9 S9oWC6OgDEfgbwDbNHnGaF1p6gCftTruuHVhKkPULIKQfhFLTtrXgUCCVvhcuWY1YLPC GorfADlF4TtUh8qqnRlbx5u03LjS4RLKu3liTgcqktyV5vmCq+8vTK633Q03bGL4Et31 Y4g4sffcRcPTH73pGnOjpl84tyq36kvnKBTkqbfQJOfLEXhRAFuykk6dLpALvvuJ2edM XgGQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ndWL9SvlOAluq4AzPZrVhFCT/cXzSipBN3DNx1XEmPU=; b=Mx0sqUuweC8m0PRKRyRNaFZMRZPgtpK4Q7xqn4nAjNA/Yb7bIulnRb5T1k5+MOtmFS gjtUewuKo0EpcSZISUaA7ZQhctjBT/aHp2SfNFco1xFT4Nf5KOfY/4QyRZC2ST+L/TeJ Qn4VuXU1tLOSRhvHuqXHTwrr6wJB+NFRXxGK5YLtw/Z4sjPgeZItuKp5LmyLBZvBkFgQ N8CSTu+5Pe5adwwVChDrdTuxuR/dn4SwuuG798KdL9NzCxIbKMWj4B0QsElt7D5FNPKV +ctrYf/HOwmyYw12U7Lokqc0e1EzHsrXnMeq62p3/z821eD7vxEXsnSF7NtfgCzmXVQ7 4NPw==
X-Gm-Message-State: AOAM532DgIafaN48EoUzZd4gdUQcEi7q1G/I5kD6WTa8HYV2zca23pTB WJiSJNX7mycOE4iN+LcMdPY/k/zU6ItAC1CYXBE=
X-Google-Smtp-Source: ABdhPJyAvM5E5gzL8jbdS2YduKBWwB4MpFGeEiqRUogEVXkp8xOQnox7/UbCuOsCrhgJWXerjweGOUrE3z7luLWEQfo=
X-Received: by 2002:a05:6602:446:: with SMTP id e6mr5468154iov.20.1621361390630; Tue, 18 May 2021 11:09:50 -0700 (PDT)
MIME-Version: 1.0
References: <162128583297.9778.8228421381328520899@ietfa.amsl.com> <260E6E49-BB6D-4195-BD12-673A946FF346@gmail.com>
In-Reply-To: <260E6E49-BB6D-4195-BD12-673A946FF346@gmail.com>
From: Martin Duke <martin.h.duke@gmail.com>
Date: Tue, 18 May 2021 11:09:46 -0700
Message-ID: <CAM4esxQLR-ULMf-RRT5_7y0U55zy+EqCqi7FhFhDtGitRz7LxA@mail.gmail.com>
To: Mahesh Jethanandani <mjethanandani@gmail.com>
Cc: The IESG <iesg@ietf.org>, draft-ietf-babel-yang-model@ietf.org, babel-chairs <babel-chairs@ietf.org>, Babel at IETF <babel@ietf.org>, Donald Eastlake <d3e3e3@gmail.com>
Content-Type: multipart/alternative; boundary="000000000000bdbed005c29e9dcd"
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/dQ8f6_T6F9T5_5c4pnxb-ZNUnEw>
Subject: Re: [babel] Martin Duke's No Objection on draft-ietf-babel-yang-model-10: (with COMMENT)
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: Tue, 18 May 2021 18:09:58 -0000

That's fine. In the original text, you refer to zero and NULL as if they're
separate quantities. As these are uints, I think s/NULL/zero would solve
the problem.

It would be helpful to clarify what happens when both values are nonzero.

On Tue, May 18, 2021 at 11:01 AM Mahesh Jethanandani <
mjethanandani@gmail.com> wrote:

> Hi Martin,
>
> You bring up a point that I have been struggling with.
>
> On May 17, 2021, at 2:10 PM, Martin Duke via Datatracker <noreply@ietf.org>
> wrote:
>
> Martin Duke has entered the following ballot position for
> draft-ietf-babel-yang-model-10: No Objection
>
> When responding, please keep the subject line intact and reply to all
> email addresses included in the To and CC lines. (Feel free to cut this
> introductory paragraph, however.)
>
>
> Please refer to https://www.ietf.org/iesg/statement/discuss-criteria.html
> for more information about DISCUSS and COMMENT positions.
>
>
> The document, along with other ballot positions, can be found here:
> https://datatracker.ietf.org/doc/draft-ietf-babel-yang-model/
>
>
>
> ----------------------------------------------------------------------
> COMMENT:
> ----------------------------------------------------------------------
>
> (2.3)
>
> leaf received-metric {
>           type uint16;
>           description
>             "The metric with which this route was advertised by the
>              neighbor, or maximum value (infinity) to indicate the
>              route was recently retracted and is temporarily
>              unreachable. 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
>              calculated-metric or received-metric MUST be non-NULL.";
>           reference
>             "RFC ZZZZ: Babel Information Model, Section 3.6,
>              RFC 8966: The Babel Routing Protocol, Section 2.1.";
>         }
>
>         leaf calculated-metric {
>           type uint16;
>           description
>             "A calculated metric for this route. How the metric is
>              calculated is implementation-specific. Maximum value
>              (infinity) indicates the route was recently retracted
>              and is temporarily unreachable. At least one of
>              calculated-metric or received-metric MUST be non-NULL.";
>           reference
>             "RFC ZZZZ: Babel Information Model, Section 3.6,
>              RFC 8966: The Babel Routing Protocol, Section 2.1.";
>         }
>
> I don't understand the relationship between these two. If the metric was
> calculated rather than received, why would the value be zero instead of
> NULL?
> Isn't a zero metric dangerous in a routing algorithm?
>
>
> How do you represent NULL? By definition, NULL means there is no value,
> that we are looking at an empty leaf. A ‘received-metric’ per my reading,
> cannot be empty. It is either received from a neighbor, or is a generated
> value, and therefore cannot be empty. Same is the case for
> ‘calculated-metric’. Combine this with the fact that the info model defines
> the leaf of type unsigned int 16, and thus the value of 0. Would it help to
> add something to this effect?
>
> "A value of 0 implies a NULL value, and SHOULD NOT be used in metric
> calculation".
>
> Alternatively, one could change the type to signed int 16, something the
> TR-181 model does. In that case the value has two meanings. If the value is
> less than 0, it means the value is NULL, but if the value is greater than
> 0, then it carries the actual metric value??
>
> In either case, an implementor cannot take the value of the metric as is
> and use it, without checking if it is 0 or -1.
>
>
> (4) "config true perspective"
>
>
> Dropped the phrase from the sentence.
>
> Thanks
>
> Mahesh Jethanandani
> mjethanandani@gmail.com
>
>
>
>
>
>