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

Michael Koster <michaeljohnkoster@gmail.com> Mon, 13 March 2017 12:58 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 6E8891295E2 for <core@ietfa.amsl.com>; Mon, 13 Mar 2017 05:58:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.698
X-Spam-Level:
X-Spam-Status: No, score=-2.698 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_LOW=-0.7, 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 XolnHWf6SToB for <core@ietfa.amsl.com>; Mon, 13 Mar 2017 05:58:12 -0700 (PDT)
Received: from mail-yw0-x22a.google.com (mail-yw0-x22a.google.com [IPv6:2607:f8b0:4002:c05::22a]) (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 92DBC1295DA for <core@ietf.org>; Mon, 13 Mar 2017 05:58:12 -0700 (PDT)
Received: by mail-yw0-x22a.google.com with SMTP id v198so58046210ywc.2 for <core@ietf.org>; Mon, 13 Mar 2017 05:58:12 -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=vwoMpRyfdCU0B48JWZitWlBG4XjELGXwmTARHWxIFgI=; b=UkbFG9tNMkNA3EwiTWS/O7Ql6f3zmi4PtZrq9e+FT8FXoK8q4o3X5Tq1zL/vQkPL/e Dltsz6kA1ha0oPMz6x6Q7TB5Dc2KyksVeE2+neF8dPk6/+p5FprE6QDGDvajy3jZUlWN FcT5570nTWu6D3DXudVGIVSCG3SIDmyKcdoseeGqn3L1lK6WJr7hYVmMj3Yvv1Swfw+R IrCytbVtU6bOFTt0D5stmN2ggPgWCszZrWFpAbcBxFfMNo9FJ347FcltKsiESSU8ete1 pomfWPunV+/C9ZK6gyFZantbbNvAfY/JjRrwF4kFHfkAhRccT6xV1d8HJVPvkOybMQqM m2jg==
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=vwoMpRyfdCU0B48JWZitWlBG4XjELGXwmTARHWxIFgI=; b=HH4xEhVPSKy1BJEKQvyOyIEnDrnEGcYH7Ds9xP1uiWt9//xhKMaVaSUMFOUoFf5saA vdY7QYXInalft+wtR4lLk4Jal9yGNxW8Xkw9yKkN9oNE06LfJPBQk36/Jeh6dscCpqCL 0znuaXnAg4tsUGRKvWZC1bI1dZoMEqYrVEMWnluhk/GGVjtPePf/KmeQrwtidS3IFasr S5yYef9pDJGbYb8/ur7060+/aeYPyHlEe9KYb0244snYJugoijyxH5QmoHFN1RqkqoD6 DIXscW92dgReyLpAJx/W1kBwOSJackDdN3zIDDBhQmQPfWdHgosfqJgoNO0NZyzOe9A3 ljSA==
X-Gm-Message-State: AMke39nv31g8dgsczNEEeXzKYLWzCgljTXbqU03fDBAvrxJ/uJAUCCk/OpqmAmMT4nYB5w==
X-Received: by 10.37.173.218 with SMTP id d26mr17800861ybe.120.1489409891718; Mon, 13 Mar 2017 05:58:11 -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 1sm7381519ywb.72.2017.03.13.05.58.10 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Mar 2017 05:58:11 -0700 (PDT)
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
Content-Type: multipart/alternative; boundary="Apple-Mail=_6472F561-B955-44A4-811B-8772626B0AC9"
From: Michael Koster <michaeljohnkoster@gmail.com>
X-Priority: 3 (Normal)
In-Reply-To: <zarafa.58c28563.565a.4a1c907d21bf17bc@za.u-blox.com>
Date: Mon, 13 Mar 2017 05:58:08 -0700
Message-Id: <D6026AC0-561A-4C36-A319-06EB04FA835A@gmail.com>
References: <zarafa.58c28563.565a.4a1c907d21bf17bc@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/Ptt7RwVZmHHA6-spIoaGsqSh9HQ>
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 12:58:14 -0000

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> 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.