Method and device for automatically checking network faults

Through automated network troubleshooting methods, including communication element extraction and built-in knowledge base analysis, it solves the problems of high reliance on manual experience and low diagnostic efficiency in the existing technology, achieves accurate and efficient troubleshooting of network faults, and reduces costs and time. .

CN118784447APending Publication Date: 2024-10-15WEIHAI POWER SUPPLY COMPANY OF STATE GRID SHANDONG ELECTRIC POWER COMPANY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410927879.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-11
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing network troubleshooting solutions rely heavily on manual experience, have low diagnostic efficiency, and are difficult to reuse and transfer experience, resulting in long troubleshooting cycles and high costs. There are risks of failure to troubleshoot or being inaccurate, which affects network performance and security.

Method used

Adopt automated methods, including communication element extraction and modeling, determining whether session flow and request response flow are normal, finding communication model matching methods, analyzing fault causes and generating troubleshooting tasks based on the built-in knowledge base, and realizing automatic execution and root cause of troubleshooting tasks. Cause analysis.

Benefits of technology

It reduces the dependence on manual experience, improves the efficiency and accuracy of fault diagnosis, realizes accurate and efficient troubleshooting of network faults, solves the problem of inability to reuse and transfer experience, and reduces troubleshooting costs and time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784447A_ABST
    Figure CN118784447A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of network management, in particular to a method and a device for automatically checking network faults. The method comprises the following steps: S1, extracting communication elements; s2, communication element modeling is carried out; s3, judging whether the session flow and the request response flow are normal or not; s4, searching a communication model matching method and outputting a fault reason; s5, analyzing a fault reason based on a built-in knowledge base; s6, generating a troubleshooting task based on the fault reason; and S7, performing a troubleshooting task execution process and a fault root cause analysis process. The device comprises troubleshooting software and troubleshooting equipment. According to the invention, the artificial experience can be built in the network troubleshooting equipment in the form of a knowledge base and a script, and the problems that the network troubleshooting highly depends on the artificial experience, the network fault diagnosis efficiency is low, and the network troubleshooting experience cannot be effectively utilized are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network management, and in particular to a method and device for automatic troubleshooting of network faults. Background Art

[0002] Network troubleshooting involves professional knowledge in multiple fields, and has high requirements and challenges for security operation and maintenance personnel: 1) Operation and maintenance personnel need to have solid network and security knowledge and skills, including the configuration management and working principles of network security equipment such as network protocols, routers, switches, load balancing, firewalls, intrusion prevention, WAF, etc.; 2) It is necessary to fully understand the network topology, but in large networks, it usually includes multiple subnets, multiple routers and switches and other devices, which increases the complexity of troubleshooting; 3) It is necessary to analyze a large amount of logs and data to understand the root cause of the problem. For large networks, log and data analysis may be a tedious and time-consuming task; 4) Network failures may have a significant impact on the business and require rapid response and resolution. Operation and maintenance personnel need to quickly locate and solve problems under pressure; 5) It is necessary to have troubleshooting methods and techniques to quickly locate and solve network failures; 6) Troubleshooting may need to be performed in a production environment, and the stability and security of the production environment are the primary considerations, so operation and maintenance personnel need to perform troubleshooting under restrictions and risks.

[0003] Existing network troubleshooting solutions require the use of multiple methods and tools for independent troubleshooting, including network monitoring tools (real-time monitoring of network devices and traffic, identification of abnormal situations and fault events), network diagnostic tools (ping, traceroute, etc., used to analyze network connection, routing, transmission and protocol issues, wireshark tools for analyzing network data packets), network equipment and security equipment troubleshooting (configuration troubleshooting, hardware troubleshooting and log analysis), etc., which have the following disadvantages: 1) Troubleshooting needs to involve multiple devices and multiple fields, such as troubleshooting multiple devices, large amounts of data collection and analysis, processing a large amount of logs, etc., and the troubleshooting cycle is long; 2) Troubleshooting is heavily dependent on the knowledge, experience and technical capabilities of operation and maintenance engineers, the troubleshooting cost is high, there is a risk of failure to troubleshoot or inaccurate troubleshooting, and it may even have a negative impact on network performance or introduce security risks; 3) Troubleshooting experience is difficult to reuse and transfer, and each troubleshooting is mostly repetitive work, and it is difficult to effectively transfer and replicate experience when operation and maintenance personnel are replaced. Summary of the invention

[0004] The technical problem to be solved by the present invention is to overcome the deficiencies of the prior art and provide a method and device for automated network fault troubleshooting, which can solve the problems of high reliance on manual experience in network fault troubleshooting, low efficiency in network fault diagnosis, and inability to effectively utilize network fault troubleshooting experience.

[0005] The technical solution of the present invention is:

[0006] A method for automatic troubleshooting of network faults, the method comprising the following steps:

[0007] S1, communication element extraction;

[0008] S2, communication element modeling;

[0009] S3, determine whether the session flow and request response flow are normal;

[0010] S4, find the communication model matching method and output the fault cause;

[0011] S5. Analyze the cause of the failure based on the built-in knowledge base;

[0012] S6. Generate troubleshooting tasks based on the cause of the fault;

[0013] S7. Troubleshooting task execution process and fault root cause analysis process.

[0014] Preferably, the communication elements in step S1 include: link layer communication elements, network layer communication elements, network layer communication elements, transport layer protocol communication elements, and application layer protocol communication elements.

[0015] Preferably, the modeling process in step S2 includes the following sub-steps:

[0016] S21,session as the first level;

[0017] S22, link layer, network layer, transport layer, application layer, etc. are the second level;

[0018] S23, the network layer includes the overlay layer and underlay layer, and the request response flow under the application layer as the third layer;

[0019] S24, the application layer protocol under the request response flow is used as the fourth layer.

[0020] Preferably, the step S3 determines whether the session flow and the request response flow are normal and includes the following requirements:

[0021] S31. Determine that all request response codes are within the range of 300>2XX≥200, and there is no other response code;

[0022] S32. There is no string in the response stream that matches the request failure dictionary.

[0023] Preferably, the current request of the request-response flow satisfies at least one of the two requirements S31 and S32, that is, it is a normal request-response flow; the session flow requires that all request-response flows in the current session meet the two requirements S31 and S32 to be a normal session flow, and if one of them is not met, it is an abnormal session flow.

[0024] Preferably, step S4 includes the following sub-steps:

[0025] S41, searching for a matching model based on five-tuple information: source IP, source port, transport layer protocol, destination IP, and destination port;

[0026] S42. After matching the model, based on the extracted protocol metadata, communication elements, and network indicators of the session flow and request and response flow, a comparative analysis is performed item by item based on the link layer, network layer, transport layer, and application layer, respectively, to find out subtle changes through comparison and judge the occurrence of faults in advance;

[0027] S43. Label the request-response flow with fine-grained labels for subtle changes, with the source IP protocol as the dimension and the request-response as the unit. Aggregate the number of different labels and the number of request-response flows at different time granularities, and discover anomalies by comparing horizontal indicators with the same source IP and the same protocol.

[0028] Preferably, the step S5 includes the following sub-steps:

[0029] S51, based on the path information to be checked input by the user, starting from the current time, the network performance indicators are sliced ​​forward in pairs with the granularity of hours to find the time range where the critical point of the failure occurs;

[0030] S52, slice by slice with a granularity of minutes and compare them two by two to find the time range where the critical point of the failure occurs.

[0031] Preferably, step S6 is based on a built-in troubleshooting task knowledge base, the knowledge base is organized according to protocol dimensions and fault causes, and different fault causes of different protocols correspond to different troubleshooting tasks.

[0032] A device for automatic troubleshooting of network faults, the device comprising troubleshooting software and troubleshooting equipment, wherein:

[0033] Troubleshooting software, installed on the PC and server, is mainly used to receive troubleshooting tasks issued by troubleshooting equipment to perform troubleshooting and feedback troubleshooting results;

[0034] The troubleshooting device is deployed in bypass mode in the network being troubleshooted and is used to configure port mirroring on the bypassed device to mirror traffic to the troubleshooting device.

[0035] Compared with the prior art, the present invention has the following beneficial effects:

[0036] 1. Reduce the high reliance of network troubleshooting on manual experience. The network troubleshooting equipment and troubleshooting software designed by the present invention have the capabilities of senior operation and maintenance engineers.

[0037] 2. Improve the efficiency and accuracy of network fault diagnosis. The present invention fully automates all fault diagnosis steps. Combined with built-in professional troubleshooting experience and communication models, it can achieve accurate and efficient troubleshooting of network faults.

[0038] 3. To solve the problem that troubleshooting experience cannot be effectively utilized and transmitted, the present invention builds a professional troubleshooting knowledge base into the troubleshooting equipment, and supports customers to customize and add their own operation and maintenance troubleshooting experience, so that the experience is deposited in the equipment, and the accumulation and sharing of knowledge and experience is convenient, and the loss of knowledge and experience due to personnel loss will not occur. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0040] Figure 1 It is a flow chart of the method of the present invention.

[0041] Figure 2 It is a schematic diagram of the flow analysis of a single device according to the present invention.

[0042] Figure 3 It is a schematic diagram of the flow analysis of multiple devices according to the present invention.

[0043] Figure 4 It is a schematic diagram of the automated troubleshooting process of the present invention. DETAILED DESCRIPTION

[0044] In order to enable those skilled in the art to better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0045] Example 1

[0046] like Figure 1 , Figure 4As shown, this embodiment provides a method for automatic troubleshooting of network faults, including the following steps:

[0047] S1, communication element extraction;

[0048] S2, communication element modeling;

[0049] S3, determine whether the session flow and request response flow are normal;

[0050] S4, find the method of communication model matching and output the cause of the fault;

[0051] S5. Analyze the cause of the failure based on the built-in knowledge base;

[0052] S6. Generate troubleshooting tasks based on the cause of the fault;

[0053] S7. Troubleshooting task execution process and fault root cause analysis process.

[0054] Preferably, the communication elements in step S1 include: link layer communication elements, network layer communication elements, network layer communication elements, transport layer protocol communication elements, and application layer protocol communication elements.

[0055] Link layer communication elements include: source MAC, destination MAC, VLAN, priority, and MPLS label;

[0056] Network layer communication elements include: IP protocol version number, IP header length, IP priority, IP fragmentation, TTL, IP checksum, and four-layer protocol;

[0057] Transport layer protocol communication elements. Although the basic principles of transport layer protocols are the same, there are differences in different application systems: TCP protocol differences, such as TCP segmentation, TCP flags, TCP window size, TCP MSS, TCP Urgent, TCP timestamp, TCP long connection, TCP SSL / TLS encryption, and the initiation order and direction of the SYN / SYN ACK / ACK three-way handshake message;

[0058] UDP protocol differences, such as unilateral sending, interactive sending, time interval between sending and responding to messages, UDP timestamp, etc.

[0059] ICMP differences, such as ICMP unable to communicate normally, ICMP request response delay, request type, request code, response type, response code, etc.

[0060] Application layer protocol communication elements. Different application layer protocols extract different communication elements, which are mainly related to the protocol communication principle, and extract all indicators that affect the application protocol. Taking HTTP as an example, it includes the following:

[0061] HTTP request method, HTTP request URI, HTTP request path, HTTP request parameter name, HTTP request parameter value format, HTTP host, HTTP request version number, HTTP response version number, HTTP response code, HTTP response phrase, HTTP response content-length, HTTP response content-type, HTTP response server, HTTP response delay, etc.

[0062] Any field that may affect the normal communication of the HTTP protocol will be considered a security factor.

[0063] Preferably, the communication element modeling in step S2 is a tree structure, with the session as the first level, the link layer, network layer, transport layer, and application layer as the second level, the network layer including the overlay layer and the underlay layer as the third level, the request response flow under the application layer as the third level, and the application layer protocol as the fourth level under the request response flow.

[0064] The leaf node of the tree structure is the smallest single communication model, which stores model-related data. Different data requires different modeling methods, including the following models: whitelist, semantic model, string format model, and clustering model.

[0065] Preferably, the step S3 determines whether the session flow and the request response flow are normal and includes the following requirements:

[0066] S31. Determine that all request response codes are within the range of 300>2XX≥200, and there are no other response codes;

[0067] S32. There is no string matching the request failure dictionary in the response stream, such as request intercepted, fail, Fail, failure, error, Error, error, err, Bad Request, Not Found, Internal, Server Error, Invalid, Denied, Unsuccessful, Bad, False, Wrong, Unauthorized, Incomplete, Unverified, Unfulfilled, Unconfirmed, Rejected, Declined, and Unprocessed.

[0068] The request-response flow is a normal request-response flow if the current request meets at least one of the above two requirements; the session flow requires that all request responses in the current session meet the above two requirements to be a normal session flow. If one of them is not met, it is an abnormal session flow.

[0069] Preferably, the method for finding a communication model match and outputting a fault cause comprises the following sub-steps:

[0070] S41, searching for a matching model based on five-tuple information: source IP, source port, transport layer protocol, destination IP, and destination port;

[0071] S42. After matching the model, based on the extracted protocol metadata, communication elements, and network indicators of the session flow and request and response flow, a comparative analysis is performed item by item based on the link layer, network layer, transport layer, and application layer, respectively, to find out subtle changes through comparison and judge the occurrence of faults in advance;

[0072] S43. In order to further confirm whether the changes are normal and reduce unnecessary false positives, the request-response flow can be fine-grainedly labeled for the subtle changes found during matching. The source IP protocol is used as the dimension, the request response is used as the unit, and the number of different labels and the number of request-response flows are aggregated at different time granularities. By comparing the horizontal indicators of the same source IP and the same protocol, anomalies can be found. For example, if the number of labels is different from the number of request-response flows or the difference is large, this label is a minority of traffic and is likely to be abnormal. In addition, a horizontal comparison of indicators of the same protocol from the source IP within the IP segment (such as a 24-bit mask) to the same target IP address can be achieved. Compare successful requests with successful requests to find potential hidden dangers; compare failed requests with successful requests to find specific problem points.

[0073] Output possible fault causes or troubleshooting directions based on the matching results. Different labels or different changes may correspond to different fault causes. For example, other source IPs access the same destination IP and the same protocol normally, but only the current source IP access is abnormal. After model matching, it is found that only the source IP is different, and the others are the same. The cause of the fault may be due to packet filtering policies or other security policies. The fault causes corresponding to different labels or different changes can be realized through the built-in knowledge base.

[0074] Preferably, the fault cause analysis based on the built-in knowledge base includes the following sub-processes:

[0075] Based on the path information to be checked entered by the user, starting from the current time, the network performance indicators are compared in pairs with hourly granularity to find the time range (1 hour) A where the critical point of the failure occurs. Then, the time range (1 minute) B where the critical point of the failure occurs is compared in pairs with minute-level slices.

[0076] Within the time range where the complete failure occurs (not B, because B contains critical points and there may be a certain period of time when there is no failure), after selecting B, for the failure time within the range of A, 1-minute network performance indicator slices are selected according to the protocol, and compared with the 1-minute network performance indicator slices selected according to the protocol within the non-failure time range before B to analyze whether the protocol is abnormal and the cause of the abnormality.

[0077] When selecting slices, you must select complete session flow slices with the same source IP, destination port, destination IP, and protocol. To ensure that the session flow is complete, the session flow within the 1-minute time boundary can be discarded or completed. That is, the actual slice may be longer or shorter than 1 minute.

[0078] After obtaining the exception, you can analyze the specific cause of the fault according to the built-in fault analysis script.

[0079] The generation of troubleshooting tasks based on fault causes is based on the built-in troubleshooting task knowledge base. The knowledge base is organized according to protocol dimensions and fault causes. Different fault causes of different protocols correspond to different troubleshooting tasks. The examples are as follows:

[0080] Table 1 Different troubleshooting tasks corresponding to different fault causes of different protocols

[0081]

[0082] Generate troubleshooting tasks based on the troubleshooting task knowledge base, and send the troubleshooting tasks to the troubleshooting software and troubleshooting equipment at the same time. Both of them perform troubleshooting tasks from themselves as the starting point, so as to verify and compare and analyze from different starting points.

[0083] Preferably, the troubleshooting task execution process and the fault root cause analysis process are as follows:

[0084] Conduct special analysis on troubleshooting messages and make the following requirements for troubleshooting messages sent by troubleshooting tasks:

[0085] ①Message selection requirements:

[0086] The 1-minute network indicator slice within the fault time is used to extract the real and complete session flow and request response flow based on the protocol and message index, and then it is handed over to the troubleshooting software and network troubleshooting equipment. Both of them modify the message according to the following message settings and send it for verification according to the original real IP.

[0087] ②Message setting requirements:

[0088] If it is troubleshooting software: modify the 2-bit reserved field of DSCP and set it to 1. This field is not used for other purposes and the modification has no effect.

[0089] If it is a troubleshooting device: modify the 2-bit reserved field of DSCP and set it to 2. This field is not used for other purposes and the modification has no effect.

[0090] Through the above settings, the troubleshooting device can easily distinguish whether it is a troubleshooting message, a troubleshooting message sent by the troubleshooting software, or a troubleshooting message sent by the troubleshooting device. This helps the troubleshooting device to specifically analyze the troubleshooting message indicators of the troubleshooting software and the troubleshooting message indicators of the troubleshooting device:

[0091] ① The troubleshooting software generates troubleshooting indicators based on the troubleshooting tasks, such as the number of requests sent, the number of responses, and the request-response delay. The troubleshooting equipment generates troubleshooting indicators based on the messages and response messages sent by the troubleshooting software, such as the number of requests received, the number of responses received, and the request-response delay. The indicators of the two are then integrated into one.

[0092] ② The troubleshooting equipment generates troubleshooting indicators based on the troubleshooting tasks, such as the number of requests sent, the number of responses, the request response delay, etc.

[0093] ③ Compare and analyze the troubleshooting indicators of the integrated troubleshooting software and the troubleshooting indicators of the troubleshooting equipment to find the fault location area and fault cause.

[0094] Example 2

[0095] A device for automatic troubleshooting of network faults, the device comprising troubleshooting software and troubleshooting equipment, wherein:

[0096] Troubleshooting software, installed on the PC and server, is mainly used to receive troubleshooting tasks issued by troubleshooting equipment to perform troubleshooting and feedback troubleshooting results;

[0097] Troubleshooting devices are deployed in bypass mode on the network. Port mirroring can be configured on the bypass device to mirror traffic to the troubleshooting device. They are mainly used for:

[0098] ① It is used to receive and parse protocol metadata, communication elements and traffic indicators, and supports the storage of all traffic indicators in the form of sessions and flows;

[0099] ② Establish a traffic analysis model based on protocol metadata, communication elements and traffic indicators, and monitor traffic in real time based on the traffic analysis model to detect network failures in a timely manner;

[0100] ③ Based on the troubleshooting information input by the operation and maintenance personnel, the network faults are automatically troubleshooted based on the built-in knowledge, experience and scripts, including indicator analysis, indicator comparison, data packet analysis, etc.;

[0101] ④Perform troubleshooting tasks;

[0102] ⑤ Based on built-in knowledge, experience and scripts, automatically troubleshoot and analyze active dial-up test messages and output troubleshooting results.

[0103] like Figure 2 As shown, the troubleshooting device is bypassed on a single device and is used for flow analysis on a single device; Figure 3 For troubleshooting devices that are bypassed on multiple devices, it can support traffic analysis on multiple devices, and can perform comparative analysis on the traffic of multiple devices, including data packet comparison analysis, session flow comparison analysis, and network indicator comparison analysis.

[0104] Although the present invention has been described in detail by referring to the accompanying drawings and in combination with the preferred embodiments, the present invention is not limited thereto. Without departing from the spirit and essence of the present invention, a person of ordinary skill in the art may make various equivalent modifications or substitutions to the embodiments of the present invention, and these modifications or substitutions shall be within the scope of the present invention. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, and all of these shall be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.

Claims

1. A method for automatic troubleshooting of network faults, characterized in that: The method comprises the following steps: S1, communication element extraction; S2, communication element modeling; S3, determine whether the session flow and request response flow are normal; S4, find the communication model matching method and output the fault cause; S5. Analyze the cause of the failure based on the built-in knowledge base; S6. Generate troubleshooting tasks based on the cause of the fault; S7. Troubleshooting task execution process and fault root cause analysis process.

2. The method for automatic troubleshooting of network faults according to claim 1, characterized in that: The communication elements in step S1 include: link layer communication elements, network layer communication elements, network layer communication elements, transport layer protocol communication elements, and application layer protocol communication elements.

3. The method for automatic troubleshooting of network faults according to claim 1, characterized in that: The modeling process in step S2 includes the following sub-steps: S21,session as the first level; S22, link layer, network layer, transport layer, and application layer are the second level; S23, the network layer includes the overlay layer and underlay layer, and the request response flow under the application layer as the third layer; S24, the application layer protocol under the request response flow is used as the fourth layer.

4. The method for automatic troubleshooting of network faults according to claim 1, characterized in that: The step S3 determines that the session flow and the request response flow are normal and includes the following requirements: S31. Determine that all request response codes are within the range of 300>2XX≥200, and there is no other response code; S32. There is no string in the response stream that matches the request failure dictionary.

5. The method for automatic troubleshooting of network faults according to claim 4, characterized in that: The request-response flow is a normal request-response flow if the current request meets at least one of the two requirements S31 and S32; the session flow requires that all request-response flows in the current session meet the two requirements S31 and S32 to be a normal session flow. If one of them is not met, it is an abnormal session flow.

6. The method for automatic troubleshooting of network faults according to claim 1, characterized in that: The step S4 includes the following sub-steps: S41, searching for a matching model based on five-tuple information: source IP, source port, transport layer protocol, destination IP, and destination port; S42. After matching the model, based on the extracted protocol metadata, communication elements, and network indicators of the session flow and request and response flow, a comparative analysis is performed item by item based on the link layer, network layer, transport layer, and application layer, respectively, to find out subtle changes through comparison and judge the occurrence of faults in advance; S43. Label the request-response flow with fine-grained labels for subtle changes, with the source IP protocol as the dimension and the request-response as the unit. Aggregate the number of different labels and the number of request-response flows at different time granularities, and discover anomalies by comparing horizontal indicators with the same source IP and the same protocol.

7. The method for automatic troubleshooting of network faults according to claim 1, characterized in that: The step S5 includes the following sub-steps: S51, based on the path information to be checked input by the user, starting from the current time, the network performance indicators are sliced ​​forward in pairs with the granularity of hours to find the time range where the critical point of the failure occurs; S52, slice by slice with a granularity of minutes and compare them two by two to find the time range where the critical point of the failure occurs.

8. The method for automatic troubleshooting of network faults according to claim 1, characterized in that: The step S6 is based on a built-in troubleshooting task knowledge base, which is organized according to protocol dimensions and fault causes. Different fault causes of different protocols correspond to different troubleshooting tasks.

9. A device for automatic troubleshooting of network faults, using the method for automatic troubleshooting of network faults as claimed in any one of claims 1 to 8, characterized in that: The device includes troubleshooting equipment and troubleshooting software, wherein: The troubleshooting device is deployed in bypass mode in the troubleshooting network and is used to configure port mirroring on the bypassed device to mirror traffic to the troubleshooting device. Troubleshooting software, installed on the PC and server, is used to receive troubleshooting tasks sent by troubleshooting equipment to perform troubleshooting and feedback troubleshooting results.