6 Lowpan
6 Lowpan
January 2009
Executive Summary
IP for Smart Objects seeks to extend the use of IP networking into resource-constrained
devices over a wide range of low-power link technologies IEEE 802.15.4 represents
one such link. Extending IP to low-power, wireless personal area networks (LoWPANs)
was once considered impractical because these networks are highly constrained and must
operate unattended for multiyear lifetimes on modest batteries. Many vendors embraced
proprietary protocols, assuming that IP was too resource-intensive to be scaled down to
operate on the microcontrollers and low-power wireless links used in LoWPAN settings.
However, 6LoWPAN radically alters the calculation by introducing an adaptation layer
that enables efficient IPv6 communication over IEEE 802.15.4 LoWPAN links.
1
Introduction
Several leading radio manufacturers have implemented IEEE 802.15.4, which specifies a
wireless link for low-power personal area networks (LoWPANs). 802.15.4 is widely used
in embedded applications, such as environmental monitoring to improve agricultural
yields, structural monitoring to track building and bridge integrity, industrial control to
provide more sense points and control points at lower cost, . These applications generally
require numerous low-cost nodes communicating over multiple hops to cover a large
geographical area, and they must operate unattended for years on modest batteries. Such
requirements target a very different set of applications than do WPAN technologies such
as Bluetooth, which eliminate wiring for headsets, game controllers, and personal devices.
Accordingly, 802.15.4s capabilities are more limited than other WPANs and WLANs
they have small frame sizes, low bandwidth, and low transmit power. Additionally, the
microcontrollers typically coupled with LoWPAN radios have limited memory and
compute power. These constraints led many LoWPAN vendors to embrace proprietary
protocols and link-only solutions (such as ZigBee), presuming that IP was too memoryand bandwidth-intensive for them to scale it down as necessary. While not following the
IP standard, many of these technologies still have not proven their effectiveness in
constrained environments.
6LoWPAN radically alters the landscape by introducing an adaptation layer between the
IP stacks link and network layers to enable efficient transmission of IPv6 datagrams over
802.15.4 links, dramatically reducing IP overhead [3]. The adaptation layer is an IETF
proposed standard and provides header compression to reduce transmission overhead,
fragmentation to support the IPv6 minimum MTU requirement, and support for layer-two
forwarding to deliver and IPv6 datagram over multiple radio hops [4]. 6LoWPAN
achieves low overhead by apply cross-layer optimizations; it uses information in the link
and adaptation layers to compress network- and transport-layer headers. Drawing on IPv6
extension headers, it employs the header stacking principle to separate the orthogonal
concepts and keep the header small and easy to parse.
Here, we discuss key 6LoWPAN concepts to demonstrate how it enables efficient
support for IPv6 over 802.15.4 links.
Fragment Header
The fragment header is used when the payload is too large to fit in a single IEEE
802.15.4 frame. The Fragment header is analogous to the IEEE 1394 Fragment header
and includes three fields: Datagram Size, Datagram Tag, and Datagram Offset.
Datagram Size identifies the total size of the unfragmented payload and is included with
every fragment to simplify buffer allocation at the receiver when fragments arrive out-oforder. Datagram Tag identifies the set of fragments that correspond to a given payload
and is used to match up fragments of the same payload. Datagram Offset identifies the
fragments offset within the unfragmented payload and is in units of 8-byte chunks. To
allow arbitrary byte offsets would require 11 bits to support the 1280 byte minimum
MTU requirement, but requiring 8-byte alignment requires only 8 bits for the offset.
UDP, TCP, or ICMP and compressed or carried inline. The HC2 bit indicates if the next
header is compressed using HC2. Fully compressed, the HC1 encoding reduces the IPv6
header to three bytes, including the dispatch header. Hops Left is the only field always
carried inline.
10
upper layer message integrity check covers the same information and has at least the
same strength. Such a scenario is typical when transport- or application-layer security is
used. As a result, the UDP header can be compressed down to two bytes in the best case.
IPv6/6LoWPAN Architecture
The 6LoWPAN format specification defines how fragmentation, compression, and layertwo forwarding are represented in an 802.15.4 frame. However, the implementation of
those capabilities is out of that documents scope. 6LoWPANs dependencies on the
11
specific operations defined in the 802.15.4 MAC are minimal, supporting essentially any
MAC protocol that provides the 802.15.4 frame format. Similarly, the 6LoWPAN format
doesnt specify how IPv6 capabilities, such as ND and SAA, are orchestrated to
configure the LoWPAN to be consistent with the adaptation layer. Next, we outline IPv6
over 6LoWPANs key architectural issues.
12
802.11 meshing. For example, weve experienced similar challenges with IP over ATM,
in which independent link-level routing makes it difficult to optimize IP routes end-toend with two non communicating routing protocols operating a different layers
independently of each other. Additionally, two independent routing layers can have
unintended interactions, especially when reacting to changes in link state (mutli-layer
recovery). It is also worth mentioning that a multi-layer routing architecture is
challenging in term of route optimality and multi-layer recovery involving complex
bottom-up token based approach).
Neighbor Discovery
IPv6 Neighbor Discovery (ND) lets a node discover neighbors, maintain reachability
information, configure default routes, and propagate configuration parameters [3].
Because ND is only intended for interaction between link neighbors, it should come as no
surprise that ND is only defined for operation over a single IP link. ND performs address
resolution and Neighbor Unreachability Detection (NUD) by sending unicast queries to
neighboring nodes. Hosts listen for Router Advertisements from routers to receive
important network information (e.g. prefixes, default hop limit, etc.) and configure
default routes. Nodes also use ND to perform Duplicate Address Detection (DAD) when
assigning an IPv6 address to an interface. All ND communication occurs within linklocal scope.
However, there are significant challenges to using the current ND specification within
LoWPANs. Specifically, ND makes extensive use of link-local multicast for sending
address resolution solicitations, router advertisements, and DAD solicitations. In a mesh
under configuration that emulates a single IP link over the entire LoWPAN, ND can
potentially be used unmodified. However, supporting multicast to all nodes within the
LoWPAN must be implemented using expensive floods. In the best case, every node in
the LoWPAN must receive a message destined to the link-local all-nodes multicast
14
Routing
Limited memory and communication capabilities constrain the routing state at each node
as well as the routing information that might be communicated. These restrictions
preclude using protocols that rely on complete link-state information. Traditional distance
vector mobile ad-hoc networks (manet) protocols are also ill-suited because they assume
a high rate of mobility for all nodes in the network, whereas LoWPAN nodes are better
characterized by more structured mobility within a set of stationary nodes. Consequently,
manet protocols use frequent floods to discover and maintain routes. Caches used to
optimize communication only trade memory for communication. In addition, most of
these protocols exchange route maintenance information at rates that far outpace typical
LoWPAN communication and react to link fading with expensive route-repair actions.
Instead, LoWPAN routing protocols must operate using incomplete information and
tolerate some inconsistency. Interestingly, were returning to scalability issues similar to
those encountered with the early Internet, but this time in a wireless setting. The new
Routing over Low Power and Lossy Links (ROLL) working group within the IETF
routing directorate will soon address these challenges [8].
15
Security Considerations
6LoWPAN takes advantage of the strong AES-128 link-layer security mechanisms
provided by IEEE 802.15.4. Transport layer mechanisms have also been shown to be
feasible on 6LoWPAN networks. However, while network-layer security mechanisms
such as IPsec and Secure Neighbor Discovery are becoming mature, their feasibility on
LoWPANs is still being questioned.
16
embedded IP stacks directly address the issues related to supporting IP over low-power
mesh topologies in LoWPANs.
Within the IETF, the mobile ad hocs networks (manet) working group and related
research activities tremendous effort has been devoted to reactive and proactive routing
protocols for mobile devices. This work has assumed capable, high-bandwidth links and
powerful hosts with high, random mobility. As such, it used conventional IP datagrams
and frame formats and hasnt attend to the impact of resource constraints. Work in the
IETF Ad-Hoc Network Autoconfiguration (AUTOCONF) working group is devoted to
developing solutions for stateless address autoconfiguration and Neighbor Discovery in
settings in which IP connectivity is naturally viewed as a collection of overlapping partial
broadcast domains. The Routing Over Low power and Lossy links (ROLL) working
group was recently chartered to address routing in LoWPANs (independently of the link
layer).
Conclusion
Until recently, extending IP out to wireless industrial networks was thought to be
impractical, if not impossible. Vendors embraced proprietary protocols because they
presumed that IP, which is memory- and bandwidth-intensive, couldnt be scaled down to
operate on the microcontrollers and low-power wireless links used in these environments.
Recent efforts within the IETF make IP over low power communication links now
feasible, including IEEE 802.15.4. These developments make IP attractive for use in lowpower devices, everything from handhelds to instruments.
References
1.
A. Dunkels and JP. Vasseur. IP for Smart Objects. IPSO Alliance White Paper, September 2008.
2.
J. Hui and P. Thubert. Compression Format for IPv6 Datagrams in 6LoWPAN Networks. Internet
Draft (Work in Progress), December 2008.
3.
IPv6 over Low power WPAN (6lowpan) Working Group. Internet Engineering Task Force (IETF).
http://www.ietf.org/html.charters/6lowpan-charter.html.
4.
G. Montenegro, N. Kushalnagar, J. Hui, and D. Culler. Transmission of IPv6 Packets over IEEE
802.15.4 Networks. RFC 4944 (Proposed Standard), September 2007.
5.
T. Narten, E. Nordmark, W. Simpson and H. Soliman. Neighbor Discovery for IP version 6 (IPv6).
RFC 2461 (Proposed Standard), September 2007.
6.
E. Nordmark. Stateless IP/ICMP Translation Algorithm (SIIT). RFC 2765 (Proposed Standard),
February 2000.
7.
E. Nordmark and R. Gilligan. Basic Transition Mechanisms for IPv6 Hosts and Routers. RFC 4213
(Proposed Standard), October 2005.
8.
Routing Over Low power and Lossy networks (ROLL) Working Group. Internet Engineering Task
Force (IETF). http://www.ietf.org/html.charters/roll-charter.html.
17