Wi-Fi & 802.11 · Study deck

IEEE 802.15.4: Collision Analysis

A weak IEEE 802.15.4 link may come from a few colliding senders.

Radio Remi is your guide for this deck.

ieee-802-15-4collision-resolutioncsma-ca
Radio Remi, the module guide, in a scene from this chapter.
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • identify which evidence should drive an advanced 802.15.4 decision
  • compare CSMA/CA tuning, scheduled access, and sparse collision-identification approaches
  • explain the Boolean OR model used in group-testing-style collision identification
  • recognize when sparse activation makes group testing attractive and when it does not
iotclass.org

Major section

Start With the Wireless Story

Latency is the time a message takes to arrive.

  • A payload is the useful data inside that message.
  • A schedule can cut clashes but needs shared time and may waste empty slots.
  • Random access is simple under light use but can fail in a burst.
  • This warehouse story cannot make one advanced method the default.

Key terms

Advanced 802.15.4 work
Advanced 802.15.4 work is mostly contention management.
iotclass.org

Major section

CSMA/CA Tuning

CSMA/CA tuning is usually the first option because it works with the normal contention model.

  • IEEE 802.15.4 uses carrier sense multiple access with collision avoidance for contention-based traffic.
  • The device listens before transmitting and uses random backoff when the channel appears busy.
  • If the evidence shows bounded periodic traffic, scheduled access may be a better fit.
iotclass.org

Major section

Reservation And Random Access Tradeoff

A large population may have only a few devices active at once, and each active device may send only a few bits or bytes.

  • In that regime, reservation overhead can become the bottleneck: the schedule request, grant, synchronization, and identity exchange may cost more airtime or energy than the payload itself.
  • Random access systems reduce that coordination burden by letting devices contend.
  • Aloha-style access avoids much of that listening, but accepts higher collision rates.
iotclass.org

Major section

Sparse Collision Identification

Sometimes the problem is not only avoiding a collision.

  • The system may need to identify which devices were active during a burst.
  • With a carefully designed test matrix, each device has a unique response pattern.
  • The observed results can be decoded to infer the active devices.
  • Entry $A_{ji}=1$ means device $i$ participates in test slot $j$.

Key terms

Group testing
Group testing is a model for this situation.

Why it matters

A candidate that survives all negative tests is possibly active; a $d$-disjunct or otherwise suitable matrix ensures the remaining positive-test pattern separates all allowed active sets.

Boolean-OR group-testing matrix identifies two active users with shared tests rather than one private slot per node.
Boolean-OR group-testing matrix identifies two active users with shared tests rather than one private slot per node.
iotclass.org

Major section

Sparse Collision Identification (continued)

The private identity row reminds us that t=N is the trivial design; sparse recovery targets t proportional to d log N only under the stated OR and noise assumptions.

  • The trivial design is $A=I_N$: give every device a private slot.
  • It always identifies the active set but needs $t=N$ tests.
  • Sparsity changes the information requirement.
iotclass.org

Major section

Sparse Collision Identification (continued)

If $y_j=0$, every device whose column contains a 1 in row $j$ is inactive.

  • Suitable probabilistic or adaptive designs approach the commonly stated sparse scaling $t=\Theta(d\log N)$ under their decoding and error assumptions, instead of $N$ identity tests.
  • Decode from negative tests first.
  • Each matrix column is a device's on-off signature.
iotclass.org

Major section

Sparse Collision Identification (continued)

For $N=1024$ and $d=4$, the scale term is $d\log_2N=40$, compared with 1024 private tests.

  • Forty is not a guaranteed production slot count: constants, noise protection, nonadaptive exact-recovery requirements, synchronization, and false-positive targets can require more tests.
  • In a noisy receiver, use repeated chips, threshold margins, and an error-tolerant decoder rather than interpreting one energy detection as a perfect Boolean value.
  • Distinct columns are enough when at most one device is active.
iotclass.org

Major section

Sparse Collision Identification (continued)

Identification can carry information as well as presence. Figure: Collision-resolving code path from user-owned columns to Boolean-OR assigns multiple columns per user so the decoder recovers identity and one payload bit together.

  • During slot $j$, active device $i$ transmits energy when $A_{ji}=1$ and stays silent when $A_{ji}=0$.
  • The stronger construction is $d$-disjunct: for every column $i$ and every set $S$ of at most $d$ other columns, there is a row where $A_{ji}=1$ and all columns in $S$ are zero.
  • That private witness prevents any union of up to $d$ other signatures from covering device $i$.
iotclass.org

Major section

Sparse Collision Identification (continued)

Identity and information can be carried jointly by assigning multiple columns per device.

  • If device $i$ may send message $m$, provision a codeword $A_{i,m}$ for every allowed message symbol.
  • The device transmits the column matching both its identity and its information.
  • More message choices increase the number of columns and therefore test length or decoding difficulty.
iotclass.org

Major section

Sparse Collision Identification (continued)

The expanded codebook must forbid choosing two messages for the same device and must remain separable for the allowed number of simultaneous users.

  • Hidden terminals, capture effect, near-far power imbalance, clock error, fading, and regulatory airtime limits can turn a logical 1 into a missed or ambiguous test.
  • A collision-resolving design is accepted only after testing those conditions against ordinary CSMA/CA or scheduled access on the same workload.
  • A candidate that survives all negative tests is possibly active; a $d$-disjunct or otherwise suitable matrix ensures the remaining positive-test pattern separates all allowed active sets.
iotclass.org

Deck summary

Key takeaways

Latency is the time a message takes to arrive.

  • CSMA/CA tuning is usually the first option because it works with the normal contention model.
  • A large population may have only a few devices active at once, and each active device may send only a few bits or bytes.
  • Sometimes the problem is not only avoiding a collision.
  • The private identity row reminds us that t=N is the trivial design; sparse recovery targets t proportional to d log N only under the stated OR and noise assumptions.
iotclass.org

Retrieval practice

Recall check

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

Q1Before tuning CSMA/CA or adding guaranteed time slots in an 802.15.4 network, what must a reviewer establish first?

AWhat behavior is failing and what measurement proves it
BWhich coordinator brand looks newest on a datasheet
CThe maximum theoretical PHY data rate quoted on paper
DWhether a newer radio generation happens to exist
Show answer

Answer: A Advanced 802.15.4 tuning starts from knowing what behavior is failing and what measurement proves it.

iotclass.org

Print reference

Answers

Answer key.

  1. A · Advanced 802.15.4 tuning starts from knowing what behavior is failing and what measurement proves it.
iotclass.org