Re: [6tsch] simulation for random schedule allocation

Xavier Vilajosana Guillen <xvilajosana@eecs.berkeley.edu> Wed, 26 June 2013 14:01 UTC

Return-Path: <xvilajosana@berkeley.edu>
X-Original-To: 6tsch@ietfa.amsl.com
Delivered-To: 6tsch@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 798C421F9F21 for <6tsch@ietfa.amsl.com>; Wed, 26 Jun 2013 07:01:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, NO_RELAYS=-0.001]
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 UiI5kSe1yZnG for <6tsch@ietfa.amsl.com>; Wed, 26 Jun 2013 07:01:00 -0700 (PDT)
Received: from mail-ie0-x243.google.com (mail-ie0-x243.google.com [IPv6:2607:f8b0:4001:c03::243]) by ietfa.amsl.com (Postfix) with ESMTP id B182121F9F1C for <6tsch@ietf.org>; Wed, 26 Jun 2013 07:00:28 -0700 (PDT)
Received: by mail-ie0-f195.google.com with SMTP id c10so9996444ieb.10 for <6tsch@ietf.org>; Wed, 26 Jun 2013 07:00:28 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type:x-gm-message-state; bh=awqCyddwPxNXd84Zxg6Ki/l5e/ptM54muTRykFsAwf8=; b=c+0sM9NrbhQRf2VglMXS8SEYjZwZmlJr2qvP/dHxl1u7TUP/QDH3AMlIZZPiBPPkmA GpgfXp7h0TLL2sqcv0b6+EwzxqNE24CXiCSVtlZwAQiaVry1R+QB+JICtM01IVORJumK E2EjZMvOvKW1zuwutpONbL9OWw5u9fddDUewODWx+dJOTPyvTEfx8ODDgaTALijEZ/24 1wYEi4wQ8rdYvpqVNP0HwOiZXg1rLLfbdo4H87MVmJwF4jEE9Q3rVJ67rii0gIe5oiCd 3Rx8+oWRngBnABxZG9qcT/4lQJvjIMwlZAeZ+ozLqSU6+jlZIVprR2edtSYVivirLmqh 3zlg==
MIME-Version: 1.0
X-Received: by 10.42.228.1 with SMTP id jc1mr2283715icb.92.1372255228152; Wed, 26 Jun 2013 07:00:28 -0700 (PDT)
Received: by 10.65.14.231 with HTTP; Wed, 26 Jun 2013 07:00:28 -0700 (PDT)
In-Reply-To: <CADJ9OA9u03YXOCVL7835DCq6Aq9Qq7S-77yGNBUfJKNc4XbV3w@mail.gmail.com>
References: <CALEMV4bP5PJMA5v+3kS24CyocjG8_FKC0FXGJDAP3bZ8zgKvAA@mail.gmail.com> <CADJ9OA9u03YXOCVL7835DCq6Aq9Qq7S-77yGNBUfJKNc4XbV3w@mail.gmail.com>
Date: Wed, 26 Jun 2013 07:00:28 -0700
Message-ID: <CALEMV4YWmWp_au_iXSgZ1cM3wKhGbKRo6SDiRVowbC0OiZZODg@mail.gmail.com>
From: Xavier Vilajosana Guillen <xvilajosana@eecs.berkeley.edu>
To: Thomas Watteyne <watteyne@eecs.berkeley.edu>
Content-Type: multipart/mixed; boundary="001a1133d7b86a5dda04e00f114c"
X-Gm-Message-State: ALoCoQmqmlTPYn13hYM08kgFf/gxOFOvYwrXKLkyoF6v1SLqcnAEJWG+IPACkzPQ8hen/pw5Hd2v
Cc: "6tsch@ietf.org" <6tsch@ietf.org>
Subject: Re: [6tsch] simulation for random schedule allocation
X-BeenThere: 6tsch@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
Reply-To: xvilajosana@eecs.berkeley.edu
List-Id: "Discuss link layer model for Deterministic IPv6 over the TSCH mode of IEEE 802.15.4e, and impacts on RPL and 6LoWPAN such as resource allocation" <6tsch.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/6tsch>, <mailto:6tsch-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/6tsch>
List-Post: <mailto:6tsch@ietf.org>
List-Help: <mailto:6tsch-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/6tsch>, <mailto:6tsch-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 26 Jun 2013 14:01:02 -0000

Hi Thomas,

the presented results and my simulator only takes into account the first
part of your description but I guess gives us a clue of what will happen.

The simulator builds a network and starts allocating links to
neighbors.From the results we can see that when the schedule is "empty"
<10% of scheduled links, the collision probability when scheduling a new
link is below 8%, meaning that if we have a collision and re-schedule lots
of chances are to succeed. As the schedule is more populated, i.e 80% of
the available links are scheduled, the probability of collision is >80%,
meaning that it becomes very hard to converge to a collision free schedule.

if you look at the attached file that corresponds to the simulation results
for a node in the network (node 0) and for different number of links in its
schedule, you will see that to be able to have a 100% allocated schedule
(i.e all links) the number of collisions that happened is enormous.

e.g
Node,NumLinksRequested,NumNeighbors,TotalLinks,Allocated
Links,Collisions,IdenticaAllocation,% Collision,% Used Links
0,538,9,1616,1616,7643,425,472.95792079207916,100.0

Node 0 with 9 neighbours, requested 538 links to its neighbours and its
neighbours also requested some cells to it. 1616 (100%) got allocated but
to reach that 7643 collisions happened (this takes into account all
requests from other neighbours of course).

With that your scenario can be drawn as if the schedule is not very dense,
reallocations collision can have low probability. As it becomes dense, it
seems impossible that the mechanism will work unless we have some "guided"
selection.

X




Xavi


On Tue, Jun 25, 2013 at 11:31 PM, Thomas Watteyne <
watteyne@eecs.berkeley.edu> wrote:

> Xavi,
>
> Very cool!
>
> I have a bit of a hard time interpreting your results, or at least using
> them to answer my question. Maybe you can shine some light on the following
> scenario? Don't hesitate to shout if I missed something.
>
> I have a neighborhood of N nodes. As a first step, we can assume all nodes
> hear all nodes, i.e. the neighborhood is fully meshed. A more realistic
> scenario can come later.
>
> Some of these nodes schedule cells to one another, using the purely random
> approach. Once this is done, they start communicating over those cells and,
> for some cells, *realize* that there are collisions. They then decide to *
> reallocate* these cells to different (random) locations in the schedule.
> In the "healthy" case this process goes on until there are no more
> collisions, i.e. until the pairs of motes are communicating on cells which
> are not actively used by any other pair in the neighborhood.
>
> In this "healthy" case, if I plot the number of reallocations as a
> function of time, and assuming that all motes are switched on at the same
> time (which is very artificial, but "bad case" scenario), I expect to see
> the number of reallocation first increase, then come back down to 0. I
> expect the time to converge to zero to increase as the load increases. The
> load can be changed by adding more motes into my neighborhood, or
> allocating more cells per pair of neighbor nodes (both cases are
> equivalent?).
>
> At some threshold load, however, we switch from the "healthy" state to the
> "collapse" state. In the latter, the number of reallocations never
> converges back to zero, as the network is constantly busy detecting and
> fixing collisions. This can be considered a network collapse, which is a
> very bad outcome, since the nodes are constantly busy communicating, but
> the network is not relaying data.
>
> This can probably be easily described using aloha-type analysis. What I'd
> like to know is that threshold load, i.e. the load at which this network
> switch from "healthy" to "collapse". If this threshold is very high, we
> might consider the random scheduling for sparse network; if it's very low,
> we cannot as it will never work well.
>
> There are a couple of items I underlined above which I believe are
> important:
> - "realizing" that there is a collision is not immediate for a node. We
> have discussed the possibility of comparing statistics of several cells in
> the same bundle. As a first simulation step, we could consider that a
> single collision triggers a reallocation. In a more realistic scenario, the
> simulation could model the actual statistics and the little algorithm which
> looks at them and triggers a reallocation. This delay may have an impact on
> the performance of the network, and the threshold load.
> - reallocating is not an immediate thing, as it requires the two neighbors
> to send a couple of "negotiation" packets back-and-forth. The exact
> protocol isn't defined yet, but it will also introduce some latency. Some
> strange side-effect is that, during some period of time, the new cell will
> have been allocated, but the old one not deleted yet, possibly resulting in
> even more collisions.
>
> I have the impression that your simulation does not (yet) model the
> dynamic reallocation of cells. I haven't looked at the code, so please let
> me know if my impression is wrong.
>
> Thoughts? What do you think the next steps are? Anything other people from
> the group can help with (or have already done)?
>
> Thomas
>
>
> On Tue, Jun 25, 2013 at 5:24 PM, Xavier Vilajosana Guillen <
> xvilajosana@eecs.berkeley.edu> wrote:
>
>> Dear all, I plotted some of the results in case this can help on the
>> discussion about probabilistic selection of slots.
>>
>> Note that I am playing with a 101 * 16 schedule and trying to allocate
>> from few links to almost all the schedule.
>>
>> This plots correspond to one of the simulated nodes (of a 50 node
>> network) with a high neighbour density. (the rest are quite similar and
>> vary a little depending on the number of neighbours they have, nothing
>> relevant though)
>>
>> Other cases can be simulated but before I will wait for your comments and
>> suggestions so I spent the time on the right direction.
>>
>> kind regards,
>>
>> Xavi
>>
>> _______________________________________________
>> 6tsch mailing list
>> 6tsch@ietf.org
>> https://www.ietf.org/mailman/listinfo/6tsch
>>
>>
>
> _______________________________________________
> 6tsch mailing list
> 6tsch@ietf.org
> https://www.ietf.org/mailman/listinfo/6tsch
>
>