[core] Battery lifetime optimization idea for Mirror Server

"Dijk, Esko" <esko.dijk@philips.com> Fri, 29 March 2013 10:01 UTC

Return-Path: <esko.dijk@philips.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 37E2921F93DB for <core@ietfa.amsl.com>; Fri, 29 Mar 2013 03:01:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.798
X-Spam-Level:
X-Spam-Status: No, score=-3.798 tagged_above=-999 required=5 tests=[AWL=-0.200, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17ONjUCUu3yK for <core@ietfa.amsl.com>; Fri, 29 Mar 2013 03:00:59 -0700 (PDT)
Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe005.messaging.microsoft.com [216.32.181.185]) by ietfa.amsl.com (Postfix) with ESMTP id EFB5021F9389 for <core@ietf.org>; Fri, 29 Mar 2013 03:00:57 -0700 (PDT)
Received: from mail222-ch1-R.bigfish.com (10.43.68.252) by CH1EHSOBE013.bigfish.com (10.43.70.63) with Microsoft SMTP Server id 14.1.225.23; Fri, 29 Mar 2013 10:00:56 +0000
Received: from mail222-ch1 (localhost [127.0.0.1]) by mail222-ch1-R.bigfish.com (Postfix) with ESMTP id F38BA2E03E1; Fri, 29 Mar 2013 10:00:55 +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: -30
X-BigFish: VPS-30(zz15d6O9251Jc85fh217bIzz1f42h1fc6h1ee6h1de0h1202h1e76h1d1ah1d2ahzz1033IL17326ah8275dh18c673hz2dh2a8h668h839hd25hf0ah1288h12a5h12bdh137ah1441h1504h1537h153bh15d0h162dh1631h1758h18e1h1946h19b5h19ceh1ad9h1b0ah1bceh1155h)
Received: from mail222-ch1 (localhost.localdomain [127.0.0.1]) by mail222-ch1 (MessageSwitch) id 1364551253910643_5235; Fri, 29 Mar 2013 10:00:53 +0000 (UTC)
Received: from CH1EHSMHS015.bigfish.com (snatpool2.int.messaging.microsoft.com [10.43.68.230]) by mail222-ch1.bigfish.com (Postfix) with ESMTP id C23931800B7; Fri, 29 Mar 2013 10:00:53 +0000 (UTC)
Received: from mail.philips.com (157.55.7.222) by CH1EHSMHS015.bigfish.com (10.43.70.15) with Microsoft SMTP Server (TLS) id 14.1.225.23; Fri, 29 Mar 2013 10:00:51 +0000
Received: from 011-DB3MMR1-020.MGDPHG.emi.philips.com (10.128.28.101) by 011-DB3MMR1-008.MGDPHG.emi.philips.com (10.128.28.47) with Microsoft SMTP Server (TLS) id 14.2.328.11; Fri, 29 Mar 2013 10:00:50 +0000
Received: from 011-DB3MPN2-082.MGDPHG.emi.philips.com ([169.254.2.99]) by 011-DB3MMR1-020.MGDPHG.emi.philips.com ([fe80::65e7:4d4c:4c67:daa9%11]) with mapi id 14.02.0328.011; Fri, 29 Mar 2013 10:00:49 +0000
From: "Dijk, Esko" <esko.dijk@philips.com>
To: "matthieu.vial@non.schneider-electric.com" <matthieu.vial@non.schneider-electric.com>
Thread-Topic: Battery lifetime optimization idea for Mirror Server
Thread-Index: Ac4sY//ao4HR1VWQR3a0MSoPPTxA4A==
Date: Fri, 29 Mar 2013 10:00:49 +0000
Message-ID: <031DD135F9160444ABBE3B0C36CED618BFB1A4@011-DB3MPN2-082.MGDPHG.emi.philips.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.103]
Content-Type: multipart/alternative; boundary="_000_031DD135F9160444ABBE3B0C36CED618BFB1A4011DB3MPN2082MGDP_"
MIME-Version: 1.0
X-OriginatorOrg: philips.com
Cc: "core (core@ietf.org)" <core@ietf.org>
Subject: [core] Battery lifetime optimization idea for Mirror Server
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.12
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: Fri, 29 Mar 2013 10:01:01 -0000

Hello  Matthieu,

I considered an optimization for the Mirror Server (http://tools.ietf.org/html/draft-vial-core-mirror-server-00) that could extend the battery lifetime of Sleepy Endpoints (SEPs) significantly. The idea  applies to SEPs that have writeable resources registered into a Mirror Server (MS). Based on Section 4.8 (Modification Check) a SEP needs to periodically check if one of its resources has been changed on the Mirror Server. This requires an extra CoAP request in addition to the sensor value updates the SEP is periodically sending to the Mirror Server, e.g. like PUT /ms/0/sen/temp "22". In a typical use case as I see it, the SEP performs this PUT every time it wakes up and also GETs to do the modification check in the same awake-interval. Two requests, two responses.

The idea is to make this into only one request + one response in the following way: the SEP sends a PUT request to update e.g. its temperature value; and then the Mirror Server responds with 2.04 Changed and only in case one of the SEP resources has been modified on the Mirror Server, it attaches a special short payload to the response that indicates "one or more of your resources have been changed". It could be a single character "M" for example. This is a trigger for the SEP to do the modification check of section 4.8.
Because in >99% of the times no changes have been made to the SEP resources on the MS, the average message load drops to one request + one response per awake-interval.

The alternative here is to define a new Option that is attached to the 2.04 response message; that seems a neater way to do it. This Option doesn't need to be recognized by anyone except the SEPs and Mirror Servers that adhere to this specification so I don't see any bad side-effects to CoAP by defining such Option in a spec separate from core-coap.

So perhaps we can include a feature like this in MS, to meet the home/industry demands for long battery life for sensor-type devices.

regards,

Esko


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