Re: [6lo] [lp-wan] "Dev" and "App" terms and peer-to-peer 802.15.4 networks

Laurent Toutain <laurent.toutain@imt-atlantique.fr> Mon, 28 February 2022 17:26 UTC

Return-Path: <laurent.toutain@imt-atlantique.fr>
X-Original-To: 6lo@ietfa.amsl.com
Delivered-To: 6lo@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 817E23A134E; Mon, 28 Feb 2022 09:26:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.863
X-Spam-Level:
X-Spam-Status: No, score=-0.863 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, NORMAL_HTTP_TO_IP=0.001, NUMERIC_HTTP_ADDR=1.242, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, WEIRD_PORT=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 db5VTEdAJdce; Mon, 28 Feb 2022 09:26:08 -0800 (PST)
Received: from zproxy130.enst.fr (zproxy130.enst.fr [IPv6:2001:660:330f:2::c2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 14AE33A046E; Mon, 28 Feb 2022 09:26:06 -0800 (PST)
Received: from localhost (localhost [IPv6:::1]) by zproxy130.enst.fr (Postfix) with ESMTP id D8B2A1204A2; Mon, 28 Feb 2022 18:26:02 +0100 (CET)
Received: from zproxy130.enst.fr ([IPv6:::1]) by localhost (zproxy130.enst.fr [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id YF7ZaeKC8tTv; Mon, 28 Feb 2022 18:26:01 +0100 (CET)
Received: from localhost (localhost [IPv6:::1]) by zproxy130.enst.fr (Postfix) with ESMTP id 818571203FF; Mon, 28 Feb 2022 18:26:01 +0100 (CET)
DKIM-Filter: OpenDKIM Filter v2.10.3 zproxy130.enst.fr 818571203FF
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imt-atlantique.fr; s=50EA75E8-DE22-11E6-A6DE-0662BA474D24; t=1646069161; bh=Z5UGYZU/8gdf1/MAkB8e+6l93bUIpXpaevk1yxaWUE8=; h=MIME-Version:From:Date:Message-ID:To; b=gHvCIiCizeBjDfCOKtopfXS3WQDN4ArthzvFKPBFx+KxBQDM6K5jzqahzIJQZvtDf OnUXaGrFl7E0aLqS+doztyCinUDHwibJ9a3CImfc76GjU7gCGKTB9tTHMmC31Q0r7w 20VjHEi4SK713S9a5gwyXxZHMOzNgT2ccgArACk8=
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 16w5kshvpUo9; Mon, 28 Feb 2022 18:26:01 +0100 (CET)
Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) by zproxy130.enst.fr (Postfix) with ESMTPSA id 3A4961204A2; Mon, 28 Feb 2022 18:26:01 +0100 (CET)
Received: by mail-pl1-f182.google.com with SMTP id s1so11309188plg.12; Mon, 28 Feb 2022 09:26:01 -0800 (PST)
X-Gm-Message-State: AOAM530wQixdkPStVilR1zGxQWlxfKK0825Ukkj2i3UBW7z7Y/XQyXs2 /7Cvd5hxyqWksT+3ZM3dskduQst4vT2fXZDmwBo=
X-Google-Smtp-Source: ABdhPJwRrmENzYwtM4fqHeOaJuqQ4sDJL9bRej00GLx1Q6jQvgxhLVS9/4aWRvm26eom59Qu3yXilR+Vmfyk5TKWk88=
X-Received: by 2002:a17:902:8d84:b0:14f:83f2:8c0d with SMTP id v4-20020a1709028d8400b0014f83f28c0dmr21580995plo.110.1646069159578; Mon, 28 Feb 2022 09:25:59 -0800 (PST)
MIME-Version: 1.0
References: <a9892ff8df546a562e213cffa6cd5877.squirrel@webmail.entel.upc.edu> <abe6f4c7a41473f210e18dcd5ea2352e.squirrel@webmail.entel.upc.edu>
In-Reply-To: <abe6f4c7a41473f210e18dcd5ea2352e.squirrel@webmail.entel.upc.edu>
From: Laurent Toutain <laurent.toutain@imt-atlantique.fr>
Date: Mon, 28 Feb 2022 18:25:21 +0100
X-Gmail-Original-Message-ID: <CABONVQZuzi9wMM2sWuW4yvHnH=YeBsZ7aLOvnB7W3rEcd8y48g@mail.gmail.com>
Message-ID: <CABONVQZuzi9wMM2sWuW4yvHnH=YeBsZ7aLOvnB7W3rEcd8y48g@mail.gmail.com>
To: Carles Gomez Montenegro <carlesgo@entel.upc.edu>
Cc: lp-wan <lp-wan@ietf.org>, 6lo@ietf.org
Content-Type: multipart/alternative; boundary="00000000000088554d05d917571d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/6lo/0rKm9Kr3DyXjyekXO_BIDZLrhoo>
Subject: Re: [6lo] [lp-wan] "Dev" and "App" terms and peer-to-peer 802.15.4 networks
X-BeenThere: 6lo@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Mailing list for the 6lo WG for Internet Area issues in IPv6 over constrained node networks." <6lo.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/6lo>, <mailto:6lo-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/6lo/>
List-Post: <mailto:6lo@ietf.org>
List-Help: <mailto:6lo-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/6lo>, <mailto:6lo-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 28 Feb 2022 17:26:14 -0000

Hi Carles,

I think is it good to keep App and Dev since they are hardcoded in the
Field ID. The goal will be to determine who's up and down. In openschc we
have a tunnel mode and the SCHC packet is sent over an UDP tunnel. This
allows fast prototyping. In the core side, when an IPv6 packet arrives, the
Rule Manager look for a validate rule among all the rules of all he
devices. If a rule matches, the RM returns the Device ID that could be a
LPWAN id (such as lorawan:1234567812345678) or the UDP tunnel (udp:
123.234.123.234:8888) and the packet is sent to the other end.

The other end receives the packet and looks in its own rule manager to find
the reverse rule. Since the rules are the same on both end, the ID
associated to the rule is of course the one of the device.

When the device answer, we can generalize the previous behavior. If the
answer matches a rule and the ID of the rule is the own device, then the
SCHC packet has to be sent to the core (which is identified in case of
Lora, send the SCHC packet on the Lora interface, and in case of UDP to the
IP address of the core learnt in the previous exchange).  I don't say that
it will work in mesh network, since we still consider a single core.
If the matching rule has an id different from the device, then the SCHC
packet is sent to that ID has for the core.

Another remark is that we can break symmetry in the rule. In the example we
gave, for APP* and DEV* Field ID we have always a BI direction. If for
instance, we give DOWN to a DEV* and APP* pair then it will correspond to
the source and destination addresses.

My 2 cents

Laurent



On Thu, Feb 24, 2022 at 5:00 PM Carles Gomez Montenegro <
carlesgo@entel.upc.edu> wrote:

> Dear all,
>
> Last Tuesday, in the LPWAN interim, we discussed the topic of "Dev" and
> "App" roles for SCHC header compression in peer-to-peer 802.15.4 networks
> (please find it below).
>
> There are two main options:
>
> - Option A: each device needs to know whether it will be Dev or App for
> each
>             possible endpoint it communicates with.
>
> - Option B: allow using "source" and "destination" in the C/D Rules (will
>             roughly duplicate the number of Rules).
>
> In the interim, there was a quite common preference for Option A. This
> option opens further questions.
>
> Option A may require some sort of negotiation between two endpoints to
> determine who is "Dev" and who is "App".
>
> Another question is whether all devices in the mesh share the same set of
> Rules (used by/for all nodes in the network) or one Rule concerning two
> endpoints is only shared by those two endpoints.
>
> Thoughts?
>
> Thanks!
>
> Carles
>
> PS: some pointers from the last interim are the following:
>
> Minutes:
>
> https://datatracker.ietf.org/meeting/interim-2022-lpwan-04/materials/minutes-interim-2022-lpwan-04-202202221600-01
>
> The materials from the interim, including slides:
> https://datatracker.ietf.org/meeting/interim-2022-lpwan-04/session/lpwan
>
>
> > Dear all,
> >
> > RFC 8376 (LPWAN Overview) introduces the terms "Dev" and "App". RFC 8724
> > (the base SCHC specification) reuses and expands a little bit the
> > definition of these terms.
> >
> > "Dev" refers to a constrained device (e.g. sensor, actuator, etc.),
> > whereas "App" refers to a network-side, less constrained element that is
> a
> > communication endpoint for Devs.
> >
> > These terms ("Dev", "App") are exploited in RFC 8724 as an optimization
> > for SCHC header compression of IPv6 addresses and UDP ports, in order to
> > allow the same Rule to be used for compression/decompression (C/D) for
> > both directions.
> >
> > However, if we try to use SCHC in a different scenario, the same model
> may
> > not always be a good fit.
> >
> > For example, in draft-gomez-6lo-schc-15dot4-01 we are defining how SCHC
> > can be used for C/D in 802.15.4 networks.
> >
> > If the 802.15.4 network follows the star topology and the constrained
> > devices communicate with some network-side element, the terms "Dev" and
> > "App" apply as well as in the original, LPWAN context.
> >
> > However, if we consider a mesh 802.15.4 network, where any two peers may
> > be the communicating endpoints, it is less clear what role would
> > correspond to a specific device. By "nature", all the constrained devices
> > could be "Dev".
> >
> > In such a peer-to-peer scenario, if we want to reuse the "Dev" and "App"
> > terms, perhaps the only way to do so might be to provide additional
> > context to each device indicating what role corresponds to device A when
> > talking to device B, and when talking to any other device. This seems
> > quite complex, and opens some further questions...
> >
> > Another approach is using the position of IPv6 addresses or UDP ports
> > (i.e. use "Source" and "Destination" fields) in packet headers for C/D.
> In
> > this case, there is no need to be limited by the "Dev" and "App" terms
> for
> > C/D. In this case, however, one Rule is needed for each direction.
> >
> > Another detail is that the "Uplink" and "Downlink" terms are defined in
> > RFC 8724 as a function of "Dev" and "App". Therefore, if "Dev" and "App"
> > are not applicable, Uplink/Downlink are not applicable either. Or they
> may
> > have a "local" meaning only for each specific pair of endpoints...
> >
> > Should we then need to consider other terms like just "Transmit" and
> > "Receive"?  (This is relevant for C/D of CoAP header fields...)
> >
> > What are your thoughts?
> >
> > @LPWAN chairs: since this topic may be related with the LPWAN
> architecture
> > effort, I'd be happy to discuss the topic with some slides in the next
> > interim (next Tuesday), if there is room in the agenda.
> >
> > Thanks,
> >
> > Carles
>
>
> _______________________________________________
> lp-wan mailing list
> lp-wan@ietf.org
> https://www.ietf.org/mailman/listinfo/lp-wan
>