RFID, NFC & UWB · Study deck

Z-Wave Simulation: Timing and Evidence Analysis

Classic mesh and Long Range may reach the same node by very different paths.

Radio Remi is your guide for this deck.

z-wavesimulationsource-routing
iotclass.org

After studying this chapter

Learning objectives

You will be able to:

  • Explain: A Z-Wave transmission is acknowledged with retries, so first model the retry: a lost frame is retransmitted according to the scenario policy, each attempt adds latency, and then the node gives up on that route.
  • Explain: An LR endpoint may solve a direct-reach design problem, but it should not be counted as a classic mesh repeater unless the target product and controller documentation explicitly support that role.
  • Explain: A switch-to-lamp association can be modelled as direct device control only when the scenario states the source device, target device, group, and command being sent.
iotclass.org

Major section

Exercise 4: Classic Mesh and Long Range Side by Side

The classic endpoint may use repeaters.

  • The LR endpoint should be modeled as a direct gateway-to-device star link.
  • The pass condition is that the model keeps the two topology rules separate.
  • An LR endpoint may solve a direct-reach design problem, but it should not be counted as a classic mesh repeater unless the target product and controller documentation explicitly support that role.

Try it: Exercise 4: Classic Mesh and Long Range Side by Side in the chapter

iotclass.org

Major section

Latency, Associations, and Timing Assumptions

A direct command then costs one step, a route through two repeaters costs roughly three steps, and a route through four repeaters costs roughly five steps before any retry.

  • Each hop adds transmission time, per-node processing, and acknowledgements, so a four-hop path is meaningfully slower than a direct path.
  • For a workshop scenario, you might assign 40 ms of modelled time to each transmit-plus-ack step.
  • Associations need the same discipline as route timing.

Numbers to remember

40 msyou might assign 40 ms of modelled time to each transmit-plus-ack step.
iotclass.org

Major section

Latency, Associations, and Timing Assumptions (continued)

Z-Wave data rates are modest compared with Wi-Fi, so the simulation should make hop count and retry cost visible instead of hiding them behind a single "reachable" result.

  • Those numbers are not measured Z-Wave latency; they are a visible assumption that lets students compare route shapes.
  • If the scenario allows 2 retries after a failed acknowledgement, a marginal four-repeater path can consume three attempts before repair starts.
  • The result log should show each attempt, the failing segment, and whether the route finally succeeded, switched to an alternate, or escalated to Explorer Frame discovery.
iotclass.org

Major section

Latency, Associations, and Timing Assumptions (continued)

Modelling associations shows why an associated pair can react faster and continue working when the controller is busy or offline.

  • A switch-to-lamp association can be modelled as direct device control only when the scenario states the source device, target device, group, and command being sent.
  • The bench test does not need to reproduce the placeholder milliseconds.
  • It needs to verify that direct, two-repeater, and repaired routes are distinguishable in controller diagnostics or command observations, and that association behavior matches the selected devices rather than the simplified model.
iotclass.org

Major section

Explorer Frame Flood and Retries

At event 4, if stored paths fail, launch the explorer-frame search.

  • The most instructive thing to simulate is what happens when a route breaks.
  • When known routes are exhausted, an Explorer Frame can spread outward through the network to discover a new path.
  • The flood model should track duplicate suppression and hop budget.

Why it matters

A weak scenario might show many repair transmissions but no valid route because the only apparent bridge was a sleeping endpoint.

iotclass.org

Major section

Explorer Frame Flood and Retries (continued)

A Z-Wave transmission is acknowledged with retries, so first model the retry: a lost frame is retransmitted according to the scenario policy, each attempt adds latency, and then the node gives up on that route.

  • That flood is controlled, but it is still much more expensive than a normal routed message.
  • Neighbours rebroadcast under a hop budget, duplicate suppression keeps repeated frames from expanding forever, and the destination reply lets the network cache a recovered path.
  • A route-repair scenario for Node 21 can start with cached path controller -> 6 -> 12 -> 21.
iotclass.org

Major section

Explorer Frame Flood and Retries (continued)

A simulation reveals the cost: route repair briefly generates more traffic than a normal command, which is why explorer behavior is a last resort rather than the default.

  • If Node 6 and Node 8 both hear the explorer, each may rebroadcast according to the ruleset.
  • If Node 14 receives duplicates, it should forward only according to the model's suppression rule.
  • If every discovered candidate exceeds the classic repeater limit, the run should fail with "no valid classic route" instead of inventing a longer path.
iotclass.org

Major section

Evidence Handoff

Simulation evidence is most useful when it is written for the next reviewer.

  • A good handoff says, "Here is what the model checked, here is what it assumed, and here is what hardware must still prove.".
  • The hand-off to: Certification is not created by simulation needs an assigned owner.
  • Certification remains separate.
A Z-Wave validation handoff moving from simulation evidence to bench hardware validation and installed-network validation, with certification kept outside software-only claims.
A Z-Wave validation handoff moving from simulation evidence to bench hardware validation and installed-network validation, with certification kept outside software-only claims.
iotclass.org

Major section

Worked Scenario

A design review needs to decide whether a smart lock near an exterior door has enough classic mesh support.

  • The team has not installed hardware yet, so they build a software scenario.
  • The contact sensors are excluded from route paths.
  • The LR sensor is modeled as direct to the gateway and does not improve the classic route.

Why it matters

The first run passes because the lock route uses two mains-powered repeaters.

iotclass.org

Major section

Common Mistakes

Treating the graph as an RF survey.: A route edge in software is an assumption until measured or observed with real devices.

  • Mixing classic mesh and LR rules.: A Z-Wave Long Range endpoint should not be counted as a classic repeater in a route exercise.
  • Running only the happy path.: A useful simulation includes at least one failed acknowledgement, removed repeater, incomplete interview, or sleeping-device case.
  • Reporting certification from simulation.: Simulation can prepare evidence for review, but certification requires the formal process and certified device records.
iotclass.org

Deck summary

Key takeaways

The classic endpoint may use repeaters.

  • A direct command then costs one step, a route through two repeaters costs roughly three steps, and a route through four repeaters costs roughly five steps before any retry.
  • Z-Wave data rates are modest compared with Wi-Fi, so the simulation should make hop count and retry cost visible instead of hiding them behind a single "reachable" result.
  • Modelling associations shows why an associated pair can react faster and continue working when the controller is busy or offline.
  • At event 4, if stored paths fail, launch the explorer-frame search.
iotclass.org

Retrieval practice

Recall check 1 of 2

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

Q1A Z-Wave simulation shows a brief spike in network traffic and latency right after a repeater is removed, then normal fast operation resumes. What is being modelled?

AEvery device permanently switches to flooding, so the traffic stays high forever afterward.
BThe controller reboots and re-includes every device, which causes the traffic spike.
CBattery sensors all wake simultaneously to repair the mesh routes themselves.
DKnown routes fail and are retried, then an explorer frame floods outward to find and cache a new path.
Show answer

Answer: D Route repair modelling shows retries on the failed route, then a hop-limited explorer-frame flood that increases traffic and latency until a new path is discovered and cached.

iotclass.org

Retrieval practice

Recall check 2 of 2

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

Q2A Z-Wave route simulator shows that every modeled device is reachable. Which conclusion is safe to make from software-only evidence?

AThe installed network will definitely have reliable RF coverage everywhere.
BThe modeled topology satisfies the scenario assumptions and still needs hardware validation.
CThe devices are certified for the exact region where they will be installed.
DBattery endpoints can be used as repeaters as long as the route is short.
Show answer

Answer: B Software simulation validates the scenario model, not the physical deployment.

iotclass.org

Print reference

Answers

Answer key.

  1. D · Route repair modelling shows retries on the failed route, then a hop-limited explorer-frame flood that increases traffic and latency until a new path is discovered and cached.
  2. B · Software simulation validates the scenario model, not the physical deployment.
iotclass.org