Re: [core] Call for reviews of draft-castellani-core-http-mapping

Carsten Bormann <cabo@tzi.org> Tue, 26 March 2013 15:30 UTC

Return-Path: <cabo@tzi.org>
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 A8B1321F8C82 for <core@ietfa.amsl.com>; Tue, 26 Mar 2013 08:30:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.947
X-Spam-Level:
X-Spam-Status: No, score=-105.947 tagged_above=-999 required=5 tests=[AWL=0.302, BAYES_00=-2.599, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
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 SAo+C8NLKF7v for <core@ietfa.amsl.com>; Tue, 26 Mar 2013 08:30:34 -0700 (PDT)
Received: from informatik.uni-bremen.de (mailhost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::12]) by ietfa.amsl.com (Postfix) with ESMTP id 966F221F8C77 for <core@ietf.org>; Tue, 26 Mar 2013 08:30:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de
Received: from smtp-fb3.informatik.uni-bremen.de (smtp-fb3.informatik.uni-bremen.de [134.102.224.120]) by informatik.uni-bremen.de (8.14.4/8.14.4) with ESMTP id r2QFUQAZ005525; Tue, 26 Mar 2013 16:30:26 +0100 (CET)
Received: from [192.168.217.135] (p54893BDF.dip.t-dialin.net [84.137.59.223]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp-fb3.informatik.uni-bremen.de (Postfix) with ESMTPSA id 40BB03AE0; Tue, 26 Mar 2013 16:30:26 +0100 (CET)
Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\))
Content-Type: text/plain; charset="iso-8859-1"
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <5151B631.9050607@intec.ugent.be>
Date: Tue, 26 Mar 2013 16:30:25 +0100
Content-Transfer-Encoding: quoted-printable
Message-Id: <8789149E-312B-476D-B68E-FB69F52E75F0@tzi.org>
References: <0C9867A6-AED5-4063-88AE-E9D1C6CDE75E@tzi.org> <5151B631.9050607@intec.ugent.be>
To: Floris Van den Abeele <floris.vandenabeele@intec.ugent.be>
X-Mailer: Apple Mail (2.1503)
Cc: core WG <core@ietf.org>
Subject: Re: [core] Call for reviews of draft-castellani-core-http-mapping
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: Tue, 26 Mar 2013 15:30:34 -0000

On Mar 26, 2013, at 15:52, Floris Van den Abeele <floris.vandenabeele@intec.ugent.be> wrote:

> My problem lies with a cross protocol proxy (XPP) with the following interface http://www.proxy.com/.wellknown/core-translate/1.2.3.4_4567/foo/bar?a=3 (which is translated to coap://1.2.3.4:4567/foo/bar?a=3). This is also said to be an example of a reverse proxy (right?). However, in this case the HTTP client is aware that the XPP isn't the origin server,

Actually, it may not be -- this URI may have been supplied by a server to the client, and clients aren't supposed to be snooping into the structure of URI path anyway.

> the actual origin server is mentioned in the request, so I would say it resembles a forward XPP. Reading section 10.2 of the core coap spec seems to confirm this (one difference is that the coap scheme is omitted in the 2nd example, but it is implied anyway).

Defining a convention for how a reverse cross-proxy builds the URIs under which it offers the resources of an origin server might look like allowing a client to use the reverse cross-proxy as if it were a forward-proxy.  And that may actually be a benefit of such a convention, because it is hard to carry forward-proxy configuration information through client APIs (and, even more, through sequences of prepended proxies).  But I would expect these reverse proxies to make their URIs available through a resource directory, so there may never be a need for a client to compute a URI.  The convention would then just help in understanding what is going on, and in sending diagnostic requests to a reverse cross-proxy.

Grüße, Carsten