Re: [Roll] [6lo] [6tisch] Proposed improvement in RH3-6LoRH

Ralph Droms <rdroms.ietf@gmail.com> Wed, 20 January 2016 23:20 UTC

Return-Path: <rdroms.ietf@gmail.com>
X-Original-To: roll@ietfa.amsl.com
Delivered-To: roll@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A07841B2A94; Wed, 20 Jan 2016 15:20:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1
X-Spam-Level:
X-Spam-Status: No, score=-1 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, FREEMAIL_REPLY=1, SPF_PASS=-0.001] autolearn=no
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 wADksrQwfppx; Wed, 20 Jan 2016 15:20:45 -0800 (PST)
Received: from mail-qg0-x231.google.com (mail-qg0-x231.google.com [IPv6:2607:f8b0:400d:c04::231]) (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 5AC941B2A95; Wed, 20 Jan 2016 15:20:44 -0800 (PST)
Received: by mail-qg0-x231.google.com with SMTP id b35so19252325qge.0; Wed, 20 Jan 2016 15:20:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :message-id:references:to; bh=za/66nrP6ULy3HSuKSS3bXz9VuIC9bZ4BpBhc729lnE=; b=CajaRoZQNXXJd/uIecltOB5QOOW7ryPaSDw2vdFARuCfzO2U8jOfxnhx/OLp4xBrom j9oBbBHa6GqlMHcG7v2YDCGArhwhacuoDq9QEuiepwKu4svRFnW4vm1BtxKSVsKoP2YU qQ9PHLx1WFYHhdHyPT7Dpywto7q3YdLDiBu5Zx4D52CMMV8w+A9nm7pDXg8jzSaI50QS kVWSQufm0AKFGYvGDGsxut9sOOXJyag73t7zBu+7zeFDwTOVsY96V49UZOA7Hte4hOYU n6D2cKqS/U6XY0DPYJ3W08xl6pveS04JTk4BHLtsdVQWw1zAmgjbprmBTQgAsN4L6SlZ Wiyw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:content-type:from :in-reply-to:date:cc:message-id:references:to; bh=za/66nrP6ULy3HSuKSS3bXz9VuIC9bZ4BpBhc729lnE=; b=BzwqL2uopWenFHiqqfAfj41r9+3XZqYvnCJbVjkAIOOFhLzgHEBOY+et8qcRe9f+FS YpuBJ09nWJ4cZK/tJ0k7QLbg6Kh6GA39VjQhyczg2xj+QauowBjqPS1Fi0/v+yil+uI0 78j+iLM0eifWkj2CHR1azcaeULk6XmfF0YB359Olry7QR2QQNuwOflvbxCIOP3a9hUdX 10K1wgi40FPzBIagm6O7Jlhib0OjoBl8PwzqG5kJf+BKU6Hv0A3CCyvfAyeEqnJozQyn TcIPqF1/dm+5ImmaMMY7deMIszZvi0a+XM0yUK9Ym0UvfZzzMVoCTS1y1cd9Magl0Xup en8Q==
X-Gm-Message-State: ALoCoQleWALGfH9F2kXfHpKmRn4BJArsbmlNOGOoSG6T0XFzz6W7EtPYdOMDCmuK3SlR4Chb8Q+lYJraLVTocQ8Z2t4sT8gZ/A==
X-Received: by 10.140.105.198 with SMTP id c64mr48985110qgf.94.1453332043577; Wed, 20 Jan 2016 15:20:43 -0800 (PST)
Received: from rtp-vpn4-87.cisco.com ([173.38.117.77]) by smtp.gmail.com with ESMTPSA id g130sm15259010qkb.28.2016.01.20.15.20.42 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 20 Jan 2016 15:20:42 -0800 (PST)
Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\))
Content-Type: multipart/signed; boundary="Apple-Mail=_2BE42BA9-A877-46F8-B023-735B77B81705"; protocol="application/pgp-signature"; micalg="pgp-sha256"
X-Pgp-Agent: GPGMail 2.6b2
From: Ralph Droms <rdroms.ietf@gmail.com>
In-Reply-To: <CAMxvJtJ0F_SYe023Bv0y6DixTSQi=PTaKd56ECZdrrrXBk3ApA@mail.gmail.com>
Date: Wed, 20 Jan 2016 17:47:09 -0500
Message-Id: <8C5E8825-6306-4A0F-A9FC-A0E9D4C10079@gmail.com>
References: <efa57b85d5174e579bc553ff1ad3af63@XCH-RCD-001.cisco.com> <CAAdgstQXj80Pu-Syt_QuxD4_8V0PqEZqxVDsnyGdbBA-hGxEKQ@mail.gmail.com> <2c372ed593ad4d12a7ffff81c3ada270@XCH-RCD-001.cisco.com> <CAAdgstSiochR48+XVV3wCScd_XEttO0Us3rWNu=XVsO8_=kw2A@mail.gmail.com> <CAMxvJtLCN_6+NPruYu5J5KHOybbu+PdDeod7V8S+_iZTKhZTCg@mail.gmail.com> <1ebd8224c530495eba190b8b71f633f6@XCH-RCD-001.cisco.com> <CAMxvJtJ0F_SYe023Bv0y6DixTSQi=PTaKd56ECZdrrrXBk3ApA@mail.gmail.com>
To: Simon Duquennoy <simonduq@sics.se>, "Pascal Thubert (pthubert)" <pthubert@cisco.com>
X-Mailer: Apple Mail (2.3112)
Archived-At: <http://mailarchive.ietf.org/arch/msg/roll/YUrX3oqa-nXfCLnEUqnLIHtihtY>
Cc: "6tisch@ietf.org" <6tisch@ietf.org>, "6lo@ietf.org" <6lo@ietf.org>, Routing Over Low power and Lossy networks <roll@ietf.org>, Tengfei Chang <tengfei.chang@gmail.com>
Subject: Re: [Roll] [6lo] [6tisch] Proposed improvement in RH3-6LoRH
X-BeenThere: roll@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Routing Over Low power and Lossy networks <roll@ietf.org>
List-Id: Routing Over Low power and Lossy networks <roll.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/roll>, <mailto:roll-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/roll/>
List-Post: <mailto:roll@ietf.org>
List-Help: <mailto:roll-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/roll>, <mailto:roll-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Jan 2016 23:20:47 -0000

> On Jan 19, 2016, at 2:32 PM 1/19/16, Simon Duquennoy <simonduq@sics.se> wrote:
> 
> Hi Pascal,
> 
> I feel we need to make sure any valid RH3 can be compressed with 6LoRH. This way, RPL implementations do not need to be aware of 6LoRH.
> For the compression level, we could maybe optionally carry a full value inline (or well, it's only 4 bits..).

Along the same lines: suppose a node that does not employ 6LoRH builds a datagram D using an RH3 header that cannot be compressed by 6LoRH.  Now, how does an intermediate node that is configured to use 6LoRH on an interface over which D is forwarded correctly apply 6LoRH in such a way that the original D can be reconstructed at the eventual destination?

- Ralph

> As for using the root's address as reference for compression, although the idea makes sense, I'm afraid it makes it complicated to compress RH3, where the prefix is copied from the IPv6 destination.
> 
> Thanks,
> Simon
> 
> 
> On Tue, Jan 19, 2016 at 8:15 PM, Pascal Thubert (pthubert) <pthubert@cisco.com> wrote:
> Hello Simon:
> 
> 
> 
> You can get different cmpri and cmpre values, by placing 2 different RH3-6LoRH header. Having as many 6LoRH headers allows you to compress that even more, like having intermediate cmprx values should you need that.
> 
> 
> 
> But ultimately what we compress is the RH0 format with the rules of RH3, knowing that apart from the rules RH3 is just a compression of RH0.
> 
> 
> 
> And then 6LoRH can enable a better compression when coalescing from the root’s address.
> 
> 
> 
> I agree that we placed an artificial limit with the power of 2, to avoid consuming too much type space. But if the power of 2 does not much the real world use cases and needs, now is a good time to change it.
> 
> 
> 
> Do you have an opinion on that?
> 
> 
> 
> Pascal
> 
> 
> 
> From: simon.duquennoy@gmail.com [mailto:simon.duquennoy@gmail.com] On Behalf Of Simon Duquennoy
> Sent: mardi 19 janvier 2016 18:53
> To: Tengfei Chang <tengfei.chang@gmail.com>
> Cc: Pascal Thubert (pthubert) <pthubert@cisco.com>; 6tisch@ietf.org; Routing Over Low power and Lossy networks <roll@ietf.org>; 6lo@ietf.org
> Subject: Re: [6lo] [6tisch] Proposed improvement in RH3-6LoRH
> 
> 
> 
> Hi Pascal,
> 
> 
> 
> One thing that bugs me is that RH3-6LoRH seems to be an alternative to RH3 rather than a strict compression of it. For instance, a RH3 using different cmpri and cmpre values, or using non power-of-two, can not be compressed with 6LoRH. And the discussion on copying the prefix form the DAG root is also a departure from RH3.
> 
> Am I missing something?
> 
> 
> 
> Thanks,
> 
> Simon
> 
> 
> 
> 
> 
> On Tue, Jan 19, 2016 at 1:59 PM, Tengfei Chang <tengfei.chang@gmail.com> wrote:
> 
> Hello Pascal,
> 
> 
> 
> Thanks a lot for the detailed answer! I think it solves all my concern. I will vote for it!
> 
> 
> 
> Tengfei
> 
> 
> 
> 
> 
> 
> 
> On Tue, Jan 19, 2016 at 11:00 AM, Pascal Thubert (pthubert) <pthubert@cisco.com> wrote:
> 
> Hello Tengfei:
> 
> 
> 
> Basically the change proposal accounts for the assumption that the last segment may be different, which comes with the idea of supporting non RPL leaves. If you look at it the original RH4 (RFC 6554) makes a difference for the last hop.
> 
> 
> 
> Also, the root is the one computing the 6LoRH so it is easier for it to take its own address as reference.
> 
> 
> 
> Finally the text is unclear about which bits from the destination are to be used.
> 
> 
> 
> All in all, using the root as reference makes more sense than using the final destination as I had initially proposed. So the new proposal is not a merge but an instead, with clarifying text about the process I showed in the picture.
> 
> 
> 
> More answers  inline:
> 
> Dear all
> 
> 
> 
> The picture below illustrates how the RH3 6LoRH works with draft 03 in a case like Root -> A -> B -> C -> leaf
> 
> 
> 
> <image001.png>
> 
> 
> 
> The first 6LoRH is expected to be a full address (128 bits) to set up a reference and the next 6LoRH are expected to be smaller and just override the rightmost bits which form the delta from the reference.
> 
> 
> 
> What if the B and C address can be compressed to one byte(RH3-6LoRH type 0)?
> 
> When leaving the root the format would like:
> 
> RH3-6LoRH type 4    IPv6 Prefix (64bits)   A's suffix (64bits)    RH3-6LoRH type 0      B's suffix (8bits)    C's suffix (8bits)
> 
> 
> 
> Ø  Pascal If A’s address is the same as B and C for the first 120 bits then this format is correct : )> Pascal
> 
> 
> 
> 
> 
> 
> 
> should node A need to extend the address of B address when the packet leaving A? Like:
> 
> RH3-6LoRH type 4    IPv6 Prefix (64bits)   B's suffix (64bits)    RH3-6LoRH type 0      C's suffix (8bits)
> 
> 
> 
> Ø  Pascal: That is correct. Note that there is no separation between prefix in suffix in the type 4. So the drawing applies for all types if you consider that the prefix length is 64, 96, 112 or 120 depending on the type of the next RH. With the proposal, if the root has the same /120 prefix as A, B and C then we have a single type 0 with A, B and C in it.
> 
> Proposal: we could consider that the 128bits source of the IP header before the RH3 is the reference to start with.
> 
> I have no comments with the proposal. Just want to mention in the currently version of draft (version 3) , it says : (in section 5)
> 
> ...
> 
>   If some bits of the first address in the RH3-6LoRH header can be
>   derived from the final destination in the LoWPAN_IPHC, then that
>   address may be compressed; otherwise it is expressed as a full IPv6
>   address of 128 bits.  Next addresses only need to express the delta
>   from the previous address.
> ...
> 
> How to understand this combining with the proposal? (Or this is the point we are going to replace by the proposal? Let me know)
> 
> 
> 
> Ø  Pascal: proposal is to replace. That text was unclear and more complex to implement.  And fails to optimize for leaves that are not configured like the mesh.
> 
> With that even the first hop could be compressed the same way as the other hops. With RPL, the root is the encapsulator if IP in IP in used. Good thing, in that case the root is totally elided with the IP-in-IP 6LoRH.
> 
> That's great! Could I confirm when the packet is inside a RPL domain where IP in IP is elided, the source destination in IPHC is the reference?
> 
> Ø  Pascal: Yes. The only case where IP in IP is elided is when the source is the root. The root would still be the reference. The text I proposed says the Source of the header that is placed before the RH3, and I meant in the non-compressed form. With RPL as it stands today this is always the root.
> 
> So this simple proposal saves up to 16 octets (that’s in the case with a single subnet and all addresses differ only by the last 2 bytes). I’m willing to add it in the next revision.
> 
> I don't know how to calculate the saved bytes. For this case, will the format looks like this?
> 
> RH3-6LoRH type 1    A's suffix (16bits)     B's suffix (16bits)   C's suffix (16bits)
> 
> Ø  Pascal: Yes. In that case you save 14 bytes in A’s address plus the RH3-6LoRH type 4 which is 2 additional bytes, 16 total.
> 
> Any opposition?
> 
> 
> 
> Pascal
> 
> 
> 
> Thanks for the proposal!
> 
> 
> 
> 
> 
> Ø  Pascal: Do you vote for it? I’m asking because the plugtest is coming.
> 
> 
> _______________________________________________
> 6tisch mailing list
> 6tisch@ietf.org
> https://www.ietf.org/mailman/listinfo/6tisch
> 
> 
> 
> 
> 
> 
> _______________________________________________
> 6lo mailing list
> 6lo@ietf.org
> https://www.ietf.org/mailman/listinfo/6lo
> 
> 
> 
> 
> _______________________________________________
> 6lo mailing list
> 6lo@ietf.org
> https://www.ietf.org/mailman/listinfo/6lo