Out-of-Things物联网:一种面向物联网的实时物联网方法
Out-of-Things Debugging: A Live Debugging Approach for Internet of Things
摘要:
内容:物联网(IoT)已经成为一种重要的分布式系统,这要归功于配备不同网络技术的廉价嵌入式设备的广泛传播。虽然物联网无处不在,但开发物联网系统仍然具有挑战性。调查:最近对194名物联网开发人员进行的一项实地研究表明,调试是开发物联网系统时面临的主要挑战之一。这是因为缺乏调试工具,而这些工具考虑到了物联网系统的独特属性,例如非确定性数据和硬件受限设备。一方面,离线调试器允许开发人员分析故障后记录的程序信息,但在生成此类信息时对设备施加了太多的开销。此外,分析过程也很耗时,并且可能会错过与查找错误根本原因相关的上下文信息。另一方面,在线调试器确实允许在失败时调试程序,同时提供上下文信息(例如,堆栈跟踪)。特别地,远程在线调试器使得能够在不物理访问设备的情况下调试设备。然而,由于网络延迟,它们会遇到调试干扰,这使bug的再现性变得复杂,并且对远程设备上的动态软件更新的支持有限。方法:本文提出了out-of-things调试,这是一种专为物联网系统设计的在线调试方法。调试器是始终开启的,因为它确保了持续的可用性,例如调试部署后的情况。在出现故障或断点时,外部调试会将已部署应用程序的状态移动到开发人员的计算机上。然后,开发人员可以通过应用操作(例如,步骤命令)到检索状态。调试完成后,开发人员可以通过实时更新功能将错误修复提交到设备。最后,通过用于访问远程资源的细粒度灵活接口,开发人员完全控制施加在设备上的调试开销,以及对设备硬件资源(例如,传感器)。知识:物外调试保持了远程调试的良好属性,因为它不需要对设备的物理访问来对其进行调试,同时减少了调试干扰,因为在操作上没有网络延迟(例如,步进),因为这些都发生在本地。此外,设备资源仅在用户请求时才被访问,这进一步减轻了开销,并为模拟或模拟未访问的资源开辟了途径。基础:我们实现了一个外部调试器作为WebAssembly虚拟机的扩展,并对其适用于物联网进行了基准测试。特别是,我们根据网络开销、内存使用、可伸缩性和生产环境中的可用性等指标,将我们的解决方案与远程调试方案进行了比较。从基准测试,我们得出结论,我们的调试器具有竞争力的性能,除了限制开销,而不牺牲调试的方便性和灵活性。重要性:物外调试通过经典的在线操作(例如,逐步执行)同时解决IoT特定的问题(例如,硬件限制)。我们表明,调试器始终开启并不一定要以性能损失或增加开销为代价,而是可以强制实现物联网系统的平稳和灵活的调试体验。
英文摘要:
Context: Internet of Things (IoT) has become an important kind of distributed systems thanks to the wide-spread of cheap embedded devices equipped with different networking technologies. Although ubiquitous, developing IoT systems remains challenging. Inquiry: A recent field study with 194 IoT developers identifies debugging as one of the main challenges faced when developing IoT systems. This comes from the lack of debugging tools taking into account the unique properties of IoT systems such as non-deterministic data, and hardware restricted devices. On the one hand, offline debuggers allow developers to analyse post-failure recorded program information, but impose too much overhead on the devices while generating such information. Furthermore, the analysis process is also time-consuming and might miss contextual information relevant to find the root cause of bugs. On the other hand, online debuggers do allow debugging a program upon a failure while providing contextual information (e.g., stack trace). In particular, remote online debuggers enable debugging of devices without physical access to them. However, they experience debugging interference due to network delays which complicates bug reproducibility, and have limited support for dynamic software updates on remote devices. Approach: This paper proposes out-of-things debugging, an online debugging approach especially designed for IoT systems. The debugger is always-on as it ensures constant availability to for instance debug post-deployment situations. Upon a failure or breakpoint, out-of-things debugging moves the state of a deployed application to the developer's machine. Developers can then debug the application locally by applying operations (e.g., step commands) to the retrieved state. Once debugging is finished, developers can commit bug fixes to the device through live update capabilities. Finally, by means of a fine-grained flexible interface for accessing remote resources, developers have full control over the debugging overhead imposed on the device, and the access to device hardware resources (e.g., sensors) needed during local debugging. Knowledge: Out-of-things debugging maintains good properties of remote debugging as it does not require physical access to the device to debug it, while reducing debugging interference since there are no network delays on operations (e.g., stepping) issued on the debugger since those happen locally. Furthermore, device resources are only accessed when requested by the user which further mitigates overhead and opens avenues for mocking or simulation of non-accessed resources. Grounding: We implemented an out-of-things debugger as an extension to a WebAssembly Virtual Machine and benchmarked its suitability for IoT. In particular, we compared our solution to remote debugging alternatives based on metrics such as network overhead, memory usage, scalability, and usability in production settings. From the benchmarks, we conclude that our debugger exhibits competitive performance in addition to confining overhead without sacrificing debugging convenience and flexibility. Importance: Out-of-things debugging enables debugging of IoT systems by means of classical online operations (e.g., stepwise execution) while addressing IoT-specific concerns (e.g., hardware limitations). We show that having the debugger always-on does not have to come at cost of performance loss or increased overhead but instead can enforce a smooth-going and flexible debugging experience of IoT systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。