Re: [core] PubSub - Questions round 1

Ari Keränen <ari.keranen@ericsson.com> Mon, 19 March 2018 19:25 UTC

Return-Path: <ari.keranen@ericsson.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2A91912025C for <core@ietfa.amsl.com>; Mon, 19 Mar 2018 12:25:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.32
X-Spam-Level:
X-Spam-Status: No, score=-4.32 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.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 MpuHwdrvJUyj for <core@ietfa.amsl.com>; Mon, 19 Mar 2018 12:25:18 -0700 (PDT)
Received: from sessmg22.ericsson.net (sessmg22.ericsson.net [193.180.251.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 137D1124D6C for <core@ietf.org>; Mon, 19 Mar 2018 12:25:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/simple; q=dns/txt; i=@ericsson.com; t=1521487516; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=ZojW9TVZ7wnVMBkwdO+TlUsoGK5LtyU5w9cFebk/cRY=; b=OpXJPsZMg7LJIEQ6VSP21rV3nlnzN3Nq6q0KxAsoTkC8y9tB5h8nju4/rB45iWUP WlShk+X7PpT9ZAhNfPa53bqQDGUrYF4vf39MZqU7dyUfJW9LrLHpnu3WNjSoRA2b RVr/wASa0OGek1/N2QVE2BVRNi0RJBtSY3s6go0HuqQ=;
X-AuditID: c1b4fb3a-347ff700000067b4-b7-5ab00e9c64c7
Received: from ESESSHC005.ericsson.se (Unknown_Domain [153.88.183.33]) by sessmg22.ericsson.net (Symantec Mail Security) with SMTP id 76.79.26548.C9E00BA5; Mon, 19 Mar 2018 20:25:16 +0100 (CET)
Received: from ESESSMB109.ericsson.se ([169.254.9.172]) by ESESSHC005.ericsson.se ([153.88.183.33]) with mapi id 14.03.0382.000; Mon, 19 Mar 2018 20:25:15 +0100
From: Ari Keränen <ari.keranen@ericsson.com>
To: Jim Schaad <ietf@augustcellars.com>
CC: core <core@ietf.org>, "draft-ietf-core-coap-pubsub@ietf.org" <draft-ietf-core-coap-pubsub@ietf.org>
Thread-Topic: PubSub - Questions round 1
Thread-Index: AdMtDUO/Se0FaC9oQ8e7prarOw47xiSolvAA
Date: Mon, 19 Mar 2018 19:25:14 +0000
Message-ID: <BE629730-5AB8-4FED-AE86-A959131E86CB@ericsson.com>
References: <000001d32d0f$6ba39b80$42ead280$@augustcellars.com>
In-Reply-To: <000001d32d0f$6ba39b80$42ead280$@augustcellars.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [31.133.128.200]
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <494DACF97BDA7C4DB5E91097075B8ED3@ericsson.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprJIsWRmVeSWpSXmKPExsUyM2K7ou4cvg1RBk++Sljse7ue2eLZ06PM Fqunf2dzYPbYOGc6m8eSJT+ZApiiuGxSUnMyy1KL9O0SuDIu9M9mKrgrUrHw0jb2Bsb5Al2M nBwSAiYSMxreMnYxcnEICRxmlPg6dRkThLOEUWLN50VMIFVsAvYSk9d8ZASxRQTUJbauvgkW ZxbIlHj0+xgLiC0MFD9y9w5rFyMHUI2GxOU9khDlRhK7F29iA7FZBFQl1k24A1bOCzTy781j zCC2EJC9vH0KWA2ngIPEgcarYHFGATGJ76fWQK0Sl7j1ZD4TxNECEkv2nGeGsEUlXj7+xwph K0ksurCeHaJeT+LGVIiZzALWEpf3bYSytSWWLXzNDHGDoMTJmU9YJjCKzUKyYhaS9llI2mch aZ+FpH0BI+sqRtHi1OLi3HQjI73Uoszk4uL8PL281JJNjMAIO7jlt9UOxoPPHQ8xCnAwKvHw Jt1cHyXEmlhWXJl7iFGCg1lJhPfplXVRQrwpiZVVqUX58UWlOanFhxilOViUxHmd0iyihATS E0tSs1NTC1KLYLJMHJxSDYxLW04pHBZdpbRH4tgmn7jMYw6B3y6uOvXktte2mDtr37EziDyT F/OdE1+5WciptXryt7Yl9h7V2pV321Xnyd7bqvDFfFHc4dj2nVNbhe6GLBeZ7LROLW+Bl3bn jxch3TNN3W9Uxh1sm11cqZxdlXWm4/OJo1Pn1wgsrfmk4v1BJU3ntcBu64VKLMUZiYZazEXF iQBogvUBrAIAAA==
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/SCQtuf7b_N-3CfBPvpG_e71O828>
Subject: Re: [core] PubSub - Questions round 1
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 19 Mar 2018 19:25:20 -0000

Hi Jim,

Here's finally answers to some of your questions.

> On 14 Sep 2017, at 7.10, Jim Schaad <ietf@augustcellars.com> wrote:
> 
> 1  I am not clear what the visibility of the intermediate subtopic notes
> should be.  Should these nodes appear in the link list when doing a GET on
> the root of the pub-sub tree?  Should these nodes appear when doing a
> discovery on /.well-known/core?

I think the explicitly created topics should be visible in discovery. However, this includes the "main topics" created with CREATE interface. Perhaps the sub-topics under a main topic could be hidden from the root discovery since they can be discovered from the main topic.

But would be great to hear more opinions on this.

> 2.  I would appreciate a discussion for section 5 (resource directory) on
> what the trade-offs for publishing items into a resource directory?  What
> sets of nodes does it make sense to publish vs not publish - topics of
> discussion would include intermediate nodes and max-age for nodes that might
> disappear quickly.

I think lots of this is going to be implementation dependent. We could perhaps discuss the benefits of sub-topics: that you can expose only the main topic(s), let client discover sub-topics if needed, and this way save bandwidth on discovery is there are lots of sub-topics under different main topics. I'll make a PR out of this.

> 3.  When doing discovery, I am not sure if you examples are correct.  My
> understanding is that since a URI path is being returned as part of the link
> format rather than a full path, the client is supposed to interpret this
> value using the GET path as the context of the path.   This would be rule c
> of section 2.1 of RFC6690.  This rule seems to have been modified for the
> /.well-known/core to say only use the scheme + authority and ignore the path
> to the resource.  However, I do not believe that this rule is suspended in
> this case.  This means that the return value for figure 4 would be
> "</currentTemp>;rt=temperature;ct=50".   Do you believe that I am wrong?

I think you're correct here. But I wonder how can we generate then topics outside of the ps -- or if we want to do that. Let's discuss tomorrow.

> 4.  Just because I don't understand.  In RFC 6690  - what is the origin for
> rule (b)?  I would have thought this was the target URI value itself, but in
> that case I would expect that (b) should be before (a) if it has a schema
> and thus is an absolute path.

I suppose it's the link authority. But let's check with Zach ;)


Cheers,
Ari