Computer Engineering and Applications ›› 2007, Vol. 43 ›› Issue (13): 127-129.

• 网络、通信与安全 • Previous Articles     Next Articles

Implementation of New Protocol in NS2

Wenhua Liu   

  • Received:2006-08-31 Revised:1900-01-01 Online:2007-05-01 Published:2007-05-01
  • Contact: Wenhua Liu

NS2中新协议的实现

刘文华   

  1. 湖南工学院人事处 中南大学信息科学与工程学院
  • 通讯作者: 刘文华

Abstract: Analyzed architecture of network simulator—NS2 and mechanism of queue management algorithm in NS2. Then described how to implement network protocol in NS2 through the design and implementation of a novel active queue management algorithm. The new algorithm was designed to improve steadiness of AQM algorithm with more accurate congestion detection and more reasonable calculation of packet dropping probability. Finally the new algorithm was tested through network simulation, simulation results showed that the new algorithm achieved better performance than RED.

Key words: network protocol, simulation, NS2

摘要: 深入分析了网络仿真器NS2的组成和结构,以及NS2中队列管理算法的实现机制,在此基础上,通过一个新的主动队列管理算法的设计与实现阐述了在NS2中实现新协议、新算法的方法。新算法主要通过更为准确的拥塞检测和更为合理的分组丢弃概率计算来提高主动队列管理算法的稳定性,最后通过仿真实验对新算法的性能进行了测试,实验结果表明新算法的性能要由于RED算法。

关键词: 网络协议, 仿真, NS2