Method and system for handling faults of error packets, electronic equipment, and storage medium

By processing network equipment alarm information, distinguishing between high-availability and non-high-availability interfaces, automatic and manual fault handling is realized, which solves the problem of frequent false alarms of network device port error packets and flash interruptions, and improves fault handling efficiency and service quality.

CN115001946BActive Publication Date: 2024-10-29CHINA CONSTRUCTION BANK
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210616866.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-01
Publication Date
2024-10-29
Estimated Expiration
2042-06-01

AI Technical Summary

Technical Problem

Frequent false alarms of network equipment port packet errors and flash failures make troubleshooting cumbersome, affecting service quality, and limiting the speed of manual judgment and processing.

Method used

By obtaining the alarm information, after processing, if it is a false alarm, it will not be isolated. If it is a high-availability interface fault, it will be automatically isolated and repaired. If it is a non-high-availability interface fault, the information will be sent to the second-line operation and maintenance personnel to determine whether to manually isolate it, and combine automatic and manual processing. To reduce operation and maintenance pressure.

Benefits of technology

It improves the speed of port fault handling, reduces business impact, and achieves a higher level of service quality assurance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115001946B_ABST
    Figure CN115001946B_ABST
Patent Text Reader

Abstract

The present invention provides a method and system for handling error packet and flash disconnection faults, an electronic device, and a storage medium. The method comprises: obtaining alarm information; processing the alarm information to obtain a processing result; when the processing result is a false alarm, not performing an isolation action; when the processing result is a high-availability interface fault, automatically isolating the high-availability interface, and performing fault repair on the isolated high-availability interface until the isolation is cancelled after the repair is completed; when the processing result is a non-high-availability interface fault, sending the fault information of the non-high-availability interface to second-line operation and maintenance personnel, so that the operation and maintenance personnel can determine whether manual isolation is required, and performing fault repair on the isolated non-high-availability interface until the isolation is cancelled after the repair is completed; thereby handling the faulty port, reducing the scope of influence, and controlling the business impact; solving the problems of high-frequency port error packet and flash disconnection fault false alarms and complicated handling of network equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of fault processing, and more specifically, particularly relates to a method and system for processing an error packet flash failure, an electronic device, and a storage medium. Background Art

[0002] In daily operation and maintenance, network ports may occasionally experience flash disconnections and an increase in error packets. These failures are sometimes one-off and caused by accidental factors, and sometimes they occur repeatedly. Once error packets and flash disconnections occur, they require manual confirmation and judgment and disposal. However, due to the speed of manual judgment and disposal, the timeliness of fault handling is poor and the workload is large.

[0003] In order to speed up the handling of faults, most operation and maintenance platforms have built-in capabilities to automatically execute commands on connected network devices. In the design of data centers, there are a lot of redundant designs to ensure that when some ports are closed, the overall business will not be affected.

[0004] At present, the method for handling network equipment failures is to directly isolate the entire network equipment through various means when conditions are met through information comparison such as CMDB; however, directly isolating the entire device for faulty equipment has a great impact on network capacity and is likely to cause a decline in service quality. Summary of the invention

[0005] In view of this, the purpose of the present invention is to provide a method and system for handling error packet and flash disconnect faults, an electronic device, and a storage medium, which are used to solve the problems of high-frequency port error packets, false alarms of flash disconnect faults, and cumbersome handling of network equipment, and reduce the pressure on operation and maintenance personnel.

[0006] The first aspect of the present application discloses a method for handling an error packet flash failure, which is characterized by comprising:

[0007] Get alarm information;

[0008] Processing the warning information to obtain a processing result;

[0009] When the processing result is a false alarm, no isolation action is performed;

[0010] When the processing result is a high-availability interface failure, the high-availability interface is automatically isolated, and the failure is repaired on the isolated high-availability interface until the isolation is cancelled after the repair is completed;

[0011] When the processing result is a non-high availability interface failure, the failure information of the non-high availability interface is sent to the second-line operation and maintenance personnel to enable the operation and maintenance personnel to determine whether manual isolation is required and perform fault repair on the isolated non-high availability interface until the isolation is cancelled after the repair is completed.

[0012] Optionally, in the above-mentioned error packet flash fault processing method, processing the alarm information to obtain a processing result includes:

[0013] Extracting the device name, management address and port number of the alarm device from the alarm information;

[0014] Call the CMDB interface to verify whether the device name and the management address are correct;

[0015] If the device name and the management address are correct, log in to the alarm device, check the port error packet or flash disconnection, and obtain the parsing result corresponding to the port number;

[0016] If the analysis result is that the current status is normal, then the processing result is a false alarm;

[0017] If the analysis result is that there is a fault, it is determined whether the alarm information can be automatically handled according to the high availability rules; if the alarm information can be automatically handled, the processing result is a high availability interface fault, otherwise the processing result is a non-high availability interface fault.

[0018] Optionally, in the above-mentioned error packet flash fault processing method, before extracting the device name, management address, and port number of the alarm device from the alarm information, it also includes:

[0019] Use keywords to filter the warning information.

[0020] Optionally, in the above-mentioned error packet flash fault processing method, judging whether the alarm information can be automatically handled according to the high availability rule includes:

[0021] Determine whether the conditions are met at the same time: the port is a network device interconnection port, the impact of the port is limited, and the port has error packets or flash disconnection that needs to be handled;

[0022] If so, it is determined that the alarm information can be automatically processed; otherwise, it is determined that the alarm information cannot be automatically processed.

[0023] Optionally, in the above-mentioned error packet flash fault processing method, after the high-availability interface is automatically isolated, it also includes:

[0024] If the isolation fails, the step of determining that the alarm information cannot be automatically processed is performed.

[0025] Optionally, in the above-mentioned error packet flash fault processing method, after determining that the alarm information cannot be automatically processed, it also includes:

[0026] Check the alarm information according to the automatic check execution rules and perform fault analysis;

[0027] If the analysis result is that a fault exists or cannot be determined, then the processing result is determined to be a non-high-availability interface fault;

[0028] If the analysis result is normal, the processing result is determined to be a false alarm.

[0029] The second aspect of the present application discloses a system for handling faults caused by flash failures of error packets, which is characterized by comprising:

[0030] An acquisition module is used to obtain alarm information;

[0031] A processing module, used to process the alarm information and obtain a processing result;

[0032] An execution module is used for not performing an isolation action when the processing result is a false alarm; when the processing result is a high-availability interface failure, automatically isolating the high-availability interface, and repairing the failure of the isolated high-availability interface until the repair is completed and the isolation is cancelled; when the processing result is a non-high-availability interface failure, sending the failure information of the non-high-availability interface to the second-line operation and maintenance personnel, so that the operation and maintenance personnel can determine whether manual isolation is required, and repairing the failure of the isolated non-high-availability interface until the isolation is cancelled after the repair is completed.

[0033] Optionally, in the above-mentioned error packet flash fault processing system, the processing module is used to process the alarm information, and when the processing result is obtained, it is specifically used to:

[0034] Extracting the device name, management address and port number of the alarm device from the alarm information;

[0035] Call the CMDB interface to verify whether the device name and the management address are correct;

[0036] If the device name and the management address are correct, log in to the alarm device, check the port error packet or flash disconnection, and obtain the parsing result corresponding to the port number;

[0037] If the analysis result is that the current status is normal, then the processing result is a false alarm;

[0038] If the analysis result is that there is a fault, it is determined whether the alarm information can be automatically handled according to the high availability rules; if the alarm information can be automatically handled, the processing result is a high availability interface fault, otherwise the processing result is a non-high availability interface fault.

[0039] The third aspect of the present application discloses an electronic device, comprising:

[0040] one or more processors;

[0041] a storage device having one or more programs stored thereon;

[0042] When one or more programs are executed by one or more processors, the one or more processors implement the error packet flash failure processing method as described in any one of the first aspects of the present application.

[0043] A fourth aspect of the present application discloses a storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for handling faults of flash disconnection with error packets as described in any one of the first aspects of the present application is implemented.

[0044] It can be seen from the above technical scheme that the present invention provides a method for handling error packet and flash disconnect faults, including: obtaining alarm information; processing the alarm information to obtain a processing result; when the processing result is a false alarm, no isolation action is performed; when the processing result is a high-availability interface fault, the high-availability interface is automatically isolated, and the fault is repaired on the isolated high-availability interface until the isolation is cancelled after the repair is completed; when the processing result is a non-high-availability interface fault, the fault information of the non-high-availability interface is sent to the second-line operation and maintenance personnel, so that the operation and maintenance personnel can determine whether manual isolation is required, and the fault is repaired on the isolated non-high-availability interface until the isolation is cancelled after the repair is completed; automatic handling of high-availability interfaces and manual intervention of non-high-availability interfaces are realized; thereby handling the faulty port with a small impact range and controllable business impact; solving the problems of high-frequency port error packets, flash disconnection fault false alarms, and cumbersome handling of network equipment, and reducing the pressure on operation and maintenance personnel; through the combination of automatic and manual, the port fault handling speed is improved, and a higher level of service quality assurance can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] 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, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0046] Figure 1 It is a flow chart of a method for handling an error packet flash failure provided by an embodiment of the present invention;

[0047] Figure 2 It is a flow chart of another method for handling faults of error packets and flash disconnection provided by an embodiment of the present invention;

[0048] Figure 3 It is a flow chart of another method for handling faults of error packets and flash disconnection provided by an embodiment of the present invention;

[0049] Figure 4 It is a schematic diagram of a system for handling faults of error packets and flash disconnection provided by an embodiment of the present invention;

[0050] Figure 5 It is a schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution 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 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 are within the scope of protection of the present invention.

[0052] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0053] The present application provides a method for handling faults caused by packet errors and flash disconnections, which is used to solve the network equipment fault handling method in the prior art. By comparing information such as CMDB, the entire network device is directly isolated in a variety of ways when conditions are met; however, for a faulty device, directly isolating the entire device has a greater impact on the network capacity and is likely to cause a decline in service quality.

[0054] See also Figure 1 The method for handling the fault of the error packet flash disconnection includes:

[0055] S101. Obtain alarm information.

[0056] Specifically, the number of the alarm information may be one or more, which is not specifically limited here and may be determined according to the actual situation and is within the protection scope of this application.

[0057] It should be noted that the alarm information may be an alarm information of an error packet flash disconnection.

[0058] Of course, the alarm information may also include all alarm information, and then other alarm information is filtered out through filtering technology, and only the alarm information of the error packet flash disconnection is retained.

[0059] The specific selection of the warning information will not be described here one by one, and it will depend on the actual situation and is within the protection scope of this application.

[0060] S102: Process the alarm information to obtain a processing result.

[0061] Specifically, the fields in the alarm information may be extracted, and then corresponding processing may be performed according to the corresponding fields, and then the processing result may be obtained.

[0062] The specific method of processing the alarm information will not be described here one by one. It will depend on the actual situation and is within the scope of protection of this application.

[0063] S103: When the processing result is a false alarm, no isolation action is performed.

[0064] In other words, the alarm information is a false alarm, and the isolation action may not be performed.

[0065] Specifically, when the processing result is a false alarm, the operation and maintenance personnel can be informed through email or text message that the port is normal and no further processing is required.

[0066] S104: When the processing result is a high-availability interface failure, the high-availability interface is automatically isolated, and the failure is repaired on the isolated high-availability interface until the isolation is cancelled after the repair is completed.

[0067] In other words, high-availability interfaces can be automatically isolated.

[0068] Among them, the fault repair is performed on the isolated high-availability interface. The specific repair process is not specifically limited here and may be determined according to the actual situation, which is within the protection scope of this application.

[0069] In addition, after the repair is completed, the quarantine is cancelled to put the high-availability interface into use.

[0070] S105. When the processing result is a non-high availability interface fault, the fault information of the non-high availability interface is sent to the second-line operation and maintenance personnel, so that the operation and maintenance personnel can determine whether manual isolation is required, and perform fault repair on the isolated non-high availability interface until the isolation is cancelled after the repair is completed.

[0071] Specifically, when the processing result is a non-high availability interface failure, the fault information of the non-high availability interface will be sent to the operation and maintenance personnel to determine whether manual isolation is required. If manual isolation is required, manual isolation will be performed, and then the repair personnel will handle it on-site and repair the fault of the isolated non-high availability interface until the isolation is cancelled after the repair is completed.

[0072] In other words, non-high-availability interface failures need to be manually isolated.

[0073] After isolation, repair can be performed automatically or manually, which will not be described in detail here. It depends on the actual situation and is within the scope of protection of this application.

[0074] User operation content is: the user can view the commands and return results during the inspection process, as well as the judgment conclusions provided in the fault analysis, and then choose whether to isolate.

[0075] The fault repair content is: after the user performs isolation, personnel responsible for the computer room environment, wiring construction, etc. need to go to the site to eliminate physical faults before subsequent operations can be carried out.

[0076] The content of canceling isolation is: after the physical fault is eliminated, the user needs to perform recovery operations in the system. The system will reopen the faulty port through the CLI, thereby restoring and completing the entire handling process.

[0077] In this embodiment, alarm information is obtained; the alarm information is processed to obtain a processing result; when the processing result is a false alarm, the isolation action is not performed; when the processing result is a high-availability interface failure, the high-availability interface is automatically isolated, and the isolated high-availability interface is repaired until the repair is completed and the isolation is cancelled; when the processing result is a non-high-availability interface failure, the fault information of the non-high-availability interface is sent to the second-line operation and maintenance personnel, so that the operation and maintenance personnel can determine whether manual isolation is required, and the isolated non-high-availability interface is repaired until the repair is completed and the isolation is cancelled; automatic disposal of high-availability interfaces and manual intervention disposal of non-high-availability interfaces are realized; thereby, the faulty port is handled with a small impact range and controllable business impact; the problems of high-frequency port error packets, flash fault false alarms, and cumbersome handling of network equipment are solved, and the pressure on operation and maintenance personnel is reduced; through the combination of automatic and manual, the port fault handling speed is improved, and a higher level of service quality assurance can be achieved.

[0078] It should be noted that the existing technology achieves automatic isolation when an interface fails by setting a fault threshold of the interface; however, setting a threshold under an independent port to achieve automatic isolation cannot judge high availability and there is a risk of business interruption; the existing technology relies on the device's own capabilities and is limited by the device's performance specifications, and cannot achieve fault handling within a large time span.

[0079] In this embodiment, high-availability interfaces are distinguished from non-high-availability interfaces to achieve automatic handling of high-availability interfaces and manual intervention handling of non-high-availability interfaces. This has high security, is not limited by equipment performance specifications, and achieves fault handling within a larger time span.

[0080] In practical applications, see Figure 2 In the above step S102, the alarm information is processed to obtain a processing result, including:

[0081] S201. Extract the device name, management address and port number of the alarm device from the alarm information.

[0082] In actual applications, before extracting the device name, management address, and port number of the alarm device from the alarm information, the following is also required:

[0083] Use keywords to filter alarm information.

[0084] The system is connected to the alarm monitoring platform, receives all alarms in the network field, and uses keywords (high threshold for burst error packets, three flash disconnections within an hour) to filter error packet and flash disconnection alarms, and extracts device name, IP address, and port information from the alarm information.

[0085] S202: Call the CMDB interface to verify whether the device name and management address are correct.

[0086] Specifically, the system accesses the alarm monitoring platform, receives all alarms in the network field, and uses keywords (high threshold for burst error packets, three flash disconnections within an hour) to filter error packet and flash disconnection alarms, and extracts the device name, IP address, and port information from the alarm information, queries the CMDB (Configuration Management Database), and performs subsequent processing after confirming that the device information is correct. Otherwise, the device management information is considered inaccurate and no processing is performed.

[0087] If the device name and the management address are correct, execute step S203.

[0088] S203, log in to the alarm device, check the port error packet or flash disconnection, and obtain the analysis result corresponding to the port number.

[0089] That is to say, the alarm device is processed to detect whether there is a port error packet or a flash disconnection. If the port does not have a port error packet or a flash disconnection, the analysis result is that the current status is normal; if the port has a port error packet or a flash disconnection, the analysis result is that there is a fault.

[0090] S204: If the analysis result is that the current status is normal, the processing result is a false alarm.

[0091] S205. If the analysis result is that there is a fault, determine whether the alarm information can be automatically handled according to the high availability rule; if the alarm information can be automatically handled, the processing result is a high availability interface fault, otherwise the processing result is a non-high availability interface fault.

[0092] That is to say, after receiving the alarm message, the device name, management address, and port number of the device are extracted from the alarm information, and then the CMDB interface is called to verify whether the device name and device management address are correct. Then, the corresponding device is logged in to check the port error packet or flash disconnection, read and parse the results, and then perform logical judgment. If the current status is normal, the operation and maintenance personnel are informed by email or SMS that the port is normal and no further processing is required. If there is a fault, it is determined whether it can be automatically handled according to the high availability rules. If it can be automatically handled, it is automatically isolated. Otherwise, the inspection results are fed back to the user, who makes the decision, and provides a one-click isolation and recovery operation entry.

[0093] In actual applications, whether the alarm information can be automatically handled is determined based on high availability rules, including:

[0094] (1) Determine whether the conditions are met at the same time: the port is a network device interconnection port, the port has limited impact, and there are error packets or flash disconnections on the port that need to be handled.

[0095] It should be noted that the network interconnection port determination rule is used to determine whether the port is a network device interconnection port. The network interconnection port determination rule is as follows:

[0096] Method 1: Device name format + interface range, applicable to a network environment with a clear structure and simple topology. The device name and interface name have been obtained from the alarm information. Rule example: The device name contains AZC or MS, and the interface number does not contain Route-Aggregation, Bridge-Aggregation, or Eth-Trunk.

[0097] Method 2: Device name format + interface description format, suitable for network environments with a non-fixed structure but simple topology. The interface description is obtained by querying the description in the interface configuration through the CLI (Command-Line Interface command line interface). Rule example: Through "dispay current-configuration interface interface name", extract the "description To-opposite device name-port number" in the result, check that the local device name contains DSW, and the description field To contains -ASW# or -AS#, where # represents any positive integer.

[0098] Method 3: Device name format + LLDP neighbor name format rule, applicable to most network environments. The LLDP neighbor name is obtained by querying neighbor information through the CLI. Rule example: Use the display lldp neighbor-information interface interface name command to obtain the LLDP neighbor name. The device name suffix is ​​SW#, and the LLDP neighbor name suffix is ​​also SW#, where # represents a positive integer.

[0099] In actual applications, a service impact determination rule is used to determine whether the impact of a port is limited. The service impact determination rule is as follows:

[0100] Method 1: Aggregate port high availability. Check whether the alarm port belongs to the aggregate port. If it belongs to the aggregate port, check whether the remaining bandwidth of the aggregate port after closing the alarm port is greater than or equal to the tolerance threshold. If it is greater, it is considered that there is no business impact, otherwise it is considered that there is a business impact. Rule case: Query the physical port configuration through the CLI, extract the aggregate port from the "eth-trunk number", if Eth-trunk is not found in the interface configuration, end this process, if it exists, query the aggregate port members and the status of each member through the CLI, if (number of normal interfaces - 1) / number of normal interfaces > = bandwidth tolerance threshold, it is considered that there is no business impact, otherwise exit the process.

[0101] Method 2: Equal-cost routing is highly available. The interface address is obtained through the CLI. The address of the local end is used to calculate the address of the other end. The route view command is executed through the CLI to check the routes of the preset multiple addresses. If there is a dynamic route whose next hop contains the calculated address of the other end, the number of next hops is calculated. If (the existing number - 1) / the existing number > = the tolerance threshold, the isolation action is considered to have no business impact. Rule example: query the physical port configuration through the CLI, extract the local address from the "ip address subnet mask", and calculate the other end address together with the subnet mask, and then execute the route view command through the CLI in sequence until an OSPF / BGP route with the other end address as the next hop is encountered; calculate the number of next hops of the route. If (the existing number - 1) / the existing number > = the bandwidth tolerance threshold, it is considered to have no business impact; if the other end address is not found as the next hop or is less than the tolerance threshold, it is considered to have business impact.

[0102] In actual applications, the automatic handling necessity judgment rule is used to determine whether there are error packets or flash disconnections on the port that need to be handled; the automatic handling necessity judgment rule is as follows:

[0103] Flash failure: Check the device log through the CLI. If it is found that the physical port that alarms has more than three up and down status changes in sequence within one hour, it is considered that a fault exists and needs to be automatically handled; if there is no status change, it is considered a false alarm; if the number of occurrences is less than three times, it is considered that a fault exists, but automatic isolation is not required; Rule example: Execute the CLI command to obtain the log of the past hour, match the information containing ifName = interface number and OperStatus = DOWN / UP line by line, and if three pairs of up and down status changes occur within 30 seconds, it is considered to be a fault that needs to be automatically isolated; if no pairs of up and down status changes occur, it is considered to be a false alarm; if but less than three pairs of up and down status changes occur, it is considered to be a fault that does not require automatic isolation.

[0104] Error packet fault: Check the device interface error packets through the CLI, and execute it three times at a predetermined interval. If the error packet data obtained three times increases beyond the threshold, it is considered an error packet fault that needs to be automatically isolated. If the error packet data does not increase, it is considered a false alarm. Otherwise, it is considered an error packet fault that does not need to be automatically isolated. Rule case: Execute "disinterface interface name" through the CLI at an interval of 5 seconds for a total of 3 times. If the increase of CRC for two consecutive times exceeds 10, it is considered an error packet fault that needs to be automatically isolated.

[0105] (2) If so, it is determined that the alarm information can be automatically processed; otherwise, it is determined that the alarm information cannot be automatically processed.

[0106] In actual applications, after the high-availability interface is automatically isolated, it also includes:

[0107] If the isolation fails, the step of determining that the alarm information cannot be automatically processed is executed.

[0108] Specifically, the isolation result judgment rule is to detect the interface status through the CLI command. The status should be Admindown, otherwise it is considered that the disposal is unsuccessful.

[0109] In actual applications, after determining that the alarm information cannot be automatically processed, it also includes:

[0110] Check the alarm information according to the automatic check execution rules and perform fault analysis.

[0111] If the analysis result is that a fault exists or cannot be determined, the processing result is determined to be a non-high-availability interface fault.

[0112] If the analysis result is normal, the processing result is determined to be a false alarm.

[0113] The automatic inspection execution rules are: automatically handle the necessity determination process and business impact determination process, and pass the commands and return results in the process to the front-end page for further processing by the user.

[0114] The fault analysis rules are as follows: for faults that are judged as false alarms during automatic inspection, the user is directly prompted with the alarm information and no action is required; for faults that are judged as not requiring automatic action during automatic inspection, a button is provided on the page for the user to choose whether to isolate the fault.

[0115] See also Figure 3 , the following is an example of a specific usage scenario.

[0116] 1. Basic data verification rules.

[0117] The system is connected to the alarm monitoring platform, receives all alarms in the network field, and uses keywords (high threshold for burst error packets, three flash disconnections within an hour) to filter error packet and flash disconnection alarms, and extracts the device name, IP address, and port information from the alarm information, queries the CMDB (Configuration Management Database), and performs subsequent processing after confirming that the device information is correct. Otherwise, the device management information is considered inaccurate and no processing is performed.

[0118] 2. Network interconnection port determination rules.

[0119] Method 1: Device name format + interface range, applicable to a network environment with a clear structure and simple topology. The device name and interface name have been obtained from the alarm information.

[0120] Method 2: Device name format + interface description format, which is applicable to a network environment with a flexible structure but a simple topology. The interface description is obtained by querying the description in the interface configuration through the CLI (Command-Line Interface).

[0121] Method 3: Device name format + LLDP neighbor name format rule, applicable to most network environments. The LLDP neighbor name is obtained by querying neighbor information through the CLI.

[0122] 3. Rules for determining business impact.

[0123] Method 1: Aggregation port high availability. Check whether the alarm port belongs to the aggregation port. If it does, check whether the remaining bandwidth of the aggregation port after closing the alarm port is greater than or equal to the tolerance threshold. If so, it is considered that there is no business impact. Otherwise, it is considered that there is a business impact.

[0124] Method 2: Equal-cost routing is highly available. Obtain the interface address through the CLI, use the local address to calculate the peer address, and execute the route view command through the CLI to check the routes of multiple preset addresses. If there is a dynamic route whose next hop contains the calculated peer address, calculate the number of next hops. If (existing number - 1) / existing number >= tolerance threshold, it is considered that the isolation action has no business impact.

[0125] 4. Rules for judging the necessity of automatic disposal.

[0126] Flash fault: Check the device log through the CLI. If the physical port that has issued an alarm changes to up and down more than three times in sequence within one hour, it is considered that a fault exists and needs to be automatically handled. If there is no status change, it is considered a false alarm. If the number of occurrences is less than three times, it is considered that a fault exists, but automatic isolation is not required.

[0127] Error packet fault: Check the device interface error packets through the CLI, and execute it three times in a row at a predetermined interval. If the error packet data obtained three times increases beyond the threshold, it is considered to be an error packet fault that requires automatic isolation. If the error packet data does not increase, it is considered to be a false alarm. Otherwise, it is considered to be an error packet fault that does not require automatic isolation.

[0128] 5. Isolation result judgment rules.

[0129] Check the interface status through the CLI command. The status should be Admin down. Otherwise, the handling is considered unsuccessful.

[0130] 6. Automatically check and execute rules.

[0131] The automatic disposal necessity determination process and business impact determination process are executed again, and the commands and return results in the process are passed to the front-end page for further processing by the user.

[0132] 7. Fault analysis rules.

[0133] For faults that are determined to be false alarms during automatic inspection, the user is directly prompted that the alarm information does not need to be handled; for faults that are determined to not require automatic handling during automatic inspection, a button is provided on the page for the user to choose whether to isolate.

[0134] 8. User operation content.

[0135] Users can view the commands and return results during the inspection process, as well as the conclusions provided in the fault analysis, and then choose whether to isolate the fault.

[0136] 9. Troubleshooting content.

[0137] After the user performs isolation, personnel responsible for the computer room environment and cabling construction need to go to the site to troubleshoot the physical fault before subsequent operations can be carried out.

[0138] 10. Cancel quarantine content.

[0139] After the physical fault is eliminated, the user needs to perform a recovery operation in the system. The system will reopen the faulty port through the CLI, thus completing the entire handling process.

[0140] Another embodiment of the present application provides a system for handling error packet flash failures.

[0141] See also Figure 4 The error packet flash fault handling system includes:

[0142] The acquisition module 101 is used to acquire alarm information.

[0143] The processing module 102 is used to process the alarm information and obtain a processing result.

[0144] Execution module 103 is used for not executing the isolation action when the processing result is a false alarm; when the processing result is a high-availability interface failure, automatically isolating the high-availability interface, and repairing the failure of the isolated high-availability interface until the isolation is cancelled after the repair is completed; when the processing result is a non-high-availability interface failure, sending the failure information of the non-high-availability interface to the second-line operation and maintenance personnel, so that the operation and maintenance personnel can determine whether manual isolation is required, and repairing the failure of the isolated non-high-availability interface until the isolation is cancelled after the repair is completed.

[0145] The working process and principle of each of the above modules are detailed in the error packet flash fault handling method provided in the above embodiment, which will not be described one by one here. It depends on the actual situation and is within the protection scope of this application.

[0146] In this embodiment, the acquisition module 101 acquires the alarm information; the processing module 102 processes the alarm information to obtain the processing result; the execution module 103 does not perform the isolation action when the processing result is a false alarm; when the processing result is a high-availability interface failure, the high-availability interface is automatically isolated, and the isolated high-availability interface is repaired until the isolation is cancelled after the repair is completed; when the processing result is a non-high-availability interface failure, the fault information of the non-high-availability interface is sent to the second-line operation and maintenance personnel, so that the operation and maintenance personnel can determine whether manual isolation is required, and the isolated non-high-availability interface is repaired until the isolation is cancelled after the repair is completed; automatic disposal of high-availability interfaces and manual intervention disposal of non-high-availability interfaces are realized; thereby, the faulty port is handled with a small impact range and controllable business impact; the problems of high-frequency port error packets, flash fault false alarms, and cumbersome handling of network equipment are solved, and the pressure on operation and maintenance personnel is reduced; through the combination of automatic and manual, the port fault handling speed is improved, and a higher level of service quality assurance can be achieved.

[0147] In practical applications, the processing module 102 is used to process the alarm information, and when the processing result is obtained, it is specifically used to:

[0148] Extract the device name, management address and port number of the alarm device from the alarm information.

[0149] Call the CMDB interface to verify whether the device name and management address are correct.

[0150] If the device name and management address are correct, log in to the alarm device, check the port error packet or flash disconnection, and obtain the analysis result corresponding to the port number.

[0151] If the analysis result is that the current status is normal, the processing result is an error message.

[0152] If the analysis result is that there is a fault, it is determined whether the alarm information can be automatically handled according to the high availability rules; if the alarm information can be automatically handled, the processing result is a high availability interface fault, otherwise the processing result is a non-high availability interface fault.

[0153] Another embodiment of the present application provides a storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for handling an error packet flash failure as described in any one of the above embodiments is implemented.

[0154] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, 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 of the foregoing.

[0155] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The 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 of the above. More specific examples of computer-readable storage media may include, but are not limited to: 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 of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to an electromagnetic signal, an optical signal, or any suitable combination of the above. The computer readable signal medium 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. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0156] The computer-readable medium may be included in the electronic device, or may exist independently without being installed in the electronic device.

[0157] Another embodiment of the present invention provides an electronic device, such as Figure 5 As shown, including:

[0158] One or more processors 601 .

[0159] The storage device 602 stores one or more programs.

[0160] When one or more programs are executed by one or more processors 601, one or more processors 601 implement the method for handling faults caused by flash disconnection due to error packets as described in any one of the above embodiments.

[0161] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart.

[0162] Although the subject matter has been described in language specific to structural features and / or methodological logical actions, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. On the contrary, the specific features and actions described above are merely example forms of implementing the claims.

[0163] Although several specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Certain features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination.

[0164] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.

[0165] The features recorded in the various embodiments in this specification can be replaced or combined with each other, and the same and similar parts between the various embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are only schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

[0166] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0167] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for handling faults caused by flash failure of error packets, characterized in that: include: Get alarm information; Processing the alarm information to obtain a processing result; wherein, the processing of the alarm information to obtain a processing result includes: extracting the device name, management address and port number of the alarm device from the alarm information; calling the CMDB interface to verify whether the device name and the management address are correct; if the device name and the management address are correct, logging into the alarm device, checking the port error packet or flash disconnection, and obtaining the parsing result corresponding to the port number; if the parsing result is that the current state is normal, the processing result is a false alarm; if the parsing result is that there is a fault, judging whether the alarm information can be automatically handled according to the high availability rule; if the alarm information can be automatically handled, the processing result is a high availability interface fault, otherwise the processing result is a non-high availability interface fault; When the processing result is a false alarm, no isolation action is performed; When the processing result is a high-availability interface failure, the high-availability interface is automatically isolated, and the failure is repaired on the isolated high-availability interface until the isolation is cancelled after the repair is completed; When the processing result is a non-high availability interface failure, the failure information of the non-high availability interface is sent to the second-line operation and maintenance personnel to enable the operation and maintenance personnel to determine whether manual isolation is required and perform fault repair on the isolated non-high availability interface until the isolation is cancelled after the repair is completed.

2. The method for handling faults caused by packet errors according to claim 1, characterized in that: Before extracting the device name, management address, and port number of the alarm device from the alarm information, the method further includes: Use keywords to filter the warning information.

3. The method for handling faults caused by flash failure of error packets according to claim 2, characterized in that: The determining, according to the high availability rule, whether the alarm information can be automatically processed includes: Determine whether the conditions are met at the same time: the port is a network device interconnection port, the impact of the port is limited, and the port has error packets or flash disconnection that needs to be handled; If so, it is determined that the alarm information can be automatically processed; otherwise, it is determined that the alarm information cannot be automatically processed.

4. The method for handling faults caused by packet errors according to claim 3, characterized in that: After the high-availability interface is automatically isolated, it also includes: If the isolation fails, the step of determining that the alarm information cannot be automatically processed is performed.

5. The method for handling faults caused by packet errors according to claim 4, characterized in that: After determining that the alarm information cannot be automatically processed, the method further includes: Check the alarm information according to the automatic check execution rules and perform fault analysis; If the analysis result is that a fault exists or cannot be determined, then the processing result is determined to be a non-high-availability interface fault; If the analysis result is normal, the processing result is determined to be a false alarm.

6. A system for handling faults caused by packet errors, characterized in that: include: An acquisition module is used to obtain alarm information; A processing module is used to process the alarm information and obtain a processing result; wherein, the processing module is used to process the alarm information, and when obtaining the processing result, it is specifically used to: extract the device name, management address and port number of the alarm device from the alarm information; call the CMDB interface to verify whether the device name and the management address are correct; if the device name and the management address are correct, log in to the alarm device, check the port error packet or flash disconnection, and obtain the parsing result corresponding to the port number; if the parsing result is that the current state is normal, the processing result is a false alarm; if the parsing result is that there is a fault, determine whether the alarm information can be automatically handled according to the high availability rule; if the alarm information can be automatically handled, the processing result is a high availability interface fault, otherwise the processing result is a non-high availability interface fault; An execution module is used for not performing an isolation action when the processing result is a false alarm; when the processing result is a high-availability interface failure, automatically isolating the high-availability interface, and repairing the failure of the isolated high-availability interface until the repair is completed and the isolation is cancelled; when the processing result is a non-high-availability interface failure, sending the failure information of the non-high-availability interface to the second-line operation and maintenance personnel, so that the operation and maintenance personnel can determine whether manual isolation is required, and repairing the failure of the isolated non-high-availability interface until the isolation is cancelled after the repair is completed.

7. An electronic device, characterized in that: include: one or more processors; a storage device having one or more programs stored thereon; When one or more programs are executed by one or more processors, the one or more processors implement the method for handling error packet flash failures as described in any one of claims 1 to 5.

8. A storage medium, characterized in that: A computer program is stored thereon, wherein when the computer program is executed by a processor, the method for handling error packet flash failure as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Private number system fault alarm system and method

    CN111447328A

  • Fault information processing method and device, computer equipment and storage medium

    CN112463427A