20 Ad-Hoc Production: Routing Trade-offs
20.1 Start With the Situation
The network finds a short route, but that route may cross weak batteries or unstable links. The team must compare alternatives, time failover, and show why the selected path remains useful under change.
20.2 Overview
This route challenges shortest-path thinking with energy, mobility, multipath, and field validation.
This is part 2 of 2. Review Ad-Hoc Production: Readiness Checks when you need the first route.
20.3 Learning Objectives
By the end of this chapter, you will be able to:
- explain why shortest path may not be best
- compare multipath and energy-aware routing
- validate failover and mobility behavior
20.4 Chapter Roadmap
Follow the original sections below in order. They begin at the reviewed split boundary and keep every worked example, figure, check, and supporting banner with the section that owns it.
The Misconception: Many developers assume shortest-path routing (minimum hop count) is always optimal for ad-hoc networks. After all, fewer hops mean lower latency and less forwarding overhead, right?
The Reality: In battery-constrained IoT deployments, shortest-path routing can reduce network lifetime by 60-75% compared to energy-aware routing.
Real-World Example - Wildlife Tracking Deployment:
A 2022 wildlife tracking project deployed 50 sensor nodes across 2km^2 of forest to monitor endangered species. Initial deployment used shortest-path routing (AODV with hop-count metric):
Shortest-Path Results (Week 1-4):
- 3 central nodes (high-betweenness) forwarded 85% of all traffic
- These 3 nodes depleted batteries in 28 days (4 weeks)
- Battery drain: 40% -> 5% (critical level)
- Network partitioned into 3 disconnected islands
- Remaining 47 nodes had 70-85% battery (wasted capacity)
- Effective network lifetime: 28 days
Energy-Aware Routing Results (Week 5-24):
- Deployed battery-aware routing (cost = hop_count / remaining_battery^2)
- Traffic distributed across 15 nodes instead of 3
- Minimum battery after 20 weeks: 32% (vs 5% shortest-path at 4 weeks)
- Extended network lifetime to 140+ days (5x improvement)
Quantified Impact:
- Network lifetime: 28 days (shortest) -> 140+ days (energy-aware) = 400% improvement
- Battery variance: sigma=23% (shortest, highly unbalanced) -> sigma=8% (energy-aware, balanced)
- Latency penalty: +1.2 hops average (acceptable for 1-hour reporting interval)
- Cost savings: Avoided 3 expensive technician visits for battery replacement
The Lesson: For delay-tolerant IoT applications (environmental monitoring, asset tracking, smart agriculture), energy-aware routing significantly outperforms shortest-path routing despite higher hop counts. Always consider application requirements (latency tolerance, battery budget, network lifetime goals) when selecting routing metrics.
Scenario: Industrial control network uses multi-path routing. Primary path fails - calculate total failover time to backup path.
Given:
- Primary path: A -> B -> C -> Gateway (3 hops, 45 ms latency)
- Backup path: A -> D -> E -> F -> Gateway (4 hops, 62 ms latency)
- Link failure detection: 100 ms (ACK timeout)
- Routing table update: 15 ms
- Packet buffering: 50 packets max
Steps:
- Failure detection: 100 ms (first missing ACK)
- Route switch: 15 ms (lookup backup in cache)
- First packet on backup: 62 ms (4-hop transmission)
- Total recovery: 100 + 15 + 62 = 177 ms
Result: <200 ms failover meets industrial control requirements. Without pre-cached backup, would need 2-3 seconds for route discovery.
-
Shortest-path routing
- Lowest delivery latency because it minimizes hop count.
- Baseline network lifetime, because busy relay nodes may drain early.
- Simple to implement.
- Best for latency-critical traffic.
-
Energy-aware routing
- Usually adds 20-40% latency by choosing less depleted relay nodes.
- Can extend network lifetime by 300-500%.
- Requires battery monitoring and route-cost updates.
- Best for long deployments of two years or more.
-
Hybrid routing
- Usually adds 10-20% latency.
- Can extend lifetime by 150-250%.
- Requires adaptive policy logic.
- Best when critical alerts and delay-tolerant telemetry share the same network.
Example: Wildlife tracking with a two-year battery requirement favors energy-aware routing despite higher latency.
The Mistake: Pre-caching backup paths without checking node battery levels, leading to failover to dying nodes.
Impact: Primary path fails -> switches to backup -> backup node at 8% battery fails within minutes -> both paths down.
Solution: Validate backup path battery levels during periodic health checks, invalidate backups with nodes <20% battery.
Common Pitfalls
Students often pick reactive protocols by default without analyzing traffic patterns. Proactive protocols (DSDV/OLSR) outperform reactive ones when traffic rate exceeds about 1 packet per 30 seconds per node because route discovery overhead amortizes. Profile your traffic before selecting a protocol.
Single-path routing fails silently when the primary route breaks, causing 2-5 minute outages while new routes are discovered. Multi-path routing pre-caches backup routes, reducing failure recovery to sub-second. Always implement at least two disjoint paths for critical links.
Deploying shortest-path routing in energy-constrained networks drains high-betweenness relay nodes 3-5x faster than the rest, causing premature network partition. Energy-aware metrics such as residual battery times path length distribute load to extend network lifetime by up to 5x.
Default beacon intervals (1-2 seconds) cause excessive control overhead in static scenarios and stale routes in fast-moving scenarios. Adaptive beaconing (increase rate on link quality changes, decrease when stable) reduces overhead by 40-60% while maintaining route freshness.
20.5 Production Readiness Evidence Record
Production readiness is not the same as solving one routing exercise. A useful ad-hoc assessment asks whether the routing claim still holds when traffic rate, node mobility, relay battery, link quality, interference, gateway placement, or recovery policy changes.
The worked examples are best read as evidence patterns. Before completing the release record, inspect Figure 20.1 to compare how each strategy spends latency, relay capacity, battery, and delivery confidence. The production conclusion must stay scoped to the measured scenario instead of becoming a universal promise about all ad-hoc networks.
Before production Readiness Evidence Record, inspect Figure 20.1 to compare “C: 33%” with “Src”. Their juxtaposition makes ad hoc routing strategy comparison showing shortest-path, load-balanced, energy-aware, and QoS-aware routing choices with their latency, bottleneck, battery, and reliability trade-offs visible.
Read Figure 20.1 from “C: 33%” to “Src”. Taken together, “C: 33%” and “Src” express ad hoc routing strategy comparison showing shortest-path, load-balanced, energy-aware, and QoS-aware routing choices with their latency, bottleneck, battery, and reliability trade-offs. For production Readiness Evidence Record, the observed relationship between “C: 33%” and “Src” is evidence that “C: 33%” carries into the next decision.
Read Figure 20.1 from shortest path through load-balanced and energy-aware routing to the QoS-aware option. The fastest path can create hotspots; load balancing trades latency for resilience; energy-aware routing preserves weak relays; and QoS-aware routing prioritizes measured delivery with a backup. Production readiness depends on proving which of those consequences fits the observed condition.
| Assessment area | Evidence needed | Reject when |
|---|---|---|
| Routing fit | Traffic pattern, mobility, discovery delay, control overhead, and route-state evidence. | The protocol is chosen from a generic table without measured traffic. |
| Link evidence | PDR, RSSI, latency, and retry behavior for the observed radio condition and time window. | The record classifies a link from one metric while ignoring the others. |
| Failover evidence | Detection time, switch time, backup-path health, and first-packet delivery. | The record claims fast recovery but does not measure the sequence. |
| Energy evidence | Relay-load records, battery thresholds, path count, and route churn. | The route is called energy efficient without battery and forwarding evidence. |
Assessment rule: Accept the routing claim only for the traffic, topology, node energy, link quality, and failure condition that the assessment actually tested.
Checkpoint: Evidence Before Release
You now know:
- The wildlife example shows why shortest-path routing can drain three central nodes in 28 days while energy-aware routing extends the same deployment to 140+ days.
- The release decision needs routing fit, link evidence, failover evidence, and energy evidence; a diagram alone is not enough.
- A production claim must name the retest trigger, such as node movement, battery threshold, gateway relocation, seasonal obstruction, firmware, or traffic change.
20.6 Ad-Hoc Release Record
The release record turns quiz-style answers into a maintainable production decision. It keeps the chosen routing strategy, rejected alternatives, measured limits, operations owner, and retest trigger together.
| Record item | Question | Evidence to attach | Reject when |
|---|---|---|---|
| Traffic class | How often does each node send, and what happens if a packet is late or lost? | Message interval, payload type, alarm priority, stale-data rule, and loss budget. | The protocol is chosen before traffic is measured. |
| Route choice | Why does proactive, reactive, hybrid, multipath, or DTN behavior fit this deployment? | Control overhead, discovery delay, route age, path count, and mobility evidence. | The decision says “shortest path” without relay load, failure, or energy evidence. |
| Failover window | How long is the path unavailable after the specific failure? | Detection time, switch time, backup-path health, first packet on backup, and loss count. | The record skips one stage of the failover sequence. |
| Operations trigger | When must the routing assessment be rerun? | Node movement, battery threshold, gateway relocation, seasonal obstruction, firmware, or traffic change. | The team reuses old results after topology or traffic changed. |
Use this release workflow:
- State the deployment claim. Name the traffic, area, node count, gateway, mobility, and recovery requirement.
- Test the weak path. Use the worst likely relay, battery, obstruction, or mobility condition as the release gate.
- Record rejected routes. Explain which paths were excluded for latency, battery, PDR, security, or stale-route risk.
- Set the recheck trigger. Name the exact field change that invalidates the current assessment.
20.7 Failover State Machine Review
Fast recovery depends on the sequence of events, not the label “multi-path.” A node must detect the failed link, reject unsafe alternatives, choose a backup path with enough link and battery evidence, update forwarding state, and deliver the first packet under the new path. Each stage can fail or add delay.
Energy-aware routing has the same structure. It is not enough to avoid low-battery nodes once. The review must track relay duty, route churn, battery thresholds, link quality, and whether a backup path quietly moves the bottleneck to a different node.
| State | What to verify |
|---|---|
| Detection | ACK timeout, missed beacons, neighbor aging, and route expiry define when the node knows a path failed. |
| Candidate | Backup paths need current PDR, latency, battery, hop count, and loop-avoidance evidence. |
| Commit | The switch is complete only after forwarding state changes and the first packet succeeds on the backup path. |
| Decay | Cached routes decay as nodes move, batteries drain, radios change, and seasonal obstructions appear. |
Failure-analysis rule: When a recovery calculation looks strong, ask which state transition was measured and which was assumed. The unmeasured transition is usually where the production claim is weakest.
20.8 Summary
This chapter consolidated key concepts for production ad-hoc network management through assessments and practice problems.
Key Takeaways:
-
Protocol Selection Depends on Traffic Patterns: Proactive for frequent traffic, reactive for sparse traffic, hybrid for mixed patterns
-
Link Quality Classification Enables Smart Routing: PDR, RSSI, and latency thresholds classify links into four tiers for routing decisions
-
Multi-Path Redundancy Needs Measured Failover: Pre-cached backup paths can reduce recovery time when detection, switch, and first-packet delivery are recorded
-
Energy-Aware Routing Extends Lifetime: Distributing load across nodes prevents premature battery depletion and network partition
-
Shortest Path is Not Always Best: For delay-tolerant applications, measured relay load and battery state can justify energy-aware routing
-
Adaptive Strategies Beat Static Ones: Mobility-aware cache timeouts, priority-based path selection, and proactive link prediction outperform fixed configurations
20.9 Further Reading
Foundational Papers:
- Perkins, C. E., & Bhagwat, P. (1994). “Highly dynamic destination-sequenced distance-vector routing (DSDV) for mobile computers.” ACM SIGCOMM.
- Johnson, D. B., & Maltz, D. A. (1996). “Dynamic source routing in ad hoc wireless networks.” Mobile Computing, Springer.
- Haas, Z. J., et al. (2002). “The zone routing protocol (ZRP) for ad hoc networks.” IETF Draft.
DTN and Epidemic Routing:
- Vahdat, A., & Becker, D. (2000). “Epidemic routing for partially connected ad hoc networks.” Duke University Technical Report.
- Fall, K. (2003). “A delay-tolerant network architecture for challenged internets.” ACM SIGCOMM.
Context-Aware and Social Routing:
- Musolesi, M., et al. (2005). “CAR: Context-aware adaptive routing for delay-tolerant mobile networks.” IEEE Transactions on Mobile Computing.
- Costa, P., et al. (2008). “Socially-aware routing for publish-subscribe in delay-tolerant mobile ad hoc networks.” IEEE JSAC.
IoT-Specific:
- RPL: IETF RFC 6550 - Routing Protocol for Low-Power and Lossy Networks
- Al-Karaki, J. N., & Kamal, A. E. (2004). “Routing techniques in wireless sensor networks: A survey.” IEEE Wireless Communications.
20.10 References
-
Perkins, C. E. (2001). Ad Hoc Networking. Addison-Wesley.
-
Abolhasan, M., Wysocki, T., & Dutkiewicz, E. (2004). “A review of routing protocols for mobile ad hoc networks.” Ad Hoc Networks, 2(1), 1-22.
-
Zhang, Z. (2006). “Routing in intermittently connected mobile ad hoc networks and delay tolerant networks: Overview and challenges.” IEEE Communications Surveys & Tutorials, 8(1), 24-37.
-
Spyropoulos, T., et al. (2008). “Efficient routing in intermittently connected mobile networks: The multi-copy case.” IEEE/ACM Transactions on Networking.
-
IoT Routing Survey: Rajandekar, A., & Sikdar, B. (2015). “A survey of MAC layer issues and protocols for machine-to-machine communications.” IEEE Internet of Things Journal.
20.11 What’s Next
- Explore mobile gateway architectures: Mobile Gateway Overview
- Review this production readiness chapter: Ad-Hoc Production Readiness
- Study the production framework chapter: Ad-Hoc Deployment Framework
- Revisit DSDV proactive routing: DSDV Proactive Routing
- Revisit DSR reactive routing: DSR Reactive Routing
20.13 Visual Reference Gallery
Before comparing protocols, use Figure 20.2 to establish what the routing system must control. Look for the absence of a fixed coordinator, then identify the wireless neighbours and the multi-hop path that lets a node reach beyond its own radio range.
Before visual: Ad Hoc Network Architecture, inspect Figure 20.2 to compare “Ad-Hoc Wireless Network Coverage” with “Isolated Coverage”. Their juxtaposition makes comprehensive ad hoc network architecture visualization visible.
Read Figure 20.2 from “Ad-Hoc Wireless Network Coverage” to “Isolated Coverage”. Taken together, “Ad-Hoc Wireless Network Coverage” and “Isolated Coverage” express comprehensive ad hoc network architecture visualization. For visual: Ad Hoc Network Architecture, the observed relationship between “Ad-Hoc Wireless Network Coverage” and “Isolated Coverage” is evidence that “Ad-Hoc Wireless Network Coverage” carries into the next decision.
Read Figure 20.2 from an originating node through its immediate neighbour and onward to the remote node. Every relay is both a participant and part of the path, so movement, loss, or battery depletion changes the topology the protocol sees. That dependence is why production assessment begins with route formation and repair rather than assuming a permanent network backbone.
Once the network boundary is clear, inspect Figure 20.3 to decide when route knowledge should be paid for. Move from proactive to reactive to hybrid, comparing the control overhead incurred before traffic with the discovery delay incurred when traffic begins.
Before ad Hoc Routing Protocol Comparison, inspect Figure 20.3 to compare “Hybrid” with “Route”. Their juxtaposition makes ad-hoc routing-family selection starts with observed mobility, traffic frequency, and control-budget evidence, then compares proactive, reactive, and hybrid candidates before a shared measurement gate visible.
Read Figure 20.3 from “Hybrid” to “Route”. Taken together, “Hybrid” and “Route” express ad-hoc routing-family selection starts with observed mobility, traffic frequency, and control-budget evidence, then compares proactive, reactive, and hybrid candidates before a shared measurement gate. For ad Hoc Routing Protocol Comparison, the observed relationship between “Hybrid” and “Route” is evidence that “Hybrid” carries into the next decision.
In Figure 20.3, the proactive branch keeps routes ready by spending periodic control traffic, while the reactive branch saves that idle work but discovers paths on demand. The hybrid branch limits proactive knowledge to a local zone and searches beyond it. The comparison turns the architecture into a workload decision: traffic frequency, mobility, and acceptable first-packet delay determine which cost is defensible.
Use Figure 20.4 to stress the previous protocol choice with fast three-dimensional movement. Start with the airborne peers, follow their changing inter-aircraft links, and then locate the air-to-ground boundary where mission data leaves the swarm.
Before visual: Flying Ad Hoc Networks (FANETs), inspect Figure 20.4 to compare “UAV Mesh” with “A2G”. Their juxtaposition makes FANET production architecture for UAV networks visible.
Read Figure 20.4 from “UAV Mesh” to “A2G”. Taken together, “UAV Mesh” and “A2G” express FANET production architecture for UAV networks. For visual: Flying Ad Hoc Networks (FANETs), the observed relationship between “UAV Mesh” and “A2G” is evidence that “UAV Mesh” carries into the next decision.
Figure 20.4 shows why a route that is valid at one instant can age quickly: aircraft separation and orientation alter both neighbour reachability and the path to the ground station. The production lesson is to assess route freshness, handoff behaviour, and degraded operation together; a protocol label alone does not prove that the swarm can preserve its mission traffic.
After choosing a routing family, inspect Figure 20.5 to see why its path metric must include deployment lifetime. Read the shortest-path case first, tracking which central relays carry repeated traffic, and then compare the battery distribution in the energy-aware case.
Before energy-Aware vs Shortest Path, inspect Figure 20.5 to compare “Traffic avoids weak batteries” with “Day 140: all relays above 30%”. Their juxtaposition makes energy-aware routing lifetime impact: shortest-path routing concentrates traffic on high-betweenness nodes, rapidly depleting their batteries. Energy-aware routing sacrifices average path length to distribute load across more nodes, extending network lifetime by 5x. This visualization helps operators understand why “optimal” paths may be suboptimal for network longevity visible.
Read Figure 20.5 from “Traffic avoids weak batteries” to “Day 140: all relays above 30%”. Taken together, “Traffic avoids weak batteries” and “Day 140: all relays above 30%” express energy-aware routing lifetime impact: shortest-path routing concentrates traffic on high-betweenness nodes, rapidly depleting their batteries. Energy-aware routing sacrifices average path length to distribute load across more nodes, extending network lifetime by 5x. This visualization helps operators understand why “optimal” paths may be suboptimal for network longevity. For energy-Aware vs Shortest Path, the observed relationship between “Traffic avoids weak batteries” and “Day 140: all relays above 30%” is evidence that “Traffic avoids weak batteries” carries into the next decision.
In Figure 20.5, minimizing hop count repeatedly selects the same high-betweenness relays, so those batteries become the partition point even while other nodes retain energy. The energy-aware strategy accepts longer paths to spread work and keep the topology connected. This connects path selection to the earlier production objective: the best route is the one that meets latency and delivery needs without silently shortening the useful life of the network.
Finally, use Figure 20.6 to turn the single-metric comparison into an explicit policy choice. Follow each source-to-destination path from left to right, noting whether traffic is concentrated, split, steered away from depleted nodes, or assigned according to delivery quality.
Before multi-Path Routing Strategies, inspect Figure 20.6 to compare “Load balanced” with “Preserves weak nodes”. Their juxtaposition makes multi-path routing strategy comparison: production ad-hoc networks must choose between four strategies with different optimization goals. Shortest-path minimizes latency but creates hotspots. Load-balanced extends lifetime. Energy-aware preserves low-battery nodes. QoS-aware maximizes delivery ratio. The right choice depends on application priorities visible.
Read Figure 20.6 from “Load balanced” to “Preserves weak nodes”. Taken together, “Load balanced” and “Preserves weak nodes” express multi-path routing strategy comparison: production ad-hoc networks must choose between four strategies with different optimization goals. Shortest-path minimizes latency but creates hotspots. Load-balanced extends lifetime. Energy-aware preserves low-battery nodes. QoS-aware maximizes delivery ratio. The right choice depends on application priorities. For multi-Path Routing Strategies, the observed relationship between “Load balanced” and “Preserves weak nodes” is evidence that “Load balanced” carries into the next decision.
Figure 20.6 makes the consequence of each policy visible: shortest path optimizes immediate latency, load balancing reduces hotspots, energy-aware routing protects weak relays, and QoS-aware routing favours measured delivery with a backup. None is universally best. The running assessment therefore needs traffic priority, battery state, link evidence, and failover acceptance criteria before it can justify a production route policy.
