Re: [Roll] Revisiting the Trickle Algorithm

Badis Djamaa <badis.djamaa@gmail.com> Wed, 04 February 2015 18:18 UTC

Return-Path: <badis.djamaa@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 004391A1A64 for <roll@ietfa.amsl.com>; Wed, 4 Feb 2015 10:18:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 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, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=ham
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 zXzcWAtTmJra for <roll@ietfa.amsl.com>; Wed, 4 Feb 2015 10:17:57 -0800 (PST)
Received: from mail-ig0-x22d.google.com (mail-ig0-x22d.google.com [IPv6:2607:f8b0:4001:c05::22d]) (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 008211A1A3E for <roll@ietf.org>; Wed, 4 Feb 2015 10:17:56 -0800 (PST)
Received: by mail-ig0-f173.google.com with SMTP id a13so36540912igq.0 for <roll@ietf.org>; Wed, 04 Feb 2015 10:17:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=do0mMRZnsbZkggL2ghzHhp/lVLPh50xTZTtVDbPYUhM=; b=k9iCpfI1CokUjge7g3CSW6RRgHSl6ZCrQ+ldpknkFXYjdxsn0RJQWdNty7BAMDQkRG DVynB+eeJUrdRqOADPEoEyOYBvHXF4w4i5LnSNTWyM8d5+nrUZF0L7lLpcIeh20mofUV RUxiLesnl0+CNAV1tMZHToEnB9x3OPbXR9FCKaFFWlxD306mXmIDIVa4DCrwPym+Qc86 r2FaP4QxTTei4BltbkREgk00ATBsVygF0TesZ6nv1Z9v/fjKxtHUssGxiQf/om+644NW /Fe3koe4fwYPKRX82QGbf7boBbwJrKd4Tqz76bwq3umltPDQyCa5fqAA1TKhqjYD7gpt LQrA==
MIME-Version: 1.0
X-Received: by 10.50.108.108 with SMTP id hj12mr3666126igb.47.1423073876151; Wed, 04 Feb 2015 10:17:56 -0800 (PST)
Received: by 10.107.52.16 with HTTP; Wed, 4 Feb 2015 10:17:56 -0800 (PST)
In-Reply-To: <CAErDfURsY8EhGnvN8SLcpDb9MK6c7mM0h+XwfP0xquR3nVXFpg@mail.gmail.com>
References: <CAPm4LDTj3-ZTZGi86ttgqNuTSRnEBUY59rAnxmr_DMvuhNWGGA@mail.gmail.com> <CAErDfUSewgX8i-qrZUTAv6S-7XQ5Vu2O5Z1qj0pUT=akwg3MiA@mail.gmail.com> <CAPm4LDRY4dUYgshFN96eJbOT4Fv18N9yOQBXeO23akRmdQ_KVg@mail.gmail.com> <CAErDfURsY8EhGnvN8SLcpDb9MK6c7mM0h+XwfP0xquR3nVXFpg@mail.gmail.com>
Date: Wed, 04 Feb 2015 18:17:56 +0000
Message-ID: <CAPm4LDS_A9CbEkjiZQAbUmqyEuti44OCQ8zWA651MAY-aTjwCQ@mail.gmail.com>
From: Badis Djamaa <badis.djamaa@gmail.com>
To: Omprakash Gnawali <gnawali@cs.uh.edu>
Content-Type: multipart/alternative; boundary="089e0149392ae09464050e473420"
Archived-At: <http://mailarchive.ietf.org/arch/msg/roll/JJKRd0r5t7KVc6PnG7Lwi6zYqAs>
Cc: Jonathan Hui <jonhui@cisco.com>, "Thomas Heide Clausen (work)" <T.Clausen@computer.org>, Michael Richardson <mcr+ietf@sandelman.ca>, ROLL WG <roll@ietf.org>, Ines Robles <maria.ines.robles@ericsson.com>, JeongGil Ko <jgko@cs.jhu.edu>
Subject: Re: [Roll] Revisiting the Trickle Algorithm
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: Wed, 04 Feb 2015 18:18:00 -0000

Thank you Omprakash for your email

That's great.

The side-effect discussed in section 4.5. of the detailed report [1] might
provide other benefits.

In sparse networks using k=1, "New-Trickle" outperformed Trickle in both
time/cost aspects, as shown in Appendix A. When k > 1, however, it
generated more packets than Trickle. This is also observed in dense
single-hop networks (Figure 13 (d), page 22).

In dense multi-hop networks, this side-effect is less noticeable (see
results on pages 18-19), but another effect can emerge with smaller Imin
(Figure 11 (d)). I think this is not related to "New-Trickle" as it emerges
from the efficiency of CSMA strategies and timer-based suppression
mechanisms. Note that "New-trickle" generally transmit less in the Imin
interval as can be seen from the third column of graphs. Also, it seems
that "New-Trickle" can provide a better load distribution (Figure 10, page
12).

Allowing a node to rest c to zero at time t of an Imin interval (rather
than at the beginning of the next interval) might suppress most of this
cost. I am doing some simulations with this second design. However, I think
a detailed study is required to decide which design to choose. We can also
consider other designs.

I will send you a copy of the TinyOS code as soon as I clean it up. Both
designs are implemented and I think your student can help us to choose.

Concerning Imin and k values, I agree that such a survey better guides the
evaluation. I surveyed some of the use-cases such as RPL, MPL, CTP, some
dissemination protocols and AMI use-cases. A generic list is still to be
built.

[1]https://dspace.lib.cranfield.ac.uk/handle/1826/9116

all the best
badis


On 2 February 2015 at 16:12, Omprakash Gnawali <gnawali@cs.uh.edu> wrote:

> On Mon, Jan 19, 2015 at 5:35 PM, Badis Djamaa <badis.djamaa@gmail.com>
> wrote:
> > Thank you Gnawali for your comments,
> >
> >
> >
> >>Could you discuss the tradeoffs due to the proposed modification? Are
> >>there some scenarios that will be worse off due to the changes?
> >
> >
> >
> > Figure1, page 2 of the document, shows the scheme in its best-case
> (lossless
> > networks). From that Figure, we can see a side-effect of the proposed
> scheme
> > which can add an extra cost in lossy-networks.
> >
> >
> >
> > Figure 4 in page 4, clearly shows this side-effect in lossy networks. But
> > results in Figure 5 ( network with 90% physical loss rate) shows that the
> > extra cost only affects a few following intervals and disappears later.
> Also
> > Figure 5 shows that this additional cost does not affect trickle
> > scalability.
> >
> >
> >
> > When generating heavy inconsistencies (periodically injecting new
> packets),
> > testbed results depicted in third row of graphs in Figure 6, page 4,
> shows a
> > bigger additional cost because of heavy inconsistent traffic being
> > generated.
> >
> >
> >
> >>Did you consider minor variations to your scheme - e.g., rather than
> >>just the first interval starting at 0, how about the first n intervals
> >>starting at 0 rather than I/2?
> >
> >
> >
> > Because of the side-effect depicted in Figure 4, the additional cost
> > increases if we go for n intervals. Generally speaking, Trickle's
> > scalability might remain logarithmic, because the extra cost only
> depends on
> > losses. However, the extra cost is noticeable under heavy inconsistent
> > traffic and wastes energy.
> >
> >
> >
> > Note however, that we made a small variation to the scheme by letting a
> node
> > that transmitted in an Imin interval to start listening immediately (put
> > c=0). Preliminary results look promising and show that the side-effect
> can
> > be addressed.
> >
> >
> >
> > More results are being analysed to see whether other side-effects can
> > emerge.
>
>
> Look forward to this. Could you also post your code so others can do
> experiments on different testbeds to verify the results once you have
> converged on a design that addresses the side effects. For example, I
> can try to have a student do this as a short project in TinyOS.
>
> If the side effects remain, this will be a question of tradeoff in
> which case it is better to have this as a commentary in the RFC rather
> than replace it.
>
> It will also be helpful to do a survey of what type of intervals are
> being used by the community so we know how big a problem this is.
>
> - om_p
>