Dynamic network clock synchronization simulation method, system, device and medium

By obtaining and analyzing the topology model and noise characteristics of the dynamic network, calculating node motion and clock offset, and substituting them into the algorithm update formula, the problem of low clock synchronization efficiency and accuracy in the dynamic network is solved, and more efficient clock synchronization is achieved.

CN113935139BInactive Publication Date: 2024-09-17CENT SOUTH UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111234276.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-22
Publication Date
2024-09-17
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing clock synchronization algorithms have low synchronization efficiency and accuracy in dynamic networks, and cannot effectively handle topology transformation and transmission delay asymmetry caused by node movement.

Method used

By obtaining the topological model parameters, topological structure changes and noise random distribution characteristics of the dynamic network, the topological structure diagram and noise distribution histogram are generated, the motion parameters and clock parameters of the nodes are obtained, the motion process and clock offset of the nodes are calculated, and substituted The algorithm updates formulas to generate simulation results, improving clock synchronization efficiency and accuracy.

Benefits of technology

Through topology analysis and clock compensation, the clock synchronization efficiency and accuracy of dynamic networks are improved, and the problems of low synchronization efficiency and accuracy are solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113935139B
    Figure CN113935139B
Patent Text Reader

Abstract

In the disclosed embodiment, a dynamic network clock synchronization simulation method, system, device and medium are provided, which belongs to the field of wireless sensor network technology, and specifically includes: obtaining the topological model parameters, topological structure change amount and noise random distribution characteristics of the dynamic network to be tested; generating a topological structure diagram and a noise distribution histogram; obtaining the motion parameters and clock parameters of each node according to the topological structure diagram; generating the motion process of each node within a preset time period according to the motion parameters, and generating the offset between the actual clock of each node and the reference clock according to the clock parameters; substituting the noise distribution histogram, the motion process and the offset into the algorithm update formula to obtain the simulation result of the dynamic network to be tested. Through the scheme disclosed in the present invention, the topological structure of the dynamic network to be tested is analyzed, and the motion and clock of each node in the topological structure are improved and compensated to obtain the simulation result, thereby improving the clock synchronization efficiency and accuracy of the dynamic network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of wireless sensor network technology, and in particular to a dynamic network clock synchronization simulation method, system, device and medium. Background Art

[0002] At present, wireless sensor network is a network form formed by organizing and combining tens of thousands of sensor nodes through wireless communication technology. It has a wide range of potential applications, such as military, aviation, disaster relief, environment, medical, home, industry, etc. As a distributed network, wireless sensor network can only collaborate to complete more corresponding tasks under the same time base. Therefore, the clock synchronization problem is the basic and primary problem in wireless sensor network. Most of the existing clock synchronization algorithms are based on static networks. However, with the development of wireless sensor network technology, the gradual rise of applications such as drone formations, intelligent vehicle networks, intersatellite links, and missile groups, the movement of nodes in the network has brought new characteristics to wireless sensor networks. The movement of nodes in dynamic networks not only brings topological changes, but also the problem of asymmetric transmission delay. In order to improve the synchronization accuracy of dynamic networks, the problem of motion delay compensation needs to be considered. Therefore, for dynamic network clock synchronization, designing a software simulation environment is helpful to improve and enhance the effect of clock synchronization in dynamic networks. However, the existing clock synchronization algorithms have the problem of low synchronization efficiency and synchronization accuracy in the process of processing dynamic networks.

[0003] It can be seen that there is an urgent need for a dynamic network clock synchronization simulation method that can improve the clock synchronization efficiency and accuracy of the dynamic network. Summary of the invention

[0004] In view of this, the embodiments of the present disclosure provide a dynamic network clock synchronization simulation method, system, device and medium, which at least partially solve the problem of poor clock synchronization efficiency and accuracy for dynamic networks in the prior art.

[0005] In a first aspect, an embodiment of the present disclosure provides a dynamic network clock synchronization simulation method, including:

[0006] Obtain the topological model parameters, topological structure variation and noise random distribution characteristics of the dynamic network to be tested;

[0007] Generate a topological structure diagram and a noise distribution histogram according to the topological model parameters, the topological structure variation and the noise random distribution characteristics;

[0008] Acquire motion parameters and clock parameters of each node in the dynamic network to be tested according to the topological structure diagram;

[0009] Generate a movement process of each of the nodes within a preset time period according to the movement parameters, and generate an offset between an actual clock of each of the nodes and a reference clock according to the clock parameters;

[0010] Substituting the noise distribution histogram, the motion process and the offset into an algorithm update formula, a simulation result of the dynamic network to be tested is obtained.

[0011] According to a specific implementation of the embodiment of the present disclosure, the step of obtaining the topology model parameters, topology structure change amount and noise random distribution characteristics of the dynamic network to be tested includes:

[0012] Obtaining the topology type of the dynamic network to be tested;

[0013] Determining whether the topology type belongs to a preset type;

[0014] If the topology type belongs to the preset type, the topology model parameters, the topology structure change amount and the noise random distribution characteristics are calculated according to the network parameters;

[0015] If the topology type does not belong to the preset type, the topology model parameters, the topology structure change and the noise random distribution characteristics are calculated according to a preset adjacency matrix.

[0016] According to a specific implementation of the embodiment of the present disclosure, the motion parameters include an initial position and a motion speed of each of the nodes, and the step of generating a motion process of each of the nodes within a preset time period according to the motion parameters includes:

[0017] Establish a Cartesian coordinate system;

[0018] According to the initial position and movement speed of each node in the Cartesian coordinate system, the movement process corresponding to each node in the preset time period is calculated.

[0019] According to a specific implementation manner of an embodiment of the present disclosure, the algorithm update formula includes a relative rate estimation formula, a logical clock rate compensation formula and a logical clock deviation compensation formula.

[0020] According to a specific implementation of an embodiment of the present disclosure, the step of substituting the noise distribution histogram, the motion process and the offset into an algorithm update formula to obtain a simulation result of the dynamic network to be tested includes:

[0021] The noise distribution histogram, the movement process and the offset are respectively substituted into the relative rate estimation formula, the logic clock rate compensation formula and the logic clock deviation compensation formula, and the simulation result is formed according to the calculation results.

[0022] In a second aspect, an embodiment of the present disclosure provides a dynamic network clock synchronization simulation system, including:

[0023] The first acquisition module is used to obtain the topology model parameters, topology structure change and noise random distribution characteristics of the dynamic network to be tested;

[0024] A first generating module, used for generating a topological structure diagram and a noise distribution histogram according to the topological model parameters, the topological structure variation and the noise random distribution characteristics;

[0025] A second acquisition module is used to acquire motion parameters and clock parameters of each node in the dynamic network to be tested according to the topological structure diagram;

[0026] A second generating module is used to generate the movement process of each of the nodes within a preset time period according to the movement parameters, and to generate the offset between the actual clock of each of the nodes and the reference clock according to the clock parameters;

[0027] The simulation module is used to substitute the noise distribution histogram, the motion process and the offset into the algorithm update formula to obtain the simulation result of the dynamic network to be tested.

[0028] In a third aspect, an embodiment of the present disclosure further provides an electronic device, the electronic device comprising:

[0029] at least one processor; and,

[0030] a memory communicatively connected to the at least one processor; wherein,

[0031] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the dynamic network clock synchronization simulation method in the aforementioned first aspect or any implementation of the first aspect.

[0032] In a fourth aspect, an embodiment of the present disclosure further provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the dynamic network clock synchronization simulation method in the aforementioned first aspect or any implementation of the first aspect.

[0033] In the fifth aspect, the embodiments of the present disclosure also provide a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the dynamic network clock synchronization simulation method in the aforementioned first aspect or any implementation of the first aspect.

[0034] The dynamic network clock synchronization simulation scheme in the embodiment of the present disclosure includes: obtaining the topology model parameters, topology structure change amount and noise random distribution characteristics of the dynamic network to be tested; generating a topology structure diagram and a noise distribution histogram according to the topology model parameters, the topology structure change amount and the noise random distribution characteristics; obtaining the motion parameters and clock parameters of each node in the dynamic network to be tested according to the topology structure diagram; generating the motion process of each node within a preset time period according to the motion parameters, and generating the offset between the actual clock of each node and the control clock according to the clock parameters; substituting the noise distribution histogram, the motion process and the offset into the algorithm update formula to obtain the simulation result of the dynamic network to be tested.

[0035] The beneficial effects of the embodiments of the present disclosure are as follows: through the scheme of the present disclosure, the topology structure of the dynamic network to be tested is analyzed, and the movement and clock of each node in the topology structure are improved and compensated to obtain simulation results, thereby improving the clock synchronization efficiency and accuracy of the dynamic network. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0037] Figure 1 A flow chart of a dynamic network clock synchronization simulation method provided by an embodiment of the present disclosure;

[0038] Figure 2 A schematic diagram of node information reception and transmission under high-speed motion conditions involved in a dynamic network clock synchronization simulation method provided by an embodiment of the present disclosure;

[0039] Figure 3 A schematic diagram of part of the communication process involved in a dynamic network clock synchronization simulation method provided by an embodiment of the present disclosure;

[0040] Figure 4 A structural diagram of a dynamic network clock synchronization simulation system provided by an embodiment of the present disclosure;

[0041] Figure 5 A schematic diagram of an electronic device provided in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0042] The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0043] The following describes the embodiments of the present disclosure through specific examples, and those skilled in the art can easily understand other advantages and effects of the present disclosure from the contents disclosed in this specification. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all of the embodiments. The present disclosure can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present disclosure. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present disclosure.

[0044] It should be noted that various aspects of the embodiments within the scope of the appended claims are described below. It should be apparent that the aspects described herein may be embodied in a wide variety of forms, and any specific structure and / or function described herein is merely illustrative. Based on the present disclosure, it should be understood by those skilled in the art that an aspect described herein may be implemented independently of any other aspect, and two or more of these aspects may be combined in various ways. For example, any number of aspects described herein may be used to implement the device and / or practice the method. In addition, other structures and / or functionalities other than one or more of the aspects described herein may be used to implement this device and / or practice this method.

[0045] It should also be noted that the illustrations provided in the following embodiments are only schematic illustrations of the basic concept of the present disclosure. The drawings only show components related to the present disclosure rather than being drawn according to the number, shape and size of components in actual implementation. In actual implementation, the type, quantity and proportion of each component may be changed arbitrarily, and the component layout may also be more complicated.

[0046] Additionally, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects described may be practiced without these specific details.

[0047] At present, wireless sensor network is a network form formed by organizing and combining tens of thousands of sensor nodes through wireless communication technology. It has a wide range of potential applications, such as military, aviation, disaster relief, environment, medical, home, industry, etc. As a distributed network, wireless sensor network can only collaborate to complete more corresponding tasks under the same time base. Therefore, the clock synchronization problem is the basic and primary problem in wireless sensor network. Most of the existing clock synchronization algorithms are based on static networks. However, with the development of wireless sensor network technology, the gradual rise of applications such as drone formations, intelligent vehicle networks, intersatellite links, and missile groups, the movement of nodes in the network has brought new characteristics to wireless sensor networks. The movement of nodes in dynamic networks not only brings topological changes, but also the problem of asymmetric transmission delay. In order to improve the synchronization accuracy of dynamic networks, the problem of motion delay compensation needs to be considered. Therefore, for dynamic network clock synchronization, designing a software simulation environment is helpful to improve and enhance the effect of clock synchronization in dynamic networks. However, the existing clock synchronization algorithms have the problem of low synchronization efficiency and synchronization accuracy in the process of processing dynamic networks.

[0048] The embodiments of the present disclosure provide a dynamic network clock synchronization simulation method, which can be applied to dynamic network clock synchronization processes in military, aviation, disaster relief, environment, medical, home or industrial scenarios.

[0049] See also Figure 1 , is a flow chart of a dynamic network clock synchronization simulation method provided by an embodiment of the present disclosure. Figure 1 As shown, the method mainly comprises the following steps:

[0050] S101, obtaining topology model parameters, topology structure variation and noise random distribution characteristics of the dynamic network to be tested;

[0051] In the specific implementation, considering that the network structure of the structured clock synchronization protocol is mainly a tree structure or a cluster structure with one or more reference nodes, this type of algorithm protocol is simple and converges quickly, but the system maintenance cost is high when the network topology changes dynamically, and the robustness and scalability are relatively insufficient; the distributed clock synchronization protocol has no special nodes such as reference nodes or root nodes. Each node only needs to obtain the relative clock information of its neighboring nodes, which has strong robustness and scalability to topology changes and node failures. Therefore, the distributed clock synchronization algorithm can solve the problems faced in dynamic networks to a certain extent. However, the movement of nodes in dynamic networks brings not only topological changes, but also the problem of asymmetric transmission delays. In addition to improving the synchronization accuracy of dynamic networks, the problem of motion delay compensation also needs to be considered.

[0052] like Figure 2As shown in Figure 1, the non-deterministic delay of information transmission in wireless sensor networks is a major factor affecting the accuracy of clock synchronization. Due to the existence of information transmission delay, the relative clock rate and relative clock reading estimation are not accurate enough, thus affecting the synchronization effect.

[0053] In the case of high-speed node movement, compared with static conditions, the most affected is the propagation time in the information transmission delay. As shown in the figure, A and B are two nodes for message transmission. If both nodes are in a static state, the link propagation delay between the two nodes is

[0054] Delay=D AB / c=T2-T1

[0055] Where D AB It represents the distance between the two nodes when the message of node A is sent, c represents the signal propagation speed, which is the speed of light when propagated by radio, T1 represents the time when the message of node A is sent, and T2 represents the time when the message of node B is received in a stationary state.

[0056] However, due to the high-speed movement of nodes, node B is also moving during the message propagation process. In order to achieve high-precision clock synchronization, the propagation delay change Δt caused by node movement cannot be ignored.

[0057] Δt=D B / v B =T3-T2

[0058] Where D B Indicates the distance that node B moves during the message sending process, v B represents the speed of node B, and T3 represents the message receiving time of node B under high-speed movement. In the high-speed movement state, the link propagation delay between the two nodes is Delay+Δt.

[0059] It can be seen that during the movement, the transmission delay is not only related to the distance between nodes AB, but also to the movement of the node receiving the message, such as Figure 3 As shown, it is related to the movement of node B. In the distributed clock synchronization algorithm, the relative rate estimation formula involves timestamps. Ideally, (T8-T4) / (T5-T1) can get the relative rate estimation value between node A and node B. However, due to the asymmetric transmission delay in the process of t1->t4 and t5->t8, it cannot be offset by simple subtraction, so the motion delay must be compensated.

[0060] When it is necessary to design clock synchronization for a dynamic network, the dynamic network can be used as the dynamic network to be tested, and then the corresponding topological model parameters, topological structure change and noise random distribution characteristics can be obtained. Specifically, considering that noise will affect the clock frequency of the node and reflect the stability of the clock, the Gaussian random distribution needs to configure two parameters, the mean and the standard deviation; the uniform random distribution needs to configure two parameters, the maximum and the minimum. The noise random distribution characteristics can be generated by configuring the corresponding parameters for the dynamic network to be tested.

[0061] S102, generating a topological structure diagram and a noise distribution histogram according to the topological model parameters, the topological structure variation and the noise random distribution characteristics;

[0062] In specific implementation, after obtaining the topology model parameters, the topology structure change and the random distribution characteristics of the noise, the topology structure diagram and noise distribution histogram corresponding to the dynamic network to be tested can be generated according to the topology model parameters, the topology structure change and the random distribution characteristics of the noise.

[0063] S103, acquiring motion parameters and clock parameters of each node in the dynamic network to be tested according to the topological structure diagram;

[0064] During the specific implementation, it is taken into account that in the actual application process, each node may be in motion. When the node moves at high speed, the propagation time in the information transmission delay is the most affected compared to the static condition. After obtaining the topological structure diagram, the motion parameters and clock parameters of each node in the dynamic network to be tested can be obtained to facilitate subsequent steps.

[0065] S104, generating a movement process of each of the nodes within a preset time period according to the movement parameters, and generating an offset between an actual clock of each of the nodes and a reference clock according to the clock parameters;

[0066] In a specific implementation, after obtaining the motion parameters and clock parameters of each node in the dynamic network to be tested, the motion process of each node within a preset time period is generated according to the motion parameters, and the offset between the actual clock and the reference clock of each node can be generated according to the configured clock information and the clock parameters, thereby reflecting the performance of the actual clock.

[0067] S105, substituting the noise distribution histogram, the motion process and the offset into an algorithm update formula to obtain a simulation result of the dynamic network to be tested.

[0068] During specific implementation, a corresponding clock synchronization algorithm can be assigned to the dynamic network to be tested, and then a corresponding algorithm update formula can be configured. Then, the noise distribution histogram, the movement process and the offset are substituted into the algorithm update formula to obtain a simulation result of the dynamic network to be tested, which is used to compensate for the offset generated by the movement process of each node in the dynamic network to be tested.

[0069] The dynamic network clock synchronization simulation method provided in this embodiment analyzes the topology of the dynamic network to be tested, and improves and compensates for the movement and clock of each node in the topology to obtain simulation results, thereby improving the clock synchronization efficiency and accuracy of the dynamic network.

[0070] On the basis of the above embodiment, the step S101 of obtaining the topology model parameters, topology structure variation and noise random distribution characteristics of the dynamic network to be tested includes:

[0071] Obtaining the topology type of the dynamic network to be tested;

[0072] Determining whether the topology type belongs to a preset type;

[0073] If the topology type belongs to the preset type, the topology model parameters, the topology structure change amount and the noise random distribution characteristics are calculated according to the network parameters;

[0074] If the topology type does not belong to the preset type, the topology model parameters, the topology structure change and the noise random distribution characteristics are calculated according to a preset adjacency matrix.

[0075] During the specific implementation, it is considered that the topology determines whether the network clock can be synchronized. Several preset topologies can be provided for the network topology, and the preset topologies may include linear topology, ring topology, star topology, tree topology, and mesh topology. Among them, linear topology, ring topology, and star topology require the configuration of the number of nodes; tree topology requires the configuration of the number of child nodes and the number of layers; mesh topology and random mesh topology require the configuration of the number of nodes in the length and width directions; in addition, directed / undirected graphs can be selected, and then the topology model parameters, the change in the topology structure, and the random distribution characteristics of the noise are calculated based on the network parameters. For other topological structures, the user can input a legal adjacency matrix for configuration, and then calculate the topological model parameters, the change in the topology structure, and the random distribution characteristics of the noise based on the preset adjacency matrix. In dynamic networks, topological changes are also involved. Users can set the topological changes of the network and change it to a specified topological structure at a specified time. According to the above process, the entire network topology and its changes during the simulation of the software system are configured, and the corresponding topological structure diagram is drawn.

[0076] Optionally, the motion parameters include an initial position and a motion speed of each of the nodes, and the step of generating a motion process of each of the nodes within a preset time period according to the motion parameters in step S104 includes:

[0077] Establish a Cartesian coordinate system;

[0078] According to the initial position and movement speed of each node in the Cartesian coordinate system, the movement process corresponding to each node in the preset time period is calculated.

[0079] In the specific implementation, considering the need to describe the movement of each node, a Cartesian coordinate system can be established for the node movement, and the initial position and movement speed in the three coordinate axes of x, y, and z can be configured, or a speed function of the node can be provided. According to the configured movement information, the movement process of the node in the network is drawn.

[0080] On the basis of the above embodiment, the algorithm updating formula includes a relative rate estimation formula, a logic clock rate compensation formula and a logic clock deviation compensation formula.

[0081] Furthermore, in step S105, the noise distribution histogram, the motion process and the offset are substituted into the algorithm update formula to obtain the simulation result of the dynamic network to be tested, including:

[0082] The noise distribution histogram, the movement process and the offset are respectively substituted into the relative rate estimation formula, the logic clock rate compensation formula and the logic clock deviation compensation formula, and the simulation result is formed according to the calculation results.

[0083] During specific implementation, the existing distributed clock synchronization algorithm can be improved and the corresponding algorithm update formula can be set. Specifically, the algorithm update formula can include the relative rate estimation formula, the logical clock rate compensation formula and the logical clock deviation compensation formula. Then, the noise distribution histogram, the movement process and the offset are substituted into the relative rate estimation formula, the logical clock rate compensation formula and the logical clock deviation compensation formula respectively, and the simulation result is formed according to the calculation result, so that the distributed clock synchronization algorithm can be improved according to the simulation result later to improve the clock synchronization efficiency and synchronization accuracy of the dynamic network.

[0084] The following will be explained in conjunction with a specific embodiment. The existing distributed clock synchronization algorithms include a clock synchronization algorithm based on a proportional integral estimator and an average consistency clock synchronization algorithm. The clock synchronization algorithm based on a proportional integral estimator requires configuration of a sampling period, number of cycles, reconciliation parameters, proportional gain, integral gain, and information rate; the average consistency time synchronization algorithm requires configuration of a sampling period, number of cycles, and three reconciliation parameters. In addition, the distributed clock synchronization algorithm is usually divided into three steps: relative rate estimation, logical clock rate compensation, and logical clock deviation compensation, and then the algorithm update formula can be configured.

[0085] For example, substitute the clock synchronization algorithm based on proportional integral estimator into the algorithm update formula:

[0086] Relative velocity estimation:

[0087]

[0088] Clock Rate Compensation:

[0089]

[0090]

[0091] Virtual clock reading compensation:

[0092]

[0093] Where T is the sampling period, the time interval between each communication of nodes in the network, ρ is the harmonic parameter, which is essentially a compromise between the new measurement input and the estimated value at the previous moment, and K p is the proportional gain, k is the number of cycles, the number of iterative updates of the clock synchronization algorithm, γ is the information rate, which represents the proportion of new information introduced into the feedback, and K i is the integral gain.

[0094] Substitute the average consistency clock synchronization algorithm into the algorithm update formula:

[0095] Relative velocity estimation:

[0096]

[0097] Clock Rate Compensation:

[0098]

[0099] Clock Skew Compensation:

[0100]

[0101] Where T is the sampling period, the time interval between each communication of nodes in the network, k is the number of cycles, the number of iterative updates of the clock synchronization algorithm, ρ is the harmonic parameter, ρ v is the harmonic parameter, ρ o is the reconciliation parameter.

[0102] Corresponding to the above method embodiment, see Figure 4 The embodiment of the present disclosure further provides a dynamic network clock synchronization simulation system 40, including:

[0103] The first acquisition module 401 is used to acquire the topology model parameters, topology structure variation and noise random distribution characteristics of the dynamic network to be tested;

[0104] A first generating module 402, configured to generate a topological structure diagram and a noise distribution histogram according to the topological model parameters, the topological structure variation and the noise random distribution characteristics;

[0105] The second acquisition module 403 is used to acquire the motion parameters and clock parameters of each node in the dynamic network to be tested according to the topological structure diagram;

[0106] A second generating module 404 is used to generate the movement process of each of the nodes within a preset period of time according to the movement parameters, and to generate the offset between the actual clock of each of the nodes and the reference clock according to the clock parameters;

[0107] The simulation module 405 is used to substitute the noise distribution histogram, the motion process and the offset into the algorithm update formula to obtain the simulation result of the dynamic network to be tested.

[0108] Figure 4 The system shown can correspondingly execute the contents of the above method embodiment. For the parts not described in detail in this embodiment, refer to the contents recorded in the above method embodiment and will not be repeated here.

[0109] See also Figure 5 The embodiment of the present disclosure further provides an electronic device 50, which includes: at least one processor and a memory connected to the at least one processor. The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the dynamic network clock synchronization simulation method in the aforementioned method embodiment.

[0110] The embodiment of the present disclosure also provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions are used to enable the computer to execute the dynamic network clock synchronization simulation method in the aforementioned method embodiment.

[0111] The embodiments of the present disclosure also provide a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium. The computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the dynamic network clock synchronization simulation method in the aforementioned method embodiment.

[0112] Reference below Figure 5 , which shows a schematic diagram of the structure of an electronic device 50 suitable for implementing the embodiment of the present disclosure. The electronic device in the embodiment of the present disclosure may include, but is not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 5 The electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0113] like Figure 5 As shown, the electronic device 50 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage device 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 50 are also stored. The processing device 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0114] Typically, the following devices may be connected to the I / O interface 505: input devices 506 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 507 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 508 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 509. The communication device 509 may allow the electronic device 50 to communicate with other devices wirelessly or by wire to exchange data. Although the electronic device 50 with various devices is shown in the figure, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices may be implemented or have alternatively.

[0115] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 509, or installed from a storage device 508, or installed from a ROM 502. When the computer program is executed by the processing device 501, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.

[0116] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0117] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.

[0118] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device can execute the relevant steps of the method embodiment.

[0119] Alternatively, the computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device can perform the relevant steps of the method embodiment.

[0120] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0121] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0122] The units involved in the embodiments described in the present disclosure may be implemented by software or by hardware.

[0123] It should be understood that various parts of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.

[0124] The above is only a specific implementation of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present disclosure should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.

Claims

1. A dynamic network clock synchronization simulation method, characterized in that: include: Obtain the topological model parameters, topological structure variation and noise random distribution characteristics of the dynamic network to be tested; Generate a topological structure diagram and a noise distribution histogram according to the topological model parameters, the topological structure variation and the noise random distribution characteristics; Acquire motion parameters and clock parameters of each node in the dynamic network to be tested according to the topological structure diagram; Generate a movement process of each of the nodes within a preset time period according to the movement parameters, and generate an offset between an actual clock of each of the nodes and a reference clock according to the clock parameters; Substituting the noise distribution histogram, the motion process and the offset into an algorithm update formula, a simulation result of the dynamic network to be tested is obtained.

2. The method according to claim 1, characterized in that The step of obtaining the topological model parameters, topological structure variation and noise random distribution characteristics of the dynamic network to be tested includes: Obtaining the topology type of the dynamic network to be tested; Determining whether the topology type belongs to a preset type; If the topology type belongs to the preset type, the topology model parameters, the topology structure change amount and the noise random distribution characteristics are calculated according to the network parameters; If the topology type does not belong to the preset type, the topology model parameters, the topology structure change and the noise random distribution characteristics are calculated according to a preset adjacency matrix.

3. The method according to claim 1, characterized in that The motion parameters include the initial position and motion speed of each node, and the step of generating the motion process of each node within a preset time period according to the motion parameters includes: Establish a Cartesian coordinate system; According to the initial position and movement speed of each node in the Cartesian coordinate system, the movement process corresponding to each node in the preset time period is calculated.

4. The method according to claim 1, characterized in that ,The algorithm update formula includes a relative rate estimation formula, a ,logical clock rate compensation formula and a logical clock deviation compensation formula.

5. The method according to claim 4, characterized in that The step of substituting the noise distribution histogram, the motion process and the offset into an algorithm update formula to obtain a simulation result of the dynamic network to be tested comprises: The noise distribution histogram, the movement process and the offset are respectively substituted into the relative rate estimation formula, the logic clock rate compensation formula and the logic clock deviation compensation formula, and the simulation result is formed according to the calculation results.

6. A dynamic network clock synchronization simulation system, characterized in that: include: The first acquisition module is used to obtain the topology model parameters, topology structure change and noise random distribution characteristics of the dynamic network to be tested; A first generating module, used for generating a topological structure diagram and a noise distribution histogram according to the topological model parameters, the topological structure variation and the noise random distribution characteristics; A second acquisition module is used to acquire motion parameters and clock parameters of each node in the dynamic network to be tested according to the topological structure diagram; A second generating module is used to generate the movement process of each of the nodes within a preset time period according to the movement parameters, and to generate the offset between the actual clock of each of the nodes and the reference clock according to the clock parameters; The simulation module is used to substitute the noise distribution histogram, the motion process and the offset into the algorithm update formula to obtain the simulation result of the dynamic network to be tested.

7. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the dynamic network clock synchronization simulation method described in any one of claims 1 to 5.

8. A non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to enable the computer to execute the dynamic network clock synchronization simulation method according to any one of claims 1 to 5.