Zigbee, Thread & Matter · Study deck

6LoWPAN Architecture: Addressing and Forwarding Decisions

6LoWPAN is the adaptation architecture that lets IPv6 packets cross IEEE 802.15.4 radio links.

Radio Remi is your guide for this deck.

6lowpanipv6ieee-802-15-4
Radio Remi, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Explain: A node can form a link-local address from the link-local prefix plus an interface identifier derived from its 64-bit extended address, or from a configured short address under controlled assumptions.
  • Explain: For an uncompressed teaching example, if the first fragment carries the first 80 octets of the datagram, the next fragment uses offset $80/8=10=\mathtt{0x0A}$.
  • Explain: 6LoWPAN and Zigbee: Zigbee shares the IEEE 802.15.4 radio family but uses a different network and application stack than IPv6-based 6LoWPAN or Thread.
  • Explain: Assuming best-case compression: Compression depends on context.
iotclass.org

Major section

Stateless Address Reconstruction

A node can form a link-local address from the link-local prefix plus an interface identifier derived from its 64-bit extended address, or from a configured short address under controlled assumptions.

  • The architecture review should name which method is used and where uniqueness is checked.
  • This derivation also explains why IPHC can remove so many bytes.
  • The risk is context drift.
  • Good architecture evidence therefore pairs every compression assumption with ownership, rollout, and retest rules.
iotclass.org

Major section

Forwarding Roles

The same radio technology can appear in several roles.

  • A sleepy sensor may only originate or receive application traffic.
  • A router forwards traffic for other nodes and needs stable power, route state, and monitoring.
  • A border router connects the constrained network to the larger IPv6 domain and becomes an operations boundary.
6LoWPAN node and router roles.
6LoWPAN node and router roles.
iotclass.org

Major section

Route-Over And Mesh-Under

Forwarding can be described as route-over or mesh-under.

  • The review should avoid treating either phrase as automatically better.
  • Route-over means IPv6 routing decisions are made at the network layer, often with RPL in a low-power and lossy network.
  • It keeps per-hop routing evidence visible and is common in Thread-style architectures.

Key terms

Mesh-under
Mesh-under means the adaptation or link layer hides mesh forwarding beneath IPv6.
iotclass.org

Major section

Thread Relationship

Thread uses IEEE 802.15.4 and 6LoWPAN concepts to support IPv6 in a managed low-power mesh.

  • Shared foundation: Thread depends on constrained IPv6 adaptation, header compression, and low-power mesh assumptions.
  • Added system rules: Thread adds commissioning, security, role management, and operational behavior that raw 6LoWPAN does not define by itself.
  • This distinction keeps the course from mixing Zigbee, Thread, 6LoWPAN, Matter, and generic IEEE 802.15.4 into one vague "short-range mesh" category.
iotclass.org

Major section

Common Mistakes

Calling it a gateway protocol 6LoWPAN is an adaptation layer used by nodes on the constrained link, not only a function inside a border router.

  • Assuming best-case compression: Compression depends on context.
  • Global prefixes, multicast, security, diagnostics, and unusual ports may require more bytes.
  • Normalizing fragmentation: Fragmentation support does not mean large packets are healthy traffic for a constrained mesh.
  • Hiding route evidence: If the operator cannot inspect neighbor and route state, root cause analysis becomes guesswork.
iotclass.org

Major section

Release Checklist

Traffic classes named: Normal, commissioning, diagnostic, control, and maintenance traffic are separated.

  • Packet fit captured: Representative packets show compression behavior and identify the paths that still need fragmentation.
  • Context controlled: Address, prefix, hop-limit, UDP, and security context assumptions are documented and retestable.
  • Roles assigned: Node, router, border-router, support, monitoring, and failure-response duties are explicit.
iotclass.org

Major section

Encapsulation Header Formats

6LoWPAN uses a chain of small, orthogonal headers rather than one fixed adaptation header.

  • A header is present only when that frame needs its job.
  • A mesh-under forwarder must see originator, final destination, and hops left before interpreting the fragment.
  • A reassembly endpoint must see datagram identity before interpreting the compressed IPv6 content.

Key terms

Datagram Tag
Datagram Tag is selected by the sender and, together with link origin, destination, and size, separates interleaved datagrams.
iotclass.org

Major section

Fragment and Mesh Header Fields

For an uncompressed teaching example, if the first fragment carries the first 80 octets of the datagram, the next fragment uses offset $80/8=10=\mathtt{0x0A}$.

  • An arbitrary 11-bit byte offset is therefore replaced by an 8-bit count of eight-byte blocks.
  • V=0 means the originator address is an extended 64-bit address; V=1 means it is a short 16-bit address.
  • If the result is zero, it drops the frame.

Why it matters

Every fragment except the last must end on an 8-octet boundary so that a following offset is representable.

iotclass.org

Major section

Fragment and Mesh Header Fields (continued)

That distinction is what lets reassembly use a stable datagram identity across forwarders.

  • The shortest base mesh header is therefore $1+2+2=5$ octets, and the longest is $1+8+8=17$ octets.
  • If the four-bit Hops Left field is 0xF, an extra Deep Hops Left octet follows the control byte, extending those sizes by one.
  • Short addresses save airtime, but only if address assignment and lifecycle remain trustworthy.
iotclass.org

Major section

Concept Relationships

6LoWPAN and IPHC: IPHC is the compression mechanism that makes many IPv6 packets practical on constrained frames.

  • 6LoWPAN and RPL: RPL is commonly used to route IPv6 traffic through low-power and lossy networks, especially in route-over designs.
  • 6LoWPAN and Thread: Thread uses constrained IPv6 foundations but adds its own managed mesh, commissioning, and security behavior.
  • 6LoWPAN and Zigbee: Zigbee shares the IEEE 802.15.4 radio family but uses a different network and application stack than IPv6-based 6LoWPAN or Thread.
iotclass.org

Deck summary

Key takeaways

A node can form a link-local address from the link-local prefix plus an interface identifier derived from its 64-bit extended address, or from a configured short address under controlled assumptions.

  • The same radio technology can appear in several roles.
  • Forwarding can be described as route-over or mesh-under.
  • Thread uses IEEE 802.15.4 and 6LoWPAN concepts to support IPv6 in a managed low-power mesh.
  • Calling it a gateway protocol 6LoWPAN is an adaptation layer used by nodes on the constrained link, not only a function inside a border router.
iotclass.org

Retrieval practice

Recall check 1 of 2

Radio Remi says: answer from memory, then check your reasoning.

Q1Which statement best describes the role of 6LoWPAN in an IEEE 802.15.4 IoT network?

AIt replaces IPv6 with a proprietary sensor protocol so constrained devices do not need IP addresses.
BIt adapts IPv6 to constrained radio frames through header compression, fragmentation support, and constrained-link behavior.
CIt is only a function inside the border router and is not used by constrained nodes.
DIt increases the radio data rate so ordinary internet traffic can be sent unchanged.
Show answer

Answer: B 6LoWPAN is an adaptation architecture between IPv6 and IEEE 802.15.4. It compresses headers when context allows, fragments packets that still cannot fit, and keeps constrained IPv6 behavior reviewable.

iotclass.org

Retrieval practice

Recall check 2 of 2

Radio Remi says: answer from memory, then check your reasoning.

Q2A review finds that normal telemetry fits after IPHC compression, but diagnostics sometimes require fragmented 6LoWPAN datagrams. What is the strongest architecture response?

AApprove all large payloads without further review, because 6LoWPAN's FRAG1 and FRAGN support makes fragmented traffic a solved problem.
BReject 6LoWPAN for the whole design, because any packet that fragments proves the architecture is invalid for constrained links.
CTreat diagnostics as a named exception path with packet evidence, reassembly limits, loss and timeout behavior, and operator status.
DMove the diagnostics into multicast discovery traffic so the large-message behavior is absorbed invisibly by the network.
Show answer

Answer: C Normal telemetry can remain release-ready while diagnostics get their own evidence gate.

iotclass.org

Print reference

Answers

Answer key.

  1. B · 6LoWPAN is an adaptation architecture between IPv6 and IEEE 802.15.4. It compresses headers when context allows, fragments packets that still cannot fit, and keeps constrained IPv6 behavior reviewable.
  2. C · Normal telemetry can remain release-ready while diagnostics get their own evidence gate.
iotclass.org