Interruption detection method, device and equipment based on bidirectional forwarding detection (BFD) status
By establishing dedicated lines between network devices and configuring BFD sessions, the system uses multi-time point-of-sight status comparisons to identify and alarm on unrecovered interrupted lines, thus solving the problem of frequent false alarms on dedicated lines, improving alarm accuracy, and reducing maintenance pressure.
Patent Information
- Application Number
- CN202411752088.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2044-11-29
AI Technical Summary
In existing technologies, the BFD detection mechanism for dedicated lines is prone to causing frequent false alarms, increasing the pressure on network maintenance personnel.
By establishing dedicated lines between network devices and multiple other network devices, configuring BFD sessions for each dedicated line, obtaining BFD status at multiple time points, comparing them based on preset time intervals, identifying and alerting dedicated lines that are interrupted and have not recovered.
It reduced the frequency of false alarms, improved the accuracy of interruption alarms, and alleviated the pressure on network maintenance personnel.
Smart Images

Figure CN119544556B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of network communication, and in particular to a method and device for detecting interruption based on a BFD state and equipment. BACKGROUND
[0002] Network devices of a data center are usually connected to multiple external network private lines, which carry multiple services interacting with external network devices. The private lines are usually configured with a BFD session to achieve fast detection of the state of the private line. When a private line is interrupted, the BFD state of the private line will become unavailable, i.e., an interruption state, within a short time.
[0003] The existing BFD detection mechanism of the private line directly sends network device logs to a monitoring system through the network device, and further analyzes the network device logs through the monitoring system. If the network device logs contain information about the BFD interruption of the private line, an alarm is immediately generated to prompt network operation and maintenance personnel to check the corresponding private line.
[0004] Therefore, the existing technology is prone to frequent false alarms, which increases the pressure on network operation and maintenance personnel. SUMMARY
[0005] The present application provides a method and device for detecting interruption based on a BFD state and equipment to solve the technical problem of frequent false alarms and high pressure on network operation and maintenance personnel in the prior art.
[0006] In a first aspect, the present application provides a method for detecting interruption based on a BFD state, applied to a network device, comprising:
[0007] establishing a private line between the network device and multiple other network devices, and configuring a corresponding BFD session for each private line;
[0008] obtaining a first BFD state of the BFD session at a current time point; wherein the first BFD state is a normal state or an interruption state;
[0009] obtaining a second BFD state at a first historical time point and a third BFD state at a second historical time point of the BFD session based on a preset time interval; wherein the first historical time point and the second historical time point are time points located before the current time point, and the first historical time point is located between the current time point and the second historical time point;
[0010] Based on the first BFD state, the second BFD state, and the third BFD state, interruption detection is performed on each dedicated line, and an alarm is issued for the dedicated line that is interrupted.
[0011] In one possible design, the interruption detection of each dedicated line based on the first BFD state, the second BFD state, and the third BFD state, and the alarm for the interrupted dedicated line, includes:
[0012] The first BFD state, the second BFD state, and the third BFD state are analyzed to determine whether the dedicated line is interrupted.
[0013] If the dedicated line is interrupted, an alarm will be triggered and a maintenance request will be sent to the relevant maintenance personnel.
[0014] In one possible design, if the dedicated line is interrupted, an alarm is triggered, and a maintenance request is sent to relevant maintenance personnel, including:
[0015] If the third BFD state is an interrupted state, the second BFD state is an interrupted state, and the first BFD state is an interrupted state, then the dedicated line is determined to be in the first interruption state.
[0016] Generate and issue a first alarm message; wherein, the first alarm message indicates that relevant operation and maintenance personnel should confirm whether the dedicated line should continue to be used.
[0017] In one possible design, the method further includes:
[0018] If the third BFD state is normal, the second BFD state is interrupted, and the first BFD state is interrupted, then the dedicated line is determined to be in the second interruption state.
[0019] Generate and issue a second alarm message; wherein the second alarm message indicates that relevant operation and maintenance personnel are requested to send a maintenance request.
[0020] In one possible design, prior to generating and issuing the second alarm message, the following is also included:
[0021] Obtain the total number of dedicated lines in the second interruption condition;
[0022] If the total number is greater than or equal to a preset threshold, it is determined that the network device has failed, and a backup network device is activated to establish a dedicated line with the other network devices.
[0023] In one possible design, generating and issuing the second alarm message includes:
[0024] If the total number is greater than or equal to the preset threshold, second alarm information representing a first maintenance request is sent to a network device operation and maintenance personnel responsible for the network device;
[0025] If the total number is less than the preset threshold, second alarm information representing a second maintenance request is sent to other network device operation and maintenance personnel responsible for the other network devices, or second alarm information representing a third maintenance request is sent to a dedicated line operation and maintenance personnel responsible for the dedicated line.
[0026] In a possible design, the establishing of the dedicated lines between the network device and the plurality of other network devices includes:
[0027] sending a line connection request to the other network devices; the line connection request includes device information of the network device; the device information in the line connection request is used for checking device security;
[0028] receiving connection response information sent by the other network devices, and establishing a dedicated line between the network device and the other network devices; the connection response information indicates that the network device that sends the line connection request is safe and agrees to establish a dedicated line with the network device that sends the line connection request.
[0029] In a second aspect, the present application provides a device for interrupt detection based on a BFD state, applied to a network device, and the device includes:
[0030] a creating module configured to establish dedicated lines between the network device and a plurality of other network devices, and configure a corresponding BFD session for each dedicated line;
[0031] a obtaining module configured to obtain a first BFD state of the BFD session at a current time point; the first BFD state is a normal state or an interrupt state;
[0032] The obtaining module is further configured to obtain a second BFD state at a first historical time point and a third BFD state at a second historical time point of the BFD session based on a preset time interval; the first historical time point and the second historical time point are time points located before the current time point, and the first historical time point is located between the current time point and the second historical time point;
[0033] a detecting module configured to perform interrupt detection on each dedicated line based on the first BFD state, the second BFD state, and the third BFD state;
[0034] An alarm module is configured to alarm the dedicated line in interruption.
[0035] In a possible design of the method, the detecting comprises: analyzing the first BFD state, the second BFD state and the third BFD state to determine whether the dedicated line is in interruption.
[0036] The alarm module is further configured to alarm and send a maintenance request to a relevant operation and maintenance personnel if the dedicated line is in interruption.
[0037] In a possible design of the method, the alarming comprises: determining that the dedicated line is in a first interruption case if the third BFD state is the interruption state, the second BFD state is the interruption state and the first BFD state is the interruption state.
[0038] The alarm module is further configured to generate and send first alarm information, where the first alarm information indicates that a relevant operation and maintenance personnel is requested to confirm whether the dedicated line is to be continuously used.
[0039] In a possible design of the method, the determining comprises: determining that the dedicated line is in a second interruption case if the third BFD state is the normal state, the second BFD state is the interruption state and the first BFD state is the interruption state.
[0040] The alarm module is further configured to generate and send second alarm information, where the second alarm information indicates that a relevant operation and maintenance personnel is requested to send a maintenance request.
[0041] In a possible design of the method, the obtaining comprises: obtaining a total number of dedicated lines in the second interruption case.
[0042] The determining comprises: determining that the network device is faulty if the total number is greater than or equal to a preset threshold.
[0043] The creating comprises: enabling a standby network device to establish a dedicated line with the plurality of other network devices.
[0044] In a possible design of the method, the alarming comprises:
[0045] If the total number is greater than or equal to the preset threshold, the second alarm information indicating a first maintenance request is sent to a network device operation and maintenance personnel responsible for the network device.
[0046] If the total number is less than the preset threshold, second alarm information representing a second maintenance request is sent to an other network device operation and maintenance personnel responsible for the other network device, or second alarm information representing a third maintenance request is sent to a special line operation and maintenance personnel responsible for the special line.
[0047] In a possible design, the creating module further includes a sending module, a receiving module,
[0048] The sending module is configured to send a line connection request to the other network device, wherein the line connection request includes device information of the network device; and the device information in the line connection request is used for checking device security.
[0049] The receiving module is configured to receive connection response information sent by the other network device, and establish a special line between the network device and the other network device, wherein the connection response information indicates that the network device sending the line connection request is safe and agrees to establish a special line between the network device sending the line connection request.
[0050] In a third aspect, the present application provides an electronic device, including:
[0051] a memory and a processor;
[0052] The memory stores computer execution instructions.
[0053] The processor executes the computer execution instructions stored in the memory, so as to implement the interrupt detection method based on the BFD state as described in the first aspect and various possible implementation manners.
[0054] In a fourth aspect, the present application provides a computer readable storage medium, which stores computer execution instructions, and the computer execution instructions are executed by a processor to implement the interrupt detection method based on the BFD state as described in the first aspect and various possible implementation manners.
[0055] In a fifth aspect, the present application provides a computer program product, which includes a computer program, and the computer program is executed by a processor to implement the interrupt detection method based on the BFD state as described in the first aspect and various possible implementation manners.
[0056] The application provides a method, device and equipment for interrupt detection based on a bidirectional forwarding detection (BFD) state.BRIEF DESCRIPTION OF DRAWINGS BRIEF DESCRIPTION OF DRAWINGS
[0057] The accompanying drawings, which are incorporated herein and constitute part of the specification, illustrate embodiments consistent with the application and, together with the description, further serve to explain the principles of the application.
[0058] Figure 1 A flowchart of the method for interrupt detection based on a bidirectional forwarding detection (BFD) state provided by the embodiment of the application Figure 1
[0059] Figure 2 A flowchart of the method for interrupt detection based on a bidirectional forwarding detection (BFD) state provided by the embodiment of the application Figure 2
[0060] Figure 3 A structural diagram of the device for interrupt detection based on a bidirectional forwarding detection (BFD) state provided by the embodiment of the application
[0061] Figure 4 A hardware structural diagram of the electronic device provided by the embodiment of the application.
[0062] The above drawings have shown the specific embodiments of the application, and the following will have a more detailed description. The drawings and the description are not intended to limit the scope of the concept of the application by any means, but to illustrate the concept of the application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0063] The exemplary embodiments will be described in detail herein with reference to the attached drawings. The following description is made with reference to the accompanying drawings in which like reference numerals represent like elements or similar elements, unless the context of the description dictates otherwise. The following description of exemplary embodiments is not representative of all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the appended claims.
[0064] The terms "first", "second", "third", "fourth" and the like in the description and in the claims of the present disclosure, where they occur, are used as identifiers for similarly shaped objects and are not necessarily used to describe a specific sequential or chronological order. It is to be understood that the use of these terms are interchangeable under appropriate circumstances to designate a similar object operating in other sequences or to designate a different object operating in the same or a different sequence.
[0065] In the embodiments of the present application, the words "exemplary" or "for example" are used to mean example, illustration, or instance, and are not necessarily to be construed as preferences or advantageous. The use of these expressions is intended to present concepts in a concrete fashion.
[0066] First, the terms related to the present application are explained:
[0067] Dedicated line: a network transmission line between two network devices.
[0068] BFD: a network protocol designed to quickly detect line failures between two network devices (such as routers, switches).
[0069] BFD session: refers to a logical connection established between two network devices, used to monitor the line status and connectivity between the two network devices. Each BFD session is responsible for detecting line failures between a pair (two) of network devices, and triggering the corresponding response mechanism when a failure is detected.
[0070] Network devices in a data center usually interact with external network devices through multiple dedicated lines, which are used to support various business interactions between the data center and external network devices, which may include data transmission, application service access, cloud service connection, etc. Among them, the network devices in the data center include routers, switches, firewalls, etc., which are responsible for managing and controlling data flow.
[0071] The dedicated line is usually configured with a BFD session to quickly detect the state of the dedicated line, including whether it is running normally, whether it is interrupted, etc. It should be understood that BFD can detect line failure in a very short time, usually milliseconds.
[0072] Therefore, if an interruption occurs on a dedicated line, the BFD session will quickly detect the interruption, mark the BFD state of the dedicated line as an unusable state or an interruption state, and send an alarm information through the monitoring system of the data center to remind the network operation personnel to handle it.
[0073] As can be seen, line jitter, operations on external network equipment, or operations on the line by the operator, will all cause temporary BFD interruptions on the dedicated line. However, these temporary BFD interruptions may not be serious and can usually be automatically recovered within a short time without causing substantial impact on the service.
[0074] The traditional BFD interruption alarm of the dedicated line is implemented through network device logs, and the specific steps are as follows: first, the network device sends the network device logs to the monitoring system; then, the monitoring system parses the network device logs; finally, if there is relevant information about the BFD interruption of the dedicated line in the network device logs, the corresponding alarm information is immediately generated, and the network operation personnel is prompted to check the corresponding dedicated line.
[0075] That is, in the traditional BFD interruption alarm mechanism of the dedicated line, when BFD detects any interruption, the network device logs will record the interruption event and trigger the monitoring system to generate alarm information. This mechanism does not distinguish the severity or duration of the interruption, so even a short and unimportant interruption will trigger an alarm.
[0076] Since each short interruption triggers an alarm, the network operation personnel may receive a large amount of unnecessary alarm information, making it difficult for the network operation personnel to distinguish which alarm information needs to be handled immediately and which can be ignored, and thus a lot of time and effort is needed to check and confirm.
[0077] Therefore, the prior art has the technical problem of frequent false alarms and high pressure on network operation personnel.
[0078] To solve the above technical problems, the inventors find that the BFD interruption alarm mechanism of the dedicated line realized by the network device log does not distinguish the severity or duration of the interruption, and any interruption of the dedicated line will trigger the corresponding alarm. Based on this, the inventors consider that the more common requirement is that the BFD interruption of the dedicated line has not been restored for a period of time, which may affect the service, and then the alarm information needs to be generated. Therefore, according to the preset time interval, the inventors determine the dedicated line that has been interrupted and has not been restored for a certain period of time by comparing the BFD states of the dedicated line at each time point, and then generate alarm information, thereby avoiding frequent false alarms and reducing the pressure on the operation and maintenance personnel.
[0079] The technical solutions of the present application and how the technical solutions of the present application solve the above technical problems will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of the present application will be described below with reference to the accompanying drawings.
[0080] Figure 1 Flowchart of the interruption detection method based on BFD state provided by the embodiments of the present application Figure 1 As shown in Figure 1 , the interruption detection method based on BFD state is applied to a network device, and the method comprises:
[0081] S101, establishing a dedicated line between the network device and a plurality of other network devices, and configuring a corresponding BFD session for each dedicated line.
[0082] Specifically, the network device actively sends a line connection request to other network devices to indicate that it wants to establish a dedicated line for communication. In the sent line connection request, the device information of the network device is included, which may include the identifier of the network device, the IP address, the authentication information, etc. The other network devices receiving the line connection request will use these device information to verify the identity and security of the network device initiating the line connection request, to ensure that only verified and trusted network devices can establish a connection.
[0083] After verification, the other network devices receiving the line connection request will send a connection response information back to the network device, if the connection response information indicates that the verification is successful and agrees to establish a connection, then the dedicated line will be established. Among them, the connection response information not only confirms the security of the network device initiating the line connection request, but also explicitly indicates that the other network devices receiving the line connection request agree to establish the dedicated line.
[0084] The private line refers to a fixed and dedicated communication channel used to ensure the stability and security of data transmission between the network device and other network devices. Configuring a BFD session on the private line means enabling the BFD protocol, which involves setting BFD parameters such as detection interval, timeout, etc. on the network interfaces of the network device and other network devices.
[0085] Through the BFD session, the network device can monitor the status of the private line in real time. For example, if the BFD packet is not received by the other network device at the other end within a preset time, the BFD considers that the connection has failed.
[0086] S102, obtaining a first BFD state of the BFD session at a current time point.
[0087] The first BFD state is a normal state or an interruption state. The normal state indicates that the BFD session is running normally, and the private line is unblocked and no problem is detected. The interruption state indicates that the BFD session detects a fault, which may be a private line interruption or a problem with the network device or other network devices.
[0088] In one possible implementation, a remote invocation command is sent from the data center to the network device through the network to obtain the first BFD state of all private lines in the network device at the current time point.
[0089] S103, obtaining a second BFD state at a first historical time point and a third BFD state at a second historical time point based on a preset time interval.
[0090] It can be understood that the BFD state is obtained according to a predefined preset time interval, which can be fixed, such as a few seconds, a few minutes, etc. Relative to the current time point, the first historical time point and the second historical time point are both past time points, and the second historical time point is the earliest time point, and the first historical time point is after the second historical time point but before the current time point.
[0091] S104, performing interruption detection on each private line based on the first BFD state, the second BFD state and the third BFD state, and performing alarm on the private line in interruption.
[0092] Explained, the dedicated line outage detection process involves comparing and analyzing the first, second, and third BFD states to identify whether the dedicated line transitions from a normal state to an outage state, or vice versa, within a certain time period, thus determining whether the dedicated line is currently out of service. If the dedicated line is out of service, an alarm is triggered, and a maintenance request is sent to relevant maintenance personnel. This alarm mechanism can be implemented in various ways, such as sending emails, SMS notifications, or generating alerts in the network management system.
[0093] Specifically, based on the first, second, and third BFD states obtained at preset time intervals, the interrupted dedicated lines are identified by comparing the third BFD state at the second historical time point with the second BFD state at the first historical time point. If these interrupted dedicated lines are still in an interrupted state at the current time point in the first BFD state, it is determined that these interrupted dedicated lines have not returned to normal after the preset time interval, and an alarm is generated to notify network operation and maintenance personnel to handle the situation.
[0094] It should be noted that the latest BFD status of all dedicated lines of the network device is obtained at preset time intervals, and the BFD status of the three time points from the current point is retained. The BFD status of the three time points is compared and judged according to the above logic. If the condition of not returning to normal after exceeding the preset time interval is met, an alarm is triggered.
[0095] For example, Figure 2 A flowchart illustrating the interruption detection method based on bidirectional forwarding detection (BFD) state provided in this application embodiment. Figure 2 ,like Figure 2 As shown, the BFD status of all dedicated lines of the network device is obtained at preset time intervals by performing the following steps:
[0096] S201. Obtain the third BFD status of the dedicated line of the network device at the second historical time point, and save the third BFD status in the first file.
[0097] S202. Obtain the second BFD status of the dedicated line of the network device at the first historical time point, and save the second BFD status in the second file.
[0098] S203. Obtain the first BFD state of the dedicated line of the network device at the current time point and save the first BFD state in the third file.
[0099] S204. Read the first file and the second file, filter out the dedicated lines whose third BFD state in the first file is normal, but whose second BFD state in the second file is interrupted, and generate the corresponding dedicated line list.
[0100] S205, reading the third file, judging whether the first BFD state of the dedicated line in the third file is still the interruption state; if yes, executing S206; if no, executing S207;
[0101] S206, triggering the alarm, prompting the dedicated line list of interruption not recovered;
[0102] S207, after the preset time interval, deleting the first file, renaming the second file to the first file, renaming the third file to the second file; continue to obtain the BFD state of the dedicated line of the network device at the current time point, and save the BFD state as the third file, form a new first file, second file and third file, return to S204.
[0103] Further, the steps shown in the above are explained. For example, it is assumed that the network device has 5 dedicated lines, which are dedicated line 1, dedicated line 2, dedicated line 3, dedicated line 4 and dedicated line 5. Figure 3
[0104] Specifically, the third BFD state of the above-mentioned 5 dedicated lines at the second historical time point is respectively: dedicated line 1 normal, dedicated line 2 normal, dedicated line 3 normal, dedicated line 4 normal, dedicated line 5 normal.
[0105] The second BFD state at the first historical time point is respectively: dedicated line 1 normal, dedicated line 2 interruption, dedicated line 3 interruption, dedicated line 4 normal, dedicated line 5 interruption.
[0106] The first BFD state at the current time point is respectively: dedicated line 1 normal, dedicated line 2 interruption, dedicated line 3 normal, dedicated line 4 normal, dedicated line 5 interruption.
[0107] Therefore, it can be seen that the dedicated line 2, the dedicated line 3 and the dedicated line 5 are in the normal state at the first historical time point, but the second BFD state at the second historical time point is interruption, so the corresponding dedicated line list is generated based on the dedicated line 2, the dedicated line 3 and the dedicated line 5. Further, the first BFD state of the dedicated line 3 at the current time point is normal, indicating that the dedicated line 3 recovers to normal within the preset time interval. But the first BFD state of the dedicated line 2 and the dedicated line 5 at the current time point is still interruption, indicating that the dedicated line 2 and the dedicated line 5 still do not recover to normal after the preset time interval, which needs to be alarmed.
[0108] Next, on the basis of the above example, the interruption detection process of the dedicated line is further described.
[0109] Suppose that the third BFD states of the five dedicated lines at the second historical time point are as follows: dedicated line 1 is normal, dedicated line 2 is interrupted, dedicated line 3 is normal, dedicated line 4 is normal, and dedicated line 5 is normal.
[0110] The second BFD states at the first historical time point are as follows: dedicated line 1 is normal, dedicated line 2 is interrupted, dedicated line 3 is interrupted, dedicated line 4 is normal, and dedicated line 5 is interrupted.
[0111] The first BFD states at the current time point are as follows: dedicated line 1 is normal, dedicated line 2 is interrupted, dedicated line 3 is normal, dedicated line 4 is normal, and dedicated line 5 is normal.
[0112] As can be seen, dedicated line 3 and dedicated line 5 should be included in the dedicated line list. Although dedicated line 2 is interrupted at the second BFD state at the first historical time point, it is interrupted at the third BFD state at the second historical time point. Therefore, dedicated line 2 does not belong to the interruption at the first historical time point and is not included in the dedicated line list. However, since dedicated line 2 is always interrupted, although no alarm indicating that it has not been restored to normal for more than a preset time interval needs to be generated, it still needs to prompt the relevant operation and maintenance personnel to handle.
[0113] In summary, if the third BFD state is interrupted, the second BFD state is interrupted, and the first BFD state is interrupted, it is determined that the dedicated line is in the first interruption case, and first alarm information is generated and sent to request the relevant operation and maintenance personnel to confirm whether the dedicated line continues to be used. If the third BFD state is normal, the second BFD state is interrupted, and the first BFD state is interrupted, it is determined that the dedicated line is in the second interruption case, and second alarm information is generated and sent to request the relevant operation and maintenance personnel to send a repair request. If the third BFD state is normal, the second BFD state is interrupted, and the first BFD state is normal, it indicates that the dedicated line has a short interruption and does not affect the business, and no alarm is generated.
[0114] It needs to be explained that the dedicated line fault, network device or other network device problem may cause the second interruption case to occur. Therefore, when the second interruption case occurs, targeted alarm needs to be performed in combination with the possible causes of the interruption.
[0115] In a possible implementation, the total number of dedicated lines in the second interruption case is obtained, and if the total number is greater than or equal to a preset threshold, it is determined that the network device has a fault. In the case where the network device has a fault, a standby network device can be enabled to establish a dedicated line with a plurality of other network devices, and a second alarm information representing a first repair request can be sent to a network device operation and maintenance personnel responsible for the network device.
[0116] If the total number is less than the preset threshold, it indicates that the other network device at the opposite end fails or the private line fails. At this time, the second alarm information representing a second maintenance request needs to be sent to the other network device operation and maintenance personnel responsible for the other network device, or the second alarm information representing a third maintenance request needs to be sent to the private line operation and maintenance personnel responsible for the private line.
[0117] It needs to be noted that when the second interruption case occurs, the specific location of the failure is determined by comparing the total number of the private lines in the second interruption case with the preset threshold. In another possible implementation, if whether the first interruption case or the second interruption case occurs is not considered, the specific location of the failure can be determined by analyzing the private line list.
[0118] Specifically, the number of the private lines included in the private line list is obtained. If the number is greater than or equal to a certain threshold, it is determined that the network device fails. If the number is less than the threshold, it indicates that the other network device at the opposite end fails or the private line fails.
[0119] It should be understood that the private lines included in the private line list are all in the interruption state that fails to recover normally after exceeding the preset time interval. In order to further reduce the alarm, in a possible implementation, a private line alarm information list can be formed based on the private line list and the private lines included therein, and then the private line alarm information list is sent to the relevant operation and maintenance personnel for processing. The relevant operation and maintenance personnel can be the network device operation and maintenance personnel responsible for the network device, the other network device operation and maintenance personnel responsible for the other network device at the opposite end, or the private line operation and maintenance personnel responsible for the private line, which is not specifically limited here.
[0120] In the process of forming the private line alarm information list based on the private line list and the private lines included therein, the information of the private line list can be enriched based on the configuration information library of each private line in the private line list, specifically including adding the name of the institution where the other network device at the opposite end connected by each private line is located, and the operation and maintenance personnel responsible for each private line and the corresponding contact information.
[0121] The application provides a method for interrupt detection based on a bidirectional forwarding detection (BFD) state, which is applied to a network device. First, a dedicated line is established between the network device and other network devices, and a corresponding BFD session is configured for each dedicated line. Then, a first BFD state of the BFD session at a current time point is obtained, and based on a preset time interval, a second BFD state of the BFD session at a first historical time point and a third BFD state of the BFD session at a second historical time point are obtained. The BFD state is a normal state or an interrupt state; the first historical time point and the second historical time point are time points located before the current time point, and the first historical time point is located between the current time point and the second historical time point. Next, the first BFD state, the second BFD state and the third BFD state are compared and analyzed to determine different interrupt conditions of the dedicated line. Finally, targeted alarms are given in combination with the different interrupt conditions of the dedicated line. As can be seen, the BFD states of the dedicated line at multiple time points are recorded based on the preset time interval, interrupt detection of the dedicated line is realized, and the dedicated line in an interrupt state and not restored to normal within the preset time interval is obtained. The dedicated line not restored to normal within the preset time interval is alarmed, invalid alarms caused by interrupts that can be restored to normal within a short time and do not affect services are avoided, the accuracy of interrupt alarms is improved, and the pressure on network operation and maintenance personnel is reduced.
[0122] Figure 3 A structure diagram of a device for interrupt detection based on a bidirectional forwarding detection (BFD) state provided by an embodiment of the application is shown in FIG. 3. The device for interrupt detection based on a BFD state 300 includes a creating module 301, an obtaining module 302, a detecting module 303 and an alarming module 304. Figure 4
[0123] The creating module 301 is configured to establish a dedicated line between the network device and multiple other network devices, and configure a corresponding BFD session for each dedicated line.
[0124] The obtaining module 302 is configured to obtain a first BFD state of the BFD session at a current time point. The first BFD state is a normal state or an interrupt state.
[0125] The obtaining module 302 is further configured to obtain a second BFD state of the BFD session at a first historical time point and a third BFD state of the BFD session at a second historical time point based on a preset time interval. The first historical time point and the second historical time point are time points located before the current time point, and the first historical time point is located between the current time point and the second historical time point.
[0126] The detection module 303 is configured to perform interruption detection on each dedicated line based on the first BFD state, the second BFD state, and the third BFD state.
[0127] The alarm module 304 is configured to perform alarm on the dedicated line in interruption.
[0128] In a possible design, the detection module 303 further includes an analysis module 305 configured to analyze the first BFD state, the second BFD state, and the third BFD state, and determine whether the dedicated line is in interruption.
[0129] The alarm module 304 is further configured to perform alarm and send a maintenance request to a relevant operation and maintenance personnel if the dedicated line is in interruption.
[0130] In a possible design, the alarm module 304 further includes a determination module 306 configured to determine that the dedicated line is in a first interruption case if the third BFD state is the interruption state, the second BFD state is the interruption state, and the first BFD state is the interruption state.
[0131] The alarm module 304 is further configured to generate and send first alarm information, where the first alarm information indicates a request for the relevant operation and maintenance personnel to confirm whether the dedicated line is continued to be used.
[0132] In a possible design, the determination module 306 is further configured to determine that the dedicated line is in a second interruption case if the third BFD state is the normal state, the second BFD state is the interruption state, and the first BFD state is the interruption state.
[0133] The alarm module 304 is further configured to generate and send second alarm information, where the second alarm information indicates a request for the relevant operation and maintenance personnel to send a maintenance request.
[0134] In a possible design, the acquisition module 302 is further configured to acquire a total number of the dedicated lines in the second interruption case.
[0135] The determination module 306 is further configured to determine that the network device is faulty if the total number is greater than or equal to a preset threshold.
[0136] The creation module 301 is further configured to enable the standby network device to establish the dedicated line with the plurality of other network devices.
[0137] In a possible design, the alarm module 304 is further configured to:
[0138] send, if the total number is greater than or equal to the preset threshold, the second alarm information indicating a first maintenance request to a network device operation and maintenance personnel responsible for the network device.
[0139] If the total number is less than the preset threshold, second alarm information representing a second maintenance request is sent to an other network device operation and maintenance personnel responsible for the other network device, or second alarm information representing a third maintenance request is sent to a special line operation and maintenance personnel responsible for the special line.
[0140] In a possible design, the creating module 301 further includes a sending module 307 and a receiving module 308. The sending module 307 is configured to send a line connection request to the other network device. The line connection request includes the device information of the network device. The device information in the line connection request is used for checking the security of the device.
[0141] The receiving module 308 is configured to receive connection response information sent by the other network device, and establish a special line between the network device and the other network device. The connection response information indicates that the network device sending the line connection request is secure and agrees to establish the special line with the network device sending the line connection request.
[0142] The interrupt detection apparatus based on the BFD state provided by the embodiments of the present application can be used to execute the interrupt detection method based on the BFD state, and has similar implementation principles and technical effects, which will not be described here again.
[0143] It should be noted that the division of each module of the above apparatus is only a logical function division, and all or part of the modules can be integrated into one physical entity, or can be physically separated. Moreover, all of the modules can be implemented in the form of software invoked by a processing element, or all of the modules can be implemented in the form of hardware, or part of the modules are implemented in the form of software invoked by a processing element, and part of the modules are implemented in the form of hardware. In addition, all or part of the modules can be integrated together, or can be independently implemented. The processing element mentioned herein can be an integrated circuit having a signal processing capability. In the implementation process, each step of the above method or each module can be completed by an integrated logic circuit of hardware in the processing element or an instruction in the form of software.
[0144] Figure 4 A hardware structure diagram of an electronic device provided by the present application is shown in FIG. 4. As shown in FIG. 4, the electronic device 400 includes:
[0145] a processor 401 and a memory 402;
[0146] The memory stores computer execution instructions.
[0147] The processor executes the computer execution instructions stored in the memory 402, so that the electronic device executes the interrupt detection method based on the BFD state as described above.
[0148] It should be understood that the processor 401 described above can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in combination with the application can be directly embodied as hardware processor execution, or executed by a combination of hardware and software modules in the processor. The memory 402 can include a high-speed random access memory (RAM), and can also include a non-volatile memory (NVM), such as at least one disk memory, and can also be a U disk, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.
[0149] The electronic device provided by the embodiments of the present application can be used to execute the interruption detection method based on the BFD state provided by any one of the method embodiments described above, and the implementation principle and technical effects are similar, and will not be described here.
[0150] The embodiments of the present application also correspondingly provide a computer readable storage medium, and the computer readable storage medium stores computer execution instructions. When the computer execution instructions are executed by the processor, the computer execution instructions are used to implement the interruption detection method based on the BFD state as described above.
[0151] The embodiments of the present application also correspondingly provide a computer program product, and the computer program product includes a computer program. When the computer program is executed by the processor, the computer program is used to implement the interruption detection method based on the BFD state as described above.
[0152] It should be noted that for each of the method embodiments described above, in order to simply describe, it is expressed as a combination of a series of actions, but those skilled in the art should know that the present application is not limited by the order of the actions described, because according to the present application, certain steps can be performed in other order or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
[0153] It should be understood that the device embodiments described above are merely illustrative, and the device of the present application can also be implemented in other manners. For example, the division of the units / modules in the above embodiments is merely a logical function division, and the actual implementation can be in another manner. For example, two or more units / modules can be combined, or some features can be ignored or not executed.
[0154] It should be understood that the device embodiments described above are merely illustrative, and the device of the present application can also be implemented in other manners. For example, the division of the units / modules in the above embodiments is merely a logical function division, and the actual implementation can be in another manner. For example, two or more units / modules can be combined, or some features can be ignored or not executed.
[0155] In addition, unless specifically stated, each functional unit / module in each embodiment of the present application can be integrated in one unit / module, or each unit / module can exist physically, or two or more units / modules can be integrated together. The integrated unit / module can be implemented in the form of hardware or in the form of a software program module.
[0156] If the integrated unit / module is implemented in the form of hardware, the hardware can be a digital circuit, an analog circuit, etc. The physical implementation of the hardware structure includes but is not limited to transistors, memristors, etc. Unless specifically stated, the processor can be any appropriate hardware processor, such as a CPU, a GPU, an FPGA, a DSP, and an ASIC, etc. Unless specifically stated, the storage unit can be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory (RRAM), a dynamic random access memory (DRAM), a static random access memory (SRAM), an enhanced dynamic random access memory (EDRAM), a high-bandwidth memory (HBM), a hybrid memory cube (HMC), etc.
[0157] If the integrated units / modules are implemented in the form of software program modules and sold or used as independent products, they can be stored in a computer readable memory. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a memory and includes a number of instructions for causing a computer device (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the embodiments of the method of the present application. The aforementioned memory includes: a U disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store program codes.
[0158] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above embodiments are described, however, as long as the combinations of the technical features do not exist contradictory, they should be considered as the scope of the present application.
[0159] Other embodiments of the application will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed herein. The application is intended to cover any variations, uses or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice in the art to which the application pertains or can relate. The specification and examples are to be regarded as exemplary only, and the true scope and spirit of the application are indicated by the following claims.
[0160] It should be understood that the application is not limited to the precise construction that has been described above and shown in the accompanying drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the application. The scope of the application is limited only by the appended claims.
Claims
1. A method for detecting interruption based on a bidirectional forwarding detection (BFD) status, the method comprising: Applied to network devices, the method includes: Establish dedicated lines between the network device and multiple other network devices, and configure corresponding bidirectional forwarding detection (BFD) sessions for each dedicated line; Obtain the first BFD state of the BFD session at the current time point; wherein the first BFD state is either a normal state or an interrupted state; Based on a preset time interval, the BFD session acquires a second BFD state at a first historical time point and a third BFD state at a second historical time point; wherein the first historical time point and the second historical time point are time points located before the current time point, and the first historical time point is located between the current time point and the second historical time point; Based on the first BFD state, the second BFD state, and the third BFD state, interruption detection is performed on each dedicated line, and an alarm is issued for the dedicated line that is interrupted.
2. The method of claim 1, wherein, The process of detecting interruptions on each dedicated line based on the first BFD state, the second BFD state, and the third BFD state, and issuing alarms for dedicated lines that are interrupted, includes: The first BFD state, the second BFD state, and the third BFD state are analyzed to determine whether the dedicated line is interrupted. If the dedicated line is interrupted, an alarm will be triggered and a maintenance request will be sent to the relevant maintenance personnel.
3. The method of claim 2, wherein, If the dedicated line is interrupted, an alarm will be triggered, and a maintenance request will be sent to the relevant maintenance personnel, including: If the third BFD state is an interrupted state, the second BFD state is an interrupted state, and the first BFD state is an interrupted state, then the dedicated line is determined to be in the first interruption state. Generate and issue a first alarm message; wherein, the first alarm message indicates that relevant operation and maintenance personnel should confirm whether the dedicated line should continue to be used.
4. The method of claim 2, wherein, The method further includes: If the third BFD state is normal, the second BFD state is interrupted, and the first BFD state is interrupted, then the dedicated line is determined to be in the second interruption state. Generate and issue a second alarm message; wherein the second alarm message indicates that relevant operation and maintenance personnel are requested to send a maintenance request.
5. The method of claim 4, wherein, Before generating and issuing the second alarm message, the following is also included: Obtain the total number of dedicated lines in the second interruption condition; If the total number is greater than or equal to a preset threshold, it is determined that the network device has failed, and a backup network device is activated to establish a dedicated line with the other network devices.
6. The method according to claim 5, characterized in that, The generation and issuance of the second alarm message includes: If the total number is greater than or equal to the preset threshold, a second alarm message representing a first maintenance request is sent to the network equipment maintenance personnel responsible for the network equipment. If the total number is less than the preset threshold, a second alarm message representing a second maintenance request is sent to the other network equipment maintenance personnel responsible for the other network equipment, or a second alarm message representing a third maintenance request is sent to the dedicated line maintenance personnel responsible for the dedicated line.
7. The method according to any one of claims 1-6, characterized in that, The establishment of dedicated lines between the network device and multiple other network devices includes: Send a line connection request to the other network devices; wherein the line connection request includes device information of the network devices; the device information in the line connection request is used to verify device security; The system receives connection response information sent by the other network devices and establishes a dedicated line with the other network devices; wherein the connection response information indicates that the network device that issued the line connection request is secure and agrees to establish a dedicated line with the network device that issued the line connection request.
8. An interrupt detection device based on bidirectional forwarding detection (BFD) state, characterized in that, Applied to network devices, the device includes: A module is created to establish dedicated lines between the network device and multiple other network devices, and to configure a corresponding bidirectional forwarding detection (BFD) session for each dedicated line; The acquisition module is used to acquire the first BFD state of the BFD session at the current time point; wherein the first BFD state is a normal state or an interrupted state; The acquisition module is further configured to acquire, based on a preset time interval, the second BFD state of the BFD session at a first historical time point and the third BFD state at a second historical time point; wherein, the first historical time point and the second historical time point are time points located before the current time point, and the first historical time point is located between the current time point and the second historical time point; The detection module is used to perform interruption detection on each dedicated line based on the first BFD state, the second BFD state, and the third BFD state; The alarm module is used to issue alarms for dedicated lines that are interrupted.
9. An interrupt detection device based on bidirectional forwarding detection (BFD) state, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes the computer execution instructions stored in the memory to implement the interrupt detection method based on bidirectional forwarding detection (BFD) state as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the interrupt detection method based on bidirectional forwarding detection (BFD) state as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Fault identification method and device, electronic equipment and readable storage medium
CN111666171A
Abnormal state alarm method and device, electronic equipment and storage medium
CN115037596A