470 likes | 483 Views
Establishing distributed devices for monitoring in various settings, coordinating for increased efficiency in tasks. Overcoming challenges with resource-adaptive protocols for sensor networks.
E N D
Sensor-Network Schemes Presented by: Charles ‘Buck’ Krasic Slides adapted from original authors’ CSE 581 - Sensor-Network Schemes
Paper List • C. Intanagonwiwa, R. Govindan, D. Estrin, (USC/ISI, UCLA) “Directed Diffusion: A Scalable and Robust Communications Paradigm for Sensor Networks”. MobiCOMM 2000 • J. Heidemann, F. Silva, C. Intanagonwiwat, R. Govindan, D. Estrin, D. Ganesan, (USC/ISI,UCLA) “Building Efficient Wireless Sensor Networks with Low-Level Naming”. SOSP 2001 • J. Kulik, W. Heinzelman, H. Balakrishnan, (MIT) “Negotiation-based Protocols for Disseminating Information in Wireless Sensor Networks”. MobiCOMM 1999 CSE 581 - Sensor-Network Schemes
Disaster Response Circulatory Net The long term goal Embed numerous distributed devices to monitor and interact with physical world: in work-spaces, hospitals, homes, vehicles, and “the environment” (water, soil, air…) Network these devices so that they can coordinate to perform higher-level tasks. Requires robust distributed systemsof tens of thousands of devices. CSE 581 - Sensor-Network Schemes
Resource-Adaptive Protocols for Networks of Sensors J. Kulik, W. Heinzelman, H. Balakrishnan, (MIT) “Negotiation-based Protocols for Disseminating Information in Wireless Sensor Networks”. MobiCOMM 1999 CSE 581 - Sensor-Network Schemes
SPIN – Sensor Protocols fro Information via Negotiation • J. Kulik, W. Heinzelman, H. Balakrishnan, (MIT) “Negotiation-based Protocols for Disseminating Information in Wireless Sensor Networks”. MobiCOMM 1999 CSE 581 - Sensor-Network Schemes
Overview • Motivation and goals • Approach to sensor communication: • Meta-data exchanges • Data aggregation • “Resource-Adaptive” applications • Implementation using ns • Experiments CSE 581 - Sensor-Network Schemes
Sensor Networks • New research area • Advantages: • Improved accuracy • Fault tolerance • Characteristics: • Wireless network • No high-powered central base-station • Distribution network • Energy-limited nodes CSE 581 - Sensor-Network Schemes
Quality Deadline Energy System Parameters • Quality • Accuracy of result • Deadline • Time result required • Energy Goal: Setup framework for analyzing trade-offs CSE 581 - Sensor-Network Schemes
Classic Network Approaches • Flooding • Redundant data transmission • Multi-hop routing • Large routing tables • Frequent updates • Complexity Question: Are there better approaches? CSE 581 - Sensor-Network Schemes
Negotiation Protocol Meta-Data <=> Data Naming • ADV- advertise data • REQ- request specific data • DATA- requested data ADV A B REQ A B DATA A B CSE 581 - Sensor-Network Schemes
Sensor A sends meta-data to neighbor A ADV B CSE 581 - Sensor-Network Schemes
Sensor B requests data from Sensor A A B REQ CSE 581 - Sensor-Network Schemes
Sensor A sends data to Sensor B A DATA B CSE 581 - Sensor-Network Schemes
Sensor B aggregates data and sends meta-data for A and B to neighbors A ADV ADV B ADV ADV ADV ADV CSE 581 - Sensor-Network Schemes
All but 1 neighbor request data A REQ REQ B REQ REQ REQ CSE 581 - Sensor-Network Schemes
Sensor B sends requested data to neighbors A DATA DATA B DATA DATA DATA CSE 581 - Sensor-Network Schemes
ns Software Architecture Resource-Adaptive Node RCApplication Meta-Data Data RCAgent Resource Manager Meta-Data Data Network Neighbor Energy Network Interface Link Link Link CSE 581 - Sensor-Network Schemes
Resource-Adaptive Application • Communication protocol implementation • Internal state • ADV/REQ/DATA algorithm • Resource-adaptive decision-making • Application-specific • Computation • Communication CSE 581 - Sensor-Network Schemes
Other Simulation Tools • Wireless topology generation • Radio energy models • Statistics collection • Data acquired • Energy dissipated • Redundant data received • Meta-data exchanged CSE 581 - Sensor-Network Schemes
Test Algorithms • Flooding -- Each node floods new data to all of its neighbors. • Gossipping -- Each node floods all its data to one, randomly selected neighbor. • Negotiating -- nodes decide what data to send based on meta-data advertisements. • Sleeping -- Same as negotiating, except that nodes stop sending messages when energy is low. Zzz... CSE 581 - Sensor-Network Schemes
25-Node Wireless Test Network Diameter = 152 meters Node reach = 10 meters 70 meters 70 meters 59 edges Average degree = 4.7 neighbors CSE 581 - Sensor-Network Schemes
Flooding Gossipping Negotiating Sleeping Limited Deadline Energy Dissipated Total Data Acquired 1 40 0.9 35 0.8 30 0.7 25 % Total Data Acquired Total Energy Dissipated (J) 0.6 20 0.5 15 0.4 10 0.3 5 0.2 0.1 0 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 Time (ms) Time (ms) CSE 581 - Sensor-Network Schemes
Flooding Gossipping Negotiating Sleeping Limited Energy Energy Dissipated Total Data Acquired 5 0.8 4.5 0.7 4 0.6 3.5 0.5 % Total Data Acquired Total Energy Dissipated (J) 3 2.5 0.4 2 0.3 1.5 0.2 1 0.5 0.1 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 Time (ms) Time (ms) CSE 581 - Sensor-Network Schemes
Data Acquired/Energy Dissipated 0.8 Flooding 0.7 Gossipping Negotiating 0.6 Sleeping 0.5 % Total Data Acquired 0.4 0.3 0.2 0.1 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 Total Energy Dissipated (Joules) CSE 581 - Sensor-Network Schemes
SPIN Summary • Contribution • Sensor networks should be more data-centric (meta-data driven) • Simulation results • Advantages: Seems better than flooding • Disadvantages: communication still excessive? • Future Work: lots! CSE 581 - Sensor-Network Schemes
Directed Diffusion • C. Intanagonwiwa, R. Govindan, D. Estrin, (USC/ISI, UCLA) “Directed Diffusion: A Scalable and Robust Communications Paradigm for Sensor Networks”. MobiCOMM 2000 • J. Heidemann, F. Silva, C. Intanagonwiwat, R. Govindan, D. Estrin, D. Ganesan, (USC/ISI,UCLA) “Building Efficient Wireless Sensor Networks with Low-Level Naming”. SOSP 2001 CSE 581 - Sensor-Network Schemes
Directed Diffusion Concepts • Application-aware communication primitives • expressed in terms of named data (not in terms of the nodes generating or requesting data) • Consumer of data initiates interestin data with certain attributes • Nodes diffuse the interest towards producers via a sequence of local interactions CSE 581 - Sensor-Network Schemes
Directed Diffusion Concepts (cont’d) • This process sets up gradients in the network which channel the delivery of data • Reinforcement and negative reinforcement used to converge to efficient distribution • Intermediate nodes opportunistically fuse interests, aggregate, correlate or cache data CSE 581 - Sensor-Network Schemes
Sending data Source Sink Reinforcing stable path Source Source Sink Sink Recovering from node failure Illustrating Directed Diffusion Setting up gradients Source Sink CSE 581 - Sensor-Network Schemes
1. For propagating interests In our example, flood More sophisticated behaviors possible: e.g. based on cached information, GPS 2. For setting up gradients Highest gradient towards neighbor from whom we first heard interest Others possible: towards neighbor with highest energy 3. For data transmission Different local rules can result in single path delivery, striped multi-path delivery, single source to multiple sinks and so on. 4. For reinforcement reinforce one path, or part thereof, based on observed losses, delay variances etc. other variants: inhibit certain paths because resource levels are low Local Behavior Choices CSE 581 - Sensor-Network Schemes
Compare diffusion to a)flooding, and b)centrally computed tree (“ideal”) Key metrics: total energy consumed per packet delivered (indication of network life time) average pkt delay Initial simulation studies(Intanago, Estrin, Govindan) FLOODING DIFFUSION CENTRALIZED CENTRALIZED DIFFUSION FLOODING CSE 581 - Sensor-Network Schemes
Experiments on PC104 testbed • Initial experimental measurements of diffusion (e.g., for comparison with simulation) • Compare bytes sent by diffusion with and without aggregation (simple in network processing) • Measurement Setup • A 5-hop network of 14 nodes on 2 ISI floors (testbed is actually 30 nodes and growing) • Radio: 13kbps radiometrix • 1 sink and 1-4 sources (each source sends 112 bytes every 6 seconds) CSE 581 - Sensor-Network Schemes
Bytes sent by diffusion per event vs. Number of sources Experimental Results Diffusion without suppression Diffusion with suppression CSE 581 - Sensor-Network Schemes
Comparison to Simulation • Bytes sent by diffusion per event vs. Number of sources Diffusion without suppression Diffusion with suppression CSE 581 - Sensor-Network Schemes
Differences between Simulations and Experiments • MAC differences • Modified 802.11 for simulations to represent hybrid TDMA-Contention • Radiometrix MAC for experiments • Channel differences • No obstacles used in ns-2 simulations • Note: we have added ability to include simple “terrain” but didn’t try to replicate indoor exp terrain in sims • More packet losses and collisions in experiments • Collisions in experiments act as unintentional suppression (make no suppression look better than it will with better mac) CSE 581 - Sensor-Network Schemes
Edge Processing Nested Queries with In-network Processing In network processing: Nested Queries • Edge processing overwhelms power and bandwidth consumption • Nested queries where low-energy sensors trigger high-energy sensors CSE 581 - Sensor-Network Schemes
Nested query 1-level query Experimental Validation: Testbed Measurements • Higher delivery ratio for nested query indicates that localizing data traffic benefits performance. • % Audio Events Successfully Delivered vs. Number of light sensors CSE 581 - Sensor-Network Schemes
TinyDiffusion • Implementation of Diffusion on resource constrained UCB motes • 8bit CPU, 8K program memory, 512 bytes data memory • Subset of full system • retains only gradients, and condenses attributes to a single tag. • Entire System runs for less than 5.5 KB memory • TinyOS adds ~3.5K and 144 bytes of data. (incl. support for Radio and Photo Sensor) • Diffusion adds ~2K code and 110 bytes of data to TinyOS. CSE 581 - Sensor-Network Schemes
TinyDiffusion Functionality • Resource Constraints • Limited cache size: currently 10 entries of 2bytes each • Limited ability to support multiple traffic streams. Currently supports 5 concurrently active gradients. • Tiered Deployment • PC104s running diffusion interface with mote clusters using TinyDiffusion. • Motes enable dense sensor deployment but can support limited in-network processing • Logical Header format of TinyDiffusion is compatible with the Diffusion header. CSE 581 - Sensor-Network Schemes
RFM Acoustic Data Source Query Data Sink Transceiver DIFFUSION Device Driver TINYOS LINUX Photo Data Source Data Sink TinyDiffusion TINYOS Gateway Architecture MOTE ATMEL 8586 4MHz MCU 8K program memory 512 Bytes Data Memory RFM Radio 900 MHz MOTE Mote-NIC PC104 AMD Elan™SC400 66MHz CPU 16MB RAM Form Factor: 3.6" x 3.8" x 0.6" Serial CSE 581 - Sensor-Network Schemes
Tiered Testbed • PC-104+(linux) with MoteNIC • Tags, Sensor Card • UCB Motes w/TinyOS • Yet to come: SmartDust (highly specialized nodes) PC/104 Tag UCB Mote CSE 581 - Sensor-Network Schemes
“Shoebox Testbed v2” • Featuring: • PC-104+ w/Pentium 266 • Mote-NIC • Ethernet fordebugging andmeasurement • Linux 2.4.2w/glibc 2.1.3 • Plastic • shoeboxes • from local drugstore CSE 581 - Sensor-Network Schemes
Directed Diffusion: Summary • Main contributions • Description of new networking paradigm • Interests, gradients, reinforcement • MobiCOMM: simulation results • SOSP: empirical results • Advantages • Benefits of in-network processing • Aggregation and nested-queries CSE 581 - Sensor-Network Schemes
Directed Diffusion Summary (cont’d) • Disadvantages • Design doesn’t deal with congestion or loss • Future Work • Sensor networks today are analogous to the Internet 3 decades ago CSE 581 - Sensor-Network Schemes
Sensor Card • The sensor card is a small (2”x4”) microcontroller board with several on-board sensors and emitters • Microphone • Light sensor • Accelerometer • Designed to perform simple sensing tasks at low power. • Currently it is connected to the PC-104 platform by serial. • Data is preprocessed on the sensor board and fed back to the PC-104 for analysis and communication. • The next version of the PC-104 platform will have the capability to be awakened by a peripheral such as the sensor card. CSE 581 - Sensor-Network Schemes
Reinforced Aggregation • Promote In-network Data Aggregation near the Sources for Better Energy Savings • Two Approaches for Reinforced Aggregation • Greedy Tree Approach • Incremental approach -- Adds minimum number of links on the existing tree • Iterative Approach • Selects aggregation points such that energy dissipation for delivering aggregated data is approximately minimized CSE 581 - Sensor-Network Schemes