Re: [lp-wan] [Last-Call] [Tsv-art] Tsvart last call review of draft-ietf-lpwan-coap-static-context-hc-12

dominique.barthel@orange.com Fri, 20 March 2020 16:36 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 A22153A0D00; Fri, 20 Mar 2020 09:36:14 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=orange.com
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 SxccCkujMS61; Fri, 20 Mar 2020 09:36:11 -0700 (PDT)
Received: from relais-inet.orange.com (relais-inet.orange.com [80.12.70.35]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3CB3A3A0CFA; Fri, 20 Mar 2020 09:36:10 -0700 (PDT)
Received: from opfednr04.francetelecom.fr (unknown [xx.xx.xx.68]) by opfednr25.francetelecom.fr (ESMTP service) with ESMTP id 48kTtH67vrzCrVc; Fri, 20 Mar 2020 17:36:07 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.com; s=ORANGE001; t=1584722167; bh=VkfYXe7IDa42R9uw17XicFBh3m/b9ikFVUddHwgO6UM=; h=From:To:Subject:Date:Message-ID:Content-Type:MIME-Version; b=YZGTDgIKDpmTWvlOTZH+JdPSaH/w09WQ0u+fx8zpFljhZebJ2WB4j2RizAK3Ffy3r DNJybeUk2l4C7eG/9mpQf5tMrVDARVHHgIqNJLB6Y/fTv6vauHSNRPSW7UWUxZ2qqj wFzKfjOUvs1s9JiJeqJ6+VS+7c79PkmIMnEFqOLgtABukFn3VT4YewDbKmWWV+fhmQ qrQO1CM6761tRioRlW2KKRmtt4tYG4rbwVwNufMTCB30flRY7tkKBXOQySJmcxuujy aTEwpAwc400mvMJCopKyFyFbh+YWVtosVYxxSoayksrflpkPNFgb+x9a3N2P7w90mz pTb8OpTSXpSOQ==
Received: from Exchangemail-eme6.itn.ftgroup (unknown [xx.xx.13.51]) by opfednr04.francetelecom.fr (ESMTP service) with ESMTP id 48kTtH4RmMz1xpC; Fri, 20 Mar 2020 17:36:07 +0100 (CET)
From: dominique.barthel@orange.com
To: Joseph Touch <touch@strayalpha.com>
CC: "draft-ietf-lpwan-coap-static-context-hc.all@ietf.org" <draft-ietf-lpwan-coap-static-context-hc.all@ietf.org>, "last-call@ietf.org" <last-call@ietf.org>, Mirja Kuehlewind <ietf@kuehlewind.net>, The IESG <iesg@ietf.org>, "lp-wan@ietf.org" <lp-wan@ietf.org>, "tsv-art@ietf.org" <tsv-art@ietf.org>, "draft-ietf-lpwan-ipv6-static-context-hc@ietf.org" <draft-ietf-lpwan-ipv6-static-context-hc@ietf.org>, Benjamin Kaduk <kaduk@mit.edu>
Thread-Topic: [Last-Call] [Tsv-art] [lp-wan] Tsvart last call review of draft-ietf-lpwan-coap-static-context-hc-12
Thread-Index: AQHV/tWnfsdWNFtto0ep8W3DP5MLcw==
Date: Fri, 20 Mar 2020 16:36:07 +0000
Message-ID: <14010_1584722167_5E74F0F7_14010_126_1_DA9AA5F1.723F4%dominique.barthel@orange.com>
References: <158152010913.17982.18347318138768196852@ietfa.amsl.com> <340_1584143298_5E6C1BC2_340_169_1_DA91D669.71EAC%dominique.barthel@orange.com><20200317211335.GR50174@kduck.mit.edu> <30843_1584487855_5E715DAF_30843_429_4_DA971B0C.72109%dominique.barthel@orange.com> <27E35DC7-C83E-4C6C-984A-3AC1C183BC28@kuehlewind.net> <9DF137B7-2861-4ADA-9C8B-22DFE7022EAD@strayalpha.com> <F3327431-EBBF-450C-802F-E8D0E29F20D5@kuehlewind.net> <20350_1584600280_5E7314D8_20350_426_1_DA98D1CE.72223%dominique.barthel@orange.com> <2539076A-99CD-44B3-9903-25E42ACB5603@strayalpha.com>
In-Reply-To: <2539076A-99CD-44B3-9903-25E42ACB5603@strayalpha.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_DA9AA5F1723F4dominiquebarthelorangecom_"
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/lp-wan/Vw1ccAwLKtjlDsp67fvYFztK9pU>
Subject: Re: [lp-wan] [Last-Call] [Tsv-art] Tsvart last call review of draft-ietf-lpwan-coap-static-context-hc-12
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: Fri, 20 Mar 2020 16:36:15 -0000

Hello Joe,

Indeed, the SCHC compression happens on a per-packet basis.
Incoming packets are broken into individual fields by the protocol analyser, then SCHC browses the rule store to find a rule that matches the fields that are being handed to it. If a rule matches (per the algorithm described in 7.3 of draft-ietf-lpwan-ipv6-static-context-hc-24), then that rule is applied to compress the packet. The next packet with a difference in any field, no matter how slight, might be compressed by a different rule, which may handle UDP.Length differently. One rule may elide and recompute UDP length, the next rule may send it in extenso (or only send a few lsbs, etc).
With SCHC, there is no notion of packet flow, nor any  dynamic state built during a session. Each individual packet is pattern-matched and processed independently, using the static set of rules.

Based on this, I guess I can resolve your conditional answers below, inline.
Please let me know if they work for you.
Thanks

Dominique

De : Joseph Touch <touch@strayalpha.com<mailto:touch@strayalpha.com>>
Date : Friday 20 March 2020 16:23
À : Dominique Barthel <dominique.barthel@orange.com<mailto:dominique.barthel@orange.com>>
Cc : "draft-ietf-lpwan-coap-static-context-hc.all@ietf.org<mailto:draft-ietf-lpwan-coap-static-context-hc.all@ietf.org>" <draft-ietf-lpwan-coap-static-context-hc.all@ietf.org<mailto:draft-ietf-lpwan-coap-static-context-hc.all@ietf.org>>, "last-call@ietf.org<mailto:last-call@ietf.org>" <last-call@ietf.org<mailto:last-call@ietf.org>>, Mirja Kuehlewind <ietf@kuehlewind.net<mailto:ietf@kuehlewind.net>>, The IESG <iesg@ietf.org<mailto:iesg@ietf.org>>, "lp-wan@ietf.org<mailto:lp-wan@ietf.org>" <lp-wan@ietf.org<mailto:lp-wan@ietf.org>>, "tsv-art@ietf.org<mailto:tsv-art@ietf.org>" <tsv-art@ietf.org<mailto:tsv-art@ietf.org>>, "draft-ietf-lpwan-ipv6-static-context-hc@ietf.org<mailto:draft-ietf-lpwan-ipv6-static-context-hc@ietf.org>" <draft-ietf-lpwan-ipv6-static-context-hc@ietf.org<mailto:draft-ietf-lpwan-ipv6-static-context-hc@ietf.org>>, Benjamin Kaduk <kaduk@mit.edu<mailto:kaduk@mit.edu>>
Objet : Re: [Last-Call] [Tsv-art] [lp-wan] Tsvart last call review of draft-ietf-lpwan-coap-static-context-hc-12

Hi, Dominique,

See below.

My concern is whether UDP length can be compressed or not on a per-packet basis in SCHC.

Joe

On Mar 18, 2020, at 11:44 PM, dominique.barthel@orange.com<mailto:dominique.barthel@orange.com> wrote:

Hello Joe, all,
...
Second, let me be transparent.
My goal is to publish the specification of the * generic * SCHC mechanism
as soon as possible.
Frankly, I wish Section 10 (the application of the generic SCHC mechanism
to UDP/IPv6) were a separate draft, so I would not have to worry about it
* right now *.
Since Section 10 shall remain a part of the generic SCHC draft, I’m trying
to find the quickest exit route from the issues the draft currently has.
I’d rather not being dragged into specifying the details of what SCHC must
do in the presence of a UDP Length that cannot be straightforwardly
recomputed out of the IPv6 Length.

That’s actually quite easy and thus it should not delay anything.

I’d rather just state clearly that Section 10, as currently written,
*only* applies to the case where the UDP Length can be straightforwardly
recomputed out of the IPv6 Length, and leave for another draft to deal
with the opposite case.

- Section 7.5.8 should not include UDP length as an example of compute-*; it might even be useful to include the following as a caveat:

Note that UDP length is not an example of this type of field. In many conventional uses, UDP length is “IP length - IP header length”, but this is not strictly required by RFC 768 and there are emerging uses for cases where the lengths are not related this way [draft-ietf-tsvwg-udp-options].

- Section 10.10

The UDP length may or may not be related to the IP length, as noted in Section 7.5.8. A currently developing use of UDP options relies on UDP length being shorter than “IP length - IP header length”. In this case, the UDP options might be compressible but the UDP length is not computable from the UDP option fields alone.

(Why am I saying this? I’m guessing that there are situations where a
protocol analyser understands all the fields/options/bytes between the
IPv6.Length pointer and the UDP.Length pointer and SCHC conveys all these
fields/options/bytes to the receiver. Then, UDP.Length might still be
recomputed, admitedly not straightforwardly, out of IPv6.Length and the
received fields/options/bytes.)

That’s not the case for UDP options.
[DB] discussing this is not on my shortest path to exit, but I love to take the time to understand this fully. At your leisure, and probably with a smaller CC list, would you mind pointing me at an example?
Therefore, I would rather not write in this draft that “it MUST NOT be
compressed as computable otherwise”, as Joe suggests in his email March
18th 14:6 UTC, included below.

See above; it doesn't need to say MUST NOT. It can leave the door open to alternatives, but I’d at suggest at least hinting that they might not exist.

If you agree with this premise, here are the proposed changes in
ietf-lpwan-ipv6-static-context-hc (RFC8724-to-be)

In a nutshell
- clean up the “generic SCHC” specification from any hint that UDP Length
can be recomputed. These hints are not necessary to understand the generic
SCHC algorithm anyway.

Agreed, e.g., esp. for 7.5.8

- In Section 10 and Appendix A, which are the only ones pertaining to UDP,
specify that these recommendations/examples only apply when the UPD length
can be straightforwardly recomputed out of IPv6 length.

OK, so this depends on how the compression works - which I need your help with.

Is it possible to compress when they “match” and not compress when they don’t? If so, then sure - say that. If not, then I would suggest erring on the side of assuming that UDP length cannot be compressed in any examples given - even perhaps adding a note to explain why.
[DB] as said at the top of this email, the answer is yes, this is possible.
Proposed edits, in order of appearance in the draft

Abstract
OLD_TEXT
This document defines a generic header compression mechanism and its
application to compress IPv6/UDP headers.
NEW_TEXT
This document defines a generic header compression mechanism and its
application to compress basic IPv6/UDP headers.

That depends on whether or not you can do as I note above, i.e., compress or not compress that one field on a per-packet basis.

If not, then leave the original text and simply don’t compress the UDP length field.
[DB] given that the answer is yes, I understand that you agree with the proposed change.
Section 7.3.8
OLD_TEXT
Because the field is uniquely identified by its Field ID (e.g., UDP
length),
NEW_TEXT
Because the field is uniquely identified by its Field ID (e.g., IPv6
length),

OK

OLD_TEXT
Examples of fields that know how to recompute themselves are UDP length,
IPv6 length and UDP checksum.
NEW_TEXT
An example of fields that know how to recompute themselves is IPv6 length.

Grammar suggestion:

An example of a field that knows how to recompute itself is IPv6 length.
[DB] agreed, thanks.
Section 10
OLD_TEXT
10.  SCHC Compression for IPv6 and UDP Headers
NEW_TEXT
10.  SCHC Compression for basic IPv6 and UDP Headers

Again, unless UDP length can be compressed/not on a per-packet basis, leave as-is.
[DB] given that the answer is yes, I understand that you agree with the proposed change.
OLD_TEXT
This section lists the IPv6 and UDP header fields and describes how
they can be compressed.  An example of a set of Rules for UDP/IPv6
header compression is provided in Appendix A.
NEW_TEXT
This section shows an application of the generic SCHC C/D mechanism (see
Section 7)
for compressing basic IPv6 and UDP headers.
This section only applies to UDP/IPv6 packets where the UDP length can be
straighforwardly recomputed from the IPv6 length. An example of such a set
of Rules is provided in Appendix A.
Sytems MUST NOT apply compression Rules implemented with the
recommendations from Section 10 unless they verify that the UDP length can
be straighforwardly recomputed from the IPv6 length.

Again, unless UDP length can be compressed/not on a per-packet basis, leave as-is.
[DB] given that the answer is yes, I understand that you agree with the proposed change.
[DB] instead of "straightforwardly", I could say "be recomputed as IPv6 length", since we are considering IPv6 packets without extension headers. I could move the latter statement up here from 10.8.

Section 10.10 UDP Length Field
OLD_TEXT
The UDP length can be computed from the received data.  The TV is not
set, the MO is set to "ignore", and the CDA is set to "compute-*".
NEW_TEXT
Providing the condition described at the beginning of Section 10 is met,
the UDP length can be computed from the received data.  The TV is not set,
the MO is set to "ignore", and the CDA is set to "compute-*”.

See my suggestion above.
[DB] given that the answer to the per-packet processing capability is yes, I understand that you agree with the proposed change.
Section 12.1.1
OLD_TEXT
This property is true for IPv6 Length, UDP Length, and UDP Checksum, for
which the compute-* CDA is recommended by this document.
NEW_TEXT
This property is true for IPv6 Length, UDP Length, and UDP Checksum, for
which the compute-* CDA is recommended by this document, under the
conditions described at the beginning of Section 10.

OK.

Appendix A
OLD_TEXT
This section gives some scenarios of the compression mechanism for
IPv6/UDP headers.
NEW_TEXT
This section provides an example of a Rule set for compressiing basic
IPv6/UDP headers, where the UDP length can be straightforwardly recomputed
out of IPv6 length.

Again, see my caveat.
[DB] given that the answer to the per-packet processing capability is yes, I understand that you agree with the proposed change.

Would this work for you? Comments welcome.
Thanks

Dominique



Le 18/03/20 16:03, « Mirja Kuehlewind » <ietf@kuehlewind.net<mailto:ietf@kuehlewind.net>> a écrit :

That’s the better wording!


On 18. Mar 2020, at 15:55, Joseph Touch <touch@strayalpha.com<mailto:touch@strayalpha.com>> wrote:



On Mar 18, 2020, at 5:50 AM, Mirja Kuehlewind <ietf@kuehlewind.net<mailto:ietf@kuehlewind.net>>
wrote:

Indeed, the protocol parser and the SCHC rules need to know about the
UDP
TLVs if one wants to compress them.
But the same is true of all the other fields. I don't think this one
warrants a special notice.
What I insist on is that, if an implementation does not know of the
UDP
TLVs, it will not reconstruct an erroneous UDP Length, even for a
packet
that contains these TLVs, assuming that the protocol parser checks
the UDP
and IPv6 lengths for consistency.

I think this last statement (“protocol parser checks the UDP
and IPv6 lengths for consistency”) is the important point that needs
to be explicitly mention in the document!

That way of phrasing it is dangerous - it implies that when the values
differ there is some sort of error.

It would be more in line with current TSV efforts to standardize UDP
options to say “UDP length can be compressed when it *can* be computed
from the IP length” and that “it MUST NOT be compressed as computable
otherwise”.

Joe



_________________________________________________________________________________________________________________________

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.

--
last-call mailing list
last-call@ietf.org<mailto:last-call@ietf.org>
https://www.ietf.org/mailman/listinfo/last-call


_________________________________________________________________________________________________________________________

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.