CN113472642B - Protection switching method and device - Google Patents
Protection switching method and device Download PDFInfo
- Publication number
- CN113472642B CN113472642B CN202110648232.8A CN202110648232A CN113472642B CN 113472642 B CN113472642 B CN 113472642B CN 202110648232 A CN202110648232 A CN 202110648232A CN 113472642 B CN113472642 B CN 113472642B
- Authority
- CN
- China
- Prior art keywords
- bfd
- tunnel
- target
- fault
- triggering
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/28—Routing or path finding of packets in data switching networks using route fault recovery
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/22—Alternate routing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present disclosure relates to the field of network communications technologies, and in particular, to a protection switching method and apparatus. The method is applied to management equipment in networking, and a first BFD detection mechanism with a detection period of T is respectively configured for physical links between any two adjacent network equipment in the networking; the method comprises the following steps: receiving a first BFD fault reported by network equipment, wherein if the network equipment does not receive a first BFD message sent by an opposite terminal for n continuous periods, the first BFD fault is determined to be detected, and n is an integer greater than or equal to 1; if the target physical link is determined to be faulty based on the first BFD fault, determining a target protection group linked list associated with the target physical link, wherein the protection group linked list associated with one physical link comprises information of each tunnel carried by the physical link; and triggering the protection switching operation of each tunnel in the target protection group linked list.
Description
Technical Field
The present disclosure relates to the field of network communications technologies, and in particular, to a protection switching method and apparatus.
Background
SRv6 is a new generation network protocol based on Native IPv6 and source routing, is a key technology on a cloud network fusion progress road, and becomes a foundation for constructing intelligent connection of 5G and cloud age. In the SRv network, each SRv device has a Locator setting. SRv6 Traffic Engineering by referring to the Locator segment, the Locator segment is used to define the BSID range, and allocation and setting of a specific path SID in tunnel configuration are implemented. Any two SRv devices can be configured with a Locator-based BFD for realizing a rapid basic detection function of a connection path between the two devices. Then, how to quickly recover the service after the network fails directly affects the reliability commitment of the bearer network, thereby affecting the commercial viability of the network.
At present, the protection technology of each level uses the BFD protocol of the corresponding level to detect the fault of the link, and triggers the corresponding protection switching after the BFD detects the fault of the link. The high priority service uses the protection of the service level, and associates BFD of the short packet interval; low priority traffic uses tunnel level protection, associated with BFD for long packet intervals. After a link or node failure occurs, all levels of BFD report BFD Down events successively. Each protection group triggers a protection switch to resume traffic in response to a Down event binding the BFD.
However, each protection group of the respective level is associated with a corresponding BFD detection session, the logarithm of the BFD session being positively correlated with the logarithm of the protection group. In a short time after a network failure, the network device needs to process a large number of BFD Down events to trigger protection switching of the associated protection group. A large number of BFD Down events are handled in a short time and trigger a handover, which is very stressful for the network device.
Disclosure of Invention
The application provides a protection switching method and device, which are used for solving the problem that the network equipment is extremely stressed due to the fact that a large number of BFD Down events are processed in a short time in the prior art.
In a first aspect, the present application provides a protection switching method, applied to a management device in a network, configured with a first BFD detection mechanism with a detection period T for a physical link between any two adjacent network devices in the network, respectively; the method comprises the following steps:
receiving a first BFD fault reported by network equipment, wherein if the network equipment does not receive a first BFD message sent by an opposite terminal for n continuous periods, the first BFD fault is determined to be detected, and n is an integer greater than or equal to 1;
if the target physical link is determined to be faulty based on the first BFD fault, determining a target protection group linked list associated with the target physical link, wherein the protection group linked list associated with one physical link comprises information of each tunnel carried by the physical link;
and triggering the protection switching operation of each tunnel in the target protection group linked list.
Optionally, a second BFD detection mechanism with a detection period T' is configured for each tunnel in the network; the method further comprises the steps of:
recording the time point of receiving the first BFD fault;
receiving a second BFD fault reported by network equipment, wherein if one network equipment does not receive a second BFD message sent by an opposite terminal for n continuous periods, the second BFD fault is determined to be detected, and n is an integer greater than or equal to 1;
if the target tunnel is determined to have faults based on the second BFD faults, judging whether the target tunnel is included in the target protection group linked list or not;
if yes, judging whether the second BFD fault is received within a preset time period after the first BFD fault is received;
if yes, not processing the second BFD fault;
otherwise, triggering the protection switching operation of the target tunnel.
Optionally, the detection periods T' of the second BFD detection mechanism for different tunnel configurations are the same/different;
the detection period T of the first BFD detection mechanism is smaller than the detection period T' of the second BFD detection mechanism.
Optionally, the step of triggering protection switching operation of each tunnel in the target protection group linked list includes:
acquiring the protection switching priority of each tunnel in the target protection group linked list;
and based on the protection switching priority of each tunnel, sequentially triggering the operation of switching the business carried by each tunnel from the main link to the corresponding standby link.
Optionally, the method further comprises:
and triggering the operation of switching the service borne by the target tunnel from the standby link to the main link if the second BFD fault recovery message reported by the network equipment is received.
In a second aspect, the present application provides a protection switching apparatus, applied to a management device in a network, where a first BFD detection mechanism with a detection period T is configured for a physical link between any two adjacent network devices in the network, respectively; the device comprises:
a receiving unit, configured to receive a first BFD fault reported by a network device, where if a network device does not receive a first BFD packet sent by an opposite terminal in n consecutive periods, it is determined that the first BFD fault is detected, and n is an integer greater than or equal to 1;
the determining unit is further configured to determine a target protection group linked list associated with the target physical link if the determining unit determines that the target physical link fails based on the first BFD failure, where the protection group linked list associated with one physical link includes information of each tunnel carried by the physical link;
and the triggering unit is used for triggering the protection switching operation of each tunnel in the target protection group linked list.
Optionally, a second BFD detection mechanism with a detection period T' is configured for each tunnel in the network; the device further comprises a judging unit:
a recording unit, configured to record a time point when the first BFD fault is received;
the receiving unit is further configured to receive a second BFD fault reported by the network device, where if a network device does not receive a second BFD packet sent by the peer end for n consecutive periods, it is determined that the second BFD fault is detected, and n is an integer greater than or equal to 1;
if the determining unit determines that the target tunnel fails based on the second BFD failure, the determining unit is configured to determine whether the target tunnel is included in the target protection group linked list;
if yes, the judging unit is further configured to judge whether the second BFD fault is received within a preset duration after the first BFD fault is received;
if yes, not processing the second BFD fault;
otherwise, the triggering unit is used for triggering the protection switching operation of the target tunnel.
Optionally, the detection periods T' of the second BFD detection mechanism for different tunnel configurations are the same/different;
the detection period T of the first BFD detection mechanism is smaller than the detection period T' of the second BFD detection mechanism.
Optionally, when triggering the protection switching operation of each tunnel in the target protection group linked list, the triggering unit is specifically configured to:
acquiring the protection switching priority of each tunnel in the target protection group linked list;
and based on the protection switching priority of each tunnel, sequentially triggering the operation of switching the business carried by each tunnel from the main link to the corresponding standby link.
Alternatively, the process may be carried out in a single-stage,
and if the receiving unit receives the message of the second BFD fault recovery reported by the network equipment, the triggering unit is used for triggering the operation of switching the service borne by the target tunnel from the standby link to the main link.
In a third aspect, embodiments of the present application provide a protection switching device, including:
a memory for storing program instructions;
a processor for invoking program instructions stored in said memory, performing the steps of the method according to any of the first aspects above in accordance with the obtained program instructions.
In a fourth aspect, embodiments of the present application also provide a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the steps of the method according to any one of the first aspects.
As can be seen from the above, the protection switching method provided by the embodiment of the present application is applied to a management device in a network, and a first BFD detection mechanism with a detection period T is configured for a physical link between any two adjacent network devices in the network, respectively; the method comprises the following steps: receiving a first BFD fault reported by network equipment, wherein if the network equipment does not receive a first BFD message sent by an opposite terminal for n continuous periods, the first BFD fault is determined to be detected, and n is an integer greater than or equal to 1; if the target physical link is determined to be faulty based on the first BFD fault, determining a target protection group linked list associated with the target physical link, wherein the protection group linked list associated with one physical link comprises information of each tunnel carried by the physical link; and triggering the protection switching operation of each tunnel in the target protection group linked list.
By adopting the protection switching method provided by the embodiment of the application, corresponding BFD detection mechanisms are configured for each physical link, and when any physical link is detected to be faulty, the protection switching operation of the tunnel borne by the physical link is directly triggered, so that a large amount of BFD down time is not required to be processed, the quantity of BFD fault messages required to be processed by management equipment is greatly reduced, and the operation performance of the management equipment is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following description will briefly describe the drawings that are required to be used in the embodiments of the present application or the description in the prior art, and it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings may also be obtained according to these drawings of the embodiments of the present application for a person having ordinary skill in the art.
Fig. 1 is a detailed flowchart of a protection switching method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of traffic flow of L2VPN and L3VPN to a SRv6TE public network according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a protection switching device according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a management device according to an embodiment of the present application.
Detailed Description
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to any or all possible combinations including one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used in embodiments of the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, a first message may also be referred to as a second message, and similarly, a second message may also be referred to as a first message, without departing from the scope of the present application. Depending on the context, furthermore, the word "if" used may be interpreted as "at … …" or "at … …" or "in response to a determination".
For example, referring to fig. 1, a detailed flowchart of a protection switching method provided in an embodiment of the present application is shown, where the method is applied to a management device in a network, and a first BFD detection mechanism with a detection period T is configured for a physical link between any two adjacent network devices in the network; the method comprises the following steps:
step 100: and receiving a first BFD fault reported by the network equipment, wherein if the network equipment does not receive the first BFD message sent by the opposite terminal in n continuous periods, the first BFD fault is determined to be detected, and n is an integer greater than or equal to 1.
In this embodiment, a public network with a network deployment of SRv6 Traffic Engineering (SRv 6 TE) is taken as an example, specifically, referring to fig. 2, a schematic diagram for draining L2VPN and L3VPN traffic to SRv TE public network is shown. In this embodiment of the present application, the management device may be an SDN controller in a network, or a network management platform in a network, or any switch/router serving as a management device in a network.
In this embodiment, for a physical link between any two adjacent network devices in the networking, a corresponding BFD (Bidirectional Forwarding Detection ) mechanism (e.g., referred to as Locator BFD) is configured, for example, if the network device 1 and the network device 2 are neighbor devices, then a BFD detection mechanism may be configured for the physical link between the network device 1 and the network device 2. And the network equipment 1 and the network equipment 2 periodically send BFD detection messages to opposite terminals, if the network equipment 1/the network equipment 2 are detected to not receive the BFD detection messages sent by the opposite terminals for n continuous (for example, n=3) periods, the physical link 1 is determined to be faulty, and the network equipment 1/the network equipment 2 can report BFD fault information for identifying the physical link 1 fault to management equipment in a networking.
In practical application, a preferred implementation manner may set the transmission period of the BFD detection packet of the Locator BFD to 3ms (milliseconds), that is, the network device 1 transmits one BFD detection packet to the network device 2 every 3 ms. Of course, the setting of the sending period of the Locator BFD, that is, the BFD detection packet of the first BFD detection mechanism configured for each physical connection may be set according to different user requirements and/or different application scenarios, which is not specifically limited in this embodiment of the present application. For example, the transmission period of the BFD detection message of the Locator BFD may be configured to be 1ms, or may be configured to be 2ms,4ms, or the like.
Further, in the embodiment of the present application, a second BFD detection mechanism with a detection period of T' is configured for each tunnel in the network. That is, a corresponding BFD detection mechanism is configured separately for each tunnel in the networking.
It should be noted that, in the embodiment of the present application, the detection periods T' of the second BFD detection mechanism for different tunnel configurations are the same/different; further, the detection period T of the first BFD detection mechanism is smaller than the detection period T' of the second BFD detection mechanism.
For example, based on different service priorities, service level protection is used for the service with high priority, for example, service 1 is a service with high priority, and service 1 solely occupies tunnel 1, so that a BFD detection mechanism with a transmission period of 10ms for the BFD detection message can be configured for service 1/tunnel 1; and the service 2 and the service 3 are low-priority services, and the service 2 and the service 3 share the tunnel 2, so that a BFD detection mechanism with the transmission period of 50ms of the BFD detection message can be configured for the tunnel 2.
In practical application, since the tunnels are carried on each physical link, that is, when one physical link fails, all tunnels carried by the physical link fail. In the embodiment of the application, the physical link fault is called as basic fault, and the tunnel fault carried by the physical link fault is called as derivative fault of the basic fault.
For example, assuming PE1 and PE4 are neighbors of each other in the networking, PE1-PE4 path failure is a physical failure, SRv Locator BFD failure of PE1 and PE4 detected first time after the physical failure is taken as a base failure, PW BFD failure of SRv L2VPN of PE1-PE4 link, SRv L3VPN private network BFD failure of PE1-PE4, SRv TE various Tunnel BFD failure of PE1-PE4, SRv TE various Tunnel BFD failure of PE1-PE4-PE3 are derivative failures.
Step 110: and if the target physical link fails based on the first BFD fault, determining a target protection group linked list associated with the target physical link, wherein the protection group linked list associated with one physical link comprises information of each tunnel carried by the physical link.
In this embodiment of the present application, after receiving a first BFD failure message sent by a network device, a management device analyzes the first BFD failure message, and if it is determined that a target physical link fails, determines a target protection group linked list associated with the target physical link.
The target protection group linked list refers to a linked list of each tunnel carried by a target physical link, and if the target physical link carries a tunnel 1, a tunnel 2 and a tunnel 3, the identifiers of the tunnel 1, the tunnel 2 and the tunnel 3 are recorded in the target protection group linked list.
Step 120: and triggering the protection switching operation of each tunnel in the target protection group linked list.
Specifically, in the embodiment of the present application, when determining that one physical link fails, the network device directly determines a tunnel associated with the physical link, and triggers each tunnel to perform an operation of switching a link carrying a service from a main link to a standby link.
In the embodiment of the present application, when the protection switching operation of each tunnel in the target protection group linked list is triggered, a preferred implementation manner is to obtain the protection switching priority of each tunnel in the target protection group linked list; and based on the protection switching priority of each tunnel, sequentially triggering the operation of switching the business carried by each tunnel from the main link to the corresponding standby link.
That is, the operation of the protection switching is preferably triggered by the tunnel with high priority, that is, the operation of switching from the main link to the standby link is firstly triggered by the service with high priority, and the service with high priority is preferably recovered.
For example, one basic fault manages two linked lists of associated protection groups, one for high priority protection group links and one for low priority protection group links. After the basic fault occurs, traversing all the managed protection groups according to the order of high and low priority, and triggering protection switching to restore the service.
Further, since each basic fault may cause a plurality of derived faults and a corresponding second BFD detection mechanism is configured for each tunnel, the protection switching method may further include the following steps:
recording the time point of receiving the first BFD fault;
receiving a second BFD fault reported by network equipment, wherein if one network equipment does not receive a second BFD message sent by an opposite terminal for n continuous periods, the second BFD fault is determined to be detected, and n is an integer greater than or equal to 1;
if the target tunnel is determined to have faults based on the second BFD faults, judging whether the target tunnel is included in the target protection group linked list or not;
if yes, judging whether the second BFD fault is received within a preset time period after the first BFD fault is received;
if yes, not processing the second BFD fault;
otherwise, triggering the protection switching operation of the target tunnel.
That is, when the first BFD fault is received and the first BFD fault is determined to be the target physical link fault, a time point when the first BFD fault occurs is recorded, and whether a report message of a derivative fault (a second BFD fault) corresponding to the physical link fault is received within a preset time period after the time point is determined, if a second BFD fault is received and the target tunnel fault corresponding to the second BFD fault is the derivative fault of the target physical link fault, the second BFD fault is not processed.
If the target tunnel fault corresponding to the second BFD fault is not the derivative fault of the target physical link fault, that is, the second BFD fault does not have a corresponding basic fault, or if the target tunnel fault corresponding to the second BFD fault is the derivative fault of the target physical link fault, but the time point of receiving the second BFD fault is not within the preset duration, protection switching of the target physical link is directly triggered.
In this embodiment, taking n=3 as an example, the detection period T ' of the second BFD detection mechanism is 50ms, the preset duration may be set to be greater than 3*T ' (for example, the preset duration is 6*T ').
As can be seen from the above, when the target physical link fails, each tunnel fault (derivative fault) carried by the target physical link also occurs, since the detection period of the first BFD detection mechanism is set to 3ms, and the detection period of the second BFD detection mechanism of the derivative fault is greater than 3ms (e.g., set to 50 ms), then the first BFD fault corresponding to the target physical link fault is reported to the management device first, after receiving the message that the target physical link fails, the management device directly triggers protection switching of each tunnel carried by the target physical link, and then, the management device still receives the second BFD fault that identifies each tunnel as failed within the preset duration when receiving the first BFD fault, and at this time, since the protection switching operation of each tunnel has been triggered, it is unnecessary to reprocess the second BFD fault. Thus, the quantity of BFD fault messages processed by the management equipment is greatly reduced, and the service performance of the management equipment is improved. Further, since the detection period of the first BFD detection mechanism is set to be shorter, when the basic fault is determined to occur, the protection switching operation of the tunnel associated with the basic fault can be directly triggered, so that the traffic carried by the tunnel associated with the basic fault can be recovered in time.
Further, if the second BFD fault recovery message reported by the network device is received, an operation of switching the service carried by the target tunnel from the backup link to the primary link is triggered.
That is, if the failure of the target physical link is relieved, the associated tunnel will also return to normal, and at this time, the operation of switching the traffic carried by each tunnel from the backup link back to the corresponding main link needs to be completed. Because the recovery information of the derived faults is relatively scattered, the load of the system can be effectively smoothed, and the overall performance and usability of the system in a fault recovery scene are improved. The situation that all the traffic carried by the tunnels needs to be switched at the same time does not occur.
For example, referring to fig. 3, a schematic structural diagram of a protection switching device provided in an embodiment of the present application is shown, where the protection switching device is applied to a management device in a network, and a first BFD detection mechanism with a detection period T is configured for a physical link between any two adjacent network devices in the network; the device comprises:
a receiving unit 30, configured to receive a first BFD fault reported by a network device, where if a network device does not receive a first BFD packet sent by an opposite terminal for n consecutive periods, it is determined that the first BFD fault is detected, and n is an integer greater than or equal to 1;
the determining unit 31, if the determining unit 31 determines that the target physical link fails based on the first BFD failure, the determining unit 31 is further configured to determine a target protection group linked list associated with the target physical link, where a protection group linked list associated with a physical link includes information of each tunnel carried by the physical link;
and the triggering unit 32 is used for triggering the protection switching operation of each tunnel in the target protection group linked list.
Optionally, a second BFD detection mechanism with a detection period T' is configured for each tunnel in the network; the device further comprises a judging unit:
a recording unit, configured to record a time point when the first BFD fault is received;
the receiving unit 30 is further configured to receive a second BFD fault reported by a network device, where if a network device does not receive a second BFD packet sent by an opposite end in n consecutive periods, it is determined that the second BFD fault is detected, and n is an integer greater than or equal to 1;
if the determining unit 31 determines that the target tunnel fails based on the second BFD failure, the determining unit is configured to determine whether the target tunnel is included in the target protection group linked list;
if yes, the judging unit is further configured to judge whether the second BFD fault is received within a preset duration after the first BFD fault is received;
if yes, not processing the second BFD fault;
otherwise, the triggering unit 32 is configured to trigger a protection switching operation of the target tunnel.
Optionally, the detection periods T' of the second BFD detection mechanism for different tunnel configurations are the same/different;
the detection period T of the first BFD detection mechanism is smaller than the detection period T' of the second BFD detection mechanism.
Optionally, when triggering a protection switching operation of each tunnel in the target protection group linked list, the triggering unit 32 is specifically configured to:
acquiring the protection switching priority of each tunnel in the target protection group linked list;
and based on the protection switching priority of each tunnel, sequentially triggering the operation of switching the business carried by each tunnel from the main link to the corresponding standby link.
Alternatively, the process may be carried out in a single-stage,
if the receiving unit 30 receives the second BFD failure recovery message reported by the network device, the triggering unit 32 is configured to trigger an operation of switching the service carried by the target tunnel from the backup link to the primary link.
The above units may be one or more integrated circuits configured to implement the above methods, for example: one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASIC), or one or more microprocessors (digital singnal processor, abbreviated as DSP), or one or more field programmable gate arrays (Field Programmable Gate Array, abbreviated as FPGA), or the like. For another example, when a unit is implemented in the form of a processing element scheduler code, the processing element may be a general purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processor that may invoke the program code. For another example, the units may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Further, in the management device provided in the embodiments of the present application, from a hardware level, a hardware architecture schematic diagram of the management device may be shown in fig. 4, where the management device may include: a memory 40 and a processor 41,
Optionally, the present application further provides a management device comprising at least one processing element (or chip) for performing the above-described method embodiments.
Optionally, the present application also provides a program product, such as a computer readable storage medium, storing computer executable instructions for causing the computer to perform the above-described method embodiments.
Here, a machine-readable storage medium may be any electronic, magnetic, optical, or other physical storage device that may contain or store information, such as executable instructions, data, or the like. For example, a machine-readable storage medium may be: RAM (Radom Access Memory, random access memory), volatile memory, non-volatile memory, flash memory, a storage drive (e.g., hard drive), a solid state drive, any type of storage disk (e.g., optical disk, dvd, etc.), or a similar storage medium, or a combination thereof.
The system, apparatus, module or unit set forth in the above embodiments may be implemented in particular by a computer chip or entity, or by a product having a certain function. A typical implementation device is a computer, which may be in the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being functionally divided into various units, respectively. Of course, the functions of each element may be implemented in one or more software and/or hardware elements when implemented in the present application.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present application may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Moreover, these computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The foregoing description of the preferred embodiments of the present invention is not intended to limit the invention to the precise form disclosed, and any modifications, equivalents, improvements and alternatives falling within the spirit and principles of the present invention are intended to be included within the scope of the present invention.
Claims (8)
1. The protection switching method is characterized in that the protection switching method is applied to management equipment in a networking, and a first BFD detection mechanism with a detection period of T is respectively configured for physical links between any two adjacent network equipment in the networking; the method comprises the following steps:
receiving a first BFD fault reported by network equipment, wherein if the network equipment does not receive a first BFD message sent by an opposite terminal for n continuous periods, the first BFD fault is determined to be detected, and n is an integer greater than or equal to 1;
if the target physical link is determined to be faulty based on the first BFD fault, determining a target protection group linked list associated with the target physical link, wherein the protection group linked list associated with one physical link comprises information of each tunnel carried by the physical link;
triggering the protection switching operation of each tunnel in the target protection group linked list;
a second BFD detection mechanism with a detection period of T' is respectively configured for each tunnel in the networking; the method further comprises the steps of:
recording the time point of receiving the first BFD fault;
receiving a second BFD fault reported by network equipment, wherein if one network equipment does not receive a second BFD message sent by an opposite terminal for n continuous periods, the second BFD fault is determined to be detected, and n is an integer greater than or equal to 1;
if the target tunnel is determined to have faults based on the second BFD faults, judging whether the target tunnel is included in the target protection group linked list or not;
if yes, judging whether the second BFD fault is received within a preset time period after the first BFD fault is received;
if yes, not processing the second BFD fault;
otherwise, triggering the protection switching operation of the target tunnel.
2. The method according to claim 1, wherein the detection periods T' of the second BFD detection mechanism for different tunnel configurations are the same/different;
the detection period T of the first BFD detection mechanism is smaller than the detection period T' of the second BFD detection mechanism.
3. The method of any of claims 1-2, wherein triggering a protection switching operation for each tunnel in the target protection group linked list comprises:
acquiring the protection switching priority of each tunnel in the target protection group linked list;
and based on the protection switching priority of each tunnel, sequentially triggering the operation of switching the business carried by each tunnel from the main link to the corresponding standby link.
4. A method as claimed in claim 3, wherein the method further comprises:
and triggering the operation of switching the service borne by the target tunnel from the standby link to the main link if the second BFD fault recovery message reported by the network equipment is received.
5. The protection switching device is characterized by being applied to management equipment in a networking, and a first BFD detection mechanism with a detection period of T is respectively configured for physical links between any two adjacent network equipment in the networking; the device comprises:
a receiving unit, configured to receive a first BFD fault reported by a network device, where if a network device does not receive a first BFD packet sent by an opposite terminal in n consecutive periods, it is determined that the first BFD fault is detected, and n is an integer greater than or equal to 1;
the determining unit is further configured to determine a target protection group linked list associated with the target physical link if the determining unit determines that the target physical link fails based on the first BFD failure, where the protection group linked list associated with one physical link includes information of each tunnel carried by the physical link;
the triggering unit is used for triggering the protection switching operation of each tunnel in the target protection group linked list;
a second BFD detection mechanism with a detection period of T' is respectively configured for each tunnel in the networking; the device further comprises a judging unit:
a recording unit, configured to record a time point when the first BFD fault is received;
the receiving unit is further configured to receive a second BFD fault reported by the network device, where if a network device does not receive a second BFD packet sent by the peer end for n consecutive periods, it is determined that the second BFD fault is detected, and n is an integer greater than or equal to 1;
if the determining unit determines that the target tunnel fails based on the second BFD failure, the determining unit is configured to determine whether the target tunnel is included in the target protection group linked list;
if yes, the judging unit is further configured to judge whether the second BFD fault is received within a preset duration after the first BFD fault is received;
if yes, not processing the second BFD fault;
otherwise, the triggering unit is used for triggering the protection switching operation of the target tunnel.
6. The apparatus of claim 5, wherein the detection periods T' of the second BFD detection mechanism for different tunnel configurations are the same/different;
the detection period T of the first BFD detection mechanism is smaller than the detection period T' of the second BFD detection mechanism.
7. The apparatus as claimed in any one of claims 5 to 6, wherein, when triggering a protection switching operation of each tunnel in the target protection group linked list, the triggering unit is specifically configured to:
acquiring the protection switching priority of each tunnel in the target protection group linked list;
and based on the protection switching priority of each tunnel, sequentially triggering the operation of switching the business carried by each tunnel from the main link to the corresponding standby link.
8. The apparatus of claim 7, wherein,
and if the receiving unit receives the message of the second BFD fault recovery reported by the network equipment, the triggering unit is used for triggering the operation of switching the service borne by the target tunnel from the standby link to the main link.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110648232.8A CN113472642B (en) | 2021-06-10 | 2021-06-10 | Protection switching method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110648232.8A CN113472642B (en) | 2021-06-10 | 2021-06-10 | Protection switching method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113472642A CN113472642A (en) | 2021-10-01 |
CN113472642B true CN113472642B (en) | 2023-06-13 |
Family
ID=77869605
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110648232.8A Active CN113472642B (en) | 2021-06-10 | 2021-06-10 | Protection switching method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113472642B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010069175A1 (en) * | 2008-12-15 | 2010-06-24 | 华为技术有限公司 | Method, system and equipment for establishing bidirectional forwarding detection |
WO2015154603A1 (en) * | 2014-10-21 | 2015-10-15 | 中兴通讯股份有限公司 | Tunnel protecting method and device based on shared tunnel |
WO2017054547A1 (en) * | 2015-09-28 | 2017-04-06 | 中兴通讯股份有限公司 | Bidirectional forwarding detection method and apparatus |
WO2021043086A1 (en) * | 2019-09-05 | 2021-03-11 | 华为技术有限公司 | Method, device and system for establishing sbfd session |
Family Cites Families (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101159669A (en) * | 2007-10-09 | 2008-04-09 | 华为技术有限公司 | Service flow switching method and apparatus |
CN101459549B (en) * | 2007-12-14 | 2011-09-21 | 华为技术有限公司 | Link failure processing method and data forwarding device |
CN102195822B (en) * | 2010-03-01 | 2014-05-07 | 杭州华三通信技术有限公司 | Fault detection method and business provider edge (PE) equipment |
CN102377607B (en) * | 2010-08-06 | 2014-08-06 | 华为技术有限公司 | Data transmission method and data transmission device for special two-layer virtual network |
CN101989953A (en) * | 2010-11-09 | 2011-03-23 | 中兴通讯股份有限公司 | Method and equipment for sending bidirectional forwarding detection message |
CN102611610B (en) * | 2011-01-24 | 2016-03-30 | 中兴通讯股份有限公司 | The method and system of a kind of many same paths tunnels centralized management |
CN102282805B (en) * | 2011-05-26 | 2014-04-02 | 华为技术有限公司 | Method for service protection and access device |
CN104468208A (en) * | 2014-11-28 | 2015-03-25 | 杭州华三通信技术有限公司 | Detection and recovery method and device for communication faults |
CN109120449B (en) * | 2018-08-28 | 2022-04-22 | 新华三技术有限公司 | Method and device for detecting link failure |
-
2021
- 2021-06-10 CN CN202110648232.8A patent/CN113472642B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010069175A1 (en) * | 2008-12-15 | 2010-06-24 | 华为技术有限公司 | Method, system and equipment for establishing bidirectional forwarding detection |
WO2015154603A1 (en) * | 2014-10-21 | 2015-10-15 | 中兴通讯股份有限公司 | Tunnel protecting method and device based on shared tunnel |
WO2017054547A1 (en) * | 2015-09-28 | 2017-04-06 | 中兴通讯股份有限公司 | Bidirectional forwarding detection method and apparatus |
WO2021043086A1 (en) * | 2019-09-05 | 2021-03-11 | 华为技术有限公司 | Method, device and system for establishing sbfd session |
Also Published As
Publication number | Publication date |
---|---|
CN113472642A (en) | 2021-10-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111431800B (en) | Method, device and equipment for establishing path and machine-readable storage medium | |
CN106878072B (en) | Message transmission method and device | |
CN109495345B (en) | BFD processing method and network equipment | |
CN109756382B (en) | Fault positioning method and device | |
CN113328916B (en) | BFD detection mode switching method, device and equipment | |
CN103607293A (en) | Flow protection method and equipment thereof | |
CN109167700B (en) | Detection method and device for Segment Routing (SR) tunnel | |
CN102571458A (en) | Switching method and device for tunnel protection sets | |
CN113489149B (en) | Power grid monitoring system service master node selection method based on real-time state sensing | |
CN113472642B (en) | Protection switching method and device | |
CN113055203B (en) | Method and device for recovering exception of SDN control plane | |
CN106375212B (en) | A kind of RSVP message treatment method and device | |
CN109617716B (en) | Data center exception handling method and device | |
CN113098709B (en) | Network recovery method and device based on distributed networking system and computer equipment | |
CN110740094B (en) | Network equipment, BFD message transmission method and device | |
CN114301763B (en) | Distributed cluster fault processing method and system, electronic equipment and storage medium | |
CN114301842B (en) | Route searching method and device, storage medium, processor and network system | |
CN108881011B (en) | LACP (Link aggregation control protocol) switching method and device applied to cross-device | |
CN112583650B (en) | SR-BE tunnel link detection method and system in SPN | |
CN110011819A (en) | Generate method, apparatus, equipment and the system of SD warning information | |
CN111478845B (en) | Protection switching method and provider network edge device | |
CN112383471A (en) | Method, device and equipment for managing knife box link and machine readable storage medium | |
CN104869016B (en) | A kind of transmission method and equipment of data message | |
CN109218135B (en) | BFD detection method and device | |
CN114726779A (en) | Main/standby switching 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |