arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.17684cs.NI
收藏

逆向工程 ESP32-C3 Wi-Fi 驱动程序以实现间歇供电系统的静态最坏情况分析

Reverse Engineering the ESP32-C3 Wi-Fi Drivers for Static Worst-Case Analysis of Intermittently-Powered Systems

Ishwar Mudraje, Kai Vogelgesang, Jasper Devreker, Luis Gerhorst, Phillip Raffeck, Peter Wägemann, Thorsten Herfet

AI总结:

本文通过逆向工程 ESP32-C3 Wi-Fi 驱动程序并结合能量感知网络协议栈,实现了全栈最坏情况能耗静态分析,证明了基于 Wi-Fi 的反应式间歇计算的可行性。

摘要:

无电池物联网通过利用收集的能量运行,彻底改变了可持续通信。这种收集的能量依赖于不可预测的环境条件;因此,设备操作(包括其网络协议栈的操作)必须对电力故障具有弹性。反应式间歇计算通过提供即将发生的电力故障通知来提供一种解决方案,这是通过监测缓冲在电容器中的收集能量来实现的。然而,要使用这种电力故障通知并保证前向进展,系统必须将任务分解为可以在能量耗尽之前可预测地完成的原子事务。因此,静态程序代码分析必须确定所有事务的最坏情况能耗(WCEC)。在支持 Wi-Fi 的设备中,驱动程序通常是闭源的,这阻碍了事务 WCEC 边界的确定,因为静态分析需要所有代码及其语义。在这项工作中,我们将一个能量感知网络协议栈与逆向工程的 Wi-Fi 驱动程序集成,以实现对数据包物理传输和接收的全栈 WCEC 分析。此外,我们使用 Wi-Fi 驱动程序的资源消耗模型扩展了静态最坏情况分析工具。我们使用基于 RISC-V 的 ESP32-C3 平台进行的评估,通过我们的静态分析方法为全通信协议栈的事务提供了最坏情况边界,从而表明基于 Wi-Fi 的反应式间歇计算是可行的。

英文摘要:

The Internet of Batteryless Things revolutionizes sustainable communication as it operates on harvested energy. This harvested energy is dependent on unpredictable environmental conditions; therefore, device operations, including those of its networking stack, must be resilient to power failures. Reactive intermittent computing provides an approach for solving this by notifications of impending power failures, which is implemented by monitoring the harvested energy buffered in a capacitor. However, to use this power-failure notification and guarantee forward progress, systems must break down tasks into atomic transactions that can be predictably finished before the energy runs out. Thus, static program-code analysis must determine the worst-case energy consumption (WCEC) of all transactions. In Wi-Fi-capable devices, drivers are often closed-source, which avoids the determination of WCEC bounds for transactions since static analysis requires all code along with its semantics. In this work, we integrate an energy-aware networking stack with reverse-engineered Wi-Fi drivers to enable full-stack WCEC analysis for physical transmission and reception of packets. Further, we extended a static worst-case analysis tool with a resource-consumption model of our Wi-Fi driver. Our evaluation with the RISC-V-based ESP32-C3 platform gives worst-case bounds with our static analysis approach for the transactions of the full communication stack, therefore showing that Wi-Fi-based reactive intermittent computing is feasible.

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

↑