面向物联网设备的高效可靠OTA更新协议设计
Design of an Efficient and Reliable OTA Update Protocol for IoT Devices
DOI: 10.12677/csa.2026.166205, PDF,   
作者: 韩德川:中国电子科技集团公司第二十研究所,陕西 西安
关键词: 软件升级物联网可靠传输原子更新嵌入式系统Software Update Internet of Things (IoT) Reliable Transmission Atomic Update Embedded Systems
摘要: 针对物联网设备软件在线升级过程中采用“停止–等待”协议传输文件效率低下问题,本文提出一种双层升级方案:传输层采用基于批量下发与接收方主动错误申请的选择性重传机制;存储层设计适配裸闪存的A/B分区原子更新架构。仿真采用马尔可夫突发丢包模型,对比传统停止–等待协议、CoAP分块传输与本文协议。结果表明:在1%~5%丢包率下,本文协议相比传统方案耗时降低84.4%~84.6%;相比CoAP同样降低约84.4%~84.6%。在5%丢包率下,传统协议成功率88.8%,CoAP为88.5%,本文协议达99.1%。在5%突发丢包环境下,传统协议成功率72.3%,CoAP为71.9%,本文协议达97.8%。本文还从理论上阐述了固件签名验签及控制消息重传机制,增强了安全性及鲁棒性。该方案为资源受限物联网设备提供了高效可靠的升级解决方案。
Abstract: To address the low efficiency of the “stop-and-wait” protocol in over-the-air (OTA) upgrades for IoT devices, this paper proposes a two-layer upgrade scheme. The transport layer adopts a selective retransmission mechanism based on batch distribution and receiver-initiated error requests; the storage layer designs an A/B partition atomic update architecture adapted to raw flash memory. The simulation uses a Markov burst loss model and compares the traditional stop-and-wait protocol, CoAP block-wise transfer, and the proposed protocol. Results show that under 1%~5% packet loss rates, the proposed protocol reduces upgrade time by 84.4%~84.6% compared with the traditional scheme, and by approximately 84.4%~84.6% compared with CoAP. At a 5% packet loss rate, the success rates are 88.8% (traditional), 88.5% (CoAP), and 99.1% (proposed). Under 5% burst loss, the success rates are 72.3% (traditional), 71.9% (CoAP), and 97.8% (proposed). This paper also theoretically elaborates on firmware signature verification and control message retransmission mechanisms, enhancing security and robustness. The proposed scheme provides an efficient and reliable upgrade solution for resource-constrained IoT devices.
文章引用:韩德川. 面向物联网设备的高效可靠OTA更新协议设计[J]. 计算机科学与应用, 2026, 16(6): 16-23. https://doi.org/10.12677/csa.2026.166205

参考文献

[1] 吴随愿. 面向联邦学习的智能工业物联网多维资源分配与优化[D]: [硕士学位论文]. 邯郸: 河北工程大学, 2023.
[2] 王晨光. 视频通信中的选择性重传技术[J]. 电子制作, 2014(2): 148.
[3] 吴昊. 网络包自动分析系统研究[D]: [硕士学位论文]. 华侨大学, 2022.
[4] 朱原玮. 面向沉浸式交互的扩展现实视频传输关键技术研究[D]: [博士学位论文]. 北京: 北京邮电大学, 2025.
[5] Wang, L., Li, C., Dai, W., et al. (2023) QoE-Driven Adaptive Streaming for Point Clouds. IEEE Transactions on Multimedia, 25, 2543-2558. [Google Scholar] [CrossRef
[6] 燕晶. 基于端到端测量的网络拓扑发现研究[D]: [硕士学位论文]. 曲阜: 曲阜师范大学, 2024.