arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 1802.01790cs.PLcs.LOcs.SE
收藏

面向物联网的Node.js网络监控及其应用

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

Davide Ancona, Luca Franceschini, Giorgio Delzanno, Maurizio Leotta, Marina Ribaudo, Filippo Ricca

摘要:

在过去的几年里,Node.js已经成为一个特别适合实现轻量级物联网应用程序的框架,这要归功于其底层的异步事件驱动,非阻塞I/O模型。然而,验证程序的正确性与异步嵌套回调是相当困难的,因此,运行时监控可以是一个有价值的支持,以解决这样一个复杂的任务。静态监测是一种有用的软件验证技术,它补充了静态分析和测试,但尚未在物联网(IoT)系统的背景下得到充分的探讨。跟踪表达式已成功地用于广泛的多智能体系统平台的运行时监控。最近,它们的表达能力已经扩展到允许对只能在运行时捕获和监视的数据进行参数化规范。此外,通过事件域和类型的概念,它们可以是语言和系统不可知的。本文研究了使用参数跟踪表达式作为Node.js和Node-RED(一种基于流的物联网编程工具,构建在Node.js之上)中开发的程序运行时监控的第一步。这类系统的可扩展性验证是一项迄今为止在文献中似乎大多被忽视的任务。一个原型实现所提出的系统Node.js,为了动态检查跟踪表达式的API函数的正确使用,提出。该工具利用动态分析框架Jalangi来监控Node.js程序,并允许检测其他技术难以捕获的错误。此外,它还提供了一个简单的REST接口,可用于Node-RED组件的运行时验证,更广泛地说,可用于物联网设备。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑