IEEE 802.15.4

Purpose and scope

IEEE 802.15.4 is a standard for low-rate wireless personal area networks (LR-WPANs). Its goals are low cost, low complexity, low power, and short-range communication. It is a basis for higher-layer systems such as Zigbee, Thread, and WirelessHART. It defines PHY and MAC functionality, not a complete Internet routing system.

  • PHY: transmits/receives bits, radio activation, energy detection, link-quality indication, channel selection, and clear-channel assessment (CCA).
  • MAC: frames, addressing, association, acknowledgements, channel access, beacons, GTS, and MAC security hooks.

The PHY service carries PPDUs (up to 127-byte PSDUs). A MAC MPDU consists of a MAC header, variable MSDU, and CRC footer.

PAN, devices, and topologies

Each PAN has exactly one PAN coordinator, which selects the PAN ID/channel, manages membership, and may synchronize devices. A network can also have other coordinators and members.

  • FFD (full-function device): can communicate with multiple devices, manage the network, and act as coordinator.
  • RFD (reduced-function device): highly constrained; connects to one FFD and cannot manage the network.

Topologies:

  • Star: devices communicate only with the PAN coordinator.
  • Peer-to-peer: FFDs can communicate with other devices in range.

802.15.4 does not define PAN/address selection, multi-hop routing, or complete network formation. Higher-layer protocols provide those pieces.

Addressing

  • 16-bit short address: assigned by the network; small overhead but only locally meaningful and requires coordination.
  • 64-bit extended address: manufacturer-provided IEEE identifier; more persistent and globally distinguishable, but increases frame size and radio/energy cost.

CSMA/CA(Carrier Sense Multiple Access with Collision Avoidance)

The basic algorithm is listen before talk:

  1. Choose a random backoff.
  2. Perform CCA at the backoff boundary.
  3. If idle, transmit; if busy, increase the backoff state and retry.
  4. Retry only a bounded number of times.

A larger backoff window does not necessarily mean a longer actual delay: the newly selected random value may be smaller than the previous value. The larger window mainly reduces the probability that competing devices choose the same backoff and collide. It can still increase expected waiting time in many cases, but not every individual trial.

MAC variants

  • Unslotted CSMA/CA: no periodic beacons, no time slots, no GTS, and no inactive period. It is simple and fits sparse, low-contention traffic where synchronization/sleep scheduling is not needed.
  • Slotted CSMA/CA: beacon-enabled operation with synchronized backoff periods. A superframe has a contention access period and optionally up to seven GTS slots. Use it when synchronization, bounded access, or scheduled low-latency traffic matters.
  • TSCH: time-slotted channel hopping for dense, industrial networks. It combines TDMA and frequency hopping using shared or dedicated cells. The standard relies on a schedule but does not define the algorithm that creates that schedule.

CSMA/CA vs frequency hopping: CSMA/CA decides when a device may transmit by sensing the medium and backing off. Frequency hopping changes which frequency is used according to a schedule/sequence to avoid interference and improve reliability. They solve different problems and can be combined.

TDMA vs FDMA: TDMA (Time Division Multiple Access)divides access by time; FDMA (Frequency Division Multiple Access) divides the spectrum by frequency. Neither is universally better: TDMA supports deterministic sleep-friendly access, while FDMA supports simultaneous transmissions but consumes scarce frequency bands and may require active radios.

Scenario selection

Choose the mode from the traffic pattern, latency requirement, sleep/synchronization needs, contention level, and interference environment. Do not choose a mode merely because the deployment is physically large: 802.15.4 does not define multi-hop routing.

ScenarioRecommended selectionReasoning and trade-off
Ten battery-powered temperature sensors report once per minute to one hub.Star topology + RFD endpoints + unslotted CSMA/CATraffic is sparse and contention is low, so listen-before-talk is sufficient. Unslotted operation avoids beacon and synchronization overhead and lets devices sleep between measurements. The trade-off is that access delay is not deterministic.
A smart home has many battery-powered lights, switches, and door sensors that should wake in coordinated periods.Beacon-enabled slotted CSMA/CABeacons synchronize the nodes and the superframe can provide an active period followed by an inactive/sleep period. This improves duty-cycle control, but adds coordinator and synchronization overhead that is unnecessary for a very sparse network.
A clinic sends regular patient measurements, but an alarm must obtain a reserved, predictable transmission opportunity.Slotted CSMA/CA with a GTS for critical trafficOrdinary measurements can contend in the CAP, while a coordinator may reserve contention-free GTS capacity for alarms or other scheduled traffic. This supports more predictable access, but GTS capacity is limited (at most seven slots) and requires beacon coordination.
A factory has dense, periodic sensor and actuator traffic with strict timing requirements.TSCH with a configured scheduleDedicated time cells avoid collisions and allow nodes to sleep until their assigned cells. Channel hopping also improves robustness against narrow-band interference. The cost is schedule management; TSCH does not itself specify the algorithm that creates the schedule.
Industrial nodes operate in a crowded or intermittently interfered 2.4-GHz environment.TSCH with channel hoppingTransmissions move across several channels, so a bad channel does not permanently disrupt a link. This addresses frequency-selective interference, whereas CSMA/CA only decides when to transmit. A schedule and compatible TSCH-capable devices are still required.
A greenhouse spans several radio hops and must continue operating when the Internet connection fails.Peer-to-peer FFDs plus a higher-layer mesh/routing protocolNeighboring FFDs can exchange frames, while a higher layer must provide route discovery, forwarding, and network formation. Large area alone does not imply slotted CSMA/CA or TSCH; the choice of access mode still depends on timing and contention.
A simple, mains-powered actuator network has one always-available controller and little traffic.Star topology with FFD coordinator; usually unslotted CSMA/CAOne-hop communication keeps the design and routing simple, and mains-powered devices do not need an inactive period for battery savings. Slotted operation would be justified only if synchronization, bounded access, or scheduled traffic is also required.
Several nearby devices produce unpredictable bursts, but the application tolerates variable delay.Unslotted or slotted CSMA/CA, selected by synchronization needsCSMA/CA is appropriate when contention is moderate and deterministic latency is not required. Backoff reduces collision probability, but it cannot guarantee a deadline; choose TSCH or reserved GTS capacity if missed deadlines are unacceptable.

Exam-style justification pattern

  1. State the traffic and power constraints.
  2. Select the topology and access mode.
  3. Explain why the alternative adds unnecessary overhead or fails a requirement.
  4. State one limitation: contention, bounded capacity, synchronization, schedule management, or the need for higher-layer routing.

For example: “Use beacon-enabled slotted CSMA/CA because the battery nodes need synchronized sleep and periodic access. Unslotted CSMA/CA has less overhead, but cannot coordinate the sleep schedule; TSCH would provide stronger determinism than this application requires.”

Sources

  • master-cs/raw/iot/3.1-IoT_Internetworking-Motivation-802.15.4.md
  • master-cs/raw/iot/Question Sheet Week 2.md
  • master-cs/raw/iot/2021 alte klausur.md