Re: [Netconf] activate-configured-subecription - WGLC subscribed-notifications-16

Martin Bjorklund <mbj@tail-f.com> Wed, 19 September 2018 07:25 UTC

Return-Path: <mbj@tail-f.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 EE548130F89 for <netconf@ietfa.amsl.com>; Wed, 19 Sep 2018 00:25:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 zVOEFM786SEd for <netconf@ietfa.amsl.com>; Wed, 19 Sep 2018 00:25:26 -0700 (PDT)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 36194130F41 for <netconf@ietf.org>; Wed, 19 Sep 2018 00:25:26 -0700 (PDT)
Received: from localhost (unknown [173.38.220.61]) by mail.tail-f.com (Postfix) with ESMTPSA id 3C8711AE02EF; Wed, 19 Sep 2018 09:25:23 +0200 (CEST)
Date: Wed, 19 Sep 2018 09:25:22 +0200
Message-Id: <20180919.092522.1558587282279688362.mbj@tail-f.com>
To: bill.wu@huawei.com
Cc: evoit=40cisco.com@dmarc.ietf.org, douglas@hubler.us, netconf@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <B8F9A780D330094D99AF023C5877DABA9B04B16C@nkgeml513-mbx.china.huawei.com>
References: <CALAkb6cfiFugMpSdU+FUhu9zRsWkXttGRZq80VQtD9kM+wM4bg@mail.gmail.com> <48e4aac958d142669f4032737cdc4373@XCH-RTP-013.cisco.com> <B8F9A780D330094D99AF023C5877DABA9B04B16C@nkgeml513-mbx.china.huawei.com>
X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="utf-8"
Content-Transfer-Encoding: base64
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/RNI_XEIl9k0UvQ6niRe_LTZhDrc>
Subject: Re: [Netconf] activate-configured-subecription - WGLC subscribed-notifications-16
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
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, 19 Sep 2018 07:25:28 -0000

Qin Wu <bill.wu@huawei.com> wrote:
> 
> 发件人: Netconf [mailto:netconf-bounces@ietf.org] 代表 Eric Voit
> (evoit)
> 发送时间: 2018年9月19日 6:44
> 收件人: Douglas Hubler; Martin Bjorklund
> 抄送: netconf@ietf.org
> 主题: Re: [Netconf] activate-configured-subecription - WGLC
> subscribed-notifications-16
> 
> Hi Douglas,
> 
> From: Douglas Hubler, September 18, 2018 5:35 PM
> 
> On Tue, Sep 18, 2018 at 3:40 PM Martin Bjorklund
> <mbj@tail-f.com<mailto:mbj@tail-f.com>> wrote:
> So it seems you support my point to make this draft use SSE.  Then if
> you use HTTP/2 you (the client) can simply create one HTTP/2 stream
> per
> notification stream.  This just falls out for free with HTTP/2.
> 
> yes, with caveat that I haven't attempted actual implementation yet.
> 
> <Eric> Agree that SSE over HTTP2 should work.  However to me using SSE
> here seems redundant as HTTP2 provides the necessary mechanisms.  But
> I won’t get in the way if people really do want to go in this
> direction.
> 
> [Qin]: HTTP2 provides Server Push mechanism however there are lots of
> drawbacks, typical one is Server Push may be blocked, therefore
> HTTP1.1+ SSE is favored.

But HTTP/2 server push doesn't even address the same problem; how to
get a stream of notifs sent from the server to the client.  If I'm not
mistaken, server push could be done w/ the GET of the SSE stream,
so maybe server push could be used to avoid the round trip:

    client                              server
    ------                              ------
      |      establish-subscription    
      |      ------------------------>    |
      |                                   |
      |         OK, location=SSE URL      |
      |      <------------------------    |
      |         PUSH_PROMISE,             |
      |           new stream, SSE URL     |
      |      <------------------------    |
      |           SSE event (notif)       |
      |      <------------------------    |
      |           SSE event (notif)       |
      |      <------------------------    |
      |                                   |
            


/martin