ATSN'09, Budapest, 12 May 2009 1 MAPS: A Mobile Agent Platform for WSNs based on Java Sun Spots F. Aiello, Giancarlo Fortino, R. Gravina, A. Guerrieri.

Slides:



Advertisements
Similar presentations
Understanding Code Mobility
Advertisements

Maximum Battery Life Routing to Support Ubiquitous Mobile Computing in Wireless Ad Hoc Networks By C. K. Toh.
Decentralized Reactive Clustering in Sensor Networks Yingyue Xu April 26, 2015.
1 Message Oriented Middleware and Hierarchical Routing Protocols Smita Singhaniya Sowmya Marianallur Dhanasekaran Madan Puthige.
Sensor Network Platforms and Tools
Presented by: Thabet Kacem Spring Outline Contributions Introduction Proposed Approach Related Work Reconception of ADLs XTEAM Tool Chain Discussion.
The road to reliable, autonomous distributed systems
Semantic Web Based Architecture for Managing Hardware Heterogeneity in Wireless Sensor Network Authors: Sinisa Nikolić, MSc Valentin Penca, MSc Milan Segedinac,
Context-based Information Sharing and Authorization in Mobile Ad Hoc Networks Incorporating QoS Constraints Sanjay Madria, Missouri University of Science.
Sensor Grid: Integration of Wireless Sensor Networks and the Grid Authors: Hock Beng Lim, Yong Meng Teo, Protik Mukherjee, Vihn The Lam, Weng Fai Wong,
Towards I-Space Ninja Mini-Retreat June 11, 1997 David Culler, Steve Gribble, Mark Stemm, Matt Welsh Computer Science Division U.C. Berkeley.
Mobile Agents: A Key for Effective Pervasive Computing Roberto Speicys Cardoso & Fabio Kon University of São Paulo - Brazil.
A New Household Security Robot System Based on Wireless Sensor Network Reporter :Wei-Qin Du.
ATSN 2009 Towards an Extensible Agent-based Middleware for Sensor Networks and RFID Systems Dirk Bade University of Hamburg, Germany.
Smart-Sensor Infrastructure in the IPAC Architecture V.Tsetsos 1, V. Papataxiarhis 1, F.Kontos 1, P.Patelis 2, S.Hadjiefthymiades 1, E.Fytros 2, L.Liotti.
Autonomic Wireless Sensor Networks: Intelligent Ubiquitous Sensing G.M.P. O’Hare, M.J. O’Grady, A. Ruzzelli, R. Tynan Adaptive Information Cluster (AIC)
Scenario Based Interaction Model for a Mobile Agent System
Managing Agent Platforms with the Simple Network Management Protocol Brian Remick Thesis Defense June 26, 2015.
AgentOS: The Agent-based Distributed Operating System for Mobile Networks Salimol Thomas Department of Computer Science Illinois Institute of Technology,
Supervisor: Mr. Hai Vortman. The ultimate goal Creating a wireless sensor network using Bluetooth technology.
Winter Retreat Connecting the Dots: Using Runtime Paths for Macro Analysis Mike Chen, Emre Kıcıman, Anthony Accardi, Armando Fox, Eric Brewer
1 FM Overview of Adaptation. 2 FM RAPIDware: Component-Based Design of Adaptive and Dependable Middleware Project Investigators: Philip McKinley, Kurt.
Wireless Video Sensor Networks Vijaya S Malla Harish Reddy Kottam Kirankumar Srilanka.
1 Energy Efficient Communication in Wireless Sensor Networks Yingyue Xu 8/14/2015.
Mobile Agents in Wireless Sensor Networks Ivan Vukasinovic Zoran Babovic Goran Rakocevic.
©Ian Sommerville 2006Software Engineering, 8th edition. Chapter 12 Slide 1 Distributed Systems Architectures.
An Introduction Table Of Context Sensor Network PreviewRouting in Sensor NetworksMobility in Sensor Networks Structure and characteristics of nodes and.
Tufts Wireless Laboratory School Of Engineering Tufts University “Network QoS Management in Cyber-Physical Systems” Nicole Ng 9/16/20151 by Feng Xia, Longhua.
An Example Use Case Scenario
Mobile Agent Technology for the Management of Distributed Systems - a Case Study Claudia Raibulet& Claudio Demartini Politecnico di Torino, Dipartimento.
International Conference on Software Engineering 2007
Active Monitoring in GRID environments using Mobile Agent technology Orazio Tomarchio Andrea Calvagna Dipartimento di Ingegneria Informatica e delle Telecomunicazioni.
An Integration Framework for Sensor Networks and Data Stream Management Systems.
Rapid Development and Flexible Deployment of Adaptive Wireless Sensor Network Applications Chien-Liang Fok, Gruia-Catalin Roman, Chenyang Lu
Mobile Relay Configuration in Data-Intensive Wireless Sensor Networks.
IntroductionRelated work 2 Contents Publish/Subscribe middleware Conclusion and Future works.
Intelligent Database Systems Lab 國立雲林科技大學 National Yunlin University of Science and Technology 1 Wireless Sensor Network Wireless Sensor Network Based.
Middleware for FIs Apeego House 4B, Tardeo Rd. Mumbai Tel: Fax:
MOBILE AGENTS What is a software agent ? Definition of an Agent (End-User point of view): An agent is a program that assists people and acts on their behalf.
Overview  Introduction  Sensor Network Management  Type of Sensor Network Management Model  UPnP-Based Sensor Network Management  Future Works/Plans.
Understanding Code Mobility A Fuggetta, G P Picco and G Vigna Presenter Samip Bararia.
Hwajung Lee.  Interprocess Communication (IPC) is at the heart of distributed computing.  Processes and Threads  Process is the execution of a program.
Mobile Agents For Mobile Computing Department Of Computer Science – Dartmouth College Robert Gray David Kotz Saurab Nog Daniela Rus George Cybenko.
Abstract A Structured Approach for Modular Design: A Plug and Play Middleware for Sensory Modules, Actuation Platforms, Task Descriptions and Implementations.
Richard Tynan, G.M.P. O’Hare, Michael O’Grady & Conor Muldoon School of Computer Science & Informatics University College Dublin Ireland.
Tufts Wireless Laboratory School Of Engineering Tufts University Paper Review “An Energy Efficient Multipath Routing Protocol for Wireless Sensor Networks”,
Internet of Things. IoT Novel paradigm – Rapidly gaining ground in the wireless scenario Basic idea – Pervasive presence around us a variety of things.
Aglets Based on Mobile Agents with Java: The Aglet API by Danny B. Lange and Mitsuru Oshima.
Link Layer Support for Unified Radio Power Management in Wireless Sensor Networks IPSN 2007 Kevin Klues, Guoliang Xing and Chenyang Lu Database Lab.
Institute for Visualization and Perception Research 1 © Copyright 1999 Haim Levkowitz Java-based mobile agents.
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.
Energy-Efficient Protocol for Cooperative Networks.
Wireless Sensor Networks
Problem On a regular basis we use: –Java applets –JavaScript –ActiveX –Shockwave Notion of ubiquitous computing.
Third International Workshop on Networked Appliance 2001 SONA: Applying Mobile Agent to Networked Appliance Control S.Aoki, S.Makino, T.Okoshi J.Nakazawa.
C ONTEXT AWARE SMART PHONE YOGITHA N. & PREETHI G.D. 6 th SEM, B.E.(C.S.E) SIDDAGANGA INSTITUTE OF TECHNOLOGY TUMKUR
Efficient Opportunistic Sensing using Mobile Collaborative Platform MOSDEN.
Source : 2014 IEEE Ninth International Conference on Intelligent Sensors, Sensor Networks and Information Processing (ISSNIP) Auther : Nacer Khalil, Mohamed.
Software Architecture of Sensors. Hardware - Sensor Nodes Sensing: sensor --a transducer that converts a physical, chemical, or biological parameter into.
Introduction to Mobile-Cloud Computing. What is Mobile Cloud Computing? an infrastructure where both the data storage and processing happen outside of.
Towards a High Performance Extensible Grid Architecture Klaus Krauter Muthucumaru Maheswaran {krauter,
Mohd Rozaini Bin Abd Rahim, Norsheila Fisal, Rozeha A
#01 Client/Server Computing
Bluetooth Based Smart Sensor Network
Mobile Agents.
Unit V Mobile Middleware.
Sensor Networks – Motes, Smart Spaces, and Beyond
In Distributed Systems
Self-Managed Systems: an Architectural Challenge
#01 Client/Server Computing
Presentation transcript:

ATSN'09, Budapest, 12 May MAPS: A Mobile Agent Platform for WSNs based on Java Sun Spots F. Aiello, Giancarlo Fortino, R. Gravina, A. Guerrieri Department of Electronics, Informatics and Systems (DEIS) University of Calabria, Rende (CS), ITALY

ATSN'09, Budapest, 12 May Motivations and Objectives  Wireless Sensor Networks (WSNs) are emerging as powerful platforms for distributed embedded computing supporting a variety of high-impact applications  However programming WSNs is a complex task due to the limited capabilities and energy resources of each sensor node as well as the lack of reliability of the radio channel.  Moreover, WSN programming is usually application-specific (or sometimes domain-specific) and requires tradeoffs in terms of task complexity, resource usage, and communication patterns. Therefore the developed software which usually integrates routing mechanisms, time synchronization, node localization and data aggregation is tightly dependent on the specific application and scarcely reusable. 2

ATSN'09, Budapest, 12 May Motivations and Objectives  Thus to support rapid development and deployment of flexible WSN applications, WSN-aware programming paradigms are needed which directly provide proactive and on-demand code deployment at run-time as well as ease software programming at application, middleware and network layer.  Among the programming paradigms proposed for the development of WSN applications, the mobile agent-based paradigm, which has already demonstrated its effectiveness in conventional distributed systems as well as in highly dynamic distributed environments, can effectively deal with the programming issues that WSNs have posed.  We believe that mobile agents can provide more benefits in the context of WSNs than in conventional distributed environments. 3

ATSN'09, Budapest, 12 May Motivations and Objectives  The objective of this paper is twofold:  we motivate the use of mobile agents as enabling paradigm and technology for WSNs due to their distinctive features able to effectively and efficiently deal with WSN network dynamism and constrained resources.  we propose the design of a Java-based lightweight mobile agent-based framework for WSNs which provide a flexible and extensible distributed programming environment for WSN applications and services. 4

ATSN'09, Budapest, 12 May Outline  Mobile Agents in WSNs: restyling the 7 good reasons  Related Work  A Mobile Agent-based Framework for WSNs: architecture and programming model  A simple programming example  Performance evaluation  Conclusions and on-going work

ATSN'09, Budapest, 12 May Mobile Agents in WSNs  Mobile agents are a distributed computing paradigm particularly suitable for supporting the development of distributed applications, services, and protocols in conventional distributed systems as well as in highly dynamic distributed environments.  A mobile agent is a software process able to migrate from one computing node to another by retaining its execution state.  As advertised by Lange and Oshima in their seminal paper, there are at least 7 good reasons ( Network load reduction, Network latency overcoming, Protocol encapsulation, Asynchronous and autonomous execution, Dynamic adaptation, Orientation to heterogeneity, Robustness and fault-tolerance ) to use mobile agents

ATSN'09, Budapest, 12 May Mobile Agents in WSNs: 7 good reasons  Network load reduction Mobile agents can access remote resources (e.g. databases, data repositories, sensors) or communicate with remote mobile/stationary agents or with other software components, by moving to their locations and interacting with them locally so saving network resources such as bandwidth during the interaction phase.  An example: “A sensor node periodically transmits the sensed data to a sink node which, in turn, processes them to extract some aggregated information”. The transmission of the sensed data from the sensor node to the sink node consumes bandwidth in the path from the sensor node to the sink node (this effect is much more remarkable in multi-hop paths than in single-hop paths). A mobile agent incorporating the data processing algorithm can migrate to the sensor node and locally apply this algorithm so reducing bandwidth consumption. Finally, the mobile agent should also transmit the aggregated data to the sink node but, in this case, the consumed bandwidth is much lower than the bandwidth needed for the transmission of raw sensed data.

ATSN'09, Budapest, 12 May Mobile Agents in WSNs: 7 good reasons  Asynchronous and autonomous execution Asynchrony and autonomy are distinctive properties of mobile agents. Once injected into the network, mobile agents can autonomously carry out the programmed tasks and support disconnected operations by operating asynchronously with respect to the process or device that has generated them. These properties are very important in dynamic environments where the network topology rapidly changes and connections are not stable so that they can be established only for short time periods.  An example: “Periodically the WSN manager queries all the nodes (or a node subset) of its WSN to have a snapshot of the energy consumption”.  To this purpose, a mobile agent, spawn by the manager, can autonomously travel across the network to gather the requested information “node by node” and, finally, asynchronously report this information to its owner.

ATSN'09, Budapest, 12 May Mobile Agents in WSNs: 7 good reasons  Robustness and fault-tolerance As mobile agents possess the ability to react dynamically to unfavorable situations and unexpected events, they can support the construction of robust and fault tolerant distributed systems.  An example: “A sensor node is going to be shut down due to uncharged batteries so the sensing activity should be activated on a neighbor sensor node at run-time”.  All the mobile agents executing on the uncharged sensor node can (autonomously or passively) migrate to another equivalent node (already present or newly introduced) so continuing their activity after migration.

ATSN'09, Budapest, 12 May Mobile Agents in WSNs: available MAS  MAS for conventional platforms:  Java-based: Aglets, Ajanta, Voyager, Jade, etc…  Non-Java-based: D’Agents, ARA, etc…  MAS for WSNs:  Agilla (very lightweight, tuple-space, TinyOS)  SensorWare (TCL, iPAQ)  Variants/Extensions of Agilla (message comms)  actorNet (functional language, TinyOS)  Agent Factory Micro Edition (AFME, J2ME for smartphones/PDAs)

ATSN'09, Budapest, 12 May MAPS: Requirements  Lightweight agent architecture, so that agents can be efficiently executed and migrated.  Minimal core services to provide agent migration, sensing capability access, agent naming, agent communication, and timing.  Plug-in-based architecture extensions, which allows to define any other service in terms of one or more dynamically installable components (or plug-ins) implemented as single mobile agent or cooperating mobile agents.  Layer-oriented mobile agents, which are natively characterized on the basis of the layer to which they belong: application, middleware and network layer. They must be also able to locally interact to enable cross-layering.  Programming language of the sensor node platform.

ATSN'09, Budapest, 12 May MAPS: MAS architecture

ATSN'09, Budapest, 12 May MAPS: agent architecture MPSM=Multi-plane State Machine ECAA=Event/Condition/Action Automaton GV=Global Variables GF=Global Functions LV=Local Variables LF=Local Functions ED=Event Dispatcher

ATSN'09, Budapest, 12 May MAPS: agent primitives

ATSN'09, Budapest, 12 May MAPS framework: Java Sun Spots  The Sun SPOT sensor nodes are based on the Squawk VM which is fully Java compliant and CLDC 1.1-compatible. In particular, the offered features are the following:  Java programming language  NetBeans IDE for software development  Single-hop/multi-hop and reliable/unreliable communications  Easy access to the sensor node devices  Code migration support  Java is used as language for programming events, conditions and actions of the behavior of agents.

ATSN'09, Budapest, 12 May MAPS framework: class diagram

ATSN'09, Budapest, 12 May A Simple MA-based Application: a programming example  The mobile agent application is composed of three agents:  DataCollector, which collects data sensed from the temperature, light and accelerometer sensors of the SunSPOT node;  DataMessenger, which is launched by the DataCollector and carries collected sensed data from the sensing node to the base station;  DataViewer, which displays the received collected data.

ATSN'09, Budapest, 12 May The Data Collector

ATSN'09, Budapest, 12 May The Data Collector

ATSN'09, Budapest, 12 May Performance Evaluation  The used testbed for testing and evaluation consists of a SunSPOT kit (two sensor nodes and one base station) with the SDK 3.0 version (purple).  The MAPS framework has a memory occupation (without any running agent) of about 70 Kbyte in central memory, keeping free a space of 378 Kbyte. (ping-pong agent memory = 22KB)  Such space can be exploited for agent execution.  The space occupied by the jar of MAPS on the flash memory is 92 Kbyte out of the 4 MB available.

ATSN'09, Budapest, 12 May Performance Evaluation  To evaluate the performance of MAPS three micro- kernel benchmarks have been defined for the following mechanisms:  Agent communication  Agent creation  Agent migration

ATSN'09, Budapest, 12 May Performance Evaluation Agent communication: request/reply time. Agent creation time. Agent migration: ping-pong time. The obtained migration times are high due to the slowness of the SquawkVM operations supporting the migration process. In particular, serialization is a very costly operation: serialization of the ping-pong agent averagely takes 4.5s. Moreover, radiostream connections are very slow to guarantee reliability.

ATSN'09, Budapest, 12 May Conclusions  This paper has proposed mobile agents as an enabling technology for programming WSNs. We believe that, due to their specific characteristics, mobile agents can provide more benefits in the context of WSNs than in conventional distributed environments.  To actually experiment with mobile agents in WSNs a mobile agent framework, named MAPS, has been defined which provides an event-driven component-based architecture for supporting agent execution, communication and migration.  Mobile agents are programmed according to a hybrid yet effective programming language which integrates three major WSN programming paradigms (event-driven, state-based and mobile agent- based programming) along with the emerging role-based programming.  A programming example of mobile agents at middleware layer (data collection) has been also presented and discussed to exemplify the proposed framework.  The framework is currently developed by using the innovative Sun SPOT technology which allows for an easy programming of the sensor nodes in Java. In particular, both the agent server and the mobile agents are implemented as Isolates (applications represented as isolated threaded objects) which can be easily paused, migrated to a different sensor node and restarted.  However, performance penalties do exist due to Java Sun Spot basic mechanisms (hibernation, serialization, and reliable communications)

ATSN'09, Budapest, 12 May On-going Work  More detailed performance evaluation by using the last version (Blue) of the SunSPOT SDK  Test Applications  Object tracking  Rumor routing  Data collection  Agent-based version of SPINE – Signal Processing In-Node Environment (spine.tilab.com)  Activity monitoring of assisted livings by using MAPS-based SPINE  Porting on Sentilla sensor platform

ATSN'09, Budapest, 12 May MAPS – Mobile Agent Platform for Java SunSPOTS Any questions ???