摘要
在分布式仿真系统进程迁移中,除了要保存、恢复仿真进程本身的状态,进程之间通信状态的保存与恢复也是关键。通信状态主要包括两部分:进程IP地址以及进程间的交互数据。我们通过截获系统调用的方式,在用户空间完成了上述通信状态保存与恢复,实现了socket迁移。其中连接错误的监控通过心跳机制实现;进程的IP地址及交互消息被修改的系统调用透明的保存在checkpoint文件中;基于保存的上述信息,我们实现了联邦成员和RTI之间通信关系的恢复。测试结果表明该系统可以实现socket通信关系的迁移。
In the process migration of distributed simulation system, except saving and restoring the state of processes, it is also critical to save and restore the state of network communication between the simulation processes. The network communication states mainly consist of two parts, that is, the IP address and interactive data. Socket migration in user space was realized by intercepting and revising corresponding system calls. In the method, heartbeat mechanism monitors the connection error. Further, the system calls was revised, which could store the IP addresses and interactive data in checkpoint files. Based on the saved information, the recovery of communication relationship between federates and RTI was realized. The test result shows that the system can successfully achieve the migration of the socket communication relationship.
出处
《系统仿真学报》
EI
CAS
CSCD
北大核心
2006年第2期370-372,共3页
Journal of System Simulation
基金
国防预研基金资助(51404010403KG0155)