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

Paul Kyzivat <pkyzivat@cisco.com> Fri, 19 December 2008 00:14 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 69BF33A68BC; Thu, 18 Dec 2008 16:14:51 -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 DB5FF3A68BC for <sip@core3.amsl.com>; Thu, 18 Dec 2008 16:14:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.973
X-Spam-Level:
X-Spam-Status: No, score=-5.973 tagged_above=-999 required=5 tests=[AWL=-0.574, BAYES_00=-2.599, J_CHICKENPOX_37=0.6, J_CHICKENPOX_39=0.6, RCVD_IN_DNSWL_MED=-4]
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 SU3OpNR1U0Fv for <sip@core3.amsl.com>; Thu, 18 Dec 2008 16:14:47 -0800 (PST)
Received: from rtp-iport-1.cisco.com (rtp-iport-1.cisco.com [64.102.122.148]) by core3.amsl.com (Postfix) with ESMTP id 2E6B53A67FA for <SIP@ietf.org>; Thu, 18 Dec 2008 16:14:47 -0800 (PST)
X-IronPort-AV: E=Sophos;i="4.36,245,1228089600"; d="scan'208";a="31545699"
Received: from rtp-dkim-1.cisco.com ([64.102.121.158]) by rtp-iport-1.cisco.com with ESMTP; 19 Dec 2008 00:14:36 +0000
Received: from rtp-core-2.cisco.com (rtp-core-2.cisco.com [64.102.124.13]) by rtp-dkim-1.cisco.com (8.12.11/8.12.11) with ESMTP id mBJ0EbQm001267; Thu, 18 Dec 2008 19:14:37 -0500
Received: from xbh-rtp-201.amer.cisco.com (xbh-rtp-201.cisco.com [64.102.31.12]) by rtp-core-2.cisco.com (8.13.8/8.13.8) with ESMTP id mBJ0EbSf017009; Fri, 19 Dec 2008 00:14:37 GMT
Received: from xfe-rtp-202.amer.cisco.com ([64.102.31.21]) by xbh-rtp-201.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 18 Dec 2008 19:14:37 -0500
Received: from [161.44.174.168] ([161.44.174.168]) by xfe-rtp-202.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 18 Dec 2008 19:14:36 -0500
Message-ID: <494AE76C.7090301@cisco.com>
Date: Thu, 18 Dec 2008 19:14:36 -0500
From: Paul Kyzivat <pkyzivat@cisco.com>
User-Agent: Thunderbird 2.0.0.18 (Windows/20081105)
MIME-Version: 1.0
To: Brett Tate <brett@broadsoft.com>
References: <BBE61D1553D8A34F812FF87377B2935F06268200@ATL1VEXC020.usdom003.tco.tc>
In-Reply-To: <BBE61D1553D8A34F812FF87377B2935F06268200@ATL1VEXC020.usdom003.tco.tc>
X-OriginalArrivalTime: 19 Dec 2008 00:14:36.0708 (UTC) FILETIME=[C6D78640:01C9616E]
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; l=4108; t=1229645677; x=1230509677; c=relaxed/simple; s=rtpdkim1001; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=pkyzivat@cisco.com; z=From:=20Paul=20Kyzivat=20<pkyzivat@cisco.com> |Subject:=20Re=3A=20[Sip]=20Question=20regarding=20conflict ing=20grammar=20for=20IPV6=20SIP=20URI=0A=20andRFC=203986 |Sender:=20 |To:=20Brett=20Tate=20<brett@broadsoft.com>; bh=XMSWmbISA+SAaprbqnZvhNtmPz9j8Xfs8I2VuTQm6RU=; b=cu3I5/6yKKnGkLWODOO4klrzrPBlVvo2vHVcAGRpgJMSjctgjveUCt2y2g hme9/bOz+e4GnFYz/SxuQ8UULkNktvI4WHMjJXpn8y/bqCrH6aLlpGH4tgkR hZ9orKGuq+;
Authentication-Results: rtp-dkim-1; header.From=pkyzivat@cisco.com; dkim=pass ( sig from cisco.com/rtpdkim1001 verified; );
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-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: sip-bounces@ietf.org
Errors-To: sip-bounces@ietf.org


Brett Tate 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).

3986 accomodates IPv6 addresses within in "authority" which seems to 
serve roughly the same role as "[ userinfo ] hostport" in SIP-URI. But 
"authority" is always preceded by "//", so it doesn't work for sip.

To fit a sip uri within 3986 I think you must start with:

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

    hier-part     = path-rootless

    path-rootless = segment-nz *( "/" segment )

    segment-nz    = 1*pchar

    pchar         = unreserved / pct-encoded / sub-delims / ":" / "@"

    unreserved    = ALPHA / DIGIT / "-" / "." / "_" / "~"

Not only does the above exclude the IPv6 syntax, it also excludes lots 
of other things that are commonly used in the userinfo portion of sip URIs.

I don't know if this is of practical concern or not. The SIP URI is 
defined by 3261. Certainly 3261 didn't call for it to be compatible with 
3986. Yet it would be *nice* if it was for compatibility with software 
that treats URIs, including SIP URIs generically. But I don't know how 
important that is in practice.

To fit 3986 well, I think would have to aim for fitting into:

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

       hier-part   = "//" authority path-abempty

       authority   = [ userinfo "@" ] host [ ":" port ]

But that would require SIP-URIs like sip://alice@atlanta.com
and I don't think we are going to migrate to that any time soon.

Don't mailto URIs have similar problems? What are they doing about it?

	Thanks,
	Paul


> 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