Re: [6tisch] Handling Inconsistent Allocation in 6P

Thomas Watteyne <thomas.watteyne@inria.fr> Tue, 22 November 2016 07:23 UTC

Return-Path: <thomas.watteyne@inria.fr>
X-Original-To: 6tisch@ietfa.amsl.com
Delivered-To: 6tisch@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C6E5012963A for <6tisch@ietfa.amsl.com>; Mon, 21 Nov 2016 23:23:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.896
X-Spam-Level:
X-Spam-Status: No, score=-7.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.5, RP_MATCHES_RCVD=-1.497] autolearn=ham autolearn_force=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 yh5C93F7lRVN for <6tisch@ietfa.amsl.com>; Mon, 21 Nov 2016 23:23:54 -0800 (PST)
Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A1221129479 for <6tisch@ietf.org>; Mon, 21 Nov 2016 23:23:53 -0800 (PST)
X-IronPort-AV: E=Sophos;i="5.31,531,1473112800"; d="scan'208,217";a="246041711"
Received: from mail-wm0-f54.google.com ([74.125.82.54]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 22 Nov 2016 08:23:52 +0100
Received: by mail-wm0-f54.google.com with SMTP id f82so9122636wmf.1 for <6tisch@ietf.org>; Mon, 21 Nov 2016 23:23:52 -0800 (PST)
X-Gm-Message-State: AKaTC02yZv17gP4f8gU702DMwHmyhLj1YuCwESOV9Hnly8iSMfQpFAbWSQiFCoQVaM2SoEC3E8Jqk9GykW9XQg==
X-Received: by 10.28.130.66 with SMTP id e63mr951892wmd.39.1479799432040; Mon, 21 Nov 2016 23:23:52 -0800 (PST)
MIME-Version: 1.0
Received: by 10.80.142.23 with HTTP; Mon, 21 Nov 2016 23:23:31 -0800 (PST)
In-Reply-To: <CAC9+vPiG9ZqziO8ktpuwJrc4YcRQ7Wj1e+ZciNHmZvUE9JafPw@mail.gmail.com>
References: <1739694970.195512.1479755120596.JavaMail.root@vilafranca.uoc.es> <CAC9+vPiG9ZqziO8ktpuwJrc4YcRQ7Wj1e+ZciNHmZvUE9JafPw@mail.gmail.com>
From: Thomas Watteyne <thomas.watteyne@inria.fr>
Date: Tue, 22 Nov 2016 08:23:31 +0100
X-Gmail-Original-Message-ID: <CADJ9OA-BZrQHEX9yeSoj3_8p-NOoqq0g8o=6hZ_JS-53b+vNYQ@mail.gmail.com>
Message-ID: <CADJ9OA-BZrQHEX9yeSoj3_8p-NOoqq0g8o=6hZ_JS-53b+vNYQ@mail.gmail.com>
To: Xavi Vilajosana Guillen <xvilajosana@uoc.edu>
Content-Type: multipart/alternative; boundary="001a1144364c7c5a520541dea779"
Archived-At: <https://mailarchive.ietf.org/arch/msg/6tisch/2dSCkccs35rJC_ALPu7WC6ifO0Y>
Cc: Yasuyuki Tanaka <yasuyuki9.tanaka@toshiba.co.jp>, tisch <6tisch@ietf.org>
Subject: Re: [6tisch] Handling Inconsistent Allocation in 6P
X-BeenThere: 6tisch@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
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" <6tisch.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/6tisch>, <mailto:6tisch-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/6tisch/>
List-Post: <mailto:6tisch@ietf.org>
List-Help: <mailto:6tisch-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/6tisch>, <mailto:6tisch-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 22 Nov 2016 07:23:56 -0000

I'd like to keep 6P simple, and just have a mechanism to detect
inconsistencies. I believe roll-back to a previous schedule generation adds
too much complexity. From an implementation point of view, cells that are
in the process of being reserved (i.e. 6P add request sent but no response
received yet) should be marked as "reserved" and only committed to the
schedule once the 6P transaction if over. I believe this captures Nicola's
idea, but turning it into a recommendation for implementers, rather than a
protocol feature.

On Mon, Nov 21, 2016 at 9:56 PM, Xavi Vilajosana Guillen <
xvilajosana@uoc.edu> wrote:

> Hi Yatch,
> my 2 cents inline
>
>
>> I've been thinking about how to handle inconsistencies. I know the
>> current draft has an inconsistency detection mechanism with generation
>> management; just wondering if there is another way or a supplemental
>> mechanism to deal with such a situation.
>>
>> We decided at the IETF meeting last week to reduce the number of
> generation counters from 2 to 1 (2bits field) as now 6P commands can add
> different types of cells so we need to account for transactions now. I
> state that here to outline that the proposed mechanism is very simple. At
> every transaction we increment a generation counter. It cannot happen that
> the two sides of the transaction have inconsistent counters. If this
> happens, then the schedules are reset. I agree that this is detected after
> the error has occurred.
>
>
>> I thought that the 2-phase commit (2PC) protocol could be useful
>> here. Then, I found the nice idea by Nicola in the ML archive. In
>> terms of the 2PC protocol, 6P ACK is Commit. 6P NACK (mentioned in
>> another email by Nicola) is Abort or Rollback.
>> # We may need another type of message to acknowledge Commit or Abort.
>>
>> An advantage of this approach is that 6P can resolve an inconsistency
>> when it occurs at the least cost, by cancelling the concerned
>> operation alone. An apparent disadvantage is adding further complexity
>> to 6P.
>>
>
> it adds complexity and more messages over the air, which are costly and
> can also fail (e.g external interference). What happens if we loose the 6P
> NACK? How the NACK sender know that the NACK has been received?
>
>>
>> What others think...?
>>
>
> I like to answer with another question. What causes less overhead, 2 bits
> per each 6P command or 1 or 2 extra packets per transaction (assuming only
> write/state modification transactions). For me the former is way simpler.
>
> regards,
> X
>
>
>
>>
>> Best,
>> Yatch
>>
>> _______________________________________________
>> 6tisch mailing list
>> 6tisch@ietf.org
>> https://www.ietf.org/mailman/listinfo/6tisch
>>
>
>
>
> --
> Dr. Xavier Vilajosana Guillén­
> Research Professor
> Wireless Networks Research Group
> Internet Interdisciplinary Institute (IN3)
> Universitat Oberta de Catalunya­
>
> +34 646 633 681| xvilajosana@uoc.edu­ | Skype­: xvilajosana
> http://xvilajosana.org
> http://wine.rdi.uoc.edu/
>
> Parc Mediterrani de la Tecnologia
> Av. Carl Friedrich Gauss, 5. Edifici B3
> 08860 Castelldefels (Barcelona)
>
>
>
> ­
>
> _______________________________________________
> 6tisch mailing list
> 6tisch@ietf.org
> https://www.ietf.org/mailman/listinfo/6tisch
>
>


-- 
_______________________________________

Thomas Watteyne, PhD
Research Scientist & Innovator, Inria
Sr Networking Design Eng, Linear Tech
Founder & co-lead, UC Berkeley OpenWSN
Co-chair, IETF 6TiSCH

www.thomaswatteyne.com
_______________________________________