节点文献

基于网络的实时仿真支撑平台研究

Research of a Real-Time Simulation Supporting Platform Based on Network

【作者】 沈枫

【导师】 陈辉;

【作者基本信息】 武汉理工大学 , 计算机应用技术, 2007, 硕士

【摘要】 近年来,随着网络技术和计算机仿真技术的快速发展,分布式仿真、基于网络的仿真支撑平台成为人们研究的热点之一。本课题主要对仿真支撑平台开发过程中的关键技术进行研究和探讨,并开发实现仿真支撑平台的一些基本功能。本文对基于网络的仿真支撑平台几个关键技术进行重点的分析和研究:体系结构、模型程序处理、数据管理、任务调度以及网络通信。在分析和研究中充分考虑软件设计上的可重用性。基于HLA标准中的某些思想,本文提出了基于网络的仿真支撑平台的体系结构。仿真支撑平台体系结构的设计采用客户机/服务器和层次结构相结合的方式,确保仿真平台的可扩展性、复用性。模型程序的处理包括模型程序的扫描和生成,涉及编译原理中词法分析和语法分析的相关知识,参照Windows平台中启动函数创建主控函数实现仿真平台和仿真进程间的相互通信。扫描的目的是将接口变量存入变量数据库,由变量数据库存储、管理接口变量。变量数据库是一个采用内存映射文件的内存数据库,支持数据的并发存取,实现数据共享,保证数据的一致性。任务调度是基于网络的实时仿真支撑平台研究的核心问题,本文介绍了几种常用的调度算法以及负载平衡的相关概念,提出任务调度的目标,分析了仿真系统通信的特点。针对仿真任务的Master—Slave通信模式,本课题设计了一个任务管理系统,系统结合优先级排队和公平排队两种调度算法,采用令牌的方式对客户端的数据流量进行控制,从而保证仿真系统中的负载平衡。任务管理系统的关键是设计一个通信模块高效、透明地实现网络间的通信,而通信模块设计的关键是提高服务器的并行性和实现通信模块的鲁棒性。在对多线程机制和“粘包”问题分析的基础上,本课题设计一个并发服务器和缓冲器:服务器并行侦听连接以及收发数据,缓冲器除了缓冲收到的数据和待发送数据,还将粘在一起的数据包分开。任务管理系统的另一个关键是设计服务器和客户端之间通信的消息格式,本文对消息格式进行了详细的描述。最后通过图文的方式对基于网络的实时仿真支撑平台的一些诸如任务生成、管理等基本功能进行简单介绍。

【Abstract】 With the recent rapid development of network and simulation technology. Distributed Simulation and Simulation Supporting Platform based on network are one of the hot topics in the field. This project mainly investigates the key technologies in the development of Simulation Supporting Platform, and develops and implements some basic functions of the system.Discussed in this thesis mainly focuses on the analysis and the research of some key technologies, such as System Architecture, the process of model program, Data Management, task scheduling and network communication. In addition, the design of the reusable software is also penetrated in the analysis and the research.Similar to HLA, this thesis proposes the system architecture of Simulation Supporting Platform based on network. The system architecture of the simulation supporting platform combines C/S architecture and the hierarchical architecture in order to be reusable and scalable.The process of the model programs consists of scanning, building and communicating. The scanning and building involve the lexical and syntax analysis in Compiler Principle, and the communication between Simulation Process and Simulation Supporting Platform is implemented by using the idea of control function of the start-up function based on Windows. The scan module records interface variables and stores them in variable database which manages the interface variables. The database is an in-memory database, implemented by the storage mapping files, which supports the parallel storage of the variables, achieves the sharing of data and consistency of data.Task scheduling in Simulation Supporting Platform based on network is the kernel part of the research. This thesis lists some common task scheduling algorithms, describes the conception of the loading balance, and explains the purpose of the task scheduling and analyzes the feature of the communication in the simulation system. Facing the Master-Slave communication mode in the simulation system, this project proposes a task management system, which combines the PQ and the FQ, and controls the client data flow by token to ensure the loading balance in the simulation system.The essential part of project of the task management system is to design a communication module which can supply fast and transparent communication for the system, and the key part of the design is to advance the performance of server in parallel processes and to increase the robustness of the module. Based on analyzing the multithread mechanism and the data adhering problem, the project adapts a parallel server and a buffer. The server can listen to the request, send and receive the data simultaneously, while the buffer can not only separate the adherent data into some data wrap but also temporarily store the received data. Another important part of the design of the task scheduling system is to define the message format which is detailed in the thesis.Finally, this thesis briefly provides some illustrations to liveh describe the basic functions of the simulation supporting platform, such as task building and management.

  • 【分类号】TP391.9
  • 【被引频次】4
  • 【下载频次】196
节点文献中: