CS 443 Advanced OS Fabián E. Bustamante, Spring 2005 Implementing Software on Resource-Constrained Mobile Sensors: Experiences with Impala and ZebraNet.

Slides:



Advertisements
Similar presentations
A System Architecture for Tiny Networked Devices
Advertisements

IEEE INFOCOM 2004 MultiNet: Connecting to Multiple IEEE Networks Using a Single Wireless Card.
System Design Issues In Sensor Databases Qiong Luo and Hejun Wu Department of Computer Science and Engineering The Hong Kong University of Science & Technology.
Low-Power Interoperability for the IPv6 Internet of Things Presenter - Bob Kinicki Low-Power Interoperability for the IPv6 Internet of Things Adam Dunkels,
A 2 -MAC: An Adaptive, Anycast MAC Protocol for Wireless Sensor Networks Hwee-Xian TAN and Mun Choon CHAN Department of Computer Science, School of Computing.
Transmission Power Control in Wireless Sensor Networks CS577 Project by Andrew Keating 1.
Decentralized Reactive Clustering in Sensor Networks Yingyue Xu April 26, 2015.
Impala: A Middleware System for Managing Autonomic, Parallel Sensor Systems Ting Liu and Margaret Martonosi Princeton University.
Overview: Chapter 7  Sensor node platforms must contend with many issues  Energy consumption  Sensing environment  Networking  Real-time constraints.
PERFORMANCE MEASUREMENTS OF WIRELESS SENSOR NETWORKS Gizem ERDOĞAN.
Investigating Mac Power Consumption in Wireless Sensor Network
1 Introduction to Wireless Sensor Networks. 2 Learning Objectives Understand the basics of Wireless Sensor Networks (WSNs) –Applications –Constraints.
An Energy-Efficient MAC Protocol for Wireless Sensor Networks
PEDS September 18, 2006 Power Efficient System for Sensor Networks1 S. Coleri, A. Puri and P. Varaiya UC Berkeley Eighth IEEE International Symposium on.
Mica: A Wireless Platform for Deeply Embedded Networks Jason Hill and David Culler Presented by Arsalan Tavakoli.
Jason Hill, Robert Szewczyk, Alec Woo Spring 2000 TinyOS Operating System for Networked Sensors Networked SensorsSystem Structure Composing Components.
Generic Sensor Platform for Networked Sensors Haywood Ho.
A Survey of Energy efficient Network Protocols for Wireless Networks Presentation by – Sanjay Acharya Course – CS 898T Instructor – Dr. Chin-Chih Chang.
Generic Sensor Platform for Networked Sensors Haywood Ho.
Implementing Software on Resource- Constrained Mobile Sensors: Experience with Impala and ZebraNet Ting Liu Christopher M. Sadler Pei Zhang Margaret Martonosi.
1 Ultra-Low Duty Cycle MAC with Scheduled Channel Polling Wei Ye Fabio Silva John Heidemann Presented by: Ronak Bhuta Date: 4 th December 2007.
Hardware Design Experiences in ZebraNet [ZSLM04] - Princeton University Sensys ‘04 Presented By: Jay Taneja.
A Framework for Patient Monitoring A. L. Praveen Aroul, William Walker, Dinesh Bhatia Department of Electrical Engineering University of Texas at Dallas.
Introduction to TinyOS. Networking Open Experimental Platform Small microcontroller 8 kB code 512 B data Simple, low-power radio 10 kbps ASK EEPROM (32.
On the Energy Efficient Design of Wireless Sensor Networks Tariq M. Jadoon, PhD Department of Computer Science Lahore University of Management Sciences.
Key management in wireless sensor networks Kevin Wang.
1 Energy Efficient Communication in Wireless Sensor Networks Yingyue Xu 8/14/2015.
CS 423 – Operating Systems Design Lecture 22 – Power Management Klara Nahrstedt and Raoul Rivas Spring 2013 CS Spring 2013.
Avrora Scalable Sensor Simulation with Precise Timing Ben L. Titzer UCLA CENS Seminar, February 18, 2005 IPSN 2005.
Spring 2000, 4/27/00 Power evaluation of SmartDust remote sensors CS 252 Project Presentation Robert Szewczyk Andras Ferencz.
Presenter: Abhishek Gupta Dept. of Electrical and Computer Engineering
A System Architecture for Networked Sensors Jason Hill, Robert Szewczyk, Alec Woo, Seth Hollar, David Culler, Kris Pister
1 An Adaptive Energy-Efficient MAC Protocol for Wireless Sensor Networks The First ACM Conference on Embedded Networked Sensor Systems (SenSys 2003) November.
ZebraNet Hardware Design Experiences in ZebraNet Presented by Zuhal Tepecik.
TinyOS By Morgan Leider CS 411 with Mike Rowe with Mike Rowe.
Low-Power Wireless Sensor Networks
Power Save Mechanisms for Multi-Hop Wireless Networks Matthew J. Miller and Nitin H. Vaidya University of Illinois at Urbana-Champaign BROADNETS October.
Mohamed Hefeeda 1 School of Computing Science Simon Fraser University, Canada Video Streaming over Cooperative Wireless Networks Mohamed Hefeeda (Joint.
Security Patterns in Wireless Sensor Networks By Y. Serge Joseph October 8 th, 2009 Part I.
Introduction to Wireless Sensor Networks
1 XYZ: A Motion-Enabled, Power Aware Sensor Node Platform for Distributed Sensor Network Applications Presenter: James D. Lymberopoulos, A. Savvides.
Why Visual Sensor Network & SMAC Implementation Group Presentation Raghul Gunasekaran.
Work in Progress for Wireless Sensor Networks Yonghe Liu Dept. of Computer Science and Engineering The University of Texas at Arlington.
Advanced Computer Networks Fall 2013
System Architecture Directions for Networked Sensors Jason Hill, Robert Szewczyk, Alec Woo, Seth Hollar, David Culler, Kris Pister Presented by Yang Zhao.
System Architecture of Sensor Network Processors Alan Pilecki.
Data Logging Solution for Digital Signal Processors Brian Newberry Nekton Research, Inc. James M. Conrad University of North.
Minimizing Energy Consumption in Sensor Networks Using a Wakeup Radio Matthew J. Miller and Nitin H. Vaidya IEEE WCNC March 25, 2004.
William Stallings Data and Computer Communications
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
System Architecture Directions for Networked Sensors Jason Hill, Robert Szewczyk, Alec Woo, Seth Hollar, David Culler, Kris Pister Presenter: James.
Xiong Junjie Node-level debugging based on finite state machine in wireless sensor networks.
Adaptive Sleep Scheduling for Energy-efficient Movement-predicted Wireless Communication David K. Y. Yau Purdue University Department of Computer Science.
Link Layer Support for Unified Radio Power Management in Wireless Sensor Networks IPSN 2007 Kevin Klues, Guoliang Xing and Chenyang Lu Database Lab.
Autonomous prototype sensors (motes) 4 MHz, 8bit MCU, 4 KB RAM, 8KB ROM short-range (1-10ft.) radio light and other sensors LED and serial port outputs.
0.1 IT 601: Mobile Computing Wireless Sensor Network Prof. Anirudha Sahoo IIT Bombay.
System Architecture Directions for Networked Sensors.
Introduction to Wireless Sensor Networks
Power-Efficient Rendez- vous Schemes for Dense Wireless Sensor Networks En-Yi A. Lin, Jan M. Rabaey Berkeley Wireless Research Center University of California,
Oregon Graduate Institute1 Sensor and energy-efficient networking CSE 525: Advanced Networking Computer Science and Engineering Department Winter 2004.
Why does it need? [USN] ( 주 ) 한백전자 Background Wireless Sensor Network (WSN)  Relationship between Sensor and WSN Individual sensors are very limited.
Software Architecture of Sensors. Hardware - Sensor Nodes Sensing: sensor --a transducer that converts a physical, chemical, or biological parameter into.
Low-Power Interoperability for the IPv6 Internet of Things Presenter - Bob Kinicki Low-Power Interoperability for the IPv6 Internet of Things Adam Dunkels,
INTRODUCTION TO WIRELESS SENSOR NETWORKS
Sensor Networks Katia Obraczka Winter 2005 MAC II
Ting Liu Christopher M. Sadler Pei Zhang Margaret Martonosi
Ultra-Low Duty Cycle MAC with Scheduled Channel Polling
Bluetooth Based Smart Sensor Network
Energy-Efficient Computing for Wildlife Tracking
Investigating Mac Power Consumption in Wireless Sensor Network
Presentation transcript:

CS 443 Advanced OS Fabián E. Bustamante, Spring 2005 Implementing Software on Resource-Constrained Mobile Sensors: Experiences with Impala and ZebraNet Ting Liu, Christopher M. Sadler, Pei Zhang and Margaret Martonosi Princeton Univ. Appears in MobiSYS’04 Presented by: Lei Yang

2 Outline About ZebraNet Hardware & constraints Impala layers and interfaces Impala operation scheduling Impala event handling model Impala network interface Conclusions

3 Princeton ZebraNet Project Energy-aware mobile sensor network Track zebra migrations in Africa Status –January, 2004: 7 test collars deployed on zebras in Kenya. First data received: 1/19/2004 Next Step Refine collar design; switch to lower-energy GPS, merge Impala software update code into final collars

4 ZebraNet System Hardware Microcontroller TI MSP430F bit RISC 2KB RAM 60KB ROM 8MHz/32KHz dual clockFLASH ATMEL AT45DB041B 4Mbit 78 days data capacity GPS µ-blox GPS-MS1E 10-20s position fix timeRadio MaxStream 9Xstream MHz 19.2Kbps over-the-air 0.5-1mile transmit range Power supplies SPI 667Kbps USART 38.4Kbps USART 38.4Kbps Solar modules 5V3.3V Charging circuits

5 Hardware-Imposed Constraints on Software Components power consumption Constrains on system software –Memory constraint –Energy constraint –Device access constraint –Radio packet size constraint –FLASH storage constraint –GPS sensing time constraint System ModePower CPU at 32KHz9.6 mW CPU at 8MHz19.32 mW 8MHz w/ GPS568 mW 8MHz w/ radio transmit780 mW 8MHz w/ radio receive312.4 mW measured at 4.0 V

6 –Software adaptation for sensor network performance –Software update for sensor network deployment –Operation scheduling for regular operations –Event handling for irregular events –Network support for sensor network communications This Paper Implemented on ZebraNet PPoPP 2003 Prototyped on iPAQs Impala Overview ZebraNet’s middle layer, light weight OS Must support: AdapterUpdater Network Support Operation Scheduler Event Filter

7 Async. Network Transmission Protected FLASH Access Application Timer Control System Clock Time Read Impala Layers and Interfaces RadioGPSFLASHTimerCPUWDT Access and Control to All Devices Application 1Application 2Application 3Application 4 GPS Data Event Radio Packet Event Timer Event GPS Data Event Handler Application Timer Event Handler Network Packet Event Handler Network Send Done Event Handler AdapterUpdater Network Support Operation Scheduler Event Filter

8 Static Memory Requirement Each node has 2 KB RAM and 60 KB Flash, internal 4 Mbit (500KB) Flash, external

9 Impala Regular Operation Scheduling Use timers to trigger operations Node iterates through a cycle of send/receive data -> obtain GPS position -> sleep Networking Period GPS Sensing Period Sleep Period 1 CPU wake up/Radio, FLASH power on 2 Radio transmitting / receiving start 3 Network communication time 4 Radio power off/FLASH power off 5 GPS power on 6 GPS sensing time 7 GPS power off / FLASH power on 8 CPU sleep / FLASH power off

10 Hardware attributes & constraints –GPS-aided time calibration Simplifies operation synchronization –Prohibited simultaneous device operations Voltage regulation GPS and radio operations MUST alternate –Non-trivial radio wake-up time Affects network communication schedule –Potentially long GPS sensing time Async. Sensing operation –Components port sharing GPS and Flash can’t simultaneously –Stringent energy budget Battery can support 1 to 3 days Solar cell limited Low-energy, sleep phase Scheduling skips networking/GPS if low on energy Impala Regular Operation Scheduling, Cont.

11 Scheduling Overhead Scheduling TypeImpala Activity Time (cycles) CPU Scheduling To put CPU on the full-speed clock3127 To put CPU on the slow clock38 Radio and FLASH Scheduling To set up the first transmission time and turn on radio and FLASH 50 ms To set up the next transmission time260 To set up the network cleanup time265 To clean up incomplete network messages, power off radio and FLASH, and set up the next networking period 11 ms GPS Scheduling To initiate GPS sensing and set up its finish time1247 To format GPS data, power off GPS, signal an GPS data event, and set up the next GPS sensing period 2550

12 Impala (Irregular) Event Handling Impala Abstract Application Events Miscellaneous Hardware Interrupts Issue One: Event Abstraction High Priority Events Low Priority Events EventSignalerEventHandler Issue Three: Event Prioritization Short / atomic hardware interrupts Long / preemptive software events Idle Issue Two: Concurrency

13 Impala (Irregular) Event Handling Four types of abstract events

14 Impala (Irregular) Event Handling Cont. Impala Abstract Application Events Miscellaneous Hardware Interrupts Issue One: Event Abstraction High Priority Events Low Priority Events EventSignalerEventHandler Issue Three: Event Prioritization Short / atomic hardware interrupts Long / preemptive software events Idle Issue Two: Concurrency

15 Impala (Irregular) Event Handling Cont. Impala Abstract Application Events Miscellaneous Hardware Interrupts Issue One: Event Abstraction High Priority Events Low Priority Events EventSignalerEventHandler Issue Three: Event Prioritization Short / atomic hardware interrupts Long / preemptive software events Idle Issue Two: Concurrency

16 Event Handling Overhead Impala Activity in Event HandlingTime To deliver and remove a network packet event88 cycles To deliver and remove an application timer event16 cycles To deliever and remove a GPS data event17 cycles

17 Impala Network Interface P2P communication Pairwise store-n-forward routing Session-based message model –Session-based transport control –A session can be 1 to 32KB –Unicast, multicast, broadcast –Data from FLASH or RAM –Acknowledgment or not –Connectionless –Asynchronous –Send session queue –Receive session queue

18 Impala Network Interface, Cont. MAC & Transport control –MAC: round-robin timeslots (w/ GPS-aided time synchronization) –Transport control: detect packet loss and retransmit –Unified: reduce data copy and overhead across protocol layers A sends packet 1-8 ABCDABC D ABC D A sends packet 1-8 to B, C, and D B acks packet 1-8 C acks packet 1-4 D silent B acks packet 1-8 C acks packet 1-4 D acks packet 1-8 A gives up C and sends packet 9-16 B acks packet 9-16 C acks packet 1-4 D acks packet 9-16

19 Network Interface Performance Packet reception processing overhead Packet transmission processing overhead By system components

20 Network Interface Performance Communication overhead by packet headers Header size and payload size for different packet types

21 Network Interface Performance Communication latency in reliable multicast Observed data delivery latencies for different number of destinations and different packet loss rates

22 Conclusions Hardware -> Impala middle layer -> applications Regular operation scheduling, –Achieve maximum energy conservation Irregular event handling, –Ensure activity concurrency and prioritization Efficient network interface –Large messages transferred over small radio packets –Support multiple message models Concrete experience with real system and application –Software design challenges with hardware constraints –Valuable to other wireless sensor network research