-
Notifications
You must be signed in to change notification settings - Fork 0
Routing Modes
Peter edited this page Mar 25, 2026
·
1 revision
µMesh supports two routing modes configured by umesh_cfg_t.routing.
How it works:
- Nodes exchange route updates periodically
- Each node keeps best next-hop route to known destinations
- Metric combines hop cost and link quality
Best for:
- General mesh traffic
- Mixed source/destination patterns
- Stable small-to-medium topologies
Pros:
- Mature default mode
- Handles arbitrary destination routing
Tradeoffs:
- Convergence depends on route update intervals
How it works:
- Coordinator emits gradient beacons
- Each node computes distance-to-coordinator
- Uplink traffic forwards to neighbor with lower distance
Best for:
- Sensor networks (many nodes -> one coordinator)
- Telemetry collection and low-complexity uplink
Pros:
- Very simple forwarding logic for upstream traffic
- Good fit for periodic sensor payloads
Tradeoffs:
- Optimized for coordinator-destined traffic
- Needs beacon convergence before routing is ready
- Choose Distance Vector for general-purpose mesh communication.
- Choose Gradient for sensor aggregation to one coordinator.
gradient_beacon_msgradient_jitter_max_msumesh_gradient_distance()umesh_gradient_refresh()