Chapters

20 Ad-Hoc Production: Routing Trade-offs

emerging-paradigms
adhoc
prod

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.

Shortest Path Is Not Best Path

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:

  1. Failure detection: 100 ms (first missing ACK)
  2. Route switch: 15 ms (lookup backup in cache)
  3. First packet on backup: 62 ms (4-hop transmission)
  4. 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.

Backup Path Battery Levels

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.

Interactive Quiz: Match Concepts

Interactive Quiz: Sequence the Steps

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.

Label the Diagram

Code Challenge

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.

Ad hoc routing strategy comparison showing four strategies: shortest path puts all traffic on the minimum-hop route with low latency and bottleneck risk, load balanced spreads traffic across several paths, energy-aware shifts load away from weak batteries, and QoS-aware prioritizes the best packet-delivery path with a backup path
Figure 20.1: 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

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 areaEvidence neededReject when
Routing fitTraffic pattern, mobility, discovery delay, control overhead, and route-state evidence.The protocol is chosen from a generic table without measured traffic.
Link evidencePDR, 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 evidenceDetection time, switch time, backup-path health, and first-packet delivery.The record claims fast recovery but does not measure the sequence.
Energy evidenceRelay-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.

Blueprint BinaCheckpoint: 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 itemQuestionEvidence to attachReject when
Traffic classHow 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 choiceWhy 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 windowHow 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 triggerWhen 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:

  1. State the deployment claim. Name the traffic, area, node count, gateway, mobility, and recovery requirement.
  2. Test the weak path. Use the worst likely relay, battery, obstruction, or mobility condition as the release gate.
  3. Record rejected routes. Explain which paths were excluded for latency, battery, PDR, security, or stale-route risk.
  4. 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.

StateWhat to verify
DetectionACK timeout, missed beacons, neighbor aging, and route expiry define when the node knows a path failed.
CandidateBackup paths need current PDR, latency, battery, hop count, and loop-avoidance evidence.
CommitThe switch is complete only after forwarding state changes and the first packet succeeds on the backup path.
DecayCached 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:

  1. Protocol Selection Depends on Traffic Patterns: Proactive for frequent traffic, reactive for sparse traffic, hybrid for mixed patterns

  2. Link Quality Classification Enables Smart Routing: PDR, RSSI, and latency thresholds classify links into four tiers for routing decisions

  3. Multi-Path Redundancy Needs Measured Failover: Pre-cached backup paths can reduce recovery time when detection, switch, and first-packet delivery are recorded

  4. Energy-Aware Routing Extends Lifetime: Distributing load across nodes prevents premature battery depletion and network partition

  5. Shortest Path is Not Always Best: For delay-tolerant applications, measured relay load and battery state can justify energy-aware routing

  6. 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

  1. Perkins, C. E. (2001). Ad Hoc Networking. Addison-Wesley.

  2. Abolhasan, M., Wysocki, T., & Dutkiewicz, E. (2004). “A review of routing protocols for mobile ad hoc networks.” Ad Hoc Networks, 2(1), 1-22.

  3. 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.

  4. Spyropoulos, T., et al. (2008). “Efficient routing in intermittently connected mobile networks: The multi-copy case.” IEEE/ACM Transactions on Networking.

  5. 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