Re: [yang-doctors] Robert Wilton's Discuss on draft-ietf-bfd-unsolicited-11: (with DISCUSS and COMMENT)

Reshad Rahman <reshad@yahoo.com> Wed, 18 January 2023 15:14 UTC

Return-Path: <reshad@yahoo.com>
X-Original-To: rtg-bfd@ietfa.amsl.com
Delivered-To: rtg-bfd@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 31878C14CF15 for <rtg-bfd@ietfa.amsl.com>; Wed, 18 Jan 2023 07:14:03 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.095
X-Spam-Level:
X-Spam-Status: No, score=-2.095 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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h1e077niyKFu for <rtg-bfd@ietfa.amsl.com>; Wed, 18 Jan 2023 07:14:02 -0800 (PST)
Received: from sonic317-26.consmr.mail.bf2.yahoo.com (sonic317-26.consmr.mail.bf2.yahoo.com [74.6.129.81]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C587CC14CE39 for <rtg-bfd@ietf.org>; Wed, 18 Jan 2023 07:14:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1674054840; bh=ZD4uteB3mtJ1DX6bzcaafbV3SyN+QCUYf78zYhAjkz4=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=bqBdURT76i3ABhZcqM0df7edWbtNN4bVU1Y8R86uRrrVAsgepdH68OwIK6Nr07HI0NEv2/NTthkfuQG5FYAoCdO2pQhe8+30363LpOm3eKKyZO8x1YOyyFxK251tuh/UD9OoFV8s+sDAt4WjdYYyLnBoxqzrHwlJhysQWaOoA5c0/f32kmtPQDqQsGbnSI1CZzmZsTooLOqJwN9FeV73rtGD0VJWZOspWR1cVVZUFON2w4xVonzeqD1qzVjT/WZaEONARk16Hj37b0IZnNkvg7A7ANgBwg06bkqmD2ygvgCQnHYip86CVZ9NfCAqU5C9KuwGmz0GArdJ3pz1afv1lw==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1674054840; bh=FIRnPBLObwJ42YPX+l+bJ/h9Vav0dU7UQIdSp5XFLxf=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=A6sat/I9dJOL8FfKF+CACfj4v3ZH04XopZnyeHwYWibxe0Nwn0OagqAgshVG1GMjmPwCF8MWXBLDZzzbroFahXeuwx1ntGHevGIM0Fpy3cvy++GssJoeRG3RwC9WTUCIA6CAVod8y/cdKFJq5P8xlrSZEAAtkeUr2SGFPJU29iiynrd40r1StBEYqK8y0MTix6AF9DLVB6tgDmrQqM+xotyqucLV9UcIV7HD31/nAxLKXK2rpPDse8gvIi6YtoCEUTlExwFUgC1Zra2Pr0sOsvSAIzxwe29C9w7+pLlHOmPlbGgr8pdBdGvQklRSU1FnCKrvxJMxJIgurxuLZMzqqg==
X-YMail-OSG: U6AvML0VM1n3KM6jhh_vW4LxHkE7XyquGEYDUlCtWNB6cKj0VtzIYTXmS_mmLwt 7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E.UfmqST22MMw0LvDV5KFTh2id.2LhLpQpPSAPbgimepogx GbcDZHHuabTs9X3dNDe43HA.cdEG_e0cPm9qFEWCuEEe.AU9XBN_iopdmOLVL5QzmW_aLOaVmAZN TIc6mPuwdbnFxNpRN8w--
X-Sonic-MF: <reshad@yahoo.com>
Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.bf2.yahoo.com with HTTP; Wed, 18 Jan 2023 15:14:00 +0000
Date: Wed, 18 Jan 2023 15:13:56 +0000
From: Reshad Rahman <reshad@yahoo.com>
Reply-To: Reshad Rahman <reshad@yahoo.com>
To: "Rob Wilton (rwilton)" <rwilton@cisco.com>, Jeffrey Haas <jhaas@pfrc.org>
Cc: The IESG <iesg@ietf.org>, "draft-ietf-bfd-unsolicited@ietf.org" <draft-ietf-bfd-unsolicited@ietf.org>, "bfd-chairs@ietf.org" <bfd-chairs@ietf.org>, "rtg-bfd@ietf.org" <rtg-bfd@ietf.org>, YANG Doctors <yang-doctors@ietf.org>
Message-ID: <540247674.999799.1674054836591@mail.yahoo.com>
In-Reply-To: <97542415.2290994.1672702693939@mail.yahoo.com>
References: <167086459809.47152.7191645317039213428@ietfa.amsl.com> <20221216173742.GF23286@pfrc.org> <BY5PR11MB419691B9736C86057F356C58B5E59@BY5PR11MB4196.namprd11.prod.outlook.com> <20221220012001.GA5534@pfrc.org> <BY5PR11MB4196886F53802352AE7C0DE3B5EA9@BY5PR11MB4196.namprd11.prod.outlook.com> <20221220210122.GA2846@pfrc.org> <97542415.2290994.1672702693939@mail.yahoo.com>
Subject: Re: [yang-doctors] Robert Wilton's Discuss on draft-ietf-bfd-unsolicited-11: (with DISCUSS and COMMENT)
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_999798_251667253.1674054836589"
X-Mailer: WebService/1.1.21062 YMailNorrin
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtg-bfd/U6MUZA7_mjlI3qXPRJHz56JzFnc>
X-BeenThere: rtg-bfd@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "RTG Area: Bidirectional Forwarding Detection DT" <rtg-bfd.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtg-bfd>, <mailto:rtg-bfd-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rtg-bfd/>
List-Post: <mailto:rtg-bfd@ietf.org>
List-Help: <mailto:rtg-bfd-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtg-bfd>, <mailto:rtg-bfd-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 Jan 2023 15:14:03 -0000

 Hi Rob,
On 2nd thought: instead of removing the default values for the leaf nodes under bfd/ip-sh/unsolicited, I will make "unsolicited" a presence container, remove the "enabled" leaf node and keep the default values. Are you ok with that?
Regards,Reshad.
    On Monday, January 2, 2023, 06:48:59 PM EST, Reshad Rahman <reshad=40yahoo.com@dmarc.ietf.org> wrote:  
 
  Hi Rob, Jeff, all,
Rob thanks for catching this. Yes the intention is to have inheritance and I will spell that out in the next rev. The default values will be removed for leaf nodes under bfd/ip-sh/unsolicited and the descriptions will be updated to point to the global unsolicited config (which will still have default values).
Regards,Reshad.
    On Tuesday, December 20, 2022, 04:01:33 PM EST, Jeffrey Haas <jhaas@pfrc.org> wrote:  
 
 Rob,

On Tue, Dec 20, 2022 at 11:58:03AM +0000, Rob Wilton (rwilton) wrote:
> (1) If the user configures:
>  
> bfd/ip-sh/unsolicited/min-interval = 1000
> 
> And no entries exist bfd/ip-sh/unsolicited/interfaces then all sessions have a min-interval of 1000.  This is fine and expected.
> 
>  
> (2) If the user changes the config from (1) to:
> 
> bfd/ip-sh/unsolicited/min-interval = 1000
> bfd/ip-sh/interfaces[foo]/unsolicited/min-interval = 500
> 
> Then the all sessions on interface foo will have a min-interval of 500.  All other sessions not on that interface will have a min-interval 1000.  This is fine and expected.

More particularly, sessions on foo are not unsolicited.  They will require
additional configuration or bootstrapping via protocol.

> (3) ) If the user changes the config from (1) to just:
> 
> bfd/ip-sh/unsolicited/min-interval = 1000
> bfd/ip-sh/interfaces[foo]/unsolicited/local-multiplier = 2
> 
> then with the interface min-interval/desired-min-tx-interval/required-min-rx-interval defaults this is semantically equivalent to the user configuring:
> 
> bfd/ip-sh/unsolicited/min-interval = 1000
> bfd/ip-sh/interfaces[foo]/unsolicited/local-multiplier = 2
> bfd/ip-sh/interfaces[foo]/unsolicited/desired-min-tx-interval = 1000000
> bfd/ip-sh/interfaces[foo]/unsolicited/required-min-rx-interval = 1000000

While I understand this is what you believe the intent is, the space isn't
quite global vs. per-interface, it's "unsolicited global" vs. per-interface.
I wouldn't expect the min-interval to be inherited in this fashion.

> So, despite the fact that the user hasn't explicitly configured min-interval, desired-min-tx-interval or required-min-rx-interval under the interface, just by configuring something else under the interface causes these defaults to come into scope and causes the rx/tx intervals to operationally change on interface foo.
> 
> This is what I would regard as surprising.  The interface behaviour has changed as a side effect of some somewhat unrelated configuration.
> 
> Normally, with hierarchical configuration, I would expect less-specific settings to take effect unless explicitly overridden by a more specific setting.
> 
> If instead of the default statements under the interface config, the description stated that if not configured, the default inherits from bfd/ip-sh/unsolicited/min-interval, then if the user entered the configuration in (3), then the min-interval on interfaces[foo] wouldn't have changed at all.  It would keep using the (explicitly configured, or implicit default) value from bfd/ip-sh/unsolicited/min-interval.

Again, your example is understood, but I don't think it matches the intent.
We'll see how the authors respond.

I'd rather not see the unsolicited global behavior completely removed. (It
already requires a feature.)  But perhaps that's the best option.

> As example of this hierarchical configuration, in the style that I describe, is in RFC 8342, C.2.  Added by Phil Shafer, if I recall correctly ...

Little surprise, I understand Phil's example quite well.  In that example,
the hierarchy ends up being largely consistent across the configuration
scopes, and the inheritance model needs to be called out in the
documentation.

In this BFD unsolicited case, the per-interface state has a leaf for
unsolicited while the "global" case is a unsolicited container that has
configuration parameters.  So, the point of similarity is a bit split.

FWIW, in the model Phil is citing, even then inheritance isn't completely
transparent.  As an example, address-family configuration when done in any
more specific scope requires a full re-specification of the families.  This
is because if configuration at the more specific scope caused a union over
the previously configured families, the syntax would then require a
"no-address-family" negative configuration to undo the inheritance.

Inheritance is a mess. :-)

-- Jeff

_______________________________________________
yang-doctors mailing list
yang-doctors@ietf.org
https://www.ietf.org/mailman/listinfo/yang-doctors