[netmod] Re: [netconf] Re: Re: Default statements on udp-client-server groupings
Alex Huang Feng <alex.huang-feng@insa-lyon.fr> Sun, 22 September 2024 18:54 UTC
Return-Path: <alex.huang-feng@insa-lyon.fr>
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 ACF0EC14F6F4; Sun, 22 Sep 2024 11:54:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.74
X-Spam-Level:
X-Spam-Status: No, score=-4.74 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, RCVD_HELO_IP_MISMATCH=2.368, 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, T_SCC_BODY_TEXT_LINE=-0.01, 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=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 kWZHuLW0b51t; Sun, 22 Sep 2024 11:54:15 -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 DDE0AC151094; Sun, 22 Sep 2024 11:54:11 -0700 (PDT)
Received: from zmtaauth01.partage.renater.fr (zmtaauth01.partage.renater.fr [194.254.240.25]) by smtpout10.partage.renater.fr (Postfix) with ESMTP id 7B19064328; Sun, 22 Sep 2024 20:54:02 +0200 (CEST)
Received: from zmtaauth01.partage.renater.fr (localhost [127.0.0.1]) by zmtaauth01.partage.renater.fr (Postfix) with ESMTPS id 465D0140087; Sun, 22 Sep 2024 20:54:02 +0200 (CEST)
Received: from localhost (localhost [127.0.0.1]) by zmtaauth01.partage.renater.fr (Postfix) with ESMTP id 22842140094; Sun, 22 Sep 2024 20:54:02 +0200 (CEST)
DKIM-Filter: OpenDKIM Filter v2.10.3 zmtaauth01.partage.renater.fr 22842140094
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=insa-lyon.fr; s=CB289C06-95B8-49FE-9C4B-D197C6D2E7CB; t=1727031242; bh=Tc1dlxNDMbs5NZuCRxvPvkfKsRN5pZUJ9NCAZ9XtI5U=; h=Mime-Version:From:Date:Message-Id:To; b=dS9xXcrinFCexvuDxwYrUwHBvri4527HiUROwi79rxmhl6NJpLyzl46rBvIxtVI4h 08+HohzuYQLduEXCY5m/Syokx4qcminKAr0xzMKczcTIgouUwlLpFa0YqOqov/N5t9 cKR4t5avI9D3w56BjGfzEsA4GRIXpn8rDiahDy9kfq7wHHHx7wzhRVesvDlZi+zJHw EcPAV38kVh1UeFmfLhQbUNdR7HkvvGa2ydT6scoIUA1xghb8eZwrYV741HgKyzYRa2 YczKxKbJpSAV/SvvJBSpz3uQef8bs9aUkpJ7/+uHmwo6ToLXiGiAYm4BD7Y9B6mNgp 2SSGhukeIDq7w==
Received: from zmtaauth01.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth01.partage.renater.fr [127.0.0.1]) (amavis, port 10026) with ESMTP id Xv0twqizx2hR; Sun, 22 Sep 2024 20:54:02 +0200 (CEST)
Received: from 176.146.148.215 (unknown [194.254.241.249]) by zmtaauth01.partage.renater.fr (Postfix) with ESMTPA id 44170140087; Sun, 22 Sep 2024 20:54:01 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\))
From: Alex Huang Feng <alex.huang-feng@insa-lyon.fr>
In-Reply-To: <c3b938753966459ba501b2ba75a3128d@swisscom.com>
Date: Sun, 22 Sep 2024 20:53:49 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <89F3E57A-D3F1-4AC9-A419-4D68AC98B7DF@insa-lyon.fr>
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> <D0230B09-8D6B-4615-8C16-ED6BA6AAFDA7@insa-lyon.fr> <01000191fd1bd27b-042e2602-c072-44bf-9342-f38a74086dbb-000000@email.amazonses.com> <CABCOCHRw4Puhm2bNzSbXLsZD1-M+Miw6KypEbk=ENDj+C6xqPg@mail.gmail.com> <0100019202afbee4-44734060-0753-4ea1-b160-11772eda550a-000000@email.amazonses.com> <3dde2b41370c473389221aca2a371c8b@swisscom.com> <010001920ff499e8-e481c2ac-3e6d-4890-a990-f21f7a5d1599-000000@email.amazonses.com> <CABCOCHRGFE4a9PASHXHDxb6E=E59M6-Afp0V8ans9UNS+xxX3A@mail.gmail.com> <01000192103195f3-f453294b-3fad-4ad6-ad4c-365c4f6af7e1-000000@email.amazonses.com> <CABCOCHRvmZqcSOhquMJyqmrsPDRW-yf0M6a=KeoW9od9zUYr6g@mail.gmail.com> <CACvbXWHRL6dQkAb+17N7RCswCQGHn0Yg0YB9U-SUZ5hHSZKmjg@mail.gmail.com> <c3b938753966459ba501b2ba75a3128d@swisscom.com>
To: "Thomas. Graf" <Thomas.Graf@swisscom.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: gggruggvucftvghtrhhoucdtuddrgeeftddrudeljedgudefudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucftgffptefvgfftnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpegtggfuhfgjffevgffkfhfvofesthhqmhdthhdtjeenucfhrhhomheptehlvgigucfjuhgrnhhgucfhvghnghcuoegrlhgvgidrhhhurghnghdqfhgvnhhgsehinhhsrgdqlhihohhnrdhfrheqnecuggftrfgrthhtvghrnhepkefgfffhhefhffekieettedtkeefjeetfeejieeifefghefffeeiieeihffhgfetnecuffhomhgrihhnpehivghtfhdrohhrghenucfkphepudelgedrvdehgedrvdeguddrvdegleenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduleegrddvheegrddvgedurddvgeelpdhhvghlohepudejiedrudegiedrudegkedrvdduhedpmhgrihhlfhhrohhmpegrlhgvgidrhhhurghnghdqfhgvnhhgsehinhhsrgdqlhihohhnrdhfrhdpnhgspghrtghpthhtohepjedprhgtphhtthhopefvhhhomhgrshdrifhrrghfsehsfihishhstghomhdrtghomhdprhgtphhtthhopehpvghrrdhivghtfhesihhonhhiohdrshgvpdhrtghpthhtoheprghnugihseihuhhmrgifohhrkhhsrdgtohhmpdhrtghpthhtohepkhgvnhhtodhivghtfhesfigrthhsvghnrdhnvghtpdhrtghpthhtohepnhgvthgt ohhnfhesihgvthhfrdhorhhgpdhrtghpthhtohepughrrghfthdqihgvthhfqdhnvghttghonhhfqdhuughpqdgtlhhivghnthdqshgvrhhvvghrrdgruhhthhhorhhssehivghtfhdrohhrghdprhgtphhtthhopehnvghtmhhougesihgvthhfrdhorhhg
Message-ID-Hash: AAJK57A3DBCC74HDOAGNI2T4MX4J4BRA
X-Message-ID-Hash: AAJK57A3DBCC74HDOAGNI2T4MX4J4BRA
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-netmod.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: kent+ietf@watsen.net, netconf@ietf.org, draft-ietf-netconf-udp-client-server.authors@ietf.org, netmod@ietf.org
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [netmod] Re: [netconf] Re: Re: Default statements on udp-client-server groupings
List-Id: NETMOD WG list <netmod.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/IUUQ43nDhnwCYnU4QfRqR8NB-aA>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Owner: <mailto:netmod-owner@ietf.org>
List-Post: <mailto:netmod@ietf.org>
List-Subscribe: <mailto:netmod-join@ietf.org>
List-Unsubscribe: <mailto:netmod-leave@ietf.org>
Dear all, I agree with Per and Andy. On the client, I think the default statement from the remote-port should be removed. Consumers of this grouping should have the choice of deciding whether this port has a default statement or should be ‘mandatory’ to set. Regarding the local-port, personally I would also remove the default statement, but I can live with it if we set default 0. The text says that any port is used and I agree with Per that it is what usually happens. (I am not sure if there are use cases where the local-port needs to be mandatory to set. In this case we would leave these users out.) On the server, I would remove the default statement for the local port. I think it should be the consumer of the grouping who defines the default value instead of refining it. Also, it would allow consumers of this grouping to set mandatory statements when using this grouping. Regarding draft-ietf-netmod-rfc8407bis, I think section 4.13 already covers this use case. So the draft does not need any change. Regards, Alex > On 22 Sep 2024, at 15:27, Thomas.Graf@swisscom.com wrote: > > Dear Per, Kent, Andy, Tom and Alex, > >> A client normally does this, and this is explained in the text for ietf-tcp-client.yang > > Exactly. > >> If the default "0" is not refined by when the grouping is used, a server might by mistake listen to a random port. I don't know if this would be an issue in practice though, one would hope that this minimal smoke test is performed before releasing a YANG module that uses the grouping. > > Agree, I thinks that’s the only point we need to align here and move forward from there. > > As previously voiced, I think it would make sense to adjust the re-useable grouping section in https://datatracker.ietf.org/doc/html/draft-ietf-netmod-rfc8407bis-16#section-4.13 with the conclusion of this discussion if necessary. In particular the follow statement: > > "Do not include a "default" substatement on a leaf or choice unless the value applies on all possible contexts." > > Either we follow the guidance and remove the default statement from the tcp-client-server grouping for local-port since in the case where the grouping is used as server, the default statement should be removed. Or we remark that the server/client application using the grouping must define the local resp. remote-port. > > My opinion: follow draft-ietf-netmod-rfc8407bis-16#section-4.13 and refrain from using local and remote-port in reusable groupings since it does not apply in all possible contexts. Not acceptable is that udp/tcp-client-server groupings are not aligned with draft-ietf-netmod-rfc8407bis-16#section-4.13 guidance. > > Best wishes > Thomas > > -----Original Message----- > From: Per Andersson <per.ietf@ionio.se> > Sent: Sunday, September 22, 2024 3:21 AM > To: Andy Bierman <andy@yumaworks.com> > Cc: Kent Watsen <kent+ietf@watsen.net>; Graf Thomas, INI-NET-VNC-HCS <Thomas.Graf@swisscom.com>; netconf@ietf.org; draft-ietf-netconf-udp-client-server.authors@ietf.org; netmod@ietf.org > Subject: Re: [netconf] Re: [netmod] Re: Default statements on udp-client-server groupings > > > Be aware: This is an external email. > > > > Hi! > > I might have missed significant parts of the discussion, if so please correct me. > > > On Fri, Sep 20, 2024 at 4:19 PM Andy Bierman <andy@yumaworks.com> wrote: >> >> >> >> On Fri, Sep 20, 2024 at 9:08 AM Kent Watsen <kent+ietf@watsen.net> wrote: >>> >>> >>> Let me clarify, I’m trying to close the "default 0” statement on the "local-port” leafs issue. Whether rfc8407bis is updated is a secondary concern. >>> >>> Andy (and others), do you believe this (to never set “default” or “mandatory”) to be a best-practice for reusable groupings? Or more specifically and better for me, do you think the "default 0” statement on the "local-port” leafs is okay or should be removed (in the tcl-client-server draft)? >>> >> >> In this case, default 0 meant use whatever port you want. >> IMO that is a bad practice and should never be done. > > A client normally does this, and this is explained in the text for ietf-tcp-client.yang: > > leaf local-port { > if-feature "local-binding-supported"; > type inet:port-number; > default "0"; > description > "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."; > } > > I think this is fine. > > For remote-port in tcp-client it should be removed IMHO. There is no reason to mandate every TCP client to set a default value for the remote port. > > >> In this case, the default is for an application well-known port >> assignment, so the groupings for the application should set the default port. > > For server, I lean towards agreeing with Andy here. > > If the default "0" is not refined by when the grouping is used, a server might by mistake listen to a random port. I don't know if this would be an issue in practice though, one would hope that this minimal smoke test is performed before releasing a YANG module that uses the grouping. > > > -- > Per > _______________________________________________ > netmod mailing list -- netmod@ietf.org > To unsubscribe send an email to netmod-leave@ietf.org
- [netmod] Re: [netconf] Re: Default statements on … Thomas.Graf
- [netmod] Re: [netconf] Re: Default statements on … Kent Watsen
- [netmod] Re: [netconf] Re: Default statements on … Andy Bierman
- [netmod] Re: [netconf] Re: Default statements on … Kent Watsen
- [netmod] Re: [netconf] Re: Default statements on … Andy Bierman
- [netmod] Re: [netconf] Re: Re: Default statements… Per Andersson
- [netmod] Re: [netconf] Re: Re: Default statements… Thomas.Graf
- [netmod] Re: [netconf] Re: Re: Default statements… tom petch
- [netmod] Re: [netconf] Re: Re: Default statements… Alex Huang Feng