1、硕 士 学 位 论 文基于模型驱动的网络仿真场景建模方法设计研究专业名称 : 信息与通信工程基于模型驱动的网络仿真场景建模方法设计研究I摘要随着信息技术的发展,现代通信网络日益复杂,网络设计已成为极具挑战性的课题。网络仿真则是网络设计和仿真验证的重要手段,OPNET、NS2 、QualNet 等网络仿真器有力的推动了网络新技术的发展。目前主流的网络仿真器普遍存在着仿真场景建模过程效率不高、建模方式不够灵活、建模结果难以复用等问题。通常需要逐一建立节点链路等网络元素,设置大量的网络参数,并且仿真器的建模规范各不相同。这些都给设计人员带来了额外的负担,限制了仿真建模的效率。在大规模网络仿真、批量仿
2、真、共享仿真器等情况下问题更加突出。软件工程为解决业务需求多变和实现技术多样的矛盾提出了模型驱动框架,这为其他领域的建模带来了启发。其核心思想是以模型为中心对复杂系统建模,运用模型转换工具适配到具体的实现平台,从而提高模型抽象层次和建模结果适用性。网络仿真领域同样面临仿真场景多变、仿真器建模规范各异的问题,因此引入模型驱动的思想解决网络仿真建模问题是有意义的。本文则是针对网络仿真面临的共性问题,提出了基于模型驱动的网络仿真场景建模方法,并实现了建模工具。本文的主要工作及贡献如下:1、分析总结了网络仿真建模的内容、网络仿真器面临的问题和已有的解决方法、模型驱动框架的研究现状和在其他领域的研究成果
3、。2、设计了基于模型驱动的网络仿真场景建模方法,方法框架分为模型层、描述层和适配层,针对每一层进行了仔细的分析和设计。模型层提供建模元素和建模语法,描述层基于模型层对网络仿真场景进行建模,适配层则负责转换模型得到特定仿真器的建模结果。3、针对建模方法实现了建模工具,总体框架分为基础设施层、数据层和业务层。其中基础设施层提供 GUI 应用程序的基础功能,包括多文档窗口管理、画布绘图操作、程序资源管理等。数据层则提供数据驱动服务,包括模型分类存储、模型属性表达与操作等功能。业务层则面向用户,提供多种建模工具的操作界面和功能实现。4、最后通过应用实例和仿真系统分析总结了本文建模方法的有效性和建模工具
4、的实用性,为构建其他仿真系统提供了借鉴。关键词:网络仿真,模型驱动框架,仿真场景建模方法,仿真建模工具硕士学位论文IIAbstractWith the development of information technology, modern communication network has become increasingly complex, making network design a challenging task. Network simulation is an important means for network design and simulation verifi
5、cation. Many excellent network simulators such as OPNET, NS2, and QualNet have effectively promoted the rapid development of new network technologies. However, current mainstream network simulators have problems such as inefficient modeling process, inflexible modeling method, and difficulty in reus
6、ing modeling result. It is usually necessary to establish network elements such as nodes and links one by one, and manually set a large number of network parameters, and different simulator have different modeling specifications. All this imposes an additional burden on network designers and limits
7、the efficiency of simulation modeling. The problem is even more pronounced in large-scale network simulations, batch simulations, and simulations with shared simulators.Software Engineering proposes Model Driven Architecture(MDA) for resolving the contradictions between changing business requirement
8、s and multiple implementing technologies, which has inspired the modeling in other fields. By using model and model conversion, MDA improvs the level of model abstraction and generality of modeling results. Network simulation modeling also faces the contradictions between varying simulation scenario
9、s and different simulator modeling specifications. Therefore, it is meaningful to introduce a model-driven idea to solve network simulation modeling problems. This paper aims at the common problems that affect network simulation modeling, proposes a model-driven network simulation scenario modeling
10、method, and realizes an efficient modeling tool. The main research work and contributions of this article are as follows:1. Network simulation modeling problem and the existing solutions are detailed. Besides, the research of MDA is reviewed.2. A method of Network simulation scenario modeling based
11、on Model Driven Architecture is proposed. It is divided into 3 layers called Model Layer, Description Layer and Adaptation Layer. Model Layer provides modeling elements and modeling grammar. Description Layer models the network simulation problem based on Model Layer. Adaptation Layer is responsible
12、 for converting the modeling result to a specific simulator. 基于模型驱动的网络仿真场景建模方法设计研究III3. A modeling tool is designed and implemented for the modeling method. Its overall framework is divided into 3 layers called Infrastructure Layer, Data Layer and Business Layer. Infrastructure Layer provides basic
13、functions of GUI applications, including multi-document window management, canvas drawing operation, and resource management etc. Data Layer provides data-driven services, including model storage, model expression and attribute operation etc. Business Layer is user-oriented and provides some useful
14、modeling tools. 4. Application examples are used to analyze effectiveness of the modeling method and practicability of the modeling tool, which provides a reference for other simulation systems.Keywords: Network simulation, Model Driven Architecture, Simulation scenario modeling method, Simulation m
15、odeling tool硕士学位论文IV目 录摘要 .IAbstract.II目 录 .IV1 绪论 .11.1 研究背景与意义 .11.2 国内外研究现状 .31.2.1 网络仿真技术 .31.2.2 网络仿真高效建模 .31.2.3 模型驱动建模方法 .41.3 本文研究内容与结构安排 .62 网络仿真建模问题分析 .72.1 相关概念 .72.1.1 模型与建模 .72.1.2 网络仿真与仿真器 .82.2 网络仿真器分析 .92.2.1 建模规范分析 .92.2.2 建模方法总结 .122.3 模型驱动框架分析 .132.3.1 基本概念 .132.3.2 应用分析 .152.4 本章
16、小结 .163 基于模型驱动的仿真场景建模方法 .173.1 方法总体框架 .173.2 模型层设计 .183.2.1 元模型 .183.2.2 平台相关模型 .203.2.3 平台无关模型 .213.3 描述层设计 .233.4 适配层设计 .263.5 本章小结 .284 网络仿真建模工具实现 .294.1 需求分析 .294.2 总体框架设计 .31基于模型驱动的网络仿真场景建模方法设计研究V4.3 基础设施层的设计实现 .314.3.1 开发平台与技术选型 .314.3.2 主界面与基础功能 .324.4 数据层的设计与实现 .344.4.1 文件目录服务 .344.4.2 模型表达与操作 .364.4.3 模型属性表达与操作 .394.5 业务层的设计与实现 .424.5.1 模型编辑器 .424.5.2 网络编辑器 .444.6 本章小结 .475 网络仿真建模应用实例 .485.1 仿真场景设计 .485.2 建模方法实施过程 .495.2.1 模型层 .495.2.2 描述层 .505.2.3 适配层 .525.3 仿真系统应用实例 .555.4 建模方法分析总结 .575.5 本章小结 .576 总结与展望 .586.1 工作总结 .586.2 未来工作展望 .59参考文献 .60硕士期间研究成果 .63附录 .64致谢 .66