摘要
网络仿真是网络协议设计的重要环节,也是通信网络性能分析的关键。基于C++和Tcl脚本语言分裂层次实现的NS-2是一个开源、面向对象设计的多协议网络仿真软件,在网络仿真领域占有十分重要的地位。文中首先介绍NS-2的体系结构;然后介绍在NS-2环境下如何编程实现新协议,对NS-2功能进行扩展;最后利用前面实现的新协议,结合一个4节点的网络仿真实例,根据仿真结果比较SFQ和DropTail两种队列管理方式在选择数据包丢弃方面的公平性。
It is very important to simulate network in design and performance analysis of network. NS - 2, with advanced C + + split - language and Tel scripting languages programming ides, is an open- source and object - oriented design multiprotocol network simulation software. NS - 2 has a very important position in the area of network simulation. Introduce the architecture of NS- 2 and how to implement new network protocol in detail so as to extend the function of NS - 2. Finally, using earlier implemented protocol,give an example which simulates four nodes of network, and then compare the fairness of SFQ and DropTail queuing when they are choosing the dropping datapacket.
出处
《计算机技术与发展》
2009年第12期63-66,70,共5页
Computer Technology and Development
基金
上海市教育科研计划项目(2008072)