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

Reshad Rahman <reshad@yahoo.com> Mon, 02 January 2023 23:48 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 6A3A4C152584 for <rtg-bfd@ietfa.amsl.com>; Mon, 2 Jan 2023 15:48:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.096
X-Spam-Level:
X-Spam-Status: No, score=-7.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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H2=-0.001, 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=unavailable 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 GyIzAIEANE4w for <rtg-bfd@ietfa.amsl.com>; Mon, 2 Jan 2023 15:48:54 -0800 (PST)
Received: from sonic311-15.consmr.mail.bf2.yahoo.com (sonic311-15.consmr.mail.bf2.yahoo.com [74.6.131.125]) (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 1DC45C152572 for <rtg-bfd@ietf.org>; Mon, 2 Jan 2023 15:48:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1672703333; bh=r297J8/eBpxproCNCyaGA858UqJP1Nz9nyVUjM8K1P8=; h=Date:From:Reply-To:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=XMd0oFdld9e4FjBi84YW/yaAXzGlueWESmnzWhZhwQ5toqGmZzXNwMrDt0VOsidraTiXyXYU9k0fNo86DKiBUiUYh5rJ4200f5oZdn5ibmRQzDaaLNJgSXThHxpqHM7GmGQTv4fzqDMGxd42FKsP8WX2sOzUcK/R2ClEbfwMHnKfes/W7oJaSWRDQGtEjDPOHzHMadAQqy2U99VnNy9SxOx2oSbz3Bw9q3JmOkzfKUoYJkpQjFCHa/5Ju3yVoSBFqR9Z/fDnnQW+e4ecbMvSM9xD1DLYQdZK+a0rULzW3KGovJMLx1ZVwKg91vaBG1s5OD2X44v5gkED+bcwnVqkxg==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1672703333; bh=wrywc5q1ZHVs6VjAadsv6HqBCz5iUXW2+0XqDiTm/9N=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=g5HlC5fv0RGF5sdEqrU09BjTTVgc2PFeWZD9IjP63l/xUuDgXRIi+1q4jMRs7gBX+IemODTURHbuIhvH4ZlTpSq0hxCX3sSQS11gj8Yl5sqfi+f+S5dzjVfXjVU9nmeDGWoTfrBieKviLb/MkpcyN3TYXqKS+l6EtBBHAasjRPZImIEycwMPmqYx4mwf5vLx93LN3mIBL0LXXWKMF4etKfqMudsFjCR2rJOPstQS6Fg0yDof9AP35F8wf5PsO37WSDNt0jCmgrjFaaO4NMJMv9X3y5pknq9CTmWX/SQlOf5skiIgWLosp67QyLvD+n8ItfkPRM+OixkO3AuuaZqB3w==
X-YMail-OSG: 3.TuRVIVM1ke.pyv3UWvV8rnlItOwc0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KfDbOrWc odAFIKCQQV_XotvKK3MCGpVOp8BrPIWLtPk6n4y39hW7rs8vqp.dRaXTfCMUS4bA.cDxHAVqh2zJ sjS4X2nrdn9oxlRAcPtopZZOmUne7glqvPw22L_XSuudnubVbDkob71Rj4U0qfs2uDilWr8_M.Tc fRiKMFzAeNQ--
X-Sonic-MF: <reshad@yahoo.com>
Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.bf2.yahoo.com with HTTP; Mon, 2 Jan 2023 23:48:53 +0000
Date: Mon, 02 Jan 2023 23:38:13 +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: <97542415.2290994.1672702693939@mail.yahoo.com>
In-Reply-To: <20221220210122.GA2846@pfrc.org>
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>
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_2290993_1185790524.1672702693937"
X-Mailer: WebService/1.1.20982 YMailNorrin
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtg-bfd/AGk8WJgiFspujy2px774V6DQrY4>
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: Mon, 02 Jan 2023 23:48:55 -0000

 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