Skip to content

Lecture 2 - Roles, topology, and network formation

Course: Zigbee guide | Phase 2 - Embedded Software, IoT

Previous: Lecture 01 - What Zigbee is and where it fits | Next: Lecture 03 - The Zigbee stack: ZDO, APS, endpoints, and clusters


The three main node roles

Zigbee networks are built from three main node types:

  • Coordinator
  • Router
  • End Device

Official reference: Silicon Labs network node types

Coordinator

There is at most one coordinator in a Zigbee network.

Its job is to:

  • form the network
  • choose channel and identifiers
  • anchor the network
  • often act as the trust center

In practice, the coordinator is usually the gateway-like or mains-powered central node.

Router

Routers:

  • forward traffic
  • extend network range
  • allow children to attach
  • stay awake instead of sleeping aggressively

A router is infrastructure, not a battery-first endpoint.

End Device

End devices:

  • do not route traffic for others
  • usually communicate through a parent
  • are the natural place for battery-powered sensors and actuators

Some end devices are sleepy, which matters a lot for power design later.


Topologies: star, mesh, and hybrid reality

Zigbee is often described as "mesh", but the useful engineering point is more specific:

  • a coordinator can anchor a network
  • routers can relay traffic
  • end devices can hang from a parent

That means real deployments often look hybrid, not like one pure textbook diagram.

Official reference: Silicon Labs Zigbee mesh networking

Simple Zigbee network with coordinator, routers, and end devices

This picture is useful because it shows the role split visually:

  • one Coordinator at the center
  • several Routers extending the network
  • several leaf Devices hanging from routing infrastructure

Source: eMcU Home Automation Zigbee topology image

In practice:

  • a small deployment may behave almost like a star
  • a larger deployment uses routers for reach and resilience
  • sleepy end devices remain leaves

So the real question is not "is it star or mesh?" but:

  • who routes?
  • who sleeps?
  • who forms the network?
  • where are the failure points?

How a Zigbee network forms

At a high level:

  1. a coordinator scans and selects a channel
  2. it creates the network
  3. routers and end devices discover and join
  4. parents are selected
  5. routing state develops as the network grows

This is the basic bring-up flow you must hold in your head before touching SDK examples.

Key detail:

  • the coordinator has special formation responsibility
  • once the network exists, routers and parent relationships matter more for daily operation

Trust center and management implications

The coordinator is not just the first router.

In many Zigbee deployments it also acts as the trust center, which means it is central to:

  • authorization
  • key handling
  • network admission

That is one reason coordinator design quality matters so much. If the coordinator is weakly implemented, the whole network suffers.


The embedded-design consequence

When you choose a Zigbee role in firmware, you are not making a cosmetic setting. You are choosing:

  • power behavior
  • RAM/flash pressure
  • radio duty cycle
  • routing responsibility
  • security responsibility

That is why roles belong in Embedded Software, not only in networking diagrams.


Work a parent-loss experiment

Draw a coordinator C, routers R1 and R2, and sleepy end device S attached to R1. Record S's parent, stable identity, current short address, last valid application report, and configured polling/child timeout. Removing R1 does not permit S to route through arbitrary neighbors while asleep: it must detect loss and complete the appropriate recovery/rejoin behavior.

Observe three times separately: loss is detected, network attachment is restored, and a fresh application report is accepted. A role/state line alone proves none of the latter application semantics. Also confirm the actual initial topology; putting four boards on a desk does not guarantee that packets traversed R1.

The coordinator forms a centralized network, but it is not necessarily on every data path. Loss of a coordinator/trust center has different consequences for existing routing, new joins, key management, and host applications. Avoid the blanket claim that every packet stops immediately or that all services necessarily continue.

Exercise answer: A battery sensor that must sleep should normally be an end device, with an available powered parent. A powered router can extend connectivity, but only measurements/topology evidence establish the improvement. Choose poll/recovery parameters from the application's freshness and energy budgets.

Lab

Draw a small 6-device Zigbee network and label:

  • one coordinator
  • two routers
  • three end devices

Then answer:

  • which nodes must stay awake?
  • which nodes can reasonably sleep?
  • which node is most likely to act as trust center?

Previous: Lecture 01 - What Zigbee is and where it fits | Next: Lecture 03 - The Zigbee stack: ZDO, APS, endpoints, and clusters