Re: [Roll] [roll] #105: trickle-mcast: how to determine scope of MPL domain

Dario Tedeschi <dat@exegin.com> Thu, 08 November 2012 19:10 UTC

Return-Path: <dat@exegin.com>
X-Original-To: roll@ietfa.amsl.com
Delivered-To: roll@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2109821F841C for <roll@ietfa.amsl.com>; Thu, 8 Nov 2012 11:10:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.155
X-Spam-Level:
X-Spam-Status: No, score=-3.155 tagged_above=-999 required=5 tests=[AWL=0.443, BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ROVA+y8W7qmQ for <roll@ietfa.amsl.com>; Thu, 8 Nov 2012 11:10:44 -0800 (PST)
Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by ietfa.amsl.com (Postfix) with ESMTP id 75E1521F8417 for <roll@ietf.org>; Thu, 8 Nov 2012 11:10:44 -0800 (PST)
Received: by mail-pb0-f44.google.com with SMTP id ro8so2398217pbb.31 for <roll@ietf.org>; Thu, 08 Nov 2012 11:10:44 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:x-gm-message-state; bh=Zsvv3xC+IuxhxFomMy367kf1Yic6TJinTHuhaRqNNpY=; b=YiUzvtHiUUUCLo4/4QlXXnG8sAaSsq9smx0jjSMVc57iUVJ4P255EqHQ4Ce81UrSiS eIg39nW6KDSVVkpnv24z0y/T15XJ2oSeC8NZrcyOnehWKnQfH1mAwe/Ls9hMGS2JCx82 TJDHhVr7Hs0yrAOuamNK/KeldSKZF5Oa0hfUBTi8a+mor436Faj7ePhVpLT6Hg0xzlJv SIRc/e5Hlk7BBRzpx2oriEUzFqWEPzPaSmtvlbdFsPrD5IJbrUZUycgUkflrkMSX5hR4 p8khFPpNNk2175zHafHVuJqGrciFsu/N5+J8QBVRRK9oT9reOAKA5jAnsU4JXwIMMUpH w89g==
Received: by 10.68.143.201 with SMTP id sg9mr27271166pbb.32.1352401844088; Thu, 08 Nov 2012 11:10:44 -0800 (PST)
Received: from [172.16.1.52] ([184.71.143.130]) by mx.google.com with ESMTPS id ix9sm16358112pbc.7.2012.11.08.11.10.42 (version=SSLv3 cipher=OTHER); Thu, 08 Nov 2012 11:10:43 -0800 (PST)
Message-ID: <509C03C2.50809@exegin.com>
Date: Thu, 08 Nov 2012 11:10:58 -0800
From: Dario Tedeschi <dat@exegin.com>
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:7.0) Gecko/20110922 Thunderbird/7.0
MIME-Version: 1.0
To: "Jonathan Hui (johui)" <johui@cisco.com>
References: <058.e817419e990e1afb26be9aa25d5cfc21@trac.tools.ietf.org> <B50D0F163D52B74DA572DD345D5044AF0F6EFA99@xmb-rcd-x04.cisco.com> <50932647.3050509@exegin.com> <B50D0F163D52B74DA572DD345D5044AF0F6F2837@xmb-rcd-x04.cisco.com> <5094202F.4010805@exegin.com> <B50D0F163D52B74DA572DD345D5044AF0F6F874A@xmb-rcd-x04.cisco.com>
In-Reply-To: <B50D0F163D52B74DA572DD345D5044AF0F6F874A@xmb-rcd-x04.cisco.com>
Content-Type: multipart/alternative; boundary="------------070202040307020805020506"
X-Gm-Message-State: ALoCoQk7G2QUpVqw64AqnJovqx1H+KSh5Wrq9GwJkQokwG3EZ3sQwZLrsbbkFgIG/3Q9wY9EJM63
Cc: "<roll@ietf.org>" <roll@ietf.org>, "<draft-ietf-roll-trickle-mcast@tools.ietf.org>" <draft-ietf-roll-trickle-mcast@tools.ietf.org>, "<mcr@sandelman.ca>" <mcr@sandelman.ca>
Subject: Re: [Roll] [roll] #105: trickle-mcast: how to determine scope of MPL domain
X-BeenThere: roll@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Routing Over Low power and Lossy networks <roll.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/roll>, <mailto:roll-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/roll>
List-Post: <mailto:roll@ietf.org>
List-Help: <mailto:roll-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/roll>, <mailto:roll-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 08 Nov 2012 19:10:46 -0000

Hi Jonathan

On 02/11/2012 10:18 PM, Jonathan Hui (johui) wrote:
>
> Hi Dario,
>
> Thanks for the detailed example - I see our disconnect now.
>
> With your approach (require link-local in the outer header), the IPv6 
> multicast address identifies the application endpoints *and* the MPL 
> domain.  For that reason, your approach really only needs a single 
> identifier to both limit the flooding scope and determine the 
> application endpoints.
It depends on what you mean by MPL domain. In my view,  FF02::MPL 
identifies the MPL domain, while the inner IPv6 destination address 
identifies the application endpoint.


>  I can see how that would work (as you demonstrated) if we make the 
> restriction that the IPv6 multicast addresses used within an MPL 
> domain have the same prefix that identifies the MPL domain itself. 
>  The trouble comes when you want to support the full generality that 
> IPv6 multicast addresses used by application endpoints can be arbitrary.

The "generality", you talk of, is why protocols like MLD exist. MLD 
informs routers of mc addresses other devices are interested in. 
Essentially it provides routing information. How could we support the 
"full generality" of mc addresses without this information (whether 
implied or from something like MLD).  With this in mind, I don't 
understand the need for non-link-local scope in the outer header, 
because the "generality" you seek would be determined by the mc address 
of the original packet (i.e. the mc address of the inner header). All my 
approach is really saying is that only the original/inner mc address 
determines how far a packet will propagate, regardless of routing 
domain. MPL could just be one of many routing domains a mc packet must 
traverse before reaching its furthermost boundary. Or MPL may be the 
only routing domain, where the mc packet only reaches a sub-set of 
devices within the domain (i.e. a multicast group or a set based on 
unicast-prefix-based mc).


>
> For example, how does MPL support an application that subscribes to a 
> well-known non-link-local IPv6 multicast address?  I guess one 
> approach is to say that if the IPv6 multicast address is not a 
> unicast-prefix-based multicast address, then it disseminates across 
> the entire region of connected MPL forwarders.

Granted one could have a situation where all routers hear an mc packet 
that is only intended for a subset of devices, but that does not mean 
all routers need to forward that packet or pass it to a higher layer. 
Again, this would depend on the inner mc address and the routing 
information available to routers. The routers without the appropriate 
routing information would not forward. Similarly, routers without mc 
membership information from an app would not pass the packet to the next 
higher layer.



>
> One minor point with your approach is that the delivery requires 
> processing the MPL Option of the outer header and the inner IPv6 
> header.  That isn't so nice from an architectural perspective, but 
> that is what we did with RFC 6553.

Using non-link-local in the outer header does not mitigate that. The 
forwarder still needs to look at the inner header to determine if the 
inner mc address is one an app is listening on. In fact implementing 
this is a bit messy compared to my approach, because the forwarder has 
to look ahead into the packet before decapsulating. My approach always 
requires decapsulation before making any decision about where the packet 
must go next. It's simpler and more consistent. I've actually had the 
fortune/misfortune of implementing both and I can safely say the 
link-local approach was cleaner.


>
> In my approach (allow non-link-local in the outer header), I tried to 
> separate out the identifiers for the application endpoints and the MPL 
> domain.  That is why I used the outer header's destination address to 
> identify the MPL domain and the inner header's destination address to 
> identify the application endpoints.  With this approach, it actually 
> becomes feasible to address situations where the devices within an MPL 
> domain subscribe to arbitrary IPv6 multicast addresses - not just ones 
> that are based on the unicast prefix.

Firstly, yes I agree the inner destination address should determine the 
application endpoint. What I'm not clear on is why we need an MPL domain 
to cover more than the LLN or why we need to support multiple MPL 
domains in one LLN. Tf the latter case is required to allow for 
different sets of MPL propagation parameters, then I'd imagine that 
should rather be handled by the HbH option.

- Dario

>
> --
> Jonathan Hui
>
> On Nov 2, 2012, at 12:34 PM, Dario Tedeschi <dat@exegin.com 
> <mailto:dat@exegin.com>> wrote:
>
>> On 01/11/2012 7:12 PM, Jonathan Hui (johui) wrote:
>>> On Nov 1, 2012, at 6:47 PM, Dario Tedeschi<dat@exegin.com>  wrote:
>>>
>>>> I don't understand what benefit is gained by allowing the use of non-link-local in the outer header, if encapsulation is required. Supporting both link-local and higher in the outer header just servers to complicate the forwarder.
>>> The purpose is to limit the extent to which MPL disseminates a packet to something smaller than the entire LLN (item 2).
>>
>> Isn't that what multicast groups and/or unicast-prefix-based 
>> multicasts are for? That is to say, to reach a defined set of devices.
>>
>>
>>>> Is item 2 a requirement that a subset of devices in the LLN participate in MPL forwarding and others don't, or is it that there are two MPL domains, or is it that one subset of devices are listening on multicast address A while others are listening on multicast address B? In any case, I don't see how the use of link-local scope in the *outer* header would not work.
>>> As mentioned above, the purpose is to limit the physical extent of MPL forwarders that disseminate a message.  If we use a link-local destination address in the outer header, how do you propose to limit the region?
>>
>> The destination in the inner header determines if the packet needs to 
>> be forwarded or not, or forwarded on a different interface.
>>
>>
>>>> As for encapsulation, using an MPL multicast address of the from FF02::00XX, in the outer header, would only add three bytes to the packet after 6lowpan compression.
>>> I agree.
>>>
>>> Maybe you could describe a concrete example of how using link-local addresses in the outer header would address Peter's scenario that he posted to the list?
>>
>> Example: Two border routers (BR1 and BR2) each forming a network:
>>
>> --- Network 1 (BR1) ---
>> Unicast prefix: FD01::/64
>> Unicast-prefix-based multicast address prefix: FF35:0040:FD01::/96
>>
>> --- Network 2 (BR2) ---
>> Unicast prefix: FD02::/64
>> Unicast-prefix-based multicast address prefix: FF35:0040:FD02::/96
>>
>>  1. A non-MPL aware node in network 1 wishes to send a multicast to
>>     all nodes in network 1.
>>  2. It sends to multicast address FF35:0040:FD01::1, un-encapsulated.
>>  3. The packet is received by a MPL router in network 2 (N2R1).
>>  4. N2R1 finds no higher layer listening to FF35:0040:FD01::1 and,
>>     therefore, does not pass the packet up.
>>  5. N2R1 finds no matching routing information for FF35:0040:FD01::1
>>     and does not forward the packet. The packet is, therefore,
>>     discarded.
>>  6. The packet is also received by a MPL router in network 1 (N1R1).
>>  7. N1R1 finds a higher layer listening to FF35:0040:FD01::1 and
>>     passes a copy of the packet up. Note: This would depend on
>>     whether or not any higher layers were actually interested in the
>>     mc group. Also, this step is not a prerequisite for the next step
>>     to occur.
>>  8. N1R1 finds matching routing information for FF35:0040:FD01::1,
>>     because it is a member of network FD01::/64
>>  9. N1R1 encapsulates the packet with a MPL HbH option such that the
>>     outer and inner destination addresses appear as:
>>     [FF02::MPL][FF35:0040:FD01::1], respectively.
>> 10. N1R1 transmits the new resulting packet.
>> 11. The packet is received by another MPL router in network 1 (N1R2).
>> 12. Seeing that the destination address is FF02::MPL, N1R2
>>     decapsulates the packet (i.e. the original packet exits the tunnel).
>> 13. N1R2 finds a higher layer listening to FF35:0040:FD01::1 and
>>     passes a copy of the inner packet up. Note: This step is not a
>>     prerequisite for the next step to occur.
>> 14. N1R2 also finds matching routing information for
>>     FF35:0040:FD01::1, because it is a member of network FD01::/64.
>> 15. N1R2 re-encapsulates the packet with the *original* MPL HbH
>>     option such that the outer and inner destination addresses appear
>>     as: [FF02::MPL][FF35:0040:FD01::1], respectively.
>> 16. N1R2 transmits the resulting packet.
>> 17. The packet is received by yet another MPL router in network 2
>>     (N2R2).
>> 18. Seeing that the destination address is FF02::MPL, N2R2
>>     decapsulates the packet (i.e. the original packet exits the tunnel).
>> 19. N2R2 finds no matching routing information or listener for
>>     FF35:0040:FD01::1 and, therefore, discards the packet.
>>
>>
>> Note:
>> I chose a non-MPL aware originator of a multicast packet, because I 
>> wanted to be more thorough. I could have chosen an example where the 
>> originator of the packet *was* a MPL aware device. In such a case, it 
>> would have encapsulated with its own MPL HbH option as if it were 
>> forwarding the packet (i.e. outer and inner destinations would have 
>> been [FF02::MPL][FF35:0040:FD01::1]). One complication of non-MPL 
>> aware devices sending non-link-local multicasts is the problem of 
>> fan-out: If such a device multicasts/broadcasts at the link-layer for 
>> IPv6 multicasts, then many MPL routers may hear the packet and try 
>> forward it with their own seeds. Although this wouldn't cause a real 
>> packet-storm, it would cause something close to it, depending on how 
>> many routers were in earshot of the originator. However, this is a 
>> general problem that has nothing to do with MPL's address scope.
>>
>> Secondly, notice that FF02::MPL can be viewed as a well defined 
>> address for a "tunnel exit point". It just so happens that it 
>> actually identifies multiple physical "exit points".
>>
>> - Dario
>>
>>
>