Re: [Sip] Re: URI comparison rules - IPv6 addresses

Paul Kyzivat <pkyzivat@cisco.com> Fri, 23 November 2007 16:33 UTC

Return-path: <sip-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1IvbTK-0007ns-21; Fri, 23 Nov 2007 11:33:42 -0500
Received: from sip by megatron.ietf.org with local (Exim 4.43) id 1IvbTI-0007Qt-De for sip-confirm+ok@megatron.ietf.org; Fri, 23 Nov 2007 11:33:40 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1IvbTH-0007J1-S7 for sip@ietf.org; Fri, 23 Nov 2007 11:33:39 -0500
Received: from sj-iport-2-in.cisco.com ([171.71.176.71] helo=sj-iport-2.cisco.com) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1IvbTD-0005eT-8u for sip@ietf.org; Fri, 23 Nov 2007 11:33:39 -0500
Received: from sj-dkim-4.cisco.com ([171.71.179.196]) by sj-iport-2.cisco.com with ESMTP; 23 Nov 2007 08:33:36 -0800
Received: from sj-core-5.cisco.com (sj-core-5.cisco.com [171.71.177.238]) by sj-dkim-4.cisco.com (8.12.11/8.12.11) with ESMTP id lANGXYsf031830; Fri, 23 Nov 2007 08:33:34 -0800
Received: from xbh-rtp-201.amer.cisco.com (xbh-rtp-201.cisco.com [64.102.31.12]) by sj-core-5.cisco.com (8.12.10/8.12.6) with ESMTP id lANGXQB7027588; Fri, 23 Nov 2007 16:33:32 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); Fri, 23 Nov 2007 11:33:30 -0500
Received: from [10.82.210.128] ([10.82.210.128]) by xfe-rtp-202.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 23 Nov 2007 11:33:29 -0500
Message-ID: <474700D9.7090809@cisco.com>
Date: Fri, 23 Nov 2007 11:33:29 -0500
From: Paul Kyzivat <pkyzivat@cisco.com>
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
To: Dale.Worley@comcast.net
Subject: Re: [Sip] Re: URI comparison rules - IPv6 addresses
References: <0JRV00ABOC070460@jes-fe1.zx.nl> <47448C1B.7000603@alcatel-lucent.com> <200711212343.lALNh17e006911@dragon.ariadne.com>
In-Reply-To: <200711212343.lALNh17e006911@dragon.ariadne.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
X-OriginalArrivalTime: 23 Nov 2007 16:33:29.0957 (UTC) FILETIME=[94A81950:01C82DEE]
DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=1880; t=1195835614; x=1196699614; c=relaxed/simple; s=sjdkim4002; 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]=20Re=3A=20URI=20comparison=20rules=20-=20IPv6=2 0addresses |Sender:=20; bh=MBgMzPhhzHYsq1qUHsvssvAGiLBTNNtScCUBHBQbmPY=; b=cfSz3kAWil+dbIaEsRD2s4NfhO2NClGuvnwb/R9KydrEVet8iLtMViSVnwtQATsvLSHZHog4 0dLuyF71nunEj1UefkZgA1Mu+pytDmvBGqEna/MISD9mwxzhl2vthhPI;
Authentication-Results: sj-dkim-4; header.From=pkyzivat@cisco.com; dkim=pass ( sig from cisco.com/sjdkim4002 verified; );
X-Spam-Score: -4.0 (----)
X-Scan-Signature: 769a46790fb42fbb0b0cc700c82f7081
Cc: sip@ietf.org
X-BeenThere: sip@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Session Initiation Protocol <sip.ietf.org>
List-Unsubscribe: <https://www1.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://www1.ietf.org/mailman/listinfo/sip>, <mailto:sip-request@ietf.org?subject=subscribe>
Errors-To: sip-bounces@ietf.org


Dale.Worley@comcast.net wrote:
>    From: "Vijay K. Gurbani" <vkg@alcatel-lucent.com>
> 
>    Jeroen van Bemmel wrote:
>    > Vijay,
>    > It's not only IPv6: what about 127.0.0.1 versus 127.000.000.1?
> 
>    Jeroen: Pedantically speaking, you are probably right.  But
>    in practice we do not generally see leading zeros in an IPv4
>    octet.
> 
> Even worse, in some places, including some early RFCs, the leading
> zero is used to indicate that the octet is represented in octal!
> 
> But I think Jeroen's point is actually well-taken, when comparing
> representations of IP addresses (not DNS names), the comparison is
> implicitly of the address represented, not the textual
> representation.  And this applies in IPv4 as well as IPv6.
> 
> In regard to loop detection, there are two approaches:  (1) Whatever
> attempts to detect loops can canonicalize the addresses before
> comparing them or whatever. 

I agree with all the above.

> (2) Since there are a limited number of
> likely representations of any address, having different entities use
> different representations will only delay loop detection, not prevent
> it.  And loops will be detected even if address comparisons have
> occasional false negatives.

While the number is *limited*, the limit is pretty large.

Consider an IPv4 address where each of the components requires only two 
digits. Then each can be represented two ways - with two digits or 
three. That means there are 16 different valid representations of the 
address. Of course it would be much worse for Ipv6 addresses.

Port numbers are worse. The syntax for the port number is 1*DIGIT. So a 
port number can be represented with *any* number of leading zeros.

Bottom line - I think you can't rely on exhausting all the permutations 
of hostport before detecting a loop.

	Thanks,
	Paul


_______________________________________________
Sip mailing list  https://www1.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