Re: Options for draft-ietf-6man-uri-zoneid

Brian E Carpenter <brian.e.carpenter@gmail.com> Mon, 30 April 2012 06:52 UTC

Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AAA4221F848B for <ipv6@ietfa.amsl.com>; Sun, 29 Apr 2012 23:52:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -100.922
X-Spam-Level:
X-Spam-Status: No, score=-100.922 tagged_above=-999 required=5 tests=[AWL=-0.566, BAYES_00=-2.599, HTTP_ESCAPED_HOST=0.134, J_CHICKENPOX_37=0.6, J_CHICKENPOX_53=0.6, NORMAL_HTTP_TO_IP=0.001, RCVD_ILLEGAL_IP=1.908, RCVD_IN_DNSWL_LOW=-1, 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 pwZEUk3xIhoi for <ipv6@ietfa.amsl.com>; Sun, 29 Apr 2012 23:52:07 -0700 (PDT)
Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by ietfa.amsl.com (Postfix) with ESMTP id A51DE21F8497 for <ipv6@ietf.org>; Sun, 29 Apr 2012 23:52:06 -0700 (PDT)
Received: by wibhj6 with SMTP id hj6so1972264wib.13 for <ipv6@ietf.org>; Sun, 29 Apr 2012 23:52:05 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:organization:user-agent:mime-version:to:cc :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=nu/+/ybpDWpTQiCuXALQkUOd28ZuRyXpLDkJnSGfwV4=; b=CA4m4YRRlyhKnkJcxmGyBVfw9qhkQs6gi56EX1n+SPmcP9dhS3AIQ2EtHT4b4Fja4a lm3vmwQ2a9fG/ZQ47GDjlJOi3cZB30kjtluyqktf40WbNjYtNHUth53x/K2bczn4q2YV n3AZTRJzpD3FPwfZktYMu14wPRFBNJdBw6yv7+C24kCs2+YW7gD/XpI27kOs8mOngxf1 fDv/0BFImH4pA4gnlQXQAZPDWHQGLlQm/2C14T0HI1im9skZKimA7AquMmn836TmxYQH kQIFDInF5MknK5jzBXodv5ikfKSklpV8STWlx85/h2IuVHrIQD5NrIxow7nDjvEw3YlS B+EQ==
Received: by 10.180.24.66 with SMTP id s2mr26457905wif.7.1335768725661; Sun, 29 Apr 2012 23:52:05 -0700 (PDT)
Received: from [192.168.1.65] (host-2-102-219-73.as13285.net. [2.102.219.73]) by mx.google.com with ESMTPS id 17sm26977838wis.0.2012.04.29.23.52.03 (version=SSLv3 cipher=OTHER); Sun, 29 Apr 2012 23:52:04 -0700 (PDT)
Message-ID: <4F9E368B.6010501@gmail.com>
Date: Mon, 30 Apr 2012 07:51:55 +0100
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Organization: University of Auckland
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
To: Kerry Lynn <kerlyn@ieee.org>
Subject: Re: Options for draft-ietf-6man-uri-zoneid
References: <4F9CF3A8.7000801@gmail.com> <CABOxzu3=Hu0coCofuXTRbCpjtudNk7LnH0BebTiYSd2W9JYmKg@mail.gmail.com>
In-Reply-To: <CABOxzu3=Hu0coCofuXTRbCpjtudNk7LnH0BebTiYSd2W9JYmKg@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
Cc: 6man <ipv6@ietf.org>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/ipv6>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Apr 2012 06:52:07 -0000

Kerry,

On 2012-04-29 23:50, Kerry Lynn wrote:
> On Sun, Apr 29, 2012 at 3:54 AM, Brian E Carpenter <
> brian.e.carpenter@gmail.com> wrote:
> 
>> Hi,
>>
>> In the IETF 83 discussion of draft-ietf-6man-uri-zoneid-00,
>> there was no clear consensus on the approach to pursue. In fact,
>> almost the same discussion occurred around draft-fenner-literal-zone
>> several years ago, but at that time the topic was simply dropped.
>>
>> This note summarises the main options. As a reminder, the problem to
>> be solved is how to tell a browser which interface to use when sending
>> packets to a literal link-local address. The reason for doing this is
>> purely for diagnostic purposes, since the Zone ID that identifies an
>> interface has no significance outside the sending host.
> 
> 
> "Purely" may be overly strong here.  When I mentioned in Paris that
> my mom might like to configure her spanking new IPv6 homenet router
> using http://[fe80::1%eth0] the way she currently uses http://192.168.1.1,
> it was met with much ROTFL'ing.  But hey, my mom is no slouch.
> 
> In a more immediate case, people are currently using browsers to connect
> to embedded 6LoWPAN web servers.  (Imagine a host with a 6LoWPAN
> link on one interface and ethernet on another.)  I use Firefox 3.2x for
> this,
> because it supports the syntax above just fine.
> 
> Are such cases included in the "diagnostic" designation?  It seems not.

Fair enough, this can easily be wordsmithed.

> 
> For more details,
>> see the two drafts mentioned above.
>>
>> What we have today: link local address with no Zone ID
>>   http://[fe80::a]
>>
>> The user cannot select the outgoing interface if there is more than one.
>>
>> The obvious solution would be to use the RFC4007 syntax (for an
>> example Zone ID of en1):
>>
>>   http://[fe80::a%en1]
>>
>> However, this is impossible because % is *always* an escape character in
>> URI syntax [RFC3986]. There is no chance of the URI community accepting
>> such a hack to the syntax, so it isn't an option for us.
>>
>> Well, this may be a case of "do what we mean, not what we say".   I agree
> that "%" is the first octet of pct-encoded, but it's not clear that
> pct-encoded
> is permissible in all productions.  To wit, ( unreserved / sub-delims / ":"
> ) and
> ( unreserved / pct-encoded / sub-delims / ":" ) are apparently not
> equivalent.
> The basis of some comments in Paris was that escaped chars are currently
> not permitted within IP-literal.  But I agree, in the end this may be an un-
> winnable battle.

Exactly. I don't claim to understand every nook and cranny of the syntax,
but in practice it's unwinnable.

> 
>> The available options are therefore
>>
>> 1) Leave the problem unsolved.
>>
>> This would mean that per-interface diagnostics would still have to be
>> performed using ping or ping6
>>
>>   ping fe80::a%en1
>>
>> Advantage: works today.
>>
>> Disadvantage: less convenient than using a browswer.
>>
>> And doesn't allow browsing; see above.  So I don't like this option.

Yes, I overlooked that rather obvious disadvantage...

> 
> 
>> 2) Escaping the escape character as allowed by RFC 3986:
>>
>>   http://[fe80::a%25en1]
>>
>> Advantage: allows use of browser.
>> Disadvantage: ugly and confusing, doesn't allow simple cut and paste.
>>
>> Well, if we took a purely *user-centric* approach, then we'd use a
> consistent syntax for all utilities.  We have an existence proof (Firefox
> 3.2x) that demonstrates the desired syntax is possible (and parsible).
> This option is just ugly.  If we have to map symbols, I'd rather use a
> 1:1 mapping than a 1:3 mapping.

If only we hadn't picked % in the first place...

> 
> 3) With alternative separator such as _
>>   http://[fe80::a_en1]
>>
>> Advantage: allows use of browser.
>> Disadvantage: doesn't allow simple cut and paste.
>>
>> This is the simplest of the four alternatives.  It seems at this point we
> could just discuss whether "_" is the best alternative.
> 
> 
>> 4) With the "IPvFuture" syntax left open in RFC 3986:
>>
>>   http://[v6.fe80::a_en1]
>>
>> Advantage: allows use of browser.
>> Disadvantage: ugly and redundant, doesn't allow simple cut and paste.
>>
>> Yikes!  This one just screams OVERSIGHT.  I would frankly prefer
> option 1 over having two ways to represent IPv6address.
> 
> Thanks, Brian and Bob, for taking this on.

No problem.

   Brian

> 
> -K-
> 
> 
>> Thus, the WG has to choose between options 1), 2), 3) and 4).
>>
>> Opinions welcome!
>>
>>    Brian Carpenter
>> --------------------------------------------------------------------
>> IETF IPv6 working group mailing list
>> ipv6@ietf.org
>> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
>> --------------------------------------------------------------------
>>
>