计算机科学 ›› 2011, Vol. 38 ›› Issue (8): 117-120.

• 计算机网络与信息安全 • 上一篇    下一篇

无线传感器网络的NS2扩展与仿真机制研究

张小庆,李春林,张恒喜   

  1. (黄冈师范学院数学与计算机科学学院 黄冈438000);(武汉理工大学计算机科学与技术学院 武汉430063);(徐州空军学院基础课程部 徐州221000)
  • 出版日期:2018-11-16 发布日期:2018-11-16
  • 基金资助:
    本文受国家自然科学基金项目(60970064,60773211),教育部新世纪优秀人才计划项目(NCET-08-0806),湖北省杰出青年基金项目(2008CDB335),武汉市科技攻关项目(201010621207),霍英东教育基金项目(121067),央高校基本科研业务费专项资金(2010-II-003, 2010-ZX-031, 2010-YB-19),软件开发环境国家重点实验室开放课题(SKLSDE-2009KF-2-02)资助。

Extension and Simulation in NS2 for Wireless Sensor Networks

ZHANG Xiao-qing,LI Chun-lin,ZHANG Heng-xi   

  • Online:2018-11-16 Published:2018-11-16

摘要: 分析了NS2的工作原理和仿真机制,重点介绍了分裂对象模型和离散事件调度模型。以无线传感器网络作为重点,阐明了NS2对无线传感器网络的扩展机制,包括节点能耗模型扩展、移动节点扩展以及相应路由协议扩展。在此基础上,介绍了NS2仿真传感器网络路由协议的代码调用过程及仿真模型,并以分簇路由协议LEACH为实例 进行了仿真实验,从而为解决NS2下无线传感器网络协议仿真的代码扩展问题提供了参考。

关键词: NS2,无线传感器网络,协议扩展,仿真,LEACH

Abstract: In this paper, the principle and mechanism of NS2 were analyzed. The split object model and discrete-event dispatch were emphasized, taking sensor network as a key, the extension mechanism of sensor network for NS2 was discussed,including energy consumption model,mobile node extension and routing protocol. Based on these works,the code transferring process and simulation model of wireless sensor networks routing protocol in NS2 were introduced. Then taking LEACH as an example, some simulation experiments were carried out. The network simulation and codes extension in NS2 become easily by the help of such works.

Key words: NS2 , Wireless sensor networks, Protocol extension, Simulation, LEACH

No related articles found!
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!