Re: [Iot-directorate] Iotdir telechat review of draft-ietf-lpwan-schc-over-lorawan-10

Olivier Gimenez <ogimenez@semtech.com> Mon, 28 September 2020 11:11 UTC

Return-Path: <ogimenez@semtech.com>
X-Original-To: iot-directorate@ietfa.amsl.com
Delivered-To: iot-directorate@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EA5273A0FB6; Mon, 28 Sep 2020 04:11:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-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=semtech.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 gE05UaE1m6NP; Mon, 28 Sep 2020 04:11:05 -0700 (PDT)
Received: from mail1.bemta23.messagelabs.com (mail1.bemta23.messagelabs.com [67.219.246.2]) (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 BBFC13A0FCD; Mon, 28 Sep 2020 04:11:04 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=semtech.com; s=k1; t=1601291463; i=@semtech.com; bh=sRCK9K1SaJWj3S25x5XLB5N+ljSzhK15HSnwjduIkxE=; h=From:To:CC:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=Dj0tFMqPofHaOvOlD7/pldg5L5YyLxwgdf1m3bWHItj97H4KfR9Lf7IVA0ba9qwVS GtkEI0Y7gZT24DNGzknyhRxnPSaavm40RfuVhNsSl3pROfP+l32l1M3i0YgCtl6xYq H2SYQmX8wLSOoTYmVCQIsq5dV32MVW2CwKlm0U9R1QyP/rqqnQo/4/i3M+JLmHQfYt 79jgi/kb51r2UCOI6jNyGV0Z3vayUKl8rC2dB0pxUrOH/lj/rTr0jeS4hUpvtk0tqx 6MppgpUjXXcO4XOKvWukrp9mEVwD8NoFkRtdNCnz9dMR7npwJOmVF5ugaXgSfQpzdy eqXXjp8t1B3tA==
Received: from [100.112.2.208] (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256 bits)) by server-2.bemta.az-b.us-east-1.aws.symcld.net id 34/92-13990-7C4C17F5; Mon, 28 Sep 2020 11:11:03 +0000
X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprGJsWRWlGSWpSXmKPExsXiofbjse6xI4X xBn9emln8vnef2WJl411mizez7C3OLL/F7sDisXPWXXaPJUt+MgUwRbFm5iXlVySwZjydu5ip YPZxpoplx1rZGxjfHmLqYuTiEBJ4wCixb88NFgjnBaNE74RJrBDOTkaJ3ycmsHcxcnKwCehI/ H8+ixXEFhGIl+g+dY8ZpIhZoI9R4s6uGYxdjBwcwgI+Eg92OUPU+EpcfdcOVW8ksXjSXRYQm0 VAVaL18G1mEJtXwEpiQuNTJhBbSMBFYsX8bWwgNqeAq8TL5/8YQWxGATGJ76fWgNUwC4hL3Ho yH8yWEBCQWLLnPDOELSrx8vE/sKMlBKYxS/Qu/MkIkeCXmHf4OiuErSjReqyJDWJQosTBS0+h jhCUODnzCQvEEUA10xYyT2AUn4Vk3ywkLbOQtMwCeplZQFNi/S59iBJFiSndD9khbA2J1jlz2 ZHFFzCyr2I0SyrKTM8oyU3MzNE1NDDQNTQ00gVCU2O9xCrdJL3SYt3UxOISXUO9xPJiveLK3O ScFL281JJNjMCITylg+ruD8dzrD3qHGCU5mJREeRl3F8YL8SXlp1RmJBZnxBeV5qQWH2KU4eB QkuAtPAyUEyxKTU+tSMvMASYfmLQEB4+SCO8GkDRvcUFibnFmOkTqFGM4x4SXcxcxcxw8Og9I Xr4OIt/9XAwkT65aAiQ/gsnvYPLI3KWLmIVY8vLzUqXEeWeDjBMAGZdRmge3DJZcLzHKSgnzM jIwMAjxFKQW5WaWoMq/YhTnYFQS5j0FMoUnM68E7qZXQOcyAZ178E4ByLkliQgpqQYmHTkn1T Vn3zjM3/BnWn/zLt6fj7fWtdk4VUw/5qdou6Hhi/j0Wt+qB1dmHrUwZJa6tGFfuxqza6XOvKl 5a09xPviwS8616rjYzdP7ZXr6T0u+d880zyqd1fQw4sDOtJ3J5tuPFCoyPRScMlHtxv71v+S7 I4OzZ9gf+X9RRvMyywre7rnv9nNKiDJHCj4qfRW2TKThWeSG2Yt5rt0WmcXnJVV//ULz/bXXi 2vjci6bLbZX+njgcNTm6Ka6Cv+n4THqZhFpWzal5U38w7LbqFZ0/3qeDr3rC8XljN49Wmt7fd 7R5tjQbOvHqxRzhXeEvhYrFo6vj8kt+zpxzhG5ap4L4YdZ9G/uux2fcEU4MXS5EktxRqKhFnN RcSIAUFiXSSkEAAA=
X-Env-Sender: ogimenez@semtech.com
X-Msg-Ref: server-34.tower-385.messagelabs.com!1601291461!1604512!1
X-Originating-IP: [72.38.248.227]
X-SYMC-ESS-Client-Auth: outbound-route-from=pass
X-StarScan-Received:
X-StarScan-Version: 9.60.3; banners=semtech.com,-,-
X-VirusChecked: Checked
Received: (qmail 12221 invoked from network); 28 Sep 2020 11:11:02 -0000
Received: from s72-38-248-227.static.datacom.cgocable.net (HELO ca01exedge1.semnet.dom) (72.38.248.227) by server-34.tower-385.messagelabs.com with ECDHE-RSA-AES256-SHA384 encrypted SMTP; 28 Sep 2020 11:11:02 -0000
Received: from CA01MAIL1.semnet.dom (10.2.50.40) by ca01exedge1.semnet.dom (10.2.110.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1034.26; Mon, 28 Sep 2020 07:10:39 -0400
Received: from ca01mail2.semnet.dom (10.2.50.41) by CA01MAIL1.semnet.dom (10.2.50.40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.26; Mon, 28 Sep 2020 07:10:59 -0400
Received: from ca01mail2.semnet.dom ([fe80::fdc8:c457:b09e:605d]) by ca01mail2.semnet.dom ([fe80::fdc8:c457:b09e:605d%22]) with mapi id 15.01.1034.026; Mon, 28 Sep 2020 07:10:59 -0400
From: Olivier Gimenez <ogimenez@semtech.com>
To: JADHAV Rahul <rahul.ietf@gmail.com>, "iot-directorate@ietf.org" <iot-directorate@ietf.org>
CC: "lp-wan@ietf.org" <lp-wan@ietf.org>, "draft-ietf-lpwan-schc-over-lorawan.all@ietf.org" <draft-ietf-lpwan-schc-over-lorawan.all@ietf.org>
Thread-Topic: Iotdir telechat review of draft-ietf-lpwan-schc-over-lorawan-10
Thread-Index: AQHWj34LvC9fhh3L6kO6CSTtHAbMGKl90lfg
Date: Mon, 28 Sep 2020 11:10:59 +0000
Message-ID: <80bd05e545544460898e6e2e5f2395c6@semtech.com>
References: <160062754115.11804.14155661597916541894@ietfa.amsl.com>
In-Reply-To: <160062754115.11804.14155661597916541894@ietfa.amsl.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-dg-ref: PG1ldGE+PGF0IG5tPSJib2R5Lmh0bWwiIHA9ImM6XHVzZXJzXG9naW1lbmV6XGFwcGRhdGFccm9hbWluZ1wwOWQ4NDliNi0zMmQzLTRhNDAtODVlZS02Yjg0YmEyOWUzNWJcbXNnc1xtc2ctNDc0OTA1ZDQtMDE3Yi0xMWViLWI3MzktZTRiMzE4NjYzZWUxXGFtZS10ZXN0XDQ3NDkwNWQ1LTAxN2ItMTFlYi1iNzM5LWU0YjMxODY2M2VlMWJvZHkuaHRtbCIgc3o9IjIwMjIyIiB0PSIxMzI0NTc2NTA1NjQzMDA0MzkiIGg9InBTMFRMaTI4SFFtek9HL0Nydi9uckZZNlV3az0iIGlkPSIiIGJsPSIwIiBibz0iMSIvPjwvbWV0YT4=
x-dg-rorf: true
x-originating-ip: [10.136.88.186]
Content-Type: multipart/alternative; boundary="_000_80bd05e545544460898e6e2e5f2395c6semtechcom_"
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/iot-directorate/V9SrQdiv9YQiBpuavaimQdqT9wc>
Subject: Re: [Iot-directorate] Iotdir telechat review of draft-ietf-lpwan-schc-over-lorawan-10
X-BeenThere: iot-directorate@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Mailing list for the IoT Directorate Members <iot-directorate.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/iot-directorate>, <mailto:iot-directorate-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/iot-directorate/>
List-Post: <mailto:iot-directorate@ietf.org>
List-Help: <mailto:iot-directorate-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/iot-directorate>, <mailto:iot-directorate-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 28 Sep 2020 11:11:08 -0000

Dear Rahul,



Thank you very much for your review. Please find my answers/questions in your email



Best regards

Olivier



> -----Original Message-----

> From: JADHAV Rahul via Datatracker <noreply@ietf.org>

> Section 4:

> [RJ] The architecture shows "Join Server" but the section has no explanation for

> it.



[OG] Ok, added in commit 669cc0d<https://github.com/Acklio/schc-over-lorawan/commit/669cc0d6a699ed9db20fbcb2a8fb2000d19066d2>:

The LPWAN-AAA Server is the LoRaWAN Join Server. Its role is to manage and

deliver security keys in a secure way, so devices root key is never exposed.



> Section 4:

> "The Network Gateway (NGW) is the interconnection node between the Radio

> Gateway and the Internet." [RJ] It is mentioned that NGW is the gateway to the

> Internet but the SCHC C/D and F/R is handled on the LoRaWAN application

> server.

> How would the compressed packets be sent out to the Internet from NGW? [RJ]

> In the last para of the section it is mentioned that "(SCHC gateway) acts as the

> first-hop IP router for the device. This means that the NGW is not the

> interconnection node between the RGW and the Internet.



(OG] True, this has been written from LoRaWAN point of view, where data are usually

transmitted from the Network Server (NGW) to the Application server (SCHC gateway)

thought internet. But it is misleading in this context. I updated it in commit  d7ae663<https://github.com/Acklio/schc-over-lorawan/commit/d7ae663f39889d7207ca4dea8d5a38801274415b> :

The Network Gateway (NGW) is the interconnection node between the

   Radio Gateway and the SCHC gateway (LoRaWAN Application server). This

   entity maps to the LoRaWAN Network Server.



> Section 4:

> [RJ] The terms used in the architecture figure 3 and the document are

> different/confusing. For e.g., the figure mentions Application Server which is

> referred to as SCHC Gateway in the overall document. The figure mentions

> Network Server but is referred to as Network Gateway (NGW) in the overall

> document. As a reader, I wanted to use this architecture diagram as a ref but

> the terms mentioned in the diagram are different from those used in the draft

> elsewhere.



[OG] This chapters explains a LoRaWAN network. I have been asked use all

terminology from the RFC8376 (see figure 9) instead of LoRaWAN terminology

for the other chapters of the document. Mapping is defined thanks to figures 1

and 2.

[OG] Should I delete figure 3 as it creates more confusion that clarity ?



> Section 4.1:

> "The lower the downlink latency, the higher the power consumption."

> [RJ] I didn't understand why lower latency could result in higher power

> consumption. I think the intention was to use either downlink frequency or

> listen periodicity as a driver for higher power consumption.



Lower latency means more wakes up of the device to open an RX window,

thus more power consumption. I clarified in commit d755ed2<https://github.com/Acklio/schc-over-lorawan/commit/d755ed21b4a668df7d0665ff120ced498015e845>:

There is a trade-off between the

  periodicity of those scheduled Class B listen windows and the power

  consumption of the device: if the periodicity is high downlinks from the NGW

  will be send faster, but the device wakes up more often: it will have higher

  power consumption



> Section 4.3/4.4:

> [RJ] The terms "frames" and "messages" are used interchangeably. Would be

> better to use a fixed term, or else clarify these terms in the document.



[OG] Clarified in commit 459eda2<https://github.com/Acklio/schc-over-lorawan/commit/459eda294aae7483a8a8fd00d65ed68ec4185260>. "frame" is now used for LoRaWAN only, "message" as "SCHC messages" defined in RFC8724



> Section 4.6:

> [RJ] FRMPayload is not defined anywhere.



[OG] Defined in the terminology section. commit 872eb3f<https://github.com/Acklio/schc-over-lorawan/commit/872eb3f817cd8603f84e67fe2e3aa711eb6234c3>:

FRMPayload: Application data in a LoRaWAN frame.



> Section 5.1:

> [RJ] I believe the term "fragmented datagram" should be used in place of

> "fragmentation datagram" in the whole of this para.



[OG] Ok, changed in commit dac5709<https://github.com/Acklio/schc-over-lorawan/commit/dac5709adc6cd8154b70fde0ce570c06279b859d>



> Section 5.1:

> "It uses another FPort for data downlink and its associated SCHC control uplinks,

> named FPortDown in this document." [RJ] Just for my understanding, the

> FPortUp and FPortDown are disjoint sets i.e., an FPort part of FPortUp set

> cannot be part of the FPortDown set. Is this correct? If yes, can we make it

> explicit in the document?



[OG] FPortUp and FPortDown are single values. FPortUp must be different

than FPortDown as described in chapter "5.2.  Rule ID management".

Should we switch both chapter for improved clarity ? I find it easier to read as it is.



> Section 5.2:

> "RuleID = 22 (8-bit) for which SCHC compression was not possible..."

> [RJ] I believe RuleID = 22 is provisioned for LoRaWAN messages which are sent

> uncompressed i.e., if a device wants to send an uncompressed IPv6 then it can

> use this RuleID. Is this correct? If yes, can we state this sample use-case for

> RuleID=22?



[OG] Its aim is to be used when no compression rule is defined more that when the

device wants to send uncompressed IPv6. Should I change it to the description of RFC8724:

for  which SCHC compression was not possible (i.e., no matching

         compression Rule was found).

?





> Section 5.3:

> "There is a small probability of IID collision in a LoRaWAN network, if such

> event occurs the IID can be changed by rekeying the device on L2 level (ie:

> trigger a LoRaWAN join)." [RJ] As I understand, IID collision can be detected

> only by the Network Gateway. How would the Network Gateway initiate a

> LoRaWAN join? Section 4.4 defines that only the end device can initiate a

> JoinRequest frame.



[OG] It has been discussed by the working group and the consensus have been that

it should be defined by the application if the IID collision is a concern in the

application (collision risk grows with the number of devices in a network)



[OG] For your information Section 4.4 does says that the joinRequest is send by

a device but not how it is triggered. In LoRaWAN v1.1, NGW is able to trigger a

new joinRequest of a connected device.



> Section 5.6.1:

> Please provide a reference to Section 8.2.4 in RFC 8724 for DTag.



[OG] Added in commit 7b43c1c<https://github.com/Acklio/schc-over-lorawan/commit/7b43c1c154ee677f863c5b83c319ee254deecb67>:

[RFC8724] section 8.2.4 describes the possibility to interleave several

fragmented SCHC datagrams for the same RuleID. This is not used in SCHC over

LoRaWAN profile. A Device cannot interleave several fragmented SCHC datagrams

on the same FPort.  This field is not used and its size is 0.



> Section 5.6.2:

> The term Tile is not defined in the document nor is there a ref to RFC 8724.

> Better to redefine it here or at least have a ref to RFC 8724.



[OG] Defined in terminology section and added reference to RFC 8724 in commit 5c6fad7<https://github.com/Acklio/schc-over-lorawan/commit/5c6fad7a1f5d2ae42cdaf962aa5f82f948ac9df0>

Tile: Piece of a fragmented packet as described in [RFC8724] section 8.2.2.1



> Section 5.6.3:

> The term "applicative uplink" is used in this and subsequent sections. Are you

> referring to the application uplink? Not sure of what applicative means in the

> context?



[OG] Clarified in commit b08f639<https://github.com/Acklio/schc-over-lorawan/commit/b08f639f0dd775e4ddde9cef2d57cef8a455e260> as:

As this uplink is to open an RX window any LoRaWAN uplink frame from the device

MAY reset this counter.



> Section 5.6.3.5.1:

> "LoRaWAN layer will respect the regulation if required."

> I believe the local spectrum regulation is what is referred here, but am not

> sure.



[OG] yes, updated with your proposition in commit 8470063<https://github.com/Acklio/schc-over-lorawan/commit/8470063344dcb0736318b3f0183770460cd381bb>



> Section 6: Security Considerations

> The section mentions the use of IID for privacy protection and the use of

> AES-128 encryption for payload encryption. However, it is not clear to me as to

> how the replay protection can be handled i.e. if an attacker replays the data

> sent by any other node previously, how can it be protected? I believe this is

> handled as part of the LoRaWAN mac layer?



[OG] Yes security is handled by the LoRaWAN mac layer. As a non-exhaustive introduction, for LoRaWAN data frames:

LoRaWAN frame payload (FRMPayload) is xored with an encrypted sequence changing for each uplink; the encryption key used is the AppSkey; then a Message Integrity Code (MIC) is added

The AppSkey is derived from the AppKey, AppNonce, NetId and DevNonce after each joinReq



See the security page<https://pages.services/pages.lora-alliance.org/lorawan-security/> of the LoRa Alliance and LoRaWAN specification<https://lora-alliance.org/sites/default/files/2018-07/lorawan1.0.3.pdf> for more details



In the case of the IID, AES-128 is used to generate a hash as the algorithm is already implemented in LoRaWAN devices.





> Minor Nits:



[OG] Thank you, I corrected them in commit eee6754<https://github.com/Acklio/schc-over-lorawan/commit/eee675481dee1f5a6aedad45df23dcde25a2870e>

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.