Re: [6lowapp] draft-shelby-6lowapp-coap-00

"Don Sturek" <d.sturek@att.net> Tue, 26 January 2010 20:43 UTC

Return-Path: <d.sturek@att.net>
X-Original-To: 6lowapp@core3.amsl.com
Delivered-To: 6lowapp@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id ACADD28C0EC for <6lowapp@core3.amsl.com>; Tue, 26 Jan 2010 12:43:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 1.134
X-Spam-Level: *
X-Spam-Status: No, score=1.134 tagged_above=-999 required=5 tests=[AWL=1.950, BAYES_00=-2.599, IP_NOT_FRIENDLY=0.334, MSGID_MULTIPLE_AT=1.449, UNPARSEABLE_RELAY=0.001]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6xlrAf8nyg70 for <6lowapp@core3.amsl.com>; Tue, 26 Jan 2010 12:43:07 -0800 (PST)
Received: from smtp105.sbc.mail.gq1.yahoo.com (smtp105.sbc.mail.gq1.yahoo.com [67.195.14.108]) by core3.amsl.com (Postfix) with SMTP id 91CF63A69B7 for <6lowapp@ietf.org>; Tue, 26 Jan 2010 12:43:07 -0800 (PST)
Received: (qmail 66991 invoked from network); 26 Jan 2010 20:43:19 -0000
Received: from adsl-69-224-191-28.dsl.sndg02.pacbell.net (d.sturek@69.224.191.28 with login) by smtp105.sbc.mail.gq1.yahoo.com with SMTP; 26 Jan 2010 12:43:18 -0800 PST
X-Yahoo-SMTP: fvjol_aswBAraSJvMLe2r1XTzhBhbFxY8q8c3jo-
X-YMail-OSG: bHWpvjEVM1kJurNqMEd43SQuhX2KuXKG5A83DZnsqb3kut19a4KhTND6iUO4fmW.4jixnKSyACf9RHHSCxCOxdgH_ztOFtEXOIX906D5gTmKDiu1bBfN6QIR0GPlSpD8KP26HP2ns_UBhRmhodUjdnxBS5DAofCUX2u2qhFR_Euc2AU50lv49_FfXHY42xnpJe1O66xw4aC.ICwXiYfhV6yW6tjunOCEmymhdgMdMMRV7Q8WT73fRF7c0VoWab7xivuY3yGtC0TW1oP.LcqkDbxf7HLgtmzchcSy4z_OT5bDj1gSIUQ-
X-Yahoo-Newman-Property: ymail-3
From: Don Sturek <d.sturek@att.net>
To: paduffy@cisco.com, 6lowapp@ietf.org
References: <0B3D3615-F1AB-4067-B758-0A988C10CD98@sensinode.com> <0D212BD466921646B58854FB79092CEC011D9BCE@XMB-AMS-106.cisco.com> <4B5F466A.2060400@cisco.com>
In-Reply-To: <4B5F466A.2060400@cisco.com>
Date: Tue, 26 Jan 2010 12:43:13 -0800
Message-ID: <028801ca9ec8$2e5439c0$8afcad40$@sturek>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: AcqewC0JV7tgnD3hQJadnv62w4UwAgAB9Ddw
Content-Language: en-us
Subject: Re: [6lowapp] draft-shelby-6lowapp-coap-00
X-BeenThere: 6lowapp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: d.sturek@att.net
List-Id: Application protocols for constrained nodes and networks <6lowapp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/6lowapp>, <mailto:6lowapp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/6lowapp>
List-Post: <mailto:6lowapp@ietf.org>
List-Help: <mailto:6lowapp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/6lowapp>, <mailto:6lowapp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 26 Jan 2010 20:43:08 -0000

We should try to avoid polling.  A publish/subscribe mechanism where devices
opt in for notification and then are updated asynchronously is best.

Don


-----Original Message-----
From: 6lowapp-bounces@ietf.org [mailto:6lowapp-bounces@ietf.org] On Behalf
Of Paul Duffy
Sent: Tuesday, January 26, 2010 11:46 AM
To: 6lowapp@ietf.org
Subject: Re: [6lowapp] draft-shelby-6lowapp-coap-00

Hi Adriano,

Given the constraints of REST's messaging patterns,  the method 
described below is essentially polling on an event object.  Any concerns 
with lots of this occurring in a BW limited environment and/or battery 
consumption issues?


On 1/26/2010 12:56 PM, Adriano Pezzuto (apezzuto) wrote:
> Hi Zach,
> I would to give a bit regarding CoAP/HTTP mapping and notification
messages from constrained devices to wider Internet and vice versa.
>
> Basically, the issue here is that HTTP has a synchronous request-response
model where a NOTIFY is an asynch event. Searching on the REST literature,
there is cute way to handle asynch tasks within a synch model. Let to split
the asynch operation into more synchronous requests. The first request
spawns the operation, and the other requests let the client to be informed
about the status of the operation.
>
> Let to consider a client node on the internet subscribing to a server node
for a data event notification (e.g. temperature crossing a threshold). The
server node is in the constrained environment and a CoAP/HTTP interworking
function is running between client and server.
>
> The client node makes its subscribe request by sending a POST message to
the server node.
> The server node accepts the request, creates a new resource representing
the event and put it in a queue.
> Instead of keeping the client node waiting until the event happens, the
server sends to the client (by CoAP/HTTP IWF) an HTTP 202 Accepted and gives
it a new URL that represents the new created resource.
> Then the client can make GET requests to that URL until the event happens.
> Once the client has 'consumed' the event it can DELETE the event resource
from the server queue.
>
> Better ways exist to accomplish the same task but hope this can help.
>
> Regards,
> Adriano
>
>
> -----Original Message-----
> From: 6lowapp-bounces@ietf.org [mailto:6lowapp-bounces@ietf.org] On Behalf
Of Zach Shelby
> Sent: martedì 19 gennaio 2010 14.37
> To: 6LoWAPP
> Subject: [6lowapp] draft-shelby-6lowapp-coap-00
>
> Does anyone have comments/ideas regarding
http://www.ietf.org/id/draft-shelby-6lowapp-coap-00.txt that we submitted
before the holidays? We would like to start some design work, so any
feedback would be really useful. I've identified some areas where we need
input/discussion on the list:
>
> 1. Content-type encoding (Section 2.4). Any ideas or suggestions on how to
encode this and what is enough space? How should such an encoding be
managed, ask IANA to do that? Any pointers to a similar encoding done
elsewhere?
>
> 2. Caching (Section 2.6). Should we go towards an in-band or an
out-of-band discovery approach? Personally I think an in-band approach is by
far the simplest, although it requires some header space when present.
>
> 3. Subscribe/Notify (Section 2.7). This is an area that definitely needs
discussion. The current proposal is to use a REST interface to create
subscriptions and which are then sent using a NOTIFY message to a call-back
URL. How to format the body o the subscription (URL to subscribe to, URL
call-back, parameters?).
>
> 4. Resource Discovery (Section 2.9). The proposal is to use a new DISCOVER
method which can be sent either unicast or multicast. The only difficult
part there is the format of the list of resources (URLs) which would be
returned in such a response. This is a little bit like index.html. We had
some discussions in Hiroshima that XMPP has developed some ways of coding
lists of URLs and that could be re-used. Does someone have a pointer for us
on that?
>
> Thanks,
> Zach
>
>    

_______________________________________________
6lowapp mailing list
6lowapp@ietf.org
https://www.ietf.org/mailman/listinfo/6lowapp