仿真系统对于无线传感器网络尤其是大规模无线传感器网络的性能评价是必不可少的。通过仿真,人们能够在一个可控的环境里研究无线传感器网络,观察由不可预测的干扰和噪声引起的节点间的相互作用,减少投放后的网络维护工作。OMNeT++是一款开源的、基于组件的、模块化的开放网络仿真平台。在OMNeT++平台提供的网络仿真基础类库和开发环境的基础上,紧密结合无线传感器网络自身特点,从仿真模型、实现机制和应用场景等方面设计了无线传感器网络仿真系统,并在Linux操作系统上编程实现。通过实验验证,该仿真模型可以正确仿真MAC协议、路由协议和网络拓扑结构,并且具有较好的性能。
It is necessary to develop simulator to evaluate the performance of wireless sensor networks(WSN),especially for the large scale WSN.Via simulation,human can research WSN in a controllable environment and reduce expenses of development and maintained of WSN.OMNeT+ + is an extensible,modular,component-based C+ + simulation library and framework,primarily for building network simulations.This paper designed and developed a simulator system based on OMNeT+ + framework in accordance with the distinctive features of wireless sensor networks.The experiments show that the simulator can simulate MAC protocol,routing protocol and topological structure efficiently.