A method and system for distributed system anomaly propagation detection and tracing
By constructing a propagation map in the air traffic management system and conducting Monte Carlo propagation simulation, the problems of path identification and root cause localization of abnormal propagation in distributed systems were solved, enabling online monitoring, offline review, and result handling, thereby improving detection accuracy and interpretability.
Patent Information
- Application Number
- CN202611612181.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-19
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies struggle to effectively identify the propagation paths and root causes of anomalies in distributed systems within air traffic management systems. They suffer from issues such as inconsistencies between online and offline definitions, insufficient utilization of state dimensions, lack of reverse linkage modeling, and inadequate handleability of results.
By receiving the node state sequence output by the online micro-cluster model of the distributed system, piecing it together into a node state vector, and performing completeness checks and multi-dimensional joint change point detection, a propagation graph is constructed. Combined with Monte Carlo propagation simulation, anomaly tracing is performed, enabling online monitoring, offline review, and result handling.
It improves data compatibility, reduces the risk of false alarms, provides clear diagnostic information and quantitative credibility indicators, and can quickly locate the root cause and support operation and maintenance decisions.
Smart Images

Figure CN123145141A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic digital data processing technology, and in particular to a method and system for detecting and tracing the propagation of anomalies in a distributed system. Background Technology
[0002] In air traffic management systems, surveillance data acquisition, track fusion, alarm services, situation display, and supporting middleware constitute a typical distributed processing link, characterized by "edge acquisition, central coordination, and real-time processing." These systems typically face practical challenges in engineering, including limitations on link bandwidth and latency, primary / backup switching, load migration, and concurrent operation of multiple nodes. They have long relied on "status summary uploads" rather than continuous full-volume raw data transmission.
[0003] Existing technologies typically include single-point anomaly detection methods such as thresholding, univariate time series analysis, and isolation forests. While these methods can be used for localized alarms in air traffic control scenarios, they still have shortcomings in cross-node propagation diagnosis and root cause localization, mainly in the following aspects: I. Emphasis on single point, neglect of propagation: It can identify whether a node is abnormal, but it is difficult to answer how the abnormality propagates in the link and how the sequence of events evolves.
[0004] Second, inconsistencies between online and offline methods: Real-time detection and post-event review often use different algorithms or features, making it difficult to reach a unified conclusion.
[0005] Third, insufficient utilization of the state dimension: When only the central trajectory is retained in historical data, it is impossible to directly use state information such as fluctuation range and activity level for joint analysis.
[0006] Fourth, lack of reverse linkage modeling: insufficient ability to identify negative correlation anomalies caused by primary / standby switching, load transfer, and resource contention.
[0007] 5. Insufficient manageability of results: The output is mostly whether it is abnormal, which is difficult to directly support operation and maintenance decisions based on the source, path, and scope of impact. Summary of the Invention
[0008] The technical problem to be solved by this invention is to provide a method and system for detecting and tracing the propagation of anomalies in a distributed system. This method enables online monitoring, offline review, process interpretation, and result handling, thus solving the practical operation and maintenance problems of distributed systems under edge-constrained conditions in air traffic management.
[0009] This invention is achieved through the following technical solution: A method for detecting and tracing the propagation of anomalies in a distributed system includes the following steps: S1: Receive the node state sequence output by the online micro-cluster model of the distributed system, and assemble the node state sequence into a node state vector; S2: Perform a completeness check on the pieced-together node state vector. If the pieced-together node state vector is missing, derive the agent's node state vector based on the center trajectory and proceed to the next step. If the pieced-together node state vector is not missing, directly use the pieced-together node state vector to proceed to the next step. S3: Perform multi-dimensional joint change point detection on the pieced-together node state vector or the proxy node state vector using a unified pre or post notation to obtain the score, trigger mark and corresponding anomaly occurrence time of the multi-dimensional anomaly monitoring channel; S4: Combine the scores and trigger markers of the multi-dimensional anomaly monitoring channels to obtain trigger combinations, determine the pre or post change direction based on the time of anomaly occurrence, classify anomaly types according to trigger combinations and pre or post change directions, and obtain anomaly nodes. S5: Calculate each extended drift vector based on the abnormal node, and perform weighted and normalized processing on each extended drift vector to obtain a normalized drift vector. Construct a propagation graph containing positive propagation edges and negative correlation propagation edges based on the normalized drift vector. S6: Perform Monte Carlo propagation simulation and consistency assessment based on the propagation graph, identify the source of the anomaly, and output the propagation chain results.
[0010] The optimized node state vector in step S1 includes one or more of the following: center vector and radius, weight, neighborhood threshold, and anomaly score.
[0011] Furthermore, the method for deriving the agent's node state vector based on the center trajectory in step S2 is as follows: S211: Calculate the center change vector according to equation (1) and order : (1); in: Represents the central change vector. This represents the center vector after the node has changed. This represents the center vector of a node before it changes. Represents the residuals of the central change; S212: Calculate the velocity of the change of the center vector according to equation (2), and calculate the acceleration of the change of the center vector according to equation (3): (2); (3); in: This indicates the rate of change of the center vector. Indicates time interval, The acceleration representing the change of the center vector. This indicates the rate of change of the center vector in the previous time period; S213: Convert the residual of the center change, the rate of change of the center vector, and the acceleration of the change of the center vector into multiples relative to the historical baseline according to equation (4): (4); in: This indicates the multiple of the residuals relative to the historical baseline. This represents the mean of the historical window residuals. This represents a constant that prevents division by zero. Indicates the speed as a multiple of the historical baseline. This represents the average speed of historical windows. This indicates the multiple of acceleration relative to the historical baseline. This represents the average acceleration over a historical window. S214: The state vectors of the fluctuation, activity, and anomaly intensity nodes are calculated according to equation (5): (5); in: This indicates the range of historical changes and fluctuations in the node's state. This represents the lower limit of the historical fluctuation range of node states. This indicates the activity level of a node's historical state changes. This represents the truncation function. This indicates the anomalous strength of the node.
[0012] Furthermore, in step S3, the score of the multi-dimensional anomaly monitoring channel is calculated according to equation (6): (6); in: The channel score represents the center vector. This represents the center vector after the node has changed. This represents the center vector of a node before it changes. Channel scores indicating the range of fluctuations. This indicates the fluctuation range after a node's state changes. This indicates the fluctuation range before the node's state changes. This represents a small constant to prevent division by zero. Channel scores that indicate the activity level of a node. This indicates the activity level of a node after its state changes. This indicates the activity level of a node before its state changes. Channel score indicating the intensity of node state anomalies.
[0013] The optimized step S3 node anomaly trigger criterion is that the score of each channel is greater than the corresponding threshold, thereby obtaining a trigger mark.
[0014] The optimized anomaly types in step S4 include center drift anomalies, fluctuation expansion or contraction anomalies, activity decay or surge anomalies, and compound anomalies.
[0015] Furthermore, in step S5, the extended drift vector is calculated according to equation (7): (7); in: Represents the displacement of the center vector. This represents the center vector after the node has changed. This represents the center vector of a node before it changes. This represents the relative rate of change of the range of node state fluctuations. This indicates the fluctuation range after a node's state changes. This indicates the fluctuation range before the node's state changes. This represents a small constant to prevent division by zero. This represents the relative rate of change in the activity level of a node. This indicates the activity level of a node after its state changes. This indicates the activity level of a node before its state changes.
[0016] Furthermore, in step S5, a propagation graph containing both positive and negative propagation edges is constructed using the following method: S511: Calculate the similarity of the normalized drift vectors of different nodes according to equation (8), and calculate the pairing confidence of different nodes according to equation (9): (8); (9); in: The cosine similarity represents the normalized drift vectors of different nodes. Represents a node The normalized drift vector, Represents a node The normalized drift vector, This represents the pairing confidence of different nodes. Represents a node Abnormal confidence level, Represents a node Abnormal confidence level; S512: Calculate the fraction of the edge according to equation (10): (10); in: This represents the score of the forward propagation edge between abnormal nodes. Represents the expectation function, Represents a node With nodes Abnormal timing intervals, Indicates the maximum node anomaly time interval. The score represents the negative correlation edges between abnormal nodes; S513: Based on equation (11), determine whether the construction requirements for positive propagation edges between abnormal nodes are met. If equation (11) is met, then the construction requirements for positive propagation edges between abnormal nodes are met, and a propagation graph containing positive propagation edges and negative correlation propagation edges is constructed. If equation (11) is not met, then the construction requirements for positive propagation edges between abnormal nodes are not met, and the node is determined to be a non-abnormal node. (11); in: This indicates the threshold for determining directional similarity. This represents the minimum threshold for passing through the forward propagation edge. This indicates the abnormal interval of the node.
[0017] Furthermore, in step S6, the process of performing Monte Carlo propagation simulation and consistency assessment based on the propagation graph, identifying the source of the anomaly, and outputting the propagation chain results is as follows: S611: Treat each abnormal node in the propagation chain as a candidate source point in turn, perform multiple random propagation simulations for each candidate source point, and record the propagation coverage and propagation sequence of each random propagation simulation. S612: Compare the simulation results with the actual observations to evaluate the coverage, temporal consistency, and perturbation intensity of candidate nodes. Based on the evaluation of coverage, temporal consistency, and perturbation intensity of candidate nodes, determine the overall consistency and select the candidate node with the highest overall consistency as the final source node.
[0018] A system for detecting and tracing the propagation of anomalies in a distributed system, used to execute a method for detecting and tracing the propagation of anomalies in a distributed system as described in any of the above, comprising a node state vector construction module, a completeness check module, a multi-dimensional joint change point detection module, an anomaly type classification module, a propagation graph construction module, and a tracing module; The node state vector construction module is used to receive the node state sequence output by the online micro-cluster model of the distributed system and assemble the node state sequence into a node state vector. The completeness check module is used to check the completeness of the pieced-together node state vector. When the pieced-together node state vector is missing, the proxy node state vector is derived based on the center trajectory. The multidimensional joint change point detection module is used to perform multidimensional joint change point detection on the pieced-together node state vector or the proxy node state vector using a unified pre or post notation, so as to obtain the score, trigger mark and corresponding anomaly occurrence time of the multidimensional anomaly monitoring channel. The anomaly type classification module is used to combine the scores and trigger markers of the multi-dimensional anomaly monitoring channel to obtain the trigger combination, and determine the change direction of pre or post based on the time of anomaly occurrence. The module then classifies the anomaly type according to the trigger combination and the change direction of pre or post, and obtains the anomaly node. The propagation graph construction module calculates each extended drift vector based on the abnormal nodes, and performs weighted and normalized processing on each extended drift vector to obtain a normalized drift vector. Based on the normalized drift vector, a propagation graph containing positive propagation edges and negatively correlated propagation edges is constructed. The source tracing module performs Monte Carlo propagation simulation and consistency assessment based on the propagation graph to determine the source of the anomaly and output the propagation chain results.
[0019] Beneficial effects of the invention: The present invention provides a method and system for detecting and tracing the propagation of anomalies in a distributed system, which has the following advantages: 1. By using proxy state derivation technology, legacy data containing only the central trajectory can be reused and form a unified processing flow with online complete state input, thereby improving data compatibility.
[0020] 2. Multidimensional joint detection combined with a conservative confirmation mechanism can reduce the false alarm risk of single-dimensional threshold methods and improve detection accuracy.
[0021] 3. Fine-grained anomaly classification and channel scoring provide operations and maintenance personnel with clear diagnostic information, facilitating rapid root cause identification and enhancing interpretability.
[0022] 4. The dual-type propagation graph simultaneously captures both positive and negative propagation, which helps cover reverse-linkage scenarios such as load balancing and resource contention, providing comprehensive propagation modes: 5. Confidence assessment based on Monte Carlo simulation provides a quantitative credibility index for the traceability results. Attached Figure Description
[0023] Figure 1 This is a schematic diagram of the process of this invention. Detailed Implementation
[0024] A method for detecting and tracing the propagation of anomalies in a distributed system includes the following steps, the flowchart of which is shown below. Figure 1 As shown: S1: Receive the node state sequence output by the online micro-cluster model of the distributed system, and assemble the node state sequence into a node state vector; The online micro-cluster model attempts to merge new samples into existing micro-clusters or create new ones upon receiving them, maintaining the micro-cluster state through mechanisms such as decay and incremental updates. Ultimately, the system periodically outputs the state parameters of each micro-cluster, primarily including the center vector, radius, activity level (weight), and outlier score. These parameters effectively reflect changes and fluctuations in data distribution, facilitating subsequent propagation analysis and source localization.
[0025] Specifically, the pieced-together node state vector may include one or more of the following: center vector and radius, weight, neighborhood threshold, and anomaly score.
[0026] S2: Perform a completeness check on the pieced-together node state vector. If the pieced-together node state vector is missing, derive the agent's node state vector based on the center trajectory and proceed to the next step. If the pieced-together node state vector is not missing, directly use the pieced-together node state vector to proceed to the next step. Furthermore, the method for deriving the agent's node state vector based on the center trajectory in step S2 is as follows: S211: Calculate the center change vector according to equation (1) and order : (1); in: Represents the central change vector. This represents the center vector after the node has changed. This represents the center vector of a node before it changes. Represents the residuals of the central change; The center change vector reflects the center trajectory offset, and the center change residual is used to measure the magnitude of the center deviation.
[0027] S212: Calculate the velocity of the change of the center vector according to equation (2), and calculate the acceleration of the change of the center vector according to equation (3): (2); (3); in: This indicates the rate of change of the center vector. Indicates time interval, The acceleration representing the change of the center vector. This indicates the rate of change of the center vector in the previous time period; The rate of change of the center vector reflects the intensity of the change of the center vector per unit time, while the acceleration of the change of the center vector is used to reflect the degree of abrupt change in the center vector.
[0028] The residual of the center change, the rate of change of the center vector, and the acceleration of the change of the center vector are normalized to the same scale using historical reference values, and then mapped to the fluctuation range and recent activity respectively. Finally, they are combined to obtain the anomaly intensity. This can avoid misjudgment by a single indicator and ensure comparability at different nodes and with different dimensions.
[0029] S213: Convert the residual of the center change, the rate of change of the center vector, and the acceleration of the change of the center vector into multiples relative to the historical baseline according to equation (4): (4); in: This indicates the multiple of the residuals relative to the historical baseline. This represents the mean of the historical window residuals. This represents a constant that prevents division by zero. Indicates the speed as a multiple of the historical baseline. This represents the average speed of historical windows. This indicates the multiple of acceleration relative to the historical baseline. This represents the average acceleration over a historical window. By calculating the intermediate state of multiples relative to the historical baseline, the original trajectory can be further compressed into three vectors: "fluctuation, activity, and anomaly intensity," which are used for subsequent detection and propagation analysis.
[0030] S214: The state vectors of the fluctuation, activity, and anomaly intensity nodes are calculated according to equation (5): (5); in: This indicates the range of historical changes and fluctuations in the node's state. This represents the lower limit of the historical fluctuation range of node states. This indicates the activity level of a node's historical state changes. This represents the truncation function. This indicates the anomalous strength of the node.
[0031] The values for `pre` and `post` are determined as follows in both online and offline scenarios: Online scenarios: The pre value is usually taken as the historical baseline state (such as the average of the most recent complete report or the sliding window), which reflects the normal behavior of the node.
[0032] The post parameter represents the current observation status (such as the latest reported center trajectory) and is used to compare it with the baseline to capture abnormal changes in real time.
[0033] This approach is suitable for real-time monitoring and rapid response, enabling timely detection of sudden anomalies or state drift.
[0034] Offline scenarios: The `pre` parameter can be flexibly selected according to the analysis needs, such as the statistical mean of a historical window, the state at a specific moment, or the baseline state before an anomaly occurs.
[0035] The post parameter is taken as the statistic for the subsequent window, the state at the time of the anomaly, or the observation at the target time of the analysis.
[0036] Offline analysis can achieve smoother or more sensitive feature extraction results by adjusting parameters such as window length and overlap, making it suitable for tasks such as trend analysis, anomaly tracing, and model optimization.
[0037] By checking the completeness of the status and inferring the proxy status, historical central trajectory data and online status data can be analyzed in a unified manner, ensuring analytical capabilities even under conditions of incomplete data transmission.
[0038] This step uses a unified expression of "pre" or "post," with offline and online versions differing only in the way "pre" or "post" is valued. Residual, velocity, and acceleration characterize the magnitude of deviation, rate of change, and intensity of mutation, respectively. The derived agent's node state vector is only activated when a missing state is detected, and combined with a conservative validation strategy, a balance can be achieved between availability and false alarm control.
[0039] The final output node state vectors usable for anomaly detection include the node state vectors directly assembled in step S1, and proxy state vectors derived from historical window data based on the center vector and the current rate of change when state vector data is missing or historical data is analyzed offline. This allows legacy data containing only the center trajectory to be reused and forms a unified processing flow with the online complete state input, improving data compatibility.
[0040] S3: Perform multi-dimensional joint change point detection on the pieced-together node state vector or the proxy node state vector using a unified pre or post notation to obtain the score, trigger mark and corresponding anomaly occurrence time of the multi-dimensional anomaly monitoring channel; The multi-dimensional anomaly monitoring channel includes four dimensions: the node's center vector, the node's fluctuation range, the node's activity level, and the node's anomaly score. Each channel has its own score.
[0041] Specifically, the score for the multi-dimensional anomaly monitoring channel can be calculated according to equation (6): (6); in: The channel score represents the center vector. This represents the center vector after the node has changed. This represents the center vector of a node before it changes. Channel scores indicating the range of fluctuations. This indicates the fluctuation range after a node's state changes. This indicates the fluctuation range before the node's state changes. This represents a small constant to prevent division by zero. Channel scores that indicate the activity level of a node. This indicates the activity level of a node after its state changes. This indicates the activity level of a node before its state changes. Channel score indicating the intensity of node state anomalies.
[0042] The optimized step S3 node anomaly trigger criterion is that the score of each channel is greater than the corresponding threshold, thereby obtaining a trigger mark.
[0043] The criterion for triggering node anomalies is that the score of each channel exceeds the corresponding threshold. The basic rule is that any one of the following three channels—the node's center vector, the fluctuation range of the node's state, or the activity level of the node's state—is a candidate for anomaly. Under strong guarantee, triggering the channel based on the fluctuation range of the node's state or the activity level requires confirmation from the node's center vector channel; triggering the channel based on the node's anomaly score requires weak confirmation from the center vector channel, and the channel score must exceed the threshold to trigger. In other words, under strong guarantee, the corresponding channel will only be triggered if the fluctuation range of the node's state or the activity level of the node's state score exceeds the threshold, provided that the center vector channel is triggered.
[0044] By adopting a "main channel + auxiliary channel" strategy, the node status is only determined to be abnormal when the central channel or other channels under its confirmation are triggered simultaneously, which can further reduce false alarms.
[0045] In online mode, a threshold compensation factor can be introduced to improve the stability of real-time detection, as shown in the following formula: ; in: The channel threshold representing the node center vector. The channel threshold representing the range of node state fluctuations. The channel threshold representing the activity level of a node. The channel threshold representing the score of node state abnormalities. The channel score represents the node center vector. Channel score representing the range of node status fluctuations. Channel scores that indicate the activity level of a node. Channel score representing the score of node status anomalies. The channel trigger flag represents the node center vector. Channel trigger flags indicating the range of node state fluctuations. Channel trigger flags indicating node activity levels. Channel trigger flags indicating the score of node status anomalies.
[0046] S4: Combine the scores and trigger markers of the multi-dimensional anomaly monitoring channels to obtain trigger combinations, determine the pre or post change direction based on the time of anomaly occurrence, classify anomaly types according to trigger combinations and pre or post change directions, and obtain anomaly nodes. The optimized anomaly types include center drift anomalies, fluctuation expansion or contraction anomalies, activity decay or surge anomalies, and compound anomalies.
[0047] Note: When offline: pre = previous window statistics, post = next window statistics; when online: pre = historical baseline, post = current point (or current short window statistics). Specifically, the exception types are classified as shown in Table 1: Table 1
[0048] The classification results, as explanatory labels for anomalies, can be used to help explain the physical meaning of abnormal nodes (node center drift, changes in the range of node state fluctuations, changes in node state concentration, or compound anomalies), thereby improving the readability of the results of subsequent modules.
[0049] The classification results are displayed as an output field in conjunction with results such as anomaly source points, anomaly propagation chains, and anomaly edge scores, and can be used for alarm classification and operation and maintenance handling; in the current implementation, the classification results are not used as direct calculation inputs for propagation graph construction or source point optimization.
[0050] S5: Calculate each extended drift vector based on the abnormal node, and perform weighted and normalized processing on each extended drift vector to obtain a normalized drift vector. Construct a propagation graph containing positive propagation edges and negative correlation propagation edges based on the normalized drift vector. Specifically, the extended drift vector can be calculated according to equation (7): (7); in: Represents the displacement of the center vector. This represents the center vector after the node has changed. This represents the center vector of a node before it changes. This represents the relative rate of change of the range of node state fluctuations. This indicates the fluctuation range after a node's state changes. This indicates the fluctuation range before the node's state changes. This represents a small constant to prevent division by zero. This represents the relative rate of change in the activity level of a node. This indicates the activity level of a node after its state changes. This indicates the activity level of a node before its state changes.
[0051] The above three terms are concatenated to form the extended drift vector of the abnormal node. The final extended drift vector can then be obtained by weighting different components, such as (node state fluctuation range, node state activity), according to the following formula. .
[0052] in: The weighting coefficients represent the components of the range of fluctuations in the node's state. This represents the weighting coefficient of the node's state activity change component.
[0053] Then, according to the following formula... Normalization is performed to obtain the normalized drift vector. This facilitates subsequent similarity calculations and propagation modeling.
[0054] .
[0055] Furthermore, it can be based on the normalized drift vector The following method is used to construct a propagation graph containing both positive and negative propagation edges: S511: Calculate the similarity of the normalized drift vectors of different nodes according to equation (8), and calculate the pairing confidence of different nodes according to equation (9): (8); (9); in: The cosine similarity represents the normalized drift vectors of different nodes. Represents a node The normalized drift vector, Represents a node The normalized drift vector, This represents the pairing confidence of different nodes. Represents a node Abnormal confidence level, Represents a node Abnormal confidence level; S512: Calculate the fraction of the edge according to equation (10): (10); in: This represents the score of the forward propagation edge between abnormal nodes. Represents the expectation function, Represents a node With nodes Abnormal timing intervals, Indicates the maximum node anomaly time interval. The score represents the negative correlation edges between abnormal nodes; The edge score is calculated using Equation (10), which takes into account the similarity of node expansion drift direction, the temporal relationship of node anomaly occurrence and node confidence. This is used to filter and sort propagation edges, thereby suppressing false connections and improving the credibility and interpretability of the propagation chain.
[0056] S513: Based on equation (11), determine whether the construction requirements for positive propagation edges between abnormal nodes are met. If equation (11) is met, then the construction requirements for positive propagation edges between abnormal nodes are met, and a propagation graph containing positive propagation edges and negative correlation propagation edges is constructed. If equation (11) is not met, then the construction requirements for positive propagation edges between abnormal nodes are not met, and the node is determined to be a non-abnormal node. (11); in: This indicates the threshold for determining directional similarity. This represents the minimum threshold for passing through the forward propagation edge. This indicates the abnormal interval of the node.
[0057] If the construction of a forward propagation edge between abnormal nodes meets the requirements, it means that the node drift direction is consistent, the timing is reasonable, and the score is not lower than the threshold, which facilitates the modeling of abnormal propagation links and source tracing.
[0058] Negative correlation edges: These are used to identify groups of nodes with opposite or reverse linkages, assisting in the diagnosis of phenomena such as load shifting and resource contention. The construction requirements are the same: the node expansion drift direction must meet the reverse requirement, the timing of node anomalies must be reasonable, and the edge score must not be lower than a threshold. Based on these dual-type propagation edges, a propagation graph is constructed, dividing abnormal nodes into positive propagation chains, negative correlation groups, and isolated anomalies.
[0059] Subsequent uses of forward edges: The forward edges form a propagation chain, which serves as input for source tracing optimization, used to determine candidate source points and the final source.
[0060] Subsequent uses of negatively correlated edges: Symmetrical groups are formed by negatively correlated edges to output reverse linkage diagnostic results (such as load transfer, resource contention, and fault switching), and single-source tracing is usually not performed.
[0061] S6: Perform Monte Carlo propagation simulation and consistency assessment based on the propagation graph, identify the source of the anomaly, and output the propagation chain results.
[0062] Specifically, the process of performing Monte Carlo propagation simulation and consistency assessment based on the propagation graph, identifying the source of the anomaly, and outputting the propagation chain results is as follows: S611: Treat each abnormal node in the propagation chain as a candidate source point in turn, perform multiple random propagation simulations for each candidate source point, and record the propagation coverage and propagation sequence of each random propagation simulation. S612: Compare the simulation results with the actual observations to evaluate the coverage, temporal consistency, and perturbation intensity of candidate nodes. Based on the evaluation of coverage, temporal consistency, and perturbation intensity of candidate nodes, determine the overall consistency score and select the candidate node with the highest overall consistency score as the final source node. Coverage is used to measure the explanatory power of candidate source points for the actual range of anomaly impact. If, after simulation using a candidate node as a candidate source point, the overlap between the simulated candidate node and the actually observed anomaly node is high, it indicates that the candidate source point can explain the range of this anomaly propagation well, and it is highly likely to be a candidate source.
[0063] The degree of temporal consistency is used to measure the degree of matching between the simulated propagation process and the actual sequence of anomaly occurrence. If candidate node A occurs before candidate node B in the actual observation, and the simulation results also show that candidate node A is affected by the propagation before or no later than candidate node B, then the candidate node pair is considered to be consistent in temporal sequence. The higher the degree of consistency, the better the candidate source point can explain the sequential relationship of the anomaly's gradual propagation along the link.
[0064] The perturbation intensity of candidate nodes is used to measure the significance of the changes in the state of the candidate source node itself, such as the shift of the center vector, the change in the fluctuation range, or the change in activity. If the state perturbation amplitude of a candidate node is large, it indicates that it is more likely to be the starting candidate node for abnormal propagation. If the perturbation is weak, it is more likely to be the result of being influenced by other candidate nodes.
[0065] By weighting and fusing coverage, temporal consistency, and perturbation intensity of candidate nodes, we can obtain the overall consistency score of the candidate source point. The higher the overall consistency score, the more the candidate node can explain the scope of anomaly impact, the order of propagation, and its own anomaly intensity, and the more likely it is to be the real source of the anomaly. Therefore, the candidate node with the highest overall consistency score is selected as the final source point.
[0066] By obtaining statistical results through multiple simulations, the accidental misjudgments caused by a single random propagation can be reduced. It not only considers "who is the earliest abnormal," but also coverage and propagation order, reducing bias caused by detection latency. Finally, it can output the comparison results of each candidate source point, facilitating the explanation of "why this node was determined as the source." It adapts to complex link scenarios such as concurrent propagation and path forking, making it more reliable in engineering than single-rule judgment.
[0067] A system for detecting and tracing the propagation of anomalies in a distributed system, used to execute a method for detecting and tracing the propagation of anomalies in a distributed system as described in any of the above, comprising a node state vector construction module, a completeness check module, a multi-dimensional joint change point detection module, an anomaly type classification module, a propagation graph construction module, and a tracing module; The node state vector construction module is used to receive the node state sequence output by the online micro-cluster model of the distributed system and assemble the node state sequence into a node state vector. The completeness check module is used to check the completeness of the pieced-together node state vector. When the pieced-together node state vector is missing, the proxy node state vector is derived based on the center trajectory. The multidimensional joint change point detection module is used to perform multidimensional joint change point detection on the pieced-together node state vector or the proxy node state vector using a unified pre or post notation, so as to obtain the score, trigger mark and corresponding anomaly occurrence time of the multidimensional anomaly monitoring channel. The anomaly type classification module is used to combine the scores and trigger markers of the multi-dimensional anomaly monitoring channel to obtain the trigger combination, and determine the change direction of pre or post based on the time of anomaly occurrence. The module then classifies the anomaly type according to the trigger combination and the change direction of pre or post, and obtains the anomaly node. The propagation graph construction module calculates each extended drift vector based on the abnormal nodes, and performs weighted and normalized processing on each extended drift vector to obtain a normalized drift vector. Based on the normalized drift vector, a propagation graph containing positive propagation edges and negatively correlated propagation edges is constructed. The source tracing module performs Monte Carlo propagation simulation and consistency assessment based on the propagation graph to determine the source of the anomaly and output the propagation chain results.
[0068] In summary, the method and system for detecting and tracing the propagation of anomalies in a distributed system provided by this invention can be deployed on edge acquisition nodes and central collaborative processing platforms related to air traffic control surveillance. It has stable operating conditions and a clear engineering implementation path in scenarios with limited links, master-slave switching, and multi-node concurrency. It can be used for real-time alarms as well as for post-event review and operational auditing, and has clear industrial application value.
[0069] The above description is merely a preferred embodiment of the present invention and is not intended to limit the invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
Claims
1. A method for detecting and tracing the propagation of anomalies in a distributed system, characterized in that: Includes the following steps: S1: Receive the node state sequence output by the online micro-cluster model of the distributed system, and assemble the node state sequence into a node state vector; S2: Perform a completeness check on the pieced-together node state vector. If the pieced-together node state vector is missing, derive the agent's node state vector based on the center trajectory and proceed to the next step. If the pieced-together node state vector is not missing, directly use the pieced-together node state vector to proceed to the next step. S3: Perform multi-dimensional joint change point detection on the pieced-together node state vector or the proxy node state vector using a unified pre or post notation to obtain the score, trigger mark and corresponding anomaly occurrence time of the multi-dimensional anomaly monitoring channel; S4: Combine the scores and trigger markers of the multi-dimensional anomaly monitoring channels to obtain trigger combinations, determine the pre or post change direction based on the time of anomaly occurrence, classify anomaly types according to trigger combinations and pre or post change directions, and obtain anomaly nodes. S5: Calculate each extended drift vector based on the abnormal node, and perform weighted and normalized processing on each extended drift vector to obtain a normalized drift vector. Construct a propagation graph containing positive propagation edges and negative correlation propagation edges based on the normalized drift vector. S6: Perform Monte Carlo propagation simulation and consistency assessment based on the propagation graph, identify the source of the anomaly, and output the propagation chain results.
2. The method for detecting and tracing the propagation of anomalies in a distributed system according to claim 1, characterized in that: The node state vector in step S1 includes one or more of the following: center vector and radius, weight, neighborhood threshold, and anomaly score.
3. The method for detecting and tracing the propagation of anomalies in a distributed system according to claim 1, characterized in that: The method for deriving the agent's node state vector based on the center trajectory in step S2 is as follows: S211: Calculate the center change vector according to equation (1) and order : (1); in: Represents the central change vector. This represents the center vector after the node has changed. This represents the center vector of a node before it changes. Represents the residuals of the central change; S212: Calculate the velocity of the change of the center vector according to equation (2), and calculate the acceleration of the change of the center vector according to equation (3): (2); (3); in: This indicates the rate of change of the center vector. Indicates time interval, The acceleration representing the change of the center vector. This indicates the rate of change of the center vector in the previous time period; S213: Convert the residual of the center change, the rate of change of the center vector, and the acceleration of the change of the center vector into multiples relative to the historical baseline according to equation (4): (4); in: This indicates the multiple of the residuals relative to the historical baseline. This represents the mean of the historical window residuals. This represents a constant that prevents division by zero. Indicates the speed as a multiple of the historical baseline. This represents the average speed of historical windows. This indicates the multiple of acceleration relative to the historical baseline. This represents the average acceleration over a historical window. S214: The state vectors of the fluctuation, activity, and anomaly intensity nodes are calculated according to equation (5): (5); in: This indicates the range of historical changes and fluctuations in the node's state. This represents the lower limit of the historical fluctuation range of node states. This indicates the activity level of a node's historical state changes. This represents the truncation function. This indicates the anomalous strength of the node.
4. The method for detecting and tracing the propagation of anomalies in a distributed system according to claim 1, characterized in that: In step S3, the score of the multi-dimensional anomaly monitoring channel is calculated according to equation (6): (6); in: The channel score represents the center vector. This represents the center vector after the node has changed. This represents the center vector of a node before it changes. Channel scores indicating the range of fluctuations. This indicates the fluctuation range after a node's state changes. This indicates the fluctuation range before the node's state changes. This represents a small constant to prevent division by zero. Channel scores that indicate the activity level of a node. This indicates the activity level of a node after its state changes. This indicates the activity level of a node before its state changes. Channel score indicating the intensity of node state anomalies.
5. The method for detecting and tracing the propagation of anomalies in a distributed system according to claim 1, characterized in that: The abnormal trigger criterion for step S3 is that the score of each channel is greater than the corresponding threshold, thereby obtaining a trigger mark.
6. The method for detecting and tracing the propagation of anomalies in a distributed system according to claim 1, characterized in that: The abnormality types mentioned in step S4 include center drift anomaly, fluctuation expansion or contraction anomaly, activity decay or surge anomaly, and compound anomaly.
7. The method for detecting and tracing the propagation of anomalies in a distributed system according to claim 1, characterized in that: In step S5, the extended drift vector is calculated according to equation (7): (7); in: Represents the displacement of the center vector. This represents the center vector after the node has changed. This represents the center vector of a node before it changes. This represents the relative rate of change of the range of node state fluctuations. This indicates the fluctuation range after a node's state changes. This indicates the fluctuation range before the node's state changes. This represents a small constant to prevent division by zero. This represents the relative rate of change in the activity level of a node. This indicates the activity level of a node after its state changes. This indicates the activity level of a node before its state changes.
8. The method for detecting and tracing the propagation of anomalies in a distributed system according to claim 1, characterized in that: In step S5, the following method is used to construct a propagation graph containing positive propagation edges and negatively correlated propagation edges: S511: Calculate the similarity of the normalized drift vectors of different nodes according to equation (8), and calculate the pairing confidence of different nodes according to equation (9): (8); (9); in: The cosine similarity represents the normalized drift vectors of different nodes. Represents a node The normalized drift vector, Represents a node The normalized drift vector, This represents the pairing confidence of different nodes. Represents a node Abnormal confidence level, Represents a node Abnormal confidence level; S512: Calculate the fraction of the edge according to equation (10): (10); in: This represents the score of the forward propagation edge between abnormal nodes. Represents the expectation function, Represents a node With nodes Abnormal timing intervals, Indicates the maximum node anomaly time interval. The score represents the negative correlation edges between abnormal nodes; S513: Based on equation (11), determine whether the construction requirements for positive propagation edges between abnormal nodes are met. If equation (11) is met, then the construction requirements for positive propagation edges between abnormal nodes are met, and a propagation graph containing positive propagation edges and negative correlation propagation edges is constructed. If equation (11) is not met, then the construction requirements for positive propagation edges between abnormal nodes are not met, and the node is determined to be a non-abnormal node. (11); in: This indicates the threshold for determining directional similarity. This represents the minimum threshold for passing through the forward propagation edge. This indicates the abnormal interval of the node.
9. The method for detecting and tracing the propagation of anomalies in a distributed system according to claim 1, characterized in that: The process of performing Monte Carlo propagation simulation and consistency assessment based on the propagation graph in step S6, identifying the source of the anomaly, and outputting the propagation chain results is as follows: S611: Treat each abnormal node in the propagation chain as a candidate source point in turn, perform multiple random propagation simulations for each candidate source point, and record the propagation coverage and propagation sequence of each random propagation simulation. S612: Compare the simulation results with the actual observations to evaluate the coverage, temporal consistency, and perturbation intensity of candidate nodes. Based on the evaluation of coverage, temporal consistency, and perturbation intensity of candidate nodes, determine the overall consistency and select the candidate node with the highest overall consistency as the final source node.
10. A system for detecting and tracing the propagation of anomalies in a distributed system, used to execute a method for detecting and tracing the propagation of anomalies in a distributed system as described in any one of claims 1 to 9, characterized in that: It includes a node state vector construction module, a completeness check module, a multi-dimensional joint variable point detection module, an anomaly type classification module, a propagation graph construction module, and a source tracing module; The node state vector construction module is used to receive the node state sequence output by the online micro-cluster model of the distributed system and assemble the node state sequence into a node state vector. The completeness check module is used to check the completeness of the pieced-together node state vector. When the pieced-together node state vector is missing, the proxy node state vector is derived based on the center trajectory. The multidimensional joint change point detection module is used to perform multidimensional joint change point detection on the pieced-together node state vector or the proxy node state vector using a unified pre or post notation, so as to obtain the score, trigger mark and corresponding anomaly occurrence time of the multidimensional anomaly monitoring channel. The anomaly type classification module is used to combine the scores and trigger markers of the multi-dimensional anomaly monitoring channel to obtain the trigger combination, and determine the change direction of pre or post based on the time of anomaly occurrence. The module then classifies the anomaly type according to the trigger combination and the change direction of pre or post, and obtains the anomaly node. The propagation graph construction module calculates each extended drift vector based on the abnormal nodes, and performs weighted and normalized processing on each extended drift vector to obtain a normalized drift vector. Based on the normalized drift vector, a propagation graph containing positive propagation edges and negatively correlated propagation edges is constructed. The source tracing module performs Monte Carlo propagation simulation and consistency assessment based on the propagation graph to determine the source of the anomaly and output the propagation chain results.
