Re: [Roll] [manet] Understanding RPL [was: Working group re-charter ideas]

Cenk Gündogan <cnkgndgn@gmail.com> Fri, 03 April 2015 06:15 UTC

Return-Path: <cnkgndgn@gmail.com>
X-Original-To: roll@ietfa.amsl.com
Delivered-To: roll@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A41D31A90EA; Thu, 2 Apr 2015 23:15:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.198
X-Spam-Level:
X-Spam-Status: No, score=-0.198 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, FROM_LOCAL_NOVOWEL=0.5, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=1, HTML_MESSAGE=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 y8tNgyey4n-K; Thu, 2 Apr 2015 23:15:00 -0700 (PDT)
Received: from mail-wi0-x22b.google.com (mail-wi0-x22b.google.com [IPv6:2a00:1450:400c:c05::22b]) (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 6EABD1A90E6; Thu, 2 Apr 2015 23:15:00 -0700 (PDT)
Received: by wibgn9 with SMTP id gn9so129778057wib.1; Thu, 02 Apr 2015 23:14:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type; bh=D33FOWdMqLNR5MnDvAqflPy3nbeS3WTG5xZ/g/vC94g=; b=ZLwUVljpz0xyqOBgymDlKwFpG0I/pcBe+ixTSpbp4zBBr9sNJZNwwZyZam0FrF6LI3 CaXPS40kpphMBuAUq9kC0XWifEVZk568Xk4eyRjZUcSwCikJnunYqelHG96Hm3Hz6orn CjltpkDBGz3dpxU6VZxF7wxK9+mGFAWZTMra5eWBe4z8xx08vo5b+pkV2VY1kja6Z9V9 2B+Bx4KPmnUDbVgSoj4iJK3+kbKnLMqo8drtNgNj3iV4sEkZDlAA7sZhI6DDOkKGm1lh L6ykLFVqtqUy2boVeS1ht8lYxDF+PSMs755t3SSpl6kQqVFca0sbrOY7LTk2qYgD2oOj kNzA==
X-Received: by 10.194.123.67 with SMTP id ly3mr1729498wjb.105.1428041699243; Thu, 02 Apr 2015 23:14:59 -0700 (PDT)
Received: from [192.168.1.58] ([95.91.215.14]) by mx.google.com with ESMTPSA id ga8sm1363330wib.11.2015.04.02.23.14.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Apr 2015 23:14:58 -0700 (PDT)
Message-ID: <551E2FE1.4000509@gmail.com>
Date: Fri, 03 Apr 2015 08:14:57 +0200
From: Cenk Gündogan <cnkgndgn@gmail.com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0
MIME-Version: 1.0
To: Juliusz Chroboczek <jch@pps.univ-paris-diderot.fr>
References: <CA+-pDCe1jMFaBJH5Ynss6Kf7mtxoLC8DYjz6N9d0Zu10o0WRuQ@mail.gmail.com> <CAGnRvuqzehpwW11XvhYQXZAjMiOvfexG0ygH4pnp6PyeD_Yq_Q@mail.gmail.com> <87pp7mlmf7.wl-jch@pps.univ-paris-diderot.fr> <E045AECD98228444A58C61C200AE1BD849D983BB@xmb-rcd-x01.cisco.com> <87fv8i85dq.wl-jch@pps.univ-paris-diderot.fr>
In-Reply-To: <87fv8i85dq.wl-jch@pps.univ-paris-diderot.fr>
Content-Type: multipart/alternative; boundary="------------090302050807060109070603"
Archived-At: <http://mailarchive.ietf.org/arch/msg/roll/_Zryy2KSqN9D1gEhRR5aUUfEgY8>
Cc: Routing Over Low power and Lossy networks <roll@ietf.org>, "manet@ietf.org" <manet@ietf.org>
Subject: Re: [Roll] [manet] Understanding RPL [was: Working group re-charter ideas]
X-BeenThere: roll@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Routing Over Low power and Lossy networks <roll@ietf.org>
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: Fri, 03 Apr 2015 06:15:08 -0000

Hello Juliusz,

On 03.04.2015 01:41, Juliusz Chroboczek wrote:
>> Local repair is done by either poisoning or detaching, sections
>> 8.2.2.5.
> I don't see how that can be implemented.
>
> Suppose A is B's parent.  A advertises INFINITE_RANK.  A's retraction
> ("poison") is lost.  B has no reason to change parents, so B has a parent
> with infinite rank.  Oops, B is just violating the MUST NOT in 8.2.2.5.2.
>
> Are you assuming the network is reliable?  Or am I missing some mechanism
> that prevents that from happening?

I also did struggle with this scenario for quite some time.
However, there are several places in the RFC that specifically deal 
(directly or indirectly) with this issue.


          8.2.2.5 <https://tools.ietf.org/html/rfc6550#section-8.2.2.5>.
          Poisoning



    1.  A node poisons routes by advertising a Rank of INFINITE_RANK.

    2.  A node MUST NOT have any nodes with a Rank of INFINITE_RANK in
        its parent set.


My interpretation of these bullet points is that DIOs advertising 
INFINITE_RANK are sent out periodically
(probably in a decaying fashion via Trickle), in order to reduce the 
chance that these DIOs stay unnoticed.
However, this might not be a complete solution, as all DIOs from A to B 
can become lost thus leading to the same problem,
but then the RFC states that links should be guaranteed to be symmetric 
anyways, e.g. by using NUD [1] or other alternatives.

Something else I want to mention is that RPL utilizes a few lifetime 
counters (e.g. for the dodag or route),
which would also help in this scenario (We wouldn't refresh the lifetime 
of a node with INFINITE_RANK, would we?),
but admittedly, depending on the specified lifetime values, in a very 
sluggish way.

At last, it is important to remember that RPL uses data-path validation 
to reduce the chattiness of control packets,
described in [2] and most likely realized by using [3].
In that case A can reset its Trickle timer when encountering 
inconsistencies and start e.g. another poisoning routine
by sending out another set of INFINITE_RANK DIOs.

Best,
Cenk

[1] Neighbor Unreachability Detection 
(https://tools.ietf.org/html/rfc2461#page-66)
[2] https://tools.ietf.org/html/rfc6550#section-3.2.7
[3] https://tools.ietf.org/html/rfc6553