Slide 1/14 Midsens ’09 – December 1, 2009 Lightweight Tracing For Wireless Sensor Networks Debugging Vinaitheerthan Sundaram*, Patrick Eugster, Xiangyu.

Slides:



Advertisements
Similar presentations
Decentralized Reactive Clustering in Sensor Networks Yingyue Xu April 26, 2015.
Advertisements

Presented by : Poorya Ghafoorpoor Yazdi Eastern Mediterranean University Mechanical Engineering Department Master Thesis Presentation Eastern Mediterranean.
Introduction to Wireless Sensor Networks
CSE 5392By Dr. Donggang Liu1 CSE 5392 Sensor Network Security Introduction to Sensor Networks.
Range-Free Sensor Localization Simulations with ROCRSSI-based Algorithm Matt Magpayo
Dynamic Data Compression in Multi-hop Wireless Networks Abhishek B. Sharma (USC) Collaborators: Leana Golubchik Ramesh Govindan Michael J. Neely.
Wireless Sensor Networks: An overview and experiences. Matthew Grove PEDAL Seminar Series, January 9th 2008.
Securing Wireless Sensor Networks Wenliang (Kevin) Du Department of Electrical Engineering and Computer Science Syracuse University.
FIND: Faulty Node Detection for Wireless Sensor Networks Shuo Guo, Ziguo Zhong and Tian He University of Minnesota, Twin Cities.
1 Introduction to Wireless Sensor Networks. 2 Learning Objectives Understand the basics of Wireless Sensor Networks (WSNs) –Applications –Constraints.
Murat Demirbas Youngwhan Song University at Buffalo, SUNY
Beneficial Caching in Mobile Ad Hoc Networks Bin Tang, Samir Das, Himanshu Gupta Computer Science Department Stony Brook University.
1 Cross-Layer Scheduling for Power Efficiency in Wireless Sensor Networks Mihail L. Sichitiu Department of Electrical and Computer Engineering North Carolina.
A Survey of Wireless Sensor Network Data Collection Schemes by Brett Wilson.
Wireless Sensor Network Security Anuj Nagar CS 590.
Winter Retreat Connecting the Dots: Using Runtime Paths for Macro Analysis Mike Chen, Emre Kıcıman, Anthony Accardi, Armando Fox, Eric Brewer
Wireless Sensor Networks Smart Environments: Technologies, Protocols, and Applications ed. D.J. Cook and S.K. Das, John Wiley, New York, B.Devi
Wireless Video Sensor Networks Vijaya S Malla Harish Reddy Kottam Kirankumar Srilanka.
Introduction To Wireless Sensor Networks Wireless Sensor Networks A wireless sensor network (WSN) is a wireless network consisting of spatially distributed.
Presenter: Chi-Hung Lu 1. Problems Distributed applications are hard to validate Distribution of application state across many distinct execution environments.
Sensor Networks Storage Sanket Totala Sudarshan Jagannathan.
1 Secure Cooperative MIMO Communications Under Active Compromised Nodes Liang Hong, McKenzie McNeal III, Wei Chen College of Engineering, Technology, and.
Qing Cao, Tarek Abdelzaher(UIUC), John Stankovic, Kamin Whitehouse (UVA), Liqian Luo (MSR)
DESIGN & IMPLEMENTATION OF SMALL SCALE WIRELESS SENSOR NETWORK
An Introduction Table Of Context Sensor Network PreviewRouting in Sensor NetworksMobility in Sensor Networks Structure and characteristics of nodes and.
Rapid Development and Flexible Deployment of Adaptive Wireless Sensor Network Applications Chien-Liang Fok, Gruia-Catalin Roman, Chenyang Lu
Microcontroller-Based Wireless Sensor Networks
1 Securing Wireless Sensor Networks Wenliang (Kevin) Du Department of Electrical Engineering and Computer Science Syracuse University Excerpted from
Work partially supported by: National Science Foundation SeNDORComm: An Energy Efficient Priority-Driven Communication Layer for Wireless Sensor Networks.
Introduction to Wireless Sensor Networks
Multi-hop-based Monte Carlo Localization for Mobile Sensor Networks
Multi-Resolution Spatial and Temporal Coding in a Wireless Sensor Network for Long-Term Monitoring Applications You-Chiun Wang, Member, IEEE, Yao-Yu Hsieh,
Lan F.Akyildiz,Weilian Su, Erdal Cayirci,and Yogesh sankarasubramaniam IEEE Communications Magazine 2002 Speaker:earl A Survey on Sensor Networks.
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.
Query Aggregation for Providing Efficient Data Services in Sensor Networks Wei Yu *, Thang Nam Le +, Dong Xuan + and Wei Zhao * * Computer Science Department.
Rendezvous Regions: A Scalable Architecture for Service Location and Data-Centric Storage in Large-Scale Wireless Sensor Networks Karim Seada, Ahmed Helmy.
Wireless Sensor Mote (TelosB) Ultra low-power wireless module –for sensor networks, monitoring app, rapid prototyping Key Features –2.4GHz radio,
Wireless Sensor Network (WSN). WSN - Basic Concept WSN is a wireless network consisting of spatially distributed autonomous devices using sensors to cooperatively.
A Survey on Sensor Networks Hussein Alzoubi Rami Alnamneh
Secure In-Network Aggregation for Wireless Sensor Networks
Computer Science 1 TinySeRSync: Secure and Resilient Time Synchronization in Wireless Sensor Networks Speaker: Sangwon Hyun Acknowledgement: Slides were.
Robust Systems. Faults at James Reserve Faults on a volcano in Ecuador [WLJ + 06]
Xiong Junjie Node-level debugging based on finite state machine in wireless sensor networks.
Lecture 8: Wireless Sensor Networks
Efficient Diagnostic Tracing For Wireless Sensor Networks Vinaitheerthan Sundaram Patrick Eugster Xiangyu Zhang ACM SenSys 2010.
Tufts Wireless Laboratory School Of Engineering Tufts University Paper Review “An Energy Efficient Multipath Routing Protocol for Wireless Sensor Networks”,
Cross-Layer Scheduling for Power Efficiency in Wireless Sensor Networks Mihail L. Sichitiu Department of Electrical and Computer Engineering North Carolina.
Aggregation and Secure Aggregation. Learning Objectives Understand why we need aggregation in WSNs Understand aggregation protocols in WSNs Understand.
Energy Efficient Data Management for Wireless Sensor Networks with Data Sink Failure Hyunyoung Lee, Kyoungsook Lee, Lan Lin and Andreas Klappenecker †
Cross-Layer Scheduling for Power Efficiency in Wireless Sensor Networks Mihail L. Sichitiu Department of Electrical and Computer Engineering North Carolina.
Bin Xin, Patrick Eugster, Xiangyu Zhang Dept. of Computer Science Purdue University {xinb, peugster, Lightweight Task Graph Inference.
1 Software Reliability in Wireless Sensor Networks (WSN) -Xiong Junjie
Introduction to Wireless Sensor Networks
Wireless Sensor Networks
Aggregation and Secure Aggregation. [Aggre_1] Section 12 Why do we need Aggregation? Sensor networks – Event-based Systems Example Query: –What is the.
Adaptable and Reactive Security for Wireless Sensor Networks John A. Stankovic Department of Computer Science University of Virginia.
Unpredictable Software-based Attestation Solution for Node Compromise Detection in Mobile WSN Xinyu Jin 1 Pasd Putthapipat 1 Deng Pan 1 Niki Pissinou 1.
Gorilla: A Fast, Scalable, In-Memory Time Series Database
Lecture 8: Wireless Sensor Networks By: Dr. Najla Al-Nabhan.
- Pritam Kumat - TE(2) 1.  Introduction  Architecture  Routing Techniques  Node Components  Hardware Specification  Application 2.
Wireless sensor networks: a survey
In the name of God.
Lazy Preemption to Enable Path-Based Analysis of Interrupt-Driven Code
Wireless Sensor Networks
PREGEL Data Management in the Cloud
Introduction to Wireless Sensor Networks
Supporting Fault-Tolerance in Streaming Grid Applications
Securing Wireless Sensor Networks
Lecture 3: Wireless Sensor Networks
Presentation transcript:

Slide 1/14 Midsens ’09 – December 1, 2009 Lightweight Tracing For Wireless Sensor Networks Debugging Vinaitheerthan Sundaram*, Patrick Eugster, Xiangyu Zhang School of Electrical and Computer Engineering* Department of Computer Science Purdue University Work supported by: National Science Foundation

Slide 2/14 Midsens ’09 – December 1, 2009 Talk Outline Motivation and Problem Setup Lightweight Tracing Compression Techniques Example Traces Evaluation Related Work Summary and Future Work

Slide 3/14 Midsens ’09 – December 1, 2009 Introduction to WSNs Wireless Sensor Networks (WSNs) –Consists of many tiny, battery powered, wireless motes –Cooperatively monitors physical or environmental conditions such as temperatures, sound, vibration, pressure, etc. WSNs have many useful applications –Habitat monitoring, Military Surveillance, Volcano Monitoring, Glacier Monitoring However, WSNs have not been widely deployed in large-scale yet mainly because of poor reliability Developing reliable WSN applications is very challenging

Slide 4/14 Midsens ’09 – December 1, 2009 WSN Debugging Challenges Challenges in debugging and maintaining WSN applications are –inherent resource constraints –in-situ deployment in harsh environments –lack of run-time support tools Run-time debugging tools are especially required because –Unexpected interaction with the real-world environment lead to complex run-time faults such as race-conditions Replay Debugging is a powerful debugging technique for distributed systems[Geels-Usenix06] To support replay, we need a light-weight tracing mechanism

Slide 5/14 Midsens ’09 – December 1, 2009 Lightweight Tracing Framework Novel control flow tracing and encoding scheme –Enables replay debugging –Identifies repetitive computation, thus enabling high compression Lightweight –We show it satisfies the stringent resource constraints Trace Storage –Supports storing the trace in non-volatile Flash memory –Least recent trace is overwritten Trace Query –Support simple query mechanism that sends the trace data to the base station upon request

Slide 6/14 Midsens ’09 – December 1, 2009 Ball-Larus Algorithm With Example Label each control- flow path with an unique identifier Inserts increments only when there is a fork in control- flow graph (conditional or loops)

Slide 7/14 Midsens ’09 – December 1, 2009 Lightweight Tracing Instrumentation –Annotate procedure P with BL path count –Instrument procedure P to record start of P end of P and pathCount atomically Tracer –Assign unique identifier for procedure P’s every invocation procLabel = procID + sessionID –Record trace in local buffers –When a buffer is full, compress and store it in flash Compression –Simple, Pattern Replacement and Loop Compression

Slide 8/14 Midsens ’09 – December 1, 2009 Lightweight Tracing Compression Simple Compression –Combine start and end symbols of a procedure if the procedure was not interrupted Pattern Replacement –WSN applications repeats same sequence of procedures –Represent these sequences with special symbols –Can significantly reduce the trace size –Control-flow encoding helps us identify it Loop Compression –Since loops follow identical paths in many iterations, represent these with path id and repetition count

Slide 9/14 Midsens ’09 – December 1, 2009 Trace Example: Surge Application 64, 48, 5, 32, 5, 16, 5, 336, 5, 5, 0, 96, 80, 5, 5, 176, 160, 5, 133, 256, 5, 240, 224, 5, 208, 5, 192, 5, [21, 112, 5, 176, 160, 5, 133, 256, 5, 240, 224, 5, 208, 5, 192, 5], [21, 112, 5, 176, 160, 5, 133, 256, 5, 240, 224, 5, 208, 5, 192, 5], [21, 112, 5, 176, 160, 5, 133, 256, 5, 240, 224, 5, 208, 5, 192, 5], [21, 112, 5, 176, 160, 5, 133, 256, 5, 240, 224, 5, 208, 5, 192, 5], 21, 112, 5 Surge Application –a typical data-collection application in TinyOS that samples light sensor every 2 seconds and sends the sensed data to the base station using multihop routing layer First 20 seconds of trace 64, 48, 5, 32, 5, 16, 5, 336, 5, 5, 0, 96, 80, 5, 5, 176, 160, 5, 133, 256, 5, 240, 224, 5, 208, 5, 192, 5, [200], [200], [200], [200], 21, 112,5 21, 112, 5, 176, 160, 5, 133, 256, 5, 240, 224, 5, 208, 5, 192, 5 => 200

Slide 10/14 Midsens ’09 – December 1, 2009 Pretty-Printed Trace start end 0 start end 0 start end 0 start end 0 start end 0 [Continued on the right side] start end 0 end 8 start end 0 start end 0 start end 0 start end 0 end 1 start end 0 start Start up Trace in Surge Repeating Patterns in Surge

Slide 11/14 Midsens ’09 – December 1, 2009 Evaluation Case Study - CC1000 Radio Deadlock Runtime Overhead –Benchmark Programs: Blink – Simple application but highlights overhead Surge – Typical WSN application with period 2 seconds Oscilloscope – Timer fires every 125 ms and can generate a lot of trace –Metrics: Trace Size, Program Memory, Data Memory –Compression efficiency is measured using Space-Savings Ratio Space saving ratio = (Uncompressed – Compressed) / Uncompressed Our results indicate –Traces can be highly compressed as much as 91.74% –Trace size varies from 1KB/Hr to 50KB/Hr –Low memory footprint about 300B –Low program memory about (5KB)

Slide 12/14 Midsens ’09 – December 1, 2009 Evaluation : Results

Slide 13/14 Midsens ’09 – December 1, 2009 Related Work Automating Debugging –Tracing but no control-flow traces ONodeMD [Krunic et al., Mobisys ‘07], EnviroLog [Luo et al., Infocom ‘06], DustMiner [Khan et al., SenSys ‘08], Checkpointing [Osterlind et al., EWSN ‘09] –Focuses on node, link or network failures only Sympathy [Ramanathan et al., SenSys ‘05], PAD [Liu et al., Sensys ‘08] –Debugging interface or error detection but not diagnosis Declarative TracePoints [Cao et al. SenSys ‘08], HSEND [Herbert et al., TAAS ‘06] Visibility –Remote access and control but very expensive Clairvoyant [Yang et al. SenSys ‘08], Marionette [Whitehouse et al., IPSN ‘06] Program Analysis –Testing or program comprehension but not tracing [Lai et al., FSE ‘08], [Kothari et al. IPSN ‘08]

Slide 14/14 Midsens ’09 – December 1, 2009 Summary and Future Work We showed program tracing can be done efficiently and accurately in WSN through –Novel trace encoding and compression schemes We are exploring multiple aspects –Trace size reduction through Inter-procedural tracing Unrolling of loops LZW compression schemes –Multi-node Tracing –Query Support for portions of trace