Programming Vast Networks of Tiny Devices David Culler University of California, Berkeley Intel Research Berkeley

Slides:



Advertisements
Similar presentations
Berkeley dsn declarative sensor networks problem David Chu, Lucian Popa, Arsalan Tavakoli, Joe Hellerstein approach related dsn architecture status  B.
Advertisements

Trickle: Code Propagation and Maintenance Neil Patel UC Berkeley David Culler UC Berkeley Scott Shenker UC Berkeley ICSI Philip Levis UC Berkeley.
Sensor Network Platforms and Tools
IN-NETWORK VS CENTRALIZED PROCESSING FOR LIGHT DETECTION SYSTEM USING WIRELESS SENSOR NETWORKS Presentation by, Desai, Bhairav Solanki, Arpan.
한국기술교육대학교 컴퓨터 공학 김홍연 TinyDB : An Acquisitional Query Processing System for Sensor Networks. - Samuel R. Madden, Michael J. Franklin, Joseph M. Hellerstein,
1 Sensor Network Databases Ref: Wireless sensor networks---An information processing approach Feng Zhao and Leonidas Guibas (chapter 6)
1 Supporting Aggregate Queries Over Ad-Hoc Wireless Sensor Networks Samuel Madden UC Berkeley With Robert Szewczyk, Michael Franklin, and David Culler.
Security Issues In Sensor Networks By Priya Palanivelu.
The Cougar Approach to In-Network Query Processing in Sensor Networks By Yong Yao and Johannes Gehrke Cornell University Presented by Penelope Brooks.
Naming in Wireless Sensor Networks. 2 Sensor Naming  Exploiting application-specific naming and in- network processing for building efficient scalable.
A Survey of Wireless Sensor Network Data Collection Schemes by Brett Wilson.
INSENS: Intrusion-Tolerant Routing For Wireless Sensor Networks By: Jing Deng, Richard Han, Shivakant Mishra Presented by: Daryl Lonnon.
Approximate data collection in sensor networks the appeal of probabilistic models David Chu Amol Deshpande Joe Hellerstein Wei Hong ICDE 2006 Atlanta,
Probabilistic Data Aggregation Ling Huang, Ben Zhao, Anthony Joseph Sahara Retreat January, 2004.
Aggregate Query Processing in Ad-Hoc Sensor Networks Yong Yao Database lunch, Apr. 15th.
The Design of an Acquisitional Query Processor For Sensor Networks Samuel Madden, Michael J. Franklin, Joseph M. Hellerstein, and Wei Hong Presentation.
Maté: A Tiny Virtual Machine for Sensor Networks Philip Levis and David Culler Presented by: Michele Romano.
Model-driven Data Acquisition in Sensor Networks Amol Deshpande 1,4 Carlos Guestrin 4,2 Sam Madden 4,3 Joe Hellerstein 1,4 Wei Hong 4 1 UC Berkeley 2 Carnegie.
Philip Levis UC Berkeley 6/17/20021 Maté: A Tiny Virtual Machine Viral Programs with a Certain Cosmopolitan Charm.
CS 580S Sensor Networks and Systems Professor Kyoung Don Kang Lecture 7 February 13, 2006.
TAG: A TINY AGGREGATION SERVICE FOR AD-HOC SENSOR NETWORKS Presented by Akash Kapoor SAMUEL MADDEN, MICHAEL J. FRANKLIN, JOSEPH HELLERSTEIN, AND WEI HONG.
T AG : A TINY AGGREGATION SERVICE FOR AD - HOC SENSOR NETWORKS Samuel Madden, Michael J. Franklin, Joseph Hellerstein, and Wei Hong Presented by – Mahanth.
MICA: A Wireless Platform for Deeply Embedded Networks
TAG: a Tiny Aggregation Service for Ad-Hoc Sensor Networks Paper By : Samuel Madden, Michael J. Franklin, Joseph Hellerstein, and Wei Hong Instructor :
CS2510 Fault Tolerance and Privacy in Wireless Sensor Networks partially based on presentation by Sameh Gobriel.
The Design of an Acquisitional Query Processor For Sensor Networks Samuel Madden, Michael J. Franklin, Joseph M. Hellerstein, and Wei Hong.
TinyOS By Morgan Leider CS 411 with Mike Rowe with Mike Rowe.
Sensor Network Databases1 Overview: Chapter 6  Sensor Network Databases  Sensor networks are conceptually a distributed DB  Store collected data  Indexes.
March 6th, 2008Andrew Ofstad ECE 256, Spring 2008 TAG: a Tiny Aggregation Service for Ad-Hoc Sensor Networks Samuel Madden, Michael J. Franklin, Joseph.
Sogang University Advanced Computing System Chap 1. Computer Architecture Hyuk-Jun Lee, PhD Dept. of Computer Science and Engineering Sogang University.
1 Pradeep Kumar Gunda (Thanks to Jigar Doshi and Shivnath Babu for some slides) TAG: a Tiny Aggregation Service for Ad-Hoc Sensor Networks Samuel Madden,
TAG: a Tiny Aggregation Service for Ad-Hoc Sensor Networks Authors: Samuel Madden, Michael Franklin, Joseph Hellerstein Presented by: Vikas Motwani CSE.
1 TAG: A Tiny Aggregation Service for Ad-Hoc Sensor Networks Samuel Madden UC Berkeley with Michael Franklin, Joseph Hellerstein, and Wei Hong December.
Mate: A Tiny Virtual Machine for Sensor Networks Philip Levis and David Culler Presented by: Damon Jo.
INT 598 Data Management for Sensor Networks Silvia Nittel Spatial Information Science & Engineering University of Maine Fall 2006.
Sensor Database System Sultan Alhazmi
Korea Advanced Institute of Science and Technology Active Sensor Networks(Mate) (Published by Philip Levis, David Gay, and David Culler in NSDI 2005) 11/11/09.
The Design of an Acquisitional Query Processor for Sensor Networks CS851 Presentation 2005 Presented by: Gang Zhou University of Virginia.
TRICKLE: A Self-Regulating Algorithm for Code Propagation and Maintenance in Wireless Sensor Networks Philip Levis, Neil Patel, Scott Shenker and David.
CS542 Seminar – Sensor OS A Virtual Machine For Sensor Networks Oct. 28, 2009 Seok Kim Eugene Seo R. Muller, G. Alonso, and D. Kossmann.
Extreme Networked Systems: Large Self-Organized Networks of Tiny Wireless Sensors David Culler Computer Science Division U.C. Berkeley Intel
Mate: A Tiny Virtual Machine for Sensor Networks Phil Levis and David Culler Presented by Andrew Chien CSE 291 Chien April 22, 2003 (slides courtesy, Phil.
한국기술교육대학교 컴퓨터 공학 김홍연 Habitat Monitoring with Sensor Networks DKE.
Query Processing for Sensor Networks Yong Yao and Johannes Gehrke (Presentation: Anne Denton March 8, 2003)
Opportunities in High-Rate Wireless Sensor Networking Hari Balakrishnan MIT CSAIL
REED: Robust, Efficient Filtering and Event Detection in Sensor Networks Daniel Abadi, Samuel Madden, Wolfgang Lindner MIT United States VLDB 2005.
1 REED: Robust, Efficient Filtering and Event Detection in Sensor Networks Daniel Abadi, Samuel Madden, Wolfgang Lindner MIT United States VLDB 2005.
DATA AGGREGATION Siddhartha Sarkar Roll no: CSE-4 th Year-7 th semester Sensor Networks (CS 704D) Assignment.
Energy conservation in Wireless Sensor Networks Sagnik Bhattacharya, Tarek Abdelzaher University of Virginia, Department of Computer Science School of.
By: Gang Zhou Computer Science Department University of Virginia 1 Medians and Beyond: New Aggregation Techniques for Sensor Networks CS851 Seminar Presentation.
Aggregation and Secure Aggregation. Learning Objectives Understand why we need aggregation in WSNs Understand aggregation protocols in WSNs Understand.
Link Layer Support for Unified Radio Power Management in Wireless Sensor Networks IPSN 2007 Kevin Klues, Guoliang Xing and Chenyang Lu Database Lab.
W. Hong & S. Madden – Implementation and Research Issues in Query Processing for Wireless Sensor Networks, ICDE 2004.
In-Network Query Processing on Heterogeneous Hardware Martin Lukac*†, Harkirat Singh*, Mark Yarvis*, Nithya Ramanathan*† *Intel.
REED : Robust, Efficient Filtering and Event Detection in Sensor Network Daniel J. Abadi, Samuel Madden, Wolfgang Lindner Proceedings of the 31st VLDB.
Aggregation and Secure Aggregation. [Aggre_1] Section 12 Why do we need Aggregation? Sensor networks – Event-based Systems Example Query: –What is the.
1 TAG: A Tiny Aggregation Service for Ad-Hoc Sensor Networks Samuel Madden UC Berkeley with Michael Franklin, Joseph Hellerstein, and Wei Hong December.
Building Wireless Efficient Sensor Networks with Low-Level Naming J. Heihmann, F.Silva, C. Intanagonwiwat, R.Govindan, D. Estrin, D. Ganesan Presentation.
The Design of an Acquisitional Query Processor For Sensor Networks Samuel Madden, Michael J. Franklin, Joseph M. Hellerstein, and Wei Hong Presentation.
MAC Protocols for Sensor Networks
TAG: a Tiny AGgregation service for ad-hoc sensor networks Authors: Samuel Madden, Michael J. Franklin, Joseph M. Hellerstein, Wei Hong Presenter: Mingwei.
Yong Yao Johannes Gehrke Jie Li Nov. 20, 2008 CS662 Paper Presentation.
MAC Protocols for Sensor Networks
Distributed database approach,
The Design of an Acquisitional Query Processor For Sensor Networks
Trickle: Code Propagation and Maintenance
Lecture 17: Distributed Transactions
Distributing Queries Over Low Power Sensor Networks
REED : Robust, Efficient Filtering and Event Detection
Aggregation.
Presentation transcript:

Programming Vast Networks of Tiny Devices David Culler University of California, Berkeley Intel Research Berkeley

11/14/2002NEC Intro Programmable network fabric Architectural approach –new code image pushed through the network as packets –assembled and verified in local flash –second watch-dog processor reprograms main controller Viral code approach (Phil Levis) –each node runs a tiny virtual machine interpreter –captures the high-level behavior of application domain as individual instructions –packets are “capsule” sequence of high-level instructions –capsules can forward capsules Rich challenges –security –energy trade-offs –DOS pushc 1 # Light is sensor 1 sense # Push light reading pushm # Push message buffer clear # Clear message buffer add # Append val to buffer send # Send message using AHR forw # Forward capsule halt #

11/14/2002NEC Intro Mate’ Tiny Virtual Machine Comm. centric stack machine –7286 bytes code, 603 bytes RAM –dynamicly typed Four context types: –send, receive, clock, subroutine (4) –each 24 instructions Fit in a single TinyOS AM packet –Installation is atomic –Self-propagating Version information 0123 Subroutines Clock Send Receive Events gets/sets Code Operand Stack Return Stack PC Mate Context

11/14/2002NEC Intro Case Study: GDI Great Duck Island application Simple sense and send loop Runs every 8 seconds – low duty cycle 19 Maté instructions, 8K binary code Energy tradeoff: if you run GDI application for less than 6 days, Maté saves energy

11/14/2002NEC Intro Higher-level Programming? Ideally, would specify the desired global behavior Compilers would translate this into local operations High-Performance Fortran (HPF) analog –program is sequence of parallel operations on large matrices –each of the matrices are spread over many processors on a parallel machine –compiler translates from global view to local view »local operations + message passing –highly structured and regular We need a much richer suite of operations on unstructured aggregates on irregular, changing networks

11/14/2002NEC Intro Sensor Databases – a start Relational databases: rich queries described by declarative queries over tables of data –select, join, count, sum,... –user dictates what should be computed –query optimizer determines how –assumes data presented in complete, tabular form First step: database operations over streams of data –incremental query processing Big step: process the query in the sensor net –query processing == content-based routing? –energy savings, bandwidth, reliability App Sensor Network TinyDB Query, Trigger Data SELECT AVG(light) GROUP BY roomNo

11/14/2002NEC Intro Motivation: Sensor Nets and In-Network Query Processing Many Sensor Network Applications are Data Oriented Queries Natural and Efficient Data Processing Mechanism –Easy (unlike embedded C code) –Enable optimizations through abstraction Aggregates Common Case –E.g. Which rooms are in use? In-network processing a must –Sensor networks power and bandwidth constrained –Communication dominates power cost –Not subject to Moore’s law!

11/14/2002NEC Intro SQL Primer SQL is an established declarative language; not wedded to it –Some extensions clearly necessary, e.g. for sample rates We adopt a basic subset: ‘sensors’ relation (table) has –One column for each reading-type, or attribute –One row for each externalized value »May represent an aggregation of several individual readings SELECT {agg n (attr n ), attrs} FROM sensors WHERE {selPreds} GROUP BY {attrs} HAVING {havingPreds} EPOCH DURATION s SELECT AVG(light) FROM sensors WHERE sound < 100 GROUP BY roomNo HAVING AVG(light) < 50

11/14/2002NEC Intro TinyDB Demo (Sam Madden) Joe Hellerstein, Sam Madden, Wei Hong, Michael Franklin

11/14/2002NEC Intro Tiny Aggregation (TAG) Approach Push declarative queries into network –Impose a hierarchical routing tree onto the network Divide time into epochs Every epoch, sensors evaluate query over local sensor data and data from children –Aggregate local and child data –Each node transmits just once per epoch –Pipelined approach increases throughput Depending on aggregate function, various optimizations can be applied hypothesis testing

11/14/2002NEC Intro Aggregation Functions Standard SQL supports “the basic 5”: –MIN, MAX, SUM, AVERAGE, and COUNT We support any function conforming to: Agg n ={f merge, f init, f evaluate } F merge {, }  f init {a 0 }  F evaluate { }  aggregate value (Merge associative, commutative!) Example: Average AVG merge {, }  AVG init {v}  AVG evaluate { }  S 1 /C 1 Partial Aggregate

11/14/2002NEC Intro Query Propagation TAG propagation agnostic –Any algorithm that can: »Deliver the query to all sensors »Provide all sensors with one or more duplicate free routes to some root simple flooding approach –Query introduced at a root; rebroadcast by all sensors until it reaches leaves –Sensors pick parent and level when they hear query –Reselect parent after k silent epochs Query P:0, L: P:1, L:2 P:3, L:3 P:2, L:3 P:4, L:4

11/14/2002NEC Intro Illustration: Pipelined Aggregation SELECT COUNT(*) FROM sensors Depth = d

11/14/2002NEC Intro Illustration: Pipelined Aggregation Sensor # Epoch # Epoch 1 SELECT COUNT(*) FROM sensors

11/14/2002NEC Intro Illustration: Pipelined Aggregation Sensor # Epoch # Epoch 2 SELECT COUNT(*) FROM sensors

11/14/2002NEC Intro Illustration: Pipelined Aggregation Sensor # Epoch # Epoch 3 SELECT COUNT(*) FROM sensors

11/14/2002NEC Intro Illustration: Pipelined Aggregation Sensor # Epoch # Epoch 4 SELECT COUNT(*) FROM sensors

11/14/2002NEC Intro Illustration: Pipelined Aggregation Sensor # Epoch # Epoch 5 SELECT COUNT(*) FROM sensors

11/14/2002NEC Intro Discussion Result is a stream of values –Ideal for monitoring scenarios One communication / node / epoch –Symmetric power consumption, even at root New value on every epoch –After d-1 epochs, complete aggregation Given a single loss, network will recover after at most d-1 epochs With time synchronization, nodes can sleep between epochs, except during small communication window Note: Values from different epochs combined –Can be fixed via small cache of past values at each node –Cache size at most one reading per child x depth of tree

11/14/2002NEC Intro Testbench & Matlab Integration Positioned mica array for controlled studies –in situ programming –Localization (RF, TOF) –Distributed Algorithms –Distributed Control –Auto Calibration Out-of-band “squid” instrumentation NW Integrated with MatLab –packets -> matlab events –data processing –filtering & control

11/14/2002NEC Intro Acoustic Time-of-Flight Ranging Sounder/Tone Detect Pair Emit Sounder pulse and RF message Receiver uses message to arm Tone Detector Key Challenges –Noisy Environment –Calibration On-mote Noise Filter Calibration fundamental to “many cheap” regime »variations in tone frequency and amplitude, detector sensitivity Collect many pairs – 4-parameter model for each pair –T(A->B, x) = O A + O B + (L A + L B )x –O A, L A in message, O B, L B local no calibration: 76% error joint calibration: 10.1% error