Re: RFC3484 destination address selection rule 2 is buggy

Sebastien Roy <Sebastien.Roy@Sun.COM> Tue, 18 March 2008 13:42 UTC

Return-Path: <ipv6-bounces@ietf.org>
X-Original-To: ietfarch-ipv6-archive@core3.amsl.com
Delivered-To: ietfarch-ipv6-archive@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 6384F28C5C3; Tue, 18 Mar 2008 06:42:55 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -100.623
X-Spam-Level:
X-Spam-Status: No, score=-100.623 tagged_above=-999 required=5 tests=[AWL=-0.186, BAYES_00=-2.599, FH_RELAY_NODNS=1.451, HELO_MISMATCH_ORG=0.611, RDNS_NONE=0.1, USER_IN_WHITELIST=-100]
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 dfcAjHzlDB8L; Tue, 18 Mar 2008 06:42:49 -0700 (PDT)
Received: from core3.amsl.com (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id CA8C53A6EF9; Tue, 18 Mar 2008 06:42:49 -0700 (PDT)
X-Original-To: ipv6@core3.amsl.com
Delivered-To: ipv6@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id DE6D03A6F01 for <ipv6@core3.amsl.com>; Tue, 18 Mar 2008 06:42:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
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 9paYl1z-wHQX for <ipv6@core3.amsl.com>; Tue, 18 Mar 2008 06:42:43 -0700 (PDT)
Received: from brmea-mail-2.sun.com (brmea-mail-2.Sun.COM [192.18.98.43]) by core3.amsl.com (Postfix) with ESMTP id 5DF473A6DEA for <ipv6@ietf.org>; Tue, 18 Mar 2008 06:42:43 -0700 (PDT)
Received: from fe-amer-09.sun.com ([192.18.109.79]) by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id m2IDeQ64013082 for <ipv6@ietf.org>; Tue, 18 Mar 2008 13:40:26 GMT
Received: from conversion-daemon.mail-amer.sun.com by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JXX00E01HJ1YY00@mail-amer.sun.com> (original mail from Sebastien.Roy@Sun.COM) for ipv6@ietf.org; Tue, 18 Mar 2008 07:40:26 -0600 (MDT)
Received: from [129.148.174.103] by mail-amer.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JXX007BSHZDRE00@mail-amer.sun.com>; Tue, 18 Mar 2008 07:40:26 -0600 (MDT)
Date: Tue, 18 Mar 2008 09:40:25 -0400
From: Sebastien Roy <Sebastien.Roy@Sun.COM>
Subject: Re: RFC3484 destination address selection rule 2 is buggy
In-reply-to: <429D4E65-2D89-4C04-A606-7C25481FD42D@cisco.com>
To: Fred Baker <fred@cisco.com>
Message-id: <47DFC649.7060204@sun.com>
Organization: Sun Microsystems
MIME-version: 1.0
References: <477387.44567.qm@web45515.mail.sp1.yahoo.com> <429D4E65-2D89-4C04-A606-7C25481FD42D@cisco.com>
User-Agent: Thunderbird 2.0.0.9 (X11/20080115)
Cc: Iljitsch van Beijnum <iljitsch@muada.com>, ipv6@ietf.org, Pekka Savola <pekkas@netcore.fi>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
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>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: ipv6-bounces@ietf.org
Errors-To: ipv6-bounces@ietf.org

Fred Baker wrote:
> Speaking for myself, there is a simpler rule in that special case  
> that imght be instructive in the ULA case.
> 
> There is no sense in using a link-local address as a source address  
> unless one is sending to someone on the same LAN. Hence, there is no  
> sense in suing a link-local address as the source if one cannot also  
> use one in the destination.
> 
> Similarly, there is no sense using a ULA source address unless the  
> destination is in the same ULA. If the destination is a global  
> address it might or might not be able to reply, but the sender can't  
> tell.
> 
> Hence, in sender address choice:
>    - use a link-local source address if and only if the destination  
> is a link-local address

In RFC3484-speak, do you mean that if the destination is global, then the 
candidate set must not contain link-local?  That makes sense to me.

Otherwise, if you're referring to a new selection rule for either source 
address selection or destination address ordering, there is no way to 
express "use a ... if and only if ...", as the language of a rule is, 
"prefer x over y".

>    - use a ULA source address if and only if the destination is a ULA  
> in the same prefix
>    - otherwise, use a global address
> 

So far, there are at least three ways to address this problem:

1. destination address ordering rule 2.5 that prefers destinations with 
non-link-local source addresses.

2. treat rfc1918 as global scope.

3. in source address selection, the candidate set should be comprised of 
addresses of equal or greater scope than the destination. (this isn't 
exactly how it has been expressed, but that's how I'm interpreting what's 
been said at the moment.)

IMO, #2 seems like the simplest approach, and #3 is also not a bad idea. 
  #1 is probably overkill.  I'd consider implementing both #2 and #3.

-Seb
--------------------------------------------------------------------
IETF IPv6 working group mailing list
ipv6@ietf.org
Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
--------------------------------------------------------------------