ArticleslgStudy

computer science

6LoWPAN

6LoWPAN is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand 6LoWPAN rather than just read about it. In short: 6LoWPAN (IPv6 over Low-Power Wireless Personal Area Networks) was a working group of the Internet Engineering Task Force (IETF). It was created with the intention of applying Internet Protocol Version 6 (IPv6) even to the smallest devices, enabling low-power devices with limited processing capabilities to participate in the Internet of Things.

6LoWPAN — main illustration
6LoWPAN — illustration

Key takeaways

  • 6LoWPAN belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect 6LoWPAN to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of 6LoWPAN from memory before moving on to harder problems.

Reference excerpt

6LoWPAN (IPv6 over Low-Power Wireless Personal Area Networks) was a working group of the Internet Engineering Task Force (IETF). It was created with the intention of applying Internet Protocol Version 6 (IPv6) even to the smallest devices, enabling low-power devices with limited processing capabilities to participate in the Internet of Things. The 6LoWPAN group defined encapsulation, header compression, neighbor discovery and other mechanisms that allow IPv6 to operate over IEEE 802.15.4 based networks. Although IPv4 and IPv6 protocols do not generally care about the physical and MAC layers they operate over, the low-power devices and small packet size defined by IEEE 802.15.4 make it desirable to adapt to these layers. The base specification developed by the 6LoWPAN IETF group is RFC 4944 (updated by RFC 6282 with header compression, RFC 6775 with neighbor discovery optimization, RFC 8931 with selective fragment recovery and with smaller changes in RFC 8025 and RFC 8066). The problem statement document is RFC 4919. IPv6 over Bluetooth Low Energy using 6LoWPAN techniques is described in RFC 7668.

Application areas The targets for IPv6 networking for low-power radio communication are devices that need Wireless connectivity to many other devices at lower data rates for devices with very limited power consumption. The header compression mechanisms in RFC 6282 are used to allow IPv6 packets to travel over such networks. IPv6 is also in use on the smart grid enabling smart meters and other devices to build a micro mesh network before sending the data back to the billing system using the IPv6 backbone. Some of these networks run over IEEE 802.15.4 radios, and therefore use the header compression and fragmentation as specified by RFC6282.

Thread Thread is a standard from a group of more than fifty companies for a protocol running over 6LoWPAN to enable home automation. The specification is available at no cost as of 24 June 2022, but paid membership is required to implement the protocol. Version 1.0 of the specification was published on 2015-10-29. The protocol most directly competes with Z-Wave and Zigbee IP. In IoT device communications using the Matter standard, Thread is one of two possible wireless transport layers.

Functions As with all link-layer mappings of IP, RFC4944 provides a number of functions. Beyond the usual differences between L2 and L3 networks, mapping from the IPv6 network to the IEEE 802.15.4 network poses additional design challenges (see RFC 4919 for an overview).

Adapting the packet sizes of the two networks IPv6 requires the link maximum transmission unit (MTU) to be at least 1280 octets. In contrast, IEEE 802.15.4's standard frame size is 127 octets. A maximum frame overhead of 25 octets and an optional but highly recommended security feature at the link layer poses an additional overhead of up to 21 octets are for AES-CCM-128. This leaves only 81 octets for the upper layers. Since this is so much less than 1280, 6LoWPAN defines a fragmentation and reassembly layer. Further, the standard IPv6 Header is 40 octets long, so header compression is defined as well.

Address resolution IPv6 nodes are assigned 128 bit IP addresses in a hierarchical manner, through an arbitrary length network prefix. IEEE 802.15.4 devices may use either of IEEE 64 bit extended addresses or, after an association event, 16 bit addresses that are unique within a PAN. There is also a PAN-ID for a group of physically collocated IEEE 802.15.4 devices.

Differing device designs IEEE 802.15.4 devices are intentionally constrained in form factor to reduce costs (allowing for large-scale network of many devices), reduce power consumption (allowing battery powered devices) and allow flexibility of installation (e.g. small devices for body-worn networks). On the other hand, wired nodes in the IP domain are not constrained in this way; they can be larger and make use of mains power supplies.

Differing focus on parameter optimization IPv6 nodes are geared towards attaining high speeds. Algorithms and protocols implemented within higher layers (such as TCP) are optimized to handle typical network problems such as congestion, however, in IEEE 802.15.4-compliant devices, energy conservation and code-size optimization remain at the top of the agenda.

Adaptation layer for interoperability and packet formats An adaptation mechanism to allow interoperability between IPv6 domain and the IEEE 802.15.4 can best be viewed as a layer problem. Identifying the functionality of this layer and defining newer packet formats, if needed, is an enticing research area. RFC 4944 proposes an adaptation layer to allow the transmission of IPv6 datagrams over IEEE 802.15.4 networks.

Addressing management mechanisms The management of addresses for devices that communicate across the two dissimilar domains of IPv6 and IEEE 802.15.4 is cumbersome, if not exhaustingly complex.

Routing considerations and protocols for mesh topologies in 6LoWPAN Routing per se is a two-phased problem that is being considered for low-power IP networking:

Mesh routing in the personal area network (PAN) space. The routability of packets between the IPv6 domain and the PAN domain. Several routing protocols have been proposed by the 6LoWPAN community such as LOAD, DYMO-LOW, HI-LOW. However, only two routing protocols are currently legitimate for large-scale deployments: LOADng, standardized by the ITU under the recommendation ITU-T G.9903, and RPL, standardized by the IETF ROLL working group.

Routing The 6LoWPAN routing scheme can be carried out in two different ways: mesh-under and route-over. Mesh-under consists of implementing routing at the adaptation layer (which takes place between the link layer and the network layer of the OSI model), while route-over performs this implementation at the network layer (see 6LoWPAN routing scheme). In route-over, the IPv6 packet is reconstituted on each intermediate device in order to make the routing decision. Conversely, in mesh-under, the routing decision is made at the 6LoWPAN level and therefore only with fragments of the IPv6 packet. In this case, the IPv6 packet is only reconstituted on the recipient equipment. Therefore :

mesh-under allows for a shorter transmission time; route-over is more effective in degraded conditions (packet loss). Improved versions of mesh-under and route-over have been proposed :

… excerpt ends here. Continue reading the full article.

Illustrations

6LoWPAN illustration

Worked examples

Example 1 — a first encounter with 6LoWPAN

Start with the simplest possible case. Write down what 6LoWPAN claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to 6LoWPAN before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about 6LoWPAN ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of 6LoWPAN

In research
6LoWPAN appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses 6LoWPAN in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
6LoWPAN is common in secondary-school and first-year university syllabi. It links to neighbouring topics IPv6, Wireless networking standards, so understanding it makes those chapters shorter.
In everyday life
Look for 6LoWPAN outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “6LoWPAN” →

How to study 6LoWPAN in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what 6LoWPAN means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain 6LoWPAN out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is 6LoWPAN in simple terms?

6LoWPAN (IPv6 over Low-Power Wireless Personal Area Networks) was a working group of the Internet Engineering Task Force (IETF). It was created with the intention of applying Internet Protocol Version 6 (IPv6) even to the smallest devices, enabling low-power devices with limited processing capabili…

Why does 6LoWPAN matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study 6LoWPAN?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on 6LoWPAN.

Tags

  • IPv6
  • Wireless networking standards

Keep exploring