Re: [lp-wan] I-D Action: draft-ietf-lpwan-coap-static-context-hc-08.txt

<dominique.barthel@orange.com> Mon, 24 June 2019 15:34 UTC

Return-Path: <dominique.barthel@orange.com>
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 A290B120468; Mon, 24 Jun 2019 08:34:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, UNPARSEABLE_RELAY=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 M3gTZHOLtGvO; Mon, 24 Jun 2019 08:34:36 -0700 (PDT)
Received: from orange.com (mta136.mail.business.static.orange.com [80.12.70.36]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 68B3D12046C; Mon, 24 Jun 2019 08:34:31 -0700 (PDT)
Received: from opfednr05.francetelecom.fr (unknown [xx.xx.xx.69]) by opfednr23.francetelecom.fr (ESMTP service) with ESMTP id 45XYHn6RzDz5yHw; Mon, 24 Jun 2019 17:34:29 +0200 (CEST)
Received: from Exchangemail-eme6.itn.ftgroup (unknown [xx.xx.13.26]) by opfednr05.francetelecom.fr (ESMTP service) with ESMTP id 45XYHn5PT2zyQM; Mon, 24 Jun 2019 17:34:29 +0200 (CEST)
Received: from OPEXCAUBM21.corporate.adroot.infra.ftgroup ([fe80::d42b:2e80:86c2:5905]) by OPEXCAUBM31.corporate.adroot.infra.ftgroup ([fe80::34b6:11d0:147f:6560%21]) with mapi id 14.03.0439.000; Mon, 24 Jun 2019 17:34:29 +0200
From: dominique.barthel@orange.com
To: Laurent Toutain <laurent.toutain@imt-atlantique.fr>
CC: "draft-ietf-lpwan-coap-static-context-hc@ietf.org" <draft-ietf-lpwan-coap-static-context-hc@ietf.org>, "lp-wan@ietf.org" <lp-wan@ietf.org>
Thread-Topic: [lp-wan] I-D Action: draft-ietf-lpwan-coap-static-context-hc-08.txt
Thread-Index: AQHVKqJQPeySDdbr6EGM9VBGhCC82g==
Date: Mon, 24 Jun 2019 15:34:29 +0000
Message-ID: <20306_1561390469_5D10ED85_20306_475_1_D936B4B4.626D0%dominique.barthel@orange.com>
Accept-Language: fr-FR, en-US
Content-Language: fr-FR
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/14.7.3.170325
x-originating-ip: [10.114.13.247]
Content-Type: multipart/alternative; boundary="_000_D936B4B4626D0dominiquebarthelorangecom_"
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/lp-wan/a5wYgkaFq40Bi790WEQPFRu8CrU>
Subject: Re: [lp-wan] I-D Action: draft-ietf-lpwan-coap-static-context-hc-08.txt
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: Mon, 24 Jun 2019 15:34:41 -0000

Hello Laurent, all,

Last time, I hadn't gone through the OSCORE section.
I took the time to review it, and since –08 was issued in the meantime, I reviewed the OSCORE section of that one.
Here are my comments :
- section 6.5 OSCORE: "Their size SHOULD be reduced using the MSB matching operator". I'm not sure exactly the size of what you want to reduce here. Each of the 4 OSCORE  fields listed above? As described later in the document, you also suggest using equal+not-sent for the flags, for example.
- section 7.1 Figure 5: the "CoAP version" line in the table is duplicated. The MO for the Uri-Pathshows "equal 1"
- section 7.1 : "with a least the 9 most significant bits" —> you mean "7  most signifiant bits"?
- section 7.1 Figure 6. Quite hard to understand. I suggest you draw horizontal lines in the POST packet drawings, as well as vertical lines so that byte alignement shows. The code should be 0.02 instead of 0.01 on both sides, and TKL should be 0 on both sides.
- section 7.2 Figure 7: The current legend is confusing. I suggest "A CoAP message is broken into an OSCORE outer header and plaintext".
- section 7.2 Figure 8: the bottom box shows "Encrypted Inner Header and Payload". This is not quite true, there is the authentication tag as well.
- section 7.3 : "An example is given with a GET Request and its consequent CONTENT Response". Please mention "from a device-based CoAP client to a cloud-based CoAP server". This becomes important when we look at rules with the directional field descriptors.
- section 7.3 Figure 15: the option should be 0xd808…., it seems to me.
- section 7.3 Figure 20: the uplink CoAP Code Target Value should be 1 (GET). The dw CoAP Code TV shows a list, but the MO is equal. From the example, which seems to have one bit of residue for the code, it seems you want match-mapping/mapping-sent.

I also have a few nits and proposed text improvements, I'll submit a Pull Request on GitHub.
Best regards

Dominique

De : Laurent Toutain <laurent.toutain@imt-atlantique.fr<mailto:laurent.toutain@imt-atlantique.fr>>
Date : Sunday 12 May 2019 19:11
À : Dominique Barthel <dominique.barthel@orange.com<mailto:dominique.barthel@orange.com>>
Cc : "draft-ietf-lpwan-coap-static-context-hc@ietf.org<mailto:draft-ietf-lpwan-coap-static-context-hc@ietf.org>" <draft-ietf-lpwan-coap-static-context-hc@ietf.org<mailto:draft-ietf-lpwan-coap-static-context-hc@ietf.org>>, "lp-wan@ietf.org<mailto:lp-wan@ietf.org>" <lp-wan@ietf.org<mailto:lp-wan@ietf.org>>
Objet : Re: [lp-wan] I-D Action: draft-ietf-lpwan-coap-static-context-hc-06.txt



On Fri, May 3, 2019 at 6:34 PM <dominique.barthel@orange.com<mailto:dominique.barthel@orange.com>> wrote:
Dear authors,

I've read draft-ietf-lpwan-coap-static-context-hc-06 .

thank you very much Dominique,

Here are a few comments so far. I haven't seriously read OSCORE and
examples yet.
Overall, you are not using MUST and SHOULD. Is this intended because of
the informational status?

yes, rule gives a lot of flexibility and the compression mechanism depends of the
usage. The goal of the document is to explain how to apply compression to CoAP
protocol.

Thanks for the correction, this document is in the standard track not informational.



Technical
- I did not understand the last paragraph of 4.5 CoAP Token fields.

In SCHC when you don't know the field size at the rule creation, you can define the field as variable.
For instance :
FID.                    FL MO.     CDA
CoAP.URI-path. var ignore value-sent

in that case, the var keyword in the Field Length will make the compression send the length (in byte)
before the value of the field.

A CoAP Token has almost the same behavior as a URI-path, but the length and the value are stored
at 2 differents place in the CoAP Header.

The paragraph says that instead of var function to describe the length, a tkl function must be used. The
tlk function indicates that the length is stored in the CoAP TKL field. The receiver must use this value
to determine the value sent on the radio.


- I did not understand the first sentence of 5.3.1, Variable length
Uri-Path and Uri-Query. Do you mean "not" known?

yep, changed.

Also, I think the
following sentence no longer applies "and the LSB CDA must not carry any
value."

yes, that a remain of an older version of SCHC rule, suppressed in the draft


- 6.3 No-Response: "If the value is not known, ...". I guess you mean the
opposite.

right, not has been removed

- 6.4 Time Scale: "If the value is not known, ...". I guess you mean the
opposite.



idem

Editorial
- Section 1 Introduction: "The context is said static since the field
description composing the Rules and the context are not learned during the
packet exchanges but are previously defined." Context used twice, sentence
needs rewriting.

suppressed context: old reference.


- many more English writing nits, I will do a Pull Request on GitHub.

we did the merge.

Best regards
Dominique

Le 05/02/19 15:00, « lp-wan on behalf of internet-drafts@ietf.org<mailto:internet-drafts@ietf.org> »
<lp-wan-bounces@ietf.org<mailto:lp-wan-bounces@ietf.org> on behalf of internet-drafts@ietf.org<mailto:internet-drafts@ietf.org>> a écrit :

>
>A New Internet-Draft is available from the on-line Internet-Drafts
>directories.
>This draft is a work item of the IPv6 over Low Power Wide-Area Networks
>WG of the IETF.
>
>        Title           : LPWAN Static Context Header Compression (SCHC)
>for CoAP
>        Authors         : Ana Minaburo
>                          Laurent Toutain
>                          Ricardo Andreasen
>       Filename        : draft-ietf-lpwan-coap-static-context-hc-06.txt
>       Pages           : 29
>       Date            : 2019-02-05
>
>Abstract:
>   This draft defines the way SCHC header compression can be applied to
>   CoAP headers.  The CoAP header structure differs from IPv6 and UDP
>   protocols since CoAP
>   use a flexible header with a variable number of options themselves of
>   a variable length.  The CoAP protocol is asymmetric in its format
>   messages, the format of the header packet in the request messages is
>   different than in the response messages.  Most of the compression
>   mechanisms have been introduced in
>   [I-D.ietf-lpwan-ipv6-static-context-hc], this document explains how
>   to use the SCHC compression for CoAP.
>
>
>The IETF datatracker status page for this draft is:
>https://datatracker.ietf.org/doc/draft-ietf-lpwan-coap-static-context-hc/
>
>There are also htmlized versions available at:
>https://tools.ietf.org/html/draft-ietf-lpwan-coap-static-context-hc-06
>https://datatracker.ietf.org/doc/html/draft-ietf-lpwan-coap-static-context
>-hc-06
>
>A diff from the previous version is available at:
>https://www.ietf.org/rfcdiff?url2=draft-ietf-lpwan-coap-static-context-hc-
>06
>
>
>Please note that it may take a couple of minutes from the time of
>submission
>until the htmlized version and diff are available at tools.ietf.org<http://tools.ietf.org>.
>
>Internet-Drafts are also available by anonymous FTP at:
>ftp://ftp.ietf.org/internet-drafts/
>
>_______________________________________________
>lp-wan mailing list
>lp-wan@ietf.org<mailto:lp-wan@ietf.org>
>https://www.ietf.org/mailman/listinfo/lp-wan


_________________________________________________________________________________________________________________________

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.


_________________________________________________________________________________________________________________________

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.