middleware for wireless sensor networks n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Middleware for Wireless Sensor Networks PowerPoint Presentation
Download Presentation
Middleware for Wireless Sensor Networks

Loading in 2 Seconds...

play fullscreen
1 / 49

Middleware for Wireless Sensor Networks

1 Vues Download Presentation
Télécharger la présentation

Middleware for Wireless Sensor Networks

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Middleware for Wireless Sensor Networks By H. Momeni

  2. Middleware for Wireless Sensor Network Goals • The purpose of this presentation is: • find out the challenges with sensor network • Comparative investigation of several middlewares • Point out the limitations of present generation of middleware Of 49 Iran University of Science and Technology November 2006

  3. Middleware for Wireless Sensor Network Definition • Bridges the gap between applications and low-level constructs to facilitate the work of application developer and Hides complexity of a distributed system from user and developers Of 49 Iran University of Science and Technology November 2006

  4. Middleware for Wireless Sensor Network Common Architecture Application Application Middleware Middleware Network Operating system Operating system Hardware Hardware Of 49 Iran University of Science and Technology November 2006

  5. Middleware for Wireless Sensor Network The original goals of middleware • masking heterogeneity • networks, end-systems, OSs, programming languages • providing a useful distributed programming model • Providing Generic services • transparency CORBA, Java RMI, etc. have been very successful in this... business applications; legacy systems... Of 49 Iran University of Science and Technology November 2006

  6. Middleware for Wireless Sensor Network So, let’s apply the middleware concept more widely... • applications • eCommerce, • real-time, embedded • mobile agent systems • peer to peer platforms • mobile computing applications • underlying systems • PCs/ workstations • wireless PDAs • embedded devices • network processors • wireless, sensor, infrared etc. networks Of 49 Iran University of Science and Technology November 2006

  7. Middleware for Wireless Sensor Network A victim of its own success? • Provides different services: • transactions, fault-tolerance, persistence, load balancing, logging, real-time, …  complexity and unmanageability • prototypes arise to fill the gaps • asynchronous middleware, web services, mobility middleware, real-time/ multimedia middleware, …  muddleware • Heavyweight (Complexity in computation and storage) Of 49 Iran University of Science and Technology November 2006

  8. Middleware for Wireless Sensor Network middleware Challenges for WSN • Abstraction Support • Large number of heterogeneous sensors • Data Fusion • Various collected data • communication this data • Resource Constraints (lightweight) • Energy, Memory • Dynamic Topology, Environment, Application • Node mobility, node failure, communication failure Of 49 Iran University of Science and Technology November 2006

  9. Middleware for Wireless Sensor Network middleware Challenges …. (continued) • Application Knowledge • No generalized middleware duo to limited resource • Integrate application knowledge into the services provided • Programming Paradigm • Adaptability • Scalability • Security • QoS Support Locality transparency or context awareness? Of 49 Iran University of Science and Technology November 2006

  10. Middleware for Wireless Sensor Network Architecture boot, logging systemwide interfaces customized node‘s software different node hardware Of 49 Iran University of Science and Technology November 2006

  11. Middleware for Wireless Sensor Network Architecture Dynamic components Internal interface (generic middleware) Sensor application Of 49 Iran University of Science and Technology November 2006

  12. Middleware for Wireless Sensor Network Architecture Of 49 Iran University of Science and Technology November 2006

  13. Middleware for Wireless Sensor Network Approaches • Virtual Machine-based • contains VM, interpreter, • Mate, Magnet • Database-based • Virtual Database • easy to use interface • TinyDB, Cougar, SINA, Dsware • Modular programming • decomposition of application • Impala, Agilla Of 49 Iran University of Science and Technology November 2006

  14. Middleware for Wireless Sensor Network Approaches … • Application Driven • tune network on the basis of Requirement • MiLAN • Message oriented • use publish-subscribe mechanism • Mire • Event oriented • Request-reply, Garnet • Service oriented • Reflective, Flexible, Service-centric, Service oriented Of 49 Iran University of Science and Technology November 2006

  15. Impala

  16. CPU, Memory, Wireless Transceiver GPS Data Peer-to-Peer communication Protocol Data Base Station (car or plane) Data Middleware for Wireless Sensor Network Impala • Zebranet project (long term migration study of wildlife) • event based programming model Of 49 Iran University of Science and Technology November 2006

  17. Applications Impala Device Software Device Hardware ExternalUpdates Middleware for Wireless Sensor Network Impala Features • Code modularity • application adaptability and update • Fault tolerance • energy efficiency • long deployment time • Not data fusion • not heterogeneity Of 49 Iran University of Science and Technology November 2006

  18. Application A Application B ApplicationC Application D Initialize Query Packet Data Terminate Send Done Timer Application Adapter Application Updater Event Filter Packet Event Device Event Data Event Send Done Event Timer Event Middleware for Wireless Sensor Network Impala Architecture Of 49 Iran University of Science and Technology November 2006

  19. Mate

  20. Middleware for Wireless Sensor Network Mate • Virtual Machine on top of TinyOs • Stack-based architecture • Break down the program into small self-replication capsules(24 instructions) • Capsules are self-forwarding and self-propagation Of 49 Iran University of Science and Technology November 2006

  21. Middleware for Wireless Sensor Network Mate Features • Simple programming model • Small and concise model • High security • high energy consumption • Not flexible to support wide range of applications Of 49 Iran University of Science and Technology November 2006

  22. TinyDB

  23. Middleware for Wireless Sensor Network TinyDB • query processing • • Multiple concurrent queries • • Network monitoring (via queries) • • Extensible framework for attributes, • commands and aggregates Of 49 Iran University of Science and Technology November 2006

  24. Middleware for Wireless Sensor Network Sensor table Of 49 Iran University of Science and Technology November 2006

  25. Middleware for Wireless Sensor Network Example Of 49 Iran University of Science and Technology November 2006

  26. Middleware for Wireless Sensor Network TinyDB Features • reduce number of messages • Nice abstraction model • good aggregation model • Not much functionality Of 49 Iran University of Science and Technology November 2006

  27. Agilla

  28. (3,1) (3,2) (2,2) clone to (3,3) clone to (3,1) (1,3) Fire Detection Agent (1,1) Middleware for Wireless Sensor Network Agilla • Mobile agent base and Stack-based Architecture • move agent from one node to another • Two instruction to move (clone, move) • up to 4 agents can run on a node (3,3) Of 49 Iran University of Science and Technology November 2006

  29. Node @ (2,1) Node @ (1,1) Agents Agents migrate remote access Neighbor List Tuplespace Tuplespace Neighbor List Middleware Services Middleware Services Agilla Middleware Agilla Middleware TinyOS TinyOS Middleware for Wireless Sensor Network Agilla Architecture Of 49 Iran University of Science and Technology November 2006

  30. Middleware for Wireless Sensor Network • The tuple space is local and is shared by the agents residing on the node. • The neighbor list contains the address of all one-hop nodes • Agents can migrate carrying their code and state, but do not carry their own tuple spaces. • Agilla tuple spaces offer a shared memory model Of 49 Iran University of Science and Technology November 2006

  31. Middleware for Wireless Sensor Network Agilla Features • low energy consumption • Increase flexibility • reduce code size • low security • difficult to read and maintain programs Of 49 Iran University of Science and Technology November 2006

  32. MiLAN

  33. Low blood pressure Respiratory Rate 0.8 Blood Pressure 0.8 Blood O2 0.3 Blood O2 0.7 Heart Rate 0.8 0.3 0.3 Blood O2 Heart Rate 1.0 ECG Diagram 0.3 High Heart Rate Blood Pressure Normal Heart Rate Middleware for Wireless Sensor Network MiLAN • MiLAN is designed for personal health monitor application High respiratory rate Of 49 Iran University of Science and Technology November 2006

  34. Middleware for Wireless Sensor Network MiLAN • goals: - maximizing application lifetime - providing application QoS • MiLAN receives a description of application requirements through specialized graphs • MiLAN sits on top of multiple physical networks • convert commands to protocol-specific commands that are passed through the usual network protocol stack Of 49 Iran University of Science and Technology November 2006

  35. Middleware for Wireless Sensor Network MiLAN Architecture Of 49 Iran University of Science and Technology November 2006

  36. Middleware for Wireless Sensor Network MiLAN Architecture Of 49 Iran University of Science and Technology November 2006

  37. Middleware for Wireless Sensor Network QoS Support • The QoS of the different variables depends on which sensors provide data to the application • application performance can be described by the QoS of different variables of interest to the application • variables such as blood pressure, respiratory rate, and heart rate may be determined based on measurements obtained from any of several sensors Of 49 Iran University of Science and Technology November 2006

  38. Middleware for Wireless Sensor Network • MiLAN must know: • The variables of interest to the application • The required QoS for each variable • The level of QoS that data from each sensor or set of sensors can provide for each variable Blood pressure Heart rate 1.0 0.7 0.8 0.7 1.0 0.8 0.7 1.0 0.7 Blood pulse Blood press Blood flow Pulse oxy ECG Blood press Blood flow Pulse oxy Of 49 Iran University of Science and Technology November 2006

  39. Mire

  40. Middleware for Wireless Sensor Network Mire • publish/subscribe middleware • Provides high-level API that facilitates the development • implement a data aggregation service • Supplier publishes a message and forward to one or more subscribers • Key elements is notification service and buffer Of 49 Iran University of Science and Technology November 2006

  41. Middleware for Wireless Sensor Network Mire (continued) • Notification service informs subscribers when messages arrive • The communication between nodes has 3 phases • nodes in the network advertise their available topics (ec. temperature) • the advertised messages are routed to the sink node • user application connected to the sink node is able to select (i.e., subscribe) the desired advertised topics to be monitored • subscribe messages are broadcasted down to the network nodes • nodes are able to publish their collected data to the network Of 49 Iran University of Science and Technology November 2006

  42. Node Application Node Application MIRES Aggregation Service Routing ServiceN Routing Service Service 1 N Publish/subscribe service Operating System Sensors CPU Radio Middleware for Wireless Sensor Network Mire Architecture Of 49 Iran University of Science and Technology November 2006

  43. Middleware for Wireless Sensor Network Publish subscribe service Of 49 Iran University of Science and Technology November 2006

  44. Middleware for Wireless Sensor Network Topic advertisement sequence diagram Of 49 Iran University of Science and Technology November 2006

  45. Middleware for Wireless Sensor Network Topic subscription sequence diagram Of 49 Iran University of Science and Technology November 2006

  46. Middleware for Wireless Sensor Network Data publishing sequence diagram Of 49 Iran University of Science and Technology November 2006

  47. Middleware for Wireless Sensor Network Aggregation service in Mire Data is aggregated in order to reduce the number of transmission In this service each Node perform aggregation A. S. can be configured during the subscribe process Aggregation function & aggregation policy Of 49 Iran University of Science and Technology November 2006

  48. Middleware for Wireless Sensor Network Features Approaches VM DB Modular Application Message Of 49 Iran University of Science and Technology November 2006

  49. Middleware for Wireless Sensor Network Conclusion • There is not a method and tool to analysis and evaluation of Middleware in WSN • current middlewares can not be used for Real time applications • most of QoS Features can be apply to middleware specially dependability • Reliability • Achievability • Safety Of 49 Iran University of Science and Technology November 2006