Re: [core] New Version Notification for draft-groves-core-bas-00.txt

Christian Groves <cngroves.std@gmail.com> Fri, 10 March 2017 05:39 UTC

Return-Path: <cngroves.std@gmail.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 735DC1295C6 for <core@ietfa.amsl.com>; Thu, 9 Mar 2017 21:39:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.333
X-Spam-Level:
X-Spam-Status: No, score=-0.333 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=0.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.665] autolearn=no 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 PEqBPoEM1vgU for <core@ietfa.amsl.com>; Thu, 9 Mar 2017 21:39:09 -0800 (PST)
Received: from msh04.myshophosting.com (msh04.myshophosting.com [101.0.86.118]) (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 227651295B5 for <core@ietf.org>; Thu, 9 Mar 2017 21:39:09 -0800 (PST)
Received: from ppp118-209-171-106.lns20.mel8.internode.on.net ([118.209.171.106]:62053 helo=[192.168.1.22]) by msh04.myshophosting.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.88) (envelope-from <cngroves.std@gmail.com>) id 1cmDGF-003tEJ-Nx; Fri, 10 Mar 2017 16:38:43 +1100
To: Mojan Mohajer <mojan.mohajer@u-blox.com>, Friedhelm Rodermund <rodermund@vodafone.de>
References: <148765208755.26069.6296092128269483309.idtracker@ietfa.amsl.com> <zarafa.58c17e7d.3fc8.5fdcc5861adcb559@za.u-blox.com>
From: Christian Groves <cngroves.std@gmail.com>
Message-ID: <5c0b85c4-6c2c-1c41-bcac-480e131f6de5@gmail.com>
Date: Fri, 10 Mar 2017 16:38:36 +1100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0
MIME-Version: 1.0
In-Reply-To: <zarafa.58c17e7d.3fc8.5fdcc5861adcb559@za.u-blox.com>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 8bit
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - msh04.myshophosting.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - gmail.com
X-Get-Message-Sender-Via: msh04.myshophosting.com: authenticated_id: christian@kunstmade.com.au
X-Authenticated-Sender: msh04.myshophosting.com: christian@kunstmade.com.au
X-Source:
X-Source-Args:
X-Source-Dir:
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/6JHtYDaMSQjn8w_w6eqd9FfatPo>
Cc: core <core@ietf.org>
Subject: Re: [core] New Version Notification for draft-groves-core-bas-00.txt
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Mar 2017 05:39:10 -0000

Hello Mojan,

I can add something in the next version. I'm not sure whether i'll get 
to it before the document deadline for Chicago though.

With regards to time=x+14400 and pmin, if the client sets pmin=14400 
that's the behaviour it should expect. BTW if the client wants further 
notifications below the 40% mark then it would be better off using the 
band parameters defined in draft-groves-core-obsattr. The lth and gth 
only trigger when the value goes through the threshold.

Regards, Christian


On 10/03/2017 3:10 AM, Mojan Mohajer wrote:
> Hello Michael & Christian,
> Thanks for the clarifications. If you decide to include an example scenario like the one we've been discussing in the future drafts, it may be worth showing separate responses from the server with correct tokens to emphasise this.
> It may also be worth indicating the expected behaviour when pmin is specified as observe parameter on a sub-resource in a collection when there is more than one observes request as per previous example:
>
> 1. GET /collection?bas=temp & gth=21.2 cel, pmax=86400 (Token: 0x01, Observe: 0)
> 2. GET /collection?bas=battery_level, st=2, lth=40, pmin=14400, pmax=604800 (Token: 0x02, Observe: 0)
>
> time=x : temperature goes over the specified threshold and the server reports the values of sub-resources in the collection (temp, battery level, signal strength)
> time=x+400:  battery level drops below 40% or changes by 2% or more.
>
> If pmin for battery level reporting is taken to start from time x, then the step change or battery level dropping below specified threshold will not generate a report from the server for another 14000 seconds, i.e. till time=x+14400. Not sure if this behaviour will be in-line with clients' expectations.
> Best Regards,
> Mojan
>
>
> -----Original Message-----
> From: Christian Groves [mailto:cngroves.std@gmail.com]
> Sent: 09 March 2017 10:19
> To: Mojan Mohajer; Friedhelm Rodermund
> Cc: core
> Subject: Re: [core] New Version Notification for draft-groves-core-bas-00.txt
>
> Hello Mojan,
>
> As Michael points out the server would have to respect the tokens in the Observe request. E.g. if /collection?bas=temp results in a notification then Token: 0x01 would be used.
>
> Regards, Christian
>
>
> On 8/03/2017 9:45 PM, Mojan Mohajer wrote:
>> Hello Christian,
>> Yes, I can see the current proposals actually caters for the example scenario. Thanks for pointing this out.
>> I guess in this example after CoAP server receives the second observe request it can use either Token 0x01 or 0x02 when notifying the resources in the collection back to the client and client can match it to its observe requests as appropriate.
>> Best Regards,
>> Mojan
>>
>> -----Original Message-----
>> From: Christian Groves [mailto:cngroves.std@gmail.com]
>> Sent: 08 March 2017 04:56
>> To: Mojan Mohajer; Friedhelm Rodermund
>> Cc: core
>> Subject: Re: [core] New Version Notification for
>> draft-groves-core-bas-00.txt
>>
>> Hello Mojan,
>>
>> Thanks for your comments and additional scenarios.
>>
>> It would be possible to support your scenarios below utilising bas from the current draft by doing multiple observes on the collection. E.g.
>>
>> Given the following link structure:
>>
>> /collection
>>
>> /collection/temperature
>>
>> /collection/batterylevel
>>
>> /collection/signalstrength
>>
>> Two observations would be enough to satisfy the scenario below.
>>
>> 1. GET /collection?bas=temp, gth=21.2 cel, pmax=86400 (Token: 0x01,
>> Observe: 0)
>>
>> 2. GET /collection?bas=battery level, st, lth, pmin & pmax (Token:
>> 0x02,
>> Observe: 0)
>>
>> The signal strength, battery level and temperature would be returned at each notification because the entire collection is returned upon meeting the observation parameters.
>>
>> Does this suffice?
>>
>> Having more complicated logic where there's an interaction between the resources (e.g. a notification due to battery level would satisfy the temperature "once a day" criteria) is envisaged to be handled by the FETCH method described in the draft.
>>
>> Regards, Christian
>>
>>
>> On 8/03/2017 4:45 AM, Mojan Mohajer wrote:
>>> Hello Christian, et al
>>> The "bas" attribute looks extremely useful and certainly addresses a number important use cases. It can also perhaps be extended to cover a more generic use case where each resource within the reported collection can have its own separate set of observation parameters. For example, a typical scenario could be to monitor a temperature sensor, device battery level that the sensor is physically attached to and  measured radio signal strength when device accesses cellular network. Each of these monitored resources can/should have independent observation parameters such as:
>>>       * Measured temperature value is reported when it exceeds a set threshold, or at least once a day (gth=21.2 celsius; pmax=86400)
>>>       * Battery level to be reported based on st, lth, pmin and pmax observation parameters such as notification is sent when it drops below a certain % or there is a marked step change which could indicate unusual/unauthorised activity. In the absence of the first two conditions it should be reported at least once a week or at most once a day?
>>>        * Measured radio signal strength to be included in every
>>> notification message My reading of “bas” attribute is that it can only be applied to one resource in the collection and cannot be used to specify different observation parameters on each resource within the collection as highlighted in the above use case.
>>> Best Regards,
>>> Mojan
>>>
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: core [mailto:core-bounces@ietf.org] On Behalf Of Friedhelm
>>> Rodermund
>>> Sent: 01 March 2017 16:42
>>> To: Christian Groves
>>> Cc: core
>>> Subject: Re: [core] New Version Notification for
>>> draft-groves-core-bas-00.txt
>>>
>>> Thanks Christian,
>>>
>>> I agree it would be very valuable to support this use case.
>>>
>>> Regards,
>>> Friedhelm
>>>
>>>
>>>> On 24 Feb 2017, at 01:42, Christian Groves <cngroves.std@gmail.com> wrote:
>>>>
>>>> Hello all,
>>>>
>>>> FYI I've submitted a draft addressing the use case discussed on the list allowing the value of one resource to trigger the notification of other resources.
>>>>
>>>> It proposes to use a collection that would allow binding/observe attributes on a sub-resource (item). Once the criteria is met then the value of the collection is returned. The batch and/or linked batch interfaces are used to control the resources that are returned.
>>>>
>>>> There's also a discussion of a more complex use case utilising the FETCH method.
>>>>
>>>> Like the other attributes the goal would be to have this as part of draft-ietf-core-dynlink.
>>>>
>>>> Comments?
>>>>
>>>> Regards, Christian
>>>>
>>>>
>>>>
>>>> -------- Forwarded Message --------
>>>> Subject: 	New Version Notification for draft-groves-core-bas-00.txt
>>>> Date: 	Mon, 20 Feb 2017 20:41:27 -0800
>>>> From: 	internet-drafts@ietf.org
>>>> To: 	Christian Groves <christian.groves@mail01.huawei.com>, Christian Groves <Christian.Groves@mail01.huawei.com>, Weiwei Yang <tommy@huawei.com>
>>>>
>>>>
>>>>
>>>> A new version of I-D, draft-groves-core-bas-00.txt has been
>>>> successfully submitted by Christian Groves and posted to the IETF
>>>> repository.
>>>>
>>>> Name:		draft-groves-core-bas
>>>> Revision:	00
>>>> Title:		Binding Attribute Scope
>>>> Document date:	2017-02-21
>>>> Group:		Individual Submission
>>>> Pages:		7
>>>> URL:            https://www.ietf.org/internet-drafts/draft-groves-core-bas-00.txt
>>>> Status:         https://datatracker.ietf.org/doc/draft-groves-core-bas/
>>>> Htmlized:       https://tools.ietf.org/html/draft-groves-core-bas-00
>>>>
>>>>
>>>> Abstract:
>>>>      This document specifies an additional CoAP binding attribute that
>>>>      allows binding attributes to be scoped to an item (sub-resource) in a
>>>>      collection resource.  This allows synchronisation of multiple
>>>>      resources in a collection based on the value of one resource.
>>>>
>>>>                                                                                     
>>>>
>>>> Please note that it may take a couple of minutes from the time of
>>>> submission until the htmlized version and diff are available at tools.ietf.org.
>>>>
>>>> The IETF Secretariat
>>>>
>>>> .
>>>>
>>>> _______________________________________________
>>>> core mailing list
>>>> core@ietf.org
>>>> https://www.ietf.org/mailman/listinfo/core
>>> _______________________________________________
>>> core mailing list
>>> core@ietf.org
>>> https://www.ietf.org/mailman/listinfo/core
>>>
>>>
>>
>
>