摘要:
随着虚拟机、云计算及大数据等高带宽、异构化网络的普及,当前主流仿真工具NS2的局限性已日益凸显,新一代离散事件模拟器NS3应运而生,但其相关资料甚少,使用困难.为满足学术研究及教学需求,从多个角度、不同层次对NS3作了完整综述.首先简单概述了NS3及其与NS2的区别,随后系统剖析了其模块体系、基本对象与类、数据传输、代码体系及仿真流程.最后又从理论深度重点探究了NS3在研究领域的TCP实现过程,详细阐述了类的相互作用、全局变量及其算法实现细节.NS3虽不具有NS2的所有模型,相关研究也不多,但其符合弹性化网络模拟需求,拥有单一的语言、良好的架构及基于底层的开发设计等特点.%With the popularity of heterogeneous networks with high bandwidth like virtual machine,cloud computing and big data,the ma-instream network simulator 2 is limited gradually and obviously.The NS3,as a novel generation of discrete event simulator,comes into being,but its related information is few and difficult to use.In order to meet the academic research and teaching needs,we make a com-plete review of NS3 from a number of different levels.Firstly,we briefly summarize the NS3 and the difference between NS3 and NS2. Then,we analyze systematically the module,basic object and class,data transmission,code and simulation process of NS3.Finally,the TCP implementation of NS3 in the field of research from the theoretical depth is explored,and the interaction of the class,the global vari-ables and the implementation details of the algorithm are elaborated.NS3 does not have all the NS2 models,with not many related stud-ies,but it is in line with the needs of flexible network simulation,with a single language,a good architecture and the underlying-based de-velopment and design.