[core] Questions and comments on draft-ietf-core-dynlink-05

Mojan Mohajer <Mojan.Mohajer@u-blox.com> Mon, 09 April 2018 15:37 UTC

Return-Path: <Mojan.Mohajer@u-blox.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 2C0E41270A3 for <core@ietfa.amsl.com>; Mon, 9 Apr 2018 08:37:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.011
X-Spam-Level:
X-Spam-Status: No, score=-0.011 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ubloxcom.onmicrosoft.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 Oud9EN5aapvS for <core@ietfa.amsl.com>; Mon, 9 Apr 2018 08:37:18 -0700 (PDT)
Received: from buffalo.u-blox.com (buffalo.u-blox.com [195.34.89.137]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BE5BC124BE8 for <core@ietf.org>; Mon, 9 Apr 2018 08:37:17 -0700 (PDT)
Received: from mail_filter (localhost [127.0.0.1]) by buffalo.u-blox.com (PF_LO_10026) with ESMTP id 1660539E51 for <core@ietf.org>; Mon, 9 Apr 2018 17:37:14 +0200 (CEST)
Received: from ASSP.nospam (localhost [127.0.0.1]) by buffalo.u-blox.com (Postfix) with ESMTP id D656439E31; Mon, 9 Apr 2018 17:37:13 +0200 (CEST)
Received: from unknown ([127.0.0.1] helo=anyhost.local) by ASSP.nospam with SMTP (2.4.7); 9 Apr 2018 17:37:13 +0200
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ubloxcom.onmicrosoft.com; s=selector1-ublox-com0c; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=8duTqIHQl+UHoQaeUEEsL5p8/LibX9lsgU7m4sup0iE=; b=j2FR6A+BALSNYQgc7aQt5d5VG15O0nb8Oww72c2zRVrGf/J/N3qn8ujUYQDisfSfbBJ2LGINv9xNEydYVGWXDkvSQmKl8pyDT0LLIu9MQXthVfEy20DOUMVFrpp3OfClPxC+o+A1HLL3ellYmnSl+jZyzHxIXXtcsT0UUDIxIvk=
From: Mojan Mohajer <Mojan.Mohajer@u-blox.com>
To: "core@ietf.org" <core@ietf.org>
CC: "bilhanan.silverajan@tut.fi" <bilhanan.silverajan@tut.fi>, "michael.koster@smartthings.com" <michael.koster@smartthings.com>
Thread-Topic: [core] Questions and comments on draft-ietf-core-dynlink-05
Thread-Index: AdPQFGdEbuEZvhPPRhWOwr69wAGFiA==
Date: Mon, 09 Apr 2018 15:37:12 +0000
Message-ID: <LO1P12301MB1587A00E2D36A14E20EE2011CBBF0@LO1P12301MB1587.GBRP123.PROD.OUTLOOK.COM>
Accept-Language: en-US, en-GB
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Mojan.Mohajer@u-blox.com;
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; LO1P12301MB1521; 7:V4y57TtCPtbyotI/5l981Az6EGazokVR+HLFI0WIdbJya1Z+CkfFzg8ytF4wI2/tqEk/VDMejD/CtC/AHNx7Cv5nca8eQsU/APQ51UBIaN0YbkoqShaKsMHwyZvtom8uPKdJ9+FtRMP2siX8Nbp8tQoon3ylrWIl17rP2obQobgC9YBz6Vu1qoF1JOq6zqFTB/Lv+qrIG5qL7S63TJWIEXoEKB/aRYyYCbpE35OJ1T8zOydXbQME8wvkF2rx+Kjd
x-ms-exchange-antispam-srfa-diagnostics: SOS;
X-MS-Office365-Filtering-Correlation-Id: 4b759c3e-23e6-4e45-b247-08d59e2fc383
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(3008032)(2017052603328)(7153060)(7193020); SRVR:LO1P12301MB1521;
x-ms-traffictypediagnostic: LO1P12301MB1521:
x-microsoft-antispam-prvs: <LO1P12301MB15210008B483A6DDC6BB7865CBBF0@LO1P12301MB1521.GBRP123.PROD.OUTLOOK.COM>
x-exchange-antispam-report-test: UriScan:(190756311086443);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231221)(944501327)(52105095)(10201501046)(3002001)(6041310)(20161123562045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011); SRVR:LO1P12301MB1521; BCL:0; PCL:0; RULEID:; SRVR:LO1P12301MB1521;
x-forefront-prvs: 0637FCE711
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(39850400004)(376002)(396003)(39380400002)(346002)(25584004)(199004)(189003)(53754006)(4326008)(8676002)(5640700003)(2900100001)(55016002)(53936002)(9686003)(33656002)(2351001)(6436002)(74316002)(305945005)(6916009)(105586002)(68736007)(81166006)(81156014)(476003)(97736004)(5660300001)(106356001)(2906002)(99286004)(3280700002)(72206003)(5250100002)(5890100001)(2501003)(7696005)(1857600001)(478600001)(3660700001)(14454004)(186003)(26005)(486006)(8936002)(59450400001)(1730700003)(86362001)(6506007)(316002)(102836004)(25786009)(54906003)(4743002); DIR:OUT; SFP:1101; SCL:1; SRVR:LO1P12301MB1521; H:LO1P12301MB1587.GBRP123.PROD.OUTLOOK.COM; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: u-blox.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: Y6d1GJUbdfkYm6VCyXzydD5NSjalfCNynp9aTb8tbF8dSoaOQ76W08VZoaKa7h66RmU/XL30P+6JRTVX2/JAXipNV6AwP6ssMpcj+7AlvpeKS9wdR8IGoCRgkjgjOw0cI7rPXMGyIczRLtKK293Yc5ZbrG4sgo4vhodoPxIvV9dtwjTC3ObZoMjIk+Cv45u3ZOXJmU06kb48D7+OHlyOv4nBNJLKdCno/0jzSRx8gIzPAJbwBXvvKT4DsEFww9glUyOLLEzr2HP9CqCmM+s5nLIYqISMbReRUbEuU3OIWs5mRiML9LTblb5HhZlA70+sucPDk7mZifnS/98Lxrw/5mbeV2xKRuLPN0kVOVaQvkpNoDhItbpIkdn6WDjTsuNELck/kiWdykgrt9lb5+Qh3TPteDn/qPlH89r7UO2Itkc=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 4b759c3e-23e6-4e45-b247-08d59e2fc383
X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Apr 2018 15:37:12.3007 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 80c4ffa6-7511-4bba-9f03-e5872a660c9b
X-MS-Exchange-Transport-CrossTenantHeadersStamped: LO1P12301MB1521
X-OriginatorOrg: u-blox.com
X-Assp-Version: 2.4.7(16004) on ASSP.nospam
X-Assp-ID: ASSP.nospam 88233-26884
X-Assp-Session: 14591F0 (mail 1)
X-Assp-Original-Subject: [core] Questions and comments on draft-ietf-core-dynlink-05
X-Assp-Client-TLS: yes
X-Virus-Scanned: clamav-milter 0.99.4 at buffalo
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/VN28tVSUx7-7LgC9aqMOrQNUmpo>
Subject: [core] Questions and comments on draft-ietf-core-dynlink-05
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, 09 Apr 2018 15:37:20 -0000

Hi all,
Having read through dynlink draft, have few questions and comments that are listed below:
1) As per section 3, binding entry is unidirectional and only present on one end point. So, the question arises as to what does a binding entry consist of and whether it also includes binding attributes? If that is the case, not sure how this applies when the binding method is Observe? For Observe the binding method will be at destination as per Table 1, while the binding attributes should also be know at the source end.

2) Initial synchronisation with poll and observe methods are under control of destination which can decide when it is ready to start the synchronisation process. However, with the push method this seems to be left entirely to source as to when the synchronisation starts. If the binding table is pre provisioned through a commissioning tool as suggested in section3, then how can the source determine when to start synchronisation process?

3) As currently stated when pmin and/or pmax are not present the elapsed time between two state synchronisations are left to the synchronisation initiator. For interoperability purposes it may be worth being more prescriptive as is the case in LwM2M. For example in LwM2M when pmax is not present it's taken to have infinite value and when pmin is absent it's taken to be 0, i.e. there is no time restriction between two consecutive synchronisations if other conditions are met.

4) As per 3.3.8 if "st" is included with "gt" or "lt" attributes the AND operator is used when evaluating synchronisation condition, e.g. "st" AND "gt", "st" AND "lt", etc. Unfortunately LwM2M uses OR operation in such evaluation. There are valid use cases for both approaches. But it would be nice to settle on a common one or maybe consider having yet another attribute to specify the operation. Admittedly this last suggestion could be a step too far.

5) The note in section 3.3.8 quite reasonably suggests the use of notification band min or max  for synchronisation on a resource value change. This again is somewhat different to LwM2M where an observe on a resource without specifying any of the attributes such as gt, lt, pmin, pmax, etc. is used to achieve the same result. If acceptable it may be worth extending the note listing LwM2M approach as another option? 

6) Introduction section indicates Observe Attributes can either be used with Link Bindings or standalone Observe as in RFC7641. However, section 4.2 indicates that the query string parameters or observe attributes defined in this draft have to be set up through a PUT method beforehand. At the same time examples in Appendix A reinforce the statement in the introduction while example in 4.1 sets up these attributes when creating a binding through POST. LwM2M uses PUT to set up these attributes which effectively attach the attributes to the resource. But it seems these attributes should logically belong to a particular binding rather than an individual resource on its own. That is if a resource appears in more than one binding to other resources it could have different set of attributes in each binding entry? At the same time an Observe with uri-query options specifying these attributes as per Appendix A could be considered as implicit an binding that is still conforming to the rule of attributes being attached to a binding as opposed to an individual resource. 
Best Regards,
Mojan