Re: [tcpm] Request for feedback on WG adoption of draft-scharf-tcpm-yang-tcp-04

"Scharf, Michael" <Michael.Scharf@hs-esslingen.de> Mon, 30 March 2020 11:52 UTC

Return-Path: <Michael.Scharf@hs-esslingen.de>
X-Original-To: tcpm@ietfa.amsl.com
Delivered-To: tcpm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 842C83A144F; Mon, 30 Mar 2020 04:52:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.196
X-Spam-Level:
X-Spam-Status: No, score=-0.196 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=hs-esslingen.de
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 0EODARTrteUP; Mon, 30 Mar 2020 04:52:29 -0700 (PDT)
Received: from mail.hs-esslingen.de (mail.hs-esslingen.de [134.108.32.78]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2FE8F3A1452; Mon, 30 Mar 2020 04:52:28 -0700 (PDT)
Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.hs-esslingen.de (Postfix) with ESMTP id 10E2D25A15; Mon, 30 Mar 2020 13:52:27 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hs-esslingen.de; s=mail; t=1585569147; bh=AAlLpPDyiVowu6RLFlRwPPeyP/E+lYHVIZIhxNRX2xU=; h=From:To:CC:Subject:Date:References:In-Reply-To:From; b=mVxsBwLoW8hWbPfwlH0n24yzZ9+ifPeigEovSNrPSpy+rvA7nGG8TpLn0wBBGk4Xw t0L3aoLRlGAINDEa+z3kL4KXZVZ+CuEaHHB72Oe1lNjsBkw0AJewTEFoZPUoMCHnON i382DlFQMRozyXyB21lUTCtnDdXfIamIlU2bqqTo=
X-Virus-Scanned: by amavisd-new-2.7.1 (20120429) (Debian) at hs-esslingen.de
Received: from mail.hs-esslingen.de ([127.0.0.1]) by localhost (hs-esslingen.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Cuvu1ci4MUlp; Mon, 30 Mar 2020 13:52:25 +0200 (CEST)
Received: from rznt8101.rznt.rzdir.fht-esslingen.de (rznt8101.rznt.rzdir.fht-esslingen.de [134.108.29.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mail.hs-esslingen.de (Postfix) with ESMTPS; Mon, 30 Mar 2020 13:52:25 +0200 (CEST)
Received: from RZNT8114.rznt.rzdir.fht-esslingen.de ([169.254.3.209]) by rznt8101.rznt.rzdir.fht-esslingen.de ([fe80::bd73:d6a9:24d7:95f1%10]) with mapi id 14.03.0468.000; Mon, 30 Mar 2020 13:52:25 +0200
From: "Scharf, Michael" <Michael.Scharf@hs-esslingen.de>
To: Joseph Touch <touch@strayalpha.com>
CC: Lars Eggert <lars@eggert.org>, "draft-scharf-tcpm-yang-tcp@ietf.org" <draft-scharf-tcpm-yang-tcp@ietf.org>, tcpm IETF list <tcpm@ietf.org>, Michael Tuexen <tuexen@fh-muenster.de>
Thread-Topic: [tcpm] Request for feedback on WG adoption of draft-scharf-tcpm-yang-tcp-04
Thread-Index: AdYERvxPm8xvduWhO0ywtFiDNCmPqv//8tWAgAAeaZ7///9FAP/7lkPA
Date: Mon, 30 Mar 2020 11:52:24 +0000
Message-ID: <6EC6417807D9754DA64F3087E2E2E03E2DA44F75@rznt8114.rznt.rzdir.fht-esslingen.de>
References: <6EC6417807D9754DA64F3087E2E2E03E2DA3F971@rznt8114.rznt.rzdir.fht-esslingen.de> <A8AAB673-0F59-462C-B1C3-125123556D6E@strayalpha.com> <6EC6417807D9754DA64F3087E2E2E03E2DA3FCCF@rznt8114.rznt.rzdir.fht-esslingen.de> <3DDE4B40-70B5-4848-9D0E-EF4C902E0AA1@strayalpha.com>
In-Reply-To: <3DDE4B40-70B5-4848-9D0E-EF4C902E0AA1@strayalpha.com>
Accept-Language: de-DE, en-US
Content-Language: de-DE
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [134.108.48.164]
Content-Type: multipart/alternative; boundary="_000_6EC6417807D9754DA64F3087E2E2E03E2DA44F75rznt8114rzntrzd_"
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpm/cbeE_xZXpT0BDynaHQjL4-X9WP8>
Subject: Re: [tcpm] Request for feedback on WG adoption of draft-scharf-tcpm-yang-tcp-04
X-BeenThere: tcpm@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: TCP Maintenance and Minor Extensions Working Group <tcpm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpm>, <mailto:tcpm-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpm/>
List-Post: <mailto:tcpm@ietf.org>
List-Help: <mailto:tcpm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpm>, <mailto:tcpm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Mar 2020 11:52:34 -0000

Hi Joe,

In the YANG model, the statement “if-feature statistics;“ explicitly specifies that an implementation only has to support that if it supports the “feature” statistics of the model, for instance, if it announces that support (e.g., during the NETCONF handshake). It is entirely up to the implementer whether to support a given feature or not. This is just using the tools from the YANG language.

In addition, keep in mind that objects in a YANG model are optional by default. A node in the tree must only be present if the keyword “mandatory true” is specified in YANG. We don’t use this keyword in the model. So, for somebody who reads the YANG model, IMHO it should be more than clear that the model is optional.

We have discussed quite a bit how to address your past comment and this seems the most obvious approach to somebody who is familiar with YANG.

As a side note, we can see here that this is about details of the YANG language. One of the challenges with this doc is that one may need both some TCP and some YANG expertise to understand some of the details. Probably only very few people deal with both topics at the same time. For example, I am not a real YANG expert myself. But, well, I am not the only author of the I-D... The idea of the I-D is to bring together the needed expertise among the authors. (And there would still be room for more co-authors.) Also, for the TCPM working group probably some of the YANG details are less interesting. More relevant is probably how TCP configuration and stats are modelled, e.g., what parameters are used, what values parameters can take, how the parameters are described precisely, etc. And I think we have *a lot* of expertise on that in TCPM.

I am not sure how the TCP roadmap helps us with the YANG model, tough. It is unrealistic to model in YANG everything that the IETF has written on TCP so far. To make a trivial example: We don’t need a YANG model for Quick-Start TCP ;-) This is why the I-D takes the opposite approach: The focus is on configuration attributes and stats that exist on (several) existing TCP implementations. So, basically the proposal is to only model attributes that exist (in somewhat similar from) on several TCP stacks, i.e., it can be configured already, albeit not necessarily by YANG. This set of attributes mostly corresponds to what follows from the standards-track TCP specification, albeit of course the devil is in the details. In any case, to me it doesn’t make a lot of sense to model something in a YANG model that a corresponding NETCONF server implementation cannot implement because no relevant TCP stack supports it.

Thanks

Michael


From: Joseph Touch <touch@strayalpha.com>
Sent: Friday, March 27, 2020 5:49 PM
To: Scharf, Michael <Michael.Scharf@hs-esslingen.de>
Cc: Lars Eggert <lars@eggert.org>; draft-scharf-tcpm-yang-tcp@ietf.org; tcpm IETF list <tcpm@ietf.org>; Michael Tuexen <tuexen@fh-muenster.de>
Subject: Re: [tcpm] Request for feedback on WG adoption of draft-scharf-tcpm-yang-tcp-04




On Mar 27, 2020, at 8:51 AM, Scharf, Michael <Michael.Scharf@hs-esslingen.de<mailto:Michael.Scharf@hs-esslingen.de>> wrote:

Hi Joe,

Regarding stats, this is a YANG „feature“ in draft -04. That explicitly specifies that a NETCONF server compliant to the YANG model does not have to provide the stats. We added this because of your past comment on that.

AOK, but is that clear in the model itself? I.e., is there a way that merely using that subtree of data forces the user to realize that it’s explicitly optional?


For the stats, -04 relatively closely follows the TCP-MIB (and the WG explicitly ask not to try a 1:1 mapping).

AOK.

...
I fully agree that we can discuss every single entry. But, at least for the stats, I don’t think this is really a lot of work.

Agreed; this isn’t onerous esp. if optional.


In addition, there is one difference between a YANG model (and in fact also a MIB) and a TCP API: The TCP API is tightly coupled with the TCP protocol implementation typically in the kernel. Network management apps using YANG can run outside the kernel.

In-kernel or out-of-kernel are implementation decisions. Neither is driven by MIB vs YANG or even the TCP API (or TCP) itself, agreed.

My point is that we need to be careful to not make this model an explicit or implicit extension of the API. The optional part above should do that.


...
Stats, TCP-AO and MD5 (with appropriate flagging) actually look like pretty low-hanging fruits to me. Of course, we need to discuss the modeling details,  but it is a fairly narrow and well-defined scope. Is this part really the most challenging part of the document that prevents us from adopting a YANG model in TCPM?

The TCP roadmap should help us understand what’s critical and not in this model, IMO.

Joe