作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2007, Vol. 33 ›› Issue (23): 97-99. doi: 10.3969/j.issn.1000-3428.2007.23.033

• 软件技术与数据库 • 上一篇    下一篇

网络模拟软件脚本研究

向 驹   

  1. (广东商学院广东省电子商务市场应用技术重点实验室,广州 510320)
  • 收稿日期:1900-01-01 修回日期:1900-01-01 出版日期:2007-12-05 发布日期:2007-12-05

Research on Scripts of Network Simulators

XIANG Ju   

  1. (Guangdong Province Key Lab of EC Marketing Application Technology, Guangdong University of Business Studies, Guangzhou 510320)
  • Received:1900-01-01 Revised:1900-01-01 Online:2007-12-05 Published:2007-12-05

摘要: 介绍了3款主流网络模拟软件(NS2, OPNET, GLOMOSIM)的特点及机制。由于采用这3种软件的网络模拟都必须基于模拟脚本,对大规模网络和复杂网络对象的模拟手动编写脚本又十分困难,因此以NS2的模拟为例,针对其构建Tcl脚本过程中存在的困难,提出使用C++编写脚本生成程序,大大提高了Tcl脚本生成的效率和准确性。实验证明该方法是成功的。因为不同网络模拟软件的模拟脚本很相似,所以该方法和算法可以被基于其他网络模拟软件的网络模拟所使用,具有普遍使用价值。

关键词: 网络模拟, 脚本, Tcl, NS2, 组播

Abstract: This paper introduces the properties and mechanisms of three kinds of software(NS2, OPNET and GLOMOSIM). All the software is operated based on simulation scripts, but it is difficult to develop the scripts for the simulation, when the size of the simulation network is very large and the network objects are very complicated. NS2 is taken as an example to analyze the difficulties in script programming and a script programming method based on C++ is proposed, which can effectively improve the efficiency and correctness of the script programming. Experimental results demonstrate the effectiveness and efficiency of the methods. Because the scripts for different network simulation tools are considerably similar to each other, the method can be widely adopted in different network simulation tasks.

Key words: network simulation, scripts, Tcl, NS2, multicast

中图分类号: