240 likes | 417 Views
Analysis of Sensor Network Operation System Performance Throughout The Software Life Cycle. 9933107 動機 14 林昱彤 100062119 資工 15 王敬嘉. Outline. Introduction Goal Fair Comparison Hardware, OS selection Measurement Application description, M easurement approach Result Discussion
E N D
Analysis of Sensor Network Operation System Performance Throughout The Software Life Cycle 9933107 動機14 林昱彤 100062119 資工15 王敬嘉
Outline • Introduction • Goal • Fair Comparison • Hardware, OS selection • Measurement • Application description, Measurement approach • Result • Discussion • Conclusion 動機14 林昱彤
Introduction : What is WSN? 無線感測網路 • A system consisting of a collective of networked sensor nodes designed to intercommunicate via wireless radio. • sensor, processor, communication 1. 省電 網路 衛星其他傳輸媒介 2. 價格低廉 3. 體積小 Wireless Data Collector server 動機14 林昱彤 WSN region
Introduction : Background • Applicationdomains: • 軍事 • Challenge: • resource-constrained nature of WSN hardware platforms • dynamic operational environment 、商業、醫藥、安全和生態學等 動機14 林昱彤
Goal • the performance of the WSN operating systems • to make an informed choice when selecting an operating system for WSN developers software life cycle: 動機14 林昱彤
Fair Comparison : Hardware Platform • Tmote Sky is a TI MSP430-based hardware platform that provides a 16-bit microcontrollerclocked at 8MHz running on a 3V power supply. • TelosB has the hardware sensors for temperature, humidity and light. In addition, ithas a CC2420 802.15.4 radio chip for communication with neighbouring nodes. 動機14 林昱彤
Fair Comparison : OS Selection • Three criteria of selecting: • actively maintained and supported • support test platform:the Tmote Sky • Provide support for remote reprogramming 動機14 林昱彤
Fair Comparison : OS Selection • Tiny OS • Contiki OS • Lorien OS 動機14 林昱彤
OS Selection _ TinyOS • designed for networked embedded devices. • Advantages: • NesC: reduces the memory requirement • consumes less resources • Disadvantages: • does not preserve component structure after compilation • lack of available implementations • version-2.1.2 • used the built-in interfaces of TinyOS for sensing and radio communication 動機14 林昱彤
OS Selection _ Contiki OS • designed for use in WSNapplications which require support for IP-based communication. • Advantages: • supportsa wide range of hardware platforms • works with modular upgrading methodology • version-2.6 • use the pre-defined methods of Contiki for sensing and radio communication 動機14 林昱彤
OS Selection _ Lorien OS • Architecturalmodel similar to TinyOS • preserves its component-structure throughout the software life cycle • Advantages • well suited fordynamic operating environments • version-2.8.4 • Usethe built-in interfaces for sensing and radio communication 動機14 林昱彤
Application Description • Use 6 example Applications • From simple to complex • Use Sensor or not ? • Use Radioor not ? • The functions are complicated or not ? 資工15 王敬嘉
Application Description 資工15 王敬嘉
Measurement Approach • Development -> counting LOC • Use OS-specific software tool • Calculate each application 10 times <- Power Consumption 資工15 王敬嘉
Result _ Development • By counting the LOC (Lines of Code) • Tiny OS & Lorien : 70 linesavg/each app • Contiki : 39 lines avg/each app Contiki is best in rapid prototyping ! 資工15 王敬嘉
Result _ Execution : Memory • In flash ROM Converge! Tiny OS win! 資工15 王敬嘉
Result _ Execution : Memory • In RAM Lorien : overhead of compomentization Contiki : need Build-time optimisation Tiny OS the best ! 資工15 王敬嘉
Result _ Execution : Energy Contiki OS : consumes more energy ! Aggregate : sample sensor 5 times then transmit; use more radio 資工15 王敬嘉
Result _ Reconfiguration : Artefact Size Size of the binary artefact to be transmitted Tiny OS : need entire app to be transmitted poor in dynamic scenarios 資工15 王敬嘉
Result _ Reconfiguration : commands • Software reconfiguration : 2 steps • App artefact be injected into hardware platform • Hardware platform restart or new app artefact integrated with OS runtime • Tiny OS : 2 commands • Contiki : 2 commands • Lorien : 7 commands average • Lorien is much complex 資工15 王敬嘉
Discussion 資工15 王敬嘉
Discussion Bad (*) Average(**) Good(***) Tiny OS : for simple and static apps 資工15 王敬嘉
Conclusion • WSN apps remain as a challenge • Resource-constrained hardware platform • Dynamically changing application environment • Help WSN developers to select OS for WSN apps • Future Work • Explore dynamic optimisationof WSN OS • Design their own OS that combines all the benefits 資工15 王敬嘉