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

Lisa Dusseault <lisa.dusseault@gmail.com> Tue, 26 January 2010 19:42 UTC

Return-Path: <lisa.dusseault@gmail.com>
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 6FB9928C0FB for <6lowapp@core3.amsl.com>; Tue, 26 Jan 2010 11:42:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.699
X-Spam-Level:
X-Spam-Status: No, score=-1.699 tagged_above=-999 required=5 tests=[AWL=0.900, BAYES_00=-2.599]
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 uGVDfGX0tAYL for <6lowapp@core3.amsl.com>; Tue, 26 Jan 2010 11:42:38 -0800 (PST)
Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.26]) by core3.amsl.com (Postfix) with ESMTP id ED1F328C0F2 for <6lowapp@ietf.org>; Tue, 26 Jan 2010 11:42:37 -0800 (PST)
Received: by qw-out-2122.google.com with SMTP id 9so295559qwb.31 for <6lowapp@ietf.org>; Tue, 26 Jan 2010 11:42:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=kvVCpPoy7sXsBhMqLjHBjZg2F5GC1thXMeysEzBso8c=; b=dbBelhdv6ubL8jlaovlxCZmyuAZCTC+jSOcv0DHx2Ry7ppOHHrN9O5iHHgKLi+3C9d PccjqUbGoNN0GvoUP+KPKU/dfvCK+4mAz3CamMUHlRtf+FRROJT8ZgP4Ut2spMAQcnlS D8Z4Wki80piqpYDZ4iyPCrk5MZRI1Z0m8JdUI=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=m/xGX0vX9CXOnh2/oJmfc/cmQpT5ndwFfYp44bszzP/y6pewwzOMyv2jWTJ9ATW+Ze yXFJF79QYjLBPmjnSr6asMi6BpSxSZHIAD4eBCpxJT0+lPl/eu9fFUC5x/O0zTSp+ufq sgFUtl8Fb3uJ2fpW98vTnIuGewxRwYlb4sw7I=
MIME-Version: 1.0
Received: by 10.220.125.104 with SMTP id x40mr1962828vcr.93.1264534966109; Tue, 26 Jan 2010 11:42:46 -0800 (PST)
In-Reply-To: <0D212BD466921646B58854FB79092CEC011D9BCE@XMB-AMS-106.cisco.com>
References: <0B3D3615-F1AB-4067-B758-0A988C10CD98@sensinode.com> <0D212BD466921646B58854FB79092CEC011D9BCE@XMB-AMS-106.cisco.com>
Date: Tue, 26 Jan 2010 11:42:45 -0800
Message-ID: <ca722a9e1001261142x72e829c7o3a2de0acc8e8269a@mail.gmail.com>
From: Lisa Dusseault <lisa.dusseault@gmail.com>
To: "Adriano Pezzuto (apezzuto)" <apezzuto@cisco.com>
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: quoted-printable
Cc: 6LoWAPP <6lowapp@ietf.org>
Subject: Re: [6lowapp] draft-shelby-6lowapp-coap-00
X-BeenThere: 6lowapp@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
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 19:42:39 -0000

Hi,

The recently approved HYBI WG will be taking on use cases very like
this.  The BOF discussed documenting the "long poll" approach (a
request that the client understands will not receive a response until
event or timeout occurs), long-body approach (not recommending) as
replacements to expensive repeated polling approaches.  That ended up
not being a required output of the WG according to its charter, but
that WG does have expertise in how clients know when to  poll or ask
for a notification and how servers know that the client knows what to
expect.

Lisa

On Tue, Jan 26, 2010 at 9:56 AM, Adriano Pezzuto (apezzuto)
<apezzuto@cisco.com> 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
>
> --
> http://www.sensinode.com
> http://zachshelby.org - My blog "On the Internet of Things"
> http://6lowpan.net - New book - "6LoWPAN: The Wireless Embedded Internet"
> Mobile: +358 40 7796297
>
> Zach Shelby
> Head of Research
> Sensinode Ltd.
> Kidekuja 2
> 88610 Vuokatti, FINLAND
>
> This e-mail and all attached material are confidential and may contain legally privileged information. If you are not the intended recipient, please contact the sender and delete the e-mail from your system without producing, distributing or retaining copies thereof.
>
>
>
>
> _______________________________________________
> 6lowapp mailing list
> 6lowapp@ietf.org
> https://www.ietf.org/mailman/listinfo/6lowapp
> _______________________________________________
> 6lowapp mailing list
> 6lowapp@ietf.org
> https://www.ietf.org/mailman/listinfo/6lowapp
>