Re: [Roll] [roll] #95: Why need stop flag? Is the receipt of DRO not sufficient to indicate completion of route discovery?

C Chauvenet <c.chauvenet@watteco.com> Wed, 11 April 2012 14:05 UTC

Return-Path: <c.chauvenet@watteco.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 11F0B11E80B0 for <roll@ietfa.amsl.com>; Wed, 11 Apr 2012 07:05:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.714
X-Spam-Level:
X-Spam-Status: No, score=-3.714 tagged_above=-999 required=5 tests=[AWL=-0.115, BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id d91+30SMBTjR for <roll@ietfa.amsl.com>; Wed, 11 Apr 2012 07:05:41 -0700 (PDT)
Received: from va3outboundpool.messaging.microsoft.com (va3ehsobe010.messaging.microsoft.com [216.32.180.30]) by ietfa.amsl.com (Postfix) with ESMTP id 1B0F311E8074 for <roll@ietf.org>; Wed, 11 Apr 2012 07:05:40 -0700 (PDT)
Received: from mail106-va3-R.bigfish.com (10.7.14.248) by VA3EHSOBE007.bigfish.com (10.7.40.11) with Microsoft SMTP Server id 14.1.225.23; Wed, 11 Apr 2012 14:05:39 +0000
Received: from mail106-va3 (localhost [127.0.0.1]) by mail106-va3-R.bigfish.com (Postfix) with ESMTP id CA75B12007C; Wed, 11 Apr 2012 14:05:39 +0000 (UTC)
X-SpamScore: -13
X-BigFish: VPS-13(z4b6Kzc89bh1dbaL1432Nzz1202hzzz2dh2a8h668h839hd25h)
X-Forefront-Antispam-Report: CIP:157.56.248.181; KIP:(null); UIP:(null); IPV:NLI; H:AMXPRD0510HT004.eurprd05.prod.outlook.com; RD:none; EFVD:NLI
Received: from mail106-va3 (localhost.localdomain [127.0.0.1]) by mail106-va3 (MessageSwitch) id 1334153137221188_29233; Wed, 11 Apr 2012 14:05:37 +0000 (UTC)
Received: from VA3EHSMHS023.bigfish.com (unknown [10.7.14.251]) by mail106-va3.bigfish.com (Postfix) with ESMTP id 20E892A0069; Wed, 11 Apr 2012 14:05:37 +0000 (UTC)
Received: from AMXPRD0510HT004.eurprd05.prod.outlook.com (157.56.248.181) by VA3EHSMHS023.bigfish.com (10.7.99.33) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 11 Apr 2012 14:05:35 +0000
Received: from AMXPRD0510MB390.eurprd05.prod.outlook.com ([169.254.3.137]) by AMXPRD0510HT004.eurprd05.prod.outlook.com ([10.255.57.39]) with mapi id 14.16.0143.004; Wed, 11 Apr 2012 14:04:54 +0000
From: C Chauvenet <c.chauvenet@watteco.com>
To: Mukul Goyal <mukul@uwm.edu>
Thread-Topic: [Roll] [roll] #95: Why need stop flag? Is the receipt of DRO not sufficient to indicate completion of route discovery?
Thread-Index: AQHNEx32hh4lWAafiEaDmA/VlsX0qpaMTC1wgAUtcwCAAs5AkIABLD4AgAAbh4CAAAYNgIAAHDMA
Date: Wed, 11 Apr 2012 14:04:53 +0000
Message-ID: <042A14A9-10A8-42BF-8F07-489E981F7D98@watteco.com>
References: <2031218940.1889327.1334147037927.JavaMail.root@mail17.pantherlink.uwm.edu>
In-Reply-To: <2031218940.1889327.1334147037927.JavaMail.root@mail17.pantherlink.uwm.edu>
Accept-Language: fr-FR, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.3.4.8]
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <7967CA024BDAA4469B97FF14DF34B5E3@eurprd05.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: watteco.com
Cc: roll <roll@ietf.org>
Subject: Re: [Roll] [roll] #95: Why need stop flag? Is the receipt of DRO not sufficient to indicate completion of route discovery?
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: Wed, 11 Apr 2012 14:05:42 -0000

Hi, 

See inline, 

Le 11 avr. 2012 à 14:23, Mukul Goyal a écrit :

> Please see inline.
> 
> Thanks
> Mukul
> 
>> #95: Why need stop flag? Is the receipt of DRO not sufficient to indicate completion of route discovery?
>> 
>> Resolution: No because multiple DROs would be generated if multiple source  routes are being discovered.
>> 
>> Discussion:
>> 
>> p15 :  Stop (S): This flag, when set to one by a target, indicates that  the P2P-RPL route discovery is over.
>> 
>> [Cedric]
>> Is this bit really usefull ? My guess is that it will be always set to 1.
>> If you hear a DRO, this indeed means that the RDO has reached the target,  so you could just stop processing RDO when you hear a DRO.
>> Do we really need a flag to stop RDO processing or the hearing of a DRO  type message could do the job ?
>> 
>> [Mukul]
>> A P2P-RPL invocation might involve discovery of multiple source routes. In  that case, receipt of a DRO does not mean route discovery is over. Only  when the target sets the stop flag in the DRO, a node could be sure that  the route discovery is over.
>> 
>> [Cedric2]
>> OK fo multiple discovery.
>> But if I want to discover a route to a multicast group of target. I set a multicast adress in the target field of the RDO. Then, do I received as many DRO message as the number of target reached ? In that case, would the first DRO with a "S" flag stop the RDO propagation to reach all the target included in the multicast group ?
>> 
>> [Mukul2]
>> A target cannot set the S flag to one in the DRO if the target address in the P2P-RDO specified a multicast address. See the following text at the end of page 21 in P2P-RPL-9:
>> 
>> "The target MAY set the stop flag inside the DRO message to one if
>> 
>> 
>> 
>> Goyal, et al.           Expires September 7, 2012              [Page 21]
>> 
>> Internet-Draft         draft-ietf-roll-p2p-rpl-09             March 2012
>> 
>> 
>>  o  this router is the only target specified in the corresponding DIO,
>>     i.e., the corresponding DIO specified a unicast address of the
>>     router as the Target inside the P2P-RDO with no additional targets
>>     specified via RPL Target Options; and
>> 
>> " 
>> 
>> [Cedric3] 
>> So how do you stop the RDO flooding when the target adress is mulicast ? 
>> 
>> [Mukul3]
>> 
>> Stop flag cannot be used when the target address is multicast or when multiple unicast targets are there. The DIO generation will stop when the DAG dies. In the meanwhile, trickle algorithm would hopefully avoid unnecessary message generation. Note that the draft recommends a very small value for the redundancy constant.
> 
> [Cedric4]
> So in this case, the RDO (I guess this is what you mean when you mentioned "DIO" in you previous message) generation to discover the route is never ending until the temporary DAG dies ?
> 
> [Mukul4] Never ending wont be the correct description. The temporary DAG lasts for a few seconds only. Plus, the trickle algorithm would prevent the generation of many DIOs.
> 
> [Cedric4]
> I guess the RDO flooding would stop according to the MaxRank/NH field  of the P2P-RDO message.
> 
> [Mukul4]
> Yes, it would. MaxRank and other routing constraints would always limit the scope of route discovery. Note that there are two separate things:
> 1) scope of discovery: how far the discovery message (P2P-RDO inside the DIO) travels. This is controlled by the routing constraints and the maxRank field inside the P2P-RDO.
> 2) How many discovery messages are generated by the nodes that join the DAG: this is controlled by trickle timer and ultimately by the DAG life time. The stop flag in the DRO is an optimization that allows DIO generation to stop in the nodes that can hear the stop flag.

[Cedric5]
Actually, the problem for stopping the discovery process without the "S" flag is also present with unicast addresses, because not all nodes will hear the DRO (Only the nodes in the neighborhood of DRO forwarders).
So we ended with some nodes forming and maintaining a temporary DAG even is they are not included in the discovered path, until the temporary DAG dies.
As you mentioned, the maxRank field, routing constraints, and trickle or DAG lifetime limit this overhead.
The section 9.2 of this draft give useful guidelines for trickle operation using the P2P RPL mechanism, and limit the flooding of RDO messages.
The only improvement we could add is to avoid the maintenance of some part of the temporary DAG that don't hear the DRO with the S flag.
This nodes will still send out some DIO when the trickle timer fires. Though, thank's to the trickle's operation described in section 9.2, they won't be propagated.
One possibility could be to state that : "if a DRO has not been heard within a certain period of time, then their node is not considered as a part of the discovered path and should leave the temporary DAG".
This "certain period of time" could be determined according to the network topology, the application, or the network diameter for instance and let to the implementation.
I see a benefit in the case of a discovery process to a unicast target in a very large and sparse network. Here, a lot of nodes will maintain unnecessary states if they are not part of the discovered path.
With the current spec, they will send periodic and unnessecary DIO. The handling of a "DRO timeout reception" could save packets, thus battery, bandwidth etc... 

> 
> [Cedric4]
> But if this field is set to 0 (meaning infinity according to section 7.1), we should find a mechanism to stop the discovery mechanism.
> What do you think ?
> 
> [Mukul4]
> To tell the truth, MaxRank is basically a way to avoid putting a metric container in the DIO (when a limit on rank is the only constraint you want to specify). The scope of discovery is limited by both MaxRank as well as the routing constraints in the metric container. 
> 
> 
>