6 6LoWPAN Fragmentation and Reassembly
6LoWPAN fragmentation is the adaptation-layer mechanism that lets an IPv6 packet cross a radio link whose frames are much smaller than ordinary IPv6 packets. It is useful, but it is not free. Every fragment adds state, airtime, loss exposure, buffer pressure, and troubleshooting work.
This chapter treats fragmentation as evidence to review. A good design shows when fragmentation is avoided, when it is unavoidable, how FRAG1 and FRAGN headers are matched, where reassembly happens, how incomplete datagrams are discarded, and what the operator sees when a large packet path is degraded.
6.1 Start With the Packet That Must Fit
Prove Why the Packet Must Be Split
Picture a small field sensor sending a routine reading in one radio frame, then sending a larger fault record that no longer fits. Splitting the second message creates more work and more ways to fail. The review should first ask whether the message can stay small.
6LoWPAN is an adaptation method that carries IPv6 over constrained low-power links. IPv6 is an addressing system for networked devices. A payload means the useful content inside a message. Record the original size, available frame space, split identifier, part order, waiting limit, and memory owner before approving the larger path.
Drop the first part, drop a later part, change the order, repeat one part, and delay completion. Check that parts from different messages never mix, incomplete work expires, memory remains bounded, and the sender or operator sees a useful failure state.
This test does not prove every radio or large-message use. The deeper sections show the split headers, offsets, reassembly rules, loss cost, and cases where smaller messages or a different path are safer.
Start with the packet pressure behind 6LoWPAN Fragmentation and Reassembly: IPv6 semantics have to survive on a small, lossy, low-power frame. The useful question is not which field is shortened first, but what evidence proves the adaptation still carries the right meaning.
Follow one payload from the original packet to the constrained link and back to the review record. Compression, fragmentation, reassembly, and retries make sense when they are tied to that visible journey.
6.2 In 60 Seconds
- Fragmentation is a gate, not a feature to assume. A design should prove why the packet cannot stay in a single constrained frame.
- FRAG1 starts a fragmented datagram with size and tag evidence. FRAGN carries matching tag evidence plus an offset so the receiver can place later pieces.
- Reassembly consumes memory and time. The receiver must keep enough state to match fragments, detect completion, and discard incomplete work.
- One missing fragment can invalidate the whole datagram. The release review should test loss, timeout, retry, and degraded-status behavior.
- Large diagnostics, discovery responses, security handshakes, and update traffic should usually be chunked above 6LoWPAN rather than hidden inside link fragmentation.
6.3 Learning Objectives
By the end of this chapter, you will be able to:
- Explain why constrained radio frames create a packet-fit decision before a 6LoWPAN design is approved.
- Distinguish FRAG1 evidence from FRAGN evidence without treating header diagrams as proof of implementation behavior.
- Review reassembly state, timeout, memory pressure, tag matching, source matching, and incomplete-datagram cleanup.
- Decide when to avoid 6LoWPAN fragmentation through smaller payloads, application-layer chunking, or a different network path.
- Build a release checklist that separates evidence-supported fragmentation from review-required large-packet behavior.
6.4 Quick Check: 6LoWPAN Fragmentation
6.5 Prerequisites
This chapter assumes you have already reviewed:
- 6LoWPAN Overview, for the constrained IPv6 adaptation goal.
- 6LoWPAN Header Compression, for the packet-size reduction that should happen before fragmentation is considered.
- 6LoWPAN Deployment Evidence Framework, for packet policy, border-router custody, and release gates.
- 6LoWPAN Routing with RPL, for multi-hop behavior and recovery evidence.
6.6 Fragmentation Claim
Use a claim that can be tested:
Fragmentation claim: The design handles only the named large-packet paths through 6LoWPAN fragmentation, with captured FRAG1 and FRAGN evidence, bounded reassembly state, timeout behavior, loss handling, operator status, and retest triggers.
This claim avoids two common drifts: saying “6LoWPAN supports IPv6 so large packets are fine,” or saying “fragmentation is bad so it must never exist.” The useful review question is narrower: which large packet path exists, why it exists, and what evidence shows it is safe enough for this application.
6.7 Packet-Fit Decision
Use Figure 6.1 to keep the review focused on evidence rather than arithmetic shortcuts.
Before packet-Fit Decision, inspect Figure 6.1 to compare “Compression Proof” with “Release or Retest”. Their juxtaposition makes 6LoWPAN fragmentation gate visible.
Read Figure 6.1 from “Compression Proof” to “Release or Retest”. Taken together, “Compression Proof” and “Release or Retest” express 6LoWPAN fragmentation gate. For packet-Fit Decision, the observed relationship between “Compression Proof” and “Release or Retest” is evidence that “Compression Proof” carries into the next decision.
The gate starts with packet evidence. Compression should be applied and verified first. If the packet still does not fit the constrained path, the design either proves a bounded fragmentation path or changes the application behavior so the constrained link carries smaller chunks.
6.8 Fragmentation Process Walkthrough
The mechanism is simple, but the review cost is real. The sender splits one large datagram into a first fragment and later fragments. The receiver groups them by source, size, and datagram tag, places later payloads by offset, and discards incomplete state when the timer expires.
Before fragmentation Process Walkthrough, inspect Figure 6.2 to compare “282 B” with “2 · F3”. Their juxtaposition makes 6LoWPAN fragmentation from measured frame budget through FRAG1 and FRAGN fields to bounded offset-based reassembly visible.
Read Figure 6.2 from “282 B” to “2 · F3”. Taken together, “282 B” and “2 · F3” express 6LoWPAN fragmentation from measured frame budget through FRAG1 and FRAGN fields to bounded offset-based reassembly. For fragmentation Process Walkthrough, the observed relationship between “282 B” and “2 · F3” is evidence that “282 B” carries into the next decision.
Imagine a sleepy sensor sends a compressed IPv6/UDP/CoAP diagnostic response that is 220 bytes after header compression. If the link can carry about 80 bytes of datagram payload per IEEE 802.15.4 frame after MAC, mesh, security, and fragmentation overheads, the response becomes three radio frames: bytes 0-79, bytes 80-159, and bytes 160-219. That is not just one bigger packet. It is three airtime events, three collision opportunities, and one reassembly record that must stay alive until the last piece arrives.
6.9 What FRAG1 Proves
FRAG1 is the first fragment of a datagram. It starts the reassembly record and carries the evidence the receiver needs to create the right context.
A page should not treat FRAG1 as just a label in a figure. The review should show how the implementation records size, tag, source, timer, and expected byte coverage when the first fragment arrives.
6.10 What FRAGN Proves
FRAGN carries later pieces of the same datagram. Its review evidence is about matching and placement.
FRAGN evidence is especially important when packets cross multiple hops. A reviewer should know whether fragments are forwarded as fragments, where reassembly happens, and which node owns the timeout and cleanup decision.
6.11 Header Field Ledger
The fragment fields are small, so every field has to earn its place in the review record.
For the 220-byte diagnostic example, FRAG1 might carry bytes 0-79 and announce datagram_size=220 with tag 0x34a1. The next fragment repeats the size and tag and uses datagram_offset=10, because byte 80 starts after ten 8-byte units. A third fragment uses datagram_offset=20 for byte 160 and completes the final 60 bytes. A fragment with the same tag but the wrong source, an offset that overlaps existing bytes, or a duplicate that arrives after timeout cleanup should not be quietly merged into the buffer.
6.12 Reassembly Custody
Reassembly is a custody problem. The receiver holds incomplete packet state until the datagram is complete or the reviewable timeout path discards it.
Use Figure 6.3 as a compact review record.
Before reassembly Custody, inspect Figure 6.3 to compare “Timeout Cleanup” with “tag, source, offset”. Their juxtaposition makes 6LoWPAN reassembly evidence record visible.
Read Figure 6.3 from “Timeout Cleanup” to “tag, source, offset”. Taken together, “Timeout Cleanup” and “tag, source, offset” express 6LoWPAN reassembly evidence record. For reassembly Custody, the observed relationship between “Timeout Cleanup” and “tag, source, offset” is evidence that “Timeout Cleanup” carries into the next decision.
The cleanup boundary is not optional. Without it, a rare lost fragment can become a memory leak, a hidden failure, or a confusing intermittent bug.
6.13 Loss and Retry Evidence
The core reliability problem is simple: reassembly needs every required piece. If one required fragment does not arrive, the packet cannot be handed to IPv6 as complete.
Avoid presenting a single delivery probability as the whole story. The stronger evidence is behavioral: what happens when a fragment is missing, late, duplicated, or retried.
6.14 Loss Amplification and Buffer Cost
Fragmentation has an all-or-nothing reliability property: every fragment required for one datagram must arrive, or the datagram is discarded. On a link where each frame is delivered 90% of the time, a five-fragment datagram succeeds with 0.90^5 = 0.59. The datagram loss rate is therefore about 1 - 0.59 = 0.41, even though the per-frame loss rate is only 10%.
That loss amplification combines with memory pressure. Three in-flight 1280-byte reassembly buffers consume 3 x 1280 = 3840 bytes before allocator overhead, timers, link-layer queues, routing tables, and application state are counted. On a small node, one noisy neighbor can force timeout or buffer eviction for unrelated traffic.
Use this arithmetic to bound the release decision. Robust designs cap concurrent reassemblies, expire partial buffers quickly, expose timeout status, and prefer application chunks such as CoAP block-wise transfer when the application can tolerate chunk-level acknowledgement and progress state.
6.15 Multicast Boundary
Fragmented multicast is a special risk because different receivers can miss different pieces, and the sender may not have a practical per-receiver recovery path.
Multicast boundary: Use multicast only when the payload and recovery model are explicitly safe for the constrained link. If the message may fragment, redesign the message, use smaller application chunks, or use a unicast recovery path.
This rule should be written as a boundary, not as a slogan. Some small multicast control messages can be useful. Large multicast payloads need stronger evidence or a different design.
6.16 Alternatives to Fragmentation
When the fragmentation gate fails, the design can often be improved without abandoning 6LoWPAN.
The best alternative is the one that matches the traffic type. Diagnostics, logs, security exchanges, and updates may each need a different chunking, retry, or offload plan.
6.17 Worked Review: Diagnostic Log Upload
Suppose a sensor sometimes uploads a diagnostic log after a fault. Steady telemetry fits the constrained path, but the diagnostic response is much larger.
The release decision can approve telemetry while keeping diagnostics review-required. This is better than hiding a weak large-packet path behind a successful small-packet demo.
6.18 Worked Review: Security Handshake or Update Traffic
Security handshakes and updates can create bursty or large messages. They should not be treated like ordinary sensor readings.
Large-message security and update paths are not just packet-size problems. They can also affect power, recovery time, operational visibility, and field support.
6.18.1 Interactive: Find the Security-Overhead Fragment Boundary
Use the security-boundary preset below before approving the handshake or update record. It holds the application payload and link assumptions visible while adding the teaching security overhead that crosses the 802.15.4 frame boundary. Step through encapsulation, compression, fragmentation, and transmission so the extra fragment is tied to bytes rather than to a vague claim that security is expensive.
Carry the fragment count, total air bytes, and delivery-probability change into the release label. The result explains why a secure maintenance exchange can need a different chunk, retry, or recovery policy from routine telemetry.
6.19 Common Fragmentation Mistakes
6.20 Release Checklist
Before approving a fragmentation path, verify these checks:
6.21 Knowledge Check: FRAG1 and FRAGN Evidence
6.22 Knowledge Check: Fragmentation Release Decision
6.23 Interactive Review: Match Fragmentation Evidence to Risk
6.24 Interactive Review: Order the Fragmentation Review
6.25 Summary
6LoWPAN fragmentation makes large IPv6 packets possible over constrained links, but it also creates a release gate. The reviewer should prove packet fit, FRAG1 and FRAGN matching, reassembly custody, memory and timeout behavior, loss response, multicast boundaries, and alternatives. Strong chapters do not rely on big formulas, code snippets, or optimistic tables. They show what traffic is proven, what is limited, and what must be retested.
6.26 Key Takeaway
6LoWPAN Fragmentation and Reassembly Evidence should verify MTU pressure, fragmentation, reassembly loss, timeout behavior, and deployment evidence before relying on constrained IPv6 links.
6.27 Concept Relationships
6.28 What’s Next
- 6LoWPAN Routing with RPL: Review how multi-hop forwarding and recovery affect constrained packet paths.
- 6LoWPAN Deployment Evidence Framework: Place fragmentation policy into the wider deployment release record.
- 6LoWPAN Pitfalls: Review common mistakes that turn fragmentation into hidden production risk.
- 6LoWPAN Lab Simulation: Practice capture-based review of constrained packet behavior.
- 6LoWPAN Comprehensive Review: Combine fragmentation with compression, routing, border-router, and validation evidence.
