Re: [core] Question on draft-fossati-core-publish-option-02

"Rahman, Akbar" <Akbar.Rahman@InterDigital.com> Wed, 23 October 2013 17:27 UTC

Return-Path: <Akbar.Rahman@InterDigital.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 5653C11E8481 for <core@ietfa.amsl.com>; Wed, 23 Oct 2013 10:27:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000, BAYES_00=-2.599]
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 KaihrdPS0XGh for <core@ietfa.amsl.com>; Wed, 23 Oct 2013 10:27:02 -0700 (PDT)
Received: from smtp-out1.interdigital.com (smtp-out1.interdigital.com [64.208.228.135]) by ietfa.amsl.com (Postfix) with ESMTP id 395D411E8202 for <core@ietf.org>; Wed, 23 Oct 2013 10:27:00 -0700 (PDT)
Received: from SAM.InterDigital.com ([10.30.2.11]) by smtp-out1.interdigital.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 23 Oct 2013 13:26:56 -0400
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Date: Wed, 23 Oct 2013 13:26:55 -0400
Message-ID: <D60519DB022FFA48974A25955FFEC08C055A2D04@SAM.InterDigital.com>
In-Reply-To: <CAByMhx9Xi5DwxfYG5k6BO6i2XcLRZjv90HsCppmLF-2oZYO6Mg@mail.gmail.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: Question on draft-fossati-core-publish-option-02
Thread-Index: Ac7PaZvpo0I/epzZRO2ii/gOUgIV6wAqtzLg
References: <D60519DB022FFA48974A25955FFEC08C055A2BE9@SAM.InterDigital.com> <CAByMhx9Xi5DwxfYG5k6BO6i2XcLRZjv90HsCppmLF-2oZYO6Mg@mail.gmail.com>
From: "Rahman, Akbar" <Akbar.Rahman@InterDigital.com>
To: Thomas Fossati <tho@koanlogic.com>
X-OriginalArrivalTime: 23 Oct 2013 17:26:56.0139 (UTC) FILETIME=[125E65B0:01CED015]
Cc: core@ietf.org
Subject: Re: [core] Question on draft-fossati-core-publish-option-02
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: Wed, 23 Oct 2013 17:27:07 -0000

Hi Thomas,


Thanks for the detailed and useful clarification.  The only open
question in my mind is what happens if the delegated proxy happens to be
not link local and not site local?  Does this mean that then a global
multicast href query would need to be attempted by the client?


/Akbar



-----Original Message-----
From: Thomas Fossati [mailto:tho@koanlogic.com] 
Sent: Tuesday, October 22, 2013 4:59 PM
To: Rahman, Akbar
Cc: core@ietf.org
Subject: Re: Question on draft-fossati-core-publish-option-02

Thank you Akbar for taking the time to review it.

As far as your question:

On Tue, Oct 22, 2013 at 6:58 PM, Rahman, Akbar
<Akbar.Rahman@interdigital.com> wrote:
> How is a client directed synchronously to go towards the delegated 
> Endpoint?  In other words, suppose a client had a priori (e.g. at 
> provisioning or startup) obtained the URI of the SEP for the resource 
> that it was interested in.

This is a great example, and one which we've not documented in the
current I-D but should have been (next round!).

In this case, I would expect the client doing an href query to the
(multicast) /.well-known/core interface:

REQ: GET /.well-known/core?href=coap://sleepy.example.org/res

and get the following response back from the delegated Proxy (or from
another endpoint who happens to have this information):

RES: 2.05 Content
<coap://sleepy.example.org/res>;
  anchor="coap://proxy.example.org/";
  rel="proxies"

which tells the client that coap://proxy.example.org "proxies" the
requested resource, so that it can then issue its Proxy-URI request for
that resource to said proxy.

> Your I-D is very clear on how the SEP
> can delegate a resource to a delegated Endpoint.  But how would the 
> client, in a synchronous manner, know that the resource is no longer 
> at the SEP but to go instead to the delegated Endpoint?

I hope my previous example is clear enough.  If you are not satisfied,
please shout :-)

> (I did see your Section 3, Discovery, but this to me seemed to be 
> somehow a specific use case and not a general approach.  Apologies if 
> I missed something obvious.)

Well, the intention is to make it a general approach, it should not look
like an ad hoc solution :-)

We set an explicit design constraint to reuse the discovery model of
RFC6690 as much as possible -- in line with our aim at providing a fully
"in-protocol" solution to the sleepy problem.
To make RFC6690 a building block that also supports the
sleepy/intermittent scenario, we had to bring in the "proxies" link
relation, that works around some semantic and syntactic limitation of
the "hosts" relation.  Using this new thing, the proxy not only hands
off packets around, but also participates into discovery, by advertising
resources that may be "hidden" to the other side of a CoAP network.

Cheers