100  Ad Hoc DTN and Social Routing

In 60 Seconds

Delay-Tolerant Networks enable communication where no continuous end-to-end path exists, using store-carry-forward instead of traditional routing. DTN suits applications tolerating minutes-to-days delay (wildlife tracking, rural connectivity), while social routing leverages human mobility patterns to improve delivery ratios above 80%.

100.1 Learning Objectives

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

  • Justify DTN adoption: Explain when and why Delay-Tolerant Networks are needed over traditional routing
  • Compare routing strategies: Evaluate epidemic, context-aware, and social routing trade-offs quantitatively
  • Apply store-carry-forward: Demonstrate how DTN nodes buffer, transport, and relay messages opportunistically
  • Design DTN-based solutions: Select the right DTN routing strategy for real-world IoT scenarios
  • Assess DTN performance: Calculate delivery ratios, overhead, and latency for different routing approaches
Minimum Viable Understanding
  • DTN solves disconnected networking: When no continuous end-to-end path exists (wildlife tracking, rural areas, disaster zones), DTN uses a store-carry-forward paradigm where nodes physically carry data until they encounter the next relay.
  • Three routing strategies trade off delivery vs. overhead: Epidemic routing floods messages for ~95% delivery but 1000% overhead; context-aware and social routing achieve ~88% delivery with only 200% overhead by forwarding selectively.
  • Social routing exploits predictable human/animal patterns: Rather than flooding or random forwarding, SocialCast and PRoPHET use encounter history, colocation probability, and mobility patterns to choose the best carriers.

Sammy the Sensor is stuck on a remote island with no phone signal. He needs to get a weather report to Lila the LED on the mainland. There is no bridge, no cable, and no Wi-Fi.

“How do I send my message?” Sammy asks.

Max the Microcontroller has an idea: “Put your message in a bottle and throw it in the ocean! Passing ships will pick it up and carry it. When a ship gets close to the mainland, it hands the bottle to another ship heading that way.”

This is exactly how Delay-Tolerant Networks work:

  • Store – Sammy puts the message in a bottle (the node saves the data)
  • Carry – A ship picks it up and sails with it (the node physically moves)
  • Forward – When the ship meets another going toward Lila, it passes the bottle along

Bella the Buzzer adds: “But what if we throw hundreds of bottles? That is wasteful! Instead, let us only give the bottle to ships that we KNOW visit the mainland regularly. The fishing boat goes there every Tuesday!”

That is the difference between epidemic routing (throw bottles everywhere) and social routing (give the bottle to the fishing boat that regularly visits the destination). Social routing is smarter and wastes less energy.

Most networks assume you can always find a path from sender to receiver, like making a phone call where both phones must be connected at the same time. But what happens when there is no continuous connection?

Delay-Tolerant Networks (DTN) handle exactly this problem. Think of it like the postal system before trains existed: you give your letter to a traveler heading in the right direction, and they physically carry it. Along the way, they might hand it to someone going even closer to the destination.

When do we need DTN?

  • A sensor on a wild animal that only encounters a base station once a week
  • Rural villages where a bus with Wi-Fi visits once daily
  • A disaster zone where cell towers are destroyed
  • Deep space communication with minutes or hours of signal delay

Three ways DTN routes messages:

Strategy How It Works Analogy
Epidemic Give a copy to everyone you meet Telling gossip to everyone at a party
Context-Aware Give to people likely heading the right direction Asking a bus driver going downtown
Social Give to people who regularly see the recipient Asking a coworker who sits near the recipient

Key takeaway: DTN trades speed for reliability. Your message might take hours or days, but it will arrive even when no real-time connection exists.

Chapter Series

This topic is covered in four focused chapters:

  1. DTN Fundamentals and Store-Carry-Forward - Core DTN concepts, disconnected network challenges, and the store-carry-forward paradigm
  2. DTN Epidemic Routing - Flooding-based protocols, buffer management, and Spray-and-Wait optimization
  3. DTN Social Routing - Context-aware routing, utility functions, and SocialCast protocol
  4. DTN Applications - Real-world deployments including wildlife tracking, rural connectivity, and hybrid architectures

100.2 Learning Path

Start here if you’re new to DTN:

Sequential learning path diagram showing four steps: start with DTN Fundamentals and Store-Carry-Forward, then Epidemic Routing flooding-based protocols, then Social Routing context-aware forwarding, and finally DTN Applications real-world deployments with arrows indicating progression
Figure 100.1: DTN learning path from fundamentals through epidemic routing, social routing, and applications

100.3 DTN Architecture Overview

The following diagram illustrates how DTN fits into the broader ad hoc routing landscape and where each routing strategy applies.

Flowchart showing ad hoc routing taxonomy split into connected networks using DSDV, DSR, and ZRP versus disconnected networks requiring DTN with epidemic, context-aware, and social routing strategies and their delivery-to-overhead ratios
Figure 100.2: DTN architecture overview showing routing taxonomy for connected and disconnected ad hoc networks

100.4 Quick Reference

Chapter Key Topics Difficulty
DTN Fundamentals Store-carry-forward, disconnected networks, DTN vs TCP/IP Intermediate
Epidemic Routing Message flooding, TTL, buffer management, Spray-and-Wait Intermediate
Social Routing Utility functions, SocialCast, bounded replication Advanced
Applications DakNet, ZebraNet, hybrid architectures, disaster recovery Intermediate

100.5 Prerequisites

Before starting this series, you should be familiar with:

100.6 Key Concepts Preview

Delay-Tolerant Networks address scenarios where:

  • No continuous end-to-end path exists
  • Nodes are mobile and encounters are opportunistic
  • Latency tolerance ranges from minutes to days
  • Traditional routing protocols fail completely

100.6.1 Store-Carry-Forward Paradigm

The fundamental mechanism of DTN is the store-carry-forward paradigm, which replaces the traditional assumption of an always-available path.

Sequence diagram showing DTN store-carry-forward process where source buffers a message, carrier 1 physically transports it, transfers to carrier 2 on opportunistic encounter, and carrier 2 delivers to destination with total latency of minutes to days

100.6.2 Core DTN Mechanisms

  • Store: Buffer packets in local memory
  • Carry: Physically transport packets while moving
  • Forward: Transfer packets on opportunistic contacts

100.6.3 Routing Strategy Comparison

Comparison chart of three DTN routing strategies showing epidemic routing with 95 percent delivery and 1000 percent overhead versus context-aware and social routing both achieving 88 percent delivery with only 200 percent overhead

100.6.4 When to Use Each Strategy

Decision tree for selecting a DTN routing strategy starting with whether a continuous path exists then branching based on delivery ratio requirements and whether node movement patterns are predictable leading to epidemic context-aware or social routing

100.7 Worked Example: Wildlife Tracking in a National Park

Scenario: A national park deploys 200 sensor collars on elephants to track their movement, health, and proximity to park boundaries. The park has 5 base stations, but elephants roam across 10,000 km2 and are rarely within range of any base station. Rangers also carry mobile receivers.

Challenge: How should sensor data (GPS coordinates, temperature, activity level) be delivered from elephant collars to the central monitoring system?

Step 1: Assess Connectivity

  • Elephants encounter base stations: ~once every 3-7 days
  • Elephants encounter each other: ~2-5 times per day at watering holes
  • Rangers encounter elephants: ~1-3 times per day on patrols
  • Conclusion: No continuous path exists – DTN is required

Step 2: Select Routing Strategy

  • Data is not time-critical (daily updates are sufficient)
  • Elephants have predictable patterns (watering holes at dawn/dusk, migration corridors)
  • Buffer space on collars is limited (512 KB)
  • Battery must last 2 years

Analysis of options:

Strategy Delivery Overhead Battery Impact Buffer Use
Epidemic ~95% ~1000% Very high (floods to all encounters) Exceeds 512 KB
Context-Aware ~88% ~200% Moderate Fits in 512 KB
Social (PRoPHET) ~88% ~200% Low (selective forwarding) Fits in 512 KB

DTN routing strategy directly impacts resource consumption. Using overhead ratio \(\eta = \frac{total\_messages}{original\_messages}\), Worked example: 200 elephant collars, 10KB/day, 5 encounters/day. Epidemic: replicate to all encounters → \(\eta \approx 10\) (1000% overhead). Buffer: \(10KB \times 7\,days \times 10\,copies = 700KB\) (exceeds 512 KB!). Social routing: forward only to higher-probability nodes → \(\eta \approx 2\) (200%). Buffer: \(10 \times 7 \times 2 = 140KB\) (fits). Battery: Epidemic TX \(= 5\,encounters \times 10KB \times 8\,bits / 250\,kbps = 1.6s/day\). Social TX \(= 0.8s/day\) (2 effective encounters). Over 2 years, epidemic uses 2× more radio-on time, and the 5× higher message overhead (\(\eta = 10\) vs \(\eta = 2\)) drives proportionally higher buffer wear and processing load.

Step 3: Design the Solution

Selected approach: Social routing using PRoPHET with encounter history.

  1. Encounter tracking: Each collar maintains a delivery probability table for known nodes
  2. Forwarding rule: Forward data only to nodes with higher delivery probability to any base station
  3. Probability update: When elephant A encounters base station B, A’s probability for B increases. When A meets elephant C, C’s probability for B also increases (transitivity)
  4. Buffer management: FIFO eviction with priority for boundary-alert messages

Step 4: Expected Performance

  • Delivery ratio: ~88% of sensor readings reach the monitoring system
  • Average latency: 2-4 days (acceptable for non-emergency tracking)
  • Buffer usage: ~300 KB average (within 512 KB limit)
  • Battery savings: ~2x less radio-on time vs. epidemic routing (5x fewer message copies reduces buffer wear and processing overhead), extending collar life to 2+ years
  • Emergency alerts (boundary crossings): Sent via epidemic routing for maximum delivery guarantee

Key Insight: The hybrid approach uses social routing for routine data and epidemic routing for critical alerts, balancing resource efficiency with delivery guarantees.

Common Pitfalls in DTN Design
  1. Assuming traditional routing will work: Many IoT deployments start with TCP/IP assumptions. If nodes are mobile and connectivity is intermittent, your protocol stack needs DTN support from the beginning – retrofitting is extremely difficult.

  2. Choosing epidemic routing by default: Epidemic routing has the highest delivery ratio, but its resource cost is often unsustainable for battery-powered IoT devices. Always evaluate whether 88% delivery with social routing suffices before accepting 5x more overhead.

  3. Ignoring buffer limits: DTN nodes must store messages for extended periods. If buffer size is not planned for worst-case scenarios (e.g., a node goes days without encountering a relay), messages will be silently dropped.

  4. Underestimating latency requirements: DTN latency is measured in hours or days, not milliseconds. If your application truly needs real-time data (alarms, control signals), DTN is the wrong approach – consider hybrid architectures with cellular fallback.

  5. Neglecting encounter pattern analysis: Social routing is only effective when movement patterns are predictable. Deploying PRoPHET in scenarios with truly random mobility (e.g., ocean buoys in chaotic currents) yields no benefit over epidemic routing.

  6. Forgetting message TTL: Without time-to-live settings, stale messages circulate indefinitely, wasting buffer space and energy. Always set appropriate TTL values based on data freshness requirements.

100.8 DTN Routing Strategy Calculator

Use this calculator to estimate buffer requirements and radio overhead for different DTN routing strategies based on your scenario parameters.

100.9 Knowledge Checks

Test your understanding of DTN and social routing concepts before diving into the detailed chapters.

## Worked Example: DakNet vs Cellular – Rural Connectivity Cost Comparison {#dtn-daknet-cost}

Worked Example: Connecting 40 Villages in Rural India

Scenario: A state government in Rajasthan wants internet connectivity for 40 villages within 80 km of a district headquarters. Each village has a community center needing daily email, government form submissions, and crop price updates. Two approaches are evaluated.

Option A – DakNet (DTN bus relay):

A Wi-Fi access point ($120) at each village community center. A ruggedized laptop ($400) serves as the local kiosk. A bus-mounted relay ($800, including UPS and directional antenna) automatically exchanges data when passing through each village. Three buses cover 40 villages on existing routes.

Cost Item Amount
40 village APs $4,800
40 kiosk laptops $16,000
3 bus-mounted relays $2,400
Hub server at district HQ $3,000
Installation and training $8,000
Year 1 total $34,200
Annual operating (power, maintenance) $6,000/year

Latency: Data reaches the district hub within 4-8 hours (depends on bus schedule). Return data arrives on the next bus pass, typically within 12-24 hours for a round trip.

Option B – Cellular (4G towers):

Each village needs a cellular base station or signal booster within range. The closest existing tower is 15-25 km from most villages.

Cost Item Amount
8 micro-cell towers (covering 5 villages each) $320,000
Backhaul fiber/microwave links $160,000
Site acquisition and permits $40,000
Installation $80,000
Year 1 total $600,000
Annual operating (power, lease, maintenance) $96,000/year

Latency: Real-time (< 100 ms). Always-on connectivity for voice, video, and data.

Decision matrix:

Factor DakNet (DTN) Cellular Winner
Year 1 cost $34,200 $600,000 DakNet (17x cheaper)
5-year TCO $58,200 $984,000 DakNet (17x cheaper)
Latency 4-24 hours < 100 ms Cellular
Bandwidth per session 10-50 MB (batch transfer during bus pass) Unlimited (continuous) Cellular
Reliability Depends on bus schedule (rain delays, breakdowns) 99.5% uptime Cellular
Maintenance complexity Low (village-level equipment is simple) High (tower maintenance requires specialists) DakNet
Scalability to new villages $520/village (AP + laptop) $75,000/village (new tower or extension) DakNet
Real-time applications Impossible (email, forms only) Full (voice, video, browsing) Cellular

Rajasthan’s decision: Deploy DakNet immediately for $34,200 to provide basic connectivity within 3 months. Plan cellular deployment over 3-5 years as government budget allows. When cellular arrives, repurpose DakNet kiosks as community computer centers.

Key Insight: DTN is not a permanent replacement for real-time connectivity – it is a bridge technology that delivers 80% of the value at 6% of the cost. The 40 villages gained access to government services, crop prices, and email within 90 days instead of waiting 3-5 years for cellular infrastructure. For non-real-time applications (which represent the majority of rural communication needs), the 4-24 hour delay is acceptable when the alternative is no connectivity at all.

100.10 Concept Relationships

Concept Relationship Connected Concept
DTN Store-Carry-Forward Enables communication across Disconnected Network Partitions
Epidemic Routing Trades delivery reliability for Resource Consumption (5× overhead)
Social Routing Exploits predictable patterns achieving 88% Delivery with 200% Overhead
Hybrid Architectures Combine traditional infrastructure with DTN for Coverage Gaps
Buffer Management Prevents resource exhaustion during Extended Storage Periods

100.11 See Also

100.12 Summary

Delay-Tolerant Networks represent a fundamental paradigm shift in how we think about IoT communication:

Aspect Traditional Routing DTN Routing
Connectivity Continuous path required Works with no end-to-end path
Latency Milliseconds to seconds Minutes to days
Mechanism Store-and-forward (brief) Store-carry-forward (extended)
Node role Stationary relays Mobile data carriers
Best for Connected infrastructure Remote, mobile, intermittent scenarios

Key takeaways from this series:

  1. DTN enables IoT where traditional networking cannot – wildlife tracking, rural connectivity, disaster recovery, and space networks all depend on tolerating disconnections
  2. Routing strategy selection matters enormously – epidemic routing wastes 5x more resources than social routing for only 7% higher delivery ratio
  3. Social patterns are powerful – when node movement is predictable, encounter-based routing achieves near-epidemic delivery with dramatically lower overhead
  4. Hybrid approaches work best in practice – combining social routing for routine data with epidemic routing for critical alerts gives the best balance of efficiency and reliability
  5. Buffer management is a first-class design concern – unlike traditional networks, DTN nodes may hold messages for days, making buffer sizing and eviction policies critical

100.13 What’s Next

If you want to… Read this
Understand DTN fundamentals and store-carry-forward DTN Fundamentals
Study epidemic routing and flooding strategies Epidemic Routing
Explore social and community-based routing Social Routing
Apply DTN to real-world IoT scenarios DTN Applications
Review all ad hoc networking concepts Ad Hoc Networks Review