为解决耦合分布式仿真系统在仿真过程中因通信链路中断、通信阻塞等原因造成的执行机同耦合器之间通信中断或数据丢包的问题,设计并实现了在执行机端进行的通信故障检测算法以及在执行机和耦合器相互协同下的通信故障恢复算法。通过将执行机和耦合器之间的通信故障检测从耦合器端移到执行机端进行,减少了耦合器进行通信故障检测和恢复的负担,降低了通信故障检测的执行频率并且使得通信故障检测时间间隔可以依据具体的仿真工况确定,避免了在耦合器端进行通信故障检测时必须选取所有计算模块中最大计算时间间隔作为故障检测间隔的缺点,在保证了耦合分布式仿真系统通信稳定性和可靠性的同时,增加了执行机和耦合器之间进行通信故障检测和恢复的灵活性。
Because of broken of communication link or blocking of communication in simulating process for coupled distributed simula- tion system, lead to data transferring communication interruption or data loss between execute machine and coupler. To solve the problem, design and implement the communication failure detection algorithm for the execute machine and the communication failure recovery al- gorithm for the cooperation between execute machine and coupler. The ways of communication failure detection between execute machine and coupler is carried out from coupler side to execute machine side, reducing the load of communication failure detection and recovery on coupler and the execution efficiency of communication failure detection, and the maximum time interval of communication failure detection can be determined according to the specific simulation conditions. The disadvantage that the maximum computation time interval of all the computation modules must be selected as the communication failure detection time interval is avoided. The stability and reliability of the distributed simulation system are ensured and the flexibility of communication failure detection and communication recovery is improved.