{'fraction_non_alphanumeric': 0.023289168146428084, 'fraction_numerical': 0.007034558120475345, 'mean_word_length': 4.895913025971411, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 2, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Distributed multi-munition cooperative guidance based on clock synchronization for switching and noisy networks

This paper proposes a novel three-dimensional guidance method based on clock synchronization algorithms, creatively solving the problems of randomized change, non-connection and even communication outage caused by packet loss and delay in the co-guidance of loitering munitions. The proposed method is characterized by fast convergence of the aspect angle rate in the longitudinal plane, and the attack time constrains in the lateral plane. Normal accelerations on the two sub-planes are thereby calculated, so as to control the munitions’ co-attack. Simulation experiments show that the proposed method can ensure reliable and stable asymptotic agreement of attack time expectation for the cooperative multiple munitions under the switching and noisy networks.

coordinated attack of multiple loitering munitions can greatly improve the efficiency of striking target [1,2]. Multiple loitering munitions can cooperate and coordinate with each other through information sharing and jointly complete the strike task, which greatly enhances the strike ability of loitering munition and increases the probability of penetration and destroying target by loitering munition [3].
Simultaneous arrival is a key issue in the study of coordinated attack of multiple loitering munitions, which can be attributed to the consistency of guidance time [4]. The consistency problem of guidance time mainly studies the information interaction mode between each munition in the coordinated attack system, so that the guidance time of all munitions tends to the same value, so as to achieve the maximum damage efficiency to the target. Some research achievements have been presented for this purpose. Jeon et al. proposed a homing guidance law called cooperative proportional guidance (CPN) for several for one participation scenario of typical anti-ship missile. This method has the flexibility to allow different speeds to cooperate and attack simultaneously [5]. Kumar et al. proposed an impact time guidance law based on sliding mode control. Even for large course angle error and negative initial closure speed, the desired impact time is achieved by applying sliding mode on the switching surface based on collision route and estimated time thought [6]. In the literature [7], a new composite guidance law composed of two phases for impact time control is proposed. The first phase is to guide the missile to a suitable switching state for the second phase. And the second phase, which is derived from Lyapunov stability condition, can ensure the convergence of the relative range and heading error. In the literature [8], in order to consider the multiple constraints and time-variant velocity basically effectively, two closed-loop cooperative guidance methods are developed, by employing the efficient convex optimization technique and receding horizon control (RHC) strategy.
The above cooperative guidance methods are divided into centralized mode and distributed mode by the communication topology. Because the centralized communication topology also has the defects of poor robustness, high communication cost and bad extension [9], it is difficult to guarantee the centralized communication between munitions in the actual battlefield. Therefore, the distributed communication topology is often adopted, that is, through the local communication between adjacent munitions, the cooperative guidance for the cognitive consistency of the cooperative target is achieved gradually.
In recent years, some researches on distributed cooperative guidance methods have achieved good results. Based on the centralized cooperative guidance law, Zhao and Zhou [10] selected the expected coordination variable as the average value of all missile residual time in the communication range to achieve the cooperative guidance. For the problem of cooperative guidance that needs to limit collision angle and attack static target simultaneously in the plane, Wang et al. [11] designed the cooperative bias proportional guidance law that can realize collision angle constraint based on the bias proportional guidance law with collision angle constraint [12] and taking the remaining time as the coordination variable. Song et al. [13] removed the bias term coefficient on the basis of the literature [3] for the static target in the plane and designed an expression of expected remaining time for time dispersion. By determining the appropriate expression coefficient, the system covariance stability is achieved under the condition of topological structure circulation.

3
In order to meet the overload limit, Hou et al. [14] took the remaining time variance of zero as the cooperative target for the static target in the plane and designed a proportional guidance law of variable coefficient that could realize the cooperation in the limited time. For static targets in 3D space, Wei et al. [15] found the relationship between the missile remaining time and the proportional guidance coefficient based on the expert system containing two limit learning machines when the communication topology is strongly connected between missiles. Therefore, by adjusting the proportional guidance coefficient, the remaining time of missile is close to the maximum value of its communication missile, and coordinated attack is realized. However, Daughtery and Qu [16] designed the cooperative guidance law to optimize the required control energy based on the optimal cooperative control method and the cooperative remaining time estimation method, taking the distance and speed of the missile relative to the target as the coordination variables.
The above design of the multi-munition cooperative guidance law assumes that the communication between each munition is under ideal conditions, that is, the topology of the actual communication link is fixed. However, during the long flight, it is very likely that the communication packet loss will occur due to the interference of the complex battlefield environment, and the random delay caused by information transmission cannot be avoided. Therefore, the effect of time-varying topology on multi-munition cooperation must be considered in the design of multi-munition cooperative guidance law. In the literature [17], the problem of multi-missile cooperative guidance under the condition of topology uncertainty and communication delay is considered. The asymptotic stability of the guidance time divergence system ensures the consistent encounter time of multi-missile cooperative guidance. In the literature [18], the multi-missile cooperative guidance problem of the leading topology with hopping and delay in the communication topology is considered. It transforms the leading consistency problem into the stability problem of the error system. The guidance law is obtained by feedback linearization. The literature [19,20] developed a two-step guidance strategy to deal with multi-missile distributed group cooperative guidance (DGCG) with fixed and switched directional communication topology to achieve group cooperative attack.
In the above research, although the communication topology is time varying, it is required to be connected at any time between munitions. Because of communication packet loss and time delay, the actual communication topology between munitions changes randomly and there are communication information noises. At some point, the communication topology is not connected or even the communication is interrupted between munitions. Therefore, how to solve the problem of multi-munition cooperative guidance of interrupted communication due to communication packet loss becomes the research content of this paper.
In this paper, multi-munition cooperative guidance for fixed target is studied. The time synchronization algorithm is used to solve the problem that the munition communication topology changes randomly, topology is disconnected and communication is interrupted due to packet loss and delay in the cooperative guidance process. Based on this, a time-constraint three-dimensional guidance method is designed. The specific strategy is to design the guidance law in longitudinal and lateral planes, respectively. In the longitudinal plane, it designs the guidance law of fast convergence of aspect angle rate, and in the lateral plane, it designs attack time-constraint guidance law. After the guidance law is designed in two directions, the normal acceleration on two bifurcation planes can be calculated, and then, the loitering munition can be controlled to attack the target cooperatively. The overall flow diagram is shown in Fig. 1.
Other parts of this paper are organized as follows. In the second chapter, basic assumptions involved in this algorithm are briefly introduced, and the model of the researched problem is established. The main content of the algorithm is introduced in the third chapter. The fourth chapter is the corresponding simulation test. Finally, the conclusion is presented in the fifth chapter.

Modeling of problems
This paper mainly studies the problem of time consistency cooperative guidance of loitering munition for ground fixed targets in three-dimensional space. To facilitate analysis, the following hypothesis is made: 1. Ignoring the impact of earth rotation and curvature on ammunition; 2. Ammunition is rigid and flies at a constant rate, ignoring aerodynamic disturbance.
According to the above hypothesis, the kinematics equation of loitering munition in three-dimensional space is obtained: where (x, y, h) is the position coordinates of loitering munition in the inertial coordinate system; V M is the velocity; θ and ψ v are trajectory inclination angle and deflection angle, respectively; m is the munition mass; and a p and a y are, respectively, the longitudinal and lateral overload of munition, as shown in Fig. 2.

3D guidance method design
A time-constraint three-dimensional guidance method is designed in this paper. The specific strategy is to design the guidance law in longitudinal and lateral planes, respectively. In the longitudinal plane, it designs the guidance law of fast convergence of aspect angle rate, and in the lateral plane, it designs attack time-constraint guidance law. After the guidance law is designed in two directions, the normal acceleration on two bifurcation planes can be calculated.

Design of longitudinal plane guidance law
We hope that the aspect angle rate on the longitudinal plane can rapidly converge and remain close to 0, which can not only guarantee that the munition has a relatively straight trajectory and a small miss distance on the longitudinal plane, but also has little interference on the lateral plane, so as to guarantee a good attack time control effect. Therefore, the following sliding surface is selected: where P is the normal number and ̇q is the aspect angle rate of the longitudinal plane between munition and target. Select the power reaching law with better convergence effect: (2) S lon = P ⋅̇q , Here, M is the munition position; r is the relative distance between munition and target p; T is the fixed target position; q θ is the longitudinal aspect angle of munition; q ψ is the lateral aspect angle of munition; ψ v is trajectory deflection angle; θ is the trajectory inclination angle Distributed multi-munition cooperative guidance based on… where Q is the normal number, R is the index in the power reaching law and the size is 0 < R < 1. The guidance law of the munition on the longitudinal plane can be obtained from Eqs. (2) and (3): where η is the advance angle, that is, the difference between the munition course angle and the aspect angle on the corresponding plane.

Design of lateral plane guidance law
The lateral plane not only hopes the miss distance of the munition to be zero, but also requires the actual attack time to be equal to the expected attack time. The lateral guidance law is designed by using the sliding mode variable structure control method with strong robustness. The design of sliding surface must take both miss distance and attack time into consideration. Therefore, the sliding surface adopts the combination of aspect angle rate and attack time error: where c q and c t are the dimensionless parameters; ̇q is the aspect angle rate in the lateral plane between munition and target; e = t + t go − t* is the attack time error; t* is the expected attack time; and t go is the estimation of the remaining flight time of munition. Its expression is: where N > 1 is the effective navigation ratio and η is the advance angle, that is, the difference between the munition course angle and the aspect angle on the corresponding plane. As can be seen from Eq. (5), the first term of the sliding mode surface plays the role of convergence of the aspect angle rate and the second term plays the role of controlling the actual attack time approaching to the expected attack time. If the system can enter the sliding mode and be stable in the sliding mode area within the limited time, the munition can strike the target with a small miss distance and attack time error. The controller is designed by equivalent sliding mode algorithm, which is divided into two parts: the equivalent controller and the discontinuous controller: a y = a c y + a d y .
When the system enters sliding mode, the equivalent controller a c y maintains the control system in sliding mode. When Ṡ lat = 0 , the expression of the equivalent controller is obtained: When the system does not enter the sliding mode, the design of discontinuous controller a d y enables the system to rapidly approach the sliding mode, and the expression of the controller is where the value of gain k is: where W is normal number.
In order to reduce the chattering phenomenon of the guidance law, the symbol function of the discontinuous controller can be changed into sgmf function: where b > 0.

Distributed clock synchronization algorithm for switching and noisy networks
We write the local time of each agent i as i (t) = t + i , where α i is a constant denoting the time drift of agent i. Here, we assume the clock frequency of each agent is accurate in a short time. We aim to design a distributed protocol such that all the agents have a same drift. We design our algorithm as follows. Let ̂j(l) be the drift correction factor of agent j which is initially set to be zero. Let T be a constant denoting the period and β j be the real time of the protocol start for agent j. Without loss of generality, we assume

3
Distributed multi-munition cooperative guidance based on… Each agent j periodically broadcasts its local time plus correction lT + j + j +̂j(l) , l = 0, 1, …, to all other agents. Set T l j ∶= lT + j to be the real sending time of this information. The neighbors of agent j have a probability to successfully receive this information and record their local receiving time. Let Because the transmission distance of wireless signal by sensor nodes or robots is not long whose radio propagation time is negligible, and if an information has been not correctly received we will discard it without retransmission, the delay is very short and almost a fixed value but with small fluctuation whose expectation can be where the second equality uses (13) and (14) and a(·) is a predetermined gain function.
In summary, our algorithm for each agent i can be described as follows:

3
Distributed multi-munition cooperative guidance based on…

Convergence of the algorithm
We will show Algorithm 1 converges to clock synchronization, which means We define the σ-algebra generated by the noises and the delays The probability space of Algorithm 1 is written to be ( , F ∞ , P).
are independent zero-mean random variables with uniformly bounded variance. Also, for any l ≥ 0, 1 ≤ i ≤ n and j ∈ N l i , the delay d j,l i satisfies We also need introduce some definitions on graph theory. Let G = {V, E} be a digraph, where V = {1, 2,…n} is the set of nodes with node i representing the ith node and E is the set of edges. An edge in G is denoted by an ordered pair (j, i), and (j, i) ∈ E if and only if the ith node can receive information from the jth node directly. A sequence (i 1 , i 2 ), (i 2 , i 3 ), …, (i k−1 , i k ) of edges is called a directed path from node i 1 to node i k . The G is called a strongly connected digraph, if for any i, j ∈ V, there is a directed path from i to j. For graphs G(t) = {V, E(t)}, i ≤ t < j, their union is defined by ∪ i≤t<j G(t) ∶= {V, ∪ i≤t<j E(t)} . Note that there may exist multi-edges from one vertex to another in ∪ i≤t<j G(t).
Simulation results: Figure 3 shows the convergence curve of the maximum time difference between nodes under the four parameters, and the ordinate is dimensionless value (actual error value/T). It can be seen that with the decline in network quality, the convergence time is slow, but the stable convergence is achieved within 100 steps. Figure 4 shows the relative error between nodes at the end of simulation (200 steps). It can be seen from the figure that the network communication quality has little influence on the time synchronization error under this algorithm, which reflects the effectiveness of the proposed time synchronization algorithm under the condition of switchable dynamic network.

Cooperative guidance simulation
As shown in Table 1 Table 2 shows the test results. Figure 5 shows the 3D trajectory. Figure 6 shows the overload information of loitering munition. Figure 7 shows the remaining flight time and sliding mode of loitering munition. It can be seen from the simulation results that all the five loitering munitions strike the target with high attack time accuracy, and the attack time error is kept within 0.0005 s, achieving simultaneous arrival. It can be seen from Fig. 6 that the lateral and longitudinal overload of the loitering munition is within the constraint range and is relatively smooth without pathological chattering and other phenomena. In the initial stage of attack, loitering munitions make full use of their overload, and at the end of attack, both lateral and longitudinal    Distributed multi-munition cooperative guidance based on… overload approaches 0, with good quality. It can be seen from Fig. 7 that the remaining flight time of each loitering munition quickly converges together and remains until it strikes the target. The lateral and longitudinal sliding mode of the loitering munition has large error at the initial moment and is controlled by the sliding mode controller around steady-state range within several seconds. This indicates that the designed lateral and longitudinal sliding mode guidance law has strong convergence and dynamic characteristics, while the small miss distance and attack time error indicate that the static quality of the controller is better. In addition, since there is no clock error for each loitering munition, the attack time of each loitering munition in the unified timescale is exactly the same in the respective timescale.

It does not adopt time synchronization algorithm with initial time error
The initial deviation of each node: α i is the random number between [− 100T, 100T]. Table 3 shows the test results. Figure 8 shows the 3D trajectory. Figure 9 shows the overload information of loitering munition. Figure 10 shows the remaining flight time and sliding mode of loitering munition. It can be seen from the simulation results that the attack time of the five loitering munitions in their respective timescale is almost exactly the same, close to the set attack time of 22 s. However, due to the different initial time error of loitering munition, the attack time of each loitering munition differs greatly in the unified timescale, about 0.5 s. This situation is shown in Figs. 9 and 10. The initial clock of each loitering munition has error, that is, the start time of simulation curve is different. However, each loitering munition can achieve its precise attack time control, so the time of striking the target is different,    Distributed multi-munition cooperative guidance based on… and the time deviation of strike is the initial time deviation between each loitering munition.

It adopts time synchronization algorithm with initial time error
The initial deviation of each node: α i is the random number between [− 100T, 100T]. Table 4 shows the test results. Figure 11 shows the 3D trajectory. Figure 12 shows the overload information of loitering munition. Figure 13 shows the remaining flight time and sliding mode of loitering munition. It can be seen from the simulation results that all the five munitions have high strike accuracy and attack time accuracy, and the overload change is gentle. The five loitering munitions have almost exactly the same attack time in different respective timescales, with the difference between them being within 0.0003 s. Although there is an initial time error of the order of 100 ms between each loitering munition, the timescale of each loitering munition quickly becomes consistent due to the use of time consistency algorithm. In the end, the attack time deviation of each loitering munition is only hundreds of microseconds in the unified timescale, and  the target can almost be hit simultaneously. Figure 14 shows the maximum clock error of each loitering munition at each time, representing the difference degree of multi-munition clock. It can be seen from the figure that there is a large time difference at the initial time, but it soon converges around 0, indicating that the  designed clock synchronization algorithm has a better clock registration ability. Figure 15 shows the actual time curve of each loitering munition. Figure 16 shows the dimensionless curve of offset time + offset compensation time of each loitering munition. It can be seen that although each munition has a large offset time error, the offset time error of each munition quickly converges to a certain value through feedback compensation of clock synchronization algorithm and  Figure 17 shows the deviation compensation time curve of each munition. It can be seen that the initial time deviation of each munition is different. By means of clock synchronization algorithm, each munition outputs an appropriate deviation compensation time to eliminate/ reduce inconsistency in the clock. Figure 18 shows the deviation distribution of deviation compensation time of each munition. Select the terminal value of minimum deviation compensation time as the nominal value, differentiate with the deviation compensation time of each other munition and then make them nondimensionalized. And it can be seen that the clock error between each munition can be converged to a small range by this clock synchronization algorithm, which has a good clock synchronization effect.  Table 5 shows the test results. Figure 19 shows the 3D trajectory. It can be seen from the simulation results that all the five loitering munitions strike the target with high attack time accuracy, and the attack time error is kept within hundreds of microseconds, achieving simultaneous arrival. It can be seen from Fig. 20 that the  lateral and longitudinal overload of the loitering munition is within the constraint range and is relatively smooth without pathological chattering and other phenomena. In the initial stage of attack, loitering munitions make full use of their overload, and at the end of attack, both lateral and longitudinal overload approaches 0, with good quality. It can be seen from Fig. 21 that the remaining flight time of each loitering munition quickly converges together and remains until it strikes the target. The lateral and longitudinal sliding mode of the loitering munition has large error at the initial moment and is controlled by the sliding mode controller around steady-state range within several seconds. This indicates that the designed lateral and longitudinal sliding mode guidance law has strong convergence and dynamic characteristics, while the small miss distance and attack time error indicate that the static quality of the controller is better. In addition, since there is no clock error for each loitering munition, the attack time of each loitering munition in the unified timescale is exactly the same in the respective timescale.

It doesn't adopt time synchronization algorithm with initial time error
The initial deviation of each node: α i is the random number between [− 100T, 100T]. Table 6 shows the test results. Figure 22 shows the 3D trajectory. It can be seen from the simulation results that the attack time of the five loitering munitions in their respective timescale is almost exactly the same, close to the set attack time of 40 s. However, due to the different initial time error of loitering munition, the attack time of each loitering munition differs greatly in the unified timescale, about hundreds of milliseconds. This situation is shown in Figs. 23 and 24. Figure 23 shows the overload information of loitering munition. Figure 24 shows the remaining flight time and sliding mode of loitering munition. The initial clock of each loitering munition has error, that is, the start time of simulation curve is different. However, each   loitering munition can achieve its precise attack time control, so the time of striking the target is different, and the time deviation of strike is the initial time deviation between each loitering munition. Table 7 shows the test results. Figure 25 shows the 3D trajectory. Figure 26 shows the over-  Figure 27 shows the remaining flight time and sliding mode of loitering munition. Figure 28 shows the maximum time difference curve. Figure 29 shows the actual time curve of loitering munition. Figure 30 shows the offset time + offset compensation time) dimensionless curve. Figure 31 shows the offset compensation time curve of loitering munition. Figure 32 shows the loitering munition offset compensation time deviation distribution. It can be seen from the simulation results that all the five munitions have high strike accuracy and attack time accuracy, and the overload change is gentle. The five loitering munitions have almost exactly the same attack time in different respective timescales, around 39.999 s. Although there is an initial time error of tenths of seconds between each loitering munition, the timescale of each loitering munition quickly becomes consistent due to the use of time consistency algorithm. In the end, the attack time deviation of each loitering munition is only hundreds of microseconds in the unified timescale, and the target can almost be hit simultaneously. The results of the time consistency algorithm are similar to those in Sect. 5.2.1.3 and will not be repeated here.

Conclusion
Based on the above simulation results, it can be seen that the time synchronization algorithm proposed in this paper can synchronize the time of each munition effectively and reliably under different communication masses. The designed longitudinal and lateral guidance law can achieve good coordination and can effectively control the attack time of multiple munitions with different initial parameters while striking the target accurately. The simulation results show that the designed longitudinal and lateral sliding mode guidance law can be combined with the clock synchronization algorithm to compensate for the clock error when there is a certain clock error between each munition, and finally realize the coordinated attack on the target. Given a large range of input parameters and the expected attack time, both high attack accuracy and attack time accuracy can be guaranteed, while the control Fig. 32 Loitering munition offset compensation time deviation distribution quantity is smooth and approaches 0 at the time of termination, and the sliding mode has no chattering. It shows that the designed controllable guidance law of attack time has good robustness and static dynamic characteristics. In addition, with a large range of expected attack time, the munition can still strike the target with the desired terminal conditions. It shows that the lateral and longitudinal sliding mode guidance law has strong robustness and can adapt to large range of input parameter variation.

Data availability
The data used to support the findings of this study are available from the corresponding author upon request. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creat iveco mmons .org/licen ses/by/4.0/.