Re: URI-protocol mapping

Daniel LaLiberte <liberte@ncsa.uiuc.edu> Fri, 21 February 1997 19:30 UTC

Received: from cnri by ietf.org id aa17698; 21 Feb 97 14:30 EST
Received: from services.Bunyip.Com by CNRI.Reston.VA.US id aa20666; 21 Feb 97 14:30 EST
Received: (from daemon@localhost) by services.bunyip.com (8.8.5/8.8.5) id LAA01815 for uri-out; Fri, 21 Feb 1997 11:16:59 -0500 (EST)
Received: from mocha.bunyip.com (mocha.Bunyip.Com [192.197.208.1]) by services.bunyip.com (8.8.5/8.8.5) with SMTP id LAA01803 for <uri@services.bunyip.com>; Fri, 21 Feb 1997 11:16:55 -0500 (EST)
Received: from sdgmail.ncsa.uiuc.edu by mocha.bunyip.com with SMTP (5.65a/IDA-1.4.2b/CC-Guru-2b) id AA03604 (mail destined for uri@services.bunyip.com); Fri, 21 Feb 97 11:16:53 -0500
Received: from void.ncsa.uiuc.edu (void [141.142.103.20]) by ncsa.uiuc.edu (8.8.5/8.8.5) with ESMTP id KAA28296; Fri, 21 Feb 1997 10:16:49 -0600 (CST)
From: Daniel LaLiberte <liberte@ncsa.uiuc.edu>
Received: (from liberte@localhost) by void.ncsa.uiuc.edu (8.8.2/8.8.2) id KAA18104; Fri, 21 Feb 1997 10:16:44 -0600 (CST)
Date: Fri, 21 Feb 1997 10:16:44 -0600
Message-Id: <199702211616.KAA18104@void.ncsa.uiuc.edu>
To: touch@isi.edu
Cc: uri@bunyip.com
Subject: Re: URI-protocol mapping
In-Reply-To: <199702201904.AA04605@ash.isi.edu>
References: <199702201904.AA04605@ash.isi.edu>
Sender: owner-uri@bunyip.com
Precedence: bulk

touch@isi.edu writes:
 > At some point you must know
 > 	who you're talking with
 > 	what protocol to use

If you are resolving a URN, you need to do the same thing, as you also
pointed out (i.e. you need a protocol to find out what the protocol is).
And when resolving a URL, you might be given that same information as
a redirection.  Perhaps what you meant to say is:

  At some point, you must know when you have the thing you requested
  rather than an indirection to something else.

BTW, people interested in this subject should read:

  Decoupling the URL Scheme from the Transport Protocol
  http://www.ansa.co.uk/ANSA/ISF/decoupling.html

 > A URL is a context-independent absolute identifier.

Consider all the ways I listed for how URLs can, in fact, be resolved
that make them context dependent and relative.  What is wrong with any
of them?

 > > Certainly one must eventually get down to lower level primitives.
 > > But both URNs and URLs can do that, unless you restrict that URNs
 > > can not do that.
 > 
 > That's what I've been doing - the point is that, at some level, you
 > need the lowest level primitives. What do you call them, if not URLs?

It *is* possible to layer names above locations - this only makes
sense, as we discussed, if you restrict that names *cannot* resolve
directly to the objects but must return a location (or some
indirection).  But my claim is that it is not necessary to do so here
and there is no particular benefit in doing so.

Here are several ways in which a URN can resolve directly to the object.

The first looks almost like what people imagine, but there is an
important distinction from the perspective of the client.  The client
hands off a URN to be resolved by a proxy.  The proxy gets a URL back
and resolves the URL and returns the result to the client.  Note that
the client never saw the URL.

Now let's move that indirection out of the proxy up to the URN
resolver.  The client sends a URN to a URN resolver, but instead of
returning a URL, the URN resolver resolves that URL itself and returns
the result to the client.  The client still never saw the URL, and no
one else but the URL resolver saw the URL. (I can address the
efficiency issue later if you want.)

Now let's get rid of the URL altogether.  The client sends a URN to a
URN resolver.  The URN resolver maps the URN to some
protocol/server/path information (not in a URL), and sends the
appropriate request to the server and returns that result.  Not much
difference - there is no URL, but the equivalent information is used.

Now let's get rid of the necessary indirection in the URN resolver.
What happens if, instead of forwarding a request to another resolver,
the URN resolver does that subsequent resolution itself?  The URN
resolver becomes a document store, but so what?  (They might be very
small documents, after all.)  

You might claim that this loses persistence since the URN resolver
might go away.  But if the URN resolver goes away, *all* resolution
via that resolver would go away, even the URN-to-URL resolution.  You
might claim that the same URN could be resolved by another URN
resolver.  But which URN resolver is that?  There could be hundreds or
thousands.  We're back to guessing.


--
Daniel LaLiberte (liberte@ncsa.uiuc.edu)
National Center for Supercomputing Applications
http://union.ncsa.uiuc.edu/~liberte/