CN113726650B - SBFD detection method and network equipment - Google Patents

SBFD detection method and network equipment Download PDF

Info

Publication number
CN113726650B
CN113726650B CN202110815900.1A CN202110815900A CN113726650B CN 113726650 B CN113726650 B CN 113726650B CN 202110815900 A CN202110815900 A CN 202110815900A CN 113726650 B CN113726650 B CN 113726650B
Authority
CN
China
Prior art keywords
sbfd
session
tunnel
detection module
path
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
Application number
CN202110815900.1A
Other languages
Chinese (zh)
Other versions
CN113726650A (en
Inventor
贺旦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN202110815900.1A priority Critical patent/CN113726650B/en
Publication of CN113726650A publication Critical patent/CN113726650A/en
Application granted granted Critical
Publication of CN113726650B publication Critical patent/CN113726650B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/825Involving tunnels, e.g. MPLS

Abstract

The application provides a SBFD detection method and network equipment, wherein the method is applied to the network equipment serving as source nodes of a plurality of SR-TE tunnels and comprises the following steps: for any SR-TE tunnel, after detecting that a corresponding main path has a fault, a first SBFD detection module in the network equipment locally acquires a session identifier of an SBFD session of the SR-TE tunnel and sends a session notification message to a second SBFD detection module; after receiving the session notification message, the second SBFD detection module obtains the corresponding backup path information locally according to the session identifier carried by the session notification message, changes the main path information in the corresponding session table entry into the backup path information, regenerates an SBFD Echo message for the SBFD session based on the changed session table entry, and performs SBFD detection on the corresponding backup path by using the SBFD Echo message. The method and the device can reduce the occurrence of SBFD session oscillation.

Description

SBFD detection method and network equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a SBFD detection method and a network device.
Background
Segment Routing-Traffic Engineering (SR-TE) is a novel Multiprotocol Label switching (MPLS) -TE tunnel technology, which is used as a source node of an SR-TE tunnel, and when a data packet from a user equipment is received and the data packet needs to be forwarded through the SR-TE tunnel, a corresponding MPLS Label stack is encapsulated for the data packet, and then the data packet is forwarded.
In order to improve the reliability of a network using an SR-TE tunnel, a primary Path and a backup Path of the SR-TE tunnel are usually configured on a source node, both of which are Label Switched Paths (LSPs), and when the primary Path is normal, the source node forwards a data packet using the primary Path; when the main path fails, the source node is switched to the standby path to forward the data message; when the main path is recovered to be normal, the source node switches back to the main path to forward the data message.
Specifically, for a source node, for any SR-TE tunnel configured on the source node, a first Seamless Bidirectional Forwarding Detection (SBFD) Detection module in the source node creates a first SBFD session for a main path of the SR-TE tunnel, and detects whether the main path fails by using the first SBFD session; and a second SBFD detection module in the source node creates a second SBFD session for the SR-TE tunnel, and detects whether the SR-TE tunnel fails by using the second SBFD session.
Here, initially, the second SBFD session created by the second SBFD detection module for the SR-TE tunnel is different from the first SBFD session only in the detection interval and the total detection duration. The detection interval corresponding to the second SBFD session is greater than the detection interval corresponding to the first SBFD session, for example, the detection interval corresponding to the second SBFD session is 50ms, and the detection interval corresponding to the first SBFD session is 10ms; the total detection duration corresponding to the second SBFD session is greater than the total detection duration corresponding to the first SBFD session, for example, the total detection duration corresponding to the second SBFD session is 150ms, and the total detection duration corresponding to the first SBFD session is 30ms.
Once a first SBFD detection module in a source node detects that a main path fails, the first SBFD detection module sends a failure message carrying identification information of the main path to an SR-TE application module in the source node; after receiving the failure message, the SR-TE application module determines, according to the identification information of the main path, backup path information (for example, information including an MPLS label stack, an egress interface, and the like corresponding to the backup path) required when forwarding a data packet using the backup path of the SR-TE tunnel to which the main path belongs, notifies a second SBFD detection module to update a session table entry corresponding to a second SBFD session of the SR-TE tunnel, and processes the received data packet using the determined backup path information, that is, switches to the backup path to forward a related data packet.
And a subsequent second SBFD detection module acquires the determined backup path information from the SR-TE application module, changes the main path information of the main path in a session table entry corresponding to the second SBFD session into the acquired backup path information, regenerates an SBFD Echo message for the second SBFD session based on the changed session table entry, and performs SBFD detection on the backup path of the SR-TE tunnel by using the SBFD Echo message, namely, switches the backup path to the backup path of the SR-TE tunnel for SBFD detection.
In the SBFD detection procedure for the SR-TE tunnels, when the number of SR-TE tunnels is large and a main path of part or all SR-TE tunnels passes through the same intermediate node, once the intermediate node fails, the first SBFD detection module in the source node detects that the main paths of the tunnels all fail, and needs to sequentially perform interaction with the SR-TE application module in the source node and interaction between the SR-TE application module and the second SBFD detection module in the source node to switch to the backup paths of the tunnels for SBFD detection.
However, under the condition that the total detection time of the corresponding second SBFD session is short, because the interaction time required for successful switching once is long, it is very easy to happen that the switching to the corresponding standby path for SBFD detection cannot be completed within the total detection time of a part of tunnels, so that a part of the second SBFD session oscillates, and network experience is further affected.
Disclosure of Invention
In order to overcome the problems in the related art, the application provides an SBFD detection method and network equipment.
According to a first aspect of embodiments of the present application, there is provided a SBFD detection method, which is applied to a network device serving as a source node of multiple SR-TE tunnels, and includes:
for any SR-TE tunnel, after detecting that a main path of the SR-TE tunnel fails, a first SBFD detection module in the network device locally obtains a session discriminator of an SBFD session created for the SR-TE tunnel by a second SBFD detection module in the network device, and sends a session notification message carrying the session discriminator to the second SBFD detection module;
after receiving the session notification message, the second SBFD detection module locally obtains the backup path information of the backup path of the SR-TE tunnel to which the SBFD session belongs according to the session specifier, changes the main path information of the main path in the session table entry corresponding to the session specifier locally to the obtained backup path information, regenerates an SBFD Echo (Echo) message for the SBFD session based on the changed session table entry, and performs SBFD detection on the backup path of the SR-TE tunnel by using the SBFD Echo message.
According to a second aspect of the embodiments of the present application, a network device is provided, where the network device is a source node of a plurality of SR-TE tunnels, and the network device includes a first SBFD detection module and a second SBFD detection module; wherein the content of the first and second substances,
the first SBFD detection module is configured to, for any SR-TE tunnel, after detecting that a main path of the SR-TE tunnel fails, locally obtain a session discriminator of an SBFD session created by the second SBFD detection module for the SR-TE tunnel, and send a session notification message carrying the session discriminator to the second SBFD detection module;
the second SBFD detection module is configured to, after receiving the session notification message, locally obtain, according to the session specifier, backup path information of a backup path of the SR-TE tunnel to which the SBFD session belongs, change the main path information of the main path in a session table entry corresponding to the session specifier locally to the obtained backup path information, regenerate, based on the changed session table entry, an SBFD Echo message for the SBFD session, and perform SBFD detection on the backup path of the SR-TE tunnel by using the SBFD Echo message.
The technical scheme provided by the embodiment of the application can have the following beneficial effects:
in this embodiment of the present application, no matter how many SR-TE tunnels are configured on the source node, once the first SBFD detection module in the source node detects that a main path of a certain SR-TE tunnel fails, the first SBFD detection module may directly obtain, from the local, a session discriminator of an SBFD session created for the SR-TE tunnel by the second SBFD detection module in the source node, and notify the session discriminator to the second SBFD detection module; the subsequent second SBFD detection module does not need to interact with an SR-TE application module in the source node, can directly obtain the standby path information of the standby path of the SR-TE tunnel from the local according to the session identifier, and changes the main path information of the main path in the session table item corresponding to the session identifier into the obtained standby path information; and then, the second SBFD detection module regenerates the SBFD Echo message for the SBFD session created for the SR-TE tunnel based on the changed session table entry, and performs SBFD detection on the backup path of the SR-TE tunnel by using the SBFD Echo message.
Therefore, under the condition that the total detection time of the SBFD session established by the source node for the SR-TE tunnel is short, compared with the prior art, multiple interactions between the SR-TE application module and the second SBFD detection module in the source node are omitted, the interaction time for switching to the corresponding standby path for SBFD detection is greatly shortened, the occurrence of SBFD session oscillation is reduced, and further network experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a schematic flowchart of an SBFD detection method according to an embodiment of the present disclosure;
fig. 2A is a schematic structural diagram of a network device according to an embodiment of the present application;
fig. 2B is a second schematic structural diagram of a network device according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein 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 appended 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 and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if," as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination," depending on the context.
Next, examples of the present application will be described in detail.
The embodiment of the application provides an SBFD detection method, which is applied to a source node configured with a plurality of SR-TE tunnels, and as shown in fig. 1, the method may include the following steps:
s11, aiming at any SR-TE tunnel, after detecting that the main path of the SR-TE tunnel has a fault, a first SBFD detection module in a source node locally acquires a session identifier of an SBFD session created for the SR-TE tunnel by a second SBFD detection module in the source node, and sends a session notification message carrying the session identifier to the second SBFD detection module.
S12, after receiving the session notification message, the second SBFD detection module locally acquires the backup path information of the backup path of the SR-TE tunnel to which the corresponding SBFD session belongs according to the session identifier, changes the main path information of the main path in the session table entry corresponding to the local session identifier into the acquired backup path information, regenerates an SBFD Echo message for the SBFD session based on the changed session table entry, and performs SBFD detection on the backup path of the SR-TE tunnel by using the SBFD Echo message.
In this step, other contents in the session table entry are the same as those in the existing session table entry, for example, the session table entry further includes a source IP address, a destination IP address, and the like, which are not described in detail herein.
It should be noted that the main path and the standby path mentioned in the above detection method flow are both LSPs.
Specifically, in step S11, the session specifier is a session specifier corresponding to the SBFD session corresponding to the tunnel identifier of the SR-TE tunnel, and is acquired and stored from the second SBFD detection module according to the tunnel identifier of the SR-TE tunnel before the first SBFD detection module detects that the main path of the SR-TE tunnel fails and after the SBFD session is created for the main path of the SR-TE tunnel.
That is, the first SBFD detection module further performs the following operations:
before the main path of the SR-TE tunnel is detected to have a fault and after the SBFD session is established for the main path of the SR-TE tunnel, the session identifier corresponding to the SBFD session corresponding to the tunnel identifier is obtained from the second SBFD detection module according to the tunnel identifier of the SR-TE tunnel and is stored.
It should be noted that, initially, the SBFD session created by the first SBFD detection module for the main path of the SR-TE tunnel is different from the SBFD session created by the second SBFD detection module for the SR-TE tunnel, and the SBFD session is the same as the SBFD session created by the second SBFD detection module in the prior art, but the detection interval and the total detection duration of the SBFD detection module are different. Wherein the detection interval of the latter (i.e. the SBFD session created by the second SBFD detection module for the SR-TE tunnel) is greater than that of the former (i.e. the SBFD session created by the first SBFD detection module for the main path of the SR-TE tunnel), for example, the detection interval of the latter is 50ms, and the detection interval of the former is 10ms; the latter total detection time period is longer than the former total detection time period, for example, the latter total detection time period is 150ms, and the former total detection time period is 30ms.
By executing the operation flow, the first SBFD detection module can directly notify the second SBFD detection module of the locally stored corresponding session identifier when detecting that the main path fails, so that the second SBFD detection module can directly execute the relevant local operation in step S12 according to the session identifier to switch to the standby path for SBFD detection, without multiple interactions with the SR-TE application module in the source node, thereby greatly shortening the interaction duration for switching to the standby path for SBFD detection, reducing SBFD session oscillation, and further improving network experience.
Specifically, in step S12, the backup path information is actually sent by the SR-TE application module in the source node, which is received and stored by the second SBFD detection module before the session notification message is received.
That is, the second SBFD detection module also performs the following operations:
and before receiving the session notification message, receiving and storing the standby path information of the standby path of the SR-TE tunnel, which is sent by the SR-TE application module in the source node.
Here, the second SBFD detection module may directly obtain the corresponding backup path information from the local according to the session specifier carried in the session notification message after receiving the session notification message sent by the first SBFD detection module by executing the operation procedure, so as to complete the related operation of performing SBFD detection by subsequently switching to the corresponding backup path.
It should be noted that, in this embodiment of the present application, after detecting that the main path fails, the first SBFD detection module still sends a failure message carrying the identification information of the main path to the SR-TE application module according to the existing manner; and after receiving the fault message, the SR-TE application module determines the standby path information required when the standby path of the SR-TE tunnel to which the main path belongs is used for forwarding the data message according to the identification information, and processes the received data message by using the determined standby path information.
Further, in this embodiment of the present application, after detecting that the main path is restored to normal, the first SBFD detection module sends a failure recovery message carrying identification information to the SR-TE application module; after receiving the fault recovery message, the SR-TE application module forwards a subsequently received data message by using the main path according to the existing flow on the one hand; and on the other hand, the step of determining the required standby path information when the standby path of the SR-TE tunnel to which the main path belongs is used for forwarding the data message is continuously executed according to the identification information, and the determined standby path information is sent to the second SBFD detection module for storage, so that the second SBFD detection module can be conveniently used when the main path fails again, and can be switched to the corresponding standby path for SBFD detection as soon as possible.
As can be seen from the above technical solutions, in the embodiment of the present application, no matter how many SR-TE tunnels are configured on a source node, once a first SBFD detection module in the source node detects that a main path of a certain SR-TE tunnel fails, the first SBFD detection module may directly obtain a session identifier of an SBFD session created for the SR-TE tunnel by a second SBFD detection module in the source node from local, and notify the session identifier to the second SBFD detection module; the subsequent second SBFD detection module does not need to interact with an SR-TE application module in the source node, can directly obtain the standby path information of the standby path of the SR-TE tunnel from the local according to the session identifier, and changes the main path information of the main path in the session table item corresponding to the session identifier into the obtained standby path information; and then, the second SBFD detection module regenerates the SBFD Echo message for the SBFD session created for the SR-TE tunnel based on the changed session table entry, and performs SBFD detection on the backup path of the SR-TE tunnel by using the SBFD Echo message.
Therefore, under the condition that the total detection time of the SBFD session established by the source node for the SR-TE tunnel is short, compared with the prior art, multiple interactions between the SR-TE application module and the second SBFD detection module in the source node are omitted, the interaction time for switching to the corresponding standby path for SBFD detection is greatly shortened, the occurrence of SBFD session oscillation is reduced, and further network experience is improved.
Based on the same inventive concept, the present application further provides a network device, where the network device is a source node of multiple SR-TE tunnels, and a schematic structural diagram of the network device is shown in fig. 2A, and the network device specifically includes a first SBFD detection module 21 and a second SBFD detection module 22; wherein the content of the first and second substances,
the first SBFD detection module 21 is configured to, for any SR-TE tunnel, after detecting that a main path of the SR-TE tunnel fails, locally acquire a session identifier of an SBFD session that the second SBFD detection module 22 creates for the SR-TE tunnel, and send a session notification message carrying the session identifier to the second SBFD detection module 22;
the second SBFD detection module 22 is configured to, after receiving the session notification message, locally obtain, according to the session identifier, backup path information of a backup path of the SR-TE tunnel to which the SBFD session belongs, change the main path information of the main path in the session entry corresponding to the session identifier locally into the obtained backup path information, regenerate, based on the changed session entry, an SBFD Echo message for the SBFD session, and perform SBFD detection on the backup path of the SR-TE tunnel by using the SBFD Echo message.
Preferably, the first SBFD detection module 21 is further configured to, before detecting that the main path of the SR-TE tunnel fails and after creating the SBFD session for the main path of the SR-TE tunnel, obtain, from the second SBFD detection module, and store, according to the tunnel identifier of the SR-TE tunnel, the session identifier corresponding to the SBFD session corresponding to the tunnel identifier.
Preferably, the network device further comprises an SR-TE application module 23 (shown in fig. 2B);
the second SBFD detecting module 22 is further configured to receive and store the backup path information of the backup path of the SR-TE tunnel sent by the SR-TE application module 23 before receiving the session notification message.
Preferably, the first SBFD detecting module 21 is further configured to send a failure message carrying identification information of the main path to the SR-TE application module 23 after detecting that the main path fails;
the SR-TE application module 23 is configured to, after receiving the fault message, determine, according to the identification information, standby path information required when forwarding a data packet using a standby path of the SR-TE tunnel to which the main path belongs, and process the received data packet using the determined standby path information.
Preferably, the first SBFD detection module 21 is further configured to send a failure recovery message carrying the identification information to the SR-TE application module 23 after detecting that the main path is recovered to normal;
the SR-TE application module 23 is further configured to, after receiving the failure recovery message, execute a step of determining, according to the identification information, the backup path information required when the backup path of the SR-TE tunnel to which the main path belongs is used to forward the data packet, and send the determined backup path information to the second SBFD detection module 22 for storage.
As can be seen from the above technical solutions, in the embodiment of the present application, no matter how many SR-TE tunnels are configured on a source node, once a first SBFD detection module in the source node detects that a main path of a certain SR-TE tunnel fails, the first SBFD detection module may directly obtain a session identifier of an SBFD session created for the SR-TE tunnel by a second SBFD detection module in the source node from local, and notify the session identifier to the second SBFD detection module; the subsequent second SBFD detection module does not need to interact with an SR-TE application module in the source node, can directly obtain the standby path information of the standby path of the SR-TE tunnel from the local according to the session identifier, and changes the main path information of the main path in the session table item corresponding to the session identifier into the obtained standby path information; and then, the second SBFD detection module regenerates the SBFD Echo message for the SBFD session created for the SR-TE tunnel based on the changed session table entry, and performs SBFD detection on the backup path of the SR-TE tunnel by using the SBFD Echo message.
Therefore, under the condition that the total detection time of the SBFD session established by the source node for the SR-TE tunnel is short, compared with the prior art, multiple interactions between the SR-TE application module and the second SBFD detection module in the source node are omitted, the interaction time for switching to the corresponding standby path for SBFD detection is greatly shortened, the occurrence of SBFD session oscillation is reduced, and further network experience is improved.
An electronic device is further provided in the embodiments of the present application, as shown in fig. 3, including a processor 31 and a machine-readable storage medium 32, where the machine-readable storage medium 32 stores machine-executable instructions that can be executed by the processor 31, and the processor 31 is caused by the machine-executable instructions to: and (3) realizing the steps of the SBFD detection method.
The machine-readable storage medium may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Alternatively, the machine-readable storage medium may 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; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In yet another embodiment provided by the present application, a computer-readable storage medium is further provided, in which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the SBFD detection method described above.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A Seamless Bidirectional Forwarding Detection (SBFD) detection method is applied to a network device serving as a source node of a multi-segment routing traffic engineering (SR-TE) tunnel, and comprises the following steps:
for any SR-TE tunnel, after detecting that a main path of the SR-TE tunnel fails, a first SBFD detection module in the network equipment locally acquires a session identifier of an SBFD session created for the SR-TE tunnel by a second SBFD detection module in the network equipment, and sends a session notification message carrying the session identifier to the second SBFD detection module;
after receiving the session notification message, the second SBFD detection module locally obtains the backup path information of the backup path of the SR-TE tunnel to which the SBFD session belongs according to the session specifier, changes the main path information of the main path in the session table entry corresponding to the session specifier locally to the obtained backup path information, regenerates an SBFD Echo message for the SBFD session based on the changed session table entry, and performs SBFD detection on the backup path of the SR-TE tunnel by using the SBFD Echo message.
2. The method of claim 1, further comprising:
before the first SBFD detection module detects that the main path of the SR-TE tunnel fails and after the SBFD session is established for the main path of the SR-TE tunnel, the first SBFD detection module acquires and stores the session identifier corresponding to the SBFD session corresponding to the tunnel identifier from the second SBFD detection module according to the tunnel identifier of the SR-TE tunnel.
3. The method of claim 1, further comprising:
and before receiving the session notification message, the second SBFD detection module receives and stores the backup path information of the backup path of the SR-TE tunnel sent by the SR-TE application module in the network device.
4. The method of claim 3, further comprising:
after detecting that the main path fails, the first SBFD detection module sends a failure message carrying identification information of the main path to the SR-TE application module;
after receiving the fault message, the SR-TE application module determines, according to the identification information, the backup path information required when forwarding the data packet using the backup path of the SR-TE tunnel to which the main path belongs, and processes the received data packet using the determined backup path information.
5. The method of claim 4, further comprising:
after detecting that the main path is recovered to normal, the first SBFD detection module sends a fault recovery message carrying the identification information to the SR-TE application module;
after receiving the failure recovery message, the SR-TE application module executes a step of determining, according to the identification information, backup path information required when the backup path of the SR-TE tunnel to which the main path belongs is used to forward the data packet, and sends the determined backup path information to the second SBFD detection module for storage.
6. A network device is characterized in that the network device is a source node of a plurality of segment routing traffic engineering SR-TE tunnels and comprises a first SBFD detection module and a second SBFD detection module; wherein the content of the first and second substances,
the first SBFD detection module is configured to, after detecting that a main path of any SR-TE tunnel fails, locally obtain a session specifier of an SBFD session created for the SR-TE tunnel by the second SBFD detection module, and send a session notification message carrying the session specifier to the second SBFD detection module;
the second SBFD detection module is configured to, after receiving the session notification message, locally obtain, according to the session specifier, backup path information of a backup path of the SR-TE tunnel to which the SBFD session belongs, change the main path information of the main path in a session table entry corresponding to the session specifier locally to the obtained backup path information, regenerate, based on the changed session table entry, an SBFD Echo message for the SBFD session, and perform SBFD detection on the backup path of the SR-TE tunnel by using the SBFD Echo message.
7. The network device according to claim 6, wherein the first SBFD detection module is further configured to, before detecting that the primary path of the SR-TE tunnel fails and after creating the SBFD session for the primary path of the SR-TE tunnel, obtain and store the session identifier corresponding to the SBFD session corresponding to the tunnel identifier from the second SBFD detection module according to the tunnel identifier of the SR-TE tunnel.
8. The network device of claim 6, wherein the network device further comprises an SR-TE application module;
the second SBFD detection module is further configured to receive and store the backup path information of the backup path of the SR-TE tunnel sent by the SR-TE application module before receiving the session notification message.
9. The network device according to claim 8, wherein the first SBFD detection module is further configured to send a failure message carrying identification information of the primary path to the SR-TE application module after detecting that the primary path fails;
and the SR-TE application module is used for determining the standby path information required when the standby path of the SR-TE tunnel to which the main path belongs is used for forwarding the data message according to the identification information after receiving the fault message, and processing the received data message by using the determined standby path information.
10. The network device according to claim 9, wherein the first SBFD detection module is further configured to send a failure recovery message carrying the identification information to the SR-TE application module after detecting that the primary path is recovered to normal;
and the SR-TE application module is further configured to, after receiving the failure recovery message, execute a step of determining, according to the identification information, the backup path information required when the backup path of the SR-TE tunnel to which the main path belongs is used to forward the data packet, and send the determined backup path information to the second SBFD detection module for storage.
CN202110815900.1A 2021-07-19 2021-07-19 SBFD detection method and network equipment Active CN113726650B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110815900.1A CN113726650B (en) 2021-07-19 2021-07-19 SBFD detection method and network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110815900.1A CN113726650B (en) 2021-07-19 2021-07-19 SBFD detection method and network equipment

Publications (2)

Publication Number Publication Date
CN113726650A CN113726650A (en) 2021-11-30
CN113726650B true CN113726650B (en) 2022-11-18

Family

ID=78673484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110815900.1A Active CN113726650B (en) 2021-07-19 2021-07-19 SBFD detection method and network equipment

Country Status (1)

Country Link
CN (1) CN113726650B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338514B (en) * 2021-12-27 2023-06-16 中国电信股份有限公司 Network detection method, device, medium and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036781A (en) * 2013-01-04 2013-04-10 杭州华三通信技术有限公司 Method and device for processing main path link failures
WO2015149358A1 (en) * 2014-04-04 2015-10-08 Telefonaktiebolaget L M Ericsson (Publ) Apparatus and method for establishing a repair path
CN110113259A (en) * 2019-04-26 2019-08-09 新华三技术有限公司 Path status notification method, path switching method, forwarding device and system
CN110535772A (en) * 2019-08-27 2019-12-03 南京中兴软件有限责任公司 Sending and receiving method, device and the network element of Segment routing traffic engineering strategy
CN111490933A (en) * 2020-03-31 2020-08-04 新华三信息安全技术有限公司 Bidirectional forwarding detection switching method and edge device
CN112448877A (en) * 2019-09-05 2021-03-05 华为技术有限公司 SBFD session establishment method, device and system
CN113114563A (en) * 2021-04-14 2021-07-13 网络通信与安全紫金山实验室 Traffic back-off delay method, device and storage medium based on segmented routing strategy

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103036781A (en) * 2013-01-04 2013-04-10 杭州华三通信技术有限公司 Method and device for processing main path link failures
WO2015149358A1 (en) * 2014-04-04 2015-10-08 Telefonaktiebolaget L M Ericsson (Publ) Apparatus and method for establishing a repair path
CN110113259A (en) * 2019-04-26 2019-08-09 新华三技术有限公司 Path status notification method, path switching method, forwarding device and system
CN110535772A (en) * 2019-08-27 2019-12-03 南京中兴软件有限责任公司 Sending and receiving method, device and the network element of Segment routing traffic engineering strategy
WO2021036334A1 (en) * 2019-08-27 2021-03-04 南京中兴软件有限责任公司 Methods and apparatuses for sending and receiving segment routing traffic engineering policy, network element, and computer-readable storage medium
CN112448877A (en) * 2019-09-05 2021-03-05 华为技术有限公司 SBFD session establishment method, device and system
WO2021043086A1 (en) * 2019-09-05 2021-03-11 华为技术有限公司 Method, device and system for establishing sbfd session
CN111490933A (en) * 2020-03-31 2020-08-04 新华三信息安全技术有限公司 Bidirectional forwarding detection switching method and edge device
CN113114563A (en) * 2021-04-14 2021-07-13 网络通信与安全紫金山实验室 Traffic back-off delay method, device and storage medium based on segmented routing strategy

Also Published As

Publication number Publication date
CN113726650A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
US8027247B2 (en) Method and router for controlling graceful restart status
CN107911291A (en) VRRP routers switching method, router, VRRP active-standby switch system and storage medium
US20130294226A1 (en) Priority domains for protection switching processes
US9699073B2 (en) System and method for reducing traffic loss while using loop free alternate routes for multicast only fast reroute (MoFRR)
CN107612754A (en) Two-way conversion link fault detection method, device and apparatus for network node
WO2020030000A1 (en) Disaster recovery switching method, related device and computer storage medium
CN103748843A (en) Methods and apparatus for avoiding inter-chassis redundancy switchover to non-functional standby nodes
CN102387087A (en) Method and system for realizing standby route based on active detection technique
CN106789264A (en) The method and apparatus that a kind of link aggregation group passage is switched fast
CN108924044A (en) Link maintains method, PE equipment and readable storage medium storing program for executing
CN113726650B (en) SBFD detection method and network equipment
CN111585797B (en) Ethernet link switching method, device, equipment and computer readable storage medium
US8948002B2 (en) Method and device for preventing repeated refreshing of address table of Ethernet ring network node
US10541904B2 (en) Establishing a network fault detection session
US9356859B2 (en) Techniques for performing a failover from a protected connection to a backup connection
CN110224886B (en) Tunnel connectivity detection method and device and network edge equipment
CN113179210B (en) BFD detection method, BFD detection device, electronic equipment and storage medium
US7869350B1 (en) Method and apparatus for determining a data communication network repair strategy
CN110138656B (en) Service processing method and device
CN110011819B (en) Method, device, equipment and system for generating SD (secure digital) alarm information
CN112104548A (en) Communication method and device
CN111669320B (en) Method for processing message and network equipment
CN112367179B (en) Link switching method and device
CN115037670A (en) Network convergence method and device, electronic equipment and storage medium
CN105812160B (en) A kind of seamless redundant network mode adaptive 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