首页 | 本学科首页   官方微博 | 高级检索  
     

NS-2新功能模块的开发
引用本文:杨锦亚,郭虹,于宏毅,胡捍英.NS-2新功能模块的开发[J].计算机仿真,2006,23(11):120-123.
作者姓名:杨锦亚  郭虹  于宏毅  胡捍英
作者单位:解放军信息工程大学信息工程学院通信工程系,河南,郑州,450002
基金项目:国家高技术研究发展计划(863计划);国家自然科学基金
摘    要:网络仿真软件NS-2具有源代码公开、可扩展性强等特点,已广泛用于网络分析、研究和教学。是目前网络仿真最流行的软件之一。网络的迅速发展需要人们不断研究新的网络协议和算法以及通过仿真分析网络性能。NS-2由于其源代码开放的特点,允许用户根据实际需求添加新的协议模块并通过仿真分析协议性能,这一特性成倍加速了新协议开发过程。该文给出了在NS-2中添加新功能模块的模版——编译层实现;解释层实现;编译层与解释层的接口;对原有相关文件的修改;编译及测试。并以自组网路由协议为例,从这五个方面详细介绍了在NS-2软件中添加新模块的过程。

关 键 词:网络仿真  编译层  编译对象  解释层  解释对象
文章编号:1006-9348(2006)11-0120-04
收稿时间:2005-09-25
修稿时间:2005年9月25日

Development of New Modules in NS-2
YANG Jin-ya,GUO Hong,YU Hong-yi,HU Han-ying.Development of New Modules in NS-2[J].Computer Simulation,2006,23(11):120-123.
Authors:YANG Jin-ya  GUO Hong  YU Hong-yi  HU Han-ying
Affiliation:Department of Communication Engineering of PLA Information and Engineering University, Zhengzhou Henan 450002, China
Abstract:The network simulation software NS-2,which is source code opened,very scalable and efficient,has been used in scientific research and education.It is one of the most popular network simulation softwares today.The rapid growth of network technology requires developing more protocols and algorithms and analyzing its performance.Because NS-2 is source code opened,people can add new modules into NS-2 on demand.It accelerates the progress of developing new protocols and algorithms.A general stencil of developing new modules in NS-2 is introduced.The progress composes of five parts: implementing algorithm in C++ and in Tcl respectively,the interface of C++ and Tcl,changing some of the original files,compiling and debugging.A concrete example about a routing protocol in ad hoc network is taken in this paper to show how to develop new modules in NS-2.
Keywords:Network simulation  Compiling layer  Compiling object  Interpretive layer  Interpretive object
本文献已被 CNKI 维普 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号