Re: [6tisch] The "BEFORE" and "AFTER"

Tengfei Chang <tengfei.chang@gmail.com> Thu, 21 January 2016 15:29 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 25EFC1B3205; Thu, 21 Jan 2016 07:29:36 -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 qTc064BfZrAJ; Thu, 21 Jan 2016 07:29:34 -0800 (PST)
Received: from mail-yk0-x235.google.com (mail-yk0-x235.google.com [IPv6:2607:f8b0:4002:c07::235]) (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 B88DB1B3200; Thu, 21 Jan 2016 07:29:33 -0800 (PST)
Received: by mail-yk0-x235.google.com with SMTP id s126so26901653ykf.2; Thu, 21 Jan 2016 07:29:33 -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=kAY30Ch4h7PN9jk0ViDpd3WRzVLDAgluey0s5OFKfl0=; b=KeHqRBudtNWpaPueiw4ler5b1wrSbkpxt8RdE7mk8MkWWSaaD2Vioy3W8Nsz2MvVcI UaO+oMzKkbl/bmyz6HcSHleJQpM/oVg3zFdRpSclGW/Vl3AyHGtNDbqTfMuKI20eQ9Ts U5bdyqq1LiEC3qdTXSLSYfgRXKNRopFayBmUGW05BbdGj0Ihaj104tFU3rjz4vSlC4yX /DV9zfdtvE19kxgvjq3TL8SpUggdPv4zy/GygOr4kNAQfZ21NasrjakBjujNhz0Mdxoe O93FVBhAzbE9FNe22ETOZM4FO1JTaXpa+hZSZ8eJgMHaLul02JnTTJH1nKqH63Cp3Vgt 3W+Q==
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=kAY30Ch4h7PN9jk0ViDpd3WRzVLDAgluey0s5OFKfl0=; b=ZX6xw2Z7LtFbxKYd6vb9GyAULABKkvz09M8o3kCuovF2xvY/02BdFQKZRMv6WkWO1/ C2iHC1FrtIGulhHX1KyoOYA0I+WIwy3jcJw29JH+vxQDrHe9ulCGNamVTdB/sONiGuNi iUHWkYE+eokYkiBCJ2pbau+m4b5ZI5cLRne2O02WpcAHa1oM9I4294n1ay6zayQjxzYT x0fmxAB0ebAJWdC6ZS4HwExzbybzo3bT9j4DTs/+n4Jy5/DYXr/ih/hhS0rRYmw61dBL jzPOveY0rVK9zT5EZdMXfroK+4D5HXdSYlgDTNV14X6QPBiOru1sJ3wRZggU6/ubosqQ z12Q==
X-Gm-Message-State: ALoCoQnndzjfyvxqgqXkzIhAf2ors2Wsc4Moh0yI8vLgiPJ6dpk3R0echTUGcQUxGb0GJzbwQNwo84spEdyIzLGC3eZOQdjTyw==
MIME-Version: 1.0
X-Received: by 10.13.210.7 with SMTP id u7mr23820385ywd.100.1453390172994; Thu, 21 Jan 2016 07:29:32 -0800 (PST)
Received: by 10.37.201.5 with HTTP; Thu, 21 Jan 2016 07:29:32 -0800 (PST)
In-Reply-To: <f8d1f9064dcb4765b14d492038c1bb44@XCH-RCD-001.cisco.com>
References: <CAAdgstTwS5bSuRfLwh_ntf1MNek+nMR2wDOPjkuCedvpuJ3VwA@mail.gmail.com> <f49c3ea76c394235a690a0dee54cda12@XCH-RCD-001.cisco.com> <CAAdgstTzq-d8X=Gxay3sTVXrE7eck=b3w92xsJh-ujxtVhdc7Q@mail.gmail.com> <f8d1f9064dcb4765b14d492038c1bb44@XCH-RCD-001.cisco.com>
Date: Thu, 21 Jan 2016 16:29:32 +0100
Message-ID: <CAAdgstTQNd1-pErn_9mjK3wtk-irpGBBT_8OZWxAA+wnyfPh6Q@mail.gmail.com>
From: Tengfei Chang <tengfei.chang@gmail.com>
To: "Pascal Thubert (pthubert)" <pthubert@cisco.com>
Content-Type: multipart/alternative; boundary="001a114e7e78fb5a150529d9c4b9"
Archived-At: <http://mailarchive.ietf.org/arch/msg/6tisch/XAd_yiWefqxsrm-PubHyTiEjg1g>
Cc: "6tisch@ietf.org" <6tisch@ietf.org>, "6lo@ietf.org" <6lo@ietf.org>
Subject: Re: [6tisch] The "BEFORE" and "AFTER"
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: Thu, 21 Jan 2016 15:29:36 -0000

Dear Pascal,

I am confused again on the order of headers in the packets.

For example, the packet:

*MAC header + (......) + ICMPv6*,

The words "IP in IP then  RPI then  6LoRH" equals to "*MAC header + (6LoRH
IPinIP, 6LoRH-RPI, 6LoRH RH3, IPHC) + ICMPv6*",

which we says RPI is RIGHT AFTER IPinIP is the first way I mentioned in the
beginning of this email, no?

Tengfei



On Wed, Jan 20, 2016 at 9:45 PM, Pascal Thubert (pthubert) <
pthubert@cisco.com> wrote:

> OK, let us see.
>
>
>
> With the new text I just proposed, the source (normally that’s the root)
> address of the packet with a RH3 is the reference for compression. So
> Ideally we’d parse that before we parse the RH3 so we can decompress the
> first address in the RH3. This is a change from the original text where I
> expected the first address in the RH3 to be mostly in the full. So in 6LoRH
> form,  IP in IP would come before the RH3.
>
>
>
> With the next text, the root address may be elided but that means placing
> an RPI to identify it if the network has more than one instance. To
> decompress the IP in IP where the root is elided, one really needs the RPI.
> So the RPI should be next to the IP in IP. I would probably have preferred
> to place the RPI before the IP in IP but to look more like the uncompressed
> format we might place the RPI right after the IP in IP.
>
>
>
> This would give (IP in IP then  RPI then  6LoRH *) *. With this we’d
> support multiple encapsulations though I cannot see where we’d need it for
> now.
>
>
>
> Works?
>
>
>
>
>
> Cheers,
>
>
>
> Pascal
>
>
>
> *From:* Tengfei Chang [mailto:tengfei.chang@gmail.com]
> *Sent:* mercredi 20 janvier 2016 14:22
> *To:* Pascal Thubert (pthubert) <pthubert@cisco.com>
> *Cc:* 6lo@ietf.org; 6tisch@ietf.org
> *Subject:* Re: [6tisch] The "BEFORE" and "AFTER"
>
>
>
> Thanks pascal for explaining!
>
>
>
> Yes, I vote to impose an order for the headers in the packet. It helps to
> understand the format of packet generally. Thanks a lot!
>
>
>
> Tengfei
>
>
>
> On Wed, Jan 20, 2016 at 10:52 AM, Pascal Thubert (pthubert) <
> pthubert@cisco.com> wrote:
>
> This is correct Tengfei, and quite classical.
>
>
>
> Headers are like a stack placed in front of the packet. One builds an
> LOWPAN-IPHC – compressed packet that does not have any RPL artifact in it.
> Then the RPL artifacts are added as 6LoRH headers. We have not imposed an
> order yet but it makes sense to place the RPI first if any, then the RH3 if
> any, then the 6LoRH.
>
>
>
> Would you wish that we impose an order to simplify the parsing?
>
>
>
> Pascal
>
>
>
> *From:* 6tisch [mailto:6tisch-bounces@ietf.org] *On Behalf Of *Tengfei
> Chang
> *Sent:* mercredi 20 janvier 2016 09:20
> *To:* 6tisch@ietf.org
> *Subject:* [6tisch] The "BEFORE" and "AFTER"
>
>
>
> Dear all,
>
>
>
> As recently more discussion in the ML about the format of packet,
> sometimes we say some header after/before the IPv6 header. I would like to
> clarify this.
>
>
>
> 1. For me, I say with the way that mac header is the first header in the
> packet and then, several Routing Headers are AFTER mac header (no mesh
> header/fragmenet header in between).  IPHC header is AFTER those Routing
> Headers.
>
>
>
> 2. However, with the view of constructing a packet, IPHC is first added
> into packet, then RHs are placed AFTER IPHC, MAC header is constructed at
> the end. (I feel pascal is using this way to describe the order of header,
> right?)
>
>
>
> What's the way when we describe something like this?
>
>
>
> Thanks
>
> Tengfei
>
>
>
>
>
>
>