[netconf] Re: Default statements on udp-client-server groupings

Alex Huang Feng <alex.huang-feng@insa-lyon.fr> Mon, 16 September 2024 08:43 UTC

Return-Path: <alex.huang-feng@insa-lyon.fr>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 66612C14F70F; Mon, 16 Sep 2024 01:43:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.262
X-Spam-Level:
X-Spam-Status: No, score=0.262 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, HTML_MESSAGE=0.001, RCVD_HELO_IP_MISMATCH=2.368, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=insa-lyon.fr
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 Da7LiNp-zoVT; Mon, 16 Sep 2024 01:43:44 -0700 (PDT)
Received: from smtpout01-ext2.partage.renater.fr (smtpout01-ext2.partage.renater.fr [194.254.240.33]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5A39EC14F5F6; Mon, 16 Sep 2024 01:43:36 -0700 (PDT)
Received: from zmtaauth03.partage.renater.fr (zmtaauth03.partage.renater.fr [194.254.240.26]) by smtpout10.partage.renater.fr (Postfix) with ESMTP id 52A806A99C; Mon, 16 Sep 2024 10:42:49 +0200 (CEST)
Received: from zmtaauth03.partage.renater.fr (localhost [127.0.0.1]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTPS id 21456801CB; Mon, 16 Sep 2024 10:42:49 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTP id D9863801AE; Mon, 16 Sep 2024 10:42:48 +0200 (CEST)
DKIM-Filter: OpenDKIM Filter v2.10.3 zmtaauth03.partage.renater.fr D9863801AE
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=insa-lyon.fr; s=CB289C06-95B8-49FE-9C4B-D197C6D2E7CB; t=1726476169; bh=e3/BpzvsQArtsgxrMpXsS+l9uOGAux+jrS9ce5SV+wA=; h=From:Message-Id:Mime-Version:Date:To; b=UB00m0+LVO1jfGE0IrkN4hE/o+pbYVjwQXzzRNggtwPb1xLshk7lhWrUvTksqBFm6 7OEJJVCT/JuzQr9CIkxqU2kgERHf0ucyf3w/wS7wGuT+Qxwy8ejLGjeHW1lU2KvF/f nIa51AN26gA+cnvWwi5jTxXO0Rk2WWZnJRoK7P5CBamRn1oyEX76pRsMZW9oIP8cMP ykmudPyuNZ+ii6sXBW5du71TJkG1b0vy4Sgc1P717UlOxsRwkWg8ZbaD7bWI5n87zI tLfQNrkUfPYXEZTUUSwHlYLdFg52NVFfO0w1hKY04mlOkr7L4QnubeJkrA5P4kczaj GaPSajrLIBfvg==
Received: from zmtaauth03.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth03.partage.renater.fr [127.0.0.1]) (amavis, port 10026) with ESMTP id 73IeY9dYhY4v; Mon, 16 Sep 2024 10:42:43 +0200 (CEST)
Received: from 176.146.148.215 (unknown [194.254.241.250]) by zmtaauth03.partage.renater.fr (Postfix) with ESMTPA id D689D80174; Mon, 16 Sep 2024 10:42:25 +0200 (CEST)
From: Alex Huang Feng <alex.huang-feng@insa-lyon.fr>
Message-Id: <D0230B09-8D6B-4615-8C16-ED6BA6AAFDA7@insa-lyon.fr>
Content-Type: multipart/alternative; boundary="Apple-Mail=_F18582D3-E141-4867-954D-AE9B9D1E1519"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\))
Date: Mon, 16 Sep 2024 10:42:08 +0200
In-Reply-To: <01000191dd5fee26-d7465934-4131-40b1-9549-ff693917b0d6-000000@email.amazonses.com>
To: Kent Watsen <kent+ietf@watsen.net>, Andy Bierman <andy@yumaworks.com>
References: <EAA84133-F9D5-4380-994D-297993F13675@insa-lyon.fr> <01000191dc9a8080-119f64d0-f1d7-4549-9789-ba05daa87609-000000@email.amazonses.com> <CABCOCHRYQmo+XDZMGuTwNJ+OW2F1ZbRDcjMst40Z0GXpFD86-w@mail.gmail.com> <01000191dcc4509d-0c99ab29-a02e-4a3e-b68b-3b1d58a87f27-000000@email.amazonses.com> <CABCOCHT6Wsh=mwpPNq+3nGzf8EU8fGtwvstakEtbPetTsL9NDQ@mail.gmail.com> <01000191dd5fee26-d7465934-4131-40b1-9549-ff693917b0d6-000000@email.amazonses.com>
X-Mailer: Apple Mail (2.3776.700.51)
X-Virus-Scanned: clamav-milter 0.103.8 at clamav04
X-Virus-Status: Clean
X-Renater-Ptge-SpamState: clean
X-Renater-Ptge-SpamScore: -100
X-Renater-Ptge-SpamCause: gggruggvucftvghtrhhoucdtuddrgeeftddrudekhedgtdehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecutffgpfetvffgtfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffktgggufffjgevvfhfofesrgdtmherhhdtjeenucfhrhhomheptehlvgigucfjuhgrnhhgucfhvghnghcuoegrlhgvgidrhhhurghnghdqfhgvnhhgsehinhhsrgdqlhihohhnrdhfrheqnecuggftrfgrthhtvghrnhepgfefgfeiffetveehvedvudetheefffeiudeiheevgfffjedtjeffudffudeiteegnecuffhomhgrihhnpehivghtfhdrohhrghdpghhithhhuhgsuhhsvghrtghonhhtvghnthdrtghomhenucfkphepudelgedrvdehgedrvdeguddrvdehtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleegrddvheegrddvgedurddvhedtpdhhvghlohepudejiedrudegiedrudegkedrvdduhedpmhgrihhlfhhrohhmpegrlhgvgidrhhhurghnghdqfhgvnhhgsehinhhsrgdqlhihohhnrdhfrhdpnhgspghrtghpthhtohepgedprhgtphhtthhopehkvghnthdoihgvthhfseifrghtshgvnhdrnhgvthdprhgtphhtthhopegrnhguhieshihumhgrfihorhhkshdrtghomhdprhgtphhtthhopehnvghttghonhhfsehivghtfhdrohhrghdprhgtphhtthhopegurhgrfhhtqdhivghtfhdqnhgvthgtohhn fhdquhguphdqtghlihgvnhhtqdhsvghrvhgvrhdrrghuthhhohhrshesihgvthhfrdhorhhg
Message-ID-Hash: I3OZ3ROLPAWWDH3GIFLLGNZABIGKRYT5
X-Message-ID-Hash: I3OZ3ROLPAWWDH3GIFLLGNZABIGKRYT5
X-MailFrom: alex.huang-feng@insa-lyon.fr
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-netconf.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "netconf@ietf.org" <netconf@ietf.org>, draft-ietf-netconf-udp-client-server.authors@ietf.org
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [netconf] Re: Default statements on udp-client-server groupings
List-Id: NETCONF WG list <netconf.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/lTC0ItxBTdhVnCjlzJDnHBDCLXk>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Owner: <mailto:netconf-owner@ietf.org>
List-Post: <mailto:netconf@ietf.org>
List-Subscribe: <mailto:netconf-join@ietf.org>
List-Unsubscribe: <mailto:netconf-leave@ietf.org>

Dear Kent and Andy,

Thank you for the provided feedback.

Here a few comments about udp-groupings:
- When I meant user, I meant YANG module’s writer or designer, which can be a IETF contributor or not.
- I agree with Andy that the default port on the generic grouping should be removed.
Personally, I would remove all of them, just for the fact that by having them we are limiting the scope of usage of this generic grouping.
Maybe adding a section (or text) explaining that service models SHOULD define (or prioritize) having a default port request within the YANG module would be useful? See proposal below
Because I can see a user/designer wanting to implement a YANG module with a “mandatory" port but unable to do so because of this “default” statement.

Proposed text:
NEW:
	The "remote-port" and "local-port" leaves are defined without any	
 	   "default" or "mandatory" statements in the "udp-client-grouping"	
 	   grouping.  YANG models using this grouping SHOULD refine the grouping	
 	   with a "default" statement, usually with the port allocated by IANA,	
 	   or a "mandatory" statement, if the ports needs to be always present.

Diff: https://author-tools.ietf.org/diff?doc_1=draft-ietf-netconf-udp-client-server-03&url_2=https://raw.githubusercontent.com/netconf-wg/udp-client-server/master/draft-ietf-netconf-udp-client-server-04.txt

Better this way?

Regarding udp-notif:
- Personally I am not against having a default IANA port for UDP-Notif. I actually asked for it on the -13 iteration.
But from the feedback received on the ML [1] and the last IETF meeting [2], the conclusion was that a port is not needed because an operator already needs to configure the IP address where the collector is located.
I also see the same use case on the NC/RC Call home RFC. Even though a default port is defined, the operator still needs to configure the IP address of the NC client on the network management system...

Regards,
Alex

[1] https://mailarchive.ietf.org/arch/msg/netconf/gP5AApWL0Ha8uey9yIQvBlqOJ7A/
[2] https://datatracker.ietf.org/doc/minutes-120-netconf-202407251630/

> On 10 Sep 2024, at 21:18, Kent Watsen <kent+ietf@watsen.net> wrote:
> 
> Hi Andy,
> 
>>> And here is in the “tcp-client-grouping” grouping:
>>> 
>>>      leaf remote-port {
>>>        type inet:port-number;
>>>        default "0”;                          <--  THIS IS THE LINE BEING CONTESTED 
>>>        description                                    ^— it seems 50/50 if useful, but it doesn’t harm either, does it?
>>>          "The IP port number for the remote peer to establish a
>>>           connection with.  An invalid default value is used
>>>           so that importing modules may 'refine' it with the
>>>           appropriate default port number value.";
>>>      }
>>>      leaf local-port {
>>>        if-feature "local-binding-supported";
>>>        type inet:port-number;
>>>        default "0";                          <—  AND THIS LINE ALSO
>>>        description                                    ^— this seems like a *good* value for all services, e.g., universal behavior
>>>          "The local IP port number to bind to for when connecting
>>>           to the remote peer.  The port number '0', which is the
>>>           default value, indicates that any available local port
>>>           number may be used.";
>>>      }
>>> 
>>> 
>> 
>> 
>> default "0" should be removed.
> 
> Which one?  I assume just the one in “remote-port”, since the one in “local-port” is used.
> 
> 
>> Using zero as a special value to mean "not set"  is a common hack, but not good practice in YANG.
> 
> Okay, I agree.  It’s better for remote-port to not specify a default "0”.
> 
> NEW:
> 
>      leaf remote-port {
>        type inet:port-number;
>        description
>          "The IP port number for the remote peer to establish a
>           connection with.  Importing modules should 'refine' in
>           an appropriate default port number value.";
>      }
> 
> Good?
> 
> PS: I just made this change to my local copy of the tcp-client-server document, and then recompiled to entire suite of client-server documents without error, meaning all examples are still valid.  This is great because it can be a very focused request to RFC Editor.
> 
> K.
> 
> 
>> Andy 
> 
> 
> _______________________________________________
> netconf mailing list -- netconf@ietf.org
> To unsubscribe send an email to netconf-leave@ietf.org