Re: [lp-wan] SCHC over LoRaWAN review

Laurent Toutain <laurent.toutain@imt-atlantique.fr> Thu, 20 June 2019 14:24 UTC

Return-Path: <laurent.toutain@imt-atlantique.fr>
X-Original-To: lp-wan@ietfa.amsl.com
Delivered-To: lp-wan@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8FA11120089; Thu, 20 Jun 2019 07:24:46 -0700 (PDT)
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, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=imt-atlantique.fr
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 tOxRaTxj3AGu; Thu, 20 Jun 2019 07:24:44 -0700 (PDT)
Received: from zproxy130.enst.fr (zproxy130.enst.fr [137.194.2.194]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DD82C12004A; Thu, 20 Jun 2019 07:24:43 -0700 (PDT)
Received: from localhost (localhost [IPv6:::1]) by zproxy130.enst.fr (Postfix) with ESMTP id 5274512096B; Thu, 20 Jun 2019 16:24:42 +0200 (CEST)
Received: from zproxy130.enst.fr ([IPv6:::1]) by localhost (zproxy130.enst.fr [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id WmpNKNqOixYl; Thu, 20 Jun 2019 16:24:41 +0200 (CEST)
Received: from localhost (localhost [IPv6:::1]) by zproxy130.enst.fr (Postfix) with ESMTP id 8AD15120B0B; Thu, 20 Jun 2019 16:24:41 +0200 (CEST)
DKIM-Filter: OpenDKIM Filter v2.10.3 zproxy130.enst.fr 8AD15120B0B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imt-atlantique.fr; s=50EA75E8-DE22-11E6-A6DE-0662BA474D24; t=1561040681; bh=ID1prHoZ1e1O4BioY1lBbksDgF/fAmALFp6wd5Ib4y0=; h=MIME-Version:From:Date:Message-ID:To; b=eZ/2QB/3nahNGjpZs7WZgEI3RqzaHQCzvFkC9HnTJ8VLWzPkM5mHfKHzVGDeERJaX g4D+RCnFAxX1OUOg6Sut/TAUTdFkWXBtZmizdOxtVAo0kjDTit2bmBVMkv0vSYexTp tTV95iHnzgmn4Z7rxlbX+8HpRnQ5k4gwjXj9/AmI=
X-Virus-Scanned: amavisd-new at zproxy130.enst.fr
Received: from zproxy130.enst.fr ([IPv6:::1]) by localhost (zproxy130.enst.fr [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id tV_KnGd2roMa; Thu, 20 Jun 2019 16:24:41 +0200 (CEST)
Received: from mail-io1-f47.google.com (mail-io1-f47.google.com [209.85.166.47]) by zproxy130.enst.fr (Postfix) with ESMTPSA id 14B7912096B; Thu, 20 Jun 2019 16:24:41 +0200 (CEST)
Received: by mail-io1-f47.google.com with SMTP id k8so321050iot.1; Thu, 20 Jun 2019 07:24:40 -0700 (PDT)
X-Gm-Message-State: APjAAAWDmBJ2sY8O+6d2UXsorj5PkmeM/pJZyQiSUYnj93iui0MIU+h1 F1zKVn+fyMQ1arFTt3KfQc0RXyLPxth3ugxLUMI=
X-Google-Smtp-Source: APXvYqzYLEAbOI1nkIkfSOuSQP84Htr3Y986GBNrqcy23Gv8XViOlsyQwQzTMk3QFEem8jRRLqDah3DN33X0rZSqm2c=
X-Received: by 2002:a5d:87da:: with SMTP id q26mr18407168ios.193.1561040679584; Thu, 20 Jun 2019 07:24:39 -0700 (PDT)
MIME-Version: 1.0
References: <CABONVQbd+aO-FeLpATkjb+--7Px6ZkGLAU4udv2=F0CWgo4KUQ@mail.gmail.com> <19381_1559750200_5CF7E638_19381_17_1_D91DAE5B.61F45%dominique.barthel@orange.com> <CAJFkdRzKDxg9XMjwOn7TdQCSBA_QuAKAM5cPkeyxYfYQ_-ZohQ@mail.gmail.com> <CABONVQb-5adDLSjTC_c3JVw2rmvQwa=qVbfVR9ZctwrpNOQbmg@mail.gmail.com> <43696aa1ee3a4a8fb3b15f16175743d8@semtech.com>
In-Reply-To: <43696aa1ee3a4a8fb3b15f16175743d8@semtech.com>
From: Laurent Toutain <laurent.toutain@imt-atlantique.fr>
Date: Thu, 20 Jun 2019 16:24:02 +0200
X-Gmail-Original-Message-ID: <CABONVQa+4RomGy9RRSULb5mWYtsWqRN9Ff4KS3Dvi4H33XbqEQ@mail.gmail.com>
Message-ID: <CABONVQa+4RomGy9RRSULb5mWYtsWqRN9Ff4KS3Dvi4H33XbqEQ@mail.gmail.com>
To: Olivier Gimenez <ogimenez@semtech.com>
Cc: lp-wan <lp-wan@ietf.org>, "draft-ietf-lpwan-schc-over-lorawan@ietf.org" <draft-ietf-lpwan-schc-over-lorawan@ietf.org>, BARTHEL Dominique IMT/OLPS <dominique.barthel@orange.com>, ivaylo petrov <ivaylo@ackl.io>, Nicolas Sornin <nsornin@semtech.com>
Content-Type: multipart/alternative; boundary="0000000000002fcba7058bc21bb0"
Archived-At: <https://mailarchive.ietf.org/arch/msg/lp-wan/PTgrDsoCg6xRKksR2fMRxLcAVa0>
Subject: Re: [lp-wan] SCHC over LoRaWAN review
X-BeenThere: lp-wan@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Low-Power Wide Area Networking \(LP-WAN\), also known as LPWA or Low-Rate WAN \(LR-WAN\)" <lp-wan.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lp-wan>, <mailto:lp-wan-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lp-wan/>
List-Post: <mailto:lp-wan@ietf.org>
List-Help: <mailto:lp-wan-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lp-wan>, <mailto:lp-wan-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 20 Jun 2019 14:24:46 -0000

Hi Olivier,

Thank you for your answers, and the explanation for a Tile of 3 Bytes,
that's a good way to fill the frame.
I still have questions on fPorts:

- rule 20 is fully specified by the draft and that's logicial, and is
designed for short uplinks, that's perfect.

for the other rules
- rule 21 is for any SCHC rule uplink
- rule 22 is for any SCHC rule downlink,

For these rules are less directive, I suppose an implementer may decide to
use then as he wants, even if he does not follow the draft representation.

In SCHC a compression rule is bidirectional you can with the same rule ID
use it differently up and downlink. How do you plan to map it in the
LoRaWAN case?
same rule ID but the fport is changing regarding it has been sent by the
device or the network?

In SCHC the fragmentation rules are in one direction, the other direction
is used for ack with the same ruleID.
how do you map it ? do you use the same fPort for the ack ? For instance if
I send the combination fPort:RuleID
21:1000 for a fragment, the ack will be 21:1000 or 22:1000 (personally I
prefer to use 21: for the Ack).

See you

Laurent

On Fri, Jun 14, 2019 at 3:28 PM Olivier Gimenez <ogimenez@semtech.com>
wrote:

> Thank you Laurent for your review.
>
>
>
>
>
> - On your point about *relation between FPort and RuleID*, I think that
> Dominique's proposition could indeed make this part clearer.
>
>
>
> Something like
>
> FPort:RuleID ?
>
> 20: for the small one
>
> 21:RuleID for uplink
>
> and
>
> 22:RuleID for downlink
>
>
>
> No. *22:RuleID for all downlink* is OK but not 20 and 21.
>
> *21:RuleID works for all uplinks*, fragmented or not, add 2 bytes of
> overhead.
>
> *22: RuledID for fragmented uplinks* where payload is less than 381
> bytes, add 1 byte of overhead. I should add a comment that this one is not
> mandatory on device side, as using FPort 21 for a fragmented payload of 200
> bytes will also work. It is only purpose is reduce the overhead for small
> fragmented payloads.
>
>
>
>
>
>
>
>
>
> - On your point about *relation between compression and fragmentation, *we
> can add a bit more text about it, but our general idea was that compression
> depends much more on the specific scenario, so we are only providing the
> required parameters for it and we leave it to the <<*user>> * to figure
> out the remaining details. This is why this part is much shorter and
> probably less detailed. The fragmentation is the part that seemed the most
> likely source of interoperability issues and that is why most of our
> efforts so far have been concentrated on it.
>
>
>
> ok
>
>
>
> - While tile size of 6 could be used, the idea to have it only 3 bytes
> long is that mac commands in FOpts can be placed, without affecting too
> much the fragmentation. In addition, different payload sizes seem to fit
> well with this tile size. My guess is that only through observing real
> traffic we will be able to select the best tile size for most cases. If you
> have reasons to believe that other tile size will be more appropriate,
> please let us know.
>
>
>
> No I was surprised by the value, but it is a good trade-off
>
>
>
> It is the best one to have an efficient packing of tiles in all LoRaWAN
> MTU, taking into account that there can be FOpts. Using 2 would be even
> better but we would not comply with IPv6 MTU of 1280 bytes.
>
>
>
>
>
> Regarding comments about compression not described: what should be
> described ? The rules are user specific, and user can use 62 rules. What
> else should we write in the document ?
>
>
>
>
>
> I will think about not specifying ruleId in the document, and if it is not
> too difficult to implement.
>
>
>
>
>
> Please find attached the Word document with answers to your comments.
>
>
>
>
>
> Olivier
>
> To view our privacy policy, including the types of personal information we
> collect, process and share, and the rights and options you have in this
> respect, see www.semtech.com/legal.
>