信息物理WebAssembly:安全硬件接口与可插拔驱动
Cyber-physical WebAssembly: Secure Hardware Interfaces and Pluggable Drivers
AI总结:
针对物联网等设备的安全与配置管理难题,本研究提出WASI提案及概念验证实现,通过在WebAssembly内运行驱动实现对I2C、USB硬件的直接交互,验证其USB开销最高仅8%,为云原生技术落地嵌入式场景提供支撑。
摘要:
过去十年间,物联网(IoT)、边缘与嵌入式设备的快速扩张带来了诸多安全与配置管理方面的挑战。与此同时,云原生开发实践的进步极大改善了开发体验,推动了更快速的更新,进而提升了应用安全性。然而,将这些进展应用到物联网、边缘与嵌入式设备中仍是一项复杂任务,主要原因在于环境的异构性,以及需要支持长生命周期设备。WebAssembly与WebAssembly系统接口(WebAssembly System Interface,WASI)已成为弥合这一差距的潜力技术。随着WebAssembly在物联网、边缘与嵌入式设备上的应用日益广泛,WebAssembly程序对硬件接口支持的需求也在不断增长。本研究提出了WASI提案与概念验证实现,可让WebAssembly应用直接与物联网中常用的两种协议I2C和USB进行硬件交互,实现方式是将设备驱动也运行在WebAssembly内部。对概念验证的全面评估显示,与原生操作系统USB API相比,WASI-USB带来的额外开销极低,最高仅为8%。但结果也表明,在低延迟应用中,运行时初始化开销可能较为显著。
英文摘要:
The rapid expansion of Internet of Things (IoT), edge, and embedded devices in the past decade has introduced numerous challenges in terms of security and configuration management. Simultaneously, advances in cloud-native development practices have greatly enhanced the development experience and facilitated quicker updates, thereby enhancing application security. However, applying these advances to IoT, edge, and embedded devices remains a complex task, primarily due to the heterogeneous environments and the need to support devices with extended lifespans. WebAssembly and the WebAssembly System Interface (WASI) has emerged as a promising technology to bridge this gap. As WebAssembly becomes more popular on IoT, edge, and embedded devices, there is a growing demand for hardware interface support in WebAssembly programs. This work presents WASI proposals and proof-of-concept implementations to enable hardware interaction with I2C and USB, which are two commonly used protocols in IoT, directly from WebAssembly applications. This is achieved by running the device drivers within WebAssembly as well. A thorough evaluation of the proof of concepts shows that WASI-USB introduces a minimal overhead of at most 8% compared to native operating system USB APIs. However, the results show that runtime initialization overhead can be significant in low-latency applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。