Re: [netconf] Configured receiver capability exchange

Mahesh Jethanandani <mjethanandani@gmail.com> Tue, 28 January 2020 00:01 UTC

Return-Path: <mjethanandani@gmail.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 927973A1125 for <netconf@ietfa.amsl.com>; Mon, 27 Jan 2020 16:01:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 o8UMkIMt7ohX for <netconf@ietfa.amsl.com>; Mon, 27 Jan 2020 16:01:24 -0800 (PST)
Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 596E63A1124 for <netconf@ietf.org>; Mon, 27 Jan 2020 16:01:24 -0800 (PST)
Received: by mail-pj1-x102e.google.com with SMTP id m13so193440pjb.2 for <netconf@ietf.org>; Mon, 27 Jan 2020 16:01:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=/DyB0iFYYDTAYW28pbjrdqM56Czc/FA1zMqz3SnnH78=; b=WR3VqtW4ziyzX4rf4niyztoEIo5A68cDglWRJ/6HCYaZyvqjcQDPfa6Lwq5ysfcK/k BwsGrYxsH+xdb6to4CijwYbGWXTISQhpGZSAp+Lk357a9DU11SzrImTwMwWeXJ+k+ShY ddG2GCfA/t35kflApcnb+sjHe+y65oiYJ+6qy6S+Ohn4XXXqfu4uXu4J4+99SrC33eju PiVXcDpd8Zt/4zYQ1ekeovw4NcuVPvbV4XWheQBEf3U7sPt6kP4BSieGP9a1pMJsyY/8 6ejyBCrxB0vj9cHBGXa8LWqnVJ980gQMicu7lDKIK7v3jp8AWSXakaJ6EkbaXtA0QtOD 4zWw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=/DyB0iFYYDTAYW28pbjrdqM56Czc/FA1zMqz3SnnH78=; b=uSlc31Vtx6RlFBk0jz34khFAAcguAItI6re2bKz4ptm+LinCrUfyuCga0gQ7DAJuMj 2Wh3NtCINpkDrM3uxB7cyxGrlPtBrxbWO0xPJA+icqRpF66z19uwXlc/y/frLpKDkuGX QQwJUK/KFQC7sXSFofgi55P642ste03+L6lbKDZgtlkeRZkY2kq3Zg3EpYl2T/PjrX/g +RMIzBdPgpUrRhxj+XyhRgSqPwp4tHaZEGZro6PROraMYn2xKT/EC1y5vaNiEbi37YWA J5ahtAC7N4GcPzNksJaaeAYu2pTFduIBDnN8jqpSiRmBruOsB7gWEKnm+89EMKSZlDB8 +Pew==
X-Gm-Message-State: APjAAAU7JCB4KdlYRLW5+FqZCra5Fjo+EA4mUrEoYI1luEy2eorjAFM0 8PnNqVfPgB2FrmZAmyFIxOo=
X-Google-Smtp-Source: APXvYqxUqSRgsx4wEyI9FUvkOPcVSfv5lEZ9XF8aAinXYusXprqtHhM81kSLWv/CZaD2+DjIgAD81g==
X-Received: by 2002:a17:90a:2e84:: with SMTP id r4mr1406425pjd.64.1580169683684; Mon, 27 Jan 2020 16:01:23 -0800 (PST)
Received: from [10.33.123.108] ([66.170.99.1]) by smtp.gmail.com with ESMTPSA id a2sm17320393pgv.64.2020.01.27.16.01.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jan 2020 16:01:22 -0800 (PST)
From: Mahesh Jethanandani <mjethanandani@gmail.com>
Message-Id: <7AC4C9BC-A743-494E-B6B5-BDCECD17FA2D@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_E157E7B8-0A73-467D-8A84-81EA1B7476CC"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
Date: Mon, 27 Jan 2020 16:01:21 -0800
In-Reply-To: <VI1PR07MB40470BE1301037BFF3996308F0310@VI1PR07MB4047.eurprd07.prod.outlook.com>
Cc: "Eric Voit (evoit)" <evoit@cisco.com>, "netconf@ietf.org" <netconf@ietf.org>
To: Balázs Lengyel <balazs.lengyel@ericsson.com>
References: <BYAPR11MB25368EF3AFE9E2CBF396B8D0A1370@BYAPR11MB2536.namprd11.prod.outlook.com> <VI1PR07MB40470BE1301037BFF3996308F0310@VI1PR07MB4047.eurprd07.prod.outlook.com>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/iH6FL746mYZsZVpYj7rqz_J1tGM>
Subject: Re: [netconf] Configured receiver capability exchange
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
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: Tue, 28 Jan 2020 00:01:27 -0000

Hi Balazs,

It is clear that the WG does not want to fixed to a single type of encoding for notifications, particularly since the desired one, e.g. binary encoding, is not widely deployed. If the capability has to be discovered as it is incrementally deployed, I do not see how one can avoid a roundtrip, whether it is Eric’s suggestion on <subscription-started> or our suggestion on doing a GET. You could cache on the receiver capabilities to avoid discovery, but that will lead into not discovering capabilities till that cache is timed-out.

Cheers.

> On Jan 17, 2020, at 4:27 AM, Balázs Lengyel <balazs.lengyel@ericsson.com> wrote:
> 
> Hello,
> I would like a discovery mechanism that does not include a mandatory additional message roundtrip. 
>  
> Most of the times the subscriber will be aware of the receivers capabilities, in these cases so discovery is not needed; so don’t add overhead.
>  
> Customers also indicated that they anticipate that TCP/TLS will often be used only for a few notifications broken down and later reestablished so any overhead we add will be added for each (many) session setup. 
>  
> Regards Balazs
>  
> From: netconf <netconf-bounces@ietf.org> On Behalf Of Eric Voit (evoit)
> Sent: 2020. január 15., szerda 21:23
> To: Mahesh Jethanandani <mjethanandani@gmail.com>
> Cc: netconf@ietf.org
> Subject: [netconf] Configured receiver capability exchange
>  
> Hi Mahesh,
>  
> During the IETF 106 session, there was discussion on how both a publisher might know if there is receiver support for draft-ietf-netconf-notification-messages <https://datatracker.ietf.org/doc/draft-ietf-netconf-notification-messages/?include_text=1>.  Section 6 highlights several of the considerations.   Relevant are the following:
>  
> (a) Remote device capability discovery from the point of view of the Publisher needs to be enhanced to know if the far end can interpret notification messages type beyond RFC-5277, Section 4.
>  
> (b) This capability discovery question is relevant for both configured subscription receivers and dynamic subscribers.  
>  
> (c) The capability discovery question can be generalized beyond subscriptions, as there are many reasons to know the available capabilities of the far end.   
>  
> (d) Capability discovery advertisement has traditionally been discussed within transport documents (e.g. RFC-6241 Section 8.1).   
>  
>  
> Based on (a)-(d), coming up with a transport independent point-solution within draft-ietf-netconf-notification-messages <https://datatracker.ietf.org/doc/draft-ietf-netconf-notification-messages/?include_text=1> *just* to discover this single element of client functionality seems overkill/heavyweight.
>  
> I was fine with letting this remote capabilities discovery question sit for a while.   However draft-ietf-netconf-https-notif <https://tools.ietf.org/html/draft-ietf-netconf-https-notif-01> shows that we now must address this question.  Specifically should the diagram section 1.4.1 show this capability exchange?  
>  
> It turns out that independent of draft-ietf-netconf-notification-messages, there several questions in draft-ietf-netconf-https-notif which need to be answered prior to the section 1.4.1 arrow: "Send HTTPS POST message with YANG defined notification #1" anyway.  These questions are:
>   (1) Does the targeted HTTPS receiver support configured subscriptions?
>   (2) Can the targeted HTTP@ receiver accept a new subscription as described in a <subscription-started>?
> Only if these questions are "yes", should the <subscription-started> be responded to with an "OK".
>  
> Add to this a third question driven from (a)-(d):
>   (3) Does the receiver support the message type within "draft-ietf-netconf-notification-messages"?
>  
> A strawman way to handle the all three questions within draft-ietf-netconf-https-notif would be to respond to a <subscription-started> notification with an HTTP Status 202 (Accepted)" acknowledgement.  This 202 would include body elements listing supported receiver resources.  Maybe something YANG encoded via ietf-yang-structure-ext containing:
>  
>       <foo xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
>         <capabilities>
>           <capability>
>             urn:ietf:params:xml:ns:yang:ietf-notification-messages:1.0
>           </capability>
>         </capabilities>
>       </foo>
>  
> What do you think of this approach?
>  
> Eric

Mahesh Jethanandani
mjethanandani@gmail.com