Wireless Sensor networks: a data centric overview. Politecnico di Milano Joint work with: C. Bolchini F.A. Schreiber other colleagues and students

Similar documents
Information Management I: Sensor Database, Querying, Publish & Subscribe, Information Summarization + SIGMOD 2003 paper

TinyDB and TASK. Sensor Network in a Box SMARTER SENSORS IN SILICON 1

Querying the Sensor Network. TinyDB/TAG

TAG: A TINY AGGREGATION SERVICE FOR AD-HOC SENSOR NETWORKS

Tag a Tiny Aggregation Service for Ad-Hoc Sensor Networks. Samuel Madden, Michael Franklin, Joseph Hellerstein,Wei Hong UC Berkeley Usinex OSDI 02

Data Management in Sensor Networks

Acquisitional Query Processing in TinyDB

Scaling Down. Robert Grimm New York University

Embedded System Design : Project Specification Crowd Information Monitor

TinyOS. Jan S. Rellermeyer

TinyOS. Lecture Overview. UC Berkeley Family of Motes. Mica2 and Mica2Dot. MTS300CA Sensor Board. Programming Board (MIB510) 1.

Routing protocols in WSN

Practical Aspects of CTI WSN Testbed

Hardware Support for a Wireless Sensor Network Virtual Machine

Interfacing Java-DSP with Sensor Motes

CE693: Adv. Computer Networking

Important issues. Query the Sensor Network. Challenges. Challenges. In-network network data aggregation. Distributed In-network network Storage

Intel Research mote. Ralph Kling Intel Corporation Research Santa Clara, CA

Energy-aware Reconfiguration of Sensor Nodes

System Architecture Directions for Networked Sensors[1]

Lecture 8 Wireless Sensor Networks: Overview

SDCI Student Project 6 Sensing Capabilites Go Wireless. Mario Caruso Francesco Leotta Leonardo Montecchi Marcello Pietri

Wireless Sensor Networks (WSN)

Secure Routing in Wireless Sensor Networks: Attacks and Countermeasures

The Emergence of Networking Abstractions and Techniques in TinyOS

Distributed Pervasive Systems

The Flooding Time Synchronization Protocol

Information Brokerage

Part I: Introduction to Wireless Sensor Networks. Xenofon Fafoutis

CSC 774 Advanced Network Security

TinyOS. Wireless Sensor Networks

Presented by: Murad Kaplan

CHAPTER 2 WIRELESS SENSOR NETWORKS AND NEED OF TOPOLOGY CONTROL

Wireless Sensor Networks

CSC344 Wireless and Mobile Computing. Department of Computer Science COMSATS Institute of Information Technology

KSN Radio Stack: Sun SPOT Symposium 2009 London.

TEMPERATURE MONITORING SYSTEM

Wireless Sensor Networks CS742

Software Engineering for Wireless Sensor Networks A Case Study

Integrated Routing and Query Processing in Wireless Sensor Networks

ADHOC ROUTING BASED DATA COLLECTION APPLICATION IN WIRELESS SENSOR NETWORKS MALLIKARJUNA RAO PINJALA B.E, OSMANIA UNIVERSITY, INDIA, 2004 A REPORT

System Software for Sensor Networks

Reliable Time Synchronization Protocol for Wireless Sensor Networks

Sensor Networks. Part 3: TinyOS. CATT Short Course, March 11, 2005 Mark Coates Mike Rabbat. Operating Systems 101

European Network on New Sensing Technologies for Air Pollution Control and Environmental Sustainability - EuNetAir COST Action TD1105

Wireless Embedded Systems ( x) Ad hoc and Sensor Networks

Chapter 5 Ad Hoc Wireless Network. Jang Ping Sheu

Outline. Mate: A Tiny Virtual Machine for Sensor Networks Philip Levis and David Culler. Motivation. Applications. Mate.

WSN NETWORK ARCHITECTURES AND PROTOCOL STACK

Part I. Wireless Communication

TOSSIM simulation of wireless sensor network serving as hardware platform for Hopfield neural net configured for max independent set

TinySec: A Link Layer Security Architecture for Wireless Sensor Networks. Presented by Paul Ruggieri

Outline. CS5984 Mobile Computing. Dr. Ayman Abdel-Hamid, CS5984. Wireless Sensor Networks 1/2. Wireless Sensor Networks 2/2

4/22 A Wireless Sensor Network for Structural Health Monitoring. Gregory Peaker

WSN Routing Protocols

Hardware Design of Wireless Sensors

Threads SPL/2010 SPL/20 1

AN EFFICIENT MAC PROTOCOL FOR SUPPORTING QOS IN WIRELESS SENSOR NETWORKS

TAG: a Tiny Aggregation Service for Ad-Hoc Sensor Networks

Middleware for Wireless Sensor Networks: An Outlook

Sensor Networks for Structural Monitoring: Status, Plans, Problems. Ananth Grama

Group Members: Chetan Fegade Nikhil Mascarenhas. Mentor: Dr. Yann Hang Lee

Time Synchronization in Wireless Sensor Networks: CCTS

PERLA PERvasive LAnguage

Developing deterministic networking technology for railway applications using TTEthernet software-based end systems

References. K. Sohraby, D. Minoli, and T. Znati. Wireless Sensor Networks: Technology, Protocols, and

Data Storage In Wireless Sensor Databases

The Emergence of Networking Abstractions and Techniques in TinyOS

Agent based System Architecture for Wireless Sensor Networks

Computer System Overview OPERATING SYSTEM TOP-LEVEL COMPONENTS. Simplified view: Operating Systems. Slide 1. Slide /S2. Slide 2.

Processes. CS 475, Spring 2018 Concurrent & Distributed Systems

DSMS Part 1, 2 & 3. Data Stream Management. Example: Sensor Networks. Some Sensornet Applications. Data Stream Management Systems

System Energy Efficiency Lab seelab.ucsd.edu

Computer System Overview

Towards a Resilient Operating System for Wireless Sensor Networks

Design and implementation of ZigBee/IEEE Nodes for

Energy Management Issue in Ad Hoc Networks

A Tale of Two Synchronizing Clocks

MoteView User s Manual. Presented by Bretny Khamphavong, Nancy White, Chloe Norris, Catherine Greene

System Architecture Directions for Networked Sensors. Jason Hill et. al. A Presentation by Dhyanesh Narayanan MS, CS (Systems)

A Cross-Layer Perspective of Routing. Taming the Underlying Challenges of Reliable Routing in Sensor Networks. Underlying Connectivity in Reality

Energy Management Issue in Ad Hoc Networks

Modeling Wireless Sensor Network for forest temperature and relative humidity monitoring in Usambara mountain - A review

Smart Dust : Dispersed, Un-tethered Geospatial Monitoring. Dr. Raja R. Kadiyala Chief Technology Officer CH2M HILL - Oakland, CA

A Plexos International Network Operating Technology May 2006

Wireless Sensor Networks: Clustering, Routing, Localization, Time Synchronization

Wireless Sensor Networks --- Concepts and Challenges

Presented by Viraj Anagal Kaushik Mada. Presented to Dr. Mohamed Mahmoud. ECE 6900 Fall 2014 Date: 09/29/2014 1

Multi Hop Send Protocol Tool for TinyNodes Semesterthesis

Fig. 2: Architecture of sensor node

Wireless Sensor Networks: From Science to Reality. Kay Römer ETH Zurich

UNIT 1 Questions & Solutions

Fault Tolerant, Energy Saving Method for Reliable Information Propagation in Sensor Network

TAG: Tiny AGgregate Queries in Ad-Hoc Sensor Networks

Middleware for Sensor Networks

What are Embedded Systems? Lecture 1 Introduction to Embedded Systems & Software

Wireless Sensor Networks --- Concepts and Challenges

Wireless Local Area Networks (WLANs)) and Wireless Sensor Networks (WSNs) Computer Networks: Wireless Networks 1

Wireless Sensor Networks (WSN)

QoS Challenges and QoS-Aware MAC Protocols in Wireless Sensor Networks

Transcription:

Wireless Sensor networks: a data centric overview Politecnico di Milano Joint work with: C. Bolchini F.A. Schreiber other colleagues and students Wireless embedded sensor networks Thousands of tiny low power devices spread over large physical areas monitor the environment, possibly predicting potential faults in buildings, bridges, roads, railways etc. The devices must be small, unobtrusive, and cheap The network must be unexpensive to develop, deploy, program, utilize and maintain 1

A sensor network Comprises a number of sensor nodes and a base station Sensor networks involve three areas: sensing, communications, and computation Applications: Monitoring contaminated land areas or waters Monitoring animal behaviour Fire, earthquake emergencies Vehicle tracking, traffic control Surveillance of city districts, defense related networks, alerts to terroristical threats MOTES: HW Tiny microcontroller-based systems with embedded sensors and wireless communication Key constraints: Battery power Power is the most precious resource: it is often impossible to replace or recharge batteries once a mote has been deployed Limited system resources RAM Processing power Non-volatile storage Bandwidth Software needs to take these into account 2

MOTES: HW (2) Further constraints: May have thousands of nodes Nodes do not have a notion of node proximity Nodes trasmission may intefer with one another: collisions Battery failures Sensor calibration Software needs to take these into account Properties of Sensor Networks Nodes have a general-purpose CPU to perform computation and some storage space Since: communication consumes more energy than computations, and Communication links may break frequently due environmental interferences and noise we want to reduce amount of traffic flow between nodes by local computation. 3

Motes: the Mica2 platform Developed at UC Berkeley Powered by two AA batteries Atmel ATmega128L µc 8 MHz 4KB EEPROM 4KB RAM 128KB Program Flash memory Chipcon CC1000 multichannel radio Range of up to 150-300 m. Motes: the Mica2 platform Mica2Dot Basically same features, smaller size, fewer sensor options Different sensor boards for Mica2 and Mica2Dot 4

Motes: available sensors Part of the Crossbow development kit: MTS310 Sensor Board (for Mica2): includes Acceleration, Magnetic, Light, Temperature, Acoustic sensors. MDA500, Mica2DOT data acquisition board: allows easy access to the microcontroller I/O pins to hook up sensors Other sensors: MTS420A: offers weather monitoring sensors such as humidity, barometric pressure, temperature and light, in addition to a GPS module. MTS500: Weather monitoring module for Mica2DOT: offers temperature, humidity, barometric pressure, and light sensors. SOME NUMBERS NODE TYPE SAMPLE AND SIZE APPLICATION MEMORY OTHER SPECIALIZED SENSING PLATFORM SPEC (mm 3 ) RF tag or specialized sensor 3K RAM GENERIC SENSING PLATFORM MOTE (1-10 c m 3 ) General purpose sensor and commun. 4K RAM 128K FLASH TinyOS HIGH- BANDWIDTH SENSING IMOTE (1-10 c m 3 ) High bandwidth sensor (video, acoustic, etc.) 64KB RAM 512KB FLASH TinyOS, BLUETOOTH, CONNECTIVITY WITH CELL PHONES GATEWAY STARGATE (> 10 c m 3 ) High bandwidth sensor plus gateway <512KB RAM <32MB FLASH LINUX OR WINDOWS, SERIAL CONNECTION TO SENSOR NETWORK 5

A hierarchical architecture A FEW GATEWAY NODES DOZENS OF HIGH BANDWDTH SENSORS HUNDREDS OF GENERIC SENSOR NODES THOUSANDS OF SPECIAL PURPOSE SENSORS TinyDB TinyOS TinyOS TinyOS is a sort of OS, which is simply a library that provides a number of convenient software abstractions, including components to modulate packets over the radio, read sensor values for different sensor hardware, synchronize clocks between a sender and receiver and put the hardware into a low-power state. 6

TinyOS Application = scheduler + graph of components Event-driven architecture Single shared stack NO kernel, process/memory management, virtual memory Downward arrows: Commands Upward arrows: Events TinyOS - Components Commands: Request a service from a component Non-blocking, they post tasks to carry out intensive work Can call lower level commands, but not signal events Events Can call commands, signal events, post tasks Can preempt running tasks Low-level events are triggered by hardware interrupts (e.g. timer) Scheduler No real concurrency, only one task runs at a time Posted tasks are run sequentially in a FIFO fashion Any task runs to completion, but can be preempted by an event Component Commands Tasks Frame Events 7

Languages nesc: extension of the C language aimed at networked embedded systems, such as motes. TinyOS is written in nesc, its structure is closely related to nesc s features Maté: A tiny bytecode interpreter that runs on top of TinyOS. A tiny communication-centric virtual machine designed for sensor networks. An high level interface allowing complex programs to be very short reducing cost of code transmission TinyDB TinyOS nesc used to provide hardware abstraction & interface with TinyDB TinyDB s/w arch of a mote nesc TinyOS 8

SW FSM of a MOTE Snooze/idle Receive Generate/Scan Transmit Network Topology Network Topology Static Dynamic Peer-Peer Parent-Child Aggregation Cluster 9

DB view of sensor networks Traditional: Procedural addressing of individual sensor nodes: user specifies how task is executed, data is processed centrally DB-style approach: Declarative querying: user is not concerned about how the network works : in-network distributed processing TinyDB TinyDB is a query processing system for extracting information from a network of TinyOS sensors. Reduced SQL interface (with some additional constructs) Queries issued from a PC Collects data from motes in the environment, filters it, aggregates it together, and routes it out to a PC Exploits power-efficient in-network processing algorithms. Multiple persistent queries with different sample time 10

Sensor Architecture Sensors Table in ACQP Sensors table is an unbounded, continuous data stream. Physically, the sensors table is partitioned across all of the devices in the network, with each device producing and storing its own readings. Operations such as sort and symmetric join are not allowed on streams. They are allowed on bounded subsets of the stream (windows) Columns are sensor data Rows are individual sensors 11

TinyDB Network Topology: TinyDB manages the underlying radio network by tracking neighbors, maintaining routing tables, and ensuring that every mote in the network can efficiently and (relatively) reliably deliver its data to the user. Incremental Deployment via Query Sharing: To expand a TinyDB sensor network, you simply download the standard TinyDB code to new motes, and TinyDB does the rest. TinyDB motes share queries with each other. No programming or configuration of the new motes is required beyond installing TinyDB. Offers logging capapilities: Logs on PostgreSQL on the base station TinyDB SQL (implements active capabilities) SELECT roomno, AVG(light), AVG(volume) FROM sensors GROUP BY roomno HAVING AVG(light) > l AND AVG(volume) > v EPOCH DURATION 5min ON evttest: SELECT light FROM sensors WHERE light>threshold TRIGGER ACTION SetSnd(512) Fire the query on a defined Event Activate an action, here sounds the beeper The query runs Delivering information Every 5 minutes 12

TinySQL: : Limitations FROM clause must always list exactly one table sensors (unless from flash-logged query) No support for NOT and OR boolean operators in WHERE and HAVING clauses No nested query support Renaming not supported (AS) Reduced Arithmetic expressions (only column op constant) TinySQL: : extensions TRIGGER ACTION clause (optional) specifies an action to be performed after query execution on every mote. EPOCH DURATION <int< int> clause is used to specify time between the repetitions of a query (the query is fired every <int> milliseconds ) On <event>: is used to have a query firing in response to some (hw) event, for example the cross of a threshold of a sensor or packet arrival on the radio. INTO clause is used to log a query into an on-mote flash memory (you can drop it with DROP ALL) 13

How different WSN Queries are from General Queries Sensor data Time stamped Sensors deliver data in streams: they produce data continuously, often at well defined time intervals, without having been explicitly asked for that data. Queries over those streams need to be processed in near real-time Expensive to save all data to disk Data streams represent real-world events (e.g., traffic accidents and attempted network break-ins), which need to be responded to Not all sensor readings are of interest Uncertainty, incomplete information Phases of Power Consumption in TinyDB 14

Some Types of Queries BroadCast Query LandMark Query Aggregation Query Sliding Window Query Event Based Query Life Time Based Query Types of Queries - TinyDB Broadcast Query : The Query from the Root is broadcasted to all the clients in the network irrespective of the architecture with a definite sampling period. root motes 15

Types of Queries - TinyDB SELECT ALL [light, temp] FROM sensors SAMPLE PERIOD 1s FOR 10s Types of Queries (contd) - TinyDB Aggregation Query :The Query from the Root is transmitted to all parent motes and parent motes transmits query to child motes with a definite sampling Period. root Parent Mote Child Mote 16

TinyDB Example SELECT AVG (volume), room_no FROM sensors WHERE floor = 6 GROUP BY room_no HAVING AVG (volume) > threshold SAMPLE PERIOD 30s Types of Queries (contd) - TinyDB Sliding Window Query (Temporal Aggregate) : This is similar to Aggregate Query with sampling interval being divided into windows. SELECT WINAVG (volume, 30s, 5s) FROM sensors SAMPLE PERIOD 1s 17

Types of Queries (contd) - TinyDB Event Based Query: This is an Asynchronous Query mechanism in which events are used as a triggering medium for initiating data collection. ON EVENT bird detect (loc) : SELECT AVG (light), AVG (temp), event.loc FROM sensors AS s WHERE dist (s.loc, event.loc) < 10m SAMPLE PERIOD 2s FOR 30s Types of Queries (contd) - TinyDB Life Time Based Query : This query mechanism runs for definite lifetime and the rate of sampling will be as quick as possible in order to satisfy the goal of data collection. Eg:-If a mote has two ends. Using the lifetime parameter we can use two ends alternatively to decrease rear & tear (improve performance) Exit Point A For first 30 days Parent Mote Child Mote Exit Point B For the next 30 days 18

Types of Queries (contd) - TinyDB SELECT node_id, accel FROM sensors LIFETIME 30 days The above Query will Use exit point A of a parent mote and similar query will Use exit point B (Depending on expiration of Lifetime, TinyOS is responsible for changing the exit points) Response to Queries Parent/Root Child Mote/ Mote 19

Queue Challenges (priority Query) - Overflow When does OverFlow occur? NAIVE : No tuple is considered more valuable than any other, so the queue is drained in a FIFO manner and tuples are dropped if they do not fit in the queue. WINAVG : It works similar to NAIVE, except for the fact that instead of dropping results when the queue fills, the two results at the head of the queue is now an average of multiple records, we associate a count with it. DELTA : When the queue overflows, the packet which has been sent most recently is retrieved and the older packet is discarded. But further useful database functionalities are still lacking One VSDB should reside at least on every generic sensing device (e.g. Mica2) To compose a distributed/federated database Each VSDB should be context aware Each VSDB should be able to appropriately redirect queries to neighbours (P2P) because of an internal fault or a generic unavailability because it does not possess the information because the other node knows something more, in order to complete the information because the other node has a less power-consuming sensor onboard design appropriate, optimized query processing plans (e.g. redirect subquery, cache subquery result, etc.) 20