[netmod] Re: [netconf] Re: Re: Default statements on udp-client-server groupings
Thomas.Graf@swisscom.com Sun, 22 September 2024 13:28 UTC
Return-Path: <Thomas.Graf@swisscom.com>
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 C6E31C14F5E4; Sun, 22 Sep 2024 06:28:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.106
X-Spam-Level:
X-Spam-Status: No, score=-7.106 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_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_NONE=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=swisscom.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 7LnNhKVENdg7; Sun, 22 Sep 2024 06:27:58 -0700 (PDT)
Received: from mail.swisscom.com (mailout120.swisscom.com [138.188.166.120]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8A2D6C14F5E2; Sun, 22 Sep 2024 06:27:56 -0700 (PDT)
Received: by mail.swisscom.com; Sun, 22 Sep 2024 15:27:53 +0200
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=swisscom.com; s=iscm; t=1727011673; bh=3m8hHaO/cbmhyBQcoqUp5FJiWrC4ZGgdqgjI1jHrTS0=; h=From:To:CC:Subject:Date:References:In-Reply-To; b=cq35i2SmDUsbocX8+WDkFMeUwVvWvtnO+jfC8Fu1jhFUHFNwssCMk/yXAC0voZ3HP 9Ms2EMSLvFWXDwktIg6Uv8pQhTfVFZz35ROaNDIPO9X3LYGwlHU4JMmYg607LONI6d 003JmqZFzkkxEQOHvwTC7q5lc5/iMZs0EnfwKiUKt7npNrusdeHd18Fs6TuOzxgROg ZwtWkwwoT3bRF3Luy36y6AHlVu5h49IA3osb707gl299rdwTr7gtTnnz9lfN+AbxFA lf9Cq6a5qtPnibrKqZF1E/D7Ecfpy0MEGGO38X6CzElYpP4ta5Bz5RpfEv/GzEgsNN Oqclahl7Rta7A==
MIME-Version: 1.0
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-256"; boundary="----=_Part_790261_196023255.1727011673064"
From: Thomas.Graf@swisscom.com
To: per.ietf@ionio.se, andy@yumaworks.com
Thread-Topic: [netconf] Re: [netmod] Re: Default statements on udp-client-server groupings
Thread-Index: AQHbDI3ClAx417KpCEGFb2h7GMTNs7JjxxWQ
Date: Sun, 22 Sep 2024 13:27:50 +0000
Message-ID: <c3b938753966459ba501b2ba75a3128d@swisscom.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> <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>
In-Reply-To: <CACvbXWHRL6dQkAb+17N7RCswCQGHn0Yg0YB9U-SUZ5hHSZKmjg@mail.gmail.com>
Accept-Language: en-US, de-CH
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels: MSIP_Label_2e1fccfb-80ca-4fe1-a574-1516544edb53_ActionId=02ea7706-04bc-42fa-8dca-c5103838e412;MSIP_Label_2e1fccfb-80ca-4fe1-a574-1516544edb53_ContentBits=0;MSIP_Label_2e1fccfb-80ca-4fe1-a574-1516544edb53_Enabled=true;MSIP_Label_2e1fccfb-80ca-4fe1-a574-1516544edb53_Method=Standard;MSIP_Label_2e1fccfb-80ca-4fe1-a574-1516544edb53_Name=C2 Internal;MSIP_Label_2e1fccfb-80ca-4fe1-a574-1516544edb53_SetDate=2024-09-22T13:05:28Z;MSIP_Label_2e1fccfb-80ca-4fe1-a574-1516544edb53_SiteId=364e5b87-c1c7-420d-9bee-c35d19b557a1;
x-originating-ip: [138.188.161.184]
X-CFilter-Loop: Reflected
X-Mailer: Totemo_TrustMail_(Notification)
X-Trustmail: processed
Message-ID-Hash: FQH634VIGZLCE35GNMOE6AWCORYKWUW5
X-Message-ID-Hash: FQH634VIGZLCE35GNMOE6AWCORYKWUW5
X-MailFrom: Thomas.Graf@swisscom.com
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/vcbjilK-zZHV4iyOS9f7BPcG3EM>
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 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] 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