Re: [Sip] Question regarding conflicting grammar for IPV6 SIP URI andRFC 3986

"Hisham Khartabil" <hisham.khartabil@gmail.com> Fri, 19 December 2008 00:08 UTC

Return-Path: <sip-bounces@ietf.org>
X-Original-To: sip-archive@optimus.ietf.org
Delivered-To: ietfarch-sip-archive@core3.amsl.com
Received: from [127.0.0.1] (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id AADED3A6804; Thu, 18 Dec 2008 16:08:52 -0800 (PST)
X-Original-To: sip@core3.amsl.com
Delivered-To: sip@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 331513A6804 for <sip@core3.amsl.com>; Thu, 18 Dec 2008 16:08:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.273
X-Spam-Level:
X-Spam-Status: No, score=-1.273 tagged_above=-999 required=5 tests=[AWL=0.125, BAYES_00=-2.599, HTML_MESSAGE=0.001, J_CHICKENPOX_37=0.6, J_CHICKENPOX_39=0.6]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Oji+pnCti3OC for <sip@core3.amsl.com>; Thu, 18 Dec 2008 16:08:49 -0800 (PST)
Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.225]) by core3.amsl.com (Postfix) with ESMTP id CD3B43A67FA for <SIP@ietf.org>; Thu, 18 Dec 2008 16:08:49 -0800 (PST)
Received: by rv-out-0506.google.com with SMTP id b25so622917rvf.49 for <SIP@ietf.org>; Thu, 18 Dec 2008 16:08:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=2+Dn1ujRwuZGa0wy/vDWdmEsaiG1uSStY/bvyUzJMf4=; b=Hae2MPfrUtRsEU0605OC8a7/YQUsNqRRx2AsxThVqwNjbQRJqQzc6cjaZfk4X3D/fw Burqp8put6JPdDRxzPqRK1nt6MDWZqTEfB53Ub0JD07oI1JxhpzWWoaB1F1N7mHpPkmt MOmjoleJdRHfxGrfLsu+9WpSb5VBMK77DbBPE=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=L9uNK2ulrKWQKDjKVrwGfxJ8fibnf2OEOvTeNE+fhjyJdlOjerSACm6hJnwgvbM4S3 BSuxh00qCQlbiu78/3k++WYrzF+drf0nNHm/kPaKRDagMgGcLnVx4TLwtCPkULfjOm0m vIDZSMKLq1VouELBqWwHPkJnwp4nNjhG7KX48=
Received: by 10.140.202.21 with SMTP id z21mr1258739rvf.68.1229645321819; Thu, 18 Dec 2008 16:08:41 -0800 (PST)
Received: by 10.141.185.13 with HTTP; Thu, 18 Dec 2008 16:08:41 -0800 (PST)
Message-ID: <66cd252f0812181608wfb4deedo95be23b534721a3e@mail.gmail.com>
Date: Fri, 19 Dec 2008 11:08:41 +1100
From: Hisham Khartabil <hisham.khartabil@gmail.com>
To: Brett Tate <brett@broadsoft.com>
In-Reply-To: <BBE61D1553D8A34F812FF87377B2935F06268200@ATL1VEXC020.usdom003.tco.tc>
MIME-Version: 1.0
References: <494AD1EA.30506@alcatel-lucent.com> <BBE61D1553D8A34F812FF87377B2935F06268200@ATL1VEXC020.usdom003.tco.tc>
Cc: SIP@ietf.org
Subject: Re: [Sip] Question regarding conflicting grammar for IPV6 SIP URI andRFC 3986
X-BeenThere: sip@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Session Initiation Protocol <sip.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/sip>, <mailto:sip-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:sip@ietf.org>
List-Help: <mailto:sip-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sip>, <mailto:sip-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1567123957=="
Sender: sip-bounces@ietf.org
Errors-To: sip-bounces@ietf.org

RFC3896, section 3.2.2 says:

"A host identified by an Internet Protocol literal address, version 6
   [RFC3513] or later, is distinguished by enclosing the IP literal
   within square brackets ("[" and "]").  This is the only place where
   square bracket characters are allowed in the URI syntax."

It looks like RFC3896 has the error, the definition for URI needs to updated
to be the following:

     URI         = scheme ":" hier-part [ "?" query ] [ "#" fragment ]

      hier-part   = "//" authority path-abempty
                  / path-absolute
                  / path-rootless
                  / path-empty
                  / authority


Regards,
Hisham


On 19/12/2008, Brett Tate <brett@broadsoft.com> wrote:
>
> Intentional or not, the sip-uri (excluding IPv6reference) appears to not
> violate extending rfc2396's absoluteURI because the definition was a
> structured subset of opaque_part.  However the introduction of brackets
> to enclose an IPv6 address causes the sip-uri to no longer be a valid
> absoluteURI (rfc2396) or absolute-URI (rfc3986).
>
> I'm currently not sure if a fix is really needed or how best to correct
> it.  Escaping the brackets might work; however that might cause more
> headaches.
>
>
> > -----Original Message-----
> > From: Vijay K. Gurbani [mailto:vkg@alcatel-lucent.com]
> > Sent: Thursday, December 18, 2008 5:43 PM
> > To: Brett Tate
> > Cc: SIP@ietf.org
> > Subject: Re: [Sip] Question regarding conflicting grammar for
> > IPV6 SIP URI andRFC 3986
> >
> > Brett Tate wrote:
> > > Greetings,
> > >
> > > Mike's interpretation looks correct.  Is this something
> > that should be
> > > fixed?  If so, should the fix be placed within
> > > draft-ietf-sip-ipv6-abnf-fix?
> >
> > What should the fix be?  Mike's claim is that rfc3261
> > violates rfc3986, yet rfc3986 is internally consistent in
> > that it requires IPv6 literals to be enclosed in "[" and "]",
> > viz:
> >
> >     IP-literal = "[" ( IPv6address / IPvFuture  ) "]"
> >
> > At the same time, rfc3261 is internally consistent in that it
> > requires IPv6reference to be enclosed in "[" and "]", viz:
> >
> >    IPv6reference  =  "[" IPv6address "]"
> >
> > Furthermore, I don't think the intent is to produce SIP-URI
> > (as defined in rfc3261) from a URI (as defined in rfc3986), is it?
> > Note that rfc3986 defines URI as:
> >
> >    URI = scheme ":" hier-part ...
> >    heir-part = "//" ...
> >
> > If this was true, a SIP URI would need to be produced as:
> >
> >    sip://[2001:db8:10] ...
> >
> > In other words, I am trying to understand what the exact
> > problem is before we try to figure out where to put the fix in...
> >
> > Thanks,
> >
> > - vijay
> > --
> > Vijay K. Gurbani, Bell Laboratories, Alcatel-Lucent 1960
> > Lucent Lane, Rm. 9C-533, Naperville, Illinois 60566 (USA)
> > Email: vkg@{alcatel-lucent.com,bell-labs.com,acm.org}
> > Web:   http://ect.bell-labs.com/who/vkg/
> >
> _______________________________________________
> Sip mailing list  https://www.ietf.org/mailman/listinfo/sip
> This list is for NEW development of the core SIP Protocol
> Use sip-implementors@cs.columbia.edu for questions on current sip
> Use sipping@ietf.org for new developments on the application of sip
>
_______________________________________________
Sip mailing list  https://www.ietf.org/mailman/listinfo/sip
This list is for NEW development of the core SIP Protocol
Use sip-implementors@cs.columbia.edu for questions on current sip
Use sipping@ietf.org for new developments on the application of sip