计算机工程与应用 ›› 2010, Vol. 46 ›› Issue (20): 64-67.DOI: 10.3778/j.issn.1002-8331.2010.20.018

• 研发、设计、测试 • 上一篇    下一篇

扩展NS2的移动Agent仿真方法研究

王 岩,王培东,张 浩   

  1. 哈尔滨理工大学 计算机科学与技术学院,哈尔滨 150080
  • 收稿日期:2009-08-18 修回日期:2009-11-16 出版日期:2010-07-11 发布日期:2010-07-11
  • 通讯作者: 王 岩

Mobile Agent simulation method research of extending NS2

WANG Yan,WANG Pei-dong,ZHANG Hao   

  1. Computer Science and Technology College,Harbin University of Science and Technology,Harbin 150080,China

  • Received:2009-08-18 Revised:2009-11-16 Online:2010-07-11 Published:2010-07-11
  • Contact: WANG Yan

摘要: 在分析NS2仿真移动Agent的过程的基础上,通过扩展NS2中Packet结构,注册新的协议头并定义TCP的子类SCDTcp,解决了NS2上真实数据传输以及在TCP缓冲限制下的动态链接维护问题。设计了一个验证实例并在仿真平台上进行实验,实验结果表明所提出的扩展NS2设计可以有效地完成以上功能。

关键词: NS2, 移动Agent, 传输控制协议(TCP)限制

Abstract: Based on analysis of the simulation process of mobile Agent in NS2,this paper solves the problems of real data transmission and maintenance of TCP dynamic linkage under the limit of the TCP buffer through extending the packet structure of the NS2,registering new protocol header and defining class SCDTcp which is the subclass of the TCP.An experiment example is designed and tested on the simulation platform,the result indicates this extending NS2 design can achieve the function above effectively.

Key words: Network Simulator version2(NS2), mobile Agent, Transmission Control Protocol(TCP) limit

中图分类号: