Budget bytes in a compressed data frame

Budget bytes in a compressed data frame

Try With Check nominal 110-byte payload enabled, predict which address and security choices can fit 110 bytes before counting upper-layer headers.

Frame configuration

11 bytes counted. 116 bytes remain. Fits before upper-layer headers. Count those headers before confirming.

Byte budget · 0–127 bytes

Nominal payload demand · 110 bytes

+6 bytes · Headroom before upper-layer headers

Field ledger in byte order

  1. Frame control field (FCF) · 2 bytes
  2. Sequence number · 1 byte
  3. Destination PAN ID · 2 bytes
  4. Destination address · 2 bytes
  5. Source address · 2 bytes
  6. Remaining space · 116 bytes
  7. Frame check sequence (FCS) · 2 bytes

2 + 1 + 2 + 2 + 2 + 2 = 11 bytes of overhead. 127 − 11 = 116 bytes remaining.

Observe Short addresses recover 12 bytes from the unsecured extended-address frame. Security takes 9 bytes from the short-address frame.

Explain The nominal payload comes out of the same space as upper-layer headers. The 6-byte cushion in the short unsecured case is the total space those headers can still use.

Check your payload prediction

Compare 110 bytes against 116, 104 and 107 bytes of available space. Only the 116-byte case fits before any additional headers.

Technical boundaries. This is a compressed intra-PAN data-frame budget with the destination PAN ID present and the source PAN ID omitted. The secured example uses the compact legacy IEEE 802.15.4-2006 implicit-key format. Remaining space is shared by upper-layer headers and application data. ACKs, MAC commands and retries consume separate airtime. Delivery and throughput require their own evidence.

Back to the chapter