Presentation is loading. Please wait.

Presentation is loading. Please wait.

TOSSIM A simulator for TinyOS Presented at SenSys 2003 Presented by : Bhavana Presented by : Bhavana 16 th March, 2005.

Similar presentations


Presentation on theme: "TOSSIM A simulator for TinyOS Presented at SenSys 2003 Presented by : Bhavana Presented by : Bhavana 16 th March, 2005."— Presentation transcript:

1 TOSSIM A simulator for TinyOS Presented at SenSys 2003 Presented by : Bhavana Presented by : Bhavana 16 th March, 2005

2 Why Simulation for Sensor Networks? Sensor networks are : new, event-driven, large, deployed in remote locations Simulation provides : Controlled, Reproducible testing environment Controlled, Reproducible testing environment Cost – effective alternative Cost – effective alternative Means to explore and improve design space Means to explore and improve design space

3 Existing Simulation Tools ns-2 Packet Level network abstraction Packet Level network abstraction Does not model application behavior (not complete and inappropriate for sensor networks) Does not model application behavior (not complete and inappropriate for sensor networks) Others : SensorSim, EmStar, TOSSF, Proteus, Emstar TOSSF, Proteus, Emstar

4 TOSSIM – The Simulator TinyOS mote simulator TinyOS mote simulator Scales to thousands of nodes Scales to thousands of nodes Compiles directly from TinyOS source Compiles directly from TinyOS source Simulates network at bit level Simulates network at bit level Replaces hardware with software components Replaces hardware with software components Hardware interrupts are modeled as simulator events. Hardware interrupts are modeled as simulator events.

5

6 Goals of TOSSIM Scalability : able to handle large Scalability : able to handle large networks networks Completeness : capture complete system Completeness : capture complete system behavior behavior Fidelity : Capture behavior at a Fidelity : Capture behavior at a fine-grain fine-grain Bridging : the gap between Bridging : the gap between algorithms and implementation algorithms and implementation

7 Bridging ‘make sim’ instead of ‘make mica’ ‘make sim’ instead of ‘make mica’ Instrumented nesC compiler Instrumented nesC compiler Compile application code to TOSSIM or hardware platform as needed Compile application code to TOSSIM or hardware platform as needed No change to application required No change to application required Tested code can be deployed right away Tested code can be deployed right away

8 Scalability Individual mote resources very small Individual mote resources very small Static component memory model simplifies state management. Static component memory model simplifies state management.

9 Fidelity Emulating hardware at component level Emulating hardware at component level Bit-level simulation : capturing network at high fidelity Bit-level simulation : capturing network at high fidelity TOSSIM helped in debugging some TinyOS network stack problems TOSSIM helped in debugging some TinyOS network stack problems These problems were unnoticed during testbed deployment These problems were unnoticed during testbed deployment

10 Simulation Time Time at mote instruction cycle frequency Time at mote instruction cycle frequency 4 MHz = 4 x 10 6 ticks/second 4 MHz = 4 x 10 6 ticks/second e.g. 400 ticks between 10Kb radio interrupts e.g. 400 ticks between 10Kb radio interrupts Chosen as minimum value that allows accurate radio and system clock modeling Chosen as minimum value that allows accurate radio and system clock modeling

11 Radio Models Radio models external to TOSSIM Radio models external to TOSSIM Models network as a directed graph of bit error probabilities. Models network as a directed graph of bit error probabilities. Built-in models : “Simple”,” Static”, “Space” Built-in models : “Simple”,” Static”, “Space”

12 Communication Services Allows user to drive, monitor, debug simulation Allows user to drive, monitor, debug simulation Command/event interface Command/event interface Eg. TinyViz Eg. TinyViz

13 Network Simulation Most complex and fine grained component of TOSSIM Most complex and fine grained component of TOSSIM Almost perfect simulation of TinyOS networking stack at bit level Almost perfect simulation of TinyOS networking stack at bit level Combination of bit sampling and bit rate changes used for capturing the entire stack. Combination of bit sampling and bit rate changes used for capturing the entire stack.

14 Evaluation Fidelity Fidelity - radio noise - radio noise - packet interactions - packet interactions - subtle race conditions - subtle race conditions Completeness Completeness - Surge - TinyDB Scalability Scalability - CntToLeds - RfmToLeds - CntToRfm

15 Analysis of Surge

16 Scalability

17 Possible Enhancements CPU modeling : run-instantly model CPU modeling : run-instantly model Energy modeling Energy modeling Supporting thread based execution models Supporting thread based execution models Supporting heterogeneous platforms Supporting heterogeneous platforms Allowing Different mote applications to run at once Allowing Different mote applications to run at once

18 Summary TOSSIM simulates TinyOS applications for sensor networks TOSSIM simulates TinyOS applications for sensor networks The same code can be used both for simulation and testbed deployment The same code can be used both for simulation and testbed deployment It is scalable and extensible It is scalable and extensible Does not address energy profiling Does not address energy profiling Applicable only in TinyOS platform Applicable only in TinyOS platform

19 References www.tinyos.net www.tinyos.net www.tinyos.net UC Berkeley TOSSIM website : www.cs.berkeley.edu/~pal/research/tossim.html UC Berkeley TOSSIM website : www.cs.berkeley.edu/~pal/research/tossim.html EmTOS : http://lecs.cs.ucla.edu/~thanos/cs113EmTOS.ppt EmTOS : http://lecs.cs.ucla.edu/~thanos/cs113EmTOS.ppt http://lecs.cs.ucla.edu/~thanos/cs113EmTOS.ppt http://webs.cs.berkeley.edu/weekly/simulator.ppt http://webs.cs.berkeley.edu/weekly/simulator.ppt

20 Questions ?


Download ppt "TOSSIM A simulator for TinyOS Presented at SenSys 2003 Presented by : Bhavana Presented by : Bhavana 16 th March, 2005."

Similar presentations


Ads by Google