Towards Runtime Monitoring of Node.js and Its Application to the Internet of Things

02/06/2018
by   Davide Ancona, et al.
0

In the last years Node.js has emerged as a framework particularly suitable for implementing lightweight IoT applications, thanks to its underlying asynchronous event-driven, non blocking I/O model. However, verifying the correctness of programs with asynchronous nested callbacks is quite difficult, and, hence, runtime monitoring can be a valuable support to tackle such a complex task. Runtime monitoring is a useful software verification technique that complements static analysis and testing, but has not been yet fully explored in the context of Internet of Things (IoT) systems. Trace expressions have been successfully employed for runtime monitoring in widespread multiagent system platforms. Recently, their expressive power has been extended to allow parametric specifications on data that can be captured and monitored only at runtime. Furthermore, they can be language and system agnostic, through the notion of event domain and type. This paper investigates the use of parametric trace expressions as a first step towards runtime monitoring of programs developed in Node.js and Node-RED, a flow-based IoT programming tool built on top of Node.js. Runtime verification of such systems is a task that mostly seems to have been overlooked so far in the literature. A prototype implementing the proposed system for Node.js, in order to dynamically check with trace expressions the correct usage of API functions, is presented. The tool exploits the dynamic analysis framework Jalangi for monitoring Node.js programs and allows detection of errors that would be difficult to catch with other techniques. Furthermore, it offers a simple REST interface which can be exploited for runtime verification of Node-RED components, and, more generally, IoT devices.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
08/24/2017

A Survey of Runtime Monitoring Instrumentation Techniques

Runtime Monitoring is a lightweight and dynamic verification technique t...
research
08/24/2017

A Story of Parametric Trace Slicing, Garbage and Static Analysis

This paper presents a proposal (story) of how statically detecting unrea...
research
12/10/2020

Simplify Node-RED For End User Development in SeismoCloud

Networks of IoT devices often require configuration and definition of be...
research
01/28/2022

Constellation: An Edge-Based Semantic Runtime System for Internet of Things Applications

With the global Internet of Things IoT market size predicted to grow to ...
research
01/07/2018

Publish-Subscribe Framework for Event Management in IoT-based Applications

The incredible growth of sensors and microcontroller units makes the tas...
research
03/12/2021

Empowering Visual Internet-of-Things Mashups with Self-Healing Capabilities

Internet-of-Things (IoT) systems have spread among different application...
research
04/19/2021

A Choreographed Outline Instrumentation Algorithm for Asynchronous Components

The runtime analysis of decentralised software requires instrumentation ...

Please sign up or login with your details

Forgot password? Click here to reset