Method, system and equipment for providing network delay after DOWN detection by BFD (Bidirectional Forwarding Detection)

By recording the time difference between the BFD guarantee message during the BFD detection process, the network delay information is provided, and the problem that cannot capture the time delay of the fault when the BFD session shakes, and improves the efficiency of network optimization and fault checking.

CN119383059APending Publication Date: 2025-01-28SHENZHEN WANTONG POST & TELECOMM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411520783.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-29
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

During the BFD detection process, unstable network delay causes frequent oscillations in BFD sessions, and it is impossible to capture the network delay value at the fault moment in real time, affecting network optimization and troubleshooting.

Method used

通过BFD配置模块获取BFD配置,BFD保活报文接收处理模块进行报文处理和时间间隔记录,记录下BFD保活报文的时间差,并在告警中显示出来,提供当前的网络延迟信息。

Benefits of technology

After the BFD detection DOWN records and provide network delay information, help the maintenance person to understand the network delay at the time of the fault, provide the direction of optimizing the network, and reduce the unnecessary economic loss and operation and maintenance time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119383059A_ABST
    Figure CN119383059A_ABST
Patent Text Reader

Abstract

The invention discloses a method, system and device for providing network delay after DOWN detection by BFD (Bidirectional Forwarding Detection), and the method comprises the steps: 1, obtaining the configuration of BFD by a BFD configuration module; and step 2, the BFD keep-alive message receiving and processing module carries out BFD keep-alive message processing. And step 3, according to the rule in the step 1, the BFD keep-alive message receiving and processing module performs judgment, records and judges the time interval of the BFD keep-alive message, and if the time interval is within the rule range, the keep-alive is successful, the step 3 is repeated, and the BFD keep-alive message is continuously processed and judged. Otherwise, reporting BFD detection timeout, and setting the BFD session to be DOWN; and 4, if the detection is overtime in the step 3, when the BFD session is set to be DOWN, a BFD time interval recording module calculates a detailed message time interval of the period, and provides an accurate BFD oscillation reason and a delay value at the current oscillation moment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network communication technology, and in particular to a method, system and device for providing network delay after BFD detects DOWN. Background Art

[0002] Packet Transport Network (PTN) is positioned as a connection-oriented network technology. Its idea is to use a manageable end-to-end performance network similar to SDH with T-MPLS (universal multi-protocol label switching protocol) or PBT (telecom-grade core network transport protocol) as the core to support the smooth evolution of the network from the current to the next generation network. It is designed for the burstiness and statistical multiplexing transmission requirements of packet service traffic. It is based on packet services and applied to multi-service environments. It has a lower total cost of use (TCO) and inherits the traditional advantages of optical transmission, including high availability and reliability, efficient bandwidth management mechanism and traffic engineering, convenient OAM and network management, scalability, high security, etc.

[0003] PW stands for Pseudo Wire. It is a channel technology that carries the PTN network. Each user's service can be carried by a PW. Usually, customers use the headquarters-branch structure, and the headquarters deploys multiple PWs, and each PW corresponds to a branch point.

[0004] BFD is the abbreviation of Bidirectional Forwarding Detection, which is a network protocol used to detect failures between two forwarding points and is described in detail in RFC 5880.

[0005] BFD is a bidirectional forwarding detection mechanism that can provide millisecond-level detection and achieve rapid detection of links. By linking with the upper-layer routing protocol, BFD can achieve rapid routing convergence and ensure business sustainability.

[0006] Pseudowire (PW), implemented through signaling or static configuration. Label Distribution Protocol LDP and Multi-Protocol Border Gateway Protocol MP-BGP4 can transmit the VC labels of both parties through signaling protocols. Pseudowire is directional, a virtual, directly connected data channel from the local AC to the peer AC, which can complete the transparent transmission of user's Layer 2 data; Generally, PW has protection groups, primary PW and backup PW, and fast switching is achieved by associating BFD. Thus, a carrier-class protection network can be achieved. Frequent oscillations may occur during the use of PW BFD, which may be caused by large link delays.

[0007] In current practical applications, BFD often oscillates in the network because the network delay is unstable. When the delay is large, the BFD session will be DOWN (BFD session has UP and DOWN states. After negotiation between the BFD devices on both sides, the keepalive packets are sent and received normally and the session is in the UP state. When the keepalive packets are not received, the session will be in the DOWN state). When the delay is normal, BFD will be UP again. After the oscillation occurs, the network delay will be detected by means such as instrument flow sending and RFC2544. However, these are all post-detection and cannot capture the specific network delay value at the current fault time. Summary of the invention

[0008] The present invention provides a method, device and storage medium for providing network delay after BFD detects DOWN, which can at least solve one of the technical problems in the background technology.

[0009] To achieve the above object, the present invention adopts the following technical solutions: A method for providing network delay after BFD detects DOWN, comprising: Step 1: In the BFD configuration module, obtain the BFD configuration. For example, if the detection interval is 10ms*3, a BFD keepalive message is sent every 10ms. If no BFD keepalive message is received for three consecutive times, the detection fails and the BFD session is set to DOWN.

[0010] Step 2: The BFD keepalive message receiving and processing module processes the BFD keepalive message.

[0011] Step 3: According to the rules of step 1, the BFD keepalive message receiving and processing module makes a judgment, records and judges the time interval of the BFD keepalive message. If it is within the rule range, the keepalive is successful, and step 3 is repeated to continue processing and judging the BFD keepalive message. Otherwise, the BFD detection timeout is reported and the BFD session is set to DOWN.

[0012] Step 4: In step 3, if the detection timeout occurs and the BFD session is set to DOWN, the BFD time interval recording module calculates the detailed message time interval of this cycle. Using the BFD configuration of step 1 as an example, if no BFD keepalive message is received within 30ms, the BFD timeout DOWN is detected, the time difference between the two keepalive messages is recorded, and this time difference, that is, the current network delay, is displayed in the alarm. If the reason for the detection failure is that after receiving the last keepalive message, the next keepalive message is not received, the alarm module prints the alarm "the peer stops sending BFD keepalive messages".

[0013] On the other hand, the present invention also discloses a system that can provide network delay after BFD detects DOWN, which can be used to implement the above-mentioned method of providing network delay after BFD detects DOWN, including a BFD configuration module, a BFD keep-alive message receiving and processing module, a BFD keep-alive message time interval recording module, and a BFD detects DOWN alarm push module; The BFD configuration module is used to obtain the current BFD configuration; The BFD keep-alive message receiving and processing module is used to process BFD keep-alive messages; The BFD keep-alive message interval recording module is used to record the BFD keep-alive message interval; The BFD detection DOWN alarm push module is used to push specific network delay information after BFD detection DOWN, so that maintainers can understand the network delay at the time of the fault and provide directions for optimizing the network.

[0014] On the other hand, the present invention further discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the above method.

[0015] On the other hand, the present invention further discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above method.

[0016] It can be seen from the above technical solution that after the current traditional BFD detects DOWN, only an alarm of BFD detection DOWN will be given, but the specific network delay cannot be known, thus losing the direction of optimizing the network. The method of providing network delay after BFD detects DOWN of the present invention is intended to record the specific network delay value when BFD oscillation occurs, thereby providing accurate BFD oscillation reasons and the delay value at the current oscillation moment, and providing accurate network optimization direction for network maintainers.

[0017] In general, the BFD DOWN problem often occurs in actual network applications, but its root cause is generally difficult to determine, which affects customers' use of the network and even causes network interruption and customer complaints. There are also cases where newly delivered networks cannot be accepted due to this problem, resulting in a lot of economic losses. The present invention can provide a delay at the time, so that the root cause of the problem can be accurately determined and the problem can be quickly solved, reducing unnecessary economic losses and operation and maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a schematic diagram of the relevant modules and processing interaction flow of the present invention. DETAILED DESCRIPTION

[0019] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.

[0020] like Figure 1 As shown, the method for providing network delay after BFD detects DOWN in this embodiment includes: Step 1: In the BFD configuration module, obtain the BFD configuration. For example, if the detection interval is 10ms*3, a BFD keepalive message is sent every 10ms. If no BFD keepalive message is received for three consecutive times, the detection fails and the BFD session is set to DOWN.

[0021] Step 2: The BFD keepalive message receiving and processing module processes the BFD keepalive message.

[0022] Step 3: According to the rules of step 1, the BFD keepalive message receiving and processing module makes a judgment, records and judges the time interval of the BFD keepalive message. If it is within the rule range, the keepalive is successful, and step 3 is repeated to continue processing and judging the BFD keepalive message. Otherwise, the BFD detection timeout is reported and the BFD session is set to DOWN. Step 4: In step 3, if the detection timeout occurs and the BFD session is set to DOWN, the BFD time interval recording module calculates the detailed message time interval of this cycle. Using the BFD configuration of step 1 as an example, if no BFD keepalive message is received within 30ms, the BFD timeout DOWN is detected, the time difference between the two keepalive messages is recorded, and this time difference, that is, the current network delay, is displayed in the alarm. If the reason for the detection failure is that after receiving the last keepalive message, the next keepalive message is not received, the alarm module prints the alarm "the peer stops sending BFD keepalive messages".

[0023] The following is an example.

[0024] The BFD detection interval is 10ms*3, that is, a BFD keepalive message is sent every 10ms. If three consecutive BFD keepalive messages are not received, that is, if no BFD keepalive message is received within 30ms, the BFD session is set to DOWN.

[0025] The BFD module of the local device processes the BFD keepalive messages sent by the peer device and records the timestamp of each BFD keepalive message. The difference between the timestamps of two BFD keepalive messages is the interval between BFD keepalive messages. If a BFD keepalive message is received normally within 30 ms, the next BFD keepalive message will be processed.

[0026] If no BFD keepalive message is received within a certain 30ms period, the BFD session is set to DOWN, and the BFD keepalive message continues to be processed. If a BFD keepalive message is received after 40ms, the time interval between two BFD keepalive messages is calculated. For example, if it is 40ms, the network delay is 40ms. At this time, the alarm module pushes 40ms of network delay data. It shows that the BFD session is DOWN and the network delay is 40ms.

[0027] If no BFD keepalive message is received within a certain 30ms period, the BFD session is set to DOWN and the BFD keepalive message continues to be waited for. If no BFD keepalive message is received, it means that the peer end stops sending BFD keepalive messages. At this time, the alarm module pushes an alarm, indicating that the BFD session is DOWN and the peer device stops sending BFD keepalive messages.

[0028] In summary, the current network equipment manufacturers generally only push the keep-alive message timeout and BFD session DOWN alarm for BFD session DOWN, but the specific timeout time is not displayed. When other means are used for detection later, the network delay at the time of the failure is often not reflected. Therefore, the present invention is intended to solve this problem and provide accurate network delay when BFD DOWN at the time of the failure.

[0029] Let's take an example of operator maintenance. A telecom operator provides a network circuit for a certain enterprise A. BFD DOWN occurs, causing service interruption. Telecom maintenance personnel and engineers from related equipment manufacturers conduct investigations together. They use test instruments to test the circuit network delay and find that the results of the three tests are as follows: First time: minimum delay 3 ms, maximum delay 35ms, average delay 10ms Second time: minimum delay 3ms, maximum delay 40ms, average delay 13ms The third time: minimum delay 1 ms, maximum delay 28ms, average delay 9ms The configured delay of BFD is 10ms. From the delay test above, it is impossible to determine whether it is caused by network delay, because BFD will go down if it does not receive a keep-alive packet within 30ms. In the delay test above, the maximum values ​​of the first and second times exceeded 30ms, but the third time did not. It is not sure when the maximum delay occurred.

[0030] It took about 3 days to conduct basic troubleshooting from the beginning of the fault, and then another 3 days to arrange on-site instrument testing without any results. A week after the customer's fault, there was basically no progress in the investigation. Ultimately, the customer changed his network, resulting in the dual impact of the customer's network being affected and the telecom losing the customer.

[0031] After adopting the present invention, the device only needs to upgrade the software version remotely, and there is no need to arrange personnel to go to the site. After the upgrade, BFD DOWN will print out the delay time, and the printout shows that the delay time is 15ms, which is within the range of 30ms, so it is not caused by network delay! With this basis, the equipment manufacturer ruled out the delay problem and focused on whether the equipment implemented BFD reasonably. After determining the direction, after further research and analysis by R&D, it was found that the problem was caused by a BUG in the BFD software implementation. After the repair, the problem was solved after the software version was upgraded again. It only took one day in total. The customer gave positive feedback.

[0032] On the other hand, the present invention also discloses a system that can provide network delay after BFD detects DOWN, which can be used to implement the above-mentioned method of providing network delay after BFD detects DOWN, including a BFD configuration module, a BFD keep-alive message receiving and processing module, a BFD keep-alive message time interval recording module, and a BFD detects DOWN alarm push module; The BFD configuration module is used to obtain the current BFD configuration; The BFD keep-alive message receiving and processing module is used to process BFD keep-alive messages; The BFD keep-alive message interval recording module is used to record the BFD keep-alive message interval; The BFD detection DOWN alarm push module is used to push specific network delay information after BFD detection DOWN, so that maintainers can understand the network delay at the time of the fault and provide directions for optimizing the network.

[0033] On the other hand, the present invention further discloses a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor executes the steps of the above method.

[0034] On the other hand, the present invention further discloses a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the above method.

[0035] In another embodiment provided by the present application, a computer program product including instructions is also provided. When the computer program product is executed on a computer, the computer executes the method for providing network delay after BFD detects DOWN in any of the above embodiments.

[0036] It is understandable that the system, device and storage medium provided in the embodiments of the present invention correspond to the method provided in the embodiments of the present invention, and the explanation, examples and beneficial effects of the relevant contents can refer to the corresponding parts in the above methods.

[0037] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0038] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0039] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0040] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for providing network delay after BFD detects DOWN, characterized in that: The following steps are included: Step 1: BFD configuration module, obtain BFD configuration; Step 2: The BFD keep-alive message receiving and processing module processes the BFD keep-alive message; Step 3: According to the rules configured in step 1, the BFD keepalive message receiving and processing module makes a judgment, records and judges the time interval of the BFD keepalive message. If it is within the rule range, the keepalive is successful, and step 3 is repeated to continue processing and judging the BFD keepalive message; otherwise, the BFD detection timeout is reported and the BFD session is set to DOWN; Step 4: If the detection times out in step 3 and the BFD session is set to DOWN, the BFD time interval recording module calculates the detailed message time interval of this cycle.

2. The method for providing network delay after BFD detection DOWN according to claim 1, characterized in that: The configuration in step 1 includes a detection interval of 10ms*3, which means that a BFD keepalive message is sent every 10ms. If no BFD keepalive message is received for three consecutive times, the detection fails and the BFD session is set to DOWN.

3. The method for providing network delay after BFD detects DOWN according to claim 2, characterized in that: In step 4, the BFD configuration of step 1 is used. If no BFD keepalive message is received within 30ms, the BFD timeout is detected and the time difference between the two keepalive messages is recorded. This time difference, that is, the current network delay, is displayed in the alarm. If the reason for the detection failure is that after receiving the last keepalive message, the next keepalive message is not received, the alarm module prints the alarm "The peer stops sending BFD keepalive messages".

4. A system for providing network delay after BFD detects DOWN, used to implement the method for providing network delay after BFD detects DOWN according to any one of claims 1 to 3, characterized in that: It includes BFD configuration module, BFD keep-alive message receiving and processing module, BFD keep-alive message time interval recording module, and BFD detection DOWN alarm push module; The BFD configuration module is used to obtain the current BFD configuration; The BFD keep-alive message receiving and processing module is used to process BFD keep-alive messages; The BFD keep-alive message interval recording module is used to record the BFD keep-alive message interval; The BFD detection DOWN alarm push module is used to push specific network delay information after BFD detection DOWN, so that network maintainers can understand the network delay at the time of the fault and provide directions for optimizing the network.

5. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the computer program is executed by the processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 3.