CN114205264A - Method, system and medium for inhibiting frequent L2VPN switching caused by BFD frequent oscillation - Google Patents
Method, system and medium for inhibiting frequent L2VPN switching caused by BFD frequent oscillation Download PDFInfo
- Publication number
- CN114205264A CN114205264A CN202111585352.4A CN202111585352A CN114205264A CN 114205264 A CN114205264 A CN 114205264A CN 202111585352 A CN202111585352 A CN 202111585352A CN 114205264 A CN114205264 A CN 114205264A
- Authority
- CN
- China
- Prior art keywords
- bfd
- oscillation
- monitoring
- keep
- frequent
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
Abstract
The invention discloses a method, a system and a medium for inhibiting frequent L2VPN switching caused by BFD frequent oscillation, wherein the method comprises the following steps: monitoring PW BFD oscillation alarm; setting monitoring time T; setting a monitoring oscillation frequency threshold value as C; setting rules: PW BFD DOWN and UP within one second, and calculating once consumption oscillation; calculating the oscillation consumption times of PW BFD within the monitoring time T; if the oscillation consumption times are larger than C, adjusting PW BFD keep-alive time parameters; increasing the keep-alive time of the PW BFD to be 1.5 times of the original keep-alive time, continuing monitoring, and if the PW BFD consumes oscillation times larger than C within the monitoring time T, adjusting the PW BFD keep-alive time parameter; increasing the keep-alive time of the PW BFD to be 1.5 times of the original keep-alive time, continuing to monitor, repeating the above circulation until the keep-alive time of the PW BFD is more than 1 second, and finishing adjusting the keep-alive time of the PW BFD; and reporting an alarm, and BFD abnormally oscillating. The invention solves the problems of resource waste and service influence caused by BFD oscillation in the network.
Description
Technical Field
The invention relates to the technical field of network communication, in particular to a method, a system and a medium for inhibiting frequent L2VPN switching caused by BFD frequent oscillation.
Background
BFD is an abbreviation for Bidirectional Forwarding Detection, a network protocol for detecting failures between two Forwarding points, and is described in detail in RFC 5880.
BFD is a bidirectional forwarding detection mechanism, can provide millisecond detection, and can realize rapid detection of a link, and BFD can realize rapid convergence of a route by linking with an upper layer routing protocol, so that the continuity of a service is ensured.
Pseudowires (PW), Pseudowires (PW) implemented through signaling or static configuration, and Pseudowires (PW) implemented through signaling or static configuration. The label distribution protocol LDP and the multi-protocol border gateway protocol MP-BGP4 can transfer VC labels of both parties through a signaling protocol. The pseudo wire is directional and is a virtual and directly connected data channel from a local AC to an opposite AC, and the transparent transmission of two-layer data of a user can be completed;
the general PW has a protection group, a main PW and a backup PW, and the fast switching is realized through associating BFDs. Thereby achieving carrier class protection networks. Frequent oscillation occurs in the use process of PW BFD, which may be caused by a large link delay, or may be caused by inaccurate calculation time of device BFD.
Based on the above scenario, there may be BFD oscillation causing PW frequent switching, and the setting of the consuming device resource causes service interruption, some BFD oscillations are caused by large network delay and belong to unavoidable normal oscillation, which should be avoided, and the BFD keep-alive time needs to be dynamically adjusted to avoid the oscillation.
Disclosure of Invention
The method, the system and the medium for inhibiting frequent oscillation of BFD from causing frequent switching of L2VPN can solve the problem that the PW BFD frequently oscillates to cause equipment resource consumption and service interruption in the prior art.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method for inhibiting frequent L2VPN switching caused by BFD frequent oscillation includes executing the following steps by computer equipment,
step 1: monitoring PW BFD oscillation alarm;
step 2: setting monitoring time T and setting a monitoring oscillation frequency threshold value as C;
and step 3: setting rules: PW BFD DOWN and UP within one second, and calculating once consumption oscillation;
and 4, step 4: calculating the oscillation consumption times of PW BFD within the monitoring time T;
and 5: if the number of consumed oscillations < = C;
step 6: jumping to the step 4;
and 7: if the number of consumed oscillations > C;
and 8: the keep-alive time of PW BFD is increased to 1.5 times of the original keep-alive time;
and step 9: judging whether the PW BFD keep-alive time is more than 1 second;
step 10: if not, skipping to the step 1;
step 11: if so, reporting a BFD abnormal oscillation alarm, and ending;
on the other hand, the invention also discloses a system for inhibiting frequent L2VPN switching caused by BFD frequent oscillation, which comprises a PW BFD alarm monitoring module, a monitoring setting module, a consumed oscillation rate calculating module, a PW BFD keep-alive time adjusting module and a BFD abnormal oscillation alarm generating module;
the PW BFD alarm monitoring module is used for monitoring PW BFD alarms;
the monitoring setting module is used for setting monitoring time and a threshold value;
the consumption oscillation rate calculation module is used for calculating whether PW BFD oscillation belongs to consumption oscillation or not;
the PW BFD keep-alive time adjusting module is used for adjusting the PW BFD keep-alive time;
and the BFD abnormal oscillation alarm generating module is used for generating a BFD abnormal oscillation alarm.
In yet another aspect, the present invention also discloses a computer readable storage medium storing a computer program, which when executed by a processor causes the processor to perform the steps of the method as described above.
In yet another aspect, the present invention also discloses a computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the above method.
According to the technical scheme, the invention solves the problems of unnecessary equipment resource consumption and even service interruption caused by frequent PW BFD oscillation in the network.
The PW BFD oscillation is taken as the most frequent oscillation in the IPRAN network, and the interruption of the customer service is often caused, but the invention greatly solves the secondary problem, reduces the loss caused by the interruption of the customer service and reduces the maintenance cost caused by the interruption of the service.
Drawings
FIG. 1 is a description of modules of the present invention;
FIG. 2 is an introduction of the process of the present invention.
Detailed Description
In order to make the objects, 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 with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention.
As shown in fig. 1, a system for suppressing frequent switching of L2VPN due to BFD frequent oscillation in this embodiment includes:
the system comprises a PW BFD alarm monitoring module, a monitoring setting module, a consumed oscillation rate calculating module, a PW BFD keep-alive time adjusting module and a BFD abnormal oscillation alarm generating module;
the PW BFD alarm monitoring module is used for monitoring PW BFD alarms;
the monitoring setting module is used for setting monitoring time and a threshold value;
the consumption oscillation rate calculation module is used for calculating whether PW BFD oscillation belongs to consumption oscillation or not;
the PW BFD keep-alive time adjusting module is used for adjusting the PW BFD keep-alive time;
the BFD abnormal oscillation alarm generating module is used for generating a BFD abnormal oscillation alarm;
as shown in fig. 2, the method for suppressing frequent L2VPN switching caused by BFD frequent oscillation according to this embodiment includes:
monitoring PW BFD oscillation alarm;
setting monitoring time T;
setting a monitoring oscillation frequency threshold value as C;
setting rules: PW BFD DOWN and UP within one second, and calculating once consumption oscillation;
calculating the oscillation consumption times of PW BFD within the monitoring time T;
if the oscillation consumption times are larger than C, adjusting PW BFD keep-alive time parameters;
increasing the keep-alive time of PW BFD to 1.5 times of the original keep-alive time, and continuing monitoring;
if the PW BFD consumes oscillation times larger than C within the monitoring time T, adjusting PW BFD keep-alive time parameters;
increasing the keep-alive time of PW BFD to 1.5 times of the original keep-alive time, and continuing monitoring;
repeating the above circulation until the PW BFD keep-alive time is more than 1 second, and finishing adjusting the keep-alive time of the PW BFD;
and reporting an alarm, and BFD abnormally oscillating.
According to the technical scheme, the invention solves the problems of unnecessary equipment resource consumption and even service interruption caused by frequent PW BFD oscillation in the network.
In yet another aspect, the present invention also discloses a computer readable storage medium storing a computer program, which when executed by a processor causes the processor to perform the steps of the method as described above.
In yet another aspect, the present invention also discloses a computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of the above method.
It is understood that the system provided by the embodiment of the present invention corresponds to the method provided by the embodiment of the present invention, and the explanation, the example and the beneficial effects of the related contents can refer to the corresponding parts in the method.
The embodiment of the application also provides an electronic device, which comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus,
a memory for storing a computer program;
the processor is used for realizing the method for inhibiting the frequent L2VPN switching caused by the frequent BFD oscillation when executing the program stored in the memory;
the communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus may be divided into an address bus, a data bus, a control bus, etc.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, or discrete hardware components.
In another embodiment provided by the present application, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute any one of the above-mentioned methods for suppressing frequent BFD oscillations from causing frequent L2VPN handover.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may 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 loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, 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, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (3)
1. A method for inhibiting frequent L2VPN switching caused by BFD frequent oscillation is characterized by comprising the following steps,
step 1: monitoring PW BFD oscillation alarm;
step 2: setting monitoring time T and setting a monitoring oscillation frequency threshold value as C;
and step 3: setting rules: PW BFD DOWN and UP within one second, and calculating once consumption oscillation;
and 4, step 4: calculating the oscillation consumption times of PW BFD within the monitoring time T;
and 5: if the number of consumed oscillations < = C;
step 6: jumping to the step 4;
and 7: if the number of consumed oscillations > C;
and 8: the keep-alive time of PW BFD is increased to 1.5 times of the original keep-alive time;
and step 9: judging whether the PW BFD keep-alive time is more than 1 second;
step 10: if not, skipping to the step 1;
step 11: if so, reporting BFD abnormal oscillation alarm and ending.
2. A system for inhibiting frequent L2VPN switching caused by BFD frequent oscillation is characterized in that: the system comprises a PW BFD alarm monitoring module, a monitoring setting module, a consumed oscillation rate calculating module, a PW BFD keep-alive time adjusting module and a BFD abnormal oscillation alarm generating module;
the PW BFD alarm monitoring module is used for monitoring PW BFD alarms;
the monitoring setting module is used for setting monitoring time and a threshold value;
the consumption oscillation rate calculation module is used for calculating whether PW BFD oscillation belongs to consumption oscillation or not;
the PW BFD keep-alive time adjusting module is used for adjusting the PW BFD keep-alive time;
and the BFD abnormal oscillation alarm generating module is used for generating a BFD abnormal oscillation alarm.
3. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, causes the processor to carry out the steps of the method as claimed in claim 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111585352.4A CN114205264A (en) | 2021-12-23 | 2021-12-23 | Method, system and medium for inhibiting frequent L2VPN switching caused by BFD frequent oscillation |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111585352.4A CN114205264A (en) | 2021-12-23 | 2021-12-23 | Method, system and medium for inhibiting frequent L2VPN switching caused by BFD frequent oscillation |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114205264A true CN114205264A (en) | 2022-03-18 |
Family
ID=80656064
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111585352.4A Pending CN114205264A (en) | 2021-12-23 | 2021-12-23 | Method, system and medium for inhibiting frequent L2VPN switching caused by BFD frequent oscillation |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114205264A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1870546A (en) * | 2006-01-21 | 2006-11-29 | 华为技术有限公司 | Method for obtaining communication system channel state |
CN101483592A (en) * | 2009-02-05 | 2009-07-15 | 中兴通讯股份有限公司 | Method and apparatus for inhibiting bidirectional forwarding detection link oscillation |
CN101800673A (en) * | 2010-02-03 | 2010-08-11 | 中兴通讯股份有限公司 | Method and device of bidirectional forwarding detection (BFD) oscillation damping |
US20200389383A1 (en) * | 2019-06-07 | 2020-12-10 | Cisco Technology, Inc. | Machine learning approach for dynamic adjustment of bfd timers in sd-wan networks |
US11121956B1 (en) * | 2020-05-22 | 2021-09-14 | Arista Networks, Inc. | Methods and systems for optimizing bidirectional forwarding detection in hardware |
-
2021
- 2021-12-23 CN CN202111585352.4A patent/CN114205264A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1870546A (en) * | 2006-01-21 | 2006-11-29 | 华为技术有限公司 | Method for obtaining communication system channel state |
CN101483592A (en) * | 2009-02-05 | 2009-07-15 | 中兴通讯股份有限公司 | Method and apparatus for inhibiting bidirectional forwarding detection link oscillation |
CN101800673A (en) * | 2010-02-03 | 2010-08-11 | 中兴通讯股份有限公司 | Method and device of bidirectional forwarding detection (BFD) oscillation damping |
WO2011095024A1 (en) * | 2010-02-03 | 2011-08-11 | 中兴通讯股份有限公司 | Method and apparatus for bidirectional forwarding detection (bfd) oscillation damping |
US20200389383A1 (en) * | 2019-06-07 | 2020-12-10 | Cisco Technology, Inc. | Machine learning approach for dynamic adjustment of bfd timers in sd-wan networks |
US11121956B1 (en) * | 2020-05-22 | 2021-09-14 | Arista Networks, Inc. | Methods and systems for optimizing bidirectional forwarding detection in hardware |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Su et al. | Redundant rule detection for software-defined networking | |
US9100299B2 (en) | Detecting error conditions in standby links | |
CN108696428B (en) | Tunnel technology-based route detection method, route node and central server | |
US9788218B2 (en) | Alarm processing method and device, alarm associated information setting method | |
US20160283307A1 (en) | Monitoring system, monitoring device, and test device | |
CN108965137B (en) | Message processing method and device | |
CN107395783B (en) | IP address processing method, system, device and electronic equipment | |
US10462041B2 (en) | Link health forecast—predictive ethernet link monitoring using DOM with ELOAM | |
CN109150761B (en) | Tunnel switching method and device | |
CN111130821B (en) | Power failure alarm method, processing method and device | |
CN111565133B (en) | Private line switching method and device, electronic equipment and computer readable storage medium | |
CN109889411B (en) | Data transmission method and device | |
CN109120449B (en) | Method and device for detecting link failure | |
CN109802879B (en) | Data stream routing method and device | |
US20210014135A1 (en) | Wan tunnel kpi/sla prediction and schedule recommender | |
CN108696433A (en) | Route flapping suppressing method and BGP routing devices | |
WO2019119269A1 (en) | Network fault detection method and control center device | |
CN114205264A (en) | Method, system and medium for inhibiting frequent L2VPN switching caused by BFD frequent oscillation | |
CN111315026B (en) | Channel selection method, device, gateway and computer readable storage medium | |
CN108141406B (en) | Method, device and equipment for processing service fault | |
CN113347084B (en) | Message forwarding method and device | |
CN109462518B (en) | Loop detection method and device | |
CN108616423A (en) | A kind of talk-around device monitoring method and device | |
CN114244694A (en) | Intelligent management method, system and equipment for network port and readable storage medium | |
CN109218199B (en) | Message processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |