Re: [netmod] Unknown bits - backwards compatibility

Jeffrey Haas <jhaas@pfrc.org> Thu, 13 April 2023 20:43 UTC

Return-Path: <jhaas@pfrc.org>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3A115C15153E for <netmod@ietfa.amsl.com>; Thu, 13 Apr 2023 13:43:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
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 UzGWB_wxfmC3 for <netmod@ietfa.amsl.com>; Thu, 13 Apr 2023 13:43:50 -0700 (PDT)
Received: from slice.pfrc.org (slice.pfrc.org [67.207.130.108]) by ietfa.amsl.com (Postfix) with ESMTP id 61824C14F73F for <netmod@ietf.org>; Thu, 13 Apr 2023 13:43:50 -0700 (PDT)
Received: from smtpclient.apple (104-10-90-238.lightspeed.livnmi.sbcglobal.net [104.10.90.238]) by slice.pfrc.org (Postfix) with ESMTPSA id BD2DE1E037; Thu, 13 Apr 2023 16:43:49 -0400 (EDT)
Content-Type: multipart/alternative; boundary="Apple-Mail=_B60A1EFC-23E8-49BB-BC38-6354A37EBAFF"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\))
From: Jeffrey Haas <jhaas@pfrc.org>
In-Reply-To: <DM6PR08MB508452FBF0266BCDEC68464F9B989@DM6PR08MB5084.namprd08.prod.outlook.com>
Date: Thu, 13 Apr 2023 16:43:48 -0400
Cc: "netmod@ietf.org" <netmod@ietf.org>
Message-Id: <44DB67B7-D1D9-4A4D-835B-8182491E803E@pfrc.org>
References: <167510951913.30783.6878062588510633543@ietfa.amsl.com> <70DA36EA-F90A-4800-A4C8-0DDCF6FFD845@pfrc.org> <0F8C57E5-F7F8-4383-A9BE-E98D2C6A6E42@pfrc.org> <DM6PR08MB50841A7B84BA1D84AC0B57809B9B9@DM6PR08MB5084.namprd08.prod.outlook.com> <DM6PR08MB5084E9656CA7C388D2A229779B9B9@DM6PR08MB5084.namprd08.prod.outlook.com> <A3EFA144-664D-4F67-8565-111EF650CE0B@pfrc.org> <DM6PR08MB508452FBF0266BCDEC68464F9B989@DM6PR08MB5084.namprd08.prod.outlook.com>
To: "Jason Sterne (Nokia)" <jason.sterne@nokia.com>
X-Mailer: Apple Mail (2.3696.120.41.1.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/eJudZWebdOwmfXUXdTQLTmvCls0>
Subject: Re: [netmod] Unknown bits - backwards compatibility
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 13 Apr 2023 20:43:54 -0000

Jason,


> On Apr 13, 2023, at 4:29 PM, Jason Sterne (Nokia) <jason.sterne@nokia.com> wrote:
> [>>JTS:] Yeah – I see that perspective. But a client using the old API/contract gets new/different behavior for the unknown-flags leaf from a new server. Hence NBC – unless we decide in the end to somehow make this specific case/typedef an exception but I’m not sure about that yet. The typedef and behavior you are describing there may still be useful as-is even if we decide to still officially consider the change to unknown-flags behavior as NBC (i.e. in new the version of the module that changes a bit from unknown to known).

Understood.  True to form, I seldom seem to come to netmod with easy problems. :-)

Not having read the current versioning material, this would seem to be a case where you could consider this NBC, but likely not-problematic.  I'm not sure if you have "severity" as a concept in the discussions thus far.

If there's current verbiage about documenting NBC considerations, feel free to point me to the appropriate documents.  As a general purpose mechanism, the draft could simply describe that any time an update to the known leaf type is done that the unknown leaf type is flagged for NBC for the newly assigned bits.

> 
> I wish to point you and others concerned on these points to the BGP YANG modeling for Extended Communities, which will have these problems in a different flavor: Known communities will render via the typedefs, unknown will render using the prefix 'raw'.  (See typedef bgp-ext-community-type.)  This headache is already a consideration in every BGP implementation that deals with extended communities in changing meaning.
> [>>JTS:] Can you point me to a repository or RFC where I can see this? I’m not familiar with where this YANG work is being done.

Sorry for not including the URL.  This document went to WGLC for IDR a few days ago.  We'll be asking (yet yet yet again) for YANG doctor review.
https://www.ietf.org/archive/id/draft-ietf-idr-bgp-model-16.html

You'll find the typedef issue for extended communities in there, and also the field for unknown bits in the operational state that is the genesis for this conversation.

> Figure 4 in draft version -02 shows how the type gets modified to add the new bit. The model doesn't change between step 1/ step 2 beyond this.  [>>JTS:] Sure – maybe just mention explicitly that the model for unknown-flags stays unchanged.
>  
> If you'd find it helpful, I could add to the text covering Figure 8 "after assignment, bit-1 is no longer returned in unknown-flags".  Is that what you're looking for?[>>JTS:] Yes – that would probably help.

I'll try to roll in these changes soon. Thanks.

-- Jeff