255  DTN Fundamentals and Store-Carry-Forward

255.1 Learning Objectives

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

  • Understand DTN Concepts: Explain Delay-Tolerant Networks and their fundamental assumptions
  • Analyze Disconnected Scenarios: Identify IoT applications where continuous connectivity is unavailable
  • Apply Store-Carry-Forward: Implement the core DTN paradigm for intermittent connectivity
  • Compare with Traditional Routing: Distinguish DTN approaches from connected ad hoc protocols

255.2 Prerequisites

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

  • Ad Hoc Routing: Proactive (DSDV): Understanding proactive routing protocols helps contextualize why traditional approaches fail in disconnected networks and how DTN fundamentally differs from table-driven routing
  • Ad Hoc Routing: Reactive (DSR): Knowledge of on-demand routing and route discovery mechanisms provides the foundation for understanding why DTN requires store-carry-forward instead of immediate path establishment
  • Ad Hoc Routing: Hybrid (ZRP): Zone-based routing concepts introduce the idea of handling disconnected network partitions, which DTN extends with mobility and opportunistic forwarding
  • Multi-Hop Fundamentals: Multi-hop networking concepts and relay node behavior are essential background for understanding how DTN leverages mobile nodes as data carriers
  • Networking Basics: Fundamental networking concepts, addressing, and packet forwarding provide the baseline understanding for how DTN modifies traditional end-to-end communication

Imagine you’re trying to send a letter in a remote village with no postal service. Traditional networks assume you can call the post office anytime. But what if there’s no phone line? Delay-Tolerant Networks (DTN) solve this by treating communication like passing physical mail through travelers.

The Problem: No Connected Path

Traditional routing (DSDV, DSR, ZRP) assumes you can find a continuous path from source to destination. But imagine these scenarios: - Wildlife tracking: Animals roam miles apart with no fixed infrastructure - Rural villages: No internet connection, only a bus that visits once per day - Disaster zones: Infrastructure destroyed, only sporadic connections

In these cases, there’s NO end-to-end path at any moment. Traditional routing fails completely.

Store-Carry-Forward: The Post Office Analogy

DTN works like sending letters via travelers: 1. Store: Write your letter and give it to a passing traveler (they store it in their bag) 2. Carry: Traveler physically moves while carrying your letter 3. Forward: When traveler meets someone heading toward your recipient, they hand off the letter

Real-World Example: DakNet in rural India: - Villages have Wi-Fi kiosks but no internet - Farmers upload questions about crop prices to kiosk - Bus with Wi-Fi drives by twice daily, collects questions - At town, bus uploads to internet gateway - Responses downloaded to bus - Bus delivers answers on return trip - Latency: 24-48 hours (acceptable for non-urgent queries)

Term Simple Explanation Everyday Analogy
DTN Network that tolerates disconnections and delays Mail delivery vs phone call
Store-Carry-Forward Save message, physically move, then send Carrying USB drive between computers

When to Use DTN:

  • Wildlife tracking (animals rarely meet)
  • Disaster recovery (infrastructure down)
  • Space networks (extreme delays)
  • Rural connectivity (intermittent access)
  • Video streaming (requires continuous connection)
  • Real-time gaming (cannot tolerate delays)

Why This Matters for IoT:

Many IoT scenarios have intermittent connectivity by nature. DTN enables communication where traditional networking simply fails - you either use DTN or have no network at all! Understanding when to tolerate delays (hours) vs requiring real-time (milliseconds) is key to choosing the right IoT architecture.

Learning Resources:

  • Simulations Hub: DTN simulators like The ONE Simulator for testing epidemic routing, spray-and-wait, and social-based protocols in realistic mobility scenarios
  • Knowledge Gaps Hub: Common DTN misconceptions including “DTN is just slow networking” and “epidemic routing wastes resources” clarifications
  • Videos Hub: Visual explanations of store-carry-forward paradigm, ZebraNet wildlife tracking, and DakNet rural connectivity case studies
  • Quizzes Hub: Self-assessment questions on DTN performance trade-offs, utility function design, and protocol selection for intermittent connectivity

Why These Matter:

DTN routing challenges traditional networking assumptions. The Simulations Hub provides hands-on tools to visualize how messages propagate through disconnected networks. Knowledge Gaps addresses the misconception that DTN is simply “broken networking” - it’s actually a deliberate architectural choice for scenarios where continuous connectivity is physically impossible (wildlife tracking, rural areas, disaster zones).

Deep Dives: - DTN Epidemic Routing - Flooding-based DTN protocols - DTN Social Routing - Context-aware and social-based routing - DTN Applications - Real-world DTN deployments

Protocols: - Ad Hoc Routing: Proactive (DSDV) - Traditional proactive routing - Ad Hoc Routing: Reactive (DSR) - Traditional reactive routing - Ad Hoc Routing: Hybrid (ZRP) - Zone-based routing - Multi-Hop Fundamentals - Multi-hop communication

Architecture: - Wireless Sensor Networks - WSN in sparse deployments - UAV Networks - Aerial DTN applications

Learning: - Simulations Hub - DTN simulators

The Misconception:

Many students think DTN is simply traditional networking with high latency - like a slow internet connection. They assume DTN protocols are inefficient versions of TCP/IP that could be “fixed” with better routing algorithms.

The Reality:

DTN fundamentally differs from traditional networking in its assumptions about connectivity:

Traditional Networks (TCP/IP): - Assumption: End-to-end path exists when communication starts - Failure mode: Packets dropped if path breaks during transmission - Retransmission: Source resends if ACK not received (assumes path will reconnect) - Use case: Internet, LANs, cellular networks with continuous infrastructure

Delay-Tolerant Networks: - Assumption: No end-to-end path exists at any single moment - Acceptance: Disconnection is normal, not a failure condition - Store-carry-forward: Nodes physically transport data between disconnected regions - Use case: Wildlife tracking (animals 10km apart), rural areas (no infrastructure), disaster zones (damaged infrastructure)

Concrete Example:

ZebraNet wildlife tracking cannot use traditional TCP/IP because: - Zebras roam 5-20km apart (beyond radio range) - No cellular towers in remote African savanna - Battery budget: 3 years of operation - Data collection: GPS positions every hour

Why TCP/IP fails: Attempting TCP connection from Zebra A to base station fails immediately - no routing path exists. TCP gives up and reports “network unreachable.”

Why DTN works: Zebra A stores GPS data locally. When Zebra B passes within 100m (days later), they exchange buffered data. Zebra B later encounters Zebra C near watering hole base station. Data reaches researchers after 3-7 day delay, which is acceptable for migration studies.

Key Insight:

DTN isn’t “slow networking” - it’s intermittent connectivity networking. Latency isn’t a bug; it’s the price of operation where infrastructure doesn’t exist. The alternative isn’t “faster DTN” - it’s no communication at all.

When to Use: - No infrastructure possible (wildlife, disaster, space) - Communication can tolerate hours/days delay - Mobile nodes can carry data physically - Real-time requirements (video streaming, gaming) - Infrastructure available (use Wi-Fi/cellular instead)

255.3 Disconnected Ad Hoc Networks

⏱️ ~10 min | ⭐⭐ Intermediate | 📋 P04.C01.U01

Side-by-side comparison of connected ad hoc network with continuous paths between all nodes versus disconnected network showing isolated island partitions where no routing paths exist between separate groups of nodes
Figure 255.1: Connected vs disconnected ad hoc networks showing intermittent connectivity challenges

Traditional routing protocols (DSDV, DSR, ZRP) assume a connected path exists between source and destination. This assumption fails in many IoT scenarios.

255.3.1 Connected vs Disconnected Networks

%% fig-alt: "Comparison of connected versus disconnected ad hoc networks showing connected network with four nodes having complete routing paths between all nodes, while disconnected network shows isolated node groups with broken paths and no connectivity between partitions"
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#2C3E50', 'primaryTextColor': '#fff', 'primaryBorderColor': '#16A085', 'lineColor': '#16A085', 'secondaryColor': '#E67E22', 'tertiaryColor': '#7F8C8D', 'fontSize': '16px'}}}%%
graph LR
    subgraph Connected["Connected Network"]
        A1[Node A] ---|Path Exists| B1[Node B]
        B1 --- C1[Node C]
        C1 --- D1[Node D]
        A1 --- D1
    end

    subgraph Disconnected["Disconnected Network"]
        A2[Node A] -.->|No Path| B2[Node B]
        C2[Node C] --- D2[Node D]
        E2[Node E]
        A2 -.->|Broken| C2
    end

    style A1 fill:#2C3E50,stroke:#16A085,color:#fff
    style B1 fill:#2C3E50,stroke:#16A085,color:#fff
    style C1 fill:#2C3E50,stroke:#16A085,color:#fff
    style D1 fill:#2C3E50,stroke:#16A085,color:#fff
    style A2 fill:#E67E22,stroke:#16A085,color:#fff
    style B2 fill:#E67E22,stroke:#16A085,color:#fff
    style C2 fill:#E67E22,stroke:#16A085,color:#fff
    style D2 fill:#E67E22,stroke:#16A085,color:#fff
    style E2 fill:#E67E22,stroke:#16A085,color:#fff

Figure 255.2: Comparison of connected versus disconnected ad hoc networks showing connectivity differences

Alternative View:

%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#2C3E50', 'primaryTextColor': '#fff', 'primaryBorderColor': '#16A085', 'lineColor': '#16A085', 'secondaryColor': '#E67E22', 'tertiaryColor': '#7F8C8D'}}}%%
sequenceDiagram
    participant SRC as Source<br/>Node
    participant C1 as Carrier 1<br/>(Mobile)
    participant C2 as Carrier 2<br/>(Mobile)
    participant DST as Destination<br/>Node

    Note over SRC,DST: Day 1: Source creates message

    SRC->>SRC: STORE: Buffer message locally
    Note over SRC: No path to destination exists

    Note over SRC,DST: Day 2: First contact opportunity

    SRC->>C1: FORWARD on contact
    Note over C1: Carrier 1 now holds message
    C1->>C1: CARRY while moving

    Note over SRC,DST: Day 3: Carrier moves through network

    C1->>C2: FORWARD to better carrier
    Note over C2: Higher utility for destination
    C2->>C2: CARRY toward destination

    Note over SRC,DST: Day 4-5: Eventual delivery

    C2->>DST: DELIVER on encounter
    Note over DST: Message received!<br/>Latency: 4-5 days (acceptable)

Figure 255.3: Timeline showing store-carry-forward operation across multiple days. Unlike traditional routing that fails immediately on disconnection, DTN tolerates days of delay by storing messages locally, forwarding on opportunistic contacts, and eventually delivering when carriers encounter the destination.

%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#2C3E50', 'primaryTextColor': '#fff', 'primaryBorderColor': '#16A085', 'lineColor': '#16A085', 'secondaryColor': '#E67E22', 'tertiaryColor': '#7F8C8D'}}}%%
graph TB
    subgraph Traditional["TRADITIONAL ROUTING (TCP/IP)"]
        T_ASSUME[Assumption:<br/>Path exists NOW]
        T_DISC[Route Discovery<br/>Find connected path]
        T_SEND[Send Packets<br/>Hop-by-hop forward]
        T_FAIL[Path Breaks?<br/>DROP PACKETS]

        T_ASSUME --> T_DISC
        T_DISC --> T_SEND
        T_SEND --> T_FAIL

        T_RESULT[Result: Fails in<br/>disconnected networks]
    end

    subgraph DTN["DELAY-TOLERANT NETWORKING"]
        D_ASSUME[Assumption:<br/>NO path exists]
        D_STORE[Store:<br/>Buffer in memory]
        D_CARRY[Carry:<br/>Physical movement]
        D_FORWARD[Forward:<br/>On contact]
        D_DELIVER[Eventual Delivery<br/>Hours to days later]

        D_ASSUME --> D_STORE
        D_STORE --> D_CARRY
        D_CARRY --> D_FORWARD
        D_FORWARD -->|Contact| D_DELIVER
        D_FORWARD -->|No contact| D_CARRY

        D_RESULT[Result: Works across<br/>disconnected partitions]
    end

    style T_FAIL fill:#E74C3C,color:#fff
    style T_RESULT fill:#E74C3C,color:#fff
    style D_DELIVER fill:#16A085,color:#fff
    style D_RESULT fill:#16A085,color:#fff
    style Traditional fill:#7F8C8D,color:#fff
    style DTN fill:#2C3E50,color:#fff

Figure 255.4: Alternative view: Side-by-side comparison of traditional routing versus DTN paradigm. Traditional assumes connected paths exist, fails on disconnection. DTN assumes NO path exists, uses store-carry-forward for eventual delivery. This fundamental difference makes DTN suitable for wildlife tracking, disaster zones, and rural connectivity where infrastructure is impossible.

Disconnected Network Causes:

  1. Sparse node density: Nodes too far apart for single-connected component
  2. Node mobility: Moving nodes create temporary islands
  3. Sleep scheduling: Duty-cycling creates temporal disconnections
  4. Harsh environment: Obstacles, terrain block connections
  5. Failure: Node/link failures partition network

Traditional Protocols Fail: - DSDV: Can’t maintain routes across partitions - DSR: Route discovery fails if no connected path - Packets dropped at partition boundaries

255.3.2 Delay-Tolerant Networks (DTN)

Delay-Tolerant Networks enable communication across disconnected networks using store-carry-forward paradigm.

TipStore-Carry-Forward Principle
DTN store-carry-forward protocol diagram showing three phases: node stores packet in buffer, physically moves while carrying data, and forwards packet upon encountering destination or relay, enabling communication across disconnected networks
Figure 255.5: Store-carry-forward protocol description for delay-tolerant networking

Geometric visualization of Delay-Tolerant Network architecture showing multiple disconnected network islands with mobile nodes acting as data mules carrying messages between partitions, bundle protocol layer providing store-and-forward capability above traditional transport layers, and custody transfer mechanisms ensuring reliable delivery across intermittent connections

DTN architecture visualization
Figure 255.6: The DTN architecture introduces a new networking paradigm where disconnection is the norm rather than an exception. The Bundle Protocol operates above transport layers, treating messages as self-contained bundles that can survive arbitrary delays and disruptions. This architecture enables communication in environments where traditional end-to-end connectivity is impossible, from deep space missions to wildlife tracking in remote areas.

Geometric diagram illustrating DTN store-and-forward mechanism with source node creating a bundle, intermediate nodes storing bundles in persistent storage while waiting for forwarding opportunities, custody transfers between nodes ensuring reliability, and eventual delivery to destination after multiple hops across disconnected network segments

DTN store-and-forward mechanism
Figure 255.7: The store-and-forward mechanism is the heart of DTN operation. Unlike TCP which expects immediate acknowledgments, DTN bundles can be stored for hours, days, or even weeks at intermediate nodes. Custody transfer ensures that each node takes responsibility for the bundle until successfully passed to the next hop, providing reliability guarantees even across intermittent connections.
Store:
Intermediate nodes buffer packets (store in local memory)
Carry:
Mobile nodes physically transport packets while moving
Forward:
When encountering new nodes, forward buffered packets

Key Difference from Traditional: - Traditional: Immediate hop-by-hop forwarding - DTN: Opportunistic forwarding when contact opportunities arise - Tolerates disconnections by accepting storage delays

%% fig-alt: "Store-carry-forward sequence diagram showing DTN message flow from source node buffering packet, forwarding to carrier 1 upon contact, carrier 1 moving while buffering and transferring to carrier 2, carrier 2 transporting toward destination, and final delivery upon encounter with destination node"
%%{init: {'theme': 'base', 'themeVariables': { 'primaryColor': '#2C3E50', 'primaryTextColor': '#fff', 'primaryBorderColor': '#16A085', 'lineColor': '#16A085', 'secondaryColor': '#E67E22', 'tertiaryColor': '#7F8C8D', 'fontSize': '16px'}}}%%
sequenceDiagram
    participant S as Source Node
    participant C1 as Carrier 1
    participant C2 as Carrier 2
    participant D as Destination

    Note over S: Store: Buffer packet
    S->>C1: Forward when contact
    Note over C1: Carry: Move while buffering
    C1->>C2: Forward to better carrier
    Note over C2: Carry: Transport toward dest
    C2->>D: Deliver upon encounter
    Note over D: Success after delay

    rect rgb(22, 160, 133, 0.1)
        Note right of S: Store-Carry-Forward enables<br/>communication across<br/>disconnected networks
    end

Figure 255.8: Store-carry-forward sequence diagram showing DTN message flow from source node buffering packet, forwarding to carrier 1 upon contact, carrier 1 moving while buffering and transferring to carrier 2, carrier 2 transporting toward destination, and final delivery upon encounter with destination node.

DTN Application Scenarios:

  1. Wildlife tracking: Animals carry sensors, transfer data when near base stations
  2. Vehicular networks: Cars carry messages between disconnected road segments
  3. Rural IoT: Mobile collectors (buses, delivery vehicles) gather sensor data
  4. Disaster recovery: Intermittent connectivity due to infrastructure damage
  5. Space networks: Planetary exploration with extreme propagation delays

255.4 Knowledge Check

Test your understanding of DTN fundamentals.

Question: For battery-constrained IoT sensors, what is the primary disadvantage of acting as a relay node in multi-hop networks?

Explanation: Energy consumption: Transmitting own 100-byte packet once/minute = 100 packets/day. As relay: Forwarding 10 neighbors’ packets = 1000 additional packets/day (10x energy). Radio energy: ~100mW transmit, ~50mW receive, ~0.01mW sleep. Relay nodes rarely sleep, draining battery 100x faster. Hotspot problem: Nodes near sink/gateway relay all traffic, die first, causing network partition. Solutions: 1) Rotation - alternate relay duty among neighbors, 2) Load balancing - distribute traffic across multiple paths, 3) Energy-aware routing - avoid low-battery nodes, 4) Clustering - dedicated relay nodes with larger batteries. This is why many WSN deployments use heterogeneous nodes (battery-powered sensors + mains-powered relays).

255.5 Summary

This chapter introduced the fundamentals of Delay-Tolerant Networks:

  • Disconnected Networks: Traditional routing protocols (DSDV, DSR, ZRP) fail when no continuous path exists between source and destination, which occurs in sparse deployments, high mobility, sleep scheduling, and harsh environments
  • DTN Paradigm: Unlike traditional networking that assumes connectivity, DTN assumes disconnection is normal and designs around it using store-carry-forward
  • Store-Carry-Forward: The core DTN mechanism where nodes buffer packets locally (store), physically transport them while mobile (carry), and transfer them opportunistically when encountering other nodes (forward)
  • Key Distinction: DTN isn’t “slow networking” - it’s intermittent connectivity networking where latency is the accepted price of operation in infrastructure-less environments
  • Application Scenarios: Wildlife tracking, vehicular networks, rural IoT, disaster recovery, and space communications all benefit from DTN’s tolerance of disconnection

255.6 What’s Next

The next chapter explores DTN Epidemic Routing, covering flooding-based protocols that replicate messages to achieve high delivery ratios, along with optimization strategies like Spray-and-Wait and buffer management techniques.