Re: [6tisch] SeqNum definition in RFC8480 (6P)

Yasuyuki Tanaka <yasuyuki.tanaka@inria.fr> Wed, 24 April 2019 12:45 UTC

Return-Path: <yasuyuki.tanaka@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 DF00312009A for <6tisch@ietfa.amsl.com>; Wed, 24 Apr 2019 05:45:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.9
X-Spam-Level:
X-Spam-Status: No, score=-6.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] 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 sB_OarqNFDCx for <6tisch@ietfa.amsl.com>; Wed, 24 Apr 2019 05:45:13 -0700 (PDT)
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 3661E120086 for <6tisch@ietf.org>; Wed, 24 Apr 2019 05:45:13 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="5.60,389,1549926000"; d="scan'208";a="380011910"
Received: from wifi-pro-82-156.paris.inria.fr ([128.93.82.156]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Apr 2019 14:45:11 +0200
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.8\))
From: Yasuyuki Tanaka <yasuyuki.tanaka@inria.fr>
In-Reply-To: <CAH7SZV-hFaMVW5TRd01odjTiO5LEHPEmWqgVA1yf-+jtOst8tg@mail.gmail.com>
Date: Wed, 24 Apr 2019 14:45:11 +0200
Cc: Yasuyuki Tanaka <yasuyuki.tanaka@inria.fr>, 6tisch@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <4887CFDC-B782-4153-8428-4905DB969F79@inria.fr>
References: <03CD9F4A-D6CD-44D2-AFF4-9F005ED409E8@inria.fr> <CAC9+vPgBUVjOiECs5ZL6c6PNkZ12X81=YThCs872VCbtJVb=uQ@mail.gmail.com> <c1e115ed-24c7-ed16-c776-bc2501e8a3b2@inria.fr> <CAC9+vPhs6FpVNvGA9vNe00RzZ5YND5-LvV3TCg=6dSwDsixshg@mail.gmail.com> <817EBD8A-34E4-41D0-8127-939E61BC0732@inria.fr> <CAH7SZV-hFaMVW5TRd01odjTiO5LEHPEmWqgVA1yf-+jtOst8tg@mail.gmail.com>
To: "Prof. Diego Dujovne" <diego.dujovne@mail.udp.cl>
X-Mailer: Apple Mail (2.3445.104.8)
Archived-At: <https://mailarchive.ietf.org/arch/msg/6tisch/0ZaFZhN_mb0x32BHqyiDx3s4SZY>
Subject: Re: [6tisch] SeqNum definition in RFC8480 (6P)
X-BeenThere: 6tisch@ietf.org
X-Mailman-Version: 2.1.29
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: Wed, 24 Apr 2019 12:45:16 -0000

Thanks, Diego!

I think, if SeqNum=0 has the special meaning, 6P would need to pass a received
SeqNum to a corresponding SF... But, my understandings is that, SeqNum is
maintained only by 6P and not revealed to SFs... An alternative way to tell
a power-cycle event to the peer would have been defining a separate return
code from RC_ERR_SEQNUM.

> On Apr 24, 2019, at 12:47, Prof. Diego Dujovne <diego.dujovne@mail.udp.cl> wrote:
> 
> As far as I can remember, it is important to know that the peer has forgotten all the states and has lost his schedule, so all the allocated cells with that neighbour are currently not valid anymore and should be wiped from the local schedule.

Actually, a node having such a peer should remove outdated cells somehow
without having an explicit signaling.

This is not a job of 6P, though. The SF should take care of it. A peer
may move away from the node without sending a CLEAR request. Even if the
peer sends a CLEAR request before moving somewhere, the CLEAR request may
be lost in the air. 

RPL may do something for this case. If a node has some dedicated TX cells to
its parent, and the parent reboots, RPL on the node could notice there is
something wrong with the parent since measured link quality to the parent
is getting worse. Then, parent switch will be performed.

Or, a SF like MSF would try to relocate badly performed cells. Then, it 
receives RC_ERR_SEQNUM from the parent and take actions to resolve the schedule
inconsistency in the same manner as for other scheduling consistency cases.
The node can see whether the peer loses all the states nor not by having a following
COUNT transaction if the SF really wants to know. If the SF always issues a
CLEAR request to a peer which sent RC_ERR_SEQNUM, the SF doesn't care about
the power-cycle event. Another possibility is that the RELOCATE transaction
ends by 6P Timeout. Again, some actions will be taken by the SF.

Best,
Yatch