Anomaly detection method, apparatus, device, and medium

By acquiring and analyzing the first test results and path topology of the probe, the fault forwarding device in the cross-regional network is automatically identified and located, which solves the problem of low fault location efficiency in the existing technology and realizes fast and accurate fault response.

CN123145189APending Publication Date: 2026-11-20PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611601217.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-15
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies, cross-regional network monitoring systems cannot accurately locate the root cause of faults, resulting in low efficiency in anomaly location and an inability to quickly respond to faults in scenarios with high requirements for business stability, such as healthcare and fintech.

Method used

By obtaining the first test results from the probe, abnormal test results are filtered out, and candidate forwarding devices are identified by combining the topology relationship of the test path. The abnormality of the target forwarding device is automatically located, avoiding manual troubleshooting.

Benefits of technology

It improved the efficiency of anomaly location, ensured the business stability of healthcare and fintech scenarios, reduced the workload of manual investigation, and improved the accuracy of fault location and the speed of automated processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123145189A_ABST
    Figure CN123145189A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of anomaly detection, and discloses an anomaly detection method, device, equipment and medium, which comprises the following steps: acquiring first dial test results of dial test probes configured in each node area in a node cluster; performing anomaly detection on each first dial test result, and screening at least two abnormal dial test results from each first dial test result; acquiring a dial test path topological relationship, wherein the dial test path topological relationship comprises each dial test probe and forwarding device information of a forwarding device through which each dial test probe sends a dial test message; screening candidate forwarding device information of an abnormal dial test probe corresponding to each abnormal dial test result from the dial test path topological relationship; and when target forwarding device information corresponding to at least two abnormal dial test results exists in each candidate forwarding device information, determining that a target forwarding device corresponding to the target forwarding device information is abnormal, improving anomaly positioning efficiency, and further ensuring the business stability of medical health and financial technology scenes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of anomaly detection technology, with applications in medical and health and financial technology scenarios, and particularly to anomaly detection method, device, equipment and medium. Background Technology

[0002] With the rapid development of cloud computing and distributed business architectures, multi-availability zone distributed deployment has become the standard architecture for cloud services and enterprise-level businesses to avoid business interruptions caused by single-point data center failures. The stability of network connectivity and the quality of link transmission across availability zones are the core foundation for ensuring high service availability. Once an intermediate forwarding device fails, it will lead to large-scale cross-zone business access anomalies. Therefore, continuous and accurate monitoring of the cross-zone network status is required.

[0003] Among related technologies, the mainstream monitoring method for cross-regional network quality is the probe-based solution. This involves deploying probes in each node area and launching probes in other areas at fixed intervals to collect and statistically analyze network indicators such as link round-trip latency, packet loss rate, and connectivity status. When the indicators exceed preset alarm thresholds, alarm information is pushed to maintenance personnel, thereby enabling timely detection of network anomalies.

[0004] Existing solutions can only detect anomalies at the link level, failing to accurately pinpoint the root cause of faults. The dial-up testing system can only report the overall status of the entire link from the source to the target, unable to identify the operational status of core switches, firewalls, load balancers, and other forwarding devices at various levels along the link. When a failure of the same forwarding device causes multiple dial-up testing links to malfunction simultaneously, the system outputs a large number of independent alarm messages, unable to automatically aggregate and converge faults from the same source, easily leading to alarm storms. Maintenance personnel must manually check each forwarding device against the network topology, resulting in extremely low anomaly localization efficiency. In scenarios with high business stability requirements, such as healthcare and fintech, the inability to quickly locate faulty forwarding devices necessitates disrupting business stability for item-by-item troubleshooting. Therefore, there is an urgent need for an anomaly detection method that can overcome these shortcomings and improve anomaly localization efficiency. Summary of the Invention

[0005] This invention provides an anomaly detection method, apparatus, computer equipment, and medium, aiming to solve the technical problem of extremely low anomaly location efficiency in the current technology of manually checking forwarding devices one by one against the network topology, thereby improving the anomaly location efficiency and ensuring the business stability of scenarios such as healthcare and financial technology.

[0006] Firstly, an anomaly detection method is provided, including: Obtain the first probe test result configured in each node region of the node cluster; For each of the first dial test results, perform anomaly detection and select at least two abnormal dial test results from each of the first dial test results; Obtain the topology of the test path, which includes the forwarding device information of each test probe and the forwarding devices that each test probe passes through when sending a test message; From the topology of the probe path, select candidate forwarding device information for each abnormal probe result corresponding to the abnormal probe; When each candidate forwarding device information contains at least two abnormal dialing results corresponding to the target forwarding device information, the target forwarding device corresponding to the target forwarding device information is determined to be abnormal.

[0007] Secondly, an anomaly detection device is provided, comprising: The first acquisition module is used to acquire the first probe test results configured for each node region in the node cluster. The first screening module is used to perform anomaly detection on each of the first dial-up test results and to screen out at least two abnormal dial-up test results from each of the first dial-up test results. The second acquisition module is used to acquire the topology relationship of the dial test path, which includes the forwarding device information of each dial test probe and the forwarding device through which each dial test probe sends the dial test message; The second filtering module is used to filter out candidate forwarding device information for each abnormal probe corresponding to an abnormal probe result from the probe path topology. The determination module is used to determine that the target forwarding device corresponding to the target forwarding device information is abnormal when there are at least two abnormal dialing results corresponding to the target forwarding device information in each candidate forwarding device information.

[0008] Thirdly, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of the above-described anomaly detection method.

[0009] Fourthly, a computer-readable storage medium is provided, which stores a computer program that, when executed by a processor, implements the steps of the above-described anomaly detection method.

[0010] The above-described anomaly detection method, apparatus, computer equipment, and storage medium can achieve the following: First, anomaly detection is performed on each of the first test probes configured in each node region of the node cluster; at least two abnormal test results are selected from each of the first test results; a test path topology is obtained, including information on each test probe and the forwarding devices that each test probe passes through when sending a test message; candidate forwarding device information for each abnormal test probe corresponding to the abnormal test result is selected from the test path topology; and when each candidate forwarding device information... When there are at least two abnormal probe results corresponding to the target forwarding device information, the target forwarding device corresponding to the target forwarding device information is determined to be abnormal. This invention identifies at least two abnormal probe results and, in combination with the probe path topology, determines the candidate forwarding device information of the abnormal probe corresponding to each abnormal probe result. This allows the target forwarding device in the candidate forwarding device information that corresponds to the target forwarding device information of at least two abnormal probe results to be identified as abnormal. This avoids the technical problem of manually checking forwarding devices one by one against the network topology, which has extremely low anomaly location efficiency. This improves anomaly location efficiency and thus ensures the business stability of scenarios such as healthcare and fintech. Attached Figure Description

[0011] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0012] Figure 1 This is a schematic diagram of an application environment for an anomaly detection method according to an embodiment of the present invention; Figure 2 This is a flowchart illustrating an anomaly detection method in one embodiment of the present invention; Figure 3 yes Figure 2 A schematic diagram of a specific implementation method for step S20; Figure 4 yes Figure 2 A schematic diagram of a specific implementation of step S40; Figure 5 This is another flowchart illustrating the anomaly detection method in one embodiment of the present invention; Figure 6 This is another flowchart illustrating the anomaly detection method in one embodiment of the present invention; Figure 7 This is another schematic flowchart of an anomaly detection method in one embodiment of the present invention; Figure 8 This is a schematic diagram of an anomaly detection device in one embodiment of the present invention; Figure 9 This is a schematic diagram of the structure of a computer device according to an embodiment of the present invention; Figure 10 This is another structural schematic diagram of a computer device according to one embodiment of the present invention. Detailed Implementation

[0013] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0014] The anomaly detection method provided in this embodiment of the invention can be applied to, for example... Figure 1 In this application environment, the client communicates with the server via a network. The client can upload the first test results of the probes configured for each node area to the server; the server obtains the first test results of the probes configured for each node area in the node cluster; performs anomaly detection on each of the first test results, and filters out at least two abnormal test results from each of the first test results; obtains the test path topology, which includes the forwarding device information of each probe and the forwarding devices that each probe passes through when sending test messages; filters out the candidate forwarding device information of each abnormal test result corresponding to the abnormal probe from the test path topology; when each of the probes... When there are at least two abnormal probe results corresponding to the target forwarding device information in the candidate forwarding device information, the target forwarding device corresponding to the target forwarding device information is determined to be abnormal. This invention identifies at least two abnormal probe results and, in combination with the probe path topology, determines the candidate forwarding device corresponding to each abnormal probe result. This allows the target forwarding device among the candidate forwarding devices that corresponds to at least two abnormal probe results to be identified as abnormal, avoiding the technical problem of manually checking forwarding devices one by one against the network topology, which has extremely low anomaly location efficiency. This improves anomaly location efficiency and thus ensures the business stability of scenarios such as healthcare and fintech.

[0015] Please see Figure 2 As shown, Figure 2 A flowchart illustrating an anomaly detection method provided in an embodiment of the present invention includes the following steps: S10: Obtain the first probe test result of the probe configured in each node region of the node cluster.

[0016] The node cluster is a network cluster composed of multiple interconnected independent data center areas (node ​​areas) that carry the same business system. It corresponds to the multi-availability zone cloud network architecture in the background technology. Business and monitoring collection components are deployed across regions within the cluster. The node area is a physically isolated independent partition (i.e., cloud availability zone AZ) within the cluster. Each partition has independent power supply, network, and cooling facilities. Business servers and probes are deployed within the partition. Cross-regional transmission links are established between partitions through forwarding devices. The probe is an automated detection and collection component deployed in each node area. It can actively send detection messages to probes in other node areas and periodically collect link transmission indicators. It is the collection carrier of network quality data. The first probe result is the raw network indicator data output by the probe after performing a complete round of cross-regional detection. It is the basic data source for subsequent anomaly detection.

[0017] Specifically, several probes are deployed in advance in each independent node area of ​​the node cluster. All probes send probe messages bidirectionally to probes in other node areas according to a unified preset cycle. After each round of probing is completed, each probe generates raw probe data locally, including latency, packet loss rate, and connectivity status. The probe actively uploads the raw probe data of this round to the background analysis service. The service uniformly pulls the raw probe data output by all probes in all node areas of the cluster to obtain a complete set of the first probe results.

[0018] S20: Perform anomaly detection on each first test result and select at least two abnormal test results from each first test result.

[0019] Among them, the abnormal test result is the first test result that is determined by abnormal detection and whose indicators do not meet the preset qualified standards, which means that there is a network fault in the transmission link between the corresponding probes.

[0020] Specifically, each first test result is read sequentially, and the system's preset network indicator qualification threshold is retrieved; the current test result is checked to see if it meets the qualification standard, and all first test results are continuously traversed to collect all data that are judged to be faulty, ensuring that no less than two independent abnormal test results are obtained as input data for subsequent root cause analysis.

[0021] In some embodiments, such as Figure 3 As shown, the first test results include latency, packet loss rate, and connectivity status. In step S20, which involves anomaly detection for each first test result and selecting at least two abnormal test results from each first test result, the specific steps S21 to S22 are as follows: S21: Compare the delay of each of the first test results with the preset delay threshold, the packet loss rate with the preset packet loss rate, and the connectivity status with the preset connectivity status to obtain the delay comparison result, the packet loss rate comparison result, and the connectivity status comparison result.

[0022] Among them, latency is the round-trip transmission time of the probe message from the source probe to the target probe and back to the source probe, also called round-trip time (RTT), usually measured in milliseconds, and is used to characterize the speed of link transmission; packet loss rate is the proportion of the number of probe messages lost in a single probe test to the total number of messages sent, and is used to characterize the stability of link transmission; connectivity status is a status indicator that marks whether the link between the source probe and the target probe can communicate normally, and is divided into two states: normal connectivity and disconnection.

[0023] The preset latency threshold is a critical value pre-configured by operations and maintenance personnel to determine whether the link transmission performance is qualified. Exceeding this value indicates that the link latency exceeds the standard. The preset packet loss rate is a critical proportion pre-configured by operations and maintenance personnel to determine whether the link packet loss exceeds the standard. If the detected packet loss ratio exceeds this value, the link quality deteriorates. The preset connectivity status is the system's preset link qualification standard status, which is uniformly "normal connectivity".

[0024] Specifically, each first-wave test result collected from probes in each node region is read; the actual latency duration within this data is extracted and compared with the preset latency threshold stored locally in the system; if the actual latency exceeds the threshold, the latency comparison result is marked as failing, otherwise it is marked as passing; the actual packet loss percentage within this data is extracted and compared with the preset packet loss threshold; if the actual packet loss rate exceeds the threshold, the packet loss rate comparison result is marked as failing, otherwise it is marked as passing; the link connectivity identifier of this data record is extracted and matched with the preset connectivity status "normal connectivity"; if the actual status is disconnected, the connectivity status comparison result is marked as failing, otherwise it is marked as passing; for the current first-wave test result, three independent sets of comparison results for latency, packet loss rate, and connectivity status are generated synchronously and temporarily cached in memory; the above comparison logic is repeated to complete the three-dimensional index comparison of all first-wave test results in the cluster. The delay comparison result is obtained by comparing the actual delay value of a single first-wave test result with a preset delay threshold and outputting a judgment label, which is divided into two categories: pass and fail. The packet loss rate comparison result is obtained by comparing the actual packet loss rate of a single first-wave test result with a preset packet loss threshold and outputting a judgment label, which is divided into two categories: pass and fail. The connectivity status comparison result is obtained by comparing the actual connectivity status of a single first-wave test result with a preset connectivity status and outputting a judgment label, which is divided into two categories: pass and fail.

[0025] S22: The first test result in which at least one of the following comparison results fails is identified as an abnormal test result: the delay comparison result, the packet loss rate comparison result, and the connectivity status comparison result.

[0026] Specifically, for each first test result, the three sets of comparison indicators are judged. If any one of the comparison results for delay, packet loss, or connectivity status fails, the first test result is directly classified as an abnormal test result. Only when all three sets of comparison results pass is the link considered normal and the data is removed.

[0027] Based on this, a three-dimensional hierarchical comparison and judgment logic of latency, packet loss rate, and connectivity status is built for the original dial-up test results. The three core network dimensions of link speed, transmission stability, and link connectivity are checked by independent thresholds. If any one of the indicators exceeds the standard, the link anomaly can be identified. Compared with the traditional detection method of judging by a single indicator, it can comprehensively capture various network faults such as performance degradation, packet loss, and link interruption, without missing different types of link anomalies. The standardized output of three independent comparison indicators can also provide clear data basis for subsequent location of the cause of forwarding device anomalies and generation of targeted fault prompt information. It ensures that the anomaly screening rules are unified, the judgment logic is clear and implementable, and the stable output of sufficient effective anomaly data supports the upper-layer fault root cause location process, improving the comprehensiveness and accuracy of multi-node regional network fault identification.

[0028] S30: Obtain the topology of the test path. The topology of the test path includes the forwarding device information of each test probe and the forwarding devices that each test probe passes through when sending a test message.

[0029] The probe path topology is pre-stored structured mapping data that fully records the deployment locations of all probes and the hardware devices through which packets between any two probes pass, thus depicting a map of the entire network traffic forwarding path. Probe messages are probe messages sent between probes, including ICMP Ping messages, TCP probe messages, and UDP probe messages, used to verify link connectivity and transmission quality. Forwarding devices are network hardware that handles cross-node area traffic forwarding, including core switches, firewalls, load balancers, border gateway routers, etc., and are intermediate bearer devices for link transmission. Forwarding device information refers to the device identifier of the forwarding device, such as the device ID and device number.

[0030] Specifically, the operations and maintenance team pre-enters the deployment addresses of all probes in the cluster, information on all forwarding devices, and the complete routing paths for message transmission between probes, generating a structured topology mapping table and storing it persistently. When executing fault analysis logic, the system reads the complete dial-up test path topology from the storage medium. This topology is fully bound to two types of information: first, the home node area and communication address of all dial-up test probes; second, a list of all forwarding devices that the dial-up test messages pass through in the transmission order when any two probes communicate with each other.

[0031] S40: Filter out the candidate forwarding device information of the abnormal probe corresponding to each abnormal probe result from the probe test path topology.

[0032] Among them, the abnormal probe is the source / target probe that outputs abnormal probe results, indicating that the probe participates in the detection link where a network anomaly has occurred; the candidate forwarding device is the set of all forwarding devices that the probe packet passes through throughout the entire process in a single abnormal probe link, which is all the intermediate forwarding hardware corresponding to a single abnormal link.

[0033] Specifically, for each selected abnormal probe test result, the source abnormal probe test probe and the target abnormal probe test probe corresponding to the record are extracted; using the source probe and the target probe as search conditions, the complete transmission path between the two is queried in the probe test path topology; all forwarding devices that pass through the transmission path in sequence are read, and these devices are summarized into a candidate forwarding device set corresponding to the current abnormal probe test result, with each abnormal link corresponding to an independent candidate forwarding device set.

[0034] In some embodiments, such as Figure 4 As shown, in step S40, which involves anomaly detection for each first test result and filtering candidate forwarding device information for each abnormal test probe corresponding to the abnormal test result from the test path topology, the specific steps include S41 to S42: S41: For each abnormal test result, determine the abnormal test probe corresponding to the abnormal test result.

[0035] The process involves reading all completed abnormal probe test results one by one; parsing the metadata carried in each abnormal probe test result to separate the source probe ID and target probe ID of this probe; marking the extracted source probe and target probe as a pair of abnormal probes corresponding to this abnormal probe test result; caching probe pairing information: temporarily storing the pairing relationship of "abnormal probe test result number + source probe ID + target probe ID" in memory as the retrieval condition for the next topology query; repeating the above extraction and marking operations to complete the abnormal probe pairing parsing of all abnormal probe test results.

[0036] S42: Query the candidate forwarding device information of the candidate forwarding devices that the abnormal probe passes through when sending the probe test message from the probe test path topology relationship, and obtain the candidate forwarding device information of the abnormal probe test corresponding to each abnormal probe test result.

[0037] The process involves using a set of source and target anomaly probes as the primary key for retrieval, performing precise matching within the pre-loaded probe path topology. Upon a successful retrieval, the process retrieves the complete device sequence that the probe's bidirectional communication traverses during the probe's bidirectional communication, pre-recorded in the topology. All forwarding device information in the path sequence is deduplicated and organized to generate a candidate forwarding device information list specific to this anomaly probe result. This candidate forwarding device information list is then bound and stored with the currently traversed anomaly probe results, forming a one-to-one correspondence between "anomaly probe result - candidate forwarding device information." The retrieval, aggregation, and binding operations are repeated for each anomaly probe result, ultimately outputting a set of candidate forwarding device information corresponding to each anomaly link.

[0038] In this way, by first extracting the abnormal probes at both ends of each abnormal link, and then accurately retrieving all forwarding devices that the entire link passes through based on the pre-stored topology mapping, a standardized association between abnormal links and underlying forwarding hardware is established. This achieves the automatic conversion of link-layer anomalies into device-layer fault clues, eliminating the need for maintenance personnel to manually sort out traffic paths by referring to network diagrams. It can batch and quickly output all candidate forwarding device sets corresponding to each faulty link, providing a complete and standardized data source for subsequent multi-link device intersection calculations and locating common faulty forwarding devices. This significantly reduces the workload of manually sorting out network paths and improves the data accuracy and automation speed of fault root cause location.

[0039] S50: When there are at least two abnormal test results corresponding to the target forwarding device information in each candidate forwarding device information, the target forwarding device corresponding to the target forwarding device information is determined to be abnormal.

[0040] Among them, the target forwarding device information refers to the candidate forwarding device that appears simultaneously on two or more abnormal dialing test links, and is the device identifier of the common fault source device that causes multiple links to synchronize and fail.

[0041] Specifically, the forwarding device information corresponding to each abnormal dialing test result is statistically analyzed. If a certain forwarding device information corresponds to two or more abnormal dialing test results, it means that the traffic of multiple independent faulty links has passed through the forwarding device information. The forwarding device corresponding to the device information is marked as the target forwarding device. The target forwarding device is directly determined as the source device of the fault, thus completing the root cause location of the network fault.

[0042] In some embodiments, such as Figure 5 As shown, after step S50, that is, after determining that the target forwarding device corresponding to the target forwarding device information is abnormal, the following steps S60 to S80 are also included: S60: Obtain the target comparison result that fails the comparison result in the abnormal dialing test results corresponding to the target forwarding device.

[0043] Among them, the target comparison result is one or more comparison results marked as "fail" in the abnormal dialing test results associated with the target forwarding device, which is the core basis for deducing the cause of the fault.

[0044] Specifically, using the identified target forwarding device ID as the search condition, all abnormal test results flowing through that device are retrieved; each associated abnormal test result is read one by one, carrying three sets of comparison results: latency, packet loss rate, and connectivity status; comparison results with a status of "fail" are filtered out, and one or more of the filtered comparison results are marked as target comparison results and cached separately; if multiple associated abnormal test results have the same type of failed comparison results, only the unique type of target comparison results are retained to eliminate duplicate data.

[0045] S70: Determine the target anomaly cause of the target comparison result based on the preset mapping relationship between the comparison result and the anomaly cause.

[0046] The preset mapping relationship between the comparison results and the causes of anomalies is a static association comparison table pre-configured by the system, which stores the underlying device fault causes corresponding to each type of failure in the comparison results; for example, the connectivity status fails to pass the corresponding port interruption / routing failure, the packet loss rate fails to pass the corresponding port congestion / optical module degradation, and the latency fails to pass the corresponding device computing power overload; the target anomaly cause is the actual fault cause corresponding to the target forwarding device, which is derived from the target comparison results by matching the preset mapping relationship.

[0047] Specifically, the process involves reading the pre-defined mapping relationship between the comparison results and the causes of anomalies from the local persistent storage; using the target comparison results extracted in the previous step as search keywords for precise matching within the mapping relationship; reading the matching records and marking the fault causes stored in the records as the target causes of anomalies.

[0048] For example: if the target comparison result is that the connectivity status comparison result fails, the matching result for the target abnormality is "forwarding device uplink port down, BGP route oscillation"; if the packet loss rate comparison result fails, the matching result is "port bandwidth congestion, optical module bit error".

[0049] S80: Generate a prompt message to indicate the reason for the target forwarding device's abnormality.

[0050] The notification message is a standardized, readable message generated by integrating the target forwarding device identifier and the cause of the target anomaly, used to push and display the fault details to maintenance personnel.

[0051] Specifically, the device number and device type of the target forwarding device are extracted, and the target anomaly cause is spliced ​​and matched to form a structured prompt text; the prompt information format is standardized, and auxiliary information such as the number of associated anomaly test results and the range of affected node areas are added; the assembled prompt information is pushed to the operation and maintenance monitoring platform and message notification channels to intuitively inform the operation and maintenance personnel of the faulty device and the corresponding cause of the fault.

[0052] Based on the failure judgment results output from the previous indicator comparison and the preset fault mapping rules, the system automatically deduces the real fault causes of the underlying forwarding devices from the abnormal link indicators and generates standardized fault prompt information. This solves the problem that traditional dial-up alarms only inform of link faults and cannot explain the type of fault root cause. It eliminates the need for maintenance personnel to manually associate indicators with fault scenarios and can intuitively and clearly convey the fault category of the target forwarding device to maintenance personnel. This shortens the time for maintenance personnel to understand the fault scenario and formulate troubleshooting plans, and improves the pertinence of fault handling and the efficiency of maintenance and troubleshooting.

[0053] In some embodiments, such as Figure 6 As shown, after step S50, that is, after determining that the target forwarding device corresponding to the target forwarding device information is abnormal, the following steps S90 to S120 are also included: Step S90: Obtain each operating parameter of the target forwarding device and determine the index type of each operating parameter.

[0054] Among them, the operating parameters are the real-time operating status data of the target forwarding device collected remotely. These are the raw collected values ​​that reflect whether the device hardware, ports, computing power, and routing are operating normally, including CPU utilization, memory usage, port status, device temperature, BGP routing jitter count, etc. The indicator type is a classification identifier for the operating parameters according to the monitoring dimensions, used to distinguish the device status of different dimensions, such as computing power indicators, port status indicators, temperature indicators, and routing indicators.

[0055] Specifically, the system actively sends collection commands through the device management interface and SNMP / SSH protocol to remotely retrieve real-time operating data of all dimensions of the target forwarding device, obtaining a complete set of operating parameters; it then retrieves the parameter-type mapping table stored in the system, identifies the monitoring dimension to which each operating parameter belongs, and binds a unique indicator type to each operating parameter. For example: the collected value "CPU utilization 96%" is bound to the computing power indicator of the indicator type; the collected value "Port 1 / 0 / 1 status Down" is bound to the port status indicator of the indicator type; all running parameters are grouped and stored according to indicator type to form a corresponding dataset of "indicator type - real-time running parameter".

[0056] Step S100: Obtain the reference operating parameters corresponding to each indicator type.

[0057] Among them, the reference operating parameters are the standard thresholds / standard states for normal operation of equipment pre-configured by the system and corresponding to each indicator type, which serve as the benchmark for judging whether the equipment parameters are abnormal.

[0058] Specifically, load the device standard parameter configuration library stored locally; match the benchmark value by type: use each index type marked in step S90 as the search keyword to query and extract the normal standard corresponding to that type, i.e., the reference operating parameter, from the configuration library; For example: the reference operating parameter corresponding to the computing power indicator is "CPU utilization ≤ 90%"; the reference operating parameter corresponding to the port status indicator is "port status Up"; one-to-one binding comparison benchmark: establish a binding relationship between each group of indicator types and the corresponding reference operating parameters as the basis for subsequent comparison and judgment.

[0059] Step S110: For each indicator type, match the corresponding running parameters with the corresponding reference running parameters.

[0060] The process involves iterating through all grouped indicator types, retrieving the real-time operating parameters of the current type, and matching and verifying them with the reference operating parameters of that type. Numerical indicators use a size comparison logic, while status indicators use a complete equality matching logic. A matching identifier is generated for each type of indicator, divided into two categories: matching (parameters meet the standard) and non-matching (parameters exceed the standard / status is abnormal). The matching results of all indicator types are stored for filtering out abnormal dimensions.

[0061] Step S120: When there is a mismatch between the operating parameters corresponding to the target indicator type and the corresponding reference operating parameters in each indicator type, the target forwarding device is restored according to the device recovery method corresponding to the target indicator type.

[0062] The device recovery method involves pre-stored automated repair operation scripts and execution instructions that correspond one-to-one with each indicator type, with different abnormal indicators matched with specific repair methods.

[0063] Iterate through the matching results of all indicator types, filter out indicator types marked as "not matched", and mark them as target indicator types; use the target indicator type as an index to query the pre-stored mapping relationship and obtain the device recovery method corresponding to the indicator type; For example: if the target metric is a port status metric (port Down), the corresponding recovery method is to restart the faulty port; if the target metric is a computing power metric (CPU overload), the corresponding recovery method is to switch service traffic to a backup device; the system remotely executes the operation script corresponding to the recovery method on the target forwarding device to automatically complete the fault repair action; the device ID, abnormal metric type, and executed recovery command of this repair operation are fully recorded, and the entire process operation record is retained.

[0064] In this way, after locating the faulty forwarding device, the system automatically and remotely collects all dimensions of the device's operating parameters and classifies them into index types. By automatically comparing them with preset standard reference parameters, it identifies abnormal index dimensions and matches exclusive automated repair methods according to the abnormal indicators to achieve autonomous repair of device faults. This breaks the barrier that traditional dial-up testing systems can only issue alarms and cannot automatically intervene in device repair. It eliminates the need for maintenance personnel to manually log in to the device to view parameters and manually perform repair operations, significantly reducing the cost of manual maintenance intervention, shortening the average fault repair time, and realizing an automated closed loop from network fault location to self-healing. This effectively ensures the continuous and stable operation of cross-regional services in multi-node areas.

[0065] In some embodiments, the method further includes: When the operating parameters corresponding to each indicator type match the corresponding reference operating parameters, a prompt message is generated to indicate that the target forwarding device has not recovered.

[0066] The process involves iterating through the matching identifiers for each metric category and verifying that all are "matched." If all metric types match, the system extracts the target forwarding device number, device type, records showing all normal metric verifications, the number of associated abnormal test links, and the current fault symptoms. It clearly marks the diagnostic conclusion as "all device operating parameters meet standards," indicating that the automated self-healing strategy cannot eliminate link anomalies. It also includes all abnormal test results and topology path information flowing through the device for easy manual troubleshooting by operations and maintenance personnel. The packaged notification is then simultaneously pushed to the operations and maintenance backend interface and alarm message channel. This notification is bound to the full-process log of this fault and archived to preserve fault investigation records. The automated self-healing link is terminated, and the fault is transferred to the manual operations and maintenance processing queue for in-depth offline investigation by operations and maintenance personnel.

[0067] In this way, when all operating indicators of the target forwarding device meet the standards and the link anomaly cannot be eliminated by the preset automatic repair strategy, a unique prompt message is automatically generated and pushed to the operation and maintenance personnel. This distinguishes between two scenarios: "device parameters are abnormal and can heal themselves" and "device parameters are normal but the link is still faulty". This avoids the system blindly executing ineffective repair operations and wasting the device's computing power. At the same time, it clearly informs the operation and maintenance personnel that the current fault cannot be handled automatically and requires in-depth manual intervention. This improves the fault handling branch logic, prevents fault scenarios from being missed or without feedback, and enhances the completeness of the entire anomaly detection method and the transparency of operation and maintenance.

[0068] In some embodiments, such as Figure 7 As shown, after step S120, that is, after restoring the target forwarding device according to the device recovery method corresponding to the target indicator type, the following steps S130 to S140 are also included: Step S130: Obtain the second probe result corresponding to each abnormal probe flowing through the target forwarding device.

[0069] The second test result is the network indicator data collected after the system re-drives the corresponding abnormal test probe to initiate a new test after the automatic recovery operation of the target forwarding device is completed. This data is used to verify the fault repair effect and is different from the first test result collected during the fault investigation phase.

[0070] Specifically, all abnormal probes that pass through the current target forwarding device are screened out; a second probe command is issued to all the screened abnormal probes, driving the probes to resend probe messages according to the original detection cycle and detection method; after the completion of this round of retesting, all the new detection index data reported by the abnormal probes are collected in a unified manner, the batch of retest data is defined as the second probe result, and the correspondence between abnormal probes and the second probe result is established and cached in memory.

[0071] Step S140: Perform anomaly detection on each second test result. When each second test result passes the anomaly detection, generate a recovery record.

[0072] Among them, the recovery record is a structured archived log generated by the system, which records complete information such as device recovery operation, secondary dial-up verification results, device identification, timestamp, and associated probes, and is used for fault review and operation and maintenance audit.

[0073] Specifically, for each second-stage test result, the system performs comparisons of latency with a preset latency threshold, packet loss rate with a preset packet loss rate, and connectivity status with a preset connectivity status, generating three independent comparison results. A comprehensive judgment is made for each second-stage test result: if all three comparison results pass, the second-stage test result is marked as having passed anomaly detection; if any comparison result fails, the link is marked as still faulty. The verification status of all second-stage test results is iterated to confirm that all retested links have passed anomaly detection and no link indicators exceed the limits. The target forwarding device ID, executed device recovery method, retest probe list, all indicators of the second-stage test result, recovery operation timestamp, and retest completion time are extracted. The assembled recovery record is stored in the operation and maintenance log database, and a successful fault repair indicator is displayed on the monitoring interface. This complete fault handling process ends, and the system reverts to the regular periodic test collection logic, continuously monitoring the network status.

[0074] In this way, after completing the automated repair operation of the forwarding device, the fault correlation probe is automatically driven to perform retesting and verify the repair effect through standardized anomaly detection. Archived recovery records are only generated when all related links have returned to normal, forming a complete automated closed loop of "fault location - device self-healing - effect retesting - result archiving". This avoids the problem of performing repair operations but not being able to confirm whether the fault has been truly eliminated. It can accurately verify the effectiveness of self-healing operations, and at the same time retain complete and traceable fault recovery logs for operation and maintenance review and auditing, improving the reliability and traceability of the entire set of anomaly detection methods and ensuring the authenticity and credibility of cross-node regional network fault handling results.

[0075] In this embodiment of the invention, the first test results of the probes configured in each node region of the node cluster are obtained; anomaly detection is performed on each of the first test results, and at least two abnormal test results are selected from each of the first test results; the test path topology is obtained, which includes each of the test probes and the forwarding devices that each test probe passes through when sending test messages; candidate forwarding devices corresponding to the abnormal test probes for each abnormal test result are selected from the test path topology; when there are at least two abnormal test results for a target forwarding device among the candidate forwarding devices, the target forwarding device is determined to be abnormal. This invention identifies at least two abnormal test results and, in conjunction with the test path topology, determines the candidate forwarding devices corresponding to the abnormal probes for each abnormal test result, thereby identifying the target forwarding device among the candidate forwarding devices that corresponds to at least two abnormal test results as abnormal. This avoids the technical problem of manually checking forwarding devices one by one against the network topology, which has extremely low anomaly location efficiency, improves anomaly location efficiency, and thus ensures the business stability of scenarios such as healthcare and fintech.

[0076] In one embodiment, an anomaly detection device is provided, which corresponds one-to-one with the anomaly detection methods described in the above embodiments. For example... Figure 8 As shown, the anomaly detection device includes a first acquisition module 101, a first filtering module 102, a second acquisition module 103, a second filtering module 104, and a determination module 105. Detailed descriptions of each functional module are as follows: The first acquisition module 101 is used to acquire the first probe test results of the probes configured in each node area of ​​the node cluster. The first screening module 102 is used to perform anomaly detection on each of the first dial test results and screen out at least two abnormal dial test results from each of the first dial test results; The second acquisition module 103 is used to acquire the topology relationship of the dial test path, which includes the forwarding device information of each dial test probe and the forwarding device through which each dial test probe sends the dial test message. The second filtering module 104 is used to filter out candidate forwarding device information of each abnormal probe corresponding to the abnormal probe result from the probe path topology relationship. The determination module 105 is used to determine that the target forwarding device corresponding to the target forwarding device information is abnormal when there are at least two abnormal dialing results corresponding to the target forwarding device information in each candidate forwarding device information.

[0077] In one embodiment, the first test results include latency, packet loss rate, and connectivity status; The first filtering module 102 is specifically used for: The delay, packet loss rate, and connectivity status of each of the first test results are compared with the preset delay threshold, the packet loss rate, and the connectivity status, respectively, to obtain the delay comparison result, the packet loss rate comparison result, and the connectivity status comparison result. The first test result in which at least one of the following comparison results fails—the delay comparison result, the packet loss rate comparison result, and the connectivity status comparison result—is determined as an abnormal test result.

[0078] In one embodiment, the apparatus further includes: The second acquisition module is used to acquire the target comparison result that fails the comparison result in the abnormal dialing test result corresponding to the target forwarding device; The second determining module is used to determine the target abnormal cause of the target comparison result based on a preset mapping relationship between the comparison result and the abnormal cause. The first generation module is used to generate a prompt message to indicate the reason for the target anomaly in the target forwarding device.

[0079] In one embodiment, the second screening module 104 is specifically used for: For each abnormal probe result, determine the abnormal probe corresponding to the abnormal probe result; The candidate forwarding device information of the candidate forwarding devices that the abnormal probe passes through when sending the probe test message is queried from the probe test path topology relationship, so as to obtain the candidate forwarding device information of the abnormal probe test corresponding to each abnormal probe test result.

[0080] In one embodiment, the apparatus further includes: The third acquisition module is used to acquire each operating parameter of the target forwarding device and determine the index type of each operating parameter; The fourth acquisition module is used to acquire reference operating parameters corresponding to each of the aforementioned indicator types; The matching module is used to match the corresponding running parameters with the corresponding reference running parameters for each of the aforementioned indicator types. The recovery module is used to restore the target forwarding device according to the device recovery method corresponding to the target indicator type when the operating parameters corresponding to the target indicator type do not match the corresponding reference operating parameters in each of the indicator types.

[0081] In one embodiment, the apparatus further includes: The second generation module is used to generate a prompt message when the operating parameters corresponding to each of the indicator types match the corresponding reference operating parameters, so as to prompt that the target forwarding device has not recovered.

[0082] In one embodiment, the apparatus further includes: The fifth acquisition module is used to acquire the second probe result corresponding to each abnormal probe passing through the target forwarding device; The third generation module is used to perform anomaly detection on each of the second dial test results. When each of the second dial test results passes the anomaly detection, a recovery record is generated.

[0083] This invention provides an anomaly detection device that identifies at least two abnormal probe results and, in conjunction with the probe path topology, determines the candidate forwarding device information for each abnormal probe result. This allows the target forwarding device in the candidate forwarding device information that corresponds to at least two abnormal probe results to be identified as abnormal. This avoids the technical problem of manually checking forwarding devices one by one against the network topology, resulting in extremely low anomaly location efficiency, thus improving anomaly location efficiency and ensuring business stability in scenarios such as healthcare and fintech.

[0084] Specific limitations regarding the anomaly detection device can be found in the limitations of the anomaly detection method described above, and will not be repeated here. Each module in the aforementioned anomaly detection device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0085] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 9As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile and / or volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with external clients via a network connection. When the computer program is executed by the processor, it implements the functions or steps of an anomaly detection method on the server side.

[0086] In one embodiment, a computer device is provided, which may be a client, and its internal structure diagram may be as follows: Figure 10 As shown, the computer device includes a processor, memory, network interface, display screen, and input devices connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used to communicate with an external server via a network connection. When the computer program is executed by the processor, it implements the functions or steps of an anomaly detection method on the client side.

[0087] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps: Obtain the first probe test result configured in each node region of the node cluster; For each of the first dial test results, perform anomaly detection and select at least two abnormal dial test results from each of the first dial test results; Obtain the topology of the test path, which includes the forwarding device information of each test probe and the forwarding devices that each test probe passes through when sending a test message; From the topology of the probe path, select candidate forwarding device information for each abnormal probe result corresponding to the abnormal probe; When each candidate forwarding device information contains at least two abnormal dialing results corresponding to the target forwarding device information, the target forwarding device corresponding to the target forwarding device information is determined to be abnormal.

[0088] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor: Obtain the first probe test result configured in each node region of the node cluster; For each of the first dial test results, perform anomaly detection and select at least two abnormal dial test results from each of the first dial test results; Obtain the topology of the test path, which includes the forwarding device information of each test probe and the forwarding devices that each test probe passes through when sending a test message; From the topology of the probe path, select candidate forwarding device information for each abnormal probe result corresponding to the abnormal probe; When each candidate forwarding device information contains at least two abnormal dialing results corresponding to the target forwarding device information, the target forwarding device corresponding to the target forwarding device information is determined to be abnormal.

[0089] It should be noted that the functions or steps that can be implemented by the computer-readable storage medium or computer device described above can be referred to the relevant descriptions on the server side and client side in the foregoing method embodiments. To avoid repetition, they will not be described one by one here.

[0090] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, storage, databases, or other media used in the embodiments provided by this invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), Rambus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0091] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0092] It should be noted that if any AI models, software tools, or components not belonging to this company appear in the embodiments of this invention, they are merely illustrative examples and do not represent actual use. All user personal information involved in the embodiments of this invention is authorized (with the knowledge and consent) by the relevant parties or fully authorized by all parties, and the executing entity may obtain it through various legal and compliant means. The collection, storage, use, processing, transmission, provision, and disclosure of the information, data, and signals involved all comply with relevant laws and regulations and do not violate public order and good morals.

[0093] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.

Claims

1. An anomaly detection method, characterized in that, include: Obtain the first probe test result configured in each node region of the node cluster; For each of the first dial test results, perform anomaly detection and select at least two abnormal dial test results from each of the first dial test results; Obtain the topology of the test path, which includes the forwarding device information of each test probe and the forwarding devices that each test probe passes through when sending a test message; From the topology of the probe path, select candidate forwarding device information for each abnormal probe result corresponding to the abnormal probe; When each candidate forwarding device information contains at least two abnormal dialing results corresponding to the target forwarding device information, the target forwarding device corresponding to the target forwarding device information is determined to be abnormal.

2. The anomaly detection method according to claim 1, characterized in that, The first test results include latency, packet loss rate, and connectivity status; The step of performing anomaly detection on each of the first dial-up test results, and selecting at least two abnormal dial-up test results from each of the first dial-up test results, includes: The delay, packet loss rate, and connectivity status of each of the first test results are compared with the preset delay threshold, the packet loss rate, and the connectivity status, respectively, to obtain the delay comparison result, the packet loss rate comparison result, and the connectivity status comparison result. The first test result in which at least one of the following comparison results fails—the delay comparison result, the packet loss rate comparison result, and the connectivity status comparison result—is determined as an abnormal test result.

3. The anomaly detection method according to claim 2, characterized in that, After determining that the target forwarding device corresponding to the target forwarding device information is abnormal, the method further includes: Obtain the target comparison result that fails the comparison in the abnormal dialing test results corresponding to the target forwarding device; Based on the preset mapping relationship between the comparison results and the causes of anomalies, the target cause of the anomaly in the target comparison result is determined; A prompt message is generated to indicate the reason for the target anomaly in the target forwarding device.

4. The anomaly detection method according to claim 1, characterized in that, The step of filtering candidate forwarding device information for each abnormal probe corresponding to an abnormal probe result from the probe path topology includes: For each abnormal probe result, determine the abnormal probe corresponding to the abnormal probe result; The candidate forwarding device information of the candidate forwarding devices that the abnormal probe passes through when sending the probe test message is queried from the probe test path topology relationship, so as to obtain the candidate forwarding device information of the abnormal probe test corresponding to each abnormal probe test result.

5. The anomaly detection method according to claim 1, characterized in that, After determining that the target forwarding device corresponding to the target forwarding device information is abnormal, the method further includes: Obtain each operating parameter of the target forwarding device and determine the index type of each operating parameter; Obtain the reference operating parameters corresponding to each of the aforementioned indicator types; For each of the aforementioned indicator types, match the corresponding operating parameters and the corresponding reference operating parameters; When the operating parameters corresponding to the target indicator type do not match the corresponding reference operating parameters in each of the indicator types, the target forwarding device is restored according to the device recovery method corresponding to the target indicator type.

6. The anomaly detection method according to claim 5, characterized in that, The method further includes: When the operating parameters corresponding to each of the aforementioned indicator types match the corresponding reference operating parameters, a prompt message is generated to indicate that the target forwarding device has not recovered.

7. The anomaly detection method according to claim 5, characterized in that, After restoring the target forwarding device according to the device recovery method corresponding to the target indicator type, the method further includes: Obtain the second probe result corresponding to each abnormal probe flowing through the target forwarding device; Anomaly detection is performed on each of the second test results. When each of the second test results passes the anomaly detection, a recovery record is generated.

8. An anomaly detection device, characterized in that, include: The first acquisition module is used to acquire the first probe test results configured for each node region in the node cluster. The first screening module is used to perform anomaly detection on each of the first dial-up test results and to screen out at least two abnormal dial-up test results from each of the first dial-up test results. The second acquisition module is used to acquire the topology relationship of the dial test path, which includes the forwarding device information of each dial test probe and the forwarding device through which each dial test probe sends the dial test message; The second filtering module is used to filter out candidate forwarding device information for each abnormal probe corresponding to an abnormal probe result from the probe path topology. The determination module is used to determine that the target forwarding device corresponding to the target forwarding device information is abnormal when there are at least two abnormal dialing results corresponding to the target forwarding device information in each candidate forwarding device information.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the anomaly detection method as described in any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the anomaly detection method as described in any one of claims 1 to 7.