TTL and Relay Density

TTL and Relay Density

Ada audits TTL and relay density — hop count, flooding budget, and sizing checks

foundations
math-foundations
ble-mesh
advanced
Ada ADA · CALCULATION AUDIT

Foundations · optional mathematics and physics

TTL and Relay Density

The BLE-Mesh calculator’s default run takes an 80 m node distance and 10 m relay spacing to ceil(80 / 10) = 8 hops, then a 2.0 safety multiplier lifts the TTL to 16 and the settling delay to 160 ms. The tighter office example measures 50 m corner-to-corner at 8 m spacing for a TTL of 9 and a 90 ms window. This audit re-derives each figure and the 100-200-relay building estimate, asking whether the chapter’s hop, TTL, and density numbers all hold.

Companion to the chapter BLE Mesh Networking — every number here comes from that chapter.

Hop count, flooding budget, and sizing checks

A BLE Mesh TTL is a physics-and-traffic budget, not a magic reliability knob. The number must cover the physical hop count, leave a margin for alternate paths, and avoid flooding every relay longer than necessary.

See the relationship before changing it

The figure reads from left to right. The blue card is source-to-destination distance. The middle card applies this page's rule. The green card is safety-scaled ttl. Walk the arrows once: set the input, apply the rule, then read the result with its unit.

The retained audit below checks several chapter fixtures. This model keeps those stated values fixed and changes only source-to-destination distance, so the numeric fixture does not switch without explanation.

Source-to-destination distance changes safety-scaled ttl An input card leads through the rule TTL = ceil(distance / 10 m spacing) x 2 to the safety-scaled ttl result. INPUT PAGE INPUT APPLY THE RULE predict calculate check units OUTPUT RESULT
Walk the arrows. Distance and relay spacing set a hop estimate before the safety multiplier expands TTL.

Derive the baseline in four named moves

  1. 1

    Name the input. The chapter baseline is 80 m.

  2. 2

    Name the relationship. TTL = ceil(distance / 10 m spacing) x 2

  3. 3

    Substitute with units. ceil(80 / 10) x 2 = 16 hops

  4. 4

    Read the result. Keep the unit beside the value. Use it only inside the technical boundary on this page.

Predict, then change source-to-destination distance

Try Predict the direction of TTL = ceil(distance / 10 m spacing) x 2. Test another source-to-destination distance, then compare safety-scaled ttl.

80 m
Chapter baseline
Safety-scaled TTL

Observe Distance and relay spacing set a hop estimate before the safety multiplier expands TTL. Reset source-to-destination distance to 80 and compare safety-scaled ttl.

Explain Distance and relay spacing set a hop estimate before the safety multiplier expands TTL.

Check yourself

What should you do before trusting a moved-control result?
Answer: Predict its direction, apply the shown relationship, keep the units, and reset to the worked baseline.
What does this small model leave out?
Answer: Only source-to-destination distance moves here. Field effects named in the technical boundary stay fixed.
Try

The BLE-Mesh calculator’s default run takes an 80 m node distance and 10 m relay spacing to ceil(80 / 10) = 8 hops, then a 2.0 safety multiplier lifts the TTL to 16 and the settling delay to 160 ms . Calculate this case.

Observe

This audit re-derives each figure and the 100-200 -relay building estimate, asking whether the chapter’s hop, TTL, and density numbers all hold. Check shows this.

Explain

Use TTL to bound hop reach and relay density to bound flooding load; neither number alone proves field reliability, so the calculated relay range is a starting point for measured coverage and congestion tests. Check confirms it.

Technical boundaries

The “TTL and Relay Density” model leaves out managed flooding collisions, relay queueing, retransmissions, friendship caching, radio propagation, or topology churn; “TTL and Relay Density” therefore reports only its named fixtures.

Calculator default

The interactive default uses an 80 m maximum node distance, 10 m relay spacing, 10 ms per hop, and a 2.0 safety multiplier.

ceil(80 / 10) = 8 hops
TTL = ceil(8 x 2.0) = 16
delay = 16 x 10 ms = 160 ms

Office worked example

The office example is tighter because the measured corner-to-corner distance is 50 m and relay spacing is 8 m.

50 / 8 = 6.25, so round up to 7 hops
TTL = 7 + 2 = 9
settling window = 9 x 10 ms = 90 ms

Relay density check

The quick-reference ranges translate directly into relay counts before field testing.

home: 50 x 10-20% = 5-10 relays
office: 200 x 15-25% = 30-50 relays
building: 1000 x 10-20% = 100-200 relays

Every number above is taken from the chapter's own TTL and relay-density example and re-derived step by step.