Re: RFC 6724 and draft-baker-6man-multi-homed-host

Brian E Carpenter <brian.e.carpenter@gmail.com> Mon, 24 August 2015 20:46 UTC

Return-Path: <brian.e.carpenter@gmail.com>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id CB1F21B2B14 for <ipv6@ietfa.amsl.com>; Mon, 24 Aug 2015 13:46:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.7
X-Spam-Level:
X-Spam-Status: No, score=-1.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, MIME_8BIT_HEADER=0.3, SPF_PASS=-0.001] autolearn=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BTtlaDwIXrtc for <ipv6@ietfa.amsl.com>; Mon, 24 Aug 2015 13:46:17 -0700 (PDT)
Received: from mail-pa0-x232.google.com (mail-pa0-x232.google.com [IPv6:2607:f8b0:400e:c03::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D3E691B2B11 for <ipv6@ietf.org>; Mon, 24 Aug 2015 13:46:16 -0700 (PDT)
Received: by padfo6 with SMTP id fo6so1484567pad.3 for <ipv6@ietf.org>; Mon, 24 Aug 2015 13:46:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=iRQ34aPRWp4tUrMJ0kWQw/Wh54GMX9Ct/HFI+KEL5/4=; b=kOA7GoFh0ajavkPJFdxQPihqx6Ayws7sKYGgGH1H5/2jVoRkv4s1uWGF5QQ/Meku9U uTklXFuIosd83xkTDs3jKID/LMVr0Q9/u4G5RUciRb37TSTrpDc8k8ff6OTYJgMRoX04 bumYlE4g4QRw3GEYwj1Oed6MK06a4LPyFh9sGW3vnkLdWl7Gh5+g0SkBZ8bIIDex1rxw ry4TscwuP0x39Ug3VgepoxFlNujexPuHx3cORgCQGnASZnguADuyu6kGDO5G2/zKNb+Y 82s85VbsDU+XWkil10v3XQcd3ASWcmeUqaTAmhBTyaVSKz9fAwSTrEAr/tfGY0EaJaAU GqzQ==
X-Received: by 10.68.136.68 with SMTP id py4mr48978811pbb.70.1440449176434; Mon, 24 Aug 2015 13:46:16 -0700 (PDT)
Received: from ?IPv6:2406:e007:6b5e:1:28cc:dc4c:9703:6781? ([2406:e007:6b5e:1:28cc:dc4c:9703:6781]) by smtp.gmail.com with ESMTPSA id f5sm18482050pas.23.2015.08.24.13.46.13 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Aug 2015 13:46:15 -0700 (PDT)
Subject: Re: RFC 6724 and draft-baker-6man-multi-homed-host
To: "Mudric, Dusan (Dusan)" <dmudric@avaya.com>, 神明達哉 <jinmei@wide.ad.jp>
References: <mailman.4779.1440063427.3844.ipv6@ietf.org> <9142206A0C5BF24CB22755C8EC422E457A83BFAA@AZ-US1EXMB03.global.avaya.com> <CAJE_bqdGq0SJqRR3iK_PFkX6xcJsykydc9k1VTnapar2ek12sg@mail.gmail.com> <55D63C75.30906@gmail.com> <9142206A0C5BF24CB22755C8EC422E457A83D1D9@AZ-US1EXMB03.global.avaya.com>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Organization: University of Auckland
Message-ID: <55DB8295.8080003@gmail.com>
Date: Tue, 25 Aug 2015 08:46:13 +1200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
MIME-Version: 1.0
In-Reply-To: <9142206A0C5BF24CB22755C8EC422E457A83D1D9@AZ-US1EXMB03.global.avaya.com>
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
Archived-At: <http://mailarchive.ietf.org/arch/msg/ipv6/mnH1fn6KVfdyFjwg4-Q-99cs4HU>
Cc: "ipv6@ietf.org" <ipv6@ietf.org>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.15
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: <https://mailarchive.ietf.org/arch/browse/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, 24 Aug 2015 20:46:19 -0000

Dusan,

We wanted to avoid an "Updates: 4861" on this draft. If the WG wants
to do that, of course, it would be possible, but that wasn't what we
heard the WG Chairs asking us to do in Prague.

I agree that we are adding an extra step (match the source prefix)
before applying the rule in RFC4861 section 6.3.6.

>> How is the host network in Figure 5 of
>> https://datatracker.ietf.org/doc/draft-sarikaya-6man-sadr-overview/?include_text=1 going to do ingress filtering of the replies? If the host selects a source address based on Router 1 prefix and sends a packet over Routre 2, what will happen with the reply?
>> 

I'm not sure I understand the question. If Provider 2 is applying a BCP38
filter, the packet will be dropped and there is no reply. If it's not
filtering, what's the problem? Routes don't have to be symmetric.

Regards
    Brian




On 25/08/2015 06:28, Mudric, Dusan (Dusan) wrote:
>>>>>> For the main purpose of this draft, the most important thing is to 
>>>>>> choose the right default router for a given source address, right?
>>>>>> In that sense, the more important part of Section 3 is the third
>>>>>> paragraph:
>>>>>>
>>>>>>    A host SHOULD select a "default gateway" for each source prefix it
>>>>>>    uses to form an address or is assigned an address in.  [...]
>>>>>
>>>>> Agreed.
>>>
>>>> Isn't that reverse? Isn't RFC 6724 Rule 5.5 about the selection of 
>>>> the next hop to the destination D first? Once the next hop is known, 
>>>> the sender can select the right source address based on the prefix 
>>>> the next hop advertised. When sending very first packet, how can a 
>>>> sender find out which next hop to use to get to D?
>>>
>>> Yeah, this part can be confusing.  I tried to clarify this point in 
>>> my latest suggested text:
>>> https://urldefense.proofpoint.com/v2/url?u=https-3A__mailarchive.ietf.
>>> org_arch_msg_ipv6_CbcuKOGo8cT51vlFhs6Cn7uU1Eg&d=BQIFaQ&c=BFpWQw8bsuKp
>>> l 
>>> 1SgiZH64Q&r=UT3Bk9cbLeaJxhf3iCrhIoUWB8YLZU23029sMQGQ2kY&m=AfH2l_yohlp
>>> h
>>> vHs-Y653jRl9gZU09WL7jxWupPi0u-M&s=maP3fNpwiUXch5vOcknWa0Ku8iNbD-qhMLB
>>> 6 iVpN5Gg&e= Hopefully it now makes more sense and is more compatible 
>>> with RFC 6724.
>>
>> The draft describes what to to do given that a certain source address has been chosen. RFC 6724 describes how to choose a source address. These are logically distinct actions but if they are both performed correctly things will work better.
>>
>>    Brian
>>
> [Dusan 1]
> Can draft state the distinction between RFCs 6724, 4861 and the new ideas in simple terms? May be in abstract. RFC 6724 rule 5.5 selects a source address based on a router that can reach the destination. My understanding is that draft modifies RFC 4861, section 5.2 "Sending Algorithm ". If that is the case, the draft should state the new algorithm. For example, what should be in the entries of the prefix list and/or router list, and how the next hop should be determined for off-link destinations.
>     Dusan
> 
> [Dusan 2] 
> Thanks for the updates: 
>> Diff:           https://urldefense.proofpoint.com/v2/url?u=https-3A__www.ietf.org_rfcdiff-3Furl2-3Ddraft-2Dbaker-2D6man-2Dmulti-2Dhomed-2Dhost-2D02&d=BQICAg&c=BFpWQw8bsuKpl1SgiZH64Q&r=UT3Bk9cbLeaJxhf3iCrhIoUWB8YLZU23029sMQGQ2kY&m=IbxK_IXn_y7zFuoQD4lzFQye0gOz5f2yvE4sZbycEZ4&s=pBvsn1TWUHlCTGgjUdBiU1iNjoYD8GIQt3rBZQFL5EU&e= 
> 
> The algorithm is still not accurately defined. I can coauthor the draft with you. I suggest adding section 3.1 "Sending Algorithm" and defining differences to RFC 4861. Here is my proposal for "Sending Algorithm"
> 
> 3. Reasonable expectations of the host
> 	   There is an interaction with Default Address Selection [RFC6724].	
> 	   Rule 5.5 of that specification states that the source address used when	
> 	   sending to a given destination address should, if possible, be chosen for	
> 	    a prefix known to be advertised by the first-hop router for that	
> 	   destination.  This draft defines rules how hosts remember which first-hop routers
>                  advertised which prefixes and how to use these prefixes while sending packets.
> 
> 3.1 Sending Algorithm
> RFC 4861, section 5.2, defines sending algorithm. It uses a combination of the Destination Cache Entry (DCE) table, the Prefix List, and the Default Router List to determine the IP address of the appropriate next hop. The next hop can be either on-link neighbor or a first hop router. If there is no DCE table entry that matches the destination address and there is no matching destination address prefix in the Prefix List, a packet is sent to the selected first hop router. RFC 4861, section 6.3.6,  "Default Router Selection" selects the first hop router based the router reachability or a round-robin fashion. This algorithm does not guarantee the packet from a multi-homed hosts will be sent via the next hop to the destination D. This draft defines further improvements to RFC 4861 to facilitate better first hop router selection.
> 
> When a host receives RA message, RFC 4861 section 6.3.4 "Processing Received Router Advertisements" needs to add that the host should update the entry in the Default Router List with the list of prefixes the router advertised. When a prefix is removed from the Prefix List, it must be removed from the entry in the Default Router List.
> 
> When a multi-homed host is sending a packet to off-link destination, it will first select a source address. RFC 6724 SASA rule 5.5 might be used to select the source address. The packet has matching {Source_IP, Destianton_IP} pair needed to pass ISP ingress filtering. The next step is a first hoop router selection. The existing RFC 4861 "Default Router Selection" needs to be modified to use the SASA selected source address for the next hope router selection. During the default router selection the host will prefer the entry from the Default Router List which has the prefix of the selected source address. The selected next hop entry is put in the DCE table. The packet is sent over the selected first hop router. Destination ISP network ingress filtering will not discard the packet because the source address has the matching prefix for the destination subnet. Subsequent packets are sent based on the destination IPv6 address and the DCE table entry match.
> 
> Assumption of rule SASA 5.5  is that the SASA selected source address is based on an advertised prefix. If destination D is reachable over the first hop that did not advertise the address prefix, the implementation should add the destination address to the first-hop router entry in the Default Router List. This address can be used during Default Router Selection to select the first hop router for the off-link destination address.
> ===========================================================================================
> 
> With this algorithm, there is no need to refer to 'history' "When a host makes a successful exchange with a remote destination using a particular source address". The send algorithm does not start with a successful exchange. This assumption about successful send process is based on a random send algorithm and should not be used in the draft. The whole paragraph should be removed. The proposed algorithm above refers to the DCE entry instead. DCE table contains the history of the  first sent packet.
> 
> We also need to answer questions regarding SASA rule 5.5. The rule says to select the next-hop that will be used to send to D. It does not say how to select the next-hop. We need exact steps to make sure the first hop router is always properly selected. What are the steps to select the next-hop based on the destination IPv6 address?
> 
> How is the host network in Figure 5 of 
> https://datatracker.ietf.org/doc/draft-sarikaya-6man-sadr-overview/?include_text=1  going to do ingress filtering of the replies? If the host selects a source address based on Router 1 prefix and sends a packet over Routre 2,  what will happen with the reply?
> 
> Dusan
>