Interactive Learning Platform for IEEE 802.15.4 and Zigbee Protocol
Zigbee is built on the IEEE 802.15.4 standard, which defines the Physical (PHY) and Medium Access Control (MAC) layers. The Zigbee Alliance specifies the upper layers including Network (NWK), Application Support (APS), and Application Framework (AF) layers [^11^].
Key Characteristics:
Zigbee supports three network topologies [^1^]:
Star Topology: Single coordinator with end devices. All communication goes through the coordinator. Simple but single point of failure.
Tree (Cluster-Tree) Topology: Hierarchical structure with coordinator, routers, and end devices. Routers extend coverage but parent node failure isolates children.
Mesh Topology: Peer-to-peer connections with self-healing capability. Routers can communicate directly with each other, providing multiple paths and fault tolerance [^21^].
IEEE 802.15.4 uses Carrier Sense Multiple Access with Collision Avoidance (CSMA-CA) for channel access [^12^]:
Unslotted CSMA-CA (Non-beacon mode): Used when beacons are not transmitted. Device performs random backoff, then clear channel assessment (CCA).
Slotted CSMA-CA (Beacon-enabled mode): Synchronized to superframe slots. Device waits for slot boundary, performs random backoff in units of backoff periods (20 symbols each), then performs two CCAs before transmission [^13^].
In beacon-enabled mode, communication is organized in superframes bounded by beacon transmissions [^16^]:
Superframe duration controlled by Beacon Order (BO) and Superframe Order (SO) where 0 ≤ SO ≤ BO ≤ 14 [^13^].
Hover over or click a layer to see detailed information. Click "Animate Data Flow" to visualize packet transmission through the stack.
Star topology: All devices communicate through the central coordinator. Simple but vulnerable to coordinator failure.
NB = Number of Backoffs, CW = Contention Window, BE = Backoff Exponent
Beacon Interval (BI): 245.76 ms
Superframe Duration (SD): 122.88 ms
Duty Cycle: 50%
Study the Zigbee protocol stack architecture. Identify which layers belong to IEEE 802.15.4 and which are defined by Zigbee Alliance. Trace the path of a data packet from application layer to physical layer and back.
Simulate Star, Tree, and Mesh topologies with varying numbers of nodes. Observe the connectivity patterns and identify single points of failure. Record the number of hops required for different source-destination pairs.
Run the CSMA-CA simulation in both slotted and unslotted modes. Observe the backoff procedure, clear channel assessment (CCA), and collision avoidance. Vary the number of competing devices and measure the channel access delay.
Configure different superframe parameters (BO, SO) and observe the effects on beacon interval, active period duration, and duty cycle. Analyze the trade-off between latency (GTS allocation) and energy efficiency (inactive period).
Calculate the following metrics for each topology:
• Network diameter (maximum hops)
• Redundancy (alternative paths)
• Power consumption characteristics
• Scalability limitations
Your laboratory report should include the following sections: