CN103763377B - A kind of distributed emulation time stepping method and the synchronous method of message transmission - Google Patents

A kind of distributed emulation time stepping method and the synchronous method of message transmission Download PDF

Info

Publication number
CN103763377B
CN103763377B CN201410035335.7A CN201410035335A CN103763377B CN 103763377 B CN103763377 B CN 103763377B CN 201410035335 A CN201410035335 A CN 201410035335A CN 103763377 B CN103763377 B CN 103763377B
Authority
CN
China
Prior art keywords
module
time
fedexec
time stamp
lrc
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410035335.7A
Other languages
Chinese (zh)
Other versions
CN103763377A (en
Inventor
卿杜政
杨凯
张进
郑燕红
孙捷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Simulation Center
Original Assignee
Beijing Simulation Center
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Simulation Center filed Critical Beijing Simulation Center
Priority to CN201410035335.7A priority Critical patent/CN103763377B/en
Publication of CN103763377A publication Critical patent/CN103763377A/en
Application granted granted Critical
Publication of CN103763377B publication Critical patent/CN103763377B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses the synchronous method of a kind of distributed emulation time stepping method and message transmission, while the method sends time stamp message to LRC_R module by LRC_S module by multicast, built by TCP and service on all four another time stamp message path with simulation time propulsion, LRC_R module is by comparing the concordance distributed emulation time stepping method of two-way time stamp message and the synchronization of message transmission, thus intactly achieving the service that HLA interface specification specifies, improve the runnability of distributing emulation system.

Description

A kind of distributed emulation time stepping method and the synchronous method of message transmission
Technical field
The present invention relates to a kind of synchronous method, more particularly to a kind of distributed emulation time stepping method and message transmission is same One step process.
Background technology
In the distributing emulation system based on HLA, according to HLA interface specification, during a distributed node application emulation Between be advanced to T, before being allowed to, it is necessary to assure this node has been received by the time stamp message of all Ts≤T.Due in HLA Between part RTI realization in, usual distributed emulation time stepping method service adopt transmitting pattern TCP realize, message transmission clothes Business is realized using multicast pattern Multicast, and because the two transmission mode is different with transmission path, synchronous difficulty is it is difficult to ensure Before simulation time propulsion permission, the time stamp message of all Ts≤T has been received by, thus HLA interface specification can not intactly be realized.
Content of the invention
Present invention aim at providing a kind of distributed emulation time stepping method and the synchronous method of message transmission, to ensure to divide Before the permission of cloth simulation node time stepping method, the time stamp message of all Ts≤T has been received by, thus intactly realizing HLA interface rule Model.
A kind of distributed emulation time stepping method and the synchronous method of message transmission, this synchronous method comprises the steps:
1) build the system synchronous for distributed emulation time stepping method and message transmission, this system includes:
Node messages transmission processe LRC_S module:Using multicast, send time stamp message to LRC_R module, replicate meanwhile This time stamp message, using TCP, is sent to FEDEXEC module;Using TCP, send simulation time propulsion service to FEDEXEC mould Block;
Time stepping method processes FEDEXEC module:The time stamp message that cumulative calculation receives, sends out when receiving LRC_S module During the simulation time propulsion service sent, determine whether time stepping method, and by result of calculation, and the time stamp of now accumulation Massage set is sent to LRC_R;
Node messages reception processing LRC_R module:Receive the time stamp message of LRC_S module transmission and add up;Receive The time stepping method that FEDEXEC module sends allows result and time stamp massage set, calls MSG_C module, calculates LRC_S module and sends out Whether the time stamp massage set sent is equal to the time stamp massage set that FEDEXEC module sends, if equal, allocating time advances Allow service;
Match messages process MSG_C module:Whether two time stamp massage set of relatively input are equal, equal return TRUE, otherwise returns FALSE;
2) LRC_S module sends time stamp message respectively to LRC_R module and FEDEXEC module;
3) LRC_R module receives time stamp message and processes;
4) LRC_S module sends simulation time propulsion service to FEDEXEC module;
5) FEDEXEC resume module time stamp message and application time propulsion service;
6) time stepping method that LRC_R resume module FEDEXEC module sends allows and time stamp massage set.
It is an advantage of the current invention that:
The synchronous method of time stepping method of the present invention and message transmission makes system operation more convenient, fast.
Brief description
Fig. 1:A kind of distributed emulation time stepping method and the synchronous method flow chart of message transmission.
Specific embodiment
It is illustrated in figure 1 a kind of distributed emulation time stepping method and the synchronous method flow chart of message transmission, this synchronization side The concretely comprising the following steps of method:
The first step builds the system realizing the method
Transmit synchronous system for distributed emulation time stepping method and message, including:Node messages transmission processe LRC_S Module, time stepping method process FEDEXEC module, node messages reception processing LRC_R module, match messages process MSG_C module.
The function of LRC_S module is:Using multicast, send time stamp message to LRC_R module, meanwhile, replicate this time stamp and disappear Breath, using TCP, is sent to FEDEXEC module;Using TCP, send simulation time propulsion service to FEDEXEC module;
The function of FEDEXEC module is:The time stamp message that cumulative calculation receives, when receive LRC_S module transmission During simulation time propulsion service, determine whether time stepping method, and by result of calculation, and the time stamp message of now accumulation Set is sent to LRC_R;
The function of LRC_R module is:Receive the time stamp message of LRC_S module transmission and add up;Receive FEDEXEC module to send out The time stepping method sending allows result and time stamp massage set, calls MSG_C module, calculates the time stamp message that LRC_S module sends Whether set is equal to the time stamp massage set that FEDEXEC module sends, if equal, allocating time propulsion allows service;
The function of MSG_C module is:Whether two time stamp massage set of relatively input are equal, and equal return TRUE is no Then return FALSE.
Wherein FEDEXEC module passes through transmitting pattern TCP and LRC_S module, LRC_R module communication, LRC_S module Communicated by multicast data transmission mode with LRC_R module.
Second step LRC_S module sends time stamp message
Calculate the lower limit LBTS, LBTS=T (i)+Lookahead (i) that this node can send time stamp message;
Whether the time stamp of judgement time stamp message to be sent is more than LBTS, if it is not greater, then error returns;
If it is greater, then this time stamp message is sent by multicast;
Replicate this time stamp message, FEDEXEC module is transmitted the messages to by TCP.
3rd step LRC_R module receives time stamp message and processes
Receive this time stamp message, and the time stamp massage set that this node of cumulative calculation has been received by;
Whether inquiry has permission time stepping method service that is untreated, being sent by FEDEXEC module, if it is not, returning, If it has, then calling MSG_C module, the time stamp of the time stamp massage set and the transmission of FEDEXEC module that input the reception of this node disappears Breath set, TRUE during output, then the permission time stepping method service that labelling process FEDEXEC module sends, otherwise return.
4th step LRC_S module sends simulation time propulsion service
LRC_S module judges whether simulation time advance value is more than LBTS, if it is less, directly returning;
LRC_S module sends simulation time propulsion service to FEDEXEC module by TCP, and updates the T (i) of this node Time value for this service setting.
5th step FEDEXEC resume module time stamp message and application time propulsion service
The time stamp message that FEDEXEC module cumulative calculation has been received by;
FEDEXEC module calculates the constraint time stamp lower limit of each federal member:
LBTS (i)=Min { ELT (j) } wherein i ≠ j
ELT (j)=T (j)+Lookahead (j)
After completing the calculating of LBTS (i), when FEDEXEC module judges LBTS (i) >=T (i), FEDEXEC module allows should Member logic time stepping method is to T (i), and sends, by TCP, the time stamp message that time stepping method allows time stepping method mark and renewal Gather to LRC_R module.
The time stepping method that 6th step LRC_R resume module FEDEXEC module sends allows and time stamp massage set
LRC_R module receives the time stepping method permission that FEDEXEC module sends, and is labeled as FALSE;
LRC_R module receive FEDEXEC module send time stamp massage set, call MSG_C module, input this set with This node passes through the time stamp massage set of multicast reception, and TRUE during output, then when labelling processes the permission that FEDEXEC module sends Between propulsion service, otherwise this permission time stepping method service of labelling be FALSE.
It should be appreciated that above detailed description technical scheme being carried out by preferred embodiment is schematic And it is nonrestrictive.Those of ordinary skill in the art can be remembered to each embodiment on the basis of reading description of the invention The technical scheme carrying is modified, or carries out equivalent to wherein some technical characteristics;And these modifications or replacement, and Do not make the spirit and scope of the essence disengaging various embodiments of the present invention technical scheme of appropriate technical solution.

Claims (6)

1. a kind of distributed emulation time stepping method and message transmission synchronous method it is characterised in that this synchronous method include as Lower step:
1) build the system synchronous for distributed emulation time stepping method and message transmission, this system includes:
Node messages transmission processe LRC_S module:Using multicast, send time stamp message to LRC_R module, meanwhile, when replicating this Stamp message, using TCP, is sent to FEDEXEC module;Using TCP, send simulation time propulsion service to FEDEXEC module;
Time stepping method processes FEDEXEC module:The time stamp message that cumulative calculation receives, when receive LRC_S module transmission During simulation time propulsion service, determine whether time stepping method, and by result of calculation, and the time stamp message of now accumulation Set is sent to LRC_R;
Node messages reception processing LRC_R module:Receive the time stamp message of LRC_S module transmission and add up;Receive FEDEXEC mould The time stepping method that block sends allows result and time stamp massage set, calls MSG_C module, calculates the time stamp that LRC_S module sends Whether massage set is equal to the time stamp massage set that FEDEXEC module sends, if equal, allocating time propulsion allows clothes Business;
Match messages process MSG_C module:Whether two time stamp massage set of relatively input are equal, and equal return TRUE is no Then return FALSE;
2) LRC_S module sends time stamp message respectively to LRC_R module and FEDEXEC module;
3) LRC_R module receives time stamp message and processes;
4) LRC_S module sends simulation time propulsion service to FEDEXEC module;
5) FEDEXEC resume module time stamp message and application time propulsion service;
6) time stepping method that LRC_R resume module FEDEXEC module sends allows and time stamp massage set.
2. the synchronous method of a kind of distributed emulation time stepping method according to claim 1 and message transmission, its feature exists In, when in described step 2, LRC_S module sends time stamp message respectively to LRC_R module and FEDEXEC module,
Calculate lower limit LBTS, LBTS=T (the i)+Lookahead (i) that this node can send time stamp message, when wherein T (i) is Between variable, Lookahead (i) is prediction amount;
Whether the time stamp of judgement time stamp message to be sent is more than LBTS, if it is not greater, then error returns;If it is greater, then This time stamp message is sent by multicast;
Replicate this time stamp message, FEDEXEC module is transmitted the messages to by TCP.
3. the synchronous method of a kind of distributed emulation time stepping method according to claim 1 and 2 and message transmission, its feature It is, when in described step 3, LRC_R module receives time stamp message and processes,
Receive this time stamp message, and the time stamp massage set that this node of cumulative calculation has been received by;
Whether inquiry has permission time stepping method service that is untreated, being sent by FEDEXEC module, if it is not, returning, if Have, then call MSG_C module, input the time stamp message set that the time stamp massage set of this node reception and FEDEXEC module send Close, TRUE during output, then labelling processes the permission time stepping method service that FEDEXEC module sends, and otherwise returns.
4. the synchronous method of a kind of distributed emulation time stepping method according to claim 3 and message transmission, its feature exists In, when in described step 4, LRC_S module sends simulation time propulsion service to FEDEXEC module,
LRC_S module judges whether simulation time advance value is more than LBTS, if it is less, directly returning;
LRC_S module sends simulation time propulsion service to FEDEXEC module by TCP, and updates the T (i) of this node for being somebody's turn to do The time value of service setting.
5. the synchronous method of a kind of distributed emulation time stepping method according to claim 4 and message transmission, its feature exists In, when in described step 5, FEDEXEC resume module time stamp message and application time propulsion service,
The time stamp message that FEDEXEC module cumulative calculation has been received by;
FEDEXEC module calculates the constraint time stamp lower limit of each federal member:
LBTS (i)=Min { ELT (j) } wherein i ≠ j
ELT (j)=T (j)+Lookahead (j)
After completing the calculating of LBTS (i), when FEDEXEC module judges LBTS (i) >=T (i), FEDEXEC module allows this member Logical time is advanced to T (i), and sends, by TCP, the time stamp massage set that time stepping method allows time stepping method mark and renewal To LRC_R module.
6. the synchronous method of a kind of distributed emulation time stepping method according to claim 5 and message transmission, its feature exists In, the time stepping method that in described step 6, LRC_R resume module FEDEXEC module sends allows and time stamp massage set,
LRC_R module receives the time stepping method permission that FEDEXEC module sends, and is labeled as FALSE;
LRC_R module receives the time stamp massage set that FEDEXEC module sends, and calls MSG_C module, inputs this set and this section The time stamp massage set by multicast reception for the point, TRUE during output, then the permission time that labelling process FEDEXEC module sends pushes away Enter service, otherwise this permission time stepping method service of labelling is FALSE.
CN201410035335.7A 2014-01-24 2014-01-24 A kind of distributed emulation time stepping method and the synchronous method of message transmission Active CN103763377B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410035335.7A CN103763377B (en) 2014-01-24 2014-01-24 A kind of distributed emulation time stepping method and the synchronous method of message transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410035335.7A CN103763377B (en) 2014-01-24 2014-01-24 A kind of distributed emulation time stepping method and the synchronous method of message transmission

Publications (2)

Publication Number Publication Date
CN103763377A CN103763377A (en) 2014-04-30
CN103763377B true CN103763377B (en) 2017-03-01

Family

ID=50530536

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410035335.7A Active CN103763377B (en) 2014-01-24 2014-01-24 A kind of distributed emulation time stepping method and the synchronous method of message transmission

Country Status (1)

Country Link
CN (1) CN103763377B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184816B (en) * 2014-08-28 2018-04-24 哈尔滨工程大学 One kind is based on the desired prediction amount dynamic adjusting method of simulated members event time stamp increment
CN104750903A (en) * 2014-12-16 2015-07-01 华中科技大学 Team simulation time synchronization method based on time source
CN105740045B (en) * 2016-01-25 2019-05-03 北京仿真中心 A kind of information transmission optimization method suitable for large-scale distributed associative simulation
CN107925606B (en) * 2016-02-22 2021-02-26 富士电机株式会社 Control network system and node device thereof
CN113630280B (en) * 2021-10-11 2022-01-28 中国人民解放军火箭军工程大学 Distributed collaborative simulation operation platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101496322A (en) * 2006-07-27 2009-07-29 思科技术公司 Consistent distributed timestamp counters
CN102315929A (en) * 2011-08-31 2012-01-11 北京空间飞行器总体设计部 Timing synchronization controller of ground simulation system
CN103268251A (en) * 2013-05-02 2013-08-28 中国人民解放军国防科学技术大学 Parallel discrete event simulation time synchronization method based on time-stamp cutoff

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101496322A (en) * 2006-07-27 2009-07-29 思科技术公司 Consistent distributed timestamp counters
CN102315929A (en) * 2011-08-31 2012-01-11 北京空间飞行器总体设计部 Timing synchronization controller of ground simulation system
CN103268251A (en) * 2013-05-02 2013-08-28 中国人民解放军国防科学技术大学 Parallel discrete event simulation time synchronization method based on time-stamp cutoff

Also Published As

Publication number Publication date
CN103763377A (en) 2014-04-30

Similar Documents

Publication Publication Date Title
CN103763377B (en) A kind of distributed emulation time stepping method and the synchronous method of message transmission
CN110113381B (en) Method and device for subscribing theme in block chain
CN108418845B (en) Bluetooth pairing code matches Preparation Method, system, terminal, server and mobile unit
RU2015148138A (en) METHOD AND DEVICE OF WIRELESS COMMUNICATION INTENDED FOR PROVIDING COMMUNICATION OF TYPE "DEVICE-C-DEVICE"
CN108650667A (en) Terminal scheduling method and apparatus
CN105337758A (en) Alarm processing method and device, NMS, OSS, and EMS
CN113505520A (en) Method, device and system for supporting heterogeneous federated learning
CN111008827A (en) Cross-chain transaction signature method and device
CN105075221A (en) Communication method for transmitting useful data and corresponding communication system
CN105183687A (en) Time-sharing serial communication method and system
MX2022008101A (en) Slice level load reporting and balancing in wireless communications.
CN110912805B (en) Message reading state synchronization method, terminal, server and system
CN106161171A (en) A kind of method and apparatus setting up Network example
CN109257255A (en) A kind of flux monitoring method, phone wrist-watch, server and mobile terminal
CN109348434A (en) A kind of sending method of scene information, sending device and terminal device
CN105511273B (en) A kind of client operation management method and client
CN103023934B (en) Multi-stream service synchronous method in virtual terminal system and virtual terminal system
CN107659491A (en) A kind of Group file sharing method and system based on instant messaging
CN109271454A (en) A kind of method and the network equipment that data are synchronous
CN106230877B (en) Remote management method, system and equipment of equipment
TWI599255B (en) Pilot configuration method and device
CN114866970A (en) Policy control method, system and related equipment
CN102638851B (en) A kind of data sharing and sending method, Apparatus and system
CN102821033B (en) Message transmission method and device
CN111327864A (en) Video call control method and device, terminal equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant