Re: [lp-wan] SCHC Yang module review

Laurent Toutain <laurent.toutain@imt-atlantique.fr> Tue, 14 December 2021 08:49 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 79C503A0921 for <lp-wan@ietfa.amsl.com>; Tue, 14 Dec 2021 00:49:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 pHmlmJ6bTylb for <lp-wan@ietfa.amsl.com>; Tue, 14 Dec 2021 00:49:26 -0800 (PST)
Received: from zproxy120.enst.fr (zproxy120.enst.fr [IPv6:2001:660:330f:2::c1]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8E3DA3A091F for <lp-wan@ietf.org>; Tue, 14 Dec 2021 00:49:25 -0800 (PST)
Received: from localhost (localhost [IPv6:::1]) by zproxy120.enst.fr (Postfix) with ESMTP id 650DA80418 for <lp-wan@ietf.org>; Tue, 14 Dec 2021 09:49:18 +0100 (CET)
Received: from zproxy120.enst.fr ([IPv6:::1]) by localhost (zproxy120.enst.fr [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id uPqk6dkNAJEJ for <lp-wan@ietf.org>; Tue, 14 Dec 2021 09:49:17 +0100 (CET)
Received: from localhost (localhost [IPv6:::1]) by zproxy120.enst.fr (Postfix) with ESMTP id C559F81037 for <lp-wan@ietf.org>; Tue, 14 Dec 2021 09:49:17 +0100 (CET)
DKIM-Filter: OpenDKIM Filter v2.10.3 zproxy120.enst.fr C559F81037
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imt-atlantique.fr; s=50EA75E8-DE22-11E6-A6DE-0662BA474D24; t=1639471757; bh=qbLYRmCb01n6Ygf6icBw6KjiybWTP2tuIL2cvWe2xrk=; h=MIME-Version:From:Date:Message-ID:To; b=SwMQFSqLBK+pFUZzslEbv9AIJvk3KrEGkpVCC/kimh9/88GkU4gI9NAh7Ox4/CfVi vo68M2NGN5EACoK9BEcULAVTz7O7gVPlp9tlzt2juDQEH+0sqNY9Iz+LehlBQ+N+sv /w5kms1TXpPHPIrnOgdnIKI8+QMLPeDjPw2qthyg=
X-Virus-Scanned: amavisd-new at zproxy120.enst.fr
Received: from zproxy120.enst.fr ([IPv6:::1]) by localhost (zproxy120.enst.fr [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id wcPuZAXv7WFg for <lp-wan@ietf.org>; Tue, 14 Dec 2021 09:49:17 +0100 (CET)
Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by zproxy120.enst.fr (Postfix) with ESMTPSA id A6B3180418 for <lp-wan@ietf.org>; Tue, 14 Dec 2021 09:49:17 +0100 (CET)
Received: by mail-pj1-f44.google.com with SMTP id v16so621762pjn.1 for <lp-wan@ietf.org>; Tue, 14 Dec 2021 00:49:17 -0800 (PST)
X-Gm-Message-State: AOAM532Z/fx3NtOCuVHy8dxJHUJGvf4r1iIjZYha1GyQVNo94hcFhZFt x80yi7aorTGCg0DVSjoGNPjC8SAipk8tjz92ryU=
X-Google-Smtp-Source: ABdhPJxDFovoL2QuBZR439rgsE3gtwTn8ngdT3n/6zlsr4ZBorQ6LCGYm95NhW7EINsKbS20YOl4Mma97JlUuzePVYo=
X-Received: by 2002:a17:90b:4ad1:: with SMTP id mh17mr4196218pjb.33.1639471755750; Tue, 14 Dec 2021 00:49:15 -0800 (PST)
MIME-Version: 1.0
References: <5085_1639406404_61B75B44_5085_300_1_965452182f004b859aecc87e522fdd41@orange.com>
In-Reply-To: <5085_1639406404_61B75B44_5085_300_1_965452182f004b859aecc87e522fdd41@orange.com>
From: Laurent Toutain <laurent.toutain@imt-atlantique.fr>
Date: Tue, 14 Dec 2021 09:48:39 +0100
X-Gmail-Original-Message-ID: <CABONVQb4dHXe_L8YU0_dihiemxOnqEip4rdcdTrsKg04+ObbZw@mail.gmail.com>
Message-ID: <CABONVQb4dHXe_L8YU0_dihiemxOnqEip4rdcdTrsKg04+ObbZw@mail.gmail.com>
To: BARTHEL Dominique IMT/OLPS <dominique.barthel@orange.com>
Cc: "lp-wan@ietf.org" <lp-wan@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000009ef42405d3174357"
Archived-At: <https://mailarchive.ietf.org/arch/msg/lp-wan/IHVb9-fGmivNOtgqW_PKVqphP28>
Subject: Re: [lp-wan] SCHC Yang module 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: Tue, 14 Dec 2021 08:49:34 -0000

Thank you Dominique for the review.

My comments in line:

On Mon, Dec 13, 2021 at 3:40 PM <dominique.barthel@orange.com> wrote:

> Dear LPWAN WG,
>
>
> Following our interim meeting last week, I gave a look at the current SCHC
> Yang model with respect to RFC 8724 Appendix D. Here are my comments:
>
> - the fragmentation-content grouping describes all the parameters needed
> by any of the fragmentation modes. It could be more specific as to which
> are mandatory for each mode, and which are not required (irrelevant) for
> each mode (e.g. Retransmission Timer or MAX_ACK_REQUESTS in No-ACK mode).
> This might help catching errors early.
>

That's a good point, we can add When statement for this one.

> - the support for interleaved fragmented packet transmission is not
> described in the yang model. Do we need it? The DTag size (T) is an
> indication that interleaving might be supported or not, but a profile might
> want to specify e.g. that interleaving 3 packets is mandatory, while T==2
> says that up to 4 packets could be interleaved.
>
Good discussion for the group, we try to implement just what is defined in
RFC8{7|8}24, do you introduce more specific and useful information in the
model?


> - similarly, the "lifetime of DTag at the receiver" is not in the Yang
> model. Shall it be? Or is it part of a priori knowledge from the profile?
>

I don't catch this point, isn't it linked to inactivity timer?

> - Appendix D says that a profile, if Ack-on-Error is used, must define "if
> the penultimate tile of a SCHC Packet is of the regular size only or if it
> can also be one L2 Word shorter". I haven't found such information in the
> Yang model. Shall it be? Or is it part of a priori knowledge from the
> profile? I would assume that this would depend on the tile size,
> therefore vary by rule, therefore should be in the Yang model.
>

For me there was not option, it is always done.

> - I'm unclear that ack-behavior in the Yang model captures the intention
> of RFC8724. The description of ack-behavior-after-All0 says that an ACK
> is expected after an All-0, and the description of ack-behavior-after-All1
> says that an ACK is expected after an All-1, but the two are not exclusive,
> while ack-behavior cannot be equal to both. Likewise ack-behavior-always is
> described like an ACK is expected after every fragment, I think it wanted
> to say after every window. These pertain to different fragmentation modes
> (Ack-on-Error and Ack-Always).
>

May be the erm always is not well chosen and need more explanation, It is
more the ack are sent when the L2 allowed it.

>
> - WINDOW_SIZE [RFC8724] is incorrectly described as maximum-window-size
> (Yang model). The window_size is the max tile index + 1, while the max
> window size is 2^M-1
>

The goal was to limit the maximum value for FCN and not always having
2^M-2

> - typo in the description : fcn-size is M, not N
>
>
> ok

> There are another few features I'm unsure about, I'm still learning Yang.
>
> I think a little more work is needed on the SCHC Yang module.
>

I agree and your review is extremely valuable.

Thank you

Laurent

>
> Best regards
>
>
> Dominique
>
> _________________________________________________________________________________________________________________________
>
> Ce message et ses pieces jointes peuvent contenir des informations confidentielles ou privilegiees et ne doivent donc
> pas etre diffuses, exploites ou copies sans autorisation. Si vous avez recu ce message par erreur, veuillez le signaler
> a l'expediteur et le detruire ainsi que les pieces jointes. Les messages electroniques etant susceptibles d'alteration,
> Orange decline toute responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
>
> This message and its attachments may contain confidential or privileged information that may be protected by law;
> they should not be distributed, used or copied without authorisation.
> If you have received this email in error, please notify the sender and delete this message and its attachments.
> As emails may be altered, Orange is not liable for messages that have been modified, changed or falsified.
> Thank you.
>
>