WAWOT: Towards Flexible and Efficient Web of Things Services Via WebAssembly on Resource-constrained IoT Devices

Borui Li,Hongchang Fan,Yi Gao,Wei Dong
DOI: https://doi.org/10.1109/tc.2024.3500385
IF: 3.183
2024-01-01
IEEE Transactions on Computers
Abstract:Web of Things (WoT) is an emerging concept to connect IoT devices to the web using standard interfaces. This provides interoperability between different IoT platforms and enables seamless integration with web and cloud services. However, running sophisticated web services directly on resource-constrained IoT devices is challenging due to limitations in memory, computation, and energy. This paper proposes WAWOT , a Wasm-based framework for flexible and efficient Web of Things services. WAWOT allows flexible WoT service development using annotations and automatic partitioning. It also enables dynamic service migration using WebAssembly modules to adapt placement between IoT devices and web clients. We also introduce an ahead-of-time compiler optimized for low memory usage through techniques like streamed compilation and trimming. For energy efficiency, we use optimizations like bulk instruction writing and direct I/O accessing. Safety is ensured through compile-time and run-time analyses to guarantee sandboxed execution. Evaluations demonstrate WAWOT exhibits better flexibility than existing WoT development approaches. Furthermore, WAWOT can also reduce RAM usage by 84.8× and energy consumption by 1.2-4.9× over existing WebAssembly runtimes. Overall, it enables efficient, safe, and flexible WoT services on constrained IoT devices.
What problem does this paper attempt to address?