A network fault diagnosis method, device, medium and network equipment

By recording packet processing results in the service module of the network equipment and providing packet loss handling suggestions, the problem of low fault diagnosis efficiency in the prior art is solved, the fault location efficiency is improved and the work complexity of operation and maintenance personnel is reduced.

CN115484142BActive Publication Date: 2024-12-06ZHEJIANG UNIVIEW TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110661002.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-15
Publication Date
2024-12-06
Estimated Expiration
2041-06-15

AI Technical Summary

Technical Problem

The existing technology lacks clear fault analysis and processing strategies in network equipment fault diagnosis, resulting in low fault positioning efficiency, especially unfriendly to novice operation and maintenance personnel, and requires a large number of manual subjective factors.

Method used

By presetting trace points to record information in the service module of the network device, recording the packet processing results, if packet loss is lost, the packet loss trace points will be recorded and handling suggestions are provided according to the reasons, and the diagnostic process is optimized.

Benefits of technology

It improves the efficiency of network fault diagnosis, provides tracking results with handling suggestions, reduces the work threshold for operation and maintenance personnel, and reduces the complexity of manual diagnosis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115484142B_ABST
    Figure CN115484142B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a method, device, medium and network equipment for diagnosing network faults. The method includes: inputting a message into a business module of a network device for the business module to process the message; wherein the business module is preset with tracing point recording information for tracing the message based on the business processing flow; if the processing result of the message by the business module is packet loss, the packet loss tracing point is recorded, and the packet loss handling suggestion is determined according to the packet loss cause; and the network device is subjected to business diagnosis according to the recorded packet loss tracing point and packet loss handling suggestion. The present technical solution can record the message processing results for the key tracing points that need to be monitored in advance, and provide packet loss handling suggestions at the same time, and can save the message that triggers the business anomaly. Such a design can provide tracking results with handling suggestions for the staff, and can optimize the diagnostic efficiency after the network failure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of Internet technology, and in particular, to a method, apparatus, medium and network equipment for diagnosing network failures. Background Art

[0002] With the rapid development of science and technology, the types and number of network devices are also increasing rapidly. Routers, switches, firewalls, etc. play an important role in the transmission of network data. However, sometimes, network devices may cause frequent packet loss due to configuration problems or the influence of numerous functional modules. At present, some security management vendors have begun to develop solutions for packet loss analysis based on message traffic statistics and packet capture results. However, these methods can only conduct exploratory troubleshooting and roughly determine the fault point, and there is no clear fault analysis and processing strategy. At the same time, for maintenance personnel, a certain amount of experience is required to identify the fault point, which is not friendly to new operation and maintenance personnel. This results in a range of investigations, but it still requires a certain amount of human subjective factors to complete, resulting in low efficiency in fault location and high requirements for human experience. Summary of the invention

[0003] The embodiments of the present application provide a method, apparatus, medium and network equipment for diagnosing network faults. The methods can record the message processing results for key tracing points that need to be monitored in advance and provide suggestions for handling packet loss. The methods can provide tracking results with handling suggestions for staff, thereby optimizing the diagnostic efficiency after a network fault.

[0004] In a first aspect, an embodiment of the present application provides a method for diagnosing a network fault, the method being executed by a network device that performs message processing, the method comprising:

[0005] Inputting the message into the service module of the network device for the service module to process the message; wherein the service module is preset with tracing point record information for tracing the message based on the service processing flow;

[0006] If the result of the processing of the message by the reading service module is packet loss, the packet loss tracing point is recorded, and a packet loss handling suggestion is determined according to the cause of the packet loss;

[0007] Perform business diagnosis on network equipment based on the recorded packet loss trace points and packet loss handling suggestions.

[0008] Furthermore, if the result of the processing of the message by the reading service module is packet loss, the packet loss tracing point is recorded, including:

[0009] If the result of the processing of the message by the reading service module is packet loss, the tracing point information stamp maintained in the service module is filled in as the first keyword.

[0010] Furthermore, the method further comprises:

[0011] If the result of the processing of the message by the reading service module is passed, the tracing point information stamp maintained in the service module is filled in as the second keyword.

[0012] Furthermore, the packet loss handling suggestions include:

[0013] The current packet loss is the result of normal packet loss processing;

[0014] or,

[0015] The current packet loss is caused by configuration information errors;

[0016] Accordingly, based on the recorded packet loss trace points and packet loss handling suggestions, the network equipment is diagnosed, including:

[0017] If it is a packet loss tracing point and the packet loss handling suggestion is a normal packet loss handling result, no service diagnosis is performed;

[0018] If it is a packet loss tracing point, and the packet loss handling suggestion is that the packet loss is caused by configuration information error, the configuration information of the business module is repaired.

[0019] Furthermore, if it is a packet loss tracing point, and the packet loss handling suggestion is that the packet loss is caused by configuration information error, the method further includes:

[0020] Save the message that triggers packet loss;

[0021] Accordingly, based on the recorded packet loss trace points and packet loss handling suggestions, the network equipment is diagnosed, including:

[0022] If it is a packet loss tracing point, and the packet loss handling suggestion is that the packet loss is caused by configuration information error, then according to the packet loss handling suggestion and the saved message triggering the packet loss, a service diagnosis is performed on the network device.

[0023] Furthermore, the message includes a constructed test message and a real message obtained from a service module of the network device during service processing.

[0024] Furthermore, if the message is a real message obtained from a service module of a network device during service processing, the real message that needs to be monitored is screened out through ACL configuration.

[0025] In a second aspect, an embodiment of the present application provides a network fault diagnosis device, the device being configured in a network device that performs message processing, the device comprising:

[0026] A message processing unit, used for inputting messages into a service module of a network device for processing the messages by the service module; wherein the service module is preset with tracing point record information for tracing messages based on a service processing flow;

[0027] A tracing point recording unit, configured to record the packet loss tracing point if the result of the processing of the message by the reading service module is packet loss, and determine a packet loss handling suggestion according to the packet loss cause;

[0028] The service diagnosis unit is used to perform service diagnosis on the network equipment according to the recorded packet loss tracing points and packet loss handling suggestions.

[0029] In a third aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the network fault diagnosis method as described in the embodiment of the present application.

[0030] In a fourth aspect, an embodiment of the present application provides a network device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the method for diagnosing a network fault as described in the embodiment of the present application is implemented.

[0031] The technical solution provided by the embodiment of the present application inputs the message into the business module of the network device for the business module to process the message; wherein the business module is preset with tracing point recording information for tracing the message based on the business processing flow; if the processing result of the message by the business module is packet loss, the packet loss tracing point is recorded, and the packet loss handling suggestion is determined according to the packet loss cause; the network device is diagnosed according to the recorded packet loss tracing point and packet loss handling suggestion. By implementing this solution, the message processing results can be recorded in advance for the key tracing points that need to be monitored, and packet loss handling suggestions can be provided at the same time, so that the tracking results with handling suggestions can be provided to the staff, and the diagnostic efficiency after the network failure can be optimized. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 is a flow chart of a method for diagnosing a network fault provided in Embodiment 1 of the present application;

[0033] Figure 2 A flowchart of a diagnostic method based on constructed messages provided in Embodiment 2 of the present invention;

[0034] Figure 3 A flowchart of a diagnostic method based on constructed messages provided in Embodiment 3 of the present invention;

[0035] Figure 4 A structural block diagram of a network fault diagnosis device provided in Embodiment 4 of the present invention;

[0036] Figure 5 It is a structural diagram of a network device provided in Example 6 of the present application. DETAILED DESCRIPTION

[0037] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.

[0038] It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe the steps as sequential processes, many of the steps therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the steps can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0039] Embodiment 1

[0040] Figure 1 It is a flowchart of the network fault diagnosis method provided in Example 1 of the present application. This embodiment is applicable to the case of packet loss diagnosis. The method can be executed by the network fault diagnosis device provided in the embodiment of the present application. The device can be implemented by software and / or hardware and can be integrated into the network equipment.

[0041] like Figure 1 As shown, the network fault diagnosis method includes:

[0042] S110, inputting the message into the service module of the network device for the service module to process the message; wherein the service module is preset with tracing point record information for tracing the message based on the service processing flow.

[0043] The method is performed by a network device that processes messages. The network devices here include but are not limited to routers, switches, firewalls, and video security access devices. It can be understood that any device that needs to be passed through during message transmission can be determined as a network device here.

[0044] In this solution, optionally, the message includes a constructed test message and a real message obtained from a service module of the network device during service processing.

[0045] The message here can be a self-constructed message, for example, the parameters of the message can be configured according to the test requirements, such as the configuration of the protocol type, source address, destination address, source port and destination port, etc. For example, when testing one or more service modules of a network device, by constructing a message and configuring the node through which the message passes to be the one or more modules being tested, the test efficiency can be improved, and the packet loss test can be completed before going online. In addition, the message here can also be the message processed by the network device during actual online use.

[0046] In this solution, the service module can be divided according to the service function or based on the service processing flow. Therefore, the service module is a module that is already supported in the network device. For each service module, the message trace point information of the message can be added according to its own service processing flow. Here, each service module can contain at least one trace point, and some modules may not contain trace points. The selection of the trace point can be determined according to the importance of the packet processing process of the message in the entire message transmission process.

[0047] The way in which the business module processes messages may include receiving, forwarding, and specific business processing. For example, the firewall needs to match the source address, destination address, source port, and destination port. If the match is successful, the message is prohibited from being transmitted.

[0048] In this solution, the trace point record information can be used to record whether the trace point has packet loss. For example, if it is processed normally, it can be recorded as normal, and if packet loss occurs, it can be recorded as packet loss. Therefore, through such records, it can be realized to identify whether the message of each trace point is lost.

[0049] S120: If the result of the processing of the message by the reading service module is packet loss, the packet loss tracing point is recorded, and a packet loss handling suggestion is determined according to the cause of the packet loss.

[0050] When it is read that the processing result of the business module for the current message is packet loss, the packet loss trace point is recorded. Here, it can be an internal record, for example, a table is maintained inside the business module, in which the message and the parameters of the message, as well as the final processing result are recorded. In addition, external maintenance can also be performed, that is, if packet loss occurs, the relevant information is sent to the external diagnostic module, and the diagnostic device is informed of the message number, the parameters of the message, the processing result and the current trace point number at the same time.

[0051] In this solution, it is also possible to determine the packet loss handling suggestions based on the packet loss cause. Among them, the major directions can be divided into two categories, one is normal packet loss, for example, the message does not meet the actual packet sending requirements, such as hitting the blacklist, etc.; the other is abnormal packet loss, for example, due to problems with the configuration information of the business module, the message cannot be sent normally in the current business module, etc. It can be understood that for normal packet loss, the packet loss handling suggestion can be determined as normal discard based on the packet loss cause, and no consideration is required. Therefore, for normal packet loss, the information on packet loss handling suggestions may not be generated. For abnormal packet loss, this information needs to be generated. For example, if it is identified that the parameters of the message are incomplete and it is an abnormal message, or there are no clear routing parameters in the configuration of the business module, resulting in the message being unable to be transmitted, then the corresponding handling suggestions can be generated.

[0052] In this solution, optionally, if the result of processing the message by the reading service module is packet loss, recording the packet loss tracing point includes:

[0053] If the result of the processing of the message by the reading service module is packet loss, the tracing point information stamp maintained in the service module is filled in as the first keyword.

[0054] For example, a trace point information stamp can be maintained, and when a message is lost, a "Fail" can be filled in the keyword. Through such a setting, the processing result of the message can be quickly determined based on the recording result.

[0055] Furthermore, optionally, the method further includes:

[0056] If the result of the processing of the message by the reading service module is passed, the tracing point information stamp maintained in the service module is filled in as the second keyword.

[0057] Among them, a trace point information stamp can be maintained, and when the message is processed normally, a "Pass" can be filled in the keyword. Through such a setting, the processing result of the message can be quickly determined based on the recording result.

[0058] By comparing the above two solutions, it is possible to clearly determine the processing status of each message in the current business module of the current network device, and at the same time, this solution can be used for each module in the current network device to obtain the record data of the message processing results. At the same time, after recording the relevant data, more information can be recorded for the lost message, such as message parameters, packet loss handling suggestions, and packet loss tracing point information.

[0059] S130: Performing service diagnosis on the network device according to the recorded packet loss tracing points and packet loss handling suggestions.

[0060] After confirming that packet loss has occurred, the recorded packet loss tracer points and packet loss handling suggestions can be analyzed. For example, if the packet loss tracer point is represented by the blacklist matching module of the firewall, the packet loss handling suggestion is to hit the blacklist of the firewall and perform packet loss handling. This means that the packet loss is normal. In addition, if the packet loss tracer point is the distribution module of the switch, the packet loss handling suggestion is that the target address for distribution is not clearly defined in the configuration information. In this case, the staff can be assisted to clarify that there is a problem with the configuration information of the distribution module of the switch, which needs to be handled.

[0061] In a feasible solution, optionally, the packet loss handling suggestion includes:

[0062] The current packet loss is the result of normal packet loss processing;

[0063] or,

[0064] The current packet loss is caused by configuration information errors;

[0065] Accordingly, based on the recorded packet loss trace points and packet loss handling suggestions, the network equipment is diagnosed, including:

[0066] If it is a packet loss tracing point and the packet loss handling suggestion is a normal packet loss handling result, no service diagnosis is performed;

[0067] If it is a packet loss tracing point, and the packet loss handling suggestion is that the packet loss is caused by configuration information error, the configuration information of the business module is repaired.

[0068] It is understandable that if the packet loss handling suggestion is a normal packet loss handling result, the process of business diagnosis may not be triggered, that is, this information can be obtained. If the packet loss handling suggestion is a packet loss caused by configuration information errors, it is necessary to diagnose the business module. Specifically, the configuration information of the business module can be repaired. The repair result can be maintained according to the target field calibrated in the packet loss handling suggestion, or the calibrated target configuration information. It is understandable that diagnostic equipment can be used for automatic maintenance, such as determining whether there are syntax errors in the code language. In addition, it is also possible to send alarm information for manual maintenance by staff. Regardless of the method used, this solution can clearly locate the target that needs to be analyzed, thereby improving the efficiency of packet loss diagnosis for staff, while lowering the work threshold for staff, which brings great convenience to the module writing, testing and subsequent maintenance of the staff's application.

[0069] In a feasible embodiment, optionally, if it is a packet loss tracing point, and the packet loss handling suggestion is packet loss caused by configuration information error, the method further includes:

[0070] Save the message that triggers packet loss;

[0071] Accordingly, based on the recorded packet loss trace points and packet loss handling suggestions, the network equipment is diagnosed, including:

[0072] If it is a packet loss tracing point, and the packet loss handling suggestion is that the packet loss is caused by configuration information error, then according to the packet loss handling suggestion and the saved message triggering the packet loss, a service diagnosis is performed on the network device.

[0073] In this solution, in addition to maintenance based on packet loss handling suggestions, the message corresponding to the packet loss event can also be saved. The message can be saved in correspondence with the recorded packet loss handling suggestions, so that the packet loss handling suggestions can be verified by re-transmitting the message. In addition to re-verification, the message can also be used to track the problem in detail, helping staff to more quickly analyze and locate the problem of packet loss.

[0074] The technical solution provided by the embodiment of the present application inputs the message into the business module of the network device for the business module to process the message; wherein the business module is preset with tracing point recording information for tracing the message based on the business processing flow; if the processing result of the message by the business module is packet loss, the packet loss tracing point is recorded, and the packet loss handling suggestion is determined according to the packet loss cause; the network device is diagnosed according to the recorded packet loss tracing point and packet loss handling suggestion. By implementing this solution, the message processing results can be recorded in advance for the key tracing points that need to be monitored, and packet loss handling suggestions can be provided at the same time, so that the tracking results with handling suggestions can be provided to the staff, and the diagnostic efficiency after the network failure can be optimized.

[0075] On the basis of the above technical solutions, optionally, if the message is a real message obtained from a service module of a network device during service processing, the real message that needs to be monitored is screened out through ACL configuration.

[0076] In this solution, the working principle of ACL (Access Control List) is that the network device configured with ACL can match the messages passing through the device according to the pre-set message matching rules, and then execute the pre-set processing actions on the matched messages. These matching rules and corresponding processing actions are set according to network requirements. It can be understood that the processing action set here can be to perform tracing processing on the successfully matched messages. ACL is divided into basic ACL and advanced ACL. Basic ACL can only define rules based on the source IP address, message fragmentation mark and time period information of the IP message. Advanced ACL can define rules based on the source address of the IP message, the destination address of the IP message, the value of the protocol field of the IP message, the value of the priority of the IP message, the length value of the IP message, the source port number of the TCP message, the destination port number of the TCP message, the source port number of the UDP message, the destination port number of the UDP message, and other information.

[0077] Embodiment 2

[0078] This embodiment is a preferred embodiment provided on the basis of the above embodiments. Figure 2 A flowchart of a diagnostic method based on constructed messages provided in Embodiment 2 of the present invention, such as Figure 2 As shown, the processing flow is as follows:

[0079] First, determine the key trace points of message processing in the message processing flow, and maintain the trace point information stamp. For the trace points of normal message processing, the trace point information stamp is filled with the keyword Pass. For the trace points of packet loss, the trace point information stamp is filled with the keyword Fail, and the packet loss handling suggestions are filled in. For normal packet loss, the packet loss handling suggestions give a prompt for normal packet loss. For packet loss caused by configuration, the packet loss handling suggestions give suggestions for configuration repair.

[0080] Secondly, it is necessary to clarify the parameter information of the message. Specifically, according to the message model to be diagnosed, the diagnostic parameters can be selected, including: message type, inbound interface, protocol type, source MAC address, destination MAC address, source IP address, destination IP address, source port, destination port and vlan id, among which the inbound interface, protocol type, source address, destination address, source port and destination port are mandatory parameters, and the others are optional parameters.

[0081] Then, you can enable the message tracing function and send the message to the message forwarding process. After sending the message to the message service processing interface, the service processing module processes and records the key tracing points. The tracing points of packet loss can be recorded as packet loss tracing points, and the message that triggers the fault is saved. Figure 2 Business processing module 1, business processing module 2, and finally business processing module N perform such operations.

[0082] Finally, after the message has gone through the process, or if it is lost, the problem diagnosis items found are investigated and handled according to the output diagnostic information. For normal business processes, the business processing process can be confirmed according to the message tracing information keyword Pass and the recorded key module processing output information; if the processing result of the business module is packet loss, the fault is handled according to the message tracing information keyword Fail and the recorded key tracing point packet loss information, as well as the packet loss handling suggestions. If it is normal packet loss, it will not be handled. If it is caused by configuration, the configuration will be repaired.

[0083] This solution can quickly improve the fault diagnosis capability of network security equipment after deployment by constructing a message tracing method, quickly modify the configuration to restore the fault, and complete the deployment of security equipment.

[0084] Embodiment 3

[0085] This embodiment is a preferred embodiment provided on the basis of the above embodiments. Figure 3 The flowchart of the diagnostic method based on constructed message provided in the third embodiment of the present invention is as follows: Figure 3 As shown, the specific steps are as follows:

[0086] First, determine the key trace points of message processing in the message processing flow and maintain the trace point information stamp. For the trace points of normal message processing, the trace point information stamp is filled with the keyword Pass. For the trace points of message packet loss, the trace point information stamp is filled with the keyword Fail and the packet loss handling suggestion. For normal packet loss, the packet loss handling suggestion gives a prompt for normal packet loss. For packet loss caused by configuration, the packet loss handling suggestion gives a configuration repair suggestion.

[0087] Secondly, configure the ACL according to the messages that need to be diagnosed, and reference the ACL to enable message tracing.

[0088] Then, you can enable the message tracing function and send the message to the message forwarding process. According to the applied ACL, the message matching the ACL is filtered out, and the key tracing points of the message processing are recorded. The tracing points of packet loss can be recorded as packet loss tracing points, and the message that triggers the fault can be saved. Figure 3 Business processing module 1, business processing module 2, and finally business processing module N perform such operations.

[0089] Finally, after the message has gone through the process, or if it is lost, the problem diagnosis items found are investigated and handled according to the output diagnostic information. For normal business processes, the business processing process can be confirmed according to the message tracing information keyword Pass and the recorded key module processing output information; if the processing result of the business module is packet loss, the fault is handled according to the message tracing information keyword Fail and the recorded key tracing point packet loss information, as well as the packet loss handling suggestions. If it is normal packet loss, it will not be handled. If it is caused by configuration, the configuration will be repaired.

[0090] This solution uses the real flow tracing method to quickly locate equipment failures in the existing network, eliminate and repair network failures caused by configuration, and prove that some failures are caused by business attributes.

[0091] Embodiment 4

[0092] Figure 4 This is a structural block diagram of a network fault diagnosis device provided in the fourth embodiment of the present invention. The device can execute the network fault diagnosis method provided in any embodiment of the present invention and has the corresponding functional modules and beneficial effects of the execution method. Figure 4 As shown, the device may include:

[0093] The message processing unit 410 is used to input the message into the service module of the network device for the service module to process the message; wherein the service module is preset with tracing point record information for tracing the message based on the service processing flow;

[0094] The trace point recording unit 420 is used to record the packet loss trace point if the processing result of the message by the reading service module is packet loss, and determine the packet loss handling suggestion according to the packet loss cause;

[0095] The service diagnosis unit 430 is used to perform service diagnosis on the network device according to the recorded packet loss tracing points and packet loss handling suggestions.

[0096] The above-mentioned product can execute the network fault diagnosis method provided in the embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method.

[0097] Embodiment 5

[0098] Embodiment 5 of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for diagnosing a network fault provided in all the embodiments of the present invention is implemented:

[0099] Inputting the message into the service module of the network device for the service module to process the message; wherein the service module is preset with tracing point record information for tracing the message based on the service processing flow;

[0100] If the result of the processing of the message by the reading service module is packet loss, the packet loss tracing point is recorded, and a packet loss handling suggestion is determined according to the cause of the packet loss;

[0101] Perform business diagnosis on network equipment based on the recorded packet loss trace points and packet loss handling suggestions.

[0102] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.

[0103] Computer-readable signal media may include a data signal propagated in baseband or as part of a carrier wave, which carries a computer-readable program code. Such propagated data signals may take a variety of forms, including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0104] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0105] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0106] Embodiment 6

[0107] Embodiment 6 of the present application provides a network device. Figure 5 This is a schematic diagram of the structure of a network device provided in Example 6 of the present application. Figure 5 As shown, this embodiment provides a network device 500, which includes: one or more processors 520; a storage device 510, which is used to store one or more programs. When the one or more programs are executed by the one or more processors 520, the one or more processors 520 implement the network fault diagnosis method provided in the embodiment of the present application. The method includes:

[0108] Inputting the message into the service module of the network device for the service module to process the message; wherein the service module is preset with tracing point record information for tracing the message based on the service processing flow;

[0109] If the result of the processing of the message by the reading service module is packet loss, the packet loss tracing point is recorded, and a packet loss handling suggestion is determined according to the cause of the packet loss;

[0110] Perform business diagnosis on network equipment based on the recorded packet loss trace points and packet loss handling suggestions.

[0111] Of course, those skilled in the art can understand that the processor 520 also implements the technical solution of the network fault diagnosis method provided in any embodiment of the present application.

[0112] Figure 5 The network device 500 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0113] like Figure 5As shown, the network device 500 includes a processor 520, a storage device 510, an input device 530, and an output device 540; the number of the processor 520 in the network device can be one or more. Figure 5 A processor 520 is taken as an example; the processor 520, the storage device 510, the input device 530 and the output device 540 in the network device can be connected via a bus or other means. Figure 5 The connection via bus 550 is taken as an example.

[0114] The storage device 510 is a computer-readable storage medium that can be used to store software programs, computer executable programs, and module units, such as program instructions corresponding to the network fault diagnosis method in the embodiment of the present application.

[0115] The storage device 510 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the storage device 510 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the storage device 510 may further include a memory remotely arranged relative to the processor 520, and these remote memories may be connected via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0116] The input device 530 may be used to receive input numbers, character information or voice information, and to generate key signal inputs related to user settings and function control of network devices. The output device 540 may include network devices such as display screens and speakers.

[0117] The network device provided in the embodiment of the present application can record the message processing results of the key tracing points that need to be monitored in advance and provide packet loss handling suggestions at the same time. It can provide tracking results with handling suggestions to the staff, and can optimize the diagnostic efficiency after network failure.

[0118] The network fault diagnosis device, medium and network equipment provided in the above embodiments can execute the network fault diagnosis method provided in any embodiment of the present application, and have the corresponding functional modules and beneficial effects of executing the method. For technical details not described in detail in the above embodiments, please refer to the network fault diagnosis method provided in any embodiment of the present application.

[0119] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for diagnosing network failures. It is characterized in that The method is executed by a network device that performs message processing, and the method includes: Input the message into the service module of the network device for the service module to process the message; wherein the service module is preset with tracing point record information for tracing the message based on the service processing flow; the tracing point record information includes a record of whether the message is lost at each tracing point in the service processing flow; If the result of the processing of the message by the reading service module is packet loss, the packet loss tracing point is recorded, and a packet loss handling suggestion is determined according to the cause of the packet loss; Perform business diagnosis on network equipment based on recorded packet loss trace points and packet loss handling suggestions; The reasons for packet loss include normal packet loss and abnormal packet loss; The packet loss handling suggestions include: The current packet loss is the result of normal packet loss processing, and a normal packet loss prompt is given; or, The current packet loss is caused by configuration information errors, and configuration repair suggestions are given; Accordingly, based on the recorded packet loss trace points and packet loss handling suggestions, the network equipment is diagnosed, including: If it is a packet loss tracing point and the packet loss handling suggestion is a normal packet loss handling result, no service diagnosis is performed; If it is a packet loss tracing point, and the packet loss handling suggestion is that the packet loss is caused by configuration information error, then the configuration information of the business module is repaired; If it is a packet loss tracing point, and the packet loss handling suggestion is that the packet loss is caused by configuration information errors, the message that triggers the packet loss is saved.

2. The method according to claim 1, It is characterized in that If the result of the processing of the message by the reading service module is packet loss, the packet loss tracing point is recorded, including: If the result of the processing of the message by the reading service module is packet loss, the tracing point information stamp maintained in the service module is filled in as the first keyword.

3. The method according to claim 2, It is characterized in that The method further comprises: If the result of the processing of the message by the reading service module is passed, the tracing point information stamp maintained in the service module is filled in as the second keyword.

4. The method according to claim 1, It is characterized in that Based on the recorded packet loss trace points and packet loss handling suggestions, perform service diagnosis on network devices, including: If it is a packet loss tracing point, and the packet loss handling suggestion is that the packet loss is caused by configuration information error, then according to the packet loss handling suggestion and the saved message triggering the packet loss, a service diagnosis is performed on the network device.

5. The method according to claim 1, It is characterized in that The message includes a constructed test message and a real message obtained from a service module of a network device during service processing.

6. The method according to claim 5, It is characterized in that If the message is a real message obtained from a service module of a network device during service processing, the real message that needs to be monitored is screened out through ACL configuration.

7. A network fault diagnosis device, It is characterized in that The device is configured on a network device that performs message processing, and the device includes: A message processing unit, used for inputting messages into a service module of a network device, so that the service module can process the messages; wherein the service module is preset with tracing point record information for tracing messages based on a service processing flow; the tracing point record information includes a record of whether the message is lost at each tracing point in the service processing flow; A tracing point recording unit, configured to record the packet loss tracing point if the result of the processing of the message by the reading service module is packet loss, and determine a packet loss handling suggestion according to the packet loss cause; The reasons for packet loss include normal packet loss and abnormal packet loss; The packet loss handling suggestions include: The current packet loss is the result of normal packet loss processing, and a normal packet loss prompt is given; or, The current packet loss is caused by configuration information errors, and configuration repair suggestions are given; A service diagnosis unit is used to perform service diagnosis on network equipment based on the recorded packet loss trace points and packet loss handling suggestions; Accordingly, the service diagnosis unit is specifically used for: If it is a packet loss tracing point and the packet loss handling suggestion is a normal packet loss handling result, no service diagnosis is performed; If it is a packet loss tracing point, and the packet loss handling suggestion is that the packet loss is caused by configuration information error, then the configuration information of the business module is repaired; The packet loss message storage unit is specifically used to: if it is a packet loss tracing point, and the packet loss handling suggestion is that the packet loss is caused by configuration information error, then save the message that triggers the packet loss.

8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the method for diagnosing a network failure as described in any one of claims 1 to 6 is implemented.

9. A network device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the method for diagnosing a network failure according to any one of claims 1 to 6 is implemented.