Re: [lp-wan] Fw: re-order header field request

Laurent Toutain <laurent.toutain@imt-atlantique.fr> Thu, 29 June 2017 07:48 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 DEBC8126DD9 for <lp-wan@ietfa.amsl.com>; Thu, 29 Jun 2017 00:48:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.652
X-Spam-Level:
X-Spam-Status: No, score=-0.652 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=no 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 nsGEK9SFf3BO for <lp-wan@ietfa.amsl.com>; Thu, 29 Jun 2017 00:48:47 -0700 (PDT)
Received: from zproxy120.enst.fr (zproxy120.enst.fr [137.194.2.193]) by ietfa.amsl.com (Postfix) with ESMTP id 9299012EA52 for <lp-wan@ietf.org>; Thu, 29 Jun 2017 00:48:45 -0700 (PDT)
Received: from localhost (localhost [IPv6:::1]) by zproxy120.enst.fr (Postfix) with ESMTP id 66E5B105667 for <lp-wan@ietf.org>; Thu, 29 Jun 2017 09:48:45 +0200 (CEST)
Received: from zproxy120.enst.fr ([IPv6:::1]) by localhost (zproxy120.enst.fr [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id MDE-nQTXIpuj for <lp-wan@ietf.org>; Thu, 29 Jun 2017 09:48:44 +0200 (CEST)
Received: from localhost (localhost [IPv6:::1]) by zproxy120.enst.fr (Postfix) with ESMTP id 5B8F510566B for <lp-wan@ietf.org>; Thu, 29 Jun 2017 09:48:44 +0200 (CEST)
DKIM-Filter: OpenDKIM Filter v2.9.2 zproxy120.enst.fr 5B8F510566B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=imt-atlantique.fr; s=50EA75E8-DE22-11E6-A6DE-0662BA474D24; t=1498722524; bh=LMYWPOlzLiNcBRA3jkXnabO3C1jDeDfrzRmX04jNvMU=; h=MIME-Version:From:Date:Message-ID:Subject:To:Content-Type; b=MTSBu0KGg7psSPpGl9ZOiBTMhi+P6tD5HCaoa9UlZdTi1/OmxD6MGr4TujmGqd6Tv PAosiPkTh/vPI8KezDt4elAY2YITNENqFM/mn42GH4z/budOzTs/tg+Amr65YwSxCP ZL3wDibDu98jIkKYwmfDI3L3k0Az4ut+fDB1sMHY=
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 T8Dv6gQZP1Ec for <lp-wan@ietf.org>; Thu, 29 Jun 2017 09:48:44 +0200 (CEST)
Received: from mail-vk0-f42.google.com (mail-vk0-f42.google.com [209.85.213.42]) by zproxy120.enst.fr (Postfix) with ESMTPSA id E2CC7105659 for <lp-wan@ietf.org>; Thu, 29 Jun 2017 09:48:43 +0200 (CEST)
Received: by mail-vk0-f42.google.com with SMTP id y70so45203627vky.3 for <lp-wan@ietf.org>; Thu, 29 Jun 2017 00:48:43 -0700 (PDT)
X-Gm-Message-State: AKS2vOwUG1EELxZ7sT+jd1Arr8pNpcSJtO0TOXU3FWZWlt4/CXEUgxq3 EkOGa3lgPWR1hx3aQYT5DJGwh/R63Q==
X-Received: by 10.31.180.80 with SMTP id d77mr6729970vkf.110.1498722522514; Thu, 29 Jun 2017 00:48:42 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.159.61.13 with HTTP; Thu, 29 Jun 2017 00:48:01 -0700 (PDT)
In-Reply-To: <63E493F830B247189870EB052E737878@WeiGengyuPC>
References: <59F856E1230C43D5A7CE1018F7C2DCA8@WeiGengyuPC> <912c2aab-a69f-355a-f7c5-730bac5eaafa@ackl.io> <F5C7D3EBA1DD42858C339E13F435F7AC@WeiGengyuPC> <CAEW-XCC6WWU5Y0cG22c7OQriF3_2i2+MZe2j6xgpP4Rs5mnupw@mail.gmail.com> <341C683FEB8548B4924400501958BEAF@WeiGengyuPC> <42e03b91c6a5e748a0c9d7d81966eef0.squirrel@webmail.entel.upc.edu> <3EE9A684758B44CE9FF891EFDBBF45BA@WeiGengyuPC> <0b52c5cefcbf45b9b3de78d35ae516ad@XCH-RCD-001.cisco.com> <EE6304FA8F854718909CE5544B3F4D50@WeiGengyuPC> <23622a341606ebed36588747e92607b2.squirrel@webmail.entel.upc.edu> <63E493F830B247189870EB052E737878@WeiGengyuPC>
From: Laurent Toutain <laurent.toutain@imt-atlantique.fr>
Date: Thu, 29 Jun 2017 09:48:01 +0200
X-Gmail-Original-Message-ID: <CABONVQbk46BeOZpNiT4pav8NVU1EM=a04aD+LhgvuQzr9joBmg@mail.gmail.com>
Message-ID: <CABONVQbk46BeOZpNiT4pav8NVU1EM=a04aD+LhgvuQzr9joBmg@mail.gmail.com>
To: weigengyu <weigengyu@vip.sina.com>
Cc: Carles Gomez Montenegro <carlesgo@entel.upc.edu>, lp-wan <lp-wan@ietf.org>, Arun <arun@ackl.io>, "Pascal Thubert (pthubert)" <pthubert@cisco.com>
Content-Type: multipart/alternative; boundary="001a114381109253b00553148746"
Archived-At: <https://mailarchive.ietf.org/arch/msg/lp-wan/1uZVqoRZcw6Sw3-23s7iML4Rbto>
Subject: Re: [lp-wan] Fw: re-order header field request
X-BeenThere: lp-wan@ietf.org
X-Mailman-Version: 2.1.22
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: Thu, 29 Jun 2017 07:48:51 -0000

Hi Gengyu,

The format is the following

 Rule ID  [Data Tag] CFN

CFN plays the role you assign to your 2 bits any value between [0, 2^N-2]
means more fragment and 2^N-1 no more fragment. It is more optimal than
using a specific bit in all frame.

Data Tag is not mandatory since in LPWAN you may have only one packet over
the air. That's a big difference with IEEE 802.15.4 or mesh networks where
a node can transmit several fragments belonging to different packet. In
LPWAN with duty cycles, this is not so common.

Rule ID is a specific value that tells the receiver this is a fragment. You
are right, the packet that have been fragmented contains at the first
position different rule ID which tells which rule must be used to
decompress the header. The following picture illustrate this.


    +---+------------------------------------------------------------+

    |Rid|  compressed header  |   payload                            |

    +---+-----+---------+---------+---------+---------+---------+----+

    |         |         |         |         |         |         |    |

+---+---------+     +---+---------+     +---+---------+     +---+----+


|R' |         |     |R' |         |     |R' |         |     |R' |    |

+---+---------+     +---+---------+     +---+---------+     +---+----+

              |         |         |         |         |         |

          +---+---------+     +---+---------+     +---+---------+

          |R' |         |     |R' |         |     |R' |         |

          +---+---------+     +---+---------+     +---+---------+


Laurent

On Wed, Jun 28, 2017 at 3:49 AM, weigengyu <weigengyu@vip.sina.com> wrote:

>
> Hi Carles,
>
> In the context of the SCHC specification, an L2 LPWAN frame may carry an
>> unfragmented IPv6 datagram with a compressed header (see Fig. 4).
>>
>
> This doc is just a draft.
> The format in Fig.4 can be re-organized to get the suppression optimized.
>
> The Rule ID is the first field of the compressed IPv6 datagram.
>>
> Defining the first two bits are defined as an indications, these problems
> ara solved.
>
> If it is 00, the fragment is the first and contains a Rule ID.
>        If the Rule ID says this is an unfragment datagram, let it go;
>        If the Rule ID says this is an fragmented one, you then get the
> Dtag.
> If it is not 00, you need to get the Dtag for the fragment,
>        and get the Rule ID by the Dtag.
>
> When a compressed IPv6 datagram needs to be fragmented, then some Rule ID
>> space (of size R bits) is 'stolen' and used for fragmentation
>> functionality. So a requirement here is that whatever is defined for
>> fragmentation needs to be consistent with the format used for header
>> compression. Some special Rule ID (or set of Rule IDs in terms of R-bit
>> patterns) needs to be used to signal that a data unit being carried is a
>> fragment.
>>
>
> It has been clarified that only one Rule ID is required for an IPv6
> packets if it is framennted.
> Or fragments belonged to one IPv6 packet just needs one Rule ID.
> The Rule ID can be carried in the frist fragment to the receiver.
> Only one is enough for conveying this information.
>
> Note that we cannot risk communication failure due to e.g. loss of a first
>> fragment (which in your proposal carries a Rule ID) followed by other
>> fragments (which in your proposal do not carry a Rule ID) that are
>> actually received. In such case, a receiver may process the received data
>> units as e.g. unfragmented (compressed) IPv6 datagrams.
>>
>
> Could you explain how the receiver precesses fragments without getting the
> first fragment of an fragmented IPv6 packet?
> No, it cannot by the current draft either.
> Can you explain how the the current draft avoids the risk of communication
> failure due to e.g. loss of a first fragment?
> It is not available to have each fragment processed independently by the
> current draft.
>
> In such case, a receiver may process the received data units as e.g.
>> unfragmented (compressed) IPv6 datagrams.
>>
> What is an unfragmented (compressed) IPv6 datagram?
> If it is an unfragmented, it is the first, it contain the Rule ID.  Do you
> suppose it lost?
>
>
> Regards,
>
> Gengyu WEI
> Network Technology Center
> School of Computer
> Beijing University of Posts and Telecommunications
> -----原始邮件----- From: Carles Gomez Montenegro
> Sent: Tuesday, June 27, 2017 10:21 PM
> To: weigengyu
> Cc: lp-wan@ietf.org ; arun@ackl.io ; Pascal Thubert (pthubert)
> Subject: Re: [lp-wan] Fw: re-order header field request
>
>
> Hi Gengyu,
>
> Thanks for your proposal, I see you are trying to reduce header overhead.
> However, I'm afraid there are still issues with it.
>
> In the context of the SCHC specification, an L2 LPWAN frame may carry an
> unfragmented IPv6 datagram with a compressed header (see Fig. 4). The Rule
> ID is the first field of the compressed IPv6 datagram.
>
> When a compressed IPv6 datagram needs to be fragmented, then some Rule ID
> space (of size R bits) is 'stolen' and used for fragmentation
> functionality. So a requirement here is that whatever is defined for
> fragmentation needs to be consistent with the format used for header
> compression. Some special Rule ID (or set of Rule IDs in terms of R-bit
> patterns) needs to be used to signal that a data unit being carried is a
> fragment.
>
> Note that we cannot risk communication failure due to e.g. loss of a first
> fragment (which in your proposal carries a Rule ID) followed by other
> fragments (which in your proposal do not carry a Rule ID) that are
> actually received. In such case, a receiver may process the received data
> units as e.g. unfragmented (compressed) IPv6 datagrams.
>
> Cheers,
>
> Carles
>
>
>
> Hi Pascal,
>>
>> We need the Rule to say fragment on each fragment,
>>>
>> All framents of a IPv6 packet obey one rule, the Rule ID is included in
>> the
>> first fragment is enough for conveying this information.
>>
>> and then the dtag.
>>>
>> All framents of the packet contain the same Dtag as defined.
>>
>> Starting the next fragment with the dtag would confuse the parser which
>>> would interpret the dtag as another rule.
>>>
>> Put the Dtag at the front.
>> Defining the first two bits of Dtag as an indication of the first
>> fragment,
>> fragments of the minddle and  the last fragment.
>>
>> 00 the first fragment
>> 10 fragments of the minddle
>> 11 the last fragment
>>
>> If the first two bits are '00', the Rule ID is followed.
>> If the first two bits are not '00', the fragment does not contain the Rule
>> ID.
>> If the first two bits are 11, it is the last fragment.
>>
>> I believe that it is worth to have this two bit to suppress the space of
>> Rule ID in the successive fragments.
>>
>> Regards,
>>
>> Gengyu WEI
>> Network Technology Center
>> School of Computer
>> Beijing University of Posts and Telecommunications
>>
>
> _______________________________________________
> lp-wan mailing list
> lp-wan@ietf.org
> https://www.ietf.org/mailman/listinfo/lp-wan
>
>
> _______________________________________________
> lp-wan mailing list
> lp-wan@ietf.org
> https://www.ietf.org/mailman/listinfo/lp-wan
>