99  Ad Hoc Routing: Hybrid (ZRP)

In 60 Seconds

Zone Routing Protocol (ZRP) divides networks into overlapping zones of configurable radius (typically 2-3 hops), using proactive routing within zones and reactive discovery between them. Bordercast reduces route discovery overhead by 50-85% compared to pure flooding – zone radius is the critical tuning parameter.

Minimum Viable Understanding
  • Zone Routing Protocol (ZRP) divides the network into overlapping zones of configurable radius (typically 2-3 hops), using proactive routing within zones (IARP) and reactive discovery between zones (IERP)
  • Bordercast is ZRP’s key optimization: route requests are sent only to zone border nodes rather than flooding the entire network, reducing discovery overhead by 50-85% compared to pure reactive protocols
  • Zone radius is the critical tuning parameter: too small (radius=1) degenerates toward pure reactive routing; too large (radius >= network diameter) degenerates toward pure proactive routing with no hybrid benefit

“I’m confused,” said Sammy the Sensor. “Proactive routing keeps maps of EVERYWHERE (exhausting!). Reactive routing has NO map and asks for directions every time (slow!). Is there a middle ground?”

“YES!” said Max the Microcontroller excitedly. “It’s called Zone Routing Protocol, and it’s like knowing your own neighborhood really well, but using a GPS for trips across town!”

Bella the Battery drew a circle around herself. “See this circle? That’s my ZONE – everything within 2 hops. I know exactly how to reach everyone in my zone (proactive). But for sensors OUTSIDE my zone? I just ask my border friends to pass the question along (reactive)!”

Lila the LED added the best part: “When I need to find someone far away, I don’t shout to the ENTIRE network. I only ask the sensors at the EDGE of my zone – the border nodes. They check THEIR zones, and the question ripples outward efficiently. It’s called BORDERCASTING!”

The Squad’s zone radius guide:

  • Radius = 1 hop: Tiny zone, lots of asking around (mostly reactive)
  • Radius = 2-3 hops: Sweet spot! Know your neighbors, ask for the rest
  • Radius = 10 hops: Zone covers everything – you’re back to proactive mode with all its overhead!

99.1 Learning Objectives

By the end of this chapter, you will be able to:

  • Explain ZRP Architecture: Describe how Zone Routing Protocol combines proactive and reactive approaches with its three components (IARP, IERP, BRP)
  • Design Zone Configurations: Select appropriate zone radius values for different network characteristics and justify the choice
  • Analyze Intra-Zone Routing: Explain proactive table maintenance within each node’s zone and calculate zone size
  • Apply Inter-Zone Routing: Demonstrate reactive discovery for destinations outside the zone using bordercast
  • Evaluate Hybrid Trade-offs: Assess routing overhead, latency, and scalability trade-offs in ZRP networks
  • Compare Protocol Classes: Choose between proactive, reactive, and hybrid protocols for specific scenarios and defend the selection

99.2 Prerequisites

Before diving into this chapter, you should be familiar with:

  • Ad Hoc Routing: Proactive (DSDV): Understanding DSDV’s table-driven approach is essential because ZRP uses proactive routing within zones, making DSDV concepts directly applicable to intra-zone routing
  • Ad Hoc Routing: Reactive (DSR): Knowledge of DSR’s on-demand route discovery is critical because ZRP employs reactive routing for inter-zone communication, building on DSR’s flooding and route caching mechanisms
  • Multi-Hop Fundamentals: Multi-hop networking concepts underpin ZRP’s zone structure, as zone radius is defined in hops and border nodes forward queries across multiple hops
  • Networking Basics: Fundamental networking concepts like routing tables, hop counts, and packet forwarding are prerequisites for understanding how ZRP combines proactive and reactive strategies
  • ZRP (Zone Routing Protocol): Hybrid ad hoc routing protocol partitioning the network into zones; proactive within zones, reactive between zones
  • Routing Zone: Each node’s local neighborhood within radius ρ hops; routes are maintained proactively within this zone
  • Zone Radius (ρ): Number of hops defining the routing zone boundary; large ρ → more proactive overhead; small ρ → more reactive discovery
  • IARP (IntraZone Routing Protocol): Proactive component of ZRP maintaining routes within the routing zone
  • IERP (InterZone Routing Protocol): Reactive component of ZRP discovering routes to nodes outside the routing zone
  • Bordercast: ZRP optimization where route requests are forwarded only to border nodes (at the edge of the zone) rather than flooded
  • Zone Overlap: Nodes within ρ hops of each other share zone membership; enables route caching from zone neighbors
  • ZRP Trade-off: Optimal ρ exists between all-proactive (ρ=∞) and all-reactive (ρ=1); depends on network size and mobility

99.3 For Beginners: Hybrid Routing (ZRP)

Imagine planning routes in your city. For nearby places (your neighborhood), you keep routes in your head constantly. For distant places (across the city), you only look up directions when needed. Zone Routing Protocol (ZRP) combines both strategies - the best of proactive and reactive routing!

The Goldilocks Protocol:

  • Proactive (DSDV): Too much overhead (maintains routes to everywhere continuously)
  • Reactive (DSR): Discovery delay for every communication
  • Hybrid (ZRP): Just right! Maintains routes only to nearby nodes, discovers distant routes on-demand

How ZRP Works: The Neighborhood Concept

Each node defines a “zone” around itself (like knowing your neighborhood well): - Zone Radius: Distance in hops defining your neighborhood (typically 2-3 hops) - Inside Zone: You maintain routes proactively (like knowing every house on your block) - Outside Zone: You discover routes reactively only when needed (like looking up distant addresses)

Example with Zone Radius = 2:

Node A’s zone includes all nodes within 2 hops: - 1-hop away: Direct neighbors B, C (always know how to reach them) - 2-hops away: Neighbors’ neighbors D, E (proactively maintain routes) - 3+ hops away: F, G, H (discover routes only when needed)

Result: A maintains ~10-12 routes instead of 100 routes (saves 90% memory and overhead!)

Term Simple Explanation Everyday Analogy
Zone Routing Combine proactive nearby, reactive distant Know neighborhood, Google Maps for across town
Zone Radius Size of your local zone in hops “I know everyone within 2 blocks”
Intra-Zone Routing Proactive routing within your zone Knowing all streets in your neighborhood
Inter-Zone Routing Reactive routing between zones Looking up directions to other neighborhoods
Border Nodes Nodes at edge of your zone Houses at corner of your neighborhood block
Bordercast Send queries only to border nodes Ask only edge-of-neighborhood residents

The Smart Discovery Process:

When A needs to send to distant node H: 1. Local Check: A checks zone table - “H not in my zone” 2. Bordercast: A sends query to border nodes (D, E) - not full network flood! 3. Border Propagation: D and E check their zones - “Not here either” 4. Zone Overlap: Eventually query reaches zone containing H 5. Local Delivery: That zone delivers to H using proactive routes 6. Reply: Route sent back to A

Comparison:

Aspect DSDV DSR ZRP
Routes maintained All nodes None Only nearby (zone)
Discovery needed Never Always Only for distant
Overhead when idle High Zero Low (zone only)
Latency to nearby Low Medium Low
Latency to distant Low High Medium
Memory usage High Low Medium

Zone Radius Selection - The Critical Choice:

Small Zone (radius=1):

  • Pros: Low proactive overhead (few nodes), low memory
  • Cons: Frequent discoveries (most destinations outside zone)
  • Best for: Sparse networks, infrequent communication

Large Zone (radius=5):

  • Pros: Most destinations in zone, fewer discoveries
  • Cons: High proactive overhead, large routing tables
  • Best for: Dense networks, frequent communication

Optimal (radius=2-3):

  • Balances both approaches for most IoT networks
  • ~10-20 nodes per zone in typical mesh

When to Use ZRP:

  • ✅ Medium to large IoT networks (100-1000 nodes)
  • ✅ Clustered topology (sensors grouped around gateways)
  • ✅ Mixed traffic patterns (frequent local, occasional distant)
  • ✅ Moderate mobility (zone structure adapts gracefully)
  • ❌ Very small networks (just use DSR)
  • ❌ Very large dense networks (zone overhead too high)

Why This Matters for IoT:

Many IoT deployments have clustered communication patterns - sensors talk frequently to nearby devices and their local gateway, but rarely to distant sensors. ZRP perfectly matches this pattern: fast local communication (proactive) + efficient distant communication (reactive) + lower overhead than pure proactive!

Deep Dives:

Protocols:

Architecture:

Comparisons:

Advanced Topics:

Learning:

99.4 Hybrid Routing: Zone Routing Protocol (ZRP)

⏱️ ~15 min | ⭐⭐⭐ Advanced | 📋 P04.C03.U01

Zone Routing Protocol (ZRP) combines proactive and reactive approaches to balance their trade-offs.

99.4.1 ZRP Concept

ZRP divides the network into zones centered on each node:

Zone Routing Protocol zone structure diagram showing node A at center with intra-zone nodes B, C, D within radius rho=2 using proactive IARP routing, and border nodes at zone edge that relay inter-zone queries via bordercast to outer network regions
Figure 99.1: Diagram showing Zone Routing Protocol zone structure with node A at center, intra-zone nodes B, C, D within radius ρ=2 using proactive routing, and…

Alternative View:

Decision tree for ZRP routing logic showing node checking if destination is within its proactive zone, then using IARP for immediate delivery, or initiating reactive IERP bordercast discovery to zone edge nodes that propagate outward until finding the destination zone
Figure 99.2: Decision tree showing ZRP routing logic. When sending data, the node first checks if the destination is within its zone (proactive IARP route available). If yes, immediate delivery. If no, initiate reactive IERP discovery via bordercast to zone edges, propagating until destination’s zone is found.
Side-by-side comparison of three routing approaches for 100-node network: DSDV maintaining all 99 routes with high overhead and zero latency, DSR maintaining no routes with low overhead but discovery delay, and ZRP balancing both with zone-based proactive routing for nearby nodes and reactive discovery for distant destinations
Figure 99.3: Alternative view: Side-by-side comparison of the three routing approaches for a 100-node network. DSDV maintains all routes (high overhead, zero latency). DSR maintains none (low overhead, discovery delay). ZRP balances both with zone-based approach (moderate overhead, low local latency).

Zone Definitions:

Intra-Zone (Proactive):
Within zone radius, maintain routes proactively using table-driven protocol (like DSDV)
Inter-Zone (Reactive):
Beyond zone, use on-demand route discovery (like DSR)
Zone Radius:
Configurable parameter ρ (rho) defining zone size in hops

ZRP zone size estimation: For a mesh network with average node degree d = 5 neighbors/node, zone size grows exponentially with radius: \(\text{Zone\_size}(\rho) \approx 1 + d \times \sum_{i=1}^{\rho} (d-1)^{i-1}\). Worked example: ρ=1 → ~5 nodes, ρ=2 → ~25 nodes, ρ=3 → ~105 nodes. For a 100-node network, ρ=3 means each node maintains proactive routes to 100+ destinations — degenerating to pure DSDV with zero hybrid benefit! Optimal is typically ρ=2-3 for IoT, covering 10-30 nodes per zone (10-30% of network).

99.4.2 ZRP Components

Block diagram showing Zone Routing Protocol three main components: IARP handling proactive intra-zone routing with periodic table updates, IERP managing reactive inter-zone route discovery via flooding, and BRP providing efficient bordercast query propagation to zone border nodes rather than full network flood
Figure 99.4: Block diagram showing Zone Routing Protocol three main components: IARP for intra-zone proactive routing, IERP for inter-zone reactive routing, and…

IARP (Intra-zone Routing Protocol):

  • Proactive protocol within zone
  • Nodes exchange periodic updates
  • Maintain routes to all nodes within ρ hops
  • Example: Modified DSDV with limited hop count

IERP (Inter-zone Routing Protocol):

  • Reactive protocol for distant nodes
  • Route requests propagated via border nodes
  • Similar to DSR but leverages zone structure

BRP (Bordercast Resolution Protocol):

  • Efficient query propagation
  • Route requests sent only to zone border nodes
  • Reduces flooding overhead

99.4.3 ZRP Operation Example

Scenario: Node A needs to communicate with Node H

Sequence diagram showing ZRP inter-zone route discovery: Node A checks local IARP table and finds destination H absent, bordercasts RREQ to border nodes B C D, border nodes check their zones and forward to their borders, eventually RREQ reaches zone containing H, and RREP returns path back to A
Figure 99.5: Sequence diagram showing ZRP inter-zone route discovery: Node A checks local IARP table, bordercasts to border nodes B C D, border nodes check thei…

Step-by-Step:

  1. Local lookup: A checks IARP table (proactive zone routes)

    • H not within zone radius
  2. Bordercast: A sends RREQ to zone border nodes (not full flood)

    • Border nodes: B, C, D
  3. Border propagation: Border nodes check their zones

    • If H not found, forward RREQ to their borders
  4. Zone overlap: Eventually RREQ reaches zone containing H

    • That zone’s node uses IARP to reach H locally
  5. Route reply: RREP sent back to source

  6. Data transmission: Source uses discovered route

Worked Example: Zone Radius Optimization for Smart Campus

Scenario: A university deploys 200 IoT sensors across a campus for environmental monitoring. Sensors communicate frequently with nearby peers (within buildings) but occasionally need to reach sensors in distant buildings.

Given:

  • 200 nodes across 5 buildings
  • Average node degree: 6 neighbors per node
  • 70% of communication is local (same building)
  • 30% of communication is cross-building (distant)
  • Battery-powered sensors (energy efficiency critical)

Steps:

  1. Estimate nodes per zone radius:
    • ρ=1: ~6 nodes (direct neighbors only)
    • ρ=2: ~6 + (6×5) = 36 nodes (accounting for overlap ~25 nodes)
    • ρ=3: ~75-100 nodes (approaching building-wide coverage)
  2. Analyze traffic patterns:
    • 70% local traffic → most destinations should be in-zone
    • Average building has 40 nodes
    • ρ=2 covers ~25 nodes (62% of building) - insufficient
    • ρ=3 covers ~75 nodes (covers full building) - matches traffic pattern
  3. Calculate overhead trade-off:
    • ρ=2: Proactive for 25 nodes, reactive for 175 (many discoveries)
    • ρ=3: Proactive for 40 nodes, reactive for 160 (fewer discoveries)
    • Cross-building: 30% traffic × reactive discovery overhead

Result: Zone radius ρ=3 is optimal because: - Covers entire buildings proactively (matches 70% local traffic) - Only cross-building communication (30%) requires reactive discovery - Proactive overhead: 40 entries (acceptable for campus sensors)

Key Insight: Match zone radius to your communication locality. If most traffic is within a certain hop range, set ρ to cover that range proactively. The campus’s building-clustered topology made ρ=3 ideal for intra-building coverage.

Worked Example: Bordercast Route Discovery Calculation

Scenario: Node A needs to send critical alarm data to Node H (fire detected). Calculate the route discovery overhead comparing ZRP bordercast versus full network flood (DSR-style).

Given:

  • Network: 100 nodes, average degree 5
  • Zone radius ρ=2
  • Node A has 4 border nodes (B, C, D, E)
  • Each border node has 3-4 external connections
  • H is 5 hops away from A

Steps:

  1. Calculate DSR-style full flood:
    • RREQ flooded to all 100 nodes
    • Each node rebroadcasts once: 100 transmissions
    • Network-wide overhead: 100 RREQ packets
  2. Calculate ZRP bordercast:
    • A sends RREQ to 4 border nodes only (not all neighbors)
    • Border nodes check their zones (4 nodes × 25 zone members = 100 lookups, but local)
    • H not found → bordercasting continues from border of border
    • Tier 1: 4 bordercasts
    • Tier 2: 4 borders × 3 external connections = 12 bordercasts
    • Tier 3: H found in zone of tier-2 border node
    • Total: 4 + 12 + local lookup = ~16 transmissions
  3. Compare overhead:
    • DSR: 100 transmissions (full flood)
    • ZRP: 16 transmissions (bordercast)
    • Savings: 84% reduction in discovery overhead

Result: ZRP discovered route to H with only 16 messages vs 100 for full flooding.

Key Insight: Bordercast efficiency comes from leveraging zone knowledge - each border node already knows its zone members proactively, so inter-zone discovery only floods between zones, not within them. The larger the zones relative to network size, the greater the savings.

99.4.4 ZRP Zone Radius Selection

The zone radius ρ critically affects performance:

Zone Radius Proactive Overhead Reactive Overhead Best Use Case
ρ = 1 Low High Sparse networks, infrequent communication
ρ = 2 Low-Medium Medium Optimal for most IoT deployments
ρ = 3 Medium Low-Medium Dense networks, frequent local traffic
ρ = 4 High Low Very dense networks
ρ = 5 Very High Very Low Static networks with heavy local traffic

Small Zone Radius (ρ=1):

  • Low proactive overhead (few nodes in zone)
  • High reactive overhead (frequent inter-zone queries)
  • Good for sparse communication

Large Zone Radius (ρ=4-5):

  • High proactive overhead (many nodes in zone)
  • Low reactive overhead (most destinations in zone)
  • Good for frequent communication

Optimal Radius:

  • Depends on network size, topology, traffic patterns
  • Typically ρ = 2-3 for IoT deployments
  • Adaptive schemes adjust ρ based on observed traffic

99.4.5 ZRP Performance Characteristics

Knowledge Check

Test your understanding of these architectural concepts.

99.5 ZRP Zone Radius Explorer

Estimate how zone radius affects proactive vs reactive overhead in ZRP:

99.6 ZRP Benefits for IoT

⏱️ ~8 min | ⭐⭐ Intermediate | 📋 P04.C03.U02

Advantages:

  • Balanced overhead: Combines benefits of proactive and reactive
  • Reduced flooding: Bordercasting more efficient than full flood
  • Low latency for nearby: Proactive routes to local nodes
  • Scalable: Reactive component handles distant nodes efficiently
  • Configurable: Adjust zone radius to optimize for specific scenarios

Disadvantages:

  • Complexity: More complex than pure proactive or reactive
  • Overhead: Still maintains proactive routes (better than DSDV, worse than DSR for sparse traffic)
  • Configuration: Optimal zone radius difficult to determine
  • Border management: Identifying and maintaining border nodes adds overhead

Best For:

  • Medium to large IoT networks (100-1000 nodes)
  • Heterogeneous traffic: frequent local, occasional distant communication
  • Cluster-based IoT topologies (sensors clustered around gateways)
  • Hierarchical networks with localized communication patterns
Cross-Hub Connections

This chapter connects to multiple learning resources:

Simulations Hub:

Videos Hub:

Quizzes Hub:

Knowledge Gaps Hub:

Common Misconception: “Larger Zone Radius is Always Better”

Misconception: Students often believe that increasing zone radius always improves ZRP performance by reducing route discovery overhead.

Reality: Zone radius selection involves critical trade-offs:

Zone Radius Too Large (ρ=5-7):

  • ❌ High proactive overhead - maintaining routes to 50-100 nodes continuously
  • ❌ Excessive update traffic - periodic routing updates flood the zone
  • ❌ Memory consumption - large routing tables on resource-constrained IoT nodes
  • ❌ Approaches pure DSDV overhead (defeats hybrid purpose)

Zone Radius Too Small (ρ=1):

  • ❌ Frequent reactive discoveries - most destinations outside zone
  • ❌ High bordercast overhead - constant route requests
  • ❌ Increased latency - must discover routes even to nearby nodes
  • ❌ Approaches pure DSR behavior (defeats hybrid purpose)

Optimal Zone Radius (ρ=2-3):

  • ✅ Balances proactive maintenance (~10-20 nodes) with reactive discovery
  • ✅ Low latency for frequent local communication (within zone)
  • ✅ Efficient discovery for occasional distant communication (reactive)
  • ✅ Matches IoT clustered communication patterns (sensors → gateway)

The Math: In a mesh network with average degree d=5: - ρ=1: ~5 nodes in zone (very reactive) - ρ=2: ~10-15 nodes in zone (balanced) ← Optimal - ρ=3: ~25-50 nodes in zone (mostly proactive) - ρ=4: ~75-125 nodes in zone (approaching DSDV overhead)

Key Insight: ZRP’s advantage comes from matching zone size to communication patterns, not maximizing zone size. Analyze your network’s traffic locality before choosing ρ!

Common Pitfalls

The optimal zone radius ρ depends on network density, mobility, and traffic pattern. Setting ρ too large causes excessive proactive overhead; ρ too small eliminates the benefit of local pre-computed routes. Use analytical models or simulation to find the optimal ρ for your specific deployment scenario.

As nodes move, the composition of each node’s routing zone changes. Nodes entering and leaving zones require updating the IARP routing tables. High mobility causes frequent zone membership changes and associated overhead — ZRP performs worst in high-mobility scenarios where zones are unstable.

ZRP’s bordercast reduces flooding by sending inter-zone route requests only to border nodes. Implementing full flooding instead of bordercast eliminates ZRP’s primary advantage over pure reactive routing. The bordercast mechanism requires identifying border nodes — nodes at exactly ρ hops from the source.

ZRP comparisons are only fair when ρ is tuned to the specific scenario. Comparing ZRP with ρ=1 (effectively pure reactive) to DSDV in a dense, low-mobility network makes ZRP appear worse than a properly configured ZRP would be. Always tune the hybrid parameter before comparing to pure alternatives.

99.8 Summary

This chapter covered ZRP (Zone Routing Protocol) as a hybrid routing approach for ad hoc networks:

  • Hybrid Architecture: ZRP combines proactive routing within local zones (IARP) and reactive discovery between distant zones (IERP) to balance overhead and latency
  • Zone-Based Design: Each node defines a routing zone with configurable radius ρ, maintaining proactive routes to all nodes within ρ hops while using on-demand discovery beyond
  • Protocol Components: IARP handles intra-zone routing using table-driven updates, IERP manages inter-zone reactive discovery, and BRP enables efficient bordercast query propagation
  • Zone Radius Selection: Critical parameter ρ determines trade-off between proactive overhead (grows with larger zones) and reactive discovery frequency (increases with smaller zones)
  • Bordercast Optimization: Route requests sent only to zone border nodes rather than full network flooding, significantly reducing discovery overhead compared to pure reactive protocols
  • Performance Characteristics: ZRP achieves low latency for nearby destinations (proactive), scalable distant communication (reactive), and reduced flooding overhead (bordercasting)
  • Optimal Configuration: Typical zone radius ρ = 2-3 hops balances proactive maintenance costs with reactive discovery needs, though optimal value depends on network size, density, and traffic patterns

99.9 What’s Next

If you want to… Read this
Review proactive routing DSDV DSDV Proactive Routing
Study reactive routing DSR DSR Fundamentals and Route Discovery
Explore DTN for disconnected networks DTN Store-Carry-Forward
Learn about ad hoc network applications Ad-Hoc Network Applications
Review all ad hoc routing protocols Ad Hoc Networks Review