Re: [core] Questions/comments on draft-ietf-core-dynlink-02

Michael Koster <michaeljohnkoster@gmail.com> Mon, 13 March 2017 15:28 UTC

Return-Path: <michaeljohnkoster@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 6FBD51294A2 for <core@ietfa.amsl.com>; Mon, 13 Mar 2017 08:28:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 svdvNltp8sFj for <core@ietfa.amsl.com>; Mon, 13 Mar 2017 08:28:51 -0700 (PDT)
Received: from mail-ot0-x22c.google.com (mail-ot0-x22c.google.com [IPv6:2607:f8b0:4003:c0f::22c]) (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 CFF9412947C for <core@ietf.org>; Mon, 13 Mar 2017 08:28:50 -0700 (PDT)
Received: by mail-ot0-x22c.google.com with SMTP id i1so114803333ota.3 for <core@ietf.org>; Mon, 13 Mar 2017 08:28:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:mime-version:from:in-reply-to:date:cc:message-id:references :to; bh=FeuDt7MOLJyCtxCYAUgcxL5ZHvYUlk2mgWIP6MCaojQ=; b=ZAvZS1H7RGDrrZPdxDGeALXKL7e8ppAWLAwrF/dS9DzKucsYzBW8D1NC4XUjAT+Gqy xpn67UQIB7ezBRY6035USw6sgItHU+LkRWYiksDy28REHCXw5xckIMR3fjekv+USgHyl xFdhxPEyq+GOrntKUOzCHfjnQBp/1TI4jxz0f/oHV+jgtfKHLg5ZmiXVQ+B+k4elsPpm 0Pa0Ec1nW9RwWIohKdQ69+nCVWms2ew0mAwtUiTU4VWoAENn5eFAtRKfoe95UGgclZRi 1TRLZPDqZdcThILzXuBAQTtSCykigoHkFIqeNxp7N/fVvyjYX83KXxS/g9OF4GC/eW1J Zq1A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=FeuDt7MOLJyCtxCYAUgcxL5ZHvYUlk2mgWIP6MCaojQ=; b=alKmAjJ7U3ihkauHUbp/LLLFVY6uGznShA9DyeRKFa91gAb/mGHSEKZXliBZh8Iv/E mwVbDUOV71sCOp02L3zW8Ax3HE/mAmtPq7KT5yOTLxPiiNbpx+Olztof4OcStU3UTT/O axR0/vDUBGEJRavqA2/LB/i1NkAU1x3BG6HJ7KLQJxCFQEiBgaoP9IkF9znZ6HgC0oi/ +WZ31ueYoTprY2iXqnjFTQ1jbLUmTdCLj4TCttjs91O/dNTkU2ZEl2m7Iq75dZNdNLcL treHpfISo/ShX26kWS23NGpEoXGo5cEAJkvu0MRn/vTqJBrMJlT2jbg5Q3rlElyz3xhl HG8Q==
X-Gm-Message-State: AMke39nsQnjhKJzyp8I0OiWuAoMLKJeA/yUwqyBWEbhbc4DkSbe9xjC0nfncQUkCWAUQrw==
X-Received: by 10.157.63.119 with SMTP id m110mr15711938otc.63.1489418930239; Mon, 13 Mar 2017 08:28:50 -0700 (PDT)
Received: from [10.0.0.11] (108-201-184-41.lightspeed.sntcca.sbcglobal.net. [108.201.184.41]) by smtp.gmail.com with ESMTPSA id b184sm8096404oia.34.2017.03.13.08.28.49 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Mar 2017 08:28:49 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
Content-Type: multipart/alternative; boundary="Apple-Mail=_C4065BAB-1752-4655-BB35-31ECCA96BABB"
From: Michael Koster <michaeljohnkoster@gmail.com>
X-Priority: 3 (Normal)
In-Reply-To: <zarafa.58c6b54d.03d9.36a227ad756e89ba@za.u-blox.com>
Date: Mon, 13 Mar 2017 08:28:47 -0700
Message-Id: <2188A0A1-3BD2-4BDE-AE17-7D434C001C06@gmail.com>
References: <zarafa.58c28563.565a.4a1c907d21bf17bc@za.u-blox.com> <zarafa.58c6b54d.03d9.36a227ad756e89ba@za.u-blox.com>
To: Mojan Mohajer <mojan.mohajer@u-blox.com>
X-Mailer: Apple Mail (2.2104)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/ErqS8K_PIwHtWNcyvTohnDTC7jE>
Cc: core <core@ietf.org>
Subject: Re: [core] Questions/comments on draft-ietf-core-dynlink-02
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: Mon, 13 Mar 2017 15:28:52 -0000

OK, that makes sense.

Do you think there is still a use case for a simple implementation (as I did in ARM mbed) that only keeps a single set of attributes?

Should we support both the global setting and a per-observe override?

Or should we deprecte the single attribute set and only support per-observe attributes going forward?

FWIW, There is another SDO that is in the process of specifying an optional (single) setting for each resource instance, using a "composed" resource.

Best regards,

Michael

> On Mar 13, 2017, at 8:05 AM, Mojan Mohajer <mojan.mohajer@u-blox.com> wrote:
> 
> Hi Michael,
> Yes, the current version of LwM2M requires the use of “Write Attribute” which as you pointed out provides a single set of notifications parameters. This in itself could be rather problematic in use cases where there are two observers of the same resource with differing requirements of observe attributes. As per example A in the document and your suggestion it seems more logical to pass the observation attributes in the get operation and make them somewhat transaction oriented rather than simply attached to the resource. By doing so, a resource can accommodate multiple observers with different observation rules as required. BTW, couple of companies have already put forward proposals to add support for passing of these attributes in the GET operation in the next version of OMA LwM2M specification. 
> Best Regards,
> Mojan
>  
>  
>  
> From: Michael Koster [mailto:michaeljohnkoster@gmail.com] 
> Sent: 13 March 2017 12:58
> To: Mojan Mohajer
> Cc: core
> Subject: Re: [core] Questions/comments on draft-ietf-core-dynlink-02
>  
> Hi Mojan,
>  
> I think this is the default behavior for OMA LWM2M using the "Write Attributes" operation. The effect is to provide a single set of notification parameters for all observe operations on that resource.
>  
> I believe that we improve on that pattern and allow each observe request to have its own attributes, set by including query parameters in the GET operation.
>  
> Section 4.2 also indicates that they are readable, but it's not clear to me how that would work? In what format are they returned, also as query parameters? These could be made readable (and updateable) througn a special CoRE Interface, but we would need to specify how the content format of these works vs. the content format of the resource state.
>  
> LWM2M could be described in this draft as a legacy pattern.
>  
> Does this make sense?
>  
> Best regards,
>  
> Michael
>  
>  
> On Mar 10, 2017, at 2:52 AM, Mojan Mohajer <mojan.mohajer@u-blox.com <mailto:mojan.mohajer@u-blox.com>> wrote:
>  
> 2) Section 4.2 which covers resource observation attributes (pmin, pmax, st, …) states that that: …”These query parameters MUST be treated as resources that are read using GET and updated using PUT, and MUST NOT be included in the Observe request” ….
> However, looking at newly added Annex A which provides observation examples, these observation attributes are passed as query parameters of a Get request with Observe option set to 0. There seems to be some contradiction between the text in section 4.2 and the example in Annex A.