Router fault detection method and system

Through the intelligent router fault detection method, the comparison and analysis of performance data and normal working models are used, combined with the preset fault diagnosis algorithm, the rapid and accurate fault identification and processing are achieved, and the problems of inefficiency and low accuracy in the existing technology are solved, and network stability and security are improved.

CN119544476APending Publication Date: 2025-02-28天津华信惠悦科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411751387.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-02
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

The existing router fault detection methods rely on manual monitoring and diagnosis, are inefficient and have low accuracy, and cannot detect and locate router faults in a timely and accurate manner.

Method used

Through intelligent detection methods, the router's performance data is collected, the normal working model is established, the performance data is monitored in real time and compared with the model, the fault detection mechanism is triggered, and the preset fault diagnosis algorithm is used for fault location and processing.

Benefits of technology

It realizes the rapid and accurate identification of router failures, improves the stability and security of network connections, reduces maintenance costs, and extends the service life of the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 1FUVDU5EAQOK2VE7NIKMHRHGGGFBNGFJBRCIZNXF
    Figure 1FUVDU5EAQOK2VE7NIKMHRHGGGFBNGFJBRCIZNXF
  • Figure SYA9VRSZVJCOG6DJZJNNXL4YKN3GSQLC91FZRXSH
    Figure SYA9VRSZVJCOG6DJZJNNXL4YKN3GSQLC91FZRXSH
Patent Text Reader

Abstract

The invention relates to the technical field of router fault detection, and discloses a router fault detection method and system, and the method comprises the steps: 1, collecting the performance data of a router, and determining the types of router performance data needing to be collected, including but not limited to the CPU utilization rate, the memory utilization rate, the interface flow, the packet loss rate and the like; 2, establishing a normal working model of the router according to the collected performance data; 3, monitoring performance data of the router in real time, and comparing the performance data with a normal working model for analysis; and 4, when the performance data deviates from the normal working model, triggering a fault detection mechanism, comparing the data through analysis, processing and comparison, and performing comparative analysis on the data and the normal working model, so that the abnormal state of the router can be quickly found, the timeliness of fault detection is improved, and the fault detection efficiency is improved through an automatic repair function and a user feedback mechanism. The system can reduce the maintenance cost of the router and prolong the service life of equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of router fault detection, and more specifically to a router fault detection method and system. Background Art

[0002] A router is a hardware device that connects two or more networks. It acts as a gateway between networks and is a dedicated intelligent network device that reads the address in each data packet and then decides how to transmit it. It can understand different protocols, such as the Ethernet protocol used by a local area network and the TCP / IP protocol used by the Internet. In this way, the router can analyze the destination address of data packets from various types of networks, convert the address of non-TCP / IP networks into TCP / IP addresses, or vice versa; and then transmit each data packet to the designated location along the best route based on the selected routing algorithm. Therefore, a router can connect non-TCP / IP networks to the Internet.

[0003] A core router, also known as a "backbone router," is a router located at the center of a network. A router located at the edge of a network is called an access router. Core routers and edge routers are relative concepts. They are both routers, but they have different sizes and capacities. A core router at one layer is an edge router at another layer. [1] A core router is a router that forwards packets to computer hosts within a network (but not between networks). In the Internet, a core router is located at the core of the network and is mainly used for data packet routing and forwarding. It is generally a router with a large throughput.

[0004] Deficiencies of the existing technology: With the rapid development of Internet technology, routers are key devices in network communications, and their stability and reliability are crucial to the operation of the entire network. Router failures may cause network interruption or performance degradation. Therefore, timely and accurate detection and location of router failures are of great significance to ensuring the stable operation of the network. Existing fault detection methods usually rely on manual monitoring and diagnosis, which are inefficient and inaccurate. Therefore, it is necessary to provide a router fault detection method and system to solve the above problems. Summary of the invention

[0005] In order to overcome the above-mentioned defects of the prior art, the present invention provides a router fault detection method and system, which aims to quickly and accurately identify and solve router faults through intelligent detection means, improve the stability and security of network connections, and solve the problems existing in the above-mentioned background technology.

[0006] The present invention provides the following technical solution: a fault detection method and system for a router, comprising the following steps: step 1: collecting performance data of the router, clarifying the type of router performance data that needs to be collected, including but not limited to CPU usage, memory usage, interface traffic, packet loss rate, etc.; Step 2: Establish a normal working model of the router based on the collected performance data; Step 3: Monitor the performance data of the router in real time and compare and analyze it with the normal working model; Step 4: When the performance data deviates from the normal working model, the fault detection mechanism is triggered; Step 5: Based on the deviation of the performance data, the preset fault diagnosis algorithm is used to locate the fault; Step 6: Output fault detection results and provide fault handling suggestions; Preferably, the step 2 of establishing the normal working model of the router includes collecting performance data of the router under normal working conditions, and the collection method adopts statistical analysis methods, such as principal component analysis (PCA), support vector machine (SVM), etc., to establish the normal working model.

[0007] Preferably, the fault detection mechanism of step four includes: setting a threshold value of performance data, if the performance data exceeds the threshold value, it is considered that the router may have a fault; using machine learning algorithms, random forests, neural networks, to predict and classify faults.

[0008] Preferably, the fault location step of step five selects a corresponding fault diagnosis algorithm, such as rule-based diagnosis, model-based diagnosis, etc., according to the fault type, analyzes the fault characteristics, and determines the cause and location of the fault.

[0009] Preferably, the router port fault diagnosis uses the command showinterfaceethernet0 (diagnosis for Ethernet port 0), which is used to check the status of a link. If the display is normal, continue to check the connection fault.

[0010] Preferably, when a physical obstacle is suspected to occur at the router port, it is determined whether the line is interrupted, whether the indicator light is abnormal, whether the faulty link can automatically negotiate with the normal link to a normal link rate, and / or whether the faulty link can perform a throughput test with the normal radio frequency link to test whether the data level is normal.

[0011] Preferably, the router fault check, when executed by the processor, implements the steps of any of the fault diagnosis methods described above.

[0012] Preferably, the fault detection system of the router includes a data collection module, a model building module, a monitoring and analysis module, a fault detection module, a fault diagnosis module, and a result output module.

[0013] Preferably, the data collection module is used to collect performance data of the router, the model building module is used to build a normal working model of the router, and the monitoring and analysis module is used to monitor the performance data of the router in real time and compare and analyze it with the normal working model.

[0014] Preferably, the fault detection module is used to trigger the fault detection mechanism when the performance data deviates from the normal working model; the fault diagnosis module is used to locate the fault using a preset fault diagnosis algorithm according to the deviation of the performance data; and the result output module is used to output the fault detection results and provide fault handling suggestions.

[0015] Technical effects and advantages of the present invention: The present invention monitors the performance data of the router in real time, analyzes and compares the data, and compares and analyzes the data with the normal working model, so as to quickly discover the abnormal state of the router, which is beneficial to improving the timeliness of fault detection. Through the automatic repair function and user feedback mechanism, the system can reduce the maintenance cost of the router and extend the service life of the equipment.

[0016] The present invention can accurately identify the cause and location of the fault by adopting a preset fault diagnosis algorithm to locate the fault. Through intelligent detection means, the system can quickly and accurately identify router faults, reduce the time for users to troubleshoot the faults, and help improve the accuracy of fault handling.

[0017] The present invention has a high degree of automation through the fault detection method and system. The optimization suggestions and solutions provided by the system are helpful to improve the stability and security of network connections and improve the user's network experience. The detection method is simple, reduces manual intervention, reduces detection costs, and is conducive to improving the efficiency of fault detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 This is a flow chart of a router fault diagnosis method provided in Embodiment 1 of the present invention.

[0019] Figure 2 A schematic diagram of a fault diagnosis system flow chart provided in Embodiment 1 of the present invention. DETAILED DESCRIPTION

[0020] The following will be combined with the accompanying drawings in the present invention to clearly and completely describe the technical solutions in the present invention. In addition, the forms of the various structures recorded in the following implementations are only examples. The fault detection method and system of the router involved in the present invention are not limited to the various structures recorded in the following implementations. All other implementations obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention. Example 1: The present invention provides a fault detection method for a router, comprising the following steps, characterized in that: step 1: collecting performance data of the router, clarifying the type of router performance data that needs to be collected, including but not limited to CPU usage, memory usage, interface traffic, packet loss rate, etc.; Step 2: Establish a normal working model of the router based on the collected performance data; Step 3: Monitor the performance data of the router in real time and compare and analyze it with the normal working model; Step 4: When the performance data deviates from the normal working model, the fault detection mechanism is triggered; Step 5: Based on the deviation of the performance data, the preset fault diagnosis algorithm is used to locate the fault; Step 6: Output fault detection results and provide troubleshooting suggestions The fault detection mechanism of step 4 includes: setting a threshold for performance data. If the performance data exceeds the threshold, it is considered that the router may have a fault; using machine learning algorithms, random forests, and neural networks to predict and classify faults.

[0021] The fault location step in step five selects the corresponding fault diagnosis algorithm according to the fault type, such as rule-based diagnosis, model-based diagnosis, etc., analyzes the fault characteristics, and determines the cause and location of the fault.

[0022] The router port fault diagnosis uses the showinterfaceethernet0 command (for Ethernet port 0 diagnosis), which is used to check the status of a link. If it is normal, continue to check the connection fault. When a physical obstacle is suspected to occur at the router port, determine whether the line is interrupted, check whether the indicator light is abnormal, whether the faulty link can automatically negotiate with the normal link rate, and / or whether the faulty link can perform throughput test with the normal radio frequency link, and whether the test data level is normal. Embodiment 2: The invention provides a fault detection system for a router: the fault detection system for a router includes a data collection module, a model building module, a monitoring and analysis module, a fault detection module, a fault diagnosis module, and a result output module. The data collection module is used to collect the performance data of the router, the model building module is used to establish a normal working model of the router, the monitoring and analysis module is used to monitor the performance data of the router in real time and compare and analyze it with the normal working model, the fault detection module is used to trigger the fault detection mechanism when the performance data deviates from the normal working model, the fault diagnosis module is used to locate the fault using a preset fault diagnosis algorithm according to the deviation of the performance data, and the result output module is used to output the fault detection result and provide fault handling suggestions.

[0023] The specific method of router fault detection of the present invention is: The specific steps are as follows: Step 1: Collect the router's performance data through the data collection module, including CPU usage, memory usage, interface traffic, packet loss rate, etc.

[0024] Step 2: Collect the performance data of the router under normal working conditions through the model building module, and use the principal component analysis (PCA) method to build a normal working model.

[0025] Step 3: Use the monitoring and analysis module to monitor the performance data of the router in real time and compare and analyze it with the normal working model.

[0026] Step 4: When the performance data exceeds the preset threshold, the monitoring and analysis module triggers the fault detection module.

[0027] Step 5: The fault detection module uses the random forest algorithm to predict and classify faults based on the deviation of the performance data.

[0028] Step 6: The fault diagnosis module selects the corresponding fault diagnosis algorithm according to the fault type, such as rule-based diagnosis, analyzes the fault characteristics, and determines the cause and location of the fault.

[0029] Step 7: The result output module outputs the fault detection results and provides fault handling suggestions; The specific system flow of the router fault detection of the present invention is as follows: This embodiment provides a fault detection system for a router, including: A data collection module, used to collect performance data of the router; A model building module is used to build a normal working model of the router; Monitoring and analysis module, used to monitor the performance data of the router in real time and compare and analyze it with the normal working model; A fault detection module is used to trigger the fault detection mechanism when the performance data deviates from the normal working model; A fault diagnosis module is used to locate faults using a preset fault diagnosis algorithm according to deviations in performance data; The result output module is used to output fault detection results and provide fault handling suggestions.

[0030] Finally, a few points should be explained: First, in the description of this application, it should be noted that, unless otherwise specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, which may refer to mechanical connection or electrical connection, or internal communication between two components, or direct connection. "upper", "lower", "left", "right", etc. are only used to indicate relative positional relationships. When the absolute position of the object being described changes, the relative positional relationship may change; Secondly: In the drawings of the embodiments disclosed in the present invention, only the structures related to the embodiments disclosed in the present invention are involved, and other structures can refer to the general design. In the absence of conflict, the same embodiment and different embodiments of the present invention can be combined with each other; Finally: The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for detecting a fault of a router, comprising the following steps, characterized in that: Step 1: Collect router performance data and specify the type of router performance data that needs to be collected, including but not limited to CPU usage, memory usage, interface traffic, packet loss rate, etc. Step 2: Establish a normal working model of the router based on the collected performance data; Step 3: Monitor the performance data of the router in real time and compare and analyze it with the normal working model; Step 4: When the performance data deviates from the normal working model, the fault detection mechanism is triggered; Step 5: Based on the deviation of the performance data, the preset fault diagnosis algorithm is used to locate the fault; Step 6: Output fault detection results and provide fault handling suggestions.

2. A router fault detection method according to claim 1, characterized in that: The step 2 of establishing a normal working model of the router includes collecting performance data of the router under normal working conditions. The collection method adopts statistical analysis methods, such as principal component analysis (PCA), support vector machine (SVM), etc., to establish a normal working model.

3. A method for detecting a fault in a router according to claim 1, characterized in that: The fault detection mechanism of step 4 includes: setting a threshold of performance data, and if the performance data exceeds the threshold, it is considered that the router may have a fault; using machine learning algorithms, random forests, and neural networks to predict and classify faults.

4. A method for detecting a fault in a router according to claim 1, characterized in that: The fault location step of step five selects a corresponding fault diagnosis algorithm, such as rule-based diagnosis, model-based diagnosis, etc., according to the fault type, analyzes the fault characteristics, and determines the cause and location of the fault.

5. The method for detecting a fault of a router according to claim 1, characterized in that: The router port fault diagnosis uses the command showinterfaceethernet0 (diagnosis for Ethernet port 0), which is used to check the status of a link. If the display is normal, continue to check the connection fault.

6. A method for detecting a fault in a router according to claim 1, characterized in that: When a physical obstacle is suspected at the router port, determine whether the line is interrupted, check whether the indicator light is abnormal, whether the faulty link can automatically negotiate with the normal link to a normal link rate, and / or whether the faulty link can perform throughput testing with the normal RF link to test whether the data level is normal.

7. A method for detecting a fault of a router, wherein: When the router fault check is executed by the processor, the steps of the fault diagnosis method according to any one of claims 1 to 6 are implemented.

8. A fault detection system for a router, characterized in that: The fault detection system of the router comprises a data collection module, a model building module, a monitoring and analysis module, a fault detection module, a fault diagnosis module and a result output module.

9. A router fault detection system according to claim 8, characterized in that: The data collection module is used to collect the performance data of the router, the model building module is used to build a normal working model of the router, and the monitoring and analysis module is used to monitor the performance data of the router in real time and compare and analyze it with the normal working model.

10. A router fault detection system according to claim 8, characterized in that: The fault detection module is used to trigger the fault detection mechanism when the performance data deviates from the normal working model. The fault diagnosis module is used to locate the fault using a preset fault diagnosis algorithm according to the deviation of the performance data. The result output module is used to output the fault detection results and provide fault handling suggestions.