Re: [netconf] draft-ietf-netconf-udp-notif-10

Tianran Zhou <zhoutianran@huawei.com> Mon, 07 August 2023 06:34 UTC

Return-Path: <zhoutianran@huawei.com>
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 9FB07C151097 for <netconf@ietfa.amsl.com>; Sun, 6 Aug 2023 23:34:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.205
X-Spam-Level:
X-Spam-Status: No, score=-4.205 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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
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 hBri-x9SToUN for <netconf@ietfa.amsl.com>; Sun, 6 Aug 2023 23:34:43 -0700 (PDT)
Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BE922C14CEFE for <netconf@ietf.org>; Sun, 6 Aug 2023 23:34:42 -0700 (PDT)
Received: from lhrpeml100001.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4RK6092pjcz67FnC for <netconf@ietf.org>; Mon, 7 Aug 2023 14:31:05 +0800 (CST)
Received: from kwepemi500012.china.huawei.com (7.221.188.12) by lhrpeml100001.china.huawei.com (7.191.160.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Mon, 7 Aug 2023 07:34:38 +0100
Received: from kwepemi500012.china.huawei.com (7.221.188.12) by kwepemi500012.china.huawei.com (7.221.188.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Mon, 7 Aug 2023 14:34:37 +0800
Received: from kwepemi500012.china.huawei.com ([7.221.188.12]) by kwepemi500012.china.huawei.com ([7.221.188.12]) with mapi id 15.01.2507.027; Mon, 7 Aug 2023 14:34:37 +0800
From: Tianran Zhou <zhoutianran@huawei.com>
To: Jürgen Schönwälder <jschoenwaelder@constructor.university>
CC: netconf <netconf@ietf.org>
Thread-Topic: [netconf] draft-ietf-netconf-udp-notif-10
Thread-Index: AdnIDrztyN+yiW36c02ia/XEL5h3yf//y7MA//4nL1A=
Date: Mon, 07 Aug 2023 06:34:36 +0000
Message-ID: <04cb53fc90f84bf4b23acd598eefaf1c@huawei.com>
References: <e2e898680f2b40a78b7d8854ca5fee4f@huawei.com> <wd6kzin4foik2dimypz67ziqya7lhbs3rzk7t4gp6jic77kxb3@6pvkir2sivsn>
In-Reply-To: <wd6kzin4foik2dimypz67ziqya7lhbs3rzk7t4gp6jic77kxb3@6pvkir2sivsn>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.112.40.118]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/5rXjgXo9nEaIlfrKWuZTOZLo4GA>
Subject: Re: [netconf] draft-ietf-netconf-udp-notif-10
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 07 Aug 2023 06:34:47 -0000

Hi Jurgen,

I am sorry. Please see inline.

Best,
Tianran

-----Original Message-----
From: Jürgen Schönwälder [mailto:jschoenwaelder@constructor.university] 
Sent: Sunday, August 6, 2023 3:29 PM
To: Tianran Zhou <zhoutianran@huawei.com>
Cc: netconf <netconf@ietf.org>
Subject: Re: [netconf] draft-ietf-netconf-udp-notif-10

Well, I asked a bunch of questions...

/js

On Sun, Aug 06, 2023 at 02:36:50AM +0000, Tianran Zhou wrote:
> Hi Jurgen,
> 
> IMO, your suggestion makes sense.
> 
> Best,
> Tianran
> 
> -----邮件原件-----
> 发件人: Jürgen Schönwälder <jschoenwaelder@constructor.university>
> 发送时间: 2023年8月5日 17:49
> 收件人: Tianran Zhou <zhoutianran@huawei.com>
> 抄送: netconf <netconf@ietf.org>
> 主题: Re: [netconf] draft-ietf-netconf-udp-notif-10
> 
> The abstract says:
> 
>    The objective is to provide a lightweight approach to enable higher
>    frequency and less performance impact on publisher and receiver
>    processes compared to already established notification mechanisms.
> 
> It is not clear what 'performance impact' means here. Anyway, is there a proof that this design accomplishes the objective and how much is the gain over a transport that does segmentation properly, e.g., TCP?

ZTR> There is no such proof from my side. I am not sure if there is any from coauthors.
 
> If you worry about CPU efficiency, the first things to consider is likely using a binary encoding. 

ZTR> Yes. To support the binary encoding is one motivation. Specifically, the UDP notif can support CBOR and gpb. 

> Or is the argument that linecards still can't do TCP in 2023 and 'performce' means code size on linecards, saving TCP but instead implementing ad-hoc fragmentations in application-layer transports? UDP works great for small self-contained messages (and with small I mean something up to the size of a typical MTU). For everything requiring larger messages, you will have to invent a fragmentation and reassembly logic that may at the end be in the same ballpark as a light-weight TCP implementation.

ZTR> I cannot speak for all if linecard can do tcp or not. But at least it's not cost-effective.  I think Andy has raised some useful points. Customized UDP extensions is useful for YANG Push application. 
 
> Has this work ever been received review by transport area people?

ZTR> No. I think an early review from transport area would be very helpful.

> To answer your question, there likely should be a 'do not use this'
> recommendation unless you have full control of all components involved (i.e., inside a box where the frontend NC/RC agent can ensure that requests from the outside are mapped to internal communication flows that stay within the operational limits of this transport).

ZTR> IMO,  your suggestion makes sense.

> /js
> 
> On Sat, Aug 05, 2023 at 09:21:45AM +0000, Tianran Zhou wrote:
> > Hi Juergen,
> > 
> > What’s your suggestion here?
> > How about describing this as operational considerations?
> > 
> > Cheers,
> > Tianran
> > 
> > 
> > 
> > ________________________________
> > 
> > Sent from WeLink
> > 发件人: Jürgen
> > Schönwälder<jschoenwaelder@constructor.university<mailto:jschoenwael
> > de
> > r@constructor.university>>
> > 收件人: Tianran
> > Zhou<zhoutianran@huawei.com<mailto:zhoutianran@huawei.com>>
> > 抄送: Tschofenig,
> > Hannes<hannes.tschofenig@siemens.com<mailto:hannes.tschofenig@siemens.
> > com>>;netconf<netconf@ietf.org<mailto:netconf@ietf.org>>
> > 主题: Re: [netconf] draft-ietf-netconf-udp-notif-10
> > 时间: 2023-08-05 14:49:42
> > 
> > On Sat, Aug 05, 2023 at 06:26:50AM +0000, Tianran Zhou wrote:
> > >
> > > Of course, with so many fragments the probability of discarding the entire message due to the lost of one or more UDP packets is large even if the probability of loss of an individual datagram is very small. I hope you are not going to need so many fragments in a practical application.
> > >
> > > ZTR> I understand your point. I agree in a practical application, too large msg should not be encouraged. But the size of the message is requested by the users. Fragmentation will not introduce more loss itself. It just provide the possibility that user can request larger message.
> > >
> > 
> > If the probability of loosing a UDP datagram is 0.1% and you need
> > 100 UDP datagrams to send a larger NETCONF message, then the loss 
> > probability for the NETCONF message is close to 10%. Yes, your 
> > fragmentation scheme does not change the loss probability of UDP 
> > datagrams but the fact that all datagrams need to arrive correctly 
> > in order to deliver the NETCONF message causes the loss probability 
> > of NETCONF messages to go up quickly as the number of fragments 
> > increases. The question is whether 'the requesting users' (who is
> > that?) can be assumed to understand the details and that there is 
> > somewhere (internal?) a UDP transport involved that has possible 
> > message size sclability problems.
> > 
> > /js
> > 
> > --
> > Jürgen Schönwälder              Constructor University Bremen gGmbH
> > Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> > Fax:   +49 421 200 3103         <https://constructor.university/>
> > 
> 
> -- 
> Jürgen Schönwälder              Constructor University Bremen gGmbH
> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> Fax:   +49 421 200 3103         <https://constructor.university/>
> 

-- 
Jürgen Schönwälder              Constructor University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <https://constructor.university/>