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

"Pascal Thubert (pthubert)" <> Tue, 26 January 2016 17:07 UTC

Return-Path: <>
Received: from localhost ( []) by (Postfix) with ESMTP id 8D01D1A9055; Tue, 26 Jan 2016 09:07:23 -0800 (PST)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -14.501
X-Spam-Status: No, score=-14.501 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_DNSWL_HI=-5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id Cwbr4Fb-hs7w; Tue, 26 Jan 2016 09:07:20 -0800 (PST)
Received: from ( []) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 8D5871A0027; Tue, 26 Jan 2016 09:06:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple;;; l=26104; q=dns/txt; s=iport; t=1453828010; x=1455037610; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=SG8iDBuOo/T5i+rAXrkReAHLjlvKyKROqUZ2XNH7U6o=; b=bimCvnz19KWPvt86ksDBGmdiabl1+Mb1J7IdWBCQHrDPKKPoYTVFnWax cr2+cKEIPaMfq337xkUnIe1Sl+lOa17+yg2xBvgwJflddEVpKnz+sp8rB PadA17HM8VTEWxwonxQH3czfTYvpUNKUcTXS7+7ici18xbZ7rt8qgCBSf c=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-AV: E=Sophos; i="5.22,350,1449532800"; d="scan'208,217"; a="70022235"
Received: from ([]) by with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Jan 2016 17:06:36 +0000
Received: from ( []) by (8.14.5/8.14.5) with ESMTP id u0QH6agb004331 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 26 Jan 2016 17:06:36 GMT
Received: from ( by ( with Microsoft SMTP Server (TLS) id 15.0.1104.5; Tue, 26 Jan 2016 11:06:36 -0600
Received: from ([]) by ([]) with mapi id 15.00.1104.009; Tue, 26 Jan 2016 11:06:36 -0600
From: "Pascal Thubert (pthubert)" <>
To: Tengfei Chang <>
Thread-Topic: [6lo] Compression Reference and Coalescence
Thread-Index: AQHRWFp9t08kYDUUHE+JUPXG1+5Hup8OBKBg
Date: Tue, 26 Jan 2016 17:06:29 +0000
Deferred-Delivery: Tue, 26 Jan 2016 17:05:34 +0000
Message-ID: <>
References: <> <> <>
In-Reply-To: <>
Accept-Language: fr-FR, en-US
Content-Language: en-US
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: []
Content-Type: multipart/alternative; boundary="_000_e190aab2d05f41dc900df82faa3a6fddXCHRCD001ciscocom_"
MIME-Version: 1.0
Archived-At: <>
Cc: "" <>, "" <>
Subject: Re: [6tisch] [6lo] Compression Reference and Coalescence
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" <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Tue, 26 Jan 2016 17:07:23 -0000

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?


From: Tengfei Chang []
Sent: mardi 26 janvier 2016 17:56
To: Pascal Thubert (pthubert) <>
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?

On Tue, Jan 26, 2016 at 5:23 PM, Pascal Thubert (pthubert) <<>> 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 ;


From: 6lo [<>] On Behalf Of Tengfei Chang
Sent: lundi 25 janvier 2016 12:00
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
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?