计算机应用 ›› 2010, Vol. 30 ›› Issue (4): 857-859.

• 网络与通信 •    下一篇

无线传感网中代码更新机制的研究与设计

吴晓,杜鹏,雷江涌,李志民   

  1. 1. 山东省科学院自动化研究所
    2.
  • 收稿日期:2009-09-24 修回日期:2009-11-13 发布日期:2010-04-15 出版日期:2010-04-01
  • 通讯作者: 李志民
  • 基金资助:

    国家科技支持计划;国家科技支持计划;陕西省自然基金;陕西省科技攻关

Research and design of code updating mechanism in wireless senor network

  • Received:2009-09-24 Revised:2009-11-13 Online:2010-04-15 Published:2010-04-01

摘要:

无线传感网的感知节点部署后需要进行软件维护和功能扩展,因此远程代码更新已变成一种不可或缺的服务。在分析MOAP、Deluge、Ripple等代码分发协议的基础上,设计了一种高可靠、低能耗、低存储、低延迟的多跳代码更新机制Air_update。该机制通过重新设计Bootloader来保证加载代码镜像的正确性、完整性以及节点重编程异常后的可用性;同时,采用子集到子集的分发协议、单播请求的重传策略、滑动窗口的存储管理机制,以减少代码分发的通信量和SRAM、EEPROM的使用量,降低能耗,延长网络的生命周期。最后通过组网实验验证了设计的正确性与有效性。

关键词: 无线传感器网络, 分发机制, 代码更新, 感知节点

Abstract:

As sensor nodes of Wireless Senor Networks (WSN) need software maintenance and function expansion after being deployed, remote code updating has become an indispensable service. Based on the analysis of the code dissemination protocols like MOAP, Deluge and Ripple, a new multihop code update mechanism called Air_Update was proposed, which was reliable, energy efficient, and of low storage cost and low latency. In order to ensure the correctness and integrity of the loaded code image, as well as the availability of node after abnormal reprogramming, Bootloader had been redesigned. Simultaneously, such mechanisms as subset-to-subset dissemination protocol, unicast retransmission request strategy and sliding window were adopted to reduce the traffic, the usage of SRAM and EEPROM, the energy consumption, and to prolong the network lifetime. At last, the correctness and effectiveness of design were verified in testbeds.

Key words: Wireless Sensor Network (WSN), dissemination mechanism, code update, sensor node