Interrupt detection method, device and equipment based on BFD (Bidirectional Forwarding Detection) state
By establishing a dedicated line in the network device and configuring a BFD session, obtaining information about the BFD status at multiple time points, performing interrupt detection and alarm, the problem of frequent false alarms in the prior art is solved, and the accuracy and operation and maintenance efficiency of alarms are improved.
Patent Information
- Application Number
- CN202411752088.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-02-28
- Estimated Expiration
- 2044-11-29
AI Technical Summary
In the prior art, false alarms occur frequently, resulting in high pressure on network operation and maintenance personnel.
By establishing a dedicated line in a network device and configuring a BFD session, information about the BFD status at multiple time points is obtained, interrupt detection is performed based on preset time intervals, and alarms are generated only for dedicated lines that are interrupted and not restored.
It reduces the frequent occurrence of false alarms, improves the accuracy of interrupted alarms, and reduces the pressure on network operation and maintenance personnel.
Smart Images

Figure CN119544556A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network communication technology, and in particular to a method, device and equipment for detecting an interruption based on a bidirectional forwarding detection (BFD) state. Background Art
[0002] The network equipment in the data center is usually connected to multiple external network dedicated lines, carrying multiple services that interact with external network devices. The dedicated lines are usually configured with Bidirectional Forwarding Detection (BFD) sessions to quickly detect the status of the dedicated lines. When a dedicated line is interrupted, the BFD status of the dedicated line will become unavailable in a short time, that is, the interrupted state.
[0003] The existing BFD detection mechanism of the dedicated line directly sends the network device log to the monitoring system through the network device, and the monitoring system further parses the network device log. If there is relevant information about the BFD interruption of the dedicated line in the network device log, a corresponding alarm is immediately generated to prompt the network operation and maintenance personnel to check the corresponding dedicated line.
[0004] Therefore, the existing technology easily causes frequent false alarms and increases the pressure on network operation and maintenance personnel. Summary of the invention
[0005] The present application provides a method, device and equipment for detecting an interruption based on a bidirectional forwarding detection (BFD) state, so as to solve the technical problems in the prior art of frequent false alarms and high pressure on network operation and maintenance personnel.
[0006] In a first aspect, the present application provides an interruption detection method based on bidirectional forwarding detection (BFD) state, which is applied to a network device, and the method includes:
[0007] Establishing a dedicated line between the network device and a plurality of other network devices, and configuring a corresponding bidirectional forwarding detection BFD session for each dedicated 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 interrupted state;
[0009] Based on a preset time interval, obtaining a second BFD state of the BFD session 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 before the current time point, and the first historical time point is 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 in interruption.
[0011] In one possible design, the performing interruption detection on each dedicated line based on the first BFD state, the second BFD state, and the third BFD state, and issuing an alarm for the interrupted dedicated line includes:
[0012] Analyze the first BFD state, the second BFD state, and the third BFD state to determine whether the dedicated line is interrupted;
[0013] If the dedicated line is interrupted, an alarm is issued and a maintenance request is sent to relevant operation and maintenance personnel.
[0014] In a possible design, if the dedicated line is interrupted, an alarm is issued and a maintenance request is sent to relevant operation and maintenance personnel, including:
[0015] If the third BFD state is an interruption state, the second BFD state is an interruption state, and the first BFD state is an interruption state, determining that the dedicated line is in a first interruption state;
[0016] Generate and issue a first alarm message; wherein, the first alarm message indicates that the relevant operation and maintenance personnel are requested to confirm whether the dedicated line continues to be used.
[0017] In one possible design, the method further includes:
[0018] If the third BFD state is a normal state, the second BFD state is an interrupted state, and the first BFD state is an interrupted state, determining that the dedicated line is in a second interruption state;
[0019] Generate and issue a second alarm message; wherein, the second alarm message indicates that the relevant operation and maintenance personnel are requested to send a maintenance request.
[0020] In a possible design, before generating and issuing the second warning information, the method further includes:
[0021] Acquire the total number of dedicated lines in the second interruption situation;
[0022] If the total number is greater than or equal to a preset threshold, it is determined that the network device fails, and a backup network device is enabled to establish a dedicated line with the multiple other network devices.
[0023] In a possible design, the generating and issuing of the second warning information includes:
[0024] If the total number is greater than or equal to the preset threshold, sending a second alarm message representing a first maintenance request to a network device operation and maintenance personnel responsible for the network device;
[0025] If the total number is less than the preset threshold, a second alarm message representing a second maintenance request is sent to other network device operation and maintenance personnel responsible for the other network devices, or a second alarm message representing a third maintenance request is sent to a dedicated line operation and maintenance personnel responsible for the dedicated line.
[0026] In one possible design, establishing a dedicated line between the network device and a plurality of other network devices includes:
[0027] Sending a line connection request to the other network device; wherein the line connection request includes device information of the network device; the device information in the line connection request is used to verify the security of the device;
[0028] Receive connection response information sent by the other network device, and establish a dedicated line with the other network device; wherein the connection response information indicates that the network device that issued the line connection request is safe and agrees to establish a dedicated line with the network device that issued the line connection request.
[0029] In a second aspect, the present application provides an interruption detection device based on bidirectional forwarding detection (BFD) state, which is applied to a network device, and the device includes:
[0030] A creation module is used to establish a dedicated line between the network device and multiple other network devices, and configure a corresponding bidirectional forwarding detection BFD session for each dedicated line;
[0031] An acquisition module, configured to acquire a first BFD state of the BFD session at a current time point; wherein the first BFD state is a normal state or an interrupted state;
[0032] The acquisition module is further used to acquire, 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 at a second historical time point; wherein the first historical time point and the second historical time point are time points before the current time point, and the first historical time point is between the current time point and the second historical time point;
[0033] a detection module, configured to perform interruption detection on each dedicated line based on the first BFD state, the second BFD state, and the third BFD state;
[0034] The alarm module is used to generate an alarm for a dedicated line that is interrupted.
[0035] In one possible design, the detection module further includes: an analysis module, configured to analyze the first BFD state, the second BFD state, and the third BFD state to determine whether the dedicated line is interrupted;
[0036] The alarm module is also used to issue an alarm if the dedicated line is interrupted and send a maintenance request to relevant operation and maintenance personnel.
[0037] In one possible design, the alarm module further includes: a determination module, configured to determine that the dedicated line is in a first interruption condition if the third BFD state is an interruption state, the second BFD state is an interruption state, and the first BFD state is an interruption state;
[0038] The alarm module is further used to generate and issue a first alarm message; wherein the first alarm message indicates that the relevant operation and maintenance personnel are requested to confirm whether the dedicated line continues to be used.
[0039] In one possible design, the determining module is further configured to determine that the dedicated line is in a second interruption state if the third BFD state is a normal state, the second BFD state is an interruption state, and the first BFD state is an interruption state;
[0040] The alarm module is further used to generate and issue a second alarm message; wherein the second alarm message indicates that the relevant operation and maintenance personnel are requested to send a maintenance request.
[0041] In a possible design, the acquisition module is further used to acquire the total number of dedicated lines in the second interruption situation;
[0042] The determination module is further configured to determine that a failure occurs in the network device if the total number is greater than or equal to a preset threshold;
[0043] The creation module is further used to enable the standby network device to establish dedicated lines with the multiple other network devices.
[0044] In a possible design, the alarm module is further used to:
[0045] If the total number is greater than or equal to the preset threshold, sending a second alarm message representing a first maintenance request to a network device operation and maintenance personnel responsible for the network device;
[0046] If the total number is less than the preset threshold, a second alarm message representing a second maintenance request is sent to other network device operation and maintenance personnel responsible for the other network devices, or a second alarm message representing a third maintenance request is sent to a dedicated line operation and maintenance personnel responsible for the dedicated line.
[0047] In a possible design, the creation module further includes: a sending module and a receiving module.
[0048] The sending module is used to send a line connection request to the other network device; wherein the line connection request includes device information of the network device; the device information in the line connection request is used to verify the security of the device;
[0049] The receiving module is used to receive the connection response information sent by the other network device and establish a dedicated line with the other network device; wherein the connection response information indicates that the network device that issued the line connection request is safe and agrees to establish a dedicated line with the network device that issued the line connection request.
[0050] In a third aspect, the present application provides an electronic device, including:
[0051] Memory and processor;
[0052] Wherein, the memory stores computer-executable instructions;
[0053] The processor executes the computer-executable instructions stored in the memory to implement the interruption detection method based on the bidirectional forwarding detection BFD state as described in the first aspect and various possible implementation methods.
[0054] In a fourth aspect, the present application provides a computer-readable storage medium, which stores computer execution instructions. When the computer execution instructions are executed by a processor, they are used to implement the interruption detection method based on bidirectional forwarding detection BFD status as described in the above-mentioned first aspect and various possible implementation methods.
[0055] In a fifth aspect, the present application provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it implements the interruption detection method based on the bidirectional forwarding detection BFD state as described in the above first aspect and various possible implementation methods.
[0056] The interruption detection method, device and equipment based on bidirectional forwarding detection BFD state provided by the present application are applied to network equipment. First, a dedicated line is established between the network equipment and other network equipment, and a corresponding BFD session is configured for each dedicated line. Then, the first BFD state of the BFD session at the current time point is obtained, and based on the preset time interval, the second BFD state of the BFD session at the first historical time point and the third BFD state of the BFD session at the second historical time point are obtained. Among them, the BFD state is a normal state or an interrupted state; the first historical time point and the second historical time point are time points before the current time point, and the first historical time point is between the current time point and the second historical time point. Next, an interruption detection is performed on each dedicated line, and an alarm is issued for the dedicated line that is interrupted. It can be seen that by recording the BFD state of the dedicated line at multiple time points, the dedicated line is interrupted and detected, and then the dedicated line that is interrupted and has not been restored to normal within the preset time interval can be obtained. Alarming these dedicated lines that have not been restored to normal within the preset time interval avoids invalid alarms caused by interruptions that can be restored to normal in a short time and do not affect the service, while improving the accuracy of the interruption alarm and reducing the pressure on network operation and maintenance personnel. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0058] Figure 1 Schematic diagram of the process of the interruption detection method based on the bidirectional forwarding detection BFD state provided in the embodiment of the present application Figure 1 ;
[0059] Figure 2 Schematic diagram of the process of the interruption detection method based on the bidirectional forwarding detection BFD state provided in the embodiment of the present application Figure 2 ;
[0060] Figure 3 A schematic diagram of the structure of an interruption detection device based on bidirectional forwarding detection BFD state provided in an embodiment of the present application;
[0061] Figure 4 A hardware structure diagram of an electronic device provided in an embodiment of the present application.
[0062] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0063] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0064] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in sequences other than those illustrated or described herein, for example.
[0065] In the embodiments of the present application, the words "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0066] First, the terms involved in this application are explained:
[0067] Dedicated line: A network transmission line between two network devices.
[0068] BFD: is a network protocol designed to quickly detect line failures between two network devices (such as routers and 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 faults between a pair (two) of network devices and triggering the corresponding response mechanism when a fault is detected.
[0070] The network equipment in the data center usually interacts with external network equipment through multiple dedicated lines. These dedicated lines are used to support various business interactions between the data center and external network equipment, which may include data transmission, application service access, cloud service connection, etc. Among them, the network equipment in the data center includes routers, switches, firewalls, etc., which are responsible for managing and controlling data flow.
[0071] These dedicated lines are usually configured with BFD sessions to quickly detect the status of the dedicated lines, including whether the dedicated lines are running normally, whether there is an interruption, etc. It should be understood that BFD can detect line faults in a very short time (usually milliseconds).
[0072] Therefore, if a dedicated line is interrupted, the BFD session will quickly detect the interruption, mark the BFD status of the dedicated line as unavailable or interrupted, and send an alarm message through the data center's monitoring system to remind network operation and maintenance personnel to take action.
[0073] It can be seen that line jitter, operations on external network devices or operations on lines by operators will cause short BFD interruptions on dedicated lines. However, these short BFD interruptions may not be serious and can usually be automatically restored in a short time without causing substantial impact on services.
[0074] The BFD interruption alarm of the traditional dedicated line is realized through the network device log. The specific steps are as follows: first, the network device sends the network device log to the monitoring system; then, the monitoring system parses the network device log; finally, if there is relevant information about the BFD interruption of the dedicated line in the network device log, the corresponding alarm information is immediately generated, and the network operation and maintenance personnel are prompted to check the corresponding dedicated line.
[0075] That is, in the traditional BFD interruption alarm mechanism of dedicated lines, when BFD detects any interruption, the network device log will record the interruption event and trigger the monitoring system to generate an alarm message. 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 will trigger an alarm, network operation and maintenance personnel may receive a large number of unnecessary alarm messages, making it difficult for them to distinguish which alarm messages need to be handled immediately and which can be ignored, which requires them to spend a lot of time and energy to check and confirm.
[0077] Therefore, the existing technology has technical problems such as frequent false alarms and high pressure on network operation and maintenance personnel.
[0078] In response to the above technical problems, the inventors found that the BFD interruption alarm mechanism of the dedicated line implemented through the network equipment log does not distinguish the severity or duration of the interruption, and any interruption of the dedicated line will trigger a corresponding alarm. Based on this, the inventors took into account the more common demand that the BFD interruption of the dedicated line has not been restored after a period of time, which may have an impact on the business, and then an alarm message needs to be generated. Therefore, the inventors compared the BFD status of the dedicated line at each time point according to the preset time interval, determined the dedicated line that has been interrupted and has not been restored to normal within a certain period of time, and then regenerated the alarm information, avoiding the frequent occurrence of false alarms and reducing the pressure on operation and maintenance personnel.
[0079] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are 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 repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0080] Figure 1 Schematic diagram of the process of the interruption detection method based on the bidirectional forwarding detection BFD state provided in the embodiment of the present application Figure 1 ,like Figure 1 As shown, the interruption detection method based on the bidirectional forwarding detection BFD state is applied to a network device, and the method includes:
[0081] S101. Establish dedicated lines between a network device and multiple other network devices, and configure a corresponding BFD session for each dedicated line.
[0082] Specifically, a network device actively sends a line connection request to other network devices, indicating that it hopes to establish a dedicated line for communication. The sent line connection request contains the device information of the network device, which may include the identifier of the network device, the Internet Protocol (IP) address, authentication information, etc. The other network devices that receive the line connection request will use this device information to verify the identity and security of the network device that initiated the line connection request to ensure that only verified and trusted network devices can establish a connection.
[0083] After the verification is successful, the other network device that receives the line connection request will send a connection response message back to the network device. If the connection response message indicates that the verification is successful and agrees to establish the connection, the dedicated line will be established. The connection response message not only confirms the security of the network device that initiated the line connection request, but also clearly indicates that the other network device that receives the line connection request agrees to establish the dedicated line.
[0084] A dedicated line refers to a fixed, dedicated communication channel that is used to ensure the stability and security of data transmission between a network device and other network devices. Configuring a BFD session on a dedicated 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, network devices can monitor the status of the dedicated line in real time. For example, if the BFD message is not received by the other network device at the other end within the preset time, BFD will consider the connection to be faulty.
[0086] S102: Obtain a first BFD state of the BFD session at a current time point.
[0087] The first BFD state is a normal state or an interrupted state. The normal state indicates that the BFD session is running normally, the dedicated line is unblocked, and no problem is detected. The interrupted state indicates that the BFD session detects a fault, which may be a dedicated line interruption, or a problem with a network device or other network device.
[0088] In a possible implementation, a remote call command is sent from a data center to a network device through a network to obtain a first BFD state of all dedicated lines in the network device at a current time point.
[0089] S103: Based on a preset time interval, obtain a second BFD state of the BFD session at a first historical time point and a third BFD state at a second historical time point.
[0090] It can be understood that the acquisition of the BFD state is performed according to a predefined preset time interval, and the preset time interval 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, 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. Based on the first BFD state, the second BFD state, and the third BFD state, perform interruption detection on each dedicated line, and issue an alarm for the dedicated line that is in interruption.
[0092] Explanatory, the interruption detection process of the dedicated line involves comparative analysis of the first BFD state, the second BFD state, and the third BFD state to identify whether the dedicated line changes from a normal state to an interruption state, or from an interruption state to a normal state within a certain period of time, and then determines whether the dedicated line is interrupted. If the dedicated line is interrupted, an alarm is issued and a maintenance request is sent to the relevant operation and maintenance personnel. This alarm mechanism can be implemented in a variety of ways, such as sending emails, SMS notifications, generating alarms in the network management system, etc.
[0093] Specifically, according to the first BFD state, the second BFD state, and the third BFD state obtained based on the preset time interval, the interrupted dedicated lines are obtained by comparing the third BFD state of the dedicated line at the second historical time point with the second BFD state at the first historical time point. If the first BFD state of these interrupted dedicated lines at the current time point is still an interrupted state, it is determined that these interrupted dedicated lines have not returned to normal after exceeding the preset time interval, and then an alarm is generated to notify the network operation and maintenance personnel to handle it.
[0094] It should be noted that the latest BFD status of all dedicated lines of the network device will be obtained at preset time intervals, and the BFD status of the three time points before the current one will be retained. The above-mentioned comparison and judgment logic will be performed on the BFD status of the three time points. If the condition that the status has not returned to normal after exceeding the preset time interval is met, an alarm will be triggered.
[0095] For example, Figure 2 Schematic diagram of the process of the interruption detection method based on the bidirectional forwarding detection BFD state provided in the embodiment of the present application 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, obtaining a third BFD state of a dedicated line of a network device at a second historical time point, and saving the third BFD state in a first file;
[0097] S202, obtaining a second BFD state of a dedicated line of the network device at a first historical time point, and saving the second BFD state in a second file;
[0098] S203, obtaining a first BFD state of a dedicated line of the network device at a current time point, and saving the first BFD state in a third file;
[0099] S204, reading the first file and the second file, filtering out dedicated lines whose third BFD status in the first file is normal but whose second BFD status in the second file is interrupted, and generating a corresponding dedicated line list;
[0100] S205, read the third file, and determine whether the first BFD state of the dedicated line in the dedicated line list in the third file is still in the interrupted state; if so, execute S206; if not, execute S207;
[0101] S206, triggering an alarm to prompt a list of dedicated lines that have been interrupted and not restored;
[0102] S207. After a preset time interval, delete the first file, rename the second file to the first file, and rename the third file to the second file; continue to obtain the BFD status of the dedicated line of the network device at the current time point, and save the BFD status as the third file to form a new first file, second file and third file, and return to S204.
[0103] Further, yes Figure 2 For example, it is assumed that the network device has 5 dedicated lines, namely dedicated line 1, dedicated line 2, dedicated line 3, dedicated line 4, and dedicated line 5.
[0104] Specifically, the third BFD states of the five dedicated lines at the second historical time point are: dedicated line 1 is normal, dedicated line 2 is normal, dedicated line 3 is normal, dedicated line 4 is normal, and dedicated line 5 is normal.
[0105] The second BFD states at the first historical time point are: 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.
[0106] The first BFD states at the current time point are: 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 interrupted.
[0107] It can be seen that the third BFD status of dedicated line 2, dedicated line 3, and dedicated line 5 at the first historical time point is normal, but the second BFD status at the second historical time point is interrupted, so the corresponding dedicated line list is generated based on dedicated line 2, dedicated line 3, and dedicated line 5. Further, the first BFD status of dedicated line 3 at the current time point is normal, indicating that dedicated line 3 has returned to normal within the preset time interval. However, the first BFD status of dedicated line 2 and dedicated line 5 at the current time point is still interrupted, indicating that dedicated line 2 and dedicated line 5 have not returned to normal after exceeding the preset time interval, and an alarm is required.
[0108] Next, based on the above example, the interruption detection process of the dedicated line is further described.
[0109] Assume that the third BFD states of the five dedicated lines at the second historical time point are: 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: 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: 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] It can be seen that the dedicated line list should include dedicated line 3 and dedicated line 5. Although the second BFD status of dedicated line 2 at the first historical time point is interrupted, its third BFD status at the second historical time point is already interrupted. Therefore, dedicated line 2 does not belong to the interruption that occurred at the first historical time point and is not in the dedicated line list. However, since dedicated line 2 has been interrupted, although there is no need to generate an alarm indicating that it has not returned to normal after exceeding the preset time interval, it is still necessary to prompt the relevant operation and maintenance personnel to handle it.
[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 state, and a first alarm message is generated and issued to ask 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 state, and a second alarm message is generated and issued to ask the relevant operation and maintenance personnel to send a maintenance 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 been interrupted for a short time and does not affect the business, and no alarm is issued.
[0114] It should be explained that a failure of a dedicated line, a problem with a network device or other network device may cause the second interruption. Therefore, when the second interruption occurs, a targeted alarm needs to be issued in combination with the possible cause of the interruption.
[0115] In a possible implementation, the total number of dedicated lines in the second interruption situation is obtained, and if the total number is greater than or equal to a preset threshold, it is determined that the network device fails. In the case of a network device failure, a standby network device can be enabled to establish dedicated lines with multiple other network devices, and a second alarm information characterized as a first maintenance request is 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 other network devices at the opposite end have failed, or the dedicated line has failed. At this time, it is necessary to send a second alarm message representing a second maintenance request to other network device operation and maintenance personnel responsible for other network devices, or send a second alarm message representing a third maintenance request to the dedicated line operation and maintenance personnel responsible for the dedicated line.
[0117] It should be noted that, when the second interruption occurs, the specific location of the fault is determined by comparing the total number of dedicated lines in the second interruption with a preset threshold. In another possible implementation, regardless of whether the first interruption occurs or the second interruption occurs, the specific location of the fault can be determined by analyzing the dedicated line list.
[0118] Specifically, the number of dedicated lines included in the dedicated line list is obtained. If the number is greater than or equal to a certain threshold, it is determined that the network device has a fault; if the number is less than the above threshold, it indicates that other network devices on the other end have a fault, or the dedicated line has a fault.
[0119] It should be understood that the dedicated lines included in the dedicated line list are all in an interrupted state that has not returned to normal after exceeding the preset time interval. In order to further reduce alarms, in a possible implementation, a dedicated line alarm information list can be formed based on the dedicated line list and the dedicated lines included therein, and then the dedicated line alarm information list is sent to relevant operation and maintenance personnel for processing. Among them, the relevant operation and maintenance personnel can be network equipment operation and maintenance personnel responsible for network equipment, or other network equipment operation and maintenance personnel responsible for other network equipment at the opposite end, or dedicated line operation and maintenance personnel responsible for dedicated lines, which are not specifically limited here.
[0120] In the process of forming a dedicated line alarm information list based on the dedicated line list and the dedicated lines it includes, the information of the dedicated line list can be enriched based on the configuration information library of each dedicated line in the dedicated line list, specifically including the name of the organization where other network devices at the opposite end of each dedicated line connection are located, as well as the operation and maintenance personnel responsible for each dedicated line and the corresponding contact information.
[0121] The interruption detection method based on bidirectional forwarding detection BFD state provided in the present application is applied to network equipment. First, a dedicated line is established between the network equipment and other network equipment, and a corresponding BFD session is configured for each dedicated line. Then the first BFD state of the BFD session at the current time point is obtained, and based on the preset time interval, the second BFD state of the BFD session at the first historical time point and the third BFD state of the second historical time point are obtained. Among them, the BFD state is a normal state or an interrupted state; the first historical time point and the second historical time point are time points before the current time point, and the first historical time point is 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 the different interruption conditions corresponding to the dedicated line. Finally, targeted alarms are issued in combination with different interruption conditions of the dedicated line. It can be seen that the BFD state of the dedicated line at multiple time points is recorded according to the preset time interval, so as to realize the interruption detection of the dedicated line, and obtain the dedicated line that is interrupted and has not returned to normal within the preset time interval. Alarms are issued for dedicated lines that have not returned to normal within the preset time interval, avoiding invalid alarms caused by interruptions that can be restored to normal in a short time and do not affect business. This improves the accuracy of interruption alarms and reduces the pressure on network operation and maintenance personnel.
[0122] Figure 3 A schematic diagram of the structure of an interruption detection device based on bidirectional forwarding detection BFD state provided in an embodiment of the present application, such as Figure 3 As shown, the interruption detection device 300 based on bidirectional forwarding detection BFD state includes: a creation module 301, an acquisition module 302, a detection module 303, and an alarm module 304;
[0123] The creation module 301 is used to establish a dedicated line between the network device and multiple other network devices, and configure a corresponding bidirectional forwarding detection BFD session for each dedicated line;
[0124] The acquisition module 302 is used to acquire a first BFD state of the BFD session at a current time point; wherein the first BFD state is a normal state or an interrupted state;
[0125] The acquisition module 302 is further used to acquire, 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 at a second historical time point; wherein the first historical time point and the second historical time point are time points before the current time point, and the first historical time point is between the current time point and the second historical time point;
[0126] A detection module 303, 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 used to generate an alarm for a dedicated line that is interrupted.
[0128] In one 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 to determine whether the dedicated line is interrupted;
[0129] The alarm module 304 is also used to generate an alarm if the dedicated line is interrupted, and send a maintenance request to the relevant operation and maintenance personnel.
[0130] In one possible design, the alarm module 304 further includes: a determination module 306, configured to determine that the dedicated line is in a first interruption condition if the third BFD state is an interruption state, the second BFD state is an interruption state, and the first BFD state is an interruption state;
[0131] The alarm module 304 is further used to generate and issue a first alarm message; wherein the first alarm message indicates that the relevant operation and maintenance personnel are requested to confirm whether the dedicated line can continue to be used.
[0132] In one possible design, the determination module 306 is further configured to determine that the dedicated line is in a second interruption condition if the third BFD state is a normal state, the second BFD state is an interruption state, and the first BFD state is an interruption state;
[0133] The alarm module 304 is further used to generate and send out a second alarm message; wherein the second alarm message indicates that the relevant operation and maintenance personnel are requested to send a maintenance request.
[0134] In one possible design, the acquisition module 302 is further configured to acquire the total number of dedicated lines in the second interruption condition;
[0135] The determination module 306 is further configured to determine that a network device fails if the total number is greater than or equal to a preset threshold;
[0136] The creation module 301 is also used to enable the standby network device to establish dedicated lines with multiple other network devices.
[0137] In one possible design, the alarm module 304 is further configured to:
[0138] If the total number is greater than or equal to a preset threshold, sending a second alarm message representing 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, a second alarm message representing a second maintenance request is sent to other network device operation and maintenance personnel responsible for other network devices, or a second alarm message representing a third maintenance request is sent to dedicated line operation and maintenance personnel responsible for dedicated lines.
[0140] In a possible design, the creation module 301 further includes: a sending module 307 and a receiving module 308, wherein the sending module 307 is used to send a line connection request to other network devices; wherein the line connection request includes device information of the network device; and the device information in the line connection request is used to verify the security of the device;
[0141] The receiving module 308 is used to receive connection response information sent by other network devices and establish a dedicated line with other network devices; wherein the connection response information indicates that the network device that issued the line connection request is safe and agrees to establish a dedicated line with the network device that issued the line connection request.
[0142] The interruption detection device based on bidirectional forwarding detection BFD status provided in the embodiment of the present application can be used to execute the interruption detection method based on bidirectional forwarding detection BFD status in any of the above embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0143] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware. In addition, all or part of these modules can be integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0144] Figure 4 This is a hardware structure diagram of the electronic device provided in this application. Figure 4 As shown, the electronic device 400 includes:
[0145] Processor 401 and memory 402;
[0146] Memory stores computer-executable instructions;
[0147] The processor executes the computer-executable instructions stored in the memory 402 , so that the electronic device executes the above-mentioned interruption detection method based on the BFD state.
[0148] It should be understood that the processor 401 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), or application-specific integrated circuits (ASIC). A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor. The memory 402 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a disk, or an optical disk.
[0149] The electronic device provided in the embodiment of the present application can be used to execute the interruption detection method based on bidirectional forwarding detection BFD status provided in any of the above method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0150] The embodiment of the present application also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the above-mentioned interruption detection method based on bidirectional forwarding detection BFD status.
[0151] The embodiment of the present application also provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it is used to implement the above-mentioned interruption detection method based on the bidirectional forwarding detection BFD state.
[0152] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware 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 further noted that, although the various steps in the flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0154] It should be understood that the above-mentioned device embodiments are only illustrative, and the device of the present application can also be implemented in other ways. For example, the division of units / modules in the above-mentioned embodiments is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.
[0155] In addition, unless otherwise specified, each functional unit / module in each embodiment of the present application may be integrated into one unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The above-mentioned integrated unit / module may 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 may be a digital circuit, an analog circuit, etc. The physical implementation of the hardware structure includes but is not limited to transistors, memristors, etc. If not specifically stated, the processor may be any appropriate hardware processor, such as a CPU, a GPU, an FPGA, a DSP, an ASIC, etc. If not specifically stated, the storage unit may be any appropriate magnetic storage medium or magneto-optical storage medium, such as a resistive random access memory RRAM (Resistive Random Access Memory), a dynamic random access memory DRAM (Dynamic Random Access Memory), a static random access memory SRAM (Static Random-Access Memory), an enhanced dynamic random access memory EDRAM (Enhanced Dynamic Random Access Memory), a high-bandwidth memory HBM (High-Bandwidth Memory), a hybrid memory cube HMC (Hybrid Memory Cube), etc.
[0157] If the integrated unit / module is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0158] In the above embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0159] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0160] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for detecting an interruption based on a bidirectional forwarding detection (BFD) state, characterized in that: Applied to a network device, the method comprises: Establishing a dedicated line between the network device and a plurality of other network devices, and configuring a corresponding bidirectional forwarding detection BFD session for each dedicated line; 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 interrupted state; Based on a preset time interval, obtaining a second BFD state of the BFD session 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 before the current time point, and the first historical time point is 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 in interruption.
2. The method according to claim 1, characterized in that The performing interruption detection on each dedicated line based on the first BFD state, the second BFD state, and the third BFD state, and issuing an alarm on the dedicated line that is interrupted, includes: Analyze the first BFD state, the second BFD state, and the third BFD state to determine whether the dedicated line is interrupted; If the dedicated line is interrupted, an alarm is issued and a maintenance request is sent to the relevant operation and maintenance personnel.
3. The method according to claim 2, characterized in that If the dedicated line is interrupted, an alarm is issued and a maintenance request is sent to relevant operation and maintenance personnel, including: If the third BFD state is an interruption state, the second BFD state is an interruption state, and the first BFD state is an interruption state, determining that the dedicated line is in a first interruption state; Generate and issue a first alarm message; wherein, the first alarm message indicates that the relevant operation and maintenance personnel are requested to confirm whether the dedicated line continues to be used.
4. The method according to claim 2, characterized in that: The method further comprises: If the third BFD state is a normal state, the second BFD state is an interrupted state, and the first BFD state is an interrupted state, determining that the dedicated line is in a second interrupted state; Generate and issue a second alarm message; wherein, the second alarm message indicates that the relevant operation and maintenance personnel are requested to send a maintenance request.
5. The method according to claim 4, characterized in that Before generating and sending the second warning information, the method further includes: Acquire the total number of dedicated lines in the second interruption situation; If the total number is greater than or equal to a preset threshold, it is determined that the network device fails, and a backup network device is enabled to establish a dedicated line with the multiple other network devices.
6. The method according to claim 5, characterized in that The generating and issuing of the second warning information comprises: If the total number is greater than or equal to the preset threshold, sending a second alarm message representing a first maintenance request to a network device operation and maintenance personnel responsible for the network device; If the total number is less than the preset threshold, a second alarm message representing a second maintenance request is sent to other network device operation and maintenance personnel responsible for the other network devices, or a second alarm message representing a third maintenance request is sent to a dedicated line operation and maintenance personnel responsible for the dedicated line.
7. The method according to any one of claims 1 to 6, characterized in that The step of establishing a dedicated line between the network device and a plurality of other network devices comprises: Sending a line connection request to the other network device; wherein the line connection request includes device information of the network device; the device information in the line connection request is used to verify the security of the device; Receive connection response information sent by the other network device, and establish a dedicated line with the other network device; wherein the connection response information indicates that the network device that issued the line connection request is safe and agrees to establish a dedicated line with the network device that issued the line connection request.
8. An interruption detection device based on bidirectional forwarding detection (BFD) state, characterized in that: Applied to network equipment, the device comprises: A creation module is used to establish a dedicated line between the network device and multiple other network devices, and configure a corresponding bidirectional forwarding detection BFD session for each dedicated line; An acquisition module, configured to acquire a first BFD state of the BFD session at a current time point; wherein the first BFD state is a normal state or an interrupted state; The acquisition module is further used to acquire, 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 at a second historical time point; wherein the first historical time point and the second historical time point are time points before the current time point, and the first historical time point is between the current time point and the second historical time point; a detection module, configured 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 generate an alarm for a dedicated line that is interrupted.
9. An interruption 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-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the interruption detection method based on the BFD state according to 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, and when the computer-executable instructions are executed by a processor, they are used to implement the interruption detection method based on the bidirectional forwarding detection (BFD) state according to 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
BFD method and apparatus
WO2017000536A1