Re: [6tisch] [6lo] Compression Reference and Coalescence

Tengfei Chang <tengfei.chang@gmail.com> Tue, 26 January 2016 17:10 UTC

Return-Path: <tengfei.chang@gmail.com>
X-Original-To: 6tisch@ietfa.amsl.com
Delivered-To: 6tisch@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 06B311A005A; Tue, 26 Jan 2016 09:10:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=ham
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 J5wZQMzuriYN; Tue, 26 Jan 2016 09:09:57 -0800 (PST)
Received: from mail-yk0-x22b.google.com (mail-yk0-x22b.google.com [IPv6:2607:f8b0:4002:c07::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 88BF11A002A; Tue, 26 Jan 2016 09:09:57 -0800 (PST)
Received: by mail-yk0-x22b.google.com with SMTP id a85so207481653ykb.1; Tue, 26 Jan 2016 09:09:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=ffyLaLIQMK95pvcWmyvFrtjFTNG8pwvqpPeRXj4GGRI=; b=Q9q7dycxXyZE0LIFrkp4YCz0HFZ3MBJVcRwBJLD9FFRST4ctaagt2Wn2vvt8Aqax/U l2RbBqS9tLJHc+yqV2ipYOiw/cWqapwM8/9HrsocbCIkhlaDCnEkx3bvf2DXwZHF+vmD p+Mb3/4sDo369kmpkpPxqhaAzIpzj7YN5nS3dlWsq1tll74maIRtIl3QXHSpp34vnsY4 DBStIOEAgX06FGBFGHqMfTeVshQQJY73p8US/Thfixtd/gdme9/VxW6aD2DRM5Qs63YO Nu+6kNym3CootioGgzVHfldr7pG4qoxmXlUIeNkcYI3iL0oo65H8sz6edcOZGr/q9N1l 2uRw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=ffyLaLIQMK95pvcWmyvFrtjFTNG8pwvqpPeRXj4GGRI=; b=Rnl1Ej+FQkIfoVh0cpFICNON9zim9klTzv71H03D8dqeTg2MwgKRsBLa13eE3JEobM U3BduPK+QE8DxknOI2U3HjOM769a+u3phS/CzsDcJ26BBmU4eOBOzTrZ/P58bK9kGM/z NZOpfNTl5DXJuDiKeVmDZRX6YM4AXTA/PIOoxKbD+yZIt/d/2HF/MNdtes0+y20q2pG8 ZzwLIgD9DiWaxmMW+PH6DzOjNyNQhD8SBx+NREyx4pKFZlGckNQrOlU0v5HthdJHQHvw 2M6iKbDfNQBD1ny10Duise++F4c9JffAFHHi8zeRXwyu+DRIOBHX8CCUZMMUdeo95+13 Q/fQ==
X-Gm-Message-State: AG10YOSR7hO9aGbYAW57EOMcaJMST/3G3ZlmplTLx8bR3fFIjyd4wiDUUZQCMRTjkX9mspXS5v8LxQ2xWbBMJg==
MIME-Version: 1.0
X-Received: by 10.129.123.134 with SMTP id w128mr12028534ywc.345.1453828196837; Tue, 26 Jan 2016 09:09:56 -0800 (PST)
Received: by 10.37.201.5 with HTTP; Tue, 26 Jan 2016 09:09:56 -0800 (PST)
In-Reply-To: <e190aab2d05f41dc900df82faa3a6fdd@XCH-RCD-001.cisco.com>
References: <CAAdgstTGw=YV0bAe60H1VLaA1ikKZX41OiQTKRPrXkEM3_LtfQ@mail.gmail.com> <078cb52ea1904304b32f2936e24e19a4@XCH-RCD-001.cisco.com> <CAAdgstTQcg5gHbrgy5RABVK9oHRzYY8XpTXBrkHUs0ShvR3TvQ@mail.gmail.com> <e190aab2d05f41dc900df82faa3a6fdd@XCH-RCD-001.cisco.com>
Date: Tue, 26 Jan 2016 18:09:56 +0100
Message-ID: <CAAdgstQdRZAE=_fn9rrB+_Q+Fbw1GOAhE56P3pdz2=sKy_JsYQ@mail.gmail.com>
From: Tengfei Chang <tengfei.chang@gmail.com>
To: "Pascal Thubert (pthubert)" <pthubert@cisco.com>
Content-Type: multipart/alternative; boundary="001a1144fe523cb2ae052a3fc183"
Archived-At: <http://mailarchive.ietf.org/arch/msg/6tisch/bF7RPrrZMvv0WqcTHrJb01RhUdY>
Cc: "6tisch@ietf.org" <6tisch@ietf.org>, "6lo@ietf.org" <6lo@ietf.org>
Subject: Re: [6tisch] [6lo] Compression Reference and Coalescence
X-BeenThere: 6tisch@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: "Discuss link layer model for Deterministic IPv6 over the TSCH mode of IEEE 802.15.4e, and impacts on RPL and 6LoWPAN such as resource allocation" <6tisch.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/6tisch>, <mailto:6tisch-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/6tisch/>
List-Post: <mailto:6tisch@ietf.org>
List-Help: <mailto:6tisch-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/6tisch>, <mailto:6tisch-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 26 Jan 2016 17:10:00 -0000

Yes, Pascal. What you are going to say is correct!

I agree +1

Tengfei

On Tue, Jan 26, 2016 at 6:06 PM, Pascal Thubert (pthubert) <
pthubert@cisco.com> wrote:

> I see, and yes, that is misleading.
>
>
>
> I need to change that to say the reference to the first is the source of
> the packet and then the reference for each entry is the previous one when
> uncompressed (not the first as you suggest but, the one just before it).
>
> So you uncompress an address and it becomes reference to the next that you
> uncompress, etc… I will raise an ticket. . You’ll find that the algorithm
> in “5.4.  Popping Headers” decodes exactly that (well hopefully).
>
>
>
> Do we agree?
>
>
>
> Pascal
>
>
>
> *From:* Tengfei Chang [mailto:tengfei.chang@gmail.com]
> *Sent:* mardi 26 janvier 2016 17:56
> *To:* Pascal Thubert (pthubert) <pthubert@cisco.com>
> *Cc:* 6tisch@ietf.org; 6lo@ietf.org
> *Subject:* Re: [6lo] Compression Reference and Coalescence
>
>
>
> Nice to hear that's what you intended to do!
>
>
>
> In  the beginning of section 4.3:
>
> ...
>
>
>
>    Once the address of the source of the packet is determined, it
>
>    becomes the reference for the compression of the addresses that are
>
>    located in compressed RH3 headers that are present inside the IP-in-
>
>    IP encapsulation in the uncompressed form.
>
> ...
>
>
> When I am understanding the sentence, I am feeling like all the
> compression of addresses in RH3 will be compressed according to source
> address in IPinIP, which only the first 8 bytes can be elided.
>
>
>
> If agree with the reasonable one, it should be the first address in first
> RH3 is compressed according to the source address in IPinIP.
>
> Then, all rest address in RH3 will be compressed according to the first
> address in RH3.
>
>
>
> Make sense?
>
> Tengfei
>
>
>
> On Tue, Jan 26, 2016 at 5:23 PM, Pascal Thubert (pthubert) <
> pthubert@cisco.com> wrote:
>
> Hello Tengfei:
>
>
>
> The draft is meant to express exactly what your reasonable case shows.
>
> There is an example of that in appendix.
>
> What exactly did I write improperly that it can be understood otherwise?
>
>
>
> Take care ;
>
>
>
> Pascal
>
>
>
> *From:* 6lo [mailto:6lo-bounces@ietf.org] *On Behalf Of *Tengfei Chang
> *Sent:* lundi 25 janvier 2016 12:00
> *To:* 6tisch@ietf.org; 6lo@ietf.org
> *Subject:* [6lo] Compression Reference and Coalescence
>
>
>
> Dear all,
>
>
>
> I have some concern on the compression Reference and Coalescence.
>
>
>
> In the 6lorh draft, all the hops in RH3 are compressed according to the
> compression reference (the source address, root usually). And when doing
> Coalescence, the process is kind of like taking the first address in first
> RH3 as the reference. The inconsistency between compression reference and
> Coalescense may waste some bytes in some cases.
>
>
>
> For example:
>
> A packet is issued by root with a compressed RH3 along an A->B->C->D
> source route path.
>
>
>
> The nodes address are:
>
> root:      bbbb::0000:0000:0000:0001
>
> node A: bbbb::1111:2222:3333:0001
>
> node B: bbbb::1111:2222:3333:0002
>
> node C: bbbb::1111:2222:3333:0003
>
> node D: bbbb::1111:2222:3333:0004
>
>
>
> According to the 6lorh draft: all hops in RH3 will be compressed according
> to reference, which is the root. The  Packet received by node A is:
> ----------------------------
>
> Type 3 RH3-6LoRH Size = 2  1111 2222 3333 0001
>                                            1111 2222 3333 0002
>                                            1111 2222 3333 0003
>
>
>
> And which maybe more reasonable packet would be like :
>
> ----------------------------
>
> Type 3 RH3-6LoRH Size = 0  1111 2222 3333 0001
> Type 0 RH3-6LoRH Size = 1  02
>                                             03
>
> Which means the first hop in first RH3 entry is compressed according to
> the reference(which is the root in this case) and the rest hops are
> compressed according to the first hop in first RH3 entry. For me, this
> compression way is more consistent  with the way when doing coalescence.
>
>
>
> What do you think?
>
> Tengfei
>
>
>