Re: [6tisch] follow up LIST cmd 6P

Thomas Watteyne <thomas.watteyne@inria.fr> Wed, 07 September 2016 21:28 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 A37B312B118 for <6tisch@ietfa.amsl.com>; Wed, 7 Sep 2016 14:28:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -8.406
X-Spam-Level:
X-Spam-Status: No, score=-8.406 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_SORBS_SPAM=0.001, RP_MATCHES_RCVD=-1.508] 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 1JfRUHsVBU1d for <6tisch@ietfa.amsl.com>; Wed, 7 Sep 2016 14:28:06 -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 8AA3312B154 for <6tisch@ietf.org>; Wed, 7 Sep 2016 14:28:05 -0700 (PDT)
X-IronPort-AV: E=Sophos;i="5.30,297,1470693600"; d="scan'208,217";a="235623149"
Received: from mail-wm0-f53.google.com ([74.125.82.53]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-GCM-SHA256; 07 Sep 2016 23:28:02 +0200
Received: by mail-wm0-f53.google.com with SMTP id w12so55500162wmf.0 for <6tisch@ietf.org>; Wed, 07 Sep 2016 14:28:02 -0700 (PDT)
X-Gm-Message-State: AE9vXwMLextN+K8W+KZApF1xjE18SA2XpFLDDn6I/oAD9MIDnd16nlySTLPqw7vddyUSo+y+RrSlK6RETtD4eA==
X-Received: by 10.28.41.6 with SMTP id p6mr5559702wmp.18.1473283682659; Wed, 07 Sep 2016 14:28:02 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.80.173.135 with HTTP; Wed, 7 Sep 2016 14:27:42 -0700 (PDT)
In-Reply-To: <1150875178.1281140.1473279997957@mail.yahoo.com>
References: <CAMsDxWTSj3Yyu8wo5=p52DBycLS9pKAO263on24=z+R-FsTqDg@mail.gmail.com> <1150875178.1281140.1473279997957@mail.yahoo.com>
From: Thomas Watteyne <thomas.watteyne@inria.fr>
Date: Wed, 07 Sep 2016 23:27:42 +0200
X-Gmail-Original-Message-ID: <CADJ9OA9su_FEfz8YHicJNCG1DCM6TGVvo2pQSKOT7CL+OnPsFA@mail.gmail.com>
Message-ID: <CADJ9OA9su_FEfz8YHicJNCG1DCM6TGVvo2pQSKOT7CL+OnPsFA@mail.gmail.com>
To: Qin Wang <qinwang6top@yahoo.com>
Content-Type: multipart/alternative; boundary="001a114e32ea8efb46053bf196e5"
Archived-At: <https://mailarchive.ietf.org/arch/msg/6tisch/g18pINaNot4nfoQiEq03eNqfzqQ>
Cc: "6tisch@ietf.org" <6tisch@ietf.org>, Xavier Vilajosana <xvilajosana@eecs.berkeley.edu>
Subject: Re: [6tisch] follow up LIST cmd 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: Wed, 07 Sep 2016 21:28:08 -0000

<chair hat off>
Same question here.
And frankly I fail to understand what the problem is we are trying to fix.
In today's text:
- if I receive less cells than I asked for, that means "end of list".
- if I ask for more cells that fit in the packet, I receive a "no
resources" error. I can then try again, asking for a smaller number of cells
That seams to work, no?
So what is the problem we are trying to solve again?

On Wed, Sep 7, 2016 at 10:26 PM, Qin Wang <qinwang6top@yahoo.com> wrote:

> Hi Xavi,
>
> I think there are two scenarios which may result in the number of cells in
> the CellList of response packet less than numCells_max,
> (1)  when node B has N cells, where Offset<N and N<Offset+numCells_max
> cells;
> (2) when node B has more than Offset+numCells_max cells, but numCells_max
> cells cannot be fitted in the packet.
>
> My question is how to distinguish one from another from node A side? Did I
> miss something?
>
> Thanks
> Qin
>
>
> On Tuesday, September 6, 2016 4:45 AM, Xavier Vilajosana <
> xvilajosana@eecs.berkeley.edu> wrote:
>
>
> Hi,
>
> according to our discussion during the last 6TiSCH meeting I want to
> follow up Tero's proposal for the LIST cmd.
>
> here you will find his initial proposal
> https://www.ietf.org/mail-archive/web/6tisch/current/msg04719.html
>
> As a summary, the proposal enables 6P list to return a best effort set of
> cells, this is as many as can be fitted in a packet below a maximum. This
> makes the list command robust to the presence of other IEs in the packet
> (which sometimes may be present and some times don't and hence would make
> two identical requests to succeed or fail. With this approach LIST is
> independent of the remaining space in the packet)
>
> I follow up the discussion by proposing these changes to 6P.
>
> 1- change numCells field to numCells_max as follow:
>
>                         1                   2
>       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
>      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>      |Version|  Code |    SFID       | SeqNum|GAB|GBA|   Metadata
>      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>          Metadata    |            Offset             |   numCells_max
>      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>                      |
>      +-+-+-+-+-+-+-+-+
>
> where
>
> numCells_max:  The maximum number of requested cells.  Less cells
>          than numCells_max can be returned if they do not fit in the
>          packet.
>
> Then I propose the following text
>
> 4.3.10.  Listing Cells
>
>    When a node A issues a LIST_AB or LIST_BA command, it specifies:
>
>    o  Through the "Offset" field, the offset of the first cell to be
>       present in the returned list.  The cell ordering policy is defined
>       by the SF.
>    o  Through the "numCells_max" field, the maximum number of cells to
>       be present in the reponse.  If numCells_max cannot be fitted in the
>       packet less cells will be returned.
>
>    When receiving a LIST_AB command, node B returns the cells that are
>    scheduled from A to B in its schedule (i.e. receive cells from node
>    A).  When receiving a LIST_BA command, node B returns the cells that
>    are scheduled from B to A in its schedule (i.e. transmit cells to
>    node A).  The RECOMMENDED format of each 6P Cell is defined in
>    Section 4.2.5.  The SF MAY redefine the format of the CellList field.
>
>    Depending on how many cells node B has in its schedule which match the
>    LIST_AB or LIST_BA request, the cellList returned in the 6P Response
>    contains between 0 and numCells_max cells:
>
>    o  If node B has more than Offset+numCells cells, the cellList it
>       returns contains exactly numCells cells as long as the cellList
>       fits in the packet.  Otherwise it returns a cellList containing
>       the maximum number of cells that fit in the packet.
>    o  If node B has N cells, where Offset<N and N<Offset+numCells_max
>       cells, the cellList it returns contains exactly N-Offset cells.
>       If that number of cells do not fit in the packet, the cellList
>       containing the maximum number of cells that fit in the packet is
>       returned.
>    o  If node B has less than Offset cells, the cellList it returns is
>       empty.
>
>
> Please, raise any pros and cons you may find in this approach.
>
> _______________________________________________
> 6tisch mailing list
> 6tisch@ietf.org
> https://www.ietf.org/mailman/listinfo/6tisch
>
>
>
> _______________________________________________
> 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
_______________________________________