48 bytes is the baseline
IPv6 is 40 bytes and UDP is 8 bytes before compression. On 802.15.4, that can consume most of the payload room.
See how LOWPAN_IPHC turns large IPv6/UDP headers into a few bytes on IEEE 802.15.4 links
Explore how LOWPAN_IPHC removes predictable IPv6 fields and how UDP NHC compresses ports and checksum fields. Watch the byte budget change before deciding whether the packet fits a constrained IEEE 802.15.4 frame.
IPv6 is 40 bytes and UDP is 8 bytes before compression. On 802.15.4, that can consume most of the payload room.
The two-byte LOWPAN_IPHC base tells the receiver which IPv6 fields are inline and which are inferred.
When NH is compressed, a following UDP NHC byte describes port and checksum compression.
RFC 6282 allows UDP checksum elision only with upper-layer authorization and an additional integrity check.
Start from 48 bytes of IPv6 and UDP headers.
Encode TF, NH, HLIM, CID, and address modes.
Elide or carry source and destination address bytes.
Compress UDP ports and decide checksum handling.
Compare saved bytes and remaining frame room.
IPv6 plus UDP starts at 48 bytes before compression.
A 48-byte IPv6/UDP header leaves little room for application data on small radio frames.
Version, payload length, link-local prefixes, and common hop limits usually do not need to be sent literally.
The packet fits comfortably while preserving the UDP checksum.
The workbench uses a teaching model based on RFC 6282 field sizes. It shows header bytes, not full MAC or security overhead.
uncompressed = 40 byte IPv6 + 8 byte UDP
The comparison starts from the normal IPv6 plus UDP header size of 48 bytes.
iphc = 2 byte base + CID + inline IPv6 fields
The base LOWPAN_IPHC dispatch and encoding are two bytes; CID adds one only when needed.
udp_nhc = 1 byte NHC + port_bytes + checksum_bytes
Both 0xf0b0-0xf0bf ports still need one shared byte for their 4-bit suffixes.
room_left = 81 byte example_budget - compressed_header
The 81-byte budget approximates a constrained secured 802.15.4 payload case.
Pick a scenario, play through the compression stages, then adjust individual fields to see which bytes return.
Use these cards to connect the animation to practical 6LoWPAN implementation decisions.