Evaluate social metrics and replication trade-offs.
15.4 Chapter Roadmap
This section: Chapter Roadmap
SocialCast: Social-Based DTN Routing
Figure Summary: SocialCast Workflow
Figure Summary: Gamma Trade-off
Resource-Aware Teaching Score Calculation
Checkpoint: SocialCast Discipline
Test Your Understanding
Resource-Aware Teaching Score Explorer
SocialCast Advantages for IoT
Knowledge Check
Quiz: SocialCast Protocol
Community Mesh Routing
Case Study: Community-Managed Mesh Links
Concept Relationships
See Also
Interactive Quiz: Match Concepts
Interactive Quiz: Sequence the Steps
Common Pitfalls
Social Contacts Are Not Stable
Social Centrality Without Full Map
Social Routing Beyond Humans
Contact Tracking Privacy Risks
Label the Diagram
Code Challenge
Summary
What’s Next
Key Takeaway
15.5 SocialCast: Social-Based DTN Routing
This section: SocialCast: Social-Based DTN Routing — SocialCast extends CAR by exploiting social network structures for packet dissemination.
Time: ~15 min | Difficulty: Advanced | Unit: P04.C01.U04
Figure 15.1: SocialCast bounded-replication workflow for DTN publish-subscribe delivery
SocialCast extends CAR by exploiting social network structures for packet dissemination.
15.5.1 SocialCast Concepts
Key Insight: People with similar interests tend to be colocated periodically.
Application: Publish-subscribe in DTN
Publishers: Generate content
Subscribers: Want to receive content matching interests
Carriers: Mobile nodes whose interest-specific contact predictions help transport messages toward subscribers
This section:
Figure Summary: SocialCast Workflow
SocialCast creates a fixed number of replicas at publication time. A copy moves only when a neighbor’s interest-specific utility exceeds the current carrier’s by the configured hysteresis margin ϵ; it is delivered directly to an interested subscriber when encountered.
15.5.2 Selection Workflow: SocialCast Protocol
Message Replication Strategy:
Create gamma replicas at publisher
Forward only when the SocialCast margin is met:
Transfer a copy when the neighbor’s utility for the message’s interest exceeds the current carrier’s utility by the configured hysteresis margin ϵ; deliver directly to interested subscribers when encountered.
Carriers hold messages until:
Finding even better carrier, OR
Encountering subscriber
Replicas never increase (bounded replication)
TTL prevents infinite lifetime
Key Properties:
Bounded replicas: Only gamma copies exist (doesn’t grow like epidemic)
Selective forwarding: Only when interest-specific utility exceeds the current carrier’s by the configured hysteresis margin ϵ
Upgrade path: Replicas “climb” to better carriers over time
Subscriber participation: Subscribers with high utility can act as carriers
15.5.3 SocialCast Performance
Delivery and overhead vs replicas:
Inspect Figure 15.2 and look for the range where delivery gain begins to flatten while copy costs continue rising.
Figure 15.2: SocialCast delivery and overhead trade-off as gamma increases
Read Figure 15.2 from the first added copy to the marked gamma range. Delivery rises at first, then the gain starts to flatten near five to ten copies. Storage, contact time, and energy still rise after that point. In the illustrative trace, bounded copies give 88% to 93% delivery with 200% to 350% overhead. In that illustrative trace, epidemic spread gives 95% delivery with 800% to 1,200% overhead. Those values describe one case, not a default. Choose gamma from the delivery need and resource limits, then test whether each later copy adds a new contact path worth its cost.
This section:
Figure Summary: Gamma Trade-off
More replicas improve delivery because more carriers can discover useful contacts. The benefit flattens after roughly 5-10 replicas, while storage, bandwidth, and energy cost continue to rise.
Optimal Configuration:
gamma = 5-10 for most scenarios
In the illustrative trace, bounded replication balances 88–93% delivery with 200–350% overhead.
In the same illustrative trace, epidemic routing delivers 95% with 800–1,200% overhead.
TTL Impact:
Longer TTL values usually improve delivery in sparse networks because a copy has more time to encounter a better carrier or subscriber. The trade-off is buffer pressure: every extra hour of TTL keeps stale data in constrained devices longer.
Selection Workflow: Resource-Aware Teaching Score
Scenario: A smart city deploys sensors on delivery vehicles for air quality monitoring. Calculate which vehicle should carry pollution alerts to city hall.
Given:
Vehicle A: Delivers to suburbs, encounters city hall area 1x/week
Vehicle B: Downtown route, passes city hall 3x/day
Vehicle C: Mixed route, passes city hall 1x/day
Current carrier: Vehicle A (teaching score U_A = 0.379 after calculation)
Message: PM2.5 alert for city hall environmental office
Steps:
Calculate the resource-aware teaching score for each vehicle:
Teaching score for this resource-aware example (not SocialCast’s published utility): U(X, Dest) = alpha x normalized encounter-frequency score + beta x Freshness + gamma x Battery. SocialCast instead predicts colocation with subscribers of an interest and change in connectivity.
Freshness means freshness of each carrier’s encounter evidence.
Apply a configured forwarding margin to this teaching score:
Current: U_A = 0.379
Vehicle A encounters B: transfer only if U_B exceeds U_A by the configured margin ϵ.
Vehicle A encounters C: transfer only if U_C exceeds U_A by ϵ.
B is the stronger modeled carrier; whether to transfer to C depends on the configured margin.
Result: The resource-aware teaching score ranks B highest. A transfer decision requires the configured margin; these encounter rates do not establish delivery probability.
Key Insight: SocialCast uses interest-specific predictions of subscriber colocation and connectivity change, with a hysteresis margin to limit oscillation. This separate resource-aware teaching score ranks carriers from stated encounter-frequency, freshness, and resource inputs.
This section:
Checkpoint: SocialCast Discipline
You now know:
SocialCast creates gamma replicas once, then moves existing copies only when a neighbor’s interest-specific utility exceeds the current carrier’s by the configured hysteresis margin ϵ; it does not grow the copy count like epidemic routing.
The illustrated 5–10 replica setting aims for 88–93% delivery with 200–350% overhead in this trace, versus the illustrated epidemic 800–1,200% overhead.
Transfer a copy when the neighbor’s utility for the message’s interest exceeds the current carrier’s utility by the configured hysteresis margin ϵ; deliver directly to interested subscribers when encountered.
This section:
Test Your Understanding
15.6 Resource-Aware Teaching Score Explorer
This section: Resource-Aware Teaching Score Explorer
Adjust the weights and node parameters to see how the utility score changes:
15.7 Selection Workflow: SocialCast Advantages for IoT
This section: Selection Workflow: SocialCast Advantages for IoT
Why SocialCast Works Well:
Interest-based grouping: IoT devices often have natural clusters
Smart home devices in same household
Wearables owned by same person
Sensors monitoring same phenomenon
Predictable mobility: Many IoT devices follow patterns
Scalability: Local utility decisions scale better than global knowledge
Example IoT Applications:
Smart city: Traffic sensors publish updates, delivered to vehicles in area
Wildlife monitoring: tracking collars exchange data via high-mobility carriers
Wearable health: Health data from many users aggregated via mobile phone carriers
15.8 Knowledge Check
This section: Knowledge Check
Quiz: SocialCast Protocol
15.9 Community Mesh Routing
This section: Community Mesh Routing
Case Study: Community-Managed Mesh Links
Community Wi-Fi mesh networks are not automatically DTNs, and they are not formal SocialCast deployments. They are still useful design analogies because administrators often route content through people and links they trust to be available at predictable times.
How the analogy maps to social routing:
Utility function: local operators know which rooftop links, relays, or users are reliable.
Encounter probability: evening usage windows and scheduled maintenance create predictable contact opportunities.
Bounded replication: popular files are cached on a small number of reliable mirrors instead of copied everywhere.
Utility climbing: content moves from peripheral nodes toward better-connected local hubs before crossing weak links.
Design lesson: social routing should be treated as an engineering trade-off, not a magic replacement for connectivity. It works best when contact patterns are predictable, resources are scarce, and forwarding decisions can be made from recent local evidence. Before using SocialCast-like logic in production, collect trace data from the target environment and validate delivery, latency, energy, and privacy impact.
15.10 Related Chapters: Concept Relationships
This section: Related Chapters: Concept Relationships
Resource-aware teaching score ranks carriers using normalized encounter-frequency, mobility, and resource inputs; it is not a calibrated delivery probability.
SocialCast bounded replication creates limited copies that move when interest-specific utility exceeds the current carrier’s by the configured hysteresis margin ϵ.
Context-aware routing reduces overhead compared with epidemic flooding by forwarding selectively.
Colocation prediction uses past encounter history to estimate future contact probability.
Social network structure matters only when contact patterns are stable enough to support intelligent forwarding decisions.
Social routing relies on contact history as a predictor of future contacts. Work schedules, commuting patterns, and social behavior change over weeks and months. Routing decisions based on stale contact history (months old) may be less accurate than routing based on current network state. Implement contact history decay to weight recent contacts more heavily.
Social Centrality Without Full Map
Betweenness centrality requires global network graph knowledge — knowing all nodes and their interconnections. In a distributed DTN, this information is unavailable. Practical social routing uses local approximations (encounter counts, two-hop neighbor counts) that underestimate true centrality.
Social Routing Beyond Humans
Social routing exploits human mobility patterns (workplace, home, social events). Animal tracking, vehicle networks, or robot swarms have different mobility patterns that may not exhibit the community structure social routing exploits. Always validate that the target environment exhibits social-like contact patterns before applying social routing.
Contact Tracking Privacy Risks
Social routing requires nodes to share and track contact history. This creates detailed records of who met whom and when — personal location data. Deployments must consider privacy implications and anonymization techniques. Publishing contact graphs can reveal sensitive information about individuals’ movements.
Label the Diagram
Code Challenge
15.12 Checkpoint: Summary
This section: Checkpoint: Summary
This chapter covered context-aware and social-based DTN routing:
Context-Aware Routing (CAR) uses utility functions combining colocation, mobility, social, and resource evidence to choose carriers; in the chapter’s illustrative trace, it gives 88–93% delivery with 200–350% overhead.
Resource-Aware Teaching Score: This separate example ranks carriers using normalized encounter-frequency, mobility, and resource inputs; it is not a calibrated delivery probability
Colocation Prediction: Kalman filters use past encounter history to predict future contact probabilities, enabling “smart” forwarding
SocialCast Protocol: Creates bounded gamma replicas and transfers copies when interest-specific utility exceeds the current carrier’s by hysteresis margin ϵ, delivering directly to interested subscribers
Performance Optimization: In the illustrative trace, gamma = 5–10 copies gives 88–93% delivery with 200–350% overhead, versus 95% delivery and 800–1,200% overhead for epidemic replication.
IoT Suitability: SocialCast works well for IoT due to natural device clustering, predictable mobility patterns, resource efficiency, and local decision scalability
This section: Key Takeaway — Social routing uses repeated contact patterns, communities, or central nodes to improve DTN forwarding.
Social routing uses repeated contact patterns, communities, or central nodes to improve DTN forwarding. It only works when those patterns are real, measured, and acceptable from a privacy and governance standpoint.
15.15 Continue Your Route
This section: Continue Your Route — This is the last part of this chapter.
15.5.1 SocialCast Concepts
Key Insight: People with similar interests tend to be colocated periodically.
Application: Publish-subscribe in DTN