CN115296765A - Time synchronization method of distributed simulation system and distributed simulation system - Google Patents

Time synchronization method of distributed simulation system and distributed simulation system Download PDF

Info

Publication number
CN115296765A
CN115296765A CN202210539674.3A CN202210539674A CN115296765A CN 115296765 A CN115296765 A CN 115296765A CN 202210539674 A CN202210539674 A CN 202210539674A CN 115296765 A CN115296765 A CN 115296765A
Authority
CN
China
Prior art keywords
gateway
time
subsystem
applications
simulation
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.)
Granted
Application number
CN202210539674.3A
Other languages
Chinese (zh)
Other versions
CN115296765B (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.)
Beihang University
Original Assignee
Beihang University
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 Beihang University filed Critical Beihang University
Priority to CN202210539674.3A priority Critical patent/CN115296765B/en
Publication of CN115296765A publication Critical patent/CN115296765A/en
Application granted granted Critical
Publication of CN115296765B publication Critical patent/CN115296765B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0638Clock or time synchronisation among nodes; Internode synchronisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04JMULTIPLEX COMMUNICATION
    • H04J3/00Time-division multiplex systems
    • H04J3/02Details
    • H04J3/06Synchronising arrangements
    • H04J3/0635Clock or time synchronisation in a network
    • H04J3/0685Clock or time synchronisation in a node; Intranode synchronisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Synchronisation In Digital Transmission Systems (AREA)

Abstract

The present application relates to the field of computational simulation technologies, and in particular, to a time synchronization method for a distributed simulation system and a distributed simulation system. The time synchronization method comprises the following steps: acquiring simulation control requests of a plurality of applications through a gateway subsystem of a distributed simulation system; the simulation control request comprises a simulation control command and a simulation control message; the gateway subsystem responds to the simulation control command and acquires control data from the simulation service subsystem based on the simulation control message; under the condition that the magnitude of the control data reaches a first threshold value, the gateway subsystem determines the target transmission time of the control data among the applications in the multiple applications based on a preset data distribution service technology; the gateway subsystem synchronizes each of the plurality of applications based on the target transmission time. The development difficulty of time synchronization can be reduced, the development time of time synchronization is shortened, and the data transmission speed is increased.

Description

Time synchronization method of distributed simulation system and distributed simulation system
Technical Field
The present application relates to the field of computational simulation technologies, and in particular, to a time synchronization method for a distributed simulation system and a distributed simulation system.
Background
The distributed simulation system is a computer network-based simulation, and one of important fields of current simulation technology research has higher engineering application value.
Distributed simulation system time management is the basis for distributed simulation systems. Correctness of causality (i.e., data transmission logic) is a primary task of time management of a distributed simulation system, and is usually guaranteed by controlling time synchronization of nodes in the simulation system.
The time synchronization is used to ensure that a correct event is triggered at a correct time, and specifically, the time synchronization generally includes using a clock source approved by the system, and adjusting clocks of nodes in the system to a same time by a compensation means. The maximum error between different clocks becomes the time synchronization accuracy.
Generally, a distributed simulation system is obtained based on a high-level architecture, and the high-level architecture is based on an object-oriented method to design, develop and realize object models of different levels and granularities of the system so as to obtain interoperability and reusability of a simulation component and the simulation system on a high level. However, in the distributed simulation system based on the high-level architecture, the target transmission time is obtained by calculating the number of steps for transmitting the control data of each node, synchronization is performed based on the target transmission time, and after the current control data is transmitted, an instruction for transmitting the next control data is triggered, so that the associated control data cannot be transmitted simultaneously. Thus, when the data amount of the control data is large, the step number calculation is time-consuming and tedious, and the data transmission speed is slow.
Therefore, it is desirable to provide a time synchronization method for a distributed simulation system and a distributed simulation system, which can reduce the difficulty in developing time synchronization, shorten the development time of time synchronization, increase the data transmission speed, and increase the data transmission speed.
Disclosure of Invention
The embodiment of the application provides a time synchronization method of a distributed simulation system and the distributed simulation system, which can reduce the development difficulty of time synchronization, shorten the development time of time synchronization and increase the speed of data transmission.
On one hand, the embodiment of the application provides a time synchronization method of a distributed simulation system, wherein the distributed simulation system comprises a plurality of applications, a gateway subsystem and a simulation service subsystem; the gateway subsystem is used for controlling data transmission among the applications in the plurality of applications; the simulation service subsystem is used for simulating the data transmission among the applications in the plurality of applications; the method comprises the following steps:
the gateway subsystem acquires simulation control requests of the plurality of applications; the simulation control request comprises a simulation control command and a simulation control message;
the gateway subsystem responds to the simulation control command and acquires control data from the simulation service subsystem based on the simulation control message;
in the case that the magnitude of the control data reaches a first threshold, the gateway subsystem determines a target transmission time of the control data between each of the plurality of applications based on a preset data distribution service technology;
the gateway subsystem synchronizes each of the plurality of applications based on the target transmission time.
In some optional embodiments, the gateway subsystem includes a sub-gateway corresponding to each of the plurality of applications; the sub-gateway is used for controlling the operation time of the corresponding application;
the gateway subsystem synchronizing each of the plurality of applications based on the target transmission time, including:
the gateway subsystem synchronizes the external time of the sub-gateway based on a reference clock of the gateway subsystem;
the gateway subsystem synchronizes the internal time of the sub-gateway based on the target transmission time.
In some optional embodiments, the gateway subsystem comprises a first thread and a second thread; the first thread is to process the sub-gateway to synchronize the external time of the sub-gateway based on the reference clock of the gateway subsystem; the first thread is to process the subsystem to synchronize the internal time of the sub-gateway based on a target transmission time.
In some optional embodiments, the gateway subsystem synchronizing the external time of the sub-gateway based on the reference clock of the gateway subsystem includes:
the gateway subsystem realizes the initial time calibration of the external time of the sub-gateway based on the reference clock of the gateway subsystem through a master-slave probability algorithm; and/or
The gateway subsystem performs a runtime calibration of the external time of the sub-gateway based on real-world time.
In some optional embodiments, the initial time calibration and the run-time calibration are implemented based on a low-frequency calibration mode.
In some optional embodiments, the sub-gateway is provided with a high-precision clock;
the gateway subsystem synchronizing internal times of the sub-gateways based on a target transmission time, comprising:
the gateway subsystem constructs a logic clock of the gateway subsystem based on the high-resolution performance counter;
and the gateway subsystem realizes the synchronization of the target transmission time and the internal time of the sub-gateway through the logic clock.
In some optional embodiments, the gateway subsystem is provided with a reflective memory network, and the method further includes:
and under the condition that the time synchronization and the real-time transmission of the control data reach a second threshold value, the gateway subsystem determines the target transmission time of the control data among the applications based on the reflective memory network.
In another aspect, an embodiment of the present application provides a distributed simulation system, where the system includes:
a plurality of applications, gateway subsystems and emulation service subsystems;
the gateway subsystem is used for controlling data transmission among the applications in the plurality of applications;
the simulation service subsystem is used for simulating the data transmission among the applications in the plurality of applications;
the gateway subsystem acquires control data required for simulation of the plurality of applications from the simulation service subsystem; determining a target transmission time of the control data based on a preset data distribution service technology under the condition that the magnitude of the control data reaches a first threshold value; and synchronizing each of the plurality of applications based on the target transmission time.
In some optional embodiments, the gateway subsystem includes a sub-gateway corresponding to each of the plurality of applications; the sub-gateway is used for controlling the operation time of the corresponding application;
the synchronizing each of the plurality of applications based on the target transmission time comprises:
the gateway subsystem synchronizes the external time of the sub-gateway based on a reference clock of the gateway subsystem;
the gateway subsystem synchronizes the internal time of the sub-gateway based on the target transmission time.
In some optional embodiments, the gateway subsystem determines the target transmission time of the control data based on the reflective memory network, when the real-time performance of time synchronization and transfer of the control data reaches a second threshold.
The method comprises the steps that simulation control requests of a plurality of applications are obtained through a gateway subsystem of a distributed simulation system; the simulation control request comprises a simulation control command and a simulation control message; the gateway subsystem responds to the simulation control command and acquires control data from the simulation service subsystem based on the simulation control message; in the case that the magnitude of the control data reaches a first threshold, the gateway subsystem determines a target transmission time of the control data between each of the plurality of applications based on a preset data distribution service technology; the gateway subsystem synchronizes each of the plurality of applications based on the target transmission time. For control data with a weaker real-time requirement and a larger data volume, the target transmission time is determined by the data distribution service technology, the step number calculation of the control data is not needed, the development difficulty of time synchronization can be reduced, the development time of the time synchronization is shortened, and the data transmission speed is increased.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the description below are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a distributed simulation system according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a time synchronization method of a distributed simulation system according to an embodiment of the present application;
FIG. 3 is a schematic flowchart of another time synchronization method for a distributed simulation system according to an embodiment of the present disclosure;
fig. 4 is a hardware structure block diagram of an electronic device for implementing a time synchronization method of a distributed simulation system according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, shall fall within the protection scope of the present invention.
Reference herein to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic may be included in at least one implementation of the invention. In describing the present invention, it is to be understood that the terms "first," "second," "third," and "fourth," etc. in the description and claims of the present invention and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Firstly, a schematic structural diagram of a distributed simulation system is described by way of example.
Referring to fig. 1, fig. 1 is a schematic diagram of a distributed simulation system according to an embodiment of the present application. The distributed simulation system shown in fig. 1 includes an application layer, a gateway layer, a simulation service layer, a common service layer, a data model layer, and a data exchange layer, respectively.
The application layer contains emulated application resources (i.e., applications) of different architectures, e.g., the application layer includes live applications, virtual applications, and build applications. The model A obtained by the live application in the application layer and the model B obtained by the virtual application are obtained, namely the live application comprises the model A, and the virtual application comprises the model B.
The gateway layer includes gateways for interconnection and interoperation between applications, such as interoperation between model a and model B. For example, the gateway includes a sub-gateway corresponding to each application at the application layer, such as the sub-gateways shown in fig. 1, e.g., a live gateway, a virtual gateway, and a fabric gateway. Each sub-gateway controls the interconnection and interoperation between each application.
The simulation service layer is used for providing simulation services required by the application, and the simulation services comprise time management, operation management, object management and interaction management.
The public service layer is used for providing public basic services for the applications in the application layer. The common basic service comprises log management, data interaction management, collaboration perception management and process monitoring management.
The data model layer is used to support the interconnection between applications. The data model layer includes a control data model and a simulation data model.
The data exchange layer is used for realizing real-time communication of various networks and different operating systems based on data transmission among applications, and providing a data transmission basis for realizing various public services and simulation services. The data transmission is effectively controlled by adopting the service quality parameters, the safety is higher, and the requirements of fault tolerance, expandability, instantaneity and the like are met under different network conditions. The method has an automatic discovery mechanism and a mode, can specify the behavior used when sending and receiving data, completely overcomes the defects of different version matching, expansibility and the like of a high-level system structure, and realizes that the application obtained by application dynamically joins in the distributed simulation in the simulation process and rejoins the distributed simulation after connection fails.
The gateway layer can call the interfaces of the simulation service layer and the data exchange layer; the simulation service is realized based on a common service layer and a data exchange layer, and mainly realizes a common simulation service function for simulation architectures which cannot support data distribution service technology.
As mentioned before, time synchronization between the applications of the application layer can ensure that the correct event is triggered at the correct time, so time synchronization is important for data transmission of the distributed simulation system; however, generally, for the transmission of control data between applications, the gateway layer obtains the target transmission time by calculating the step number and performs synchronization based on the target transmission time, so that the step number calculation is time-consuming and tedious when the data amount of the control data is large.
In order to solve the above problem, the present application provides a time synchronization method for a distributed simulation system, specifically, the gateway subsystem of the distributed simulation system obtains simulation control requests of the plurality of applications; the simulation control request comprises a simulation control command and a simulation control message; the gateway subsystem responds to the simulation control command and acquires control data from the simulation service subsystem based on the simulation control message; in the case that the magnitude of the control data reaches a first threshold, the gateway subsystem determines a target transmission time of the control data among the applications in the plurality of applications based on a preset data distribution service technology; the gateway subsystem synchronizes each of the plurality of applications based on the target transmission time. For control data with a weaker real-time requirement and a larger data volume, the target transmission time is determined by the data distribution service technology, the step number calculation of the control data is not needed, the development difficulty of time synchronization can be reduced, the development time of the time synchronization is shortened, and the data transmission speed is increased.
A specific embodiment of a time synchronization method of a distributed simulation system according to the present application is described below, fig. 2 is a schematic flow diagram of the time synchronization method of the distributed simulation system according to the present application, and fig. 3 is a schematic structural diagram of a solenoid valve performance prediction system according to the present application. The specification provides method steps such as in the examples or flowcharts, but may include more or fewer steps based on routine or non-inventive practice. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. In practice, the system or server product may be implemented in a sequential or parallel manner (e.g., parallel processor or multi-threaded environment) according to the embodiments or methods shown in the figures. Specifically, as shown in fig. 2, the method may include:
s201: the gateway subsystem acquires simulation control requests of a plurality of applications; the simulation control request comprises a simulation control command and a simulation control message.
S203: the gateway subsystem responds to the simulation control command and acquires control data from the simulation service subsystem based on the simulation control message.
S205: in the event that the magnitude of the control data reaches a first threshold, the gateway subsystem determines a target transmission time for the control data between each of the plurality of applications based on a preset data distribution service technique. The transmission of the control data comprises the transmission of the control data among all sub gateways in the gateway layer.
S207: the gateway subsystem synchronizes each of the plurality of applications based on the target transmission time.
In some optional embodiments, the gateway subsystem includes a sub-gateway corresponding to each of the plurality of applications; the sub-gateway is used for controlling the operation time of the corresponding application; the gateway subsystem synchronizes the external time of the sub-gateway based on a reference clock of the gateway subsystem; the gateway subsystem synchronizes the internal time of the sub-gateway based on the target transmission time. In this way, synchronization of the internal time of the application (sub-gateway) with the external time (reference clock) is achieved.
In some optional embodiments, the gateway subsystem comprises a first thread and a second thread; the first thread is to process the sub-gateway to synchronize the external time of the sub-gateway based on the reference clock of the gateway subsystem; the first thread is to process the subsystem to synchronize the internal time of the sub-gateway based on a target transmission time.
The sub-gateway structures corresponding to the applications are different, so that the network transmission rate is different during data transmission, and the problem of network delay is caused. For example, the gateway uses an ethernet interface or a reflective memory network interface to receive external time synchronization signals. The delay of the reflective memory network is negligible, mainly considering different initial times. When receiving the external time synchronization signal by using the Ethernet interface, the synchronization problem of initial time and simulation time advance needs to be considered simultaneously. In some optional embodiments, the synchronizing, by the gateway subsystem, the external time of the sub-gateway based on the reference clock of the gateway subsystem includes:
the gateway subsystem realizes the initial time calibration of the external time of the sub-gateway based on the reference clock of the gateway subsystem through a master-slave probability algorithm; and/or
The gateway subsystem performs a runtime calibration of the external time of the sub-gateway based on real-world time.
In this embodiment, the initial time calibration and the running time calibration solve the problem of network delay caused by different network transmission rates during data transmission due to different subnet gateway structures corresponding to each application.
In some optional embodiments, the initial time calibration and the run-time calibration are implemented based on a low-frequency calibration mode.
In some optional embodiments, the sub-gateway is provided with a high-precision clock;
the gateway subsystem synchronizing internal times of the sub-gateways based on a target transmission time, comprising:
the gateway subsystem constructs a logic clock of the gateway subsystem based on the high-resolution performance counter;
and the gateway subsystem realizes the synchronization of the target transmission time and the internal time of the sub-gateway through the logic clock.
In the above embodiment, when the magnitude of the control data is set to reach the first threshold, the transmission time of the control data in the gateway is automatically determined by using the data distribution service technology, and the transmission time of the control data is determined by using step number calculation under the condition of avoiding a large amount of control data, so that the development difficulty of time synchronization can be reduced, the development time of time synchronization can be shortened, and the data transmission speed can be increased.
Fig. 3 is a schematic flowchart of another time synchronization method for a distributed simulation system according to an embodiment of the present application, and as shown in fig. 3, the method includes the steps shown in fig. 2, that is, steps S201 to S207, which is not described again for the contents of the steps in fig. 2. The method comprises the following specific steps:
s209: and under the condition that the time synchronization and the transmission real-time performance of the control data reach a second threshold value, the gateway subsystem determines the target transmission time of the control data among the applications based on the reflective memory network.
In the above embodiment, the target transmission time of the control data between the applications in the multiple applications is determined based on the reflective memory network by setting that the time synchronization and the transmission real-time performance of the control data reach the second threshold. For example, each application is connected to the gateway layer through a reflective memory network. The reflecting memory network has high transmission rate and determined response time, and is suitable for time synchronization of high-speed data. The data transmission speed is guaranteed, and meanwhile cost is saved (the reflective memory network is used under the condition that the second threshold value is met).
In some optional embodiments, the distributed simulation system is realized by a solenoid valve performance prediction system. The distributed simulation system includes:
a plurality of applications, gateway subsystems and emulation service subsystems;
the gateway subsystem is used for controlling data transmission among the applications in the plurality of applications;
the simulation service subsystem is used for simulating the data transmission among the applications in the plurality of applications;
the gateway subsystem acquires control data required for simulation of the plurality of applications from the simulation service subsystem; determining a target transmission time of the control data based on a preset data distribution service technology under the condition that the magnitude of the control data reaches a first threshold value; and synchronizing each of the plurality of applications based on the target transmission time.
For example, the plurality of applications are live applications as shown in fig. 1; the gateway subsystem is a gateway system included in the gateway layer, and for example, the gateway subsystem includes sub-gateways such as a live gateway, a virtual gateway, and a configuration gateway shown in fig. 1; the simulation service subsystems include subsystems included in a simulation service layer, a common service layer, a data model layer, and a data exchange layer shown in fig. 1.
In some optional embodiments, the gateway subsystem includes a sub-gateway corresponding to each of the plurality of applications; the sub-gateway is used for controlling the operation time of the corresponding application;
the synchronizing each of the plurality of applications based on the target transmission time includes:
the gateway subsystem synchronizes the external time of the sub-gateway based on a reference clock of the gateway subsystem;
the gateway subsystem synchronizes the internal time of the sub-gateway based on the target transmission time.
In some optional embodiments, the gateway subsystem determines the target transmission time of the control data based on the reflective memory network, in case the real-time of the time synchronization and the transfer of the control data reaches a second threshold.
Therefore, the time synchronization method of the distributed simulation system is realized through the simulation service subsystem.
Fig. 4 is a hardware structure block diagram of an electronic device for implementing a time synchronization method of a distributed simulation system according to an embodiment of the present application. The electronic device may be a server or a terminal device, and its internal structure diagram may be as shown in fig. 4. As shown in fig. 4, the electronic device 400 may have a relatively large difference due to different configurations or performances, and may include one or more Central Processing Units (CPUs) 410 (the processors 410 may include but are not limited to a Processing device such as a microprocessor MPU or a programmable logic device FPGA), a memory 430 for storing data, and one or more storage media 420 (e.g., one or more mass storage devices) for storing applications 423 or data 422. Memory 430 and storage medium 420 may be, among other things, transient or persistent storage. The program stored on the storage medium 420 may include one or more modules, each of which may include a series of instruction operations on a server. Further, the central processor 410 may be configured to communicate with the storage medium 420, and execute a series of instruction operations in the storage medium 420 on the electronic device 400. The electronic device 400 may also include one or more power supplies 450, one or more wired or wireless network interfaces 450, one or more input-output interfaces 440, and/or one or more operating systems 421, such as Windows, mac OS, unix, linux, freeBSD, and the like.
The input/output interface 440 may be used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the electronic device 400. In one example, i/o Interface 440 includes a Network adapter (NIC) that can be coupled to other Network devices via a base station to communicate with the internet. In one example, the input/output interface 440 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
The power supply 460 may be logically coupled to the processor 410 through a power management system, thereby performing functions of managing charging, discharging, and power consumption through the power management system.
It will be understood by those skilled in the art that the structure shown in fig. 4 is only an illustration and is not intended to limit the structure of the electronic device. For example, electronic device 400 may also include more or fewer components than shown in FIG. 4, or have a different configuration than shown in FIG. 4.
Embodiments of the present application further provide a computer storage medium, in which at least one instruction or at least one program is stored, and the at least one instruction or the at least one program is loaded and executed by a processor to implement the time synchronization method of the distributed simulation system.
Alternatively, in this embodiment, the storage medium may be located in at least one network server of a plurality of network servers of a computer network. Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The embodiment of the present application further provides an electronic device, which at least includes a processor 410 and a memory 430, where the memory 430 stores at least one instruction or at least one program, and the at least one instruction or the at least one program is loaded by the processor 410 and executes the time synchronization method of the distributed simulation system.
As can be seen from the foregoing embodiments of the time synchronization method for a distributed simulation system and the distributed simulation system provided in the present application, the simulation control requests of the plurality of applications are obtained through the gateway subsystem of the distributed simulation system; the simulation control request comprises a simulation control command and a simulation control message; the gateway subsystem responds to the simulation control command and acquires control data from the simulation service subsystem based on the simulation control message; in the case that the magnitude of the control data reaches a first threshold, the gateway subsystem determines a target transmission time of the control data between each of the plurality of applications based on a preset data distribution service technology; the gateway subsystem synchronizes each of the plurality of applications based on the target transmission time. The development difficulty of time synchronization can be reduced, the development time of time synchronization is shortened, and the data transmission speed is increased.
It should be noted that: the sequence of the embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments. And specific embodiments thereof have been described above. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A time synchronization method of a distributed simulation system comprises a plurality of applications, a gateway subsystem and a simulation service subsystem; the gateway subsystem is used for controlling data transmission among the applications in the plurality of applications; the simulation service subsystem is used for simulating the data transmission among the applications in the plurality of applications; characterized in that the method comprises:
the gateway subsystem acquires simulation control requests of the plurality of applications; the simulation control request comprises a simulation control command and a simulation control message;
the gateway subsystem responds to the simulation control command and acquires control data from the simulation service subsystem based on the simulation control message;
in the case that the magnitude of the control data reaches a first threshold, the gateway subsystem determines a target transmission time of the control data among the applications in the plurality of applications based on a preset data distribution service technology;
the gateway subsystem synchronizes each of the plurality of applications based on the target transmission time.
2. The method of claim 1, wherein the gateway subsystem comprises a sub-gateway corresponding to each of the plurality of applications; the sub-gateway is used for controlling the operation time of the corresponding application;
the gateway subsystem synchronizing each of the plurality of applications based on the target transmission time, including:
the gateway subsystem synchronizes the external time of the sub-gateway based on a reference clock of the gateway subsystem;
the gateway subsystem synchronizes the internal time of the sub-gateway based on the target transmission time.
3. The method of claim 2, wherein the gateway subsystem comprises a first thread and a second thread; the first thread is to process the sub-gateway to synchronize the external time of the sub-gateway based on the reference clock of the gateway subsystem; the first thread is to process the subsystem to synchronize the internal time of the sub-gateway based on a target transmission time.
4. The method of claim 2, wherein the gateway subsystem synchronizes an external time of the sub-gateway based on a reference clock of the gateway subsystem, comprising:
the gateway subsystem realizes the initial time calibration of the external time of the sub-gateway based on the reference clock of the gateway subsystem through a master-slave probability algorithm; and/or
The gateway subsystem performs a runtime calibration of the external time of the sub-gateway based on real-world time.
5. The method of claim 4, wherein the initial time calibration and the run-time calibration are implemented based on a low frequency calibration mode.
6. The method of claim 2, wherein the sub-gateway is provided with a high precision clock;
the gateway subsystem synchronizing internal times of the sub-gateways based on a target transmission time, comprising:
the gateway subsystem constructs a logic clock of the gateway subsystem based on the high-resolution performance counter;
and the gateway subsystem realizes the synchronization of the target transmission time and the internal time of the sub-gateway through the logic clock.
7. The method of any of claims 1 to 6, wherein the gateway subsystem is provided with a reflective memory network, the method further comprising:
and under the condition that the time synchronization and the real-time transmission of the control data reach a second threshold value, the gateway subsystem determines the target transmission time of the control data among the applications based on the reflective memory network.
8. A distributed simulation system, the system comprising:
a plurality of applications, gateway subsystems and emulation service subsystems;
the gateway subsystem is used for controlling data transmission among the applications in the plurality of applications;
the simulation service subsystem is used for simulating the data transmission among the applications in the plurality of applications;
the gateway subsystem acquires control data required for simulation of the plurality of applications from the simulation service subsystem; determining a target transmission time of the control data based on a preset data distribution service technology under the condition that the magnitude of the control data reaches a first threshold value; and synchronizing each of the plurality of applications based on the target transmission time.
9. The system of claim 8, wherein the gateway subsystem comprises a sub-gateway for each of the plurality of applications; the sub-gateway is used for controlling the operation time of the corresponding application;
the synchronizing each of the plurality of applications based on the target transmission time includes:
the gateway subsystem synchronizes the external time of the sub-gateway based on the reference clock of the gateway subsystem;
the gateway subsystem synchronizes the internal time of the sub-gateway based on the target transmission time.
10. The system of claim 8, wherein the gateway subsystem determines the target transmission time for the control data based on the reflective memory network if the real-time nature of the time synchronization and delivery of the control data reaches a second threshold.
CN202210539674.3A 2022-05-17 2022-05-17 Time synchronization method of distributed simulation system and distributed simulation system Active CN115296765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210539674.3A CN115296765B (en) 2022-05-17 2022-05-17 Time synchronization method of distributed simulation system and distributed simulation system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210539674.3A CN115296765B (en) 2022-05-17 2022-05-17 Time synchronization method of distributed simulation system and distributed simulation system

Publications (2)

Publication Number Publication Date
CN115296765A true CN115296765A (en) 2022-11-04
CN115296765B CN115296765B (en) 2024-08-06

Family

ID=83820594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210539674.3A Active CN115296765B (en) 2022-05-17 2022-05-17 Time synchronization method of distributed simulation system and distributed simulation system

Country Status (1)

Country Link
CN (1) CN115296765B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116882335A (en) * 2023-09-06 2023-10-13 上海芯存天下电子科技有限公司 Operation time simulation acquisition method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009152721A1 (en) * 2008-06-20 2009-12-23 华为技术有限公司 A system for supporting large-scale distributed p2p simulation and a realization method and apparatus
CN111324046A (en) * 2020-02-28 2020-06-23 中国电力科学研究院有限公司 Method and system for performing cooperative operation on distributed simulation system
CN114281469A (en) * 2021-11-10 2022-04-05 北京京东振世信息技术有限公司 Distributed simulation method and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009152721A1 (en) * 2008-06-20 2009-12-23 华为技术有限公司 A system for supporting large-scale distributed p2p simulation and a realization method and apparatus
CN111324046A (en) * 2020-02-28 2020-06-23 中国电力科学研究院有限公司 Method and system for performing cooperative operation on distributed simulation system
CN114281469A (en) * 2021-11-10 2022-04-05 北京京东振世信息技术有限公司 Distributed simulation method and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
孙学功: "分布式仿真运行支撑环境实现方法研究", 计算机仿真, 15 September 2012 (2012-09-15) *
贾如春: "基于HLA的仿真混合实时通讯网络的架构与研究", 电脑迷, 5 April 2018 (2018-04-05) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116882335A (en) * 2023-09-06 2023-10-13 上海芯存天下电子科技有限公司 Operation time simulation acquisition method and device, electronic equipment and storage medium
CN116882335B (en) * 2023-09-06 2023-12-22 上海芯存天下电子科技有限公司 Operation time simulation acquisition method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN115296765B (en) 2024-08-06

Similar Documents

Publication Publication Date Title
CN111625354B (en) Edge computing equipment calculation force arranging method and related equipment thereof
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
CN107959582B (en) Slice instance management method and device
CN113656147B (en) Cluster deployment method, device, equipment and storage medium
CN109117252B (en) Method and system for task processing based on container and container cluster management system
CN111061491A (en) LXC container technology-based edge computing gateway management system and method
CN111984270A (en) Application deployment method and system
CN108737141B (en) Satellite link intermittent and delayed simulation method
CN111984269A (en) Method for providing application construction service and application construction platform
CN111857733B (en) Construction method, device and system of service environment and readable storage medium
CN110490316B (en) Training processing method and training system based on neural network model training system
CN115733746B (en) Deployment method, device and equipment of service grid unit and storage medium
CN113190282A (en) Android operating environment construction method and device
CN115296765B (en) Time synchronization method of distributed simulation system and distributed simulation system
CN103677983A (en) Scheduling method and device of application
Gupta et al. Deploying hadoop architecture using ansible and terraform
EP3855689A1 (en) Method, apparatus, and system for providing service, storage medium, and electronic device
CN113079098B (en) Method, device, equipment and computer readable medium for updating route
CN115167874B (en) Automatic driving software mirror image deployment method and device, electronic equipment and readable medium
CN114827177B (en) Deployment method and device of distributed file system and electronic equipment
CN116450351A (en) Edge container scheduling algorithm
CN114157658B (en) Mirror warehouse deployment method, apparatus, electronic device and computer readable medium
CN113836061B (en) Distributed real-time simulation method suitable for simulation model and flow model
CN113821354A (en) System and method for providing an abstraction layer between an application layer and a hardware component of a computing device
CN116711276A (en) Method, related device and equipment for upgrading nodes in batches

Legal Events

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