Mobile Agents for Integration of Internet
of Things and Wireless Sensor Networks
Teemu Leppänen, Meirong Liu, Erkki Harjula, Archana Ramalingam,
Jani Ylioja, Pauli Närhi, Jukka Riekki and Timo Ojala
Department of Computer Science and Engineering,
University of Oulu, Finland
Leppänen, T., Liu, M., Harjula, E., Ramalingam, A., Ylioja, J., Närhi, P., Riekki, J. and Ojala, T. “Mobile
Agents for Integration of Internet of Things and Wireless Sensor Networks,” In: IEEE International
Conference on Systems, Man and Cybernetics, pp. 14-21, October 13-16, Manchester, UK, 2013.
http://dx.doi.org/10.1109/SMC.2013.10
IoT characteristics
Collaboration of heterogeneous systems, networks, protocols and interfaces
Systems in continous transition: system configurations and service/ task execution
environments changing
Devices have heterogeneous capabilities and dynamically available resources
Benefits of mobile agents in IoT and WSN
Adapt dynamically to changing environments and resource availability
Reuse of system devices and their physical components
Abstract heterogeneous resources with standardized interfaces
Mobile agents can create services in the IoT systems dynamically
”Move computation to the edges” to save in communication costs and
utilize resources energy-efficiently
Why mobile agents?
(2/11)
Agent Composition
Segment Elements
Name { Agent name, i.e. unique resource name }
Code Code { Task code }
{ Programming language or intended platform}
Reference {URL}
{ Programming language or intended platform}
Resource Local { Resource list as URLs }
Remote { Resource list as URLs }
Static { Resource list as URLs }
State { State: the current result of the computation}
{ Local variable list }
{ Metadata: API-Key for access control, timestamp etc}
Resource segment:
Local: Agent migrates into these devices (accesses resources locally)
Remote: Accessed remotely in each iteration of the computation
Static: Accessed remotely only once for the lifetime of the agent
System independent data structure for the agent composition to be
used with heterogeneous and disparate systems
(3/11)
Mapping to CoAP
For low-power resource-constrained embedded devices, the
Constrained Application Protocol enables embedded Web services
Agent Composition CoAP Option No. Size (bytes)
Mobile Agent Content-type:
Task / Service
1 1
Name Uri-Path (not new) 1 k
Local resource
segment
Next Address [0..n] n * 8 (IPv6)
[0..m] m * 4 (IPv4)
Metadata: Access
control
API-Key 1 n
Task code Code [0..1] n
Task code reference Code Reference [0..1] k
Remote resource
segment
Remote Resource [0..n] n * (8 + j)
Static resource
segment
Static Resource [0..n] n * (8 + j)
State segment Payload 1 n
(4/11)
Agent Mobility
Currently two migration policies
1. ”Task”: visits each device only once, previous device deleted from the local
segment
2. ”Service”: local segment considered ring buffer, visits devices in turns.
Devices are not deleted from the local list
Migration sequence:
1. Agent clones itself and migrates to next device
2. New state is computed in the new hosting device
3. Agent is registered to the system with the new device address
4. Clients now access the updated state
5. Ack message sent to the previous host, where agent is then deleted
from memory
(5/11)
Agent Control API
Standardized universal communication primitives: HTTP and CoAP
methods, allowing human-machine interactions
Agent composition as JSON payload / CoAP message
POST: Agent creation and migration
GET: System resource access, including agents
DELETE: Delete system resource, including agents
Hosting device API methods
Communication: Register / Unregister, Get, Post, Delete
Message handling: Marshal / Unmarshal, Map / Unmap
Execution methods: Execute, Getter, Stop
(6/11)
Real-world prototype
We implemented real-world prototype system with
1. IP-based WSN atop 6LoWPAN in 868Mhz
2. Android-smartphones atop Wi-Fi in 2.4Ghz
Based on IETF CoRE framework
Resource Directory
Stores system resource
descriptions
HTTP and CoAP interfaces for
resource lookups
Proxy
Abstracts WSN as Web service
Translates between HTTP <->
CoAP
with code repository to store
the agent task codes
(7/11)
Execution environment
Smartphones (Android 4.1.2)
Retrieved resource values mapped into the code to
make runnable code
Uses SL4A Scripting Layer to run the task code in
Python / JavaScript
(8/11)
WSN nodes (Atmel MCUs 18MHz with 8/16kB RAM)
Implemented in C
Resource representations stored into shared memory block: 16-bit variables
Shared memory accessed through pointers: base address + offset
Program memory (Flash) slots reserved for agent task code: precompiled IntelHEX
binary format
“main loop” checks if hosting an agent, then jump into the code location and
executes code, then resource values updated through the pointers
Evaluation metrics
Metrics to evaluate the particular agent composition
Execution costs in each platform Ck
Tr is latency for remote resource requests
Tk is the time for executing the computation
Tm is the agent migration time (single hop)
mkrk TTTrC )1(
d d n
ndmprTotal CCTsTC
1
, )(
Execution costs for agent-based service CTotal
s is the number of static resources
d is number of disparate networks
Tp is message translation time in the proxy
Cm,d is the migration costs between disparate networks
n is the number of devices in each network
(9/11)
With this method, we estimated the round-trip time in prototype
system
(with one remote resource, the access time is included into the execution costs C)
However:
Metrics simplified: varying network conditions, resource availability etc, not taken
into account
Metrics nevertheless could assist in agent composition and system design to
optimize the utilization of different resource types
Cn
(ms)
Tp
(ms)
Tm,d
(ms)
Cm,d
(ms)
CTotal
(ms)
Wi-Fi 4423 0
1856
5009
16044
WSN 2830 0 3782
Evaluation metrics
(10/11)
Thank You
For further information, please contact:
teemu.leppanen (at) ee.oulu.fi
We are looking for
EU Horizon 2020
research partners.. Are you interested in co-operation?

More Related Content

PDF
Augmented Reality Web Applications with Mobile Agents in the Internet of Things
PDF
Enabling user-centered-interactions in the Internet of Things
PDF
Mobile Crowdsensing with Mobile Agents
PDF
Smart energy efficient sensing for IoT edge computing with mobile agents
PDF
Distributed Artificial Intelligence with Multi-Agent Systems for MEC
PPTX
Crowdsensing
PDF
6. pbl poster io t - mitul-
PPTX
Arpan pal u world2012
Augmented Reality Web Applications with Mobile Agents in the Internet of Things
Enabling user-centered-interactions in the Internet of Things
Mobile Crowdsensing with Mobile Agents
Smart energy efficient sensing for IoT edge computing with mobile agents
Distributed Artificial Intelligence with Multi-Agent Systems for MEC
Crowdsensing
6. pbl poster io t - mitul-
Arpan pal u world2012

Viewers also liked (20)

PDF
SIP Flooding Attack Detection Using Hybrid Detection Algorithm
PPT
Augmented Reality; Adding Value to Your Business 2013
PPTX
UX + VR FTW [ACRL e-learning]
PDF
Internet of Things
PPTX
Web designing (2) - CSS Basic Coding
PDF
UX Disrupted - a new reality for UX design
PPTX
5 Must Know Design Strategies for Better VR Games
PDF
UX for VR ignite talk
PDF
Iottoolkit osiot
PDF
Virtual Reality UX - Designing for Interfaces without Screens
PPTX
Internet Of Things (IOT)
PDF
VR - Creating the ultimate reality
PDF
An Introduction to WebVR – or How to make your user sick in 60 seconds
PDF
Designing VR For Humans - Mike Alger
PDF
Mobile Ad-hoc Network (MANET) Applications
PPTX
mobile ad-hoc network (MANET) and its applications
PDF
Web Design Trends for 2014
PDF
Designing UI and UX for Interactive Virtual Reality Apps
PDF
TalkUX - UX in VR - UNIT9
PDF
UX Challenges in VR
SIP Flooding Attack Detection Using Hybrid Detection Algorithm
Augmented Reality; Adding Value to Your Business 2013
UX + VR FTW [ACRL e-learning]
Internet of Things
Web designing (2) - CSS Basic Coding
UX Disrupted - a new reality for UX design
5 Must Know Design Strategies for Better VR Games
UX for VR ignite talk
Iottoolkit osiot
Virtual Reality UX - Designing for Interfaces without Screens
Internet Of Things (IOT)
VR - Creating the ultimate reality
An Introduction to WebVR – or How to make your user sick in 60 seconds
Designing VR For Humans - Mike Alger
Mobile Ad-hoc Network (MANET) Applications
mobile ad-hoc network (MANET) and its applications
Web Design Trends for 2014
Designing UI and UX for Interactive Virtual Reality Apps
TalkUX - UX in VR - UNIT9
UX Challenges in VR
Ad

Similar to Mobile Agents for the Integration of Wireless Sensor Networks and the Internet of Things (20)

PDF
Design patternsforiot
PDF
A Restful Architecture For Web-Based Smart Homes Using Request Queues
PDF
Towards Interoperable, Cognitive and Autonomic IoT Systems: an Agent-based Ap...
PPTX
Software agents (1).pptx introduction to Sofware Agents
PPTX
Web of Things to the edge
PPTX
IoT-A ARM
PPTX
IP based standards for IoT
PDF
UbiquiTalk - An Infrastructure for Ubiquitous Computing (ESUG 2006)
PDF
System Support for Internet of Things
PPTX
Embedded to connected
PDF
Aidan_O_Mahony_Project_Report
PPTX
Hypermedia for Machine APIs
PPT
ppt
 
PDF
FIWARE Global Summit - Connecting Sensors to FIWARE with IDAS: An Overview
 
PDF
Pervasive Computing
PDF
MobiSys Group Presentation
PDF
Agent-Based Computing in the Internet of Things: a Survey. Claudio Savaglio, ...
PDF
Keynote Talk on Recent Advances in Mobile Grid and Cloud Computing
PPT
Smart manufacturing through cloud based-r-nabati--dr abdulbaghi ghaderzadeh
 
PDF
Key Open Standards for inter-operable IoT systems
Design patternsforiot
A Restful Architecture For Web-Based Smart Homes Using Request Queues
Towards Interoperable, Cognitive and Autonomic IoT Systems: an Agent-based Ap...
Software agents (1).pptx introduction to Sofware Agents
Web of Things to the edge
IoT-A ARM
IP based standards for IoT
UbiquiTalk - An Infrastructure for Ubiquitous Computing (ESUG 2006)
System Support for Internet of Things
Embedded to connected
Aidan_O_Mahony_Project_Report
Hypermedia for Machine APIs
ppt
 
FIWARE Global Summit - Connecting Sensors to FIWARE with IDAS: An Overview
 
Pervasive Computing
MobiSys Group Presentation
Agent-Based Computing in the Internet of Things: a Survey. Claudio Savaglio, ...
Keynote Talk on Recent Advances in Mobile Grid and Cloud Computing
Smart manufacturing through cloud based-r-nabati--dr abdulbaghi ghaderzadeh
 
Key Open Standards for inter-operable IoT systems
Ad

Recently uploaded (20)

PPTX
IPCNA VIRTUAL CLASSES INTERMEDIATE 6 PROJECT.pptx
PPTX
Database Information System - Management Information System
PDF
simpleintnettestmetiaerl for the simple testint
PDF
Understand the Gitlab_presentation_task.pdf
PDF
si manuel quezon at mga nagawa sa bansang pilipinas
DOCX
Powerful Ways AIRCONNECT INFOSYSTEMS Pvt Ltd Enhances IT Infrastructure in In...
PPTX
1402_iCSC_-_RESTful_Web_APIs_--_Josef_Hammer.pptx
PPTX
Mathew Digital SEO Checklist Guidlines 2025
PPTX
KSS ON CYBERSECURITY INCIDENT RESPONSE AND PLANNING MANAGEMENT.pptx
PDF
Course Overview and Agenda cloud security
PPTX
newyork.pptxirantrafgshenepalchinachinane
PDF
SlidesGDGoCxRAIS about Google Dialogflow and NotebookLM.pdf
PPT
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
PDF
mera desh ae watn.(a source of motivation and patriotism to the youth of the ...
PPTX
Introduction to cybersecurity and digital nettiquette
PPTX
curriculumandpedagogyinearlychildhoodcurriculum-171021103104 - Copy.pptx
PPTX
Top Website Bugs That Hurt User Experience – And How Expert Web Design Fixes
PPTX
TITLE DEFENSE entitle the impact of social media on education
PPTX
Cyber Hygine IN organizations in MSME or
PDF
Alethe Consulting Corporate Profile and Solution Aproach
IPCNA VIRTUAL CLASSES INTERMEDIATE 6 PROJECT.pptx
Database Information System - Management Information System
simpleintnettestmetiaerl for the simple testint
Understand the Gitlab_presentation_task.pdf
si manuel quezon at mga nagawa sa bansang pilipinas
Powerful Ways AIRCONNECT INFOSYSTEMS Pvt Ltd Enhances IT Infrastructure in In...
1402_iCSC_-_RESTful_Web_APIs_--_Josef_Hammer.pptx
Mathew Digital SEO Checklist Guidlines 2025
KSS ON CYBERSECURITY INCIDENT RESPONSE AND PLANNING MANAGEMENT.pptx
Course Overview and Agenda cloud security
newyork.pptxirantrafgshenepalchinachinane
SlidesGDGoCxRAIS about Google Dialogflow and NotebookLM.pdf
415456121-Jiwratrwecdtwfdsfwgdwedvwe dbwsdjsadca-EVN.ppt
mera desh ae watn.(a source of motivation and patriotism to the youth of the ...
Introduction to cybersecurity and digital nettiquette
curriculumandpedagogyinearlychildhoodcurriculum-171021103104 - Copy.pptx
Top Website Bugs That Hurt User Experience – And How Expert Web Design Fixes
TITLE DEFENSE entitle the impact of social media on education
Cyber Hygine IN organizations in MSME or
Alethe Consulting Corporate Profile and Solution Aproach

Mobile Agents for the Integration of Wireless Sensor Networks and the Internet of Things

  • 1. Mobile Agents for Integration of Internet of Things and Wireless Sensor Networks Teemu Leppänen, Meirong Liu, Erkki Harjula, Archana Ramalingam, Jani Ylioja, Pauli Närhi, Jukka Riekki and Timo Ojala Department of Computer Science and Engineering, University of Oulu, Finland Leppänen, T., Liu, M., Harjula, E., Ramalingam, A., Ylioja, J., Närhi, P., Riekki, J. and Ojala, T. “Mobile Agents for Integration of Internet of Things and Wireless Sensor Networks,” In: IEEE International Conference on Systems, Man and Cybernetics, pp. 14-21, October 13-16, Manchester, UK, 2013. http://dx.doi.org/10.1109/SMC.2013.10
  • 2. IoT characteristics Collaboration of heterogeneous systems, networks, protocols and interfaces Systems in continous transition: system configurations and service/ task execution environments changing Devices have heterogeneous capabilities and dynamically available resources Benefits of mobile agents in IoT and WSN Adapt dynamically to changing environments and resource availability Reuse of system devices and their physical components Abstract heterogeneous resources with standardized interfaces Mobile agents can create services in the IoT systems dynamically ”Move computation to the edges” to save in communication costs and utilize resources energy-efficiently Why mobile agents? (2/11)
  • 3. Agent Composition Segment Elements Name { Agent name, i.e. unique resource name } Code Code { Task code } { Programming language or intended platform} Reference {URL} { Programming language or intended platform} Resource Local { Resource list as URLs } Remote { Resource list as URLs } Static { Resource list as URLs } State { State: the current result of the computation} { Local variable list } { Metadata: API-Key for access control, timestamp etc} Resource segment: Local: Agent migrates into these devices (accesses resources locally) Remote: Accessed remotely in each iteration of the computation Static: Accessed remotely only once for the lifetime of the agent System independent data structure for the agent composition to be used with heterogeneous and disparate systems (3/11)
  • 4. Mapping to CoAP For low-power resource-constrained embedded devices, the Constrained Application Protocol enables embedded Web services Agent Composition CoAP Option No. Size (bytes) Mobile Agent Content-type: Task / Service 1 1 Name Uri-Path (not new) 1 k Local resource segment Next Address [0..n] n * 8 (IPv6) [0..m] m * 4 (IPv4) Metadata: Access control API-Key 1 n Task code Code [0..1] n Task code reference Code Reference [0..1] k Remote resource segment Remote Resource [0..n] n * (8 + j) Static resource segment Static Resource [0..n] n * (8 + j) State segment Payload 1 n (4/11)
  • 5. Agent Mobility Currently two migration policies 1. ”Task”: visits each device only once, previous device deleted from the local segment 2. ”Service”: local segment considered ring buffer, visits devices in turns. Devices are not deleted from the local list Migration sequence: 1. Agent clones itself and migrates to next device 2. New state is computed in the new hosting device 3. Agent is registered to the system with the new device address 4. Clients now access the updated state 5. Ack message sent to the previous host, where agent is then deleted from memory (5/11)
  • 6. Agent Control API Standardized universal communication primitives: HTTP and CoAP methods, allowing human-machine interactions Agent composition as JSON payload / CoAP message POST: Agent creation and migration GET: System resource access, including agents DELETE: Delete system resource, including agents Hosting device API methods Communication: Register / Unregister, Get, Post, Delete Message handling: Marshal / Unmarshal, Map / Unmap Execution methods: Execute, Getter, Stop (6/11)
  • 7. Real-world prototype We implemented real-world prototype system with 1. IP-based WSN atop 6LoWPAN in 868Mhz 2. Android-smartphones atop Wi-Fi in 2.4Ghz Based on IETF CoRE framework Resource Directory Stores system resource descriptions HTTP and CoAP interfaces for resource lookups Proxy Abstracts WSN as Web service Translates between HTTP <-> CoAP with code repository to store the agent task codes (7/11)
  • 8. Execution environment Smartphones (Android 4.1.2) Retrieved resource values mapped into the code to make runnable code Uses SL4A Scripting Layer to run the task code in Python / JavaScript (8/11) WSN nodes (Atmel MCUs 18MHz with 8/16kB RAM) Implemented in C Resource representations stored into shared memory block: 16-bit variables Shared memory accessed through pointers: base address + offset Program memory (Flash) slots reserved for agent task code: precompiled IntelHEX binary format “main loop” checks if hosting an agent, then jump into the code location and executes code, then resource values updated through the pointers
  • 9. Evaluation metrics Metrics to evaluate the particular agent composition Execution costs in each platform Ck Tr is latency for remote resource requests Tk is the time for executing the computation Tm is the agent migration time (single hop) mkrk TTTrC )1( d d n ndmprTotal CCTsTC 1 , )( Execution costs for agent-based service CTotal s is the number of static resources d is number of disparate networks Tp is message translation time in the proxy Cm,d is the migration costs between disparate networks n is the number of devices in each network (9/11)
  • 10. With this method, we estimated the round-trip time in prototype system (with one remote resource, the access time is included into the execution costs C) However: Metrics simplified: varying network conditions, resource availability etc, not taken into account Metrics nevertheless could assist in agent composition and system design to optimize the utilization of different resource types Cn (ms) Tp (ms) Tm,d (ms) Cm,d (ms) CTotal (ms) Wi-Fi 4423 0 1856 5009 16044 WSN 2830 0 3782 Evaluation metrics (10/11)
  • 11. Thank You For further information, please contact: teemu.leppanen (at) ee.oulu.fi We are looking for EU Horizon 2020 research partners.. Are you interested in co-operation?