387  WSN Review: Scenario Analysis

387.1 Learning Objectives

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

  • Analyze Energy Trade-offs: Calculate battery life under different deployment strategies
  • Evaluate Architectural Choices: Compare mesh vs. star topologies with quantified outcomes
  • Apply Real-World Wisdom: Use case study insights for deployment decisions
  • Optimize Aggregation: Select appropriate aggregation functions for different applications

387.2 Prerequisites

Required Chapters: - WSN Review: Architecture and Design - Architecture concepts - WSN Review: Knowledge Checks - Core understanding validation

Estimated Time: 20 minutes

WSN Review Series: - WSN Overview Review (Index) - Series overview - WSN Review: Architecture and Design - Architecture concepts - WSN Review: Knowledge Checks - Quick assessment questions - WSN Review: Comprehensive Assessment - Advanced topics and summary

Energy Management: - Context Aware Energy Management - Energy optimization - Duty Cycling and Topology - Sleep scheduling

387.3 Scenario Analysis: WSN Design Decisions

The following scenarios provide detailed quantified analysis of WSN design decisions. Each scenario presents competing approaches with real-world numbers to guide your understanding.

Scenario: An agricultural WSN monitors soil moisture with 100 sensor nodes. Each node has a 2000 mAh battery, radio consuming 15 mA (idle listening) and 20 mA (transmitting). Nodes transmit 1% of the time.

Your agricultural co-op debates two deployment strategies:

Option A (Always-On Radio): - Radio always listening: 15 mA continuous - Transmit 1% time: additional 5 mA average - Total: ~15 mA average - Cost: $50/node battery replacement visit - Battery life: 2000 mAh / 15 mA = 133 hours = 5.5 days

Option B (Duty-Cycled with S-MAC): - Sleep 99% time: 1 µA average - Wake & transmit 1% time: 20 mA for brief periods - Total: ~0.2 mA average - Cost: Same hardware, firmware upgrade - Battery life: 2000 mAh / 0.2 mA = 416 days

Think about: 1. Operational cost: Option A requires 75 battery swaps/year x $50 = $375K vs. Option B’s 1 swap/year x $50 = $5K 2. Reliability: Which fails first during peak season when access is difficult? 3. The hidden cost: Why does idle listening (15 mA) almost match active transmission (20 mA)?

Key Insight: Idle listening is the silent killer of WSN deployments. Many developers focus on reducing transmission time (already 1%!) while ignoring the radio consuming 15 mA continuously just waiting to receive. The 75x lifetime difference comes from sleep mode optimization, not transmission optimization.

Real-world wisdom: “Always-on radios turn month-long deployments into week-long failures. Sleep scheduling isn’t optional—it’s the difference between viable and impossible.”

Scenario: A forest fire detection system deploys 100 sensor nodes across 10 km² of wilderness. All sensor data must reach a single gateway with satellite uplink. After 3 months, the system fails when nodes within 200m of the gateway die from battery exhaustion, creating a “coverage hole” that isolates the outer 70 sensors.

Architecture A (Single Sink): - 30 nodes near sink relay for all 70 outer nodes - Each hotspot node forwards ~2,333 packets/day (70 nodes x 1 report/hour x 24h / 30 relays) - Energy: 2,333 transmissions/day x 0.1s x 20mA = 1.3 Ah/day - Battery life: 2000 mAh / 1.3 Ah = 1.5 months - Edge nodes (no relay burden): 12+ months battery life - Network failure: 3 months when hotspot zone creates isolation

Architecture B (Three Distributed Sinks): - Each sink services ~33 nodes - Hotspot nodes relay for ~23 outer nodes each - Relay burden: ~767 packets/day per node - Energy: 767 transmissions/day x 0.1s x 20mA = 0.43 Ah/day - Battery life: 2000 mAh / 0.43 Ah = 4.7 months - Network lifetime: 2+ years with biannual battery replacement

Think about: 1. Cost analysis: Single sink requires 3-month battery replacement vs. three sinks with 5-month cycles. Labor cost: $200/visit x 100 nodes x 4 visits/year = $80K vs. $48K 2. Coverage reliability: What happens when a single hotspot node fails in Architecture A vs. B? 3. Why unequal load? The physics of multi-hop networking means inner nodes relay everyone’s traffic, not just their own

Key Insight: The hotspot problem is a fundamental consequence of many-to-one traffic patterns in multi-hop networks. You cannot solve it with better batteries or protocols—you must distribute the traffic load architecturally. Three sinks reduce each hotspot’s relay burden by 66%, directly multiplying lifetime.

Real-world wisdom: “The hotspot problem killed more WSN deployments than all other issues combined. If you have one sink and multi-hop routing, you have a ticking time bomb.”

Scenario: A smart vineyard needs 200 sensor nodes across 1 km² to monitor microclimates for precision irrigation. The engineering team debates two topologies:

Topology A (Full Mesh with AODV Routing): - Every node discovers routes to all 199 neighbors - Routing table: 199 entries x 16 bytes = 3,184 bytes RAM per node - Route discovery: Broadcast RREQ floods network (200 nodes x 64 bytes = 12.8 KB airtime) - Route maintenance: Each link failure triggers new discovery - Relay burden: Node must forward packets for ~10 neighbors on average - Energy per day: Routing overhead (50 mA x 10s) + relay traffic (20 mA x 120s) + sensing (20 mA x 10s) = 3.3 Ah/day - Battery life: 2000 mAh / 3.3 Ah = 0.6 days (14 hours!) - Node cost: $45 (needs 4KB RAM for routing)

Topology B (Clustered Star with 10 Gateways): - 20 sensors per cluster communicate directly to gateway (no multi-hop) - Routing table: 1 entry (gateway address) - No route discovery needed - No relay burden (direct to gateway) - Energy per day: Sensing + transmit to gateway (20 mA x 10s) = 0.055 Ah/day - Battery life: 2000 mAh / 0.055 Ah = 36 days - Node cost: $25 (128 bytes RAM sufficient) - Gateway cost: 10 x $200 = $2,000 (mains powered, Wi-Fi backhaul)

Think about: 1. 60x battery life difference: Topology B lasts 36 days vs. Topology A’s 14 hours 2. Total system cost: Topology A: 200 x $45 = $9,000. Topology B: (200 x $25) + $2,000 = $7,000 3. Operational cost: Mesh requires daily battery service ($500/day labor). Clustered star: monthly service ($100/month) 4. When is mesh worth it? Only when sensor spacing exceeds gateway range (>100m) AND you cannot add more gateways

Key Insight: Full mesh is a solution in search of a problem. The routing overhead and relay burden destroy battery life for negligible benefit in most deployments. Always ask: “Can I add more gateways instead?” The answer is usually yes, and it’s cheaper than the mesh energy penalty.

Real-world wisdom: “We spent 6 months perfecting mesh routing, then realized 3 strategically placed gateways eliminated all multi-hop traffic. Threw away the mesh code and deployed.”

Scenario: An industrial facility monitors equipment temperature with 100 wireless sensors reporting every 60 seconds. Network engineer proposes hierarchical aggregation to reduce congestion at the central gateway.

Architecture A (Flat - No Aggregation): - Each sensor transmits raw reading to sink: 10 bytes payload + 20 bytes header = 30 bytes - Total traffic at sink: 100 nodes x 30 bytes/min = 3,000 bytes/min = 50 bytes/sec - Airtime per transmission: 30 bytes x 8 bits x (1/250,000 bps) = 0.96 ms - Total airtime: 100 x 0.96 ms = 96 ms/min (network 16% busy) - Collision probability: 16% → ~8% packet loss requiring retransmissions - Energy per node: 30 bytes x 20 mA x 0.96 ms = 0.58 mAh/day

Architecture B (Hierarchical - 5 Cluster Heads): - 20 sensors per cluster send to cluster head (20 x 30 bytes = 600 bytes/cluster) - Cluster head aggregates: min/max/avg/stddev/count = 40 bytes summary - Traffic to sink: 5 clusters x 40 bytes = 200 bytes/min = 3.3 bytes/sec - Traffic reduction: 3,000 → 200 bytes = 93% (better than 80% because header overhead eliminated) - Airtime: Only 5 transmissions/min = 4.8 ms/min (network 0.8% busy) - Collision probability: < 1% → negligible packet loss - Energy per sensor node: Local transmission (0.58 mAh) vs. cluster head (receive 20 packets + aggregate + transmit = 1.8 mAh)

Think about: 1. Bandwidth savings: 93% reduction means network can scale from 100 to 1,400 sensors with same congestion 2. Battery symmetry: Cluster heads consume 3x more energy. How do you handle this? (Rotation, mains power, larger batteries?) 3. Information loss: What if you need individual sensor values for diagnostics? (Send raw data on exception, aggregates normally) 4. Latency trade-off: Aggregation adds 5-10 second delay waiting for all cluster members

Key Insight: Aggregation’s primary benefit isn’t bandwidth—it’s collision avoidance. Going from 100 competing transmitters to 5 eliminates the exponential backoff and retransmission waste that destroys WSN efficiency. The 93% reduction is the side effect; the real win is deterministic delivery.

Real-world wisdom: “We added aggregation to reduce bandwidth. Unexpectedly, packet delivery jumped from 83% to 99.7%. Turned out the network was drowning in collisions, not data volume.”

Scenario: A chemical plant deploys gas leak detection sensors. Engineers must balance response time against battery life in the duty cycling configuration.

Configuration A (S-MAC: 1-second wake interval, 10% duty cycle): - Nodes wake simultaneously every 1 second for 100 ms - Event detected at worst case: right after sleep cycle starts - Maximum latency: 1 second (wait for next wake cycle) - Average latency: 500 ms - Energy: Sleep 900 ms (1 µA) + wake 100 ms (15 mA) = 1.5 mAh/day - Battery life: 2000 mAh / 1.5 mAh = 1,333 days (3.7 years)

Configuration B (High Duty Cycle: 100 ms wake interval, 10% duty cycle): - Nodes wake every 100 ms for 10 ms - Maximum latency: 100 ms - Average latency: 50 ms - Energy: Sleep 90 ms (1 µA) + wake 10 ms (15 mA) = 1.5 mAh/day (same!) - Battery life: 3.7 years (energy determined by duty cycle %, not interval)

Configuration C (Wake-Up Radio: Always-on monitoring): - Low-power wake-up radio monitors continuously: 10 µA - Main radio sleeps: 1 µA - Gas detected → wake-up radio triggers main radio interrupt - Latency: <10 ms (near-instantaneous) - Energy: Wake-up radio (10 µA) + main radio sleep (1 µA) + occasional wake (amortized 0.1 mA) = 0.26 mAh/day - Battery life: 2000 mAh / 0.26 mAh = 7,692 days (21 years!) - Hardware cost: +$8/node for wake-up radio

Think about: 1. Safety requirements: For gas leak (life-threatening), is 1-second latency acceptable? 100 ms? Or must you detect <10 ms? 2. Energy misconception: Why does Configuration B have same battery life as A despite 10x faster wake-ups? (Duty cycle % matters, not interval) 3. Cost-benefit: Wake-up radio costs $800 for 100 nodes, but eliminates 20 years of battery replacements ($50 x 10 visits x 100 nodes = $50,000)

Key Insight: Latency in duty-cycled networks is bounded by wake interval, not duty cycle percentage. You can achieve both fast response AND long battery life by using short wake intervals with proportionally short wake durations. Better yet, wake-up radios eliminate the trade-off entirely.

Real-world wisdom: “We debugged S-MAC for weeks trying to improve latency while maintaining battery life. Finally realized we were optimizing the wrong variable—threw in $5 wake-up radios and got 10x better latency with 5x better battery life.”

Scenario: A 50-hectare vineyard uses 100 soil moisture sensors for precision irrigation. The irrigation controller receives aggregated data from 5 cluster heads (20 sensors each) to make watering decisions.

Aggregation Option A (SUM): - Cluster reports: Total moisture = 12,450 units (sum of 20 sensors) - Controller receives: Zone 1 = 12,450, Zone 2 = 11,200, Zone 3 = 13,100, Zone 4 = 12,800, Zone 5 = 10,900 - Decision making difficulty: What does “12,450 total units” mean? Is it good? Bad? Needs irrigation? - Cannot identify which specific sensors are dry - Useless for spatial irrigation planning

Aggregation Option B (MIN/MAX/MEAN): - Cluster reports: MIN = 18%, MAX = 72%, MEAN = 45% - Controller receives: Zone 1 (min=18%, mean=45%, max=72%) - Actionable decisions: - MIN = 18% → Critical dry spot, activate irrigation immediately in Zone 1 - MAX = 72% → Some sensors oversaturated, check for drainage issues - MEAN = 45% → Overall zone is moderately dry - Water savings: Irrigate only Zone 1 (MIN=18%) and Zone 5 (MIN=15%), skip Zones 2-4 (all MIN>30%) - Result: 60% water reduction vs. uniform irrigation

Aggregation Option C (Spatial Distribution with STDDEV): - Cluster reports: MIN=18%, MAX=72%, MEAN=45%, STDDEV=22% - Advanced insights: - High STDDEV (22%) indicates uneven moisture distribution - Suggests irrigation system malfunction (clogged emitters, broken lines) - Triggers maintenance alert instead of just adding more water

Think about: 1. Information value: SUM tells you nothing about spatial distribution. MIN/MAX reveal extremes needing action 2. Water economics: Precision irrigation using MIN/MAX saves $15,000/year in water costs for this 50-hectare vineyard 3. Data compression: Sending MIN/MAX/MEAN/STDDEV = 16 bytes vs. raw 20 readings = 40 bytes (60% reduction with better insights)

Key Insight: The best aggregation function depends on the decision being made, not the data being collected. SUM is mathematically valid but operationally useless for irrigation—you can’t water “the sum.” MIN/MAX answer the real question: “Where is it too dry or too wet?”

Real-world wisdom: “We aggregated soil moisture with MEAN for two seasons, wasted 40% of our water. Switched to MIN/MAX spatial aggregation—water bill dropped $18K annually and yields improved 12% from better moisture management.”

Scenario: City engineers deploy a structural health monitoring system on a 2 km suspension bridge to detect dangerous resonance frequencies before failure occurs.

Application A (Low-Power WSN Approach): - Deploy 200 battery-powered nodes sampling vibration at 1 Hz - Standard WSN: Temperature/humidity sensors repurposed for accelerometers - Time synchronization: NTP over wireless (~100 ms accuracy) - Data rate: 1 sample/sec x 2 bytes x 200 nodes = 400 bytes/sec - Battery life: 2 years - Problem: Missed critical frequency analysis! - Bridge resonance occurs at 0.5-50 Hz - 1 Hz sampling can only detect <0.5 Hz (Nyquist theorem) - Cannot distinguish torsional vs. vertical modes without time-correlated data - 100 ms time sync error destroys phase relationship between sensor pairs

Application B (High-Fidelity Structural Monitoring): - Deploy 64 mains-powered accelerometer nodes sampling at 1000 Hz - Professional-grade: 16-bit ADC, GPS time sync (±10 µs accuracy) - Data rate: 1000 samples/sec x 2 bytes x 64 nodes = 128 KB/sec (320x higher!) - Power: Mains required (PoE or AC, ~5W per node) - Cost: $800/node vs. $45/node for low-power WSN - Capabilities unlocked: - Detect resonance frequencies: 0.5-50 Hz covered - Modal analysis: Correlate vibrations across spans to identify bending/torsion modes - Early warning: Detect frequency shifts indicating structural degradation - Earthquake response: Capture high-frequency seismic events

Application C (Hybrid - Smart Energy Harvesting): - 64 nodes with vibration energy harvesters + supercapacitors - Adaptive sampling: 10 Hz baseline, 1000 Hz during detected events - Edge processing: FFT on-node, transmit only frequency spectrum (100x compression) - Data rate (baseline): 10 Hz x 2 bytes x 64 = 1.28 KB/sec - Data rate (events): 1000 Hz x 2 bytes x 64 = 128 KB/sec for 10-second bursts - Power: Energy neutral (vibration harvesting generates ~50 mW, consumes ~30 mW avg) - Cost: $400/node (harvester + supercap)

Think about: 1. Application mismatch: Why can’t low-power WSN approaches work for structural monitoring? (Sampling rate, timing, data fidelity) 2. Energy vs. fidelity: 1000 Hz sampling requires 1000x more processing/transmission than 1 Hz—battery operation becomes impossible 3. Cost justification: Bridge failure costs $100M+. Is $50K for proper monitoring expensive or cheap?

Key Insight: Not all sensing applications fit the low-power WSN paradigm. Structural health monitoring needs high sampling rates, tight time synchronization, and continuous operation—optimizing for battery life destroys the application’s core value. Sometimes the right answer is “use mains power.”

Real-world wisdom: “We tried to save money with battery-powered 1 Hz accelerometers. Missed a critical resonance development that nearly caused bridge closure. Ripped it out, deployed proper 1000 Hz GPS-synced system. Yes, it costs 10x more. Bridge failure costs 1000x more.”

387.4 Summary

This chapter covered detailed scenario analysis for WSN design decisions:

  • Energy Management Trade-offs: 75x lifetime improvement through duty cycling vs. always-on radio
  • Hotspot Problem: Architectural solutions using multiple sinks to distribute relay burden
  • Topology Trade-offs: 60x battery life difference between mesh and clustered star
  • Aggregation Economics: 93% traffic reduction through hierarchical clustering
  • Latency vs Energy: Wake interval bounds latency, duty cycle determines energy
  • Aggregation Function Selection: MIN/MAX for actionable decisions vs. SUM/MEAN for statistics
  • Application-Appropriate Design: When low-power WSN paradigm doesn’t fit the use case

387.5 What’s Next

Continue to comprehensive assessment covering advanced topics, protocol selection, and complete design guidance.

Continue to WSN Review: Comprehensive Assessment →