Re: [Roll] I-D Action: draft-ietf-roll-minrank-hysteresis-of-10 Comments

Philip Levis <pal@cs.stanford.edu> Sun, 13 May 2012 16:28 UTC

Return-Path: <pal@cs.stanford.edu>
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 E04A621F8498 for <roll@ietfa.amsl.com>; Sun, 13 May 2012 09:28:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.58
X-Spam-Level:
X-Spam-Status: No, score=-6.58 tagged_above=-999 required=5 tests=[AWL=0.019, BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
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 pmYqiQkIN6tU for <roll@ietfa.amsl.com>; Sun, 13 May 2012 09:28:14 -0700 (PDT)
Received: from cs-smtp-3.Stanford.EDU (cs-smtp-3.Stanford.EDU [171.64.64.27]) by ietfa.amsl.com (Postfix) with ESMTP id 1FD6321F8456 for <Roll@ietf.org>; Sun, 13 May 2012 09:28:14 -0700 (PDT)
Received: from [76.14.66.110] (helo=[192.168.0.103]) by cs-smtp-3.Stanford.EDU with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from <pal@cs.stanford.edu>) id 1STbeV-0002i2-Pu; Sun, 13 May 2012 09:28:11 -0700
Mime-Version: 1.0 (Apple Message framework v1257)
Content-Type: text/plain; charset="us-ascii"
From: Philip Levis <pal@cs.stanford.edu>
In-Reply-To: <4FAFBED7.4060207@ipv6it.org>
Date: Sun, 13 May 2012 09:28:18 -0700
Content-Transfer-Encoding: quoted-printable
Message-Id: <F9B484DB-5413-4B71-BAC8-4E46741ACB01@cs.stanford.edu>
References: <4FAFBED7.4060207@ipv6it.org>
To: Federico Consoli <admin@ipv6it.org>
X-Mailer: Apple Mail (2.1257)
X-Scan-Signature: f52b81a2b0b1468c47a83f31a7d93b0f
Cc: Roll@ietf.org
Subject: Re: [Roll] I-D Action: draft-ietf-roll-minrank-hysteresis-of-10 Comments
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: Sun, 13 May 2012 16:28:15 -0000

On May 13, 2012, at 7:01 AM, Federico Consoli wrote:

> Hi,
> I have a doubt concerning the selection of parent set.
> Draft Section 3.3 says:
> "The exact selection of a parent set is an implementation decision."
> 
> The document does not specify what to do in a situation like this:
> 
> Example:
> ------
> The node A has 1 parent with rank 700 and path cost 300 => A has a rank = 1000.
> B has A as Preferred parent and the path cost A-B is 300, soB has rank 1300.
> 
> Later A receives from node C a DIO. Node C has rank 900 andpath cost A-C is 500 => A puts C in its parent set and announce a rank 1400.
> But, A receives a DIO from node B before to send a DIO =>A puts B in its parent set.
> 
> When B receives the DD it will increase its rank. When Node A receives the DIO from the node B, it has 2 options:
> 1) Increase its rank
> 2) Delete the node from the parent set
> 
> If A chooses option 1 there will be an infinite loop.
> ------
> 
> In general, a node does not know the reason why a parent increase its rank. In fact, a node can also increase his rank because its link is got worse.
> 
> IMHO I think that if a parent announces a rank higher than the rank of the the nodethen the node MUST remove the parent from its Parent set.
> 
> -- 
> Regards
> Consoli Federico
> 
> 


The RPL specification goes into this. Loops can temporarily form in the network, but RPL will detect them and repair them. MaxRankIncrease controls how far the nodes can count forward. RPL will detect the loop (11.2 of RFC6550) and reset its Trickle timer to advertise the newer, higher Rank. At some point, for example, if B's Rank goes high enough, A will remove it from its parent set due to the Rank spread between B and its other parent (the one with 700).

Phil