计算机应用 ›› 2017, Vol. 37 ›› Issue (4): 1153-1156.DOI: 10.11772/j.issn.1001-9081.2017.04.1153

• 计算机软件技术 • 上一篇    下一篇

基于数据截获和欺骗式注入的通用记录重演方法

姚小强, 刘昌云, 郭相科   

  1. 空军工程大学 防空反导学院, 西安 710051
  • 收稿日期:2016-09-13 修回日期:2016-12-27 出版日期:2017-04-10 发布日期:2017-04-19
  • 通讯作者: 刘昌云
  • 作者简介:姚小强(1985-),男,河南宜阳人,讲师,硕士,主要研究方向:智能信息处理、模拟训练与仿真;刘昌云(1973-),男,四川泸州人,副教授,博士,主要研究方向:智能信息处理、雷达信号处理;郭相科(1980-),男,河南泌阳人,讲师,博士研究生,主要研究方向:目标跟踪、智能信息处理。

General record-replay method based on data interception and cheating injection

YAO Xiaoqiang, LIU Changyun, GUO Xiangke   

  1. Air and Missile Defense College, Air Force Engineering University, Xi'an Shaanxi 710051, China
  • Received:2016-09-13 Revised:2016-12-27 Online:2017-04-10 Published:2017-04-19

摘要: 针对传统记录重演方法存在同报文格式相关、需要被控程序紧密配合及数据传输效率低等问题,提出了一种基于数据截获与欺骗方式实现的通用记录重演解决方案。首先,利用Winsock2 服务提供者接口技术,实现了网络数据的自动截获;其次,采用内存映射文件技术解决了数据共享和高速存取问题;最后通过向用户程序发送伪消息激发其读数据动作,完成数据注入。实际应用表明,新方法避免了数据的网络传输,无需被重演程序配合且与系统报文无关,能够完成10倍速度的流畅重演,普适于分布式仿真与模拟训练系统。

关键词: 服务接口提供者接口, 数据截获, 欺骗注入, 记录重演, 内存映射文件

Abstract: For the problems of the traditional method of data record-replay, such as packet format association, close corporation with the controlled application, and low transmission efficiency, a new record-replay method based on data interception and cheating injection was proposed. Firstly, the network data packet was automatically intercepted through the service provider interface technique of Winsock 2. Secondly, the problem of the data sharing and high speed data access was solved by using the memory-mapped file technique. Finally, the saved data packet was intercepted into the user program by the data read operation motivated by the fake messages. The practical application shows that the new method is suitable for the distributed simulation and simulated training system for its merits such as the avoidance of network packet transmission, no necessity for corporation with the controlled application, irrelevance of the packet format, smooth recurrence with ten times the speed.

Key words: Service Provider Interface (SPI), data interception, cheating injection, record-replay, memory-mapped file

中图分类号: