Re: [Netconf] HTTP2 configured subscriptions, is RESTCONF call home necessary? (was RE: Anyone want just Configured Subscriptions?)

Andy Bierman <andy@yumaworks.com> Wed, 11 July 2018 00:14 UTC

Return-Path: <andy@yumaworks.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 2D7F51311F4 for <netconf@ietfa.amsl.com>; Tue, 10 Jul 2018 17:14:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.909
X-Spam-Level:
X-Spam-Status: No, score=-1.909 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 QVjzuBO8H68a for <netconf@ietfa.amsl.com>; Tue, 10 Jul 2018 17:14:18 -0700 (PDT)
Received: from mail-lf0-x22b.google.com (mail-lf0-x22b.google.com [IPv6:2a00:1450:4010:c07::22b]) (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 0134F130DD8 for <netconf@ietf.org>; Tue, 10 Jul 2018 17:14:17 -0700 (PDT)
Received: by mail-lf0-x22b.google.com with SMTP id a4-v6so19798674lff.5 for <netconf@ietf.org>; Tue, 10 Jul 2018 17:14:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=rIBaAZJB58+1+OO42qSZevi8s+FVpY43d+ya8UJ6HUE=; b=WyTaARIkBJYc8yBob3T8siOexFpOiYRR36HGFUroCHSiE/JRKFtQ0cKWqGzpVLG2Mi cckKWZIrBTqzn+gqWBT4ljkW+vtQwSbK2DnkJky6fs88j/0zD1sdttPC/jm+wyLGZMQr PipR0qrztSdoPd8stYL3FFZGul3EMSy5+7DRYwJA8HANDcDKjgIjT5bOiOs9lE484sA0 xiQj+zlUZMAWxMfQA8JTV1x8/tU5puqVP4CPj92voi1ofXJmA/PqljyQNS7DVGhprtm9 71eoPMSH4nywNHzY0dDXY0hWB2qaDfnKXPSmOItf5YoNHEoknEpwRMWNeVQrTwwF2f2q usBg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=rIBaAZJB58+1+OO42qSZevi8s+FVpY43d+ya8UJ6HUE=; b=EUixwL/yiZa6dEhJBqi6z93czJJR7dOsuAoKHz1DDx/j/1ET69G+RyRiN2/DIl7YRd 0Gkp412J9fD2hwqP7ZGeJyNkxzEOpdpaaRE/arwLhqEeX2MW6qB7fFmu8LbpvsAq26d+ 2cw0W9F7gfMlUgwmB5vdGQqvv9C4l4wM+OJgYT9SqnUldoYAgm5AB4KQbvhdPtAqqsBy /CuS+Tz88BDDxwyA7+cd3MoKqYkm8oG4eXWq1HxTMMb8I2VXyJVfcBcbExAezjDiuBW4 /tTlMrfuPjS6b/6LE/b+WkmHEYR/bdpVoF/HnNZMnEyJGVERW9MB0oDxM/YZ+L5wytoZ /PoA==
X-Gm-Message-State: APt69E0QYwlxDDtDWH+/AJuwikG+24+rv8XEMxSy/2EVUvP/rSJFOTgI mptBJH2A+FcD8uRS5RRnMXWPEWAiLlSkJoUs5F2EMA==
X-Google-Smtp-Source: AAOMgpeuxvR+cjzh5IrpSUOD9bHeOzB4AKjPnXi1jq4ywjVurp7ZXy1a+6I1dlEH97agJMC4tjn2833NWbtlDZGr5Ks=
X-Received: by 2002:a19:518a:: with SMTP id g10-v6mr4095241lfl.78.1531268056255; Tue, 10 Jul 2018 17:14:16 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a19:aa46:0:0:0:0:0 with HTTP; Tue, 10 Jul 2018 17:14:15 -0700 (PDT)
In-Reply-To: <97940484f3cb4ea8bbd2cd76bc46f764@XCH-RTP-013.cisco.com>
References: <97940484f3cb4ea8bbd2cd76bc46f764@XCH-RTP-013.cisco.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Tue, 10 Jul 2018 17:14:15 -0700
Message-ID: <CABCOCHS52CWwLugr_QK+Y5vFOqPGLbG10T3+zQYzVH=RozmBhw@mail.gmail.com>
To: "Eric Voit (evoit)" <evoit=40cisco.com@dmarc.ietf.org>
Cc: Kent Watsen <kwatsen@juniper.net>, Lou Berger <lberger@labn.net>, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Netconf <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000008ca44a0570ae2003"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/ajeM3dud61K-zJBuvNrmINbn7dk>
Subject: Re: [Netconf] HTTP2 configured subscriptions, is RESTCONF call home necessary? (was RE: Anyone want just Configured Subscriptions?)
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.27
Precedence: list
List-Id: Network Configuration WG mailing 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: Wed, 11 Jul 2018 00:14:22 -0000

On Tue, Jul 10, 2018 at 4:52 PM, Eric Voit (evoit) <
evoit=40cisco.com@dmarc.ietf.org> wrote:

> Changing the thread title, as we have moved off the original topic...
>
> > From: Kent Watsen, July 10, 2018 6:36 PM
> >
>
> Adding back in Lou's comment before mine to provide the context needed to
> understand my answer...
>
> >>> (Lou) or an an error when an unsolicited notification is received by a
> client that doesn't support it.  (optimizing for what I think suspect will
> be the common case in the long term...)
>
> > > Effectively this is what draft-ietf-netconf-restconf-notif, section
> > > 4.2 defines now.  A successful POST of a "subscription-started"
> > > notification must occur before events are sent.  Failure to receiver
> > > an OK for the POST means an error to the publisher.
> >
> > But if we use RESTCONF Call Home, the receiver is the HTTP-client, can
> an HTTP
> > client process a POST?
>
> Considering Lou's comment, my response points out that a receiver must
> "OK" a "subscription-started" before the publisher can send events.  In
> this case the publisher is the HTTP2 client.  Otherwise there is an error.
>
> Since there is no RESTCONF is needed at all for configured subscriptions,
> the function draft-ietf-netconf-restconf-notif needs to include is the
> safe establishment of a secure tunnel between Publisher (HTTP2 client) and
> Receiver (HTTP2 server).  Perhaps Call Home is not necessary at all here,
> and perhaps it is always safe for the publisher to initiate the encrypted
> tunnel.  We can debate the pros/cons of each scenario for sure.  Perhaps
> Call Home simply isn't needed here.  And that would be excellent.  My
> understanding is that Call Home does provide some protections here, so I
> left RESTCONF call-home in to spur this debate.
>
> Assuming that someone does want call-home for configured subscription
> encrypted tunnel establishment, steps C1-C7 of RFC8071 remain the same.  It
> is just step C8 which changes so that a receiver starts to listening for
> the POST of notifications to its HTTP server rather than starting
> RESTCONF.   Likewise Steps S1-S5 and S7 of RFC8071 remain the same.  The
> only difference would be that step S6 initiates an HTTP2 client connection
> towards the receiver, and then POSTs a "subscription-started"
> notification.  These specifics absolutely do need to be in
> draft-ietf-netconf-restconf-notif.  They are not yet as I was awaiting
> this discussion first.
>
> > > Some form of RESTCONF Call Home with capability advertisement could
> > > also occur before the "subscription-started" POST.  However, this
> > > advertisement of client capabilities might not be needed for all
> > implementations.
> >
> > I don't know how.  RESTCONF Call Home just starts the RESTCONF protocol,
> > and there is no capability-exchange in RESTCONF.
>
> I could have worded this better.  What I meant is that outside the current
> scope of draft-ietf-netconf-restconf-notif, some TBD exchange of receiver
> capabilities could be defined.  This would let the publisher know that
> sending a "subscription-started" is supported.   I don't believe this
> necessary/essential here, as you won't start pushing events until the
> receiver says "OK".
>
>
It is very expensive to implement both HTTP client and server roles in both
peers.
IMO the existing RESTCONF SSE notifications need to be supported.

I am concerned that not enough reviews of configured notifications
are being done because it is a low priority for many vendors.
It is clearly redundant if CallHome is used, but potentially useful for
binary push and line-card push (UDP or TCP).

It is hard to say if the correct pieces are being defined now to support
fancy binary push standards later.


Eric
>

Andy


>
> > Kent // contributor
> >
>
> _______________________________________________
> Netconf mailing list
> Netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf
>