[6lo] #16 (routing-dispatch): Behaviour with encapsulated LOWPAN_IPHC
"6lo issue tracker" <trac+6lo@tools.ietf.org> Thu, 04 February 2016 11:56 UTC
Return-Path: <trac+6lo@tools.ietf.org>
X-Original-To: 6lo@ietfa.amsl.com
Delivered-To: 6lo@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 44EC61B2A15; Thu, 4 Feb 2016 03:56:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-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 4LrSlaxqAsVN; Thu, 4 Feb 2016 03:56:34 -0800 (PST)
Received: from zinfandel.tools.ietf.org (zinfandel.tools.ietf.org [IPv6:2001:1890:123a::1:2a]) (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 7036C1ACF59; Thu, 4 Feb 2016 03:56:34 -0800 (PST)
Received: from localhost ([::1]:49415 helo=zinfandel.tools.ietf.org) by zinfandel.tools.ietf.org with esmtp (Exim 4.82_1-5b7a7c0-XX) (envelope-from <trac+6lo@tools.ietf.org>) id 1aRIWY-0004ef-8D; Thu, 04 Feb 2016 03:56:34 -0800
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
From: 6lo issue tracker <trac+6lo@tools.ietf.org>
X-Trac-Version: 0.12.5
Precedence: bulk
Auto-Submitted: auto-generated
X-Mailer: Trac 0.12.5, by Edgewall Software
To: draft-ietf-6lo-routing-dispatch@ietf.org, pthubert@cisco.com
X-Trac-Project: 6lo
Date: Thu, 04 Feb 2016 11:56:34 -0000
X-URL: https://tools.ietf.org/6lo/
X-Trac-Ticket-URL: https://trac.tools.ietf.org/wg/6lo/trac/ticket/16
Message-ID: <057.9a9c841fc47a590283d65e7fa1bb90a9@tools.ietf.org>
X-Trac-Ticket-ID: 16
X-SA-Exim-Connect-IP: ::1
X-SA-Exim-Rcpt-To: draft-ietf-6lo-routing-dispatch@ietf.org, pthubert@cisco.com, 6lo@ietf.org
X-SA-Exim-Mail-From: trac+6lo@tools.ietf.org
X-SA-Exim-Scanned: No (on zinfandel.tools.ietf.org); SAEximRunCond expanded to false
Resent-To: draft-ietf-6lo-routing-dispatch@ietf.org
Resent-Message-Id: <20160204115634.7036C1ACF59@ietfa.amsl.com>
Resent-Date: Thu, 04 Feb 2016 03:56:34 -0800
Resent-From: trac+6lo@tools.ietf.org
Archived-At: <http://mailarchive.ietf.org/arch/msg/6lo/AMWG-YKqhg3m3F5SfyEPH12kPOE>
Cc: 6lo@ietf.org
Subject: [6lo] #16 (routing-dispatch): Behaviour with encapsulated LOWPAN_IPHC
X-BeenThere: 6lo@ietf.org
X-Mailman-Version: 2.1.15
List-Id: "Mailing list for the 6lo WG for Internet Area issues in IPv6 over constrained node networks." <6lo.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/6lo>, <mailto:6lo-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/6lo/>
List-Post: <mailto:6lo@ietf.org>
List-Help: <mailto:6lo-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/6lo>, <mailto:6lo-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Feb 2016 11:56:36 -0000
#16: Behaviour with encapsulated LOWPAN_IPHC Hello Xavi: Yes, this deserves more clarification, thanks for pointing it out. Your question applies so source and destination, and is really whether we can compress the address in the IPHC based on what is found in a 6LoRH header. The short answer a) you cannot do that statelessly (damn sad, need to fix), and b) you can do a little something statefully if 1) you have a *context* and 2) the source (and / or destination) in the inner IP header and that in the outer header refer to *the same node*, in which case the source (and / or destination) in the inner header can be fully compressed. I can add text if that helps. The long answer: RFC6282 is geared to support more than one IPv6 addresses, one that is link local (S/DAD=0) for use within radio range, and then several ones derived from different prefixes using context information (S/DAC=1). All these address are expected to have with a same IID, derived from the MAC address (twice that if you have a short and a long MAC address). This compression allows for a node to be the destination of an outer IP encapsulation with one prefix, and the destination of an inner IP header with another prefix, both addresses based on the same IID. This can make sense for a LLN border router, for instance. Sadly RFC6282 does not allow stateless compression based the encapsulating IP header. IOW, stateless only works with the link-local prefix as opposed to the prefix in the encapsulating header. Since encapsulating a link- local address is useless, we could have specified stateless a bit differently, e.g. that the implicit prefix is the FE80:: if and only if IPHC is used for an outermost IP header, and that it is the prefix from the encapsulation otherwise. But that is another discussion, since it involves an update of RFC6282 which would have to be a separate document. If we want to pursue that other discussion we’ll have to follow up as a different thread / draft at 6lo. Let me know if you think there is interest there (I do). So: with the current specs, you can compress an inner (source/destination) IP address in the LOWPAN_IPHC *based on the encapsulating IP header* in a 6LoRH-encoded header if and only if the address is: - an exact match with a context entry for the prefix length associated with that context, - and then the remainder from the corresponding (source/destination) IP address in the encapsulating header matches that of the encapsulated header, which in 6LoWPAN networks can be interpreted as “same node” though in the IPv6 theory it does not have to be. So for now the only thing you can do is have a context. One context would be for the root. An example: If all the addresses in the LLN derive from the prefix of the root with a /112 and the short MAC address. If there is a context where that prefix/length is encoded, and that is signaled implicitly or explicitly in the LOWPAN_IPHC. If there is an IP-in-IP encapsulation encoded with IP-in-IP-6LoRH, and the final destination in the IPHC is the same as the last entry in the last RH3-6LoRH, then the destination address in the IPHC can be fully elided by using DAC=1 and DAM=11. The packet will reach the destination in the encapsulated form, and then the packet will be decapsulated before going up the stack. I hope this helps : ) Pascal PS This discussion leverages RFC 6282 says this: SAM: Source Address Mode: If SAC=1: <...> 11: 0 bits. The address is fully elided and is derived using context information and the encapsulating header (e.g., 802.15.4 or IPv6 source address). Bits covered by context information are always used. Any IID bits not covered by context information are computed from the encapsulating header as specified in Section 3.2.2. Any remaining bits are zero. <...> DAM: Destination Address Mode: <...> If M=0 and DAC=1: 11: 0 bits. The address is fully elided and is derived using context information and the encapsulating header (e.g. 802.15.4 or IPv6 destination address). Bits covered by context information are always used. Any IID bits not covered by context information are computed from the encapsulating header as specified in Section 3.2.2. Any remaining bits are zero. Cheers, Pascal From: 6tisch [mailto:6tisch-bounces@ietf.org] On Behalf Of Xavier Vilajosana Sent: mercredi 3 février 2016 11:49 To: Pascal Thubert (pthubert) <pthubert@cisco.com>; 6tisch@ietf.org Subject: [6tisch] 6LoRH: compression of the inner destination Dear Pascal, There is something it is not clear to me. How do we compress the inner header destination address assuming we have 6LoRH RH3. could you please clarify that? regards, X -- -------------------------+------------------------------------------------- Reporter: | Owner: draft-ietf-6lo-routing- pthubert@cisco.com | dispatch@ietf.org Type: enhancement | Status: new Priority: major | Milestone: Component: routing- | Version: dispatch | Keywords: Severity: Active WG | Document | -------------------------+------------------------------------------------- Ticket URL: <https://trac.tools.ietf.org/wg/6lo/trac/ticket/16> 6lo <https://tools.ietf.org/6lo/>
- Re: [6lo] #16 (routing-dispatch): Behaviour with … 6lo issue tracker
- [6lo] #16 (routing-dispatch): Behaviour with enca… 6lo issue tracker
- Re: [6lo] #16 (routing-dispatch): Behaviour with … 6lo issue tracker
- Re: [6lo] #16 (routing-dispatch): Behaviour with … 6lo issue tracker