Re: [core] draft-ietf-core-link-format-11 - discover virtual hosted resources

Zach Shelby <zach@sensinode.com> Sat, 21 April 2012 06:40 UTC

Return-Path: <zach@sensinode.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 194C121E802A for <core@ietfa.amsl.com>; Fri, 20 Apr 2012 23:40:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.299
X-Spam-Level:
X-Spam-Status: No, score=-3.299 tagged_above=-999 required=5 tests=[AWL=0.300, BAYES_00=-2.599, 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 EVlow0aS0Zer for <core@ietfa.amsl.com>; Fri, 20 Apr 2012 23:40:00 -0700 (PDT)
Received: from auth-smtp.nebula.fi (auth-smtp.nebula.fi [217.30.180.105]) by ietfa.amsl.com (Postfix) with ESMTP id D45D021E8020 for <core@ietf.org>; Fri, 20 Apr 2012 23:39:59 -0700 (PDT)
Received: from [192.168.1.102] (87-93-1-88.bb.dnainternet.fi [87.93.1.88]) (authenticated bits=0) by auth-smtp.nebula.fi (8.13.8/8.13.4) with ESMTP id q3L6dv5G017036; Sat, 21 Apr 2012 09:39:57 +0300
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset="us-ascii"
From: Zach Shelby <zach@sensinode.com>
In-Reply-To: <CAB6izETH8czdmvv_Jii+UMorQQ--=ZwypHKKH_XEnBsEBwpAJQ@mail.gmail.com>
Date: Sat, 21 Apr 2012 09:39:56 +0300
Content-Transfer-Encoding: quoted-printable
Message-Id: <C3B302B9-CFE7-426A-A4B2-BFD21D62F9F5@sensinode.com>
References: <6029ED8C-2341-4199-A439-F0DB02A55DA4@koanlogic.com> <F5CA9E96-C66D-459C-9ABF-B230D34FE877@sensinode.com> <CAB6izETH8czdmvv_Jii+UMorQQ--=ZwypHKKH_XEnBsEBwpAJQ@mail.gmail.com>
To: Klaus Hartke <hartke@tzi.org>
X-Mailer: Apple Mail (2.1084)
Cc: core@ietf.org
Subject: Re: [core] draft-ietf-core-link-format-11 - discover virtual hosted resources
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: Sat, 21 Apr 2012 06:40:05 -0000

On Apr 21, 2012, at 6:25 AM, Klaus Hartke wrote:

> Hi Zach,
> 
> On 15 April 2012 19:47, Zach Shelby <zach@sensinode.com> wrote:
>> What this means in practice is that the target for this relation has to be on the same origin server. The result is that if the target is an absolute URI, then the host part should be interpreted as a virtual host name (and thus should be included in the Uri-Host option). [...] There is no reason your virtual host name couldn't be really short though and thus just as efficient as using the Uri-Host field.
> 
> Do you mean a server like "sensor1.example.com" could advertise a
> virtual host "xy" rather than "temp.sensor1.example.com" in its
> well-known core?

There is no "sensor1.example.com" in the first place as you are not using DNS in this case. The origin server in this example would be identified by [2001:DB8::abcd]:5683. If /.well-known/core returns a link  <coap://xy/res> then maybe a cache should identify that as coap://xy.[2001:DB8::abcd]/res or in some other way associated with the IP address:port as this is the only unique identifier it could possibly have for the server. I do agree that is a bit awkward, other ideas?

Zach

> 
> What happens when two different servers both advertise a virtual host
> "xy"? Can a client with a cache use a stored response that is the
> result of retrieving resource "/res" of virtual host "xy" at
> [2001:DB8::abcd] to satisfy a request for resource "/res" of virtual
> host "xy" at [2001:DB8::9999]? The request URI is <coap://xy/res> in
> both cases.
> 
> 
> Klaus
> _______________________________________________
> core mailing list
> core@ietf.org
> https://www.ietf.org/mailman/listinfo/core

-- 
Zach Shelby, Chief Nerd, Sensinode Ltd.
http://www.sensinode.com
http://zachshelby.org  - My blog "On the Internet of Things"
http://6lowpan.net - My book "6LoWPAN: The Wireless Embedded Internet"
Mobile: +358 40 7796297