Re: [core] Sleepy devices: OMA lightweight queue mode for CoAP

"Dijk, Esko" <esko.dijk@philips.com> Tue, 26 November 2013 13:37 UTC

Return-Path: <esko.dijk@philips.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9DA2C1AE1CA for <core@ietfa.amsl.com>; Tue, 26 Nov 2013 05:37:42 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.348
X-Spam-Level:
X-Spam-Status: No, score=-1.348 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, UNRESOLVED_TEMPLATE=1.252] autolearn=ham
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 V7ruDq7rmb99 for <core@ietfa.amsl.com>; Tue, 26 Nov 2013 05:37:40 -0800 (PST)
Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe003.messaging.microsoft.com [216.32.181.183]) by ietfa.amsl.com (Postfix) with ESMTP id D86FB1AD79D for <core@ietf.org>; Tue, 26 Nov 2013 05:37:38 -0800 (PST)
Received: from mail217-ch1-R.bigfish.com (10.43.68.230) by CH1EHSOBE003.bigfish.com (10.43.70.53) with Microsoft SMTP Server id 14.1.225.22; Tue, 26 Nov 2013 13:37:38 +0000
Received: from mail217-ch1 (localhost [127.0.0.1]) by mail217-ch1-R.bigfish.com (Postfix) with ESMTP id 3CBAE1A03D2; Tue, 26 Nov 2013 13:37:38 +0000 (UTC)
X-Forefront-Antispam-Report: CIP:157.55.7.222; KIP:(null); UIP:(null); IPV:NLI; H:mail.philips.com; RD:none; EFVD:NLI
X-SpamScore: -46
X-BigFish: VPS-46(zz217bI98dI15d6O9371IfcbW1521I542I1432I9251Idd85kzz1f42h208ch1ee6h1de0h1fdah2073h2146h1202h1e76h1d1ah1d2ah1fc6hzz1de098h1033IL8275bh1de097h18602ehz2dh109h2a8h839h944hd25hf0ah1220h1288h12a5h12a9h12bdh137ah13b6h1441h1504h1537h153bh15d0h162dh1631h1758h18e1h1946h19b5h19ceh1ad9h1b0ah1b2fh2222h224fh1fb3h1d0ch1d2eh1d3fh1dfeh1dffh1e1dh1fe8h1ff5h2216h22d0h1155h)
Received: from mail217-ch1 (localhost.localdomain [127.0.0.1]) by mail217-ch1 (MessageSwitch) id 1385473056103162_8275; Tue, 26 Nov 2013 13:37:36 +0000 (UTC)
Received: from CH1EHSMHS029.bigfish.com (snatpool3.int.messaging.microsoft.com [10.43.68.226]) by mail217-ch1.bigfish.com (Postfix) with ESMTP id 11B7C1E005C; Tue, 26 Nov 2013 13:37:36 +0000 (UTC)
Received: from mail.philips.com (157.55.7.222) by CH1EHSMHS029.bigfish.com (10.43.70.29) with Microsoft SMTP Server (TLS) id 14.16.227.3; Tue, 26 Nov 2013 13:37:35 +0000
Received: from 011-DB3MPN2-082.MGDPHG.emi.philips.com ([169.254.2.40]) by 011-DB3MMR1-005.MGDPHG.emi.philips.com ([10.128.28.55]) with mapi id 14.03.0158.002; Tue, 26 Nov 2013 13:37:33 +0000
From: "Dijk, Esko" <esko.dijk@philips.com>
To: Zach Shelby <Zach.Shelby@arm.com>
Thread-Topic: Sleepy devices: OMA lightweight queue mode for CoAP
Thread-Index: Ac7eupK1vkBEFzF3SDuPgMOcHEH12wB3d1YAAoTV/kA=
Date: Tue, 26 Nov 2013 13:37:33 +0000
Message-ID: <031DD135F9160444ABBE3B0C36CED6180CC40DF1@011-DB3MPN2-082.MGDPHG.emi.philips.com>
References: <031DD135F9160444ABBE3B0C36CED6180CC2895D@011-DB3MPN2-082.MGDPHG.emi.philips.com> <8AD83A72-6EE4-4C77-A084-BAD5C5C87989@arm.com>
In-Reply-To: <8AD83A72-6EE4-4C77-A084-BAD5C5C87989@arm.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [194.171.252.109]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: philips.com
X-FOPE-CONNECTOR: Id%0$Dn%*$RO%0$TLS%0$FQDN%$TlsDn%
X-FOPE-CONNECTOR: Id%0$Dn%INTERDIGITAL.COM$RO%1$TLS%0$FQDN%$TlsDn%
Cc: "core@ietf.org" <core@ietf.org>
Subject: Re: [core] Sleepy devices: OMA lightweight queue mode for CoAP
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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: Tue, 26 Nov 2013 13:37:42 -0000

> in other cases it might be an HTTP reverse proxy.
Considering this case, wouldn't the HTTP request usually time out?
The 'SICEP' may typically wake up once a day and the HTTP connection would be dropped long before that. (A few minutes typically?)

I'm therefore wondering whether this request caching is suitable for the general case (where the requesting client is not integrated into the proxy node itself)

Esko

-----Original Message-----
From: Zach Shelby [mailto:Zach.Shelby@arm.com]
Sent: Wednesday, November 13, 2013 18:48
To: Dijk, Esko
Cc: core@ietf.org; Rahman, Akbar
Subject: Re: Sleepy devices: OMA lightweight queue mode for CoAP

Esko,

Only the what you might call the SICEP-PROXY interface is within scope of the OMA specification. How the client interacts with the proxy is out of scope. In the device management space the proxy often times is the application, in other cases it might be an HTTP reverse proxy.

The only timings discussed in the OMA spec are the CoAP timeouts used to time how long the SICEP can be assumed to be awake after sending a registration update.

I would prefer to document only the SICEP-PROXY interface, really that is the only part in scope of the resource directory specification anyways.

Zach

On Nov 11, 2013, at 1:21 AM, "Dijk, Esko" <esko.dijk@philips.com> wrote:

>> In the OMA Lightweight standard, the mechanism that uses CoAP to
>> solve this problem was just called a "queue mode". This is in
>> practice realised with a Proxy and an RD in the same box. An RD
>> registration parameter is used to indicate that a node is in queue mode. From there on the proxy queues all incoming requests to the node, which are released upon reception of a registration update request from the node. If the WG wants, this could fairly easily be documented in the Resource Directory draft maintaining compatibility with OMA Lightweight.
>
> In this solution, does the Proxy queue a CoAP request for an arbitrary
> time period? I assume it works as follows
>
> 1- the CoAP client that needs to reach the
> sleepy/intermittent-connectivity endpoint (SICEP) sends a CON request
> to Proxy, containing the Proxy-Uri or Proxy-Scheme option
> 2- Proxy ACKs the CON message and puts the request in queue
> 3- SICEP wakes up, updates its registration on Proxy
> 4- Proxy sends queued request (CON) to SICEP
> (- optional: if request fails to be delivered to SICEP it is re-queued
> for next time; then move back to step 3)
> 5- Proxy receives CoAP response from SICEP
> 6- Proxy delivers response to the CoAP client (using CON)
>
> From core-coap I understand there is no inherent limit to the time between a CoAP request and its response. E.g. it may be 24 hours in above example.
> I wonder if current implementations of core-coap allow this, or are tested on this aspect.
>
> One benefit of this solution (if I see it right) is that there is no resource delegation/buffering needed at all. A drawback is that the SICEP needs to acts as CoAP server as well as CoAP client, while some other solutions require only CoAP-client functionality in the SICEP.

Zach Shelby
Director of Technology
ARM Internet of Things BU
www.arm.com
mobile: +1 (408) 203-9434
Skype: zdshelby
LinkedIn: fi.linkedin.com/in/zachshelby/


-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium.  Thank you.

ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No:  2557590 ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No:  2548782


________________________________
The information contained in this message may be confidential and legally protected under applicable law. The message is intended solely for the addressee(s). If you are not the intended recipient, you are hereby notified that any use, forwarding, dissemination, or reproduction of this message is strictly prohibited and may be unlawful. If you are not the intended recipient, please contact the sender by return e-mail and destroy all copies of the original message.