[go: up one dir, main page]

CN114650241B - A tunnel path fault detection method, control method, device and communication node - Google Patents

A tunnel path fault detection method, control method, device and communication node Download PDF

Info

Publication number
CN114650241B
CN114650241B CN202011516342.0A CN202011516342A CN114650241B CN 114650241 B CN114650241 B CN 114650241B CN 202011516342 A CN202011516342 A CN 202011516342A CN 114650241 B CN114650241 B CN 114650241B
Authority
CN
China
Prior art keywords
lsp
static
bfd session
tunnel
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
CN202011516342.0A
Other languages
Chinese (zh)
Other versions
CN114650241A (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.)
China Mobile Communications Group Co Ltd
Research Institute of China Mobile Communication Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Research Institute of China Mobile Communication 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 China Mobile Communications Group Co Ltd, Research Institute of China Mobile Communication Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202011516342.0A priority Critical patent/CN114650241B/en
Publication of CN114650241A publication Critical patent/CN114650241A/en
Application granted granted Critical
Publication of CN114650241B publication Critical patent/CN114650241B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a tunnel path fault detection method, a control method, a device and a communication node, wherein the tunnel path fault detection method comprises the steps of respectively carrying out fault detection on a first main LSP of a first tunnel and a second main LSP of a second tunnel through a first static BFD session and a second static BFD session, wherein the first main LSP is a forward path, the second main LSP is a reverse path which is the same as the first main LSP in path, the RD value of the first static BFD session is the LD value of the second static BFD session, and the RD value of the second static BFD session is the LD value of the first static BFD session. The scheme can realize avoiding BFD return to travel the shortest path of the IGP and ensuring that the return and LSP share the path, thereby realizing that the fault detection of the main LSP is different from the fault detection of the standby LSP, avoiding the misjudgment of path fault detection, further realizing that the standby LSP can play a real role in backup protection when the main LSP of the tunnel breaks down, and well solving the problem of misjudgment of the path fault detection scheme in the prior art.

Description

Tunnel path fault detection method, control method, device and communication node
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a tunnel path fault detection method, a control method, a device, and a communication node.
Background
Current failure detection methods for SR (segment routing) -TE (traffic engineering), SRv (IPv 6 based SR) Policy tunnel HSB (Hot Standby protection) protection are dynamic BFD (Bidirectional Forwarding Detection ) and SBFD (seamless bidirectional forwarding detection). Specific:
The dynamic BFD detects the LSP (Label SWITCHED PATH, label switching path) of the tunnel, the two ends of the BFD session set up the session through the dynamic negotiation of the control plane, the BFD session LD (local identifier) and RD (remote identifier) are distributed through the dynamic negotiation of the two ends of the tunnel, the two ends maintain the state machine of the BFD session, when the dynamic BFD detects the failure of the LSP of the tunnel, the tunnel head end device switches the flow to the standby path rapidly, realizing the switching of the active and standby paths within 50 ms.
SBFD detects the tunnel primary and backup LSPs, wherein the tunnel head end is SBFD transmitting end, and the tail end is SBFD reflecting end. The transmitting end maintains the session state machine, sends BFD detection message, the reflecting end checks and returns BFD detection message without BFD session state information, and when SBFD does not configure RD explicitly, discriminator (identifier) of the reflecting end is obtained as RD. When SBFD detects that the tunnel main LSP has a fault, the tunnel head-end equipment rapidly switches the flow to the standby path, and realizes the switching of the main and standby paths within 50 ms.
However, the two fault detection methods of the current dynamic BFD and SBFD have the following problems:
BFD return messages of the main LSP and the standby LSP of the tunnel all take the shortest path of the IGP (Interior Gateway Protocol ), when the main LSP of the tunnel is the shortest path of the IGP, the main LSP and the standby LSP are misjudged to be all failed when the main LSP of the tunnel fails, so that the main LSP and the standby LSP of the tunnel are meaningless, a tunnel protection mechanism fails, and therefore, more than second-level interruption of service flow is caused, and the user experience is influenced.
From the above, the existing path fault detection scheme has the problem of erroneous judgment.
Disclosure of Invention
The invention aims to provide a tunnel path fault detection method, a control method, a device and a communication node, which are used for solving the problem of misjudgment of a path fault detection scheme in the prior art.
In order to solve the above technical problem, an embodiment of the present invention provides a tunnel path fault detection method, applied to a first communication node, including:
performing fault detection on a first main label switching path LSP of a first tunnel and a second main LSP of a second tunnel through a first static bidirectional forwarding detection BFD session and a second static BFD session respectively;
the first main LSP is a forward path, and the second main LSP is a reverse path which is the same as the first main LSP in path;
The remote identifier RD value of the first static BFD session is the local identifier LD value of the second static BFD session, and the RD value of the second static BFD session is the LD value of the first static BFD session.
Optionally, the first tunnel further comprises a first standby LSP, and the second tunnel further comprises a second standby LSP;
the path fault detection method further comprises the following steps:
performing fault detection on the first standby LSP of the first tunnel and the second standby LSP of the second tunnel through a third static BFD session and a fourth static BFD session respectively;
the first standby LSP is a forward path, and the second standby LSP is a reverse path which is the same as the first standby LSP in path;
the RD value of the third static BFD session is the LD value of the fourth static BFD session, which is the LD value of the third static BFD session;
the first main LSP and the first standby LSP are different paths, and the second main LSP and the second standby LSP are different paths.
Optionally, the method further comprises:
and under the condition that the first main LSP fault and the second main LSP fault are detected, switching the tunnel path of the first tunnel from the first main LSP to the first standby LSP, and switching the tunnel path of the second tunnel from the second main LSP to the second standby LSP.
Optionally, before fault detection is performed on the first primary LSP of the first tunnel and the second primary LSP of the second tunnel through the first static BFD session and the second static BFD session, the method further includes:
Receiving configuration information sent by a second communication node, wherein the configuration information comprises creation configuration information of the first tunnel and the second tunnel, and indication configuration information indicating that the first static BFD session is associated with a first main LSP, the second static BFD session is associated with a second main LSP, the third static BFD session is associated with a first standby LSP and the fourth static BFD session is associated with a second standby LSP;
creating the first tunnel and the second tunnel according to the creation configuration information;
And respectively establishing association among the first static BFD session, the second static BFD session, the third static BFD session, the first standby LSP and the fourth static BFD session and the second standby LSP according to the indication configuration information.
Optionally, before receiving the configuration information sent by the second communication node, the method further includes:
receiving an interface query request sent by the second communication node;
And feeding back the locally available LD to the second communication node according to the interface query request.
Optionally, before receiving the configuration information sent by the second communication node, the method further includes:
creating a static BFD configuration interface with the second communication node;
wherein the interface parameters of the static BFD configuration interface include at least one of the following parameters:
session name, home terminal identification, opposite terminal identification, minimum sending interval, minimum receiving interval, detection multiple, tunnel identification and LSP type;
the LSP type is a primary LSP or a standby LSP.
Optionally, the method further comprises:
Receiving an update instruction sent by a second communication node;
And updating the first main LSP, the second main LSP, the first standby LSP, the second standby LSP, the first static BFD session, the second static BFD session, the third static BFD session and the fourth static BFD session according to the update indication.
The embodiment of the invention also provides a tunnel path control method which is applied to the second communication node and comprises the following steps:
obtaining configuration information according to a local available local identifier LD of the first communication node;
Transmitting the configuration information to the first communication node;
the configuration information comprises creation configuration information of a first tunnel and a second tunnel, and indication configuration information indicating that a first static Bidirectional Forwarding Detection (BFD) session is associated with a first main Label Switched Path (LSP), a second static BFD session is associated with a second main LSP, a third static BFD session is associated with a first standby LSP and a fourth static BFD session is associated with a second standby LSP;
The first main LSP is a forward path, and the second main LSP is a reverse path which is the same as the first main LSP; the first standby LSP is a forward path, and the second standby LSP is a reverse path which is the same as the first standby LSP in path;
The remote identifier RD value of the first static BFD session is the LD value of the second static BFD session, and the RD value of the second static BFD session is the LD value of the first static BFD session;
the RD value of the third static BFD session is the LD value of the fourth static BFD session, which is the LD value of the third static BFD session;
the first main LSP and the first standby LSP are different paths, and the second main LSP and the second standby LSP are different paths.
Optionally, before obtaining the configuration information according to the locally available local identifier LD of the first communication node, the method further comprises:
Sending an interface query request to the first communication node;
And receiving the local available LD of the first communication node fed back by the first communication node according to the interface query request.
Optionally, before sending the configuration information to the first communication node, the method further includes:
creating a static BFD configuration interface with the first communication node;
wherein the interface parameters of the static BFD configuration interface include at least one of the following parameters:
session name, home terminal identification, opposite terminal identification, minimum sending interval, minimum receiving interval, detection multiple, tunnel identification and LSP type;
the LSP type is a primary LSP or a standby LSP.
Optionally, the method further comprises:
Acquiring an update instruction under the condition that the first main LSP and/or the second main LSP are detected to not meet a preset condition;
transmitting the update indication to the first communication node;
wherein the update indication is used for indicating to update the first primary LSP, the second primary LSP, the first standby LSP, the second standby LSP, the first static BFD session, the second static BFD session, the third static BFD session and the fourth static BFD session.
The embodiment of the invention also provides a tunnel path fault detection device, which is applied to the first communication node and comprises:
the first detection module is used for respectively carrying out fault detection on a first main label switching path LSP of the first tunnel and a second main LSP of the second tunnel through a first static Bidirectional Forwarding Detection (BFD) session and a second static BFD session;
the first main LSP is a forward path, and the second main LSP is a reverse path which is the same as the first main LSP in path;
The remote identifier RD value of the first static BFD session is the local identifier LD value of the second static BFD session, and the RD value of the second static BFD session is the LD value of the first static BFD session.
Optionally, the first tunnel further comprises a first standby LSP, and the second tunnel further comprises a second standby LSP;
the path failure detection device further includes:
The second detection module is used for respectively carrying out fault detection on the first standby LSP of the first tunnel and the second standby LSP of the second tunnel through the third static BFD session and the fourth static BFD session;
the first standby LSP is a forward path, and the second standby LSP is a reverse path which is the same as the first standby LSP in path;
the RD value of the third static BFD session is the LD value of the fourth static BFD session, which is the LD value of the third static BFD session;
the first main LSP and the first standby LSP are different paths, and the second main LSP and the second standby LSP are different paths.
Optionally, the method further comprises:
and the first switching module is used for switching the tunnel path of the first tunnel from the first main LSP to the first standby LSP and switching the tunnel path of the second tunnel from the second main LSP to the second standby LSP under the condition that the first main LSP fault and the second main LSP fault are detected.
Optionally, the method further comprises:
A first receiving module, configured to receive configuration information sent by a second communication node before performing fault detection on a first primary LSP of a first tunnel and a second primary LSP of a second tunnel through a first static BFD session and a second static BFD session, where the configuration information includes creation configuration information of the first tunnel and the second tunnel, and indication configuration information indicating that the first static BFD session is associated with a first primary LSP, the second static BFD session is associated with a second primary LSP, the third static BFD session is associated with a first backup LSP, and the fourth static BFD session is associated with a second backup LSP;
The first creating module is used for creating the first tunnel and the second tunnel according to the creating configuration information;
and a first establishing module, configured to establish association between the first static BFD session and the first primary LSP, between the second static BFD session and the second primary LSP, between the third static BFD session and the first backup LSP, and between the fourth static BFD session and the second backup LSP, respectively, according to the indication configuration information.
Optionally, the method further comprises:
the second receiving module is used for receiving an interface query request sent by the second communication node before receiving the configuration information sent by the second communication node;
And the first feedback module is used for feeding back the local available LD to the second communication node according to the interface query request.
Optionally, the method further comprises:
the second creation module is used for creating a static BFD configuration interface between the second communication node and the second communication node before receiving the configuration information sent by the second communication node;
wherein the interface parameters of the static BFD configuration interface include at least one of the following parameters:
session name, home terminal identification, opposite terminal identification, minimum sending interval, minimum receiving interval, detection multiple, tunnel identification and LSP type;
the LSP type is a primary LSP or a standby LSP.
Optionally, the method further comprises:
The third receiving module is used for receiving the update instruction sent by the second communication node;
And the first updating module is used for updating the first main LSP, the second main LSP, the first standby LSP, the second standby LSP, the first static BFD session, the second static BFD session, the third static BFD session and the fourth static BFD session according to the updating instruction.
The embodiment of the invention also provides a tunnel path control device which is applied to the second communication node and comprises:
a first processing module, configured to obtain configuration information according to a local available local identifier LD of the first communication node;
the first sending module is used for sending the configuration information to the first communication node;
the configuration information comprises creation configuration information of a first tunnel and a second tunnel, and indication configuration information indicating that a first static Bidirectional Forwarding Detection (BFD) session is associated with a first main Label Switched Path (LSP), a second static BFD session is associated with a second main LSP, a third static BFD session is associated with a first standby LSP and a fourth static BFD session is associated with a second standby LSP;
The first main LSP is a forward path, and the second main LSP is a reverse path which is the same as the first main LSP; the first standby LSP is a forward path, and the second standby LSP is a reverse path which is the same as the first standby LSP in path;
The remote identifier RD value of the first static BFD session is the LD value of the second static BFD session, and the RD value of the second static BFD session is the LD value of the first static BFD session;
the RD value of the third static BFD session is the LD value of the fourth static BFD session, which is the LD value of the third static BFD session;
the first main LSP and the first standby LSP are different paths, and the second main LSP and the second standby LSP are different paths.
Optionally, the method further comprises:
A second sending module, configured to send an interface query request to a first communication node before obtaining configuration information according to a locally available local identifier LD of the first communication node;
and a fourth receiving module, configured to receive a local available LD of the first communication node that is fed back by the first communication node according to the interface query request.
Optionally, the method further comprises:
A third creating module, configured to create a static BFD configuration interface with the first communication node before sending the configuration information to the first communication node;
wherein the interface parameters of the static BFD configuration interface include at least one of the following parameters:
session name, home terminal identification, opposite terminal identification, minimum sending interval, minimum receiving interval, detection multiple, tunnel identification and LSP type;
the LSP type is a primary LSP or a standby LSP.
Optionally, the method further comprises:
a first obtaining module, configured to obtain an update indication when it is detected that the first primary LSP and/or the second primary LSP do not meet a preset condition;
A third sending module, configured to send the update indication to the first communication node;
wherein the update indication is used for indicating to update the first primary LSP, the second primary LSP, the first standby LSP, the second standby LSP, the first static BFD session, the second static BFD session, the third static BFD session and the fourth static BFD session.
The embodiment of the invention also provides a communication node, which is a first communication node and comprises a processor;
the processor is configured to perform fault detection on a first primary label switched path LSP of the first tunnel and a second primary LSP of the second tunnel through a first static bidirectional forwarding detection BFD session and a second static BFD session, respectively;
the first main LSP is a forward path, and the second main LSP is a reverse path which is the same as the first main LSP in path;
The remote identifier RD value of the first static BFD session is the local identifier LD value of the second static BFD session, and the RD value of the second static BFD session is the LD value of the first static BFD session.
Optionally, the first tunnel further comprises a first standby LSP, and the second tunnel further comprises a second standby LSP;
the processor is further configured to:
performing fault detection on the first standby LSP of the first tunnel and the second standby LSP of the second tunnel through a third static BFD session and a fourth static BFD session respectively;
the first standby LSP is a forward path, and the second standby LSP is a reverse path which is the same as the first standby LSP in path;
the RD value of the third static BFD session is the LD value of the fourth static BFD session, which is the LD value of the third static BFD session;
the first main LSP and the first standby LSP are different paths, and the second main LSP and the second standby LSP are different paths.
Optionally, the processor is further configured to:
and under the condition that the first main LSP fault and the second main LSP fault are detected, switching the tunnel path of the first tunnel from the first main LSP to the first standby LSP, and switching the tunnel path of the second tunnel from the second main LSP to the second standby LSP.
Optionally, the system further comprises a transceiver, and the processor is further configured to:
before fault detection is carried out on a first main LSP of a first tunnel and a second main LSP of a second tunnel through a first static BFD session and a second static BFD session respectively, receiving configuration information sent by a second communication node through a transceiver, wherein the configuration information comprises creation configuration information of the first tunnel and the second tunnel, and indication configuration information indicating that the first static BFD session is associated with the first main LSP, the second static BFD session is associated with the second main LSP, the third static BFD session is associated with a first standby LSP and the fourth static BFD session is associated with the second standby LSP;
creating the first tunnel and the second tunnel according to the creation configuration information;
And respectively establishing association among the first static BFD session, the second static BFD session, the third static BFD session, the first standby LSP and the fourth static BFD session and the second standby LSP according to the indication configuration information.
Optionally, the processor is further configured to:
before receiving configuration information sent by a second communication node, receiving an interface query request sent by the second communication node through the transceiver;
And feeding back the locally available LD to the second communication node through the transceiver according to the interface query request.
Optionally, the processor is further configured to:
Before receiving configuration information sent by a second communication node, creating a static BFD configuration interface between the second communication node and the static BFD configuration interface;
wherein the interface parameters of the static BFD configuration interface include at least one of the following parameters:
session name, home terminal identification, opposite terminal identification, minimum sending interval, minimum receiving interval, detection multiple, tunnel identification and LSP type;
the LSP type is a primary LSP or a standby LSP.
Optionally, the system further comprises a transceiver, and the processor is further configured to:
Receiving, by the transceiver, an update indication sent by a second communication node;
And updating the first main LSP, the second main LSP, the first standby LSP, the second standby LSP, the first static BFD session, the second static BFD session, the third static BFD session and the fourth static BFD session according to the update indication.
The embodiment of the invention also provides a communication node which is a second communication node, comprising a processor and a transceiver;
the processor is configured to obtain configuration information according to a local available local identifier LD of the first communication node;
Transmitting the configuration information to the first communication node via the transceiver;
the configuration information comprises creation configuration information of a first tunnel and a second tunnel, and indication configuration information indicating that a first static Bidirectional Forwarding Detection (BFD) session is associated with a first main Label Switched Path (LSP), a second static BFD session is associated with a second main LSP, a third static BFD session is associated with a first standby LSP and a fourth static BFD session is associated with a second standby LSP;
The first main LSP is a forward path, and the second main LSP is a reverse path which is the same as the first main LSP; the first standby LSP is a forward path, and the second standby LSP is a reverse path which is the same as the first standby LSP in path;
The remote identifier RD value of the first static BFD session is the LD value of the second static BFD session, and the RD value of the second static BFD session is the LD value of the first static BFD session;
the RD value of the third static BFD session is the LD value of the fourth static BFD session, which is the LD value of the third static BFD session;
the first main LSP and the first standby LSP are different paths, and the second main LSP and the second standby LSP are different paths.
Optionally, the processor is further configured to:
transmitting an interface query request to a first communication node through the transceiver before obtaining configuration information according to a locally available local identifier LD of the first communication node;
and receiving the local available LD of the first communication node fed back by the first communication node according to the interface query request through the transceiver.
Optionally, the processor is further configured to:
Creating a static BFD configuration interface with the first communication node prior to transmitting the configuration information to the first communication node;
wherein the interface parameters of the static BFD configuration interface include at least one of the following parameters:
session name, home terminal identification, opposite terminal identification, minimum sending interval, minimum receiving interval, detection multiple, tunnel identification and LSP type;
the LSP type is a primary LSP or a standby LSP.
Optionally, the processor is further configured to:
Acquiring an update instruction under the condition that the first main LSP and/or the second main LSP are detected to not meet a preset condition;
Transmitting, by the transceiver, the update indication to the first communication node;
wherein the update indication is used for indicating to update the first primary LSP, the second primary LSP, the first standby LSP, the second standby LSP, the first static BFD session, the second static BFD session, the third static BFD session and the fourth static BFD session.
The embodiment of the invention also provides a communication node which comprises a memory, a processor and a program stored in the memory and capable of running on the processor, wherein the processor realizes the tunnel path fault detection method when executing the program, or
And the processor realizes the tunnel path control method when executing the program.
The embodiment of the invention also provides a readable storage medium, which stores a program which, when executed by a processor, realizes the steps in the tunnel path fault detection method, or
The program, when executed by the processor, implements the steps in the tunnel path control method described above.
The technical scheme of the invention has the following beneficial effects:
In the scheme, the tunnel path fault detection method respectively carries out fault detection on a first main label switched path LSP of a first tunnel and a second main LSP of a second tunnel through a first static bidirectional forwarding detection BFD session and a second static BFD session, wherein the first main LSP is a forward path, the second main LSP is a reverse path along the same path as the first main LSP, a remote identifier RD value of the first static BFD session is a local identifier LD value of the second static BFD session, a RD value of the second static BFD session is an LD value of the first static BFD session, the shortest path of a BFD backhaul is avoided, and the backhaul and the LSP are ensured to be in common path, so that fault detection on the main LSP is different from fault detection on the backup LSP, the backup LSP can play a role in truly protecting the backup LSP when the main LSP of the tunnel breaks down, the backup LSP can provide a perception-free HSB fault switching within 50ms for clients, and the existing technical scheme of fault detection in the fault detection is well solved.
Drawings
FIG. 1 is a schematic flow chart of a tunnel path fault detection method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a tunnel path control method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of an implementation architecture of a tunnel path fault detection method and a tunnel path control method according to an embodiment of the present invention;
Fig. 4 is a schematic structural diagram of a tunnel path fault detection device according to an embodiment of the present invention;
Fig. 5 is a schematic structural diagram of a tunnel path control device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a communication node structure according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a communication node structure according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems, technical solutions and advantages to be solved more apparent, the following detailed description will be given with reference to the accompanying drawings and specific embodiments.
The invention provides a tunnel path fault detection method applied to a first communication node, which aims at the problem of misjudgment of a path fault detection scheme in the prior art, as shown in fig. 1, and comprises the following steps:
And 11, respectively performing fault detection on a first main label switched path LSP of a first tunnel and a second main LSP of a second tunnel through a first static bidirectional forwarding detection BFD session and a second static BFD session, wherein the first main LSP is a forward path, the second main LSP is a reverse path (the second main LSP is opposite to and same as the first main LSP in direction) along the same path as the first main LSP, a remote identifier RD value of the first static BFD session is a local identifier LD value of the second static BFD session, and a RD value of the second static BFD session is an LD value of the first static BFD session.
The tunnel path fault detection method provided by the embodiment of the invention respectively carries out fault detection on a first main label switched path LSP of a first tunnel and a second main LSP of a second tunnel through a first static bidirectional forwarding detection BFD session and a second static BFD session, wherein the first main LSP is a forward path, the second main LSP is a reverse path which is the same as the first main LSP, a remote identifier RD value of the first static BFD session is a local identifier LD value of the second static BFD session, a RD value of the second static BFD session is a LD value of the first static BFD session, and the return path and the LSP of the second static BFD session are ensured to be shared, so that fault detection on the main LSP is different from fault detection on the backup LSP, a real backup effect can be achieved when the main LSP of the tunnel breaks down, a customer is provided with a perceivless HSB fault switch in 50ms, and the existing network fault detection scheme has good fault quality is solved.
The first tunnel further comprises a first standby LSP, the second tunnel further comprises a second standby LSP, the path fault detection method further comprises the steps of respectively carrying out fault detection on the first standby LSP of the first tunnel and the second standby LSP of the second tunnel through a third static BFD session and a fourth static BFD session, wherein the first standby LSP is a forward path, the second standby LSP is a reverse path (the second standby LSP is the reverse path with the first standby LSP in the same direction, the second standby LSP is the reverse path with the first standby LSP), the RD value of the third static BFD session is the LD value of the fourth static BFD session, the RD value of the fourth static BFD session is the LD value of the third static BFD session, the first main LSP and the first standby LSP are different paths, and the second main LSP and the second standby LSP are different paths.
Further, the tunnel path failure detection method further includes switching a tunnel path of the first tunnel from the first primary LSP to the first backup LSP and switching a tunnel path of the second tunnel from the second primary LSP to the second backup LSP when the first primary LSP failure and the second primary LSP failure are detected. In this case, the first backup LSP and the second backup LSP may be defaulted to be failure-free.
The embodiment of the invention further comprises receiving configuration information sent by a second communication node before fault detection is carried out on a first main LSP of a first tunnel and a second main LSP of a second tunnel through a first static BFD session and a second static BFD session, wherein the configuration information comprises creation configuration information of the first tunnel and the second tunnel, and indication configuration information indicating that the first static BFD session is associated with the first main LSP, the second static BFD session is associated with the second main LSP, the third static BFD session is associated with a first standby LSP and the fourth static BFD session is associated with the second standby LSP, the first tunnel and the second tunnel are created according to the creation configuration information, and the first static BFD session is associated with the first main LSP, the second static BFD session is associated with the second main LSP, the third static BFD session is associated with the first standby LSP and the fourth static BFD is associated with the second standby LSP according to the indication configuration information.
Further, before receiving the configuration information sent by the second communication node, the method further comprises the steps of receiving an interface query request sent by the second communication node, and feeding back a local available LD to the second communication node according to the interface query request.
This may facilitate the second communication node to determine the configuration information.
The embodiment of the invention further comprises the step of creating a static BFD configuration interface between the second communication node and the second communication node before receiving the configuration information sent by the second communication node, wherein the interface parameters of the static BFD configuration interface comprise at least one of a session name, a home terminal identifier, a peer terminal identifier, a minimum sending interval, a minimum receiving interval, a detection multiple, a tunnel identifier and an LSP type, and the LSP type is a main LSP or a standby LSP.
This facilitates communication with the second communication node.
Further, the tunnel path fault detection method further comprises the steps of receiving an update instruction sent by a second communication node, and updating the first main LSP, the second main LSP, the first standby LSP, the second standby LSP, the first static BFD session, the second static BFD session, the third static BFD session and the fourth static BFD session according to the update instruction.
Thus, the normal use of the tunnel path can be ensured in real time.
The embodiment of the invention also provides a tunnel path control method applied to the second communication node, as shown in fig. 2, comprising the following steps:
step 21, obtaining configuration information according to the local available local identifier LD of the first communication node;
Step 22, the configuration information is sent to the first communication node, wherein the configuration information includes creation configuration information of a first tunnel and a second tunnel, and indication configuration information indicating that a first static bidirectional forwarding detection BFD session is associated with a first primary label switching path LSP, a second static BFD session is associated with a second primary LSP, a third static BFD session is associated with a first backup LSP, and a fourth static BFD session is associated with a second backup LSP, the first primary LSP is a forward path, the second primary LSP is a reverse path of a path with the first primary LSP (which can also be understood as the second primary LSP is a reverse path and a same path with the first primary LSP), the first backup LSP is a reverse path of a path with the first backup LSP (which can also be understood as the second backup LSP is a reverse direction and a same path with the first backup LSP), the first static identifier of the first static BFD session is a static BFD session, the second primary LSP is a static BFD session is a second primary LSP, the second primary LSP is a static BFD value of the second BFD, and the second primary LSP is a third primary LSP is a second primary LSP is a static BFD value of the second LSP.
The tunnel path control method provided by the embodiment of the invention obtains configuration information by the local identifier LD according to the local available of the first communication node; transmitting the configuration information to the first communication node; the configuration information comprises creation configuration information of a first tunnel and a second tunnel, and indication configuration information indicating that a first static Bidirectional Forwarding Detection (BFD) session is associated with a first main Label Switched Path (LSP), a second static BFD session is associated with a second main LSP, a third static BFD session is associated with a first standby LSP and a fourth static BFD session is associated with a second standby LSP; the first main LSP is a forward path, the second main LSP is a reverse path (which can be understood that the second main LSP is an LD value of the first main LSP and is opposite to and in the same way as the first main LSP), the first standby LSP is a forward path, the second standby LSP is a reverse path (which can be understood that the second standby LSP is a reverse and same way as the first standby LSP) in the same path as the first standby LSP, the remote identifier RD value of the first static BFD session is an LD value of the second static BFD session, the RD value of the second static BFD session is an LD value of the first static BFD session, the RD value of the third static BFD session is an LD value of the fourth static BFD session, the first main LSP and the first standby LSP are different paths, the second standby LSP and the second standby LSP are opposite to and the first standby LSP, the second standby LSP and the second standby LSP are different paths, and the second standby LSP and the first standby LSP and the second standby LSP are different paths are different from each other, thereby realizing the detection of the first LSP and the second LSP and the third LSP, and the second LSP are different from the first LSP and the second LSP and the third LSP and the second LSP, and the second LSP are different from the first LSP and the second LSP and the, the method and the device avoid misjudgment of path fault detection, further realize that when a main LSP of a tunnel fails, a standby LSP can play a real backup protection role, provide unaware HSB (high speed switch) fault switching of the tunnel within 50ms for clients, and create high-quality network service, and well solve the problem of misjudgment of a path fault detection scheme in the prior art.
Further, before obtaining the configuration information according to the local available local identifier LD of the first communication node, the method further comprises the steps of sending an interface query request to the first communication node and receiving the local available LD of the first communication node fed back by the first communication node according to the interface query request.
This enables the above configuration information to be obtained accurately.
The embodiment of the invention further comprises creating a static BFD configuration interface between the static BFD configuration interface and the first communication node before the configuration information is sent to the first communication node, wherein the interface parameters of the static BFD configuration interface comprise at least one of session name, home terminal identification, opposite terminal identification, minimum sending interval, minimum receiving interval, detection multiple, tunnel identification and LSP type, and the LSP type is a main LSP or a standby LSP.
This facilitates communication with the first communication node.
Further, the tunnel path control method further comprises the steps of obtaining an update instruction when the fact that the first main LSP and/or the second main LSP do not meet preset conditions is detected, and sending the update instruction to the first communication node, wherein the update instruction is used for indicating to update the first main LSP, the second main LSP, the first standby LSP, the second standby LSP, the first static BFD session, the second static BFD session, the third static BFD session and the fourth static BFD session.
The preset conditions may include parameter information conditions of the optimal path, and may be determined according to actual requirements, which is not limited herein.
The tunnel path fault detection method and the tunnel path control method provided by the embodiments of the present invention are further described below with reference to multiple sides, such as a first communication node, a second communication node, and the like, where the first communication node uses two operator edge PE routers (PE router a and PE router B) as an example, and the second communication node uses a software defined network SDN controller as an example.
Aiming at the technical problems, the embodiment of the invention provides a tunnel path fault detection method and a tunnel path control method, which can be particularly realized as a method for avoiding BFD return to travel an IGP shortest path and ensuring the return and LSP to share the path, so that when a main LSP of a tunnel breaks down, a backup LSP can play a real backup protection role, thereby providing a non-perceived tunnel HSB fault switching within 50ms for clients and creating high-quality network services.
The scheme provided by the embodiment of the invention relates to that an SDN controller creates 1 'tunnel group' between a PE router A and a PE router B, and the main and standby LSP paths of two tunnels in the 'tunnel group' are utilized to respectively bear the outbound and return strokes of detection messages corresponding to static BFD.
It can also be understood that the embodiment of the invention provides a static BFD method for providing accurate fault detection for the HSB protection path of the data-carrying network tunnel, and the method specifically comprises the following steps:
(1) SDN controller
Obtaining and maintaining a local identifier LD list available to the PE router through a BFD local LD query request interface;
configuring bidirectional paired static BFD session (called static BFD session group for short) for two PE routers, wherein RD values of two static BFD sessions in the 1 static BFD session group are LD values of each other;
Two PE routers are configured with bidirectional paired tunnels (abbreviated as a tunnel group), two bidirectional tunnels (A- > B and B- > A) in the tunnel group are created successfully and fail simultaneously, and the primary LSP and the standby LSP are adjusted in the same way (the two are also understood to be in the same way, one is adjusted, and the other is necessarily adjusted simultaneously).
A static BFD session group is associated with a tunnel group.
(2) PE router
According to static BFD configuration (namely the configuration information) issued by the SDN controller, the static BFD of a group of LSP levels is strictly bound with the LSP path of the tunnel, namely the BFD backhaul information of the main LSP of A-B strictly walks the main LSP path of B-A;
when the main LSP of the B-A is switched to the standby LSP in a fault manner, BFD of the main LSP of the A-B is simultaneously caused to monitor the fault and trigger the main LSP of the A-B to be synchronously switched to the standby LSP, so that the simultaneous switching of main and standby paths in 50ms of the bidirectional tunnel group is realized.
(3) New interface
A static BFD configuration interface is newly added between the SDN controller and the PE router, and comprises the following parameters:
Session name SN, home terminal identification LD, peer terminal identification RD, minimum transmission interval MTI, minimum reception interval MRI, detection multiple DM, tunnel identification Tunnel ID, and LSP type LP, primary (Primary LSP) or Back up (backup LSP). The newly added BFD local identifier LD inquiry (request and response) interface between the SDN controller and the PE router comprises the following parameters:
inquiring the interface parameters, namely the number Num, such as n, of the effective LDs;
inquiring response interface parameters, namely a home terminal identifier LD1, a home terminal identifier LD 2. Home terminal identifier LDn.
The scheme provided by the embodiment of the invention can be realized by adopting a system architecture shown in fig. 3:
assume that two sets of static BFD configuration parameters issued by the SDN controller to PE router a are shown in tables 1 and 2, respectively:
TABLE 1
SN 1
LD 101
RD 201
MTI 100
MRI 100
DM 3
Tunnel ID Tun1-2
LP Primary
TABLE 2
SN 1
LD 102
RD 202
MTI 100
MRI 100
DM 3
Tunnel ID Tun1-2
LP Back up
Assume that two sets of static BFD configuration parameters issued by the SDN controller to PE router B are shown in tables 3 and 4, respectively:
TABLE 3 Table 3
SN 1
LD 201
RD 101
MTI 100
MRI 100
DM 3
Tunnel ID Tun2-1
LP Primary
TABLE 4 Table 4
SN 1
LD 202
RD 102
MTI 100
MRI 100
DM 3
Tunnel ID Tun2-1
LP Back up
Corresponding to the above, SDN configures 2 "static BFD session groups" between PE router a and PE router B, group 1 being static BFD1 (ld=101, rd=201) and static BFD2 (ld=201, rd=101), group 2 being static BFD3 (ld=102, rd=202) and static BFD4 (ld=202, rd=102).
R in fig. 3 represents a transit routing device in the tunnel path.
In connection with fig. 3, the scheme provided by the embodiment of the invention may specifically include the following operations:
1) The SDN controller calls a BFD local LD query interface to obtain a local identifier LD list available to the PE router A and the PE router B;
2) SDN configures 2 "static BFD session groups" between PE router a and PE router B, group 1 being static BFD1 (which may correspond to the first static BFD session, ld=101, rd=201) and static BFD2 (which may correspond to the second static BFD session, ld=201, rd=101), group 2 being static BFD3 (which may correspond to the third static BFD session, ld=102, rd=202) and static BFD4 (which may correspond to the fourth static BFD session, ld=202, rd=102);
3) The SDN controller creates 1 'tunnel group' between the PE router A and the PE router B, namely Tun1-2 (which can correspond to the first tunnel) and Tun2-1 (which can correspond to the second tunnel), wherein the main LSP of Tun1-2 and the main LSP of Tun2-1 are opposite in direction and same in path, and the standby LSP of Tun1-2 and the standby LSP of Tun2-1 are opposite in direction and same in path;
4) SDN controller associates static bfd1 to a primary LSP of Tun1-2 (which may correspond to the first primary LSP), static bfd3 to a backup LSP of Tun1-2 (which may correspond to the first backup LSP), static bfd2 to a primary LSP of Tun2-1 (which may correspond to the second primary LSP), and static bfd4 to a backup LSP of Tun2-1 (which may correspond to the second backup LSP);
5) According to the configuration (namely the configuration information, including tunnel configuration and BFD session configuration) issued by the SDN controller, the PE router A and the PE router B establish a corresponding tunnel group and a static BFD session group, wherein a static BFD session is used for detecting the main LSP fault condition of Tun1-2, a static BFD session is used for detecting the standby LSP fault condition of Tun1-2, a static BFD session is used for detecting the main LSP fault condition of Tun2-1, and a static BFD session is used for detecting the standby LSP fault condition of Tun 2-1;
6) When the primary LSP of Tun1-2 fails, that is, the primary LSP of Tun2-1 fails (due to the fact that the paths are identical, the primary and the secondary paths are simultaneously switched within 50ms of the bidirectional tunnel group), the failure is detected through the static bfd session and the static bfd simultaneously, and the PE router a and the PE router B synchronously complete the switching of the tunnel paths of Tun1-2 and Tun2-1 from the primary LSP to the secondary LSP.
7) When the SDN controller starts tunnel timing optimization, and discovers that the current main LSP of Tun1-2 (and/or the main LSP of Tun 2-1) on PE A equipment is not an optimal path, the SDN controller simultaneously recalculates 1 optimal path of bidirectional common path for Tun1-2 and Tun2-1 tunnels of PE A and PE B equipment, and simultaneously sends the optimal path to PE router A and PE router B, so that the problem that 1 'tunnel group' round-trip path is not common after path re-optimization occurs is avoided.
As can be seen from the foregoing, the scheme provided by the embodiment of the present invention involves opening up different paths for the main path and the backup path, and according to the static BFD configuration issued by the SDN controller, the static BFD of a group of LSP levels is strictly bound with the LSP path of the tunnel, i.e. the BFD backhaul information of the main LSP of a→b strictly walks the main LSP of b→a. It can be understood that the embodiment of the invention provides a tunnel fault detection method combining static BFD and SDN, which can provide an accurate fault detection mechanism for the primary and the secondary protection paths of SR-TE and SRv6 Policy tunnels of a data bearing network.
In summary, the embodiment of the invention provides a feasible tunnel fault detection method based on static BFD, which can effectively solve the problem of false judgment of the standby LSP existing in the existing dynamic BFD and SBFD tunnel detection technology, so that the active-standby protection mechanism of the SR-TE and SRv6 Policy tunnels becomes feasible, the preconditions of commercial deployment in the existing network are fully provided, and the service quality of the network can be greatly improved.
The embodiment of the invention also provides a tunnel path fault detection device, which is applied to the first communication node, as shown in fig. 4, and comprises:
A first detection module 41, configured to perform fault detection on a first primary label switched path LSP of the first tunnel and a second primary LSP of the second tunnel through a first static bidirectional forwarding detection BFD session and a second static BFD session, respectively;
the first main LSP is a forward path, and the second main LSP is a reverse path which is the same as the first main LSP in path;
The remote identifier RD value of the first static BFD session is the local identifier LD value of the second static BFD session, and the RD value of the second static BFD session is the LD value of the first static BFD session.
The tunnel path fault detection device provided by the embodiment of the invention respectively carries out fault detection on a first main label switched path LSP of a first tunnel and a second main LSP of a second tunnel through a first static bidirectional forwarding detection BFD session and a second static BFD session, wherein the first main LSP is a forward path, the second main LSP is a reverse path which is the same as the first main LSP, a remote identifier RD value of the first static BFD session is a local identifier LD value of the second static BFD session, a RD value of the second static BFD session is a LD value of the first static BFD session, and the return path and the LSP of the second static BFD session are ensured to be shared, so that fault detection on the main LSP is different from fault detection on the backup LSP, a real backup effect can be achieved when the main LSP of the tunnel breaks down, a customer is provided with a perceivless HSB fault switch in 50ms, and the existing network fault detection scheme has good fault quality is solved.
The first tunnel further comprises a first standby LSP, the second tunnel further comprises a second standby LSP, the path fault detection device further comprises a second detection module, the second detection module is used for detecting faults of the first standby LSP of the first tunnel and the second standby LSP of the second tunnel through a third static BFD session and a fourth static BFD session, the first standby LSP is a forward path, the second standby LSP is a reverse path with the first standby LSP, the RD value of the third static BFD session is the LD value of the fourth static BFD session, the RD value of the fourth static BFD session is the LD value of the third static BFD session, the first main LSP and the first standby LSP are different paths, and the second main LSP and the second standby LSP are different paths.
Further, the tunnel path fault detection device further comprises a first switching module, configured to switch a tunnel path of the first tunnel from the first primary LSP to the first backup LSP and switch a tunnel path of the second tunnel from the second primary LSP to the second backup LSP when the first primary LSP fault and the second primary LSP fault are detected.
The tunnel path fault detection device further comprises a first receiving module, a first creating module and a first establishing module, wherein the first receiving module is used for receiving configuration information sent by a second communication node before fault detection is carried out on a first main LSP of a first tunnel and a second main LSP of a second tunnel through a first static BFD session and a second static BFD session respectively, the configuration information comprises creation configuration information of the first tunnel and the second tunnel, the first creating module is used for indicating that the first static BFD session is associated with the first main LSP, the second static BFD session is associated with the second main LSP, the third static BFD session is associated with the first standby LSP and the fourth static BFD session is associated with the second standby LSP, the first creating module is used for creating the first tunnel and the second tunnel according to the creation configuration information, and the first establishing module is used for establishing the first static BFD session and the first main LSP, the second static BFD session and the second main LSP, the third static BFD session and the second standby LSP and the fourth standby LSP according to the indication configuration information.
Further, the tunnel path fault detection device further comprises a second receiving module, a first feedback module and a second feedback module, wherein the second receiving module is used for receiving an interface query request sent by a second communication node before receiving configuration information sent by the second communication node, and the first feedback module is used for feeding back a local available LD to the second communication node according to the interface query request.
The tunnel path fault detection device further comprises a second creation module, wherein the second creation module is used for creating a static BFD configuration interface between the second communication node and the second communication node before receiving configuration information sent by the second communication node, interface parameters of the static BFD configuration interface comprise at least one of session names, home terminal identifiers, opposite terminal identifiers, minimum sending intervals, minimum receiving intervals, detection multiples, tunnel identifiers and LSP types, and the LSP types are main LSP or standby LSP.
Further, the tunnel path fault detection device further comprises a third receiving module, a first updating module and a first backup LSP, wherein the third receiving module is used for receiving an updating instruction sent by the second communication node, and the first updating module is used for updating the first main LSP, the second main LSP, the first backup LSP, the second backup LSP, the first static BFD session, the second static BFD session, the third static BFD session and the fourth static BFD session according to the updating instruction.
The implementation embodiments of the tunnel path fault detection method are applicable to the embodiments of the tunnel path fault detection device, and can achieve the corresponding same technical effects.
The embodiment of the invention also provides a tunnel path control device, which is applied to the second communication node, as shown in fig. 5, and comprises:
A first processing module 51, configured to obtain configuration information according to a locally available local identifier LD of the first communication node;
a first sending module 52, configured to send the configuration information to the first communication node;
the configuration information comprises creation configuration information of a first tunnel and a second tunnel, and indication configuration information indicating that a first static Bidirectional Forwarding Detection (BFD) session is associated with a first main Label Switched Path (LSP), a second static BFD session is associated with a second main LSP, a third static BFD session is associated with a first standby LSP and a fourth static BFD session is associated with a second standby LSP;
The first main LSP is a forward path, and the second main LSP is a reverse path which is the same as the first main LSP; the first standby LSP is a forward path, and the second standby LSP is a reverse path which is the same as the first standby LSP in path;
The remote identifier RD value of the first static BFD session is the LD value of the second static BFD session, and the RD value of the second static BFD session is the LD value of the first static BFD session;
the RD value of the third static BFD session is the LD value of the fourth static BFD session, which is the LD value of the third static BFD session;
the first main LSP and the first standby LSP are different paths, and the second main LSP and the second standby LSP are different paths.
The tunnel path control device provided by the embodiment of the invention obtains configuration information by the local identifier LD according to the local available of the first communication node; transmitting the configuration information to the first communication node; the configuration information comprises creation configuration information of a first tunnel and a second tunnel, and indication configuration information indicating that a first static Bidirectional Forwarding Detection (BFD) session is associated with a first main Label Switched Path (LSP), a second static BFD session is associated with a second main LSP, a third static BFD session is associated with a first standby LSP and a fourth static BFD session is associated with a second standby LSP; the first main LSP is a forward path, the second main LSP is a reverse path (which can be understood that the second main LSP is an LD value of the first main LSP and is opposite to and in the same way as the first main LSP), the first standby LSP is a forward path, the second standby LSP is a reverse path (which can be understood that the second standby LSP is a reverse and same way as the first standby LSP) in the same path as the first standby LSP, the remote identifier RD value of the first static BFD session is an LD value of the second static BFD session, the RD value of the second static BFD session is an LD value of the first static BFD session, the RD value of the third static BFD session is an LD value of the fourth static BFD session, the first main LSP and the first standby LSP are different paths, the second standby LSP and the second standby LSP are opposite to and the first standby LSP, the second standby LSP and the second standby LSP are different paths, and the second standby LSP and the first standby LSP and the second standby LSP are different paths are different from each other, thereby realizing the detection of the first LSP and the second LSP and the third LSP, and the second LSP are different from the first LSP and the second LSP and the third LSP and the second LSP, and the second LSP are different from the first LSP and the second LSP and the, the method and the device avoid misjudgment of path fault detection, further realize that when a main LSP of a tunnel fails, a standby LSP can play a real backup protection role, provide unaware HSB (high speed switch) fault switching of the tunnel within 50ms for clients, and create high-quality network service, and well solve the problem of misjudgment of a path fault detection scheme in the prior art.
Further, the tunnel path control device further comprises a second sending module, a fourth receiving module and a third receiving module, wherein the second sending module is used for sending an interface query request to the first communication node before obtaining configuration information according to the local available local identifier LD of the first communication node, and the fourth receiving module is used for receiving the local available LD of the first communication node, which is fed back by the first communication node according to the interface query request.
The tunnel path control device further comprises a third creation module, wherein the third creation module is used for creating a static BFD configuration interface between the third creation module and the first communication node before sending the configuration information to the first communication node, and interface parameters of the static BFD configuration interface comprise at least one of session names, local end identifiers, opposite end identifiers, minimum sending intervals, minimum receiving intervals, detection multiples, tunnel identifiers and LSP types, wherein the LSP types are main LSP or standby LSP.
Further, the tunnel path control device further comprises a first acquisition module, a third sending module and a fourth sending module, wherein the first acquisition module is used for acquiring an update instruction when the first main LSP and/or the second main LSP are detected to not meet a preset condition, and the third sending module is used for sending the update instruction to the first communication node, wherein the update instruction is used for indicating to update the first main LSP, the second main LSP, the first standby LSP, the second standby LSP, the first static BFD session, the second static BFD session, the third static BFD session and the fourth static BFD session.
The implementation embodiments of the tunnel path control method are applicable to the embodiments of the tunnel path control device, and can achieve the corresponding same technical effects.
The embodiment of the invention also provides a communication node, which is a first communication node, as shown in fig. 6, and comprises a processor 61;
The processor 61 is configured to perform fault detection on a first primary label switched path LSP of the first tunnel and a second primary LSP of the second tunnel through the first static bidirectional forwarding detection BFD session and the second static BFD session, respectively;
the first main LSP is a forward path, and the second main LSP is a reverse path which is the same as the first main LSP in path;
The remote identifier RD value of the first static BFD session is the local identifier LD value of the second static BFD session, and the RD value of the second static BFD session is the LD value of the first static BFD session.
The communication node provided by the embodiment of the invention respectively carries out fault detection on a first main label switched path LSP of a first tunnel and a second main LSP of a second tunnel through a first static bidirectional forwarding detection BFD session and a second static BFD session, wherein the first main LSP is a forward path, the second main LSP is a reverse path along the same path as the first main LSP, a remote identifier RD value of the first static BFD session is a local identifier LD value of the second static BFD session, a RD value of the second static BFD session is an LD value of the first static BFD session, and the shortest path of BFD backhaul is avoided and the backhaul and LSP are ensured to be shared, so that fault detection on the main LSP is different from fault detection on the backup LSP, misjudgment on path fault detection is avoided, the backup LSP can play a real role in protecting when the main LSP of the tunnel breaks down, HSB fault switching within 50ms is provided for clients, and the existing network fault detection scheme with good fault quality is solved.
The first tunnel further comprises a first standby LSP, the second tunnel further comprises a second standby LSP, the processor is further used for conducting fault detection on the first standby LSP of the first tunnel and the second standby LSP of the second tunnel through a third static BFD session and a fourth static BFD session respectively, the first standby LSP is a forward path, the second standby LSP is a reverse path with the first standby LSP, the RD value of the third static BFD session is the LD value of the fourth static BFD session, the RD value of the fourth static BFD session is the LD value of the third static BFD session, the first main LSP and the first standby LSP are different paths, and the second main LSP and the second standby LSP are different paths.
Still further, the processor is further configured to switch a tunnel path of the first tunnel from the first primary LSP to the first backup LSP and switch a tunnel path of the second tunnel from the second primary LSP to the second backup LSP in the event that the first primary LSP failure and the second primary LSP failure are detected.
The communication node further comprises a transceiver, the processor is further used for receiving configuration information sent by the second communication node through the transceiver before fault detection is conducted on a first main LSP of the first tunnel and a second main LSP of the second tunnel through the first static BFD session and the second static BFD session respectively, wherein the configuration information comprises creation configuration information of the first tunnel and the second tunnel, and indication configuration information indicating that the first static BFD session is associated with the first main LSP, the second static BFD session is associated with the second main LSP, the third static BFD session is associated with the first standby LSP and the fourth static BFD session is associated with the second standby LSP, the first tunnel and the second tunnel are created according to the creation configuration information, and the first static BFD session, the second static BFD session, the third static BFD session, the fourth standby LSP and the fourth standby LSP are respectively established according to the indication configuration information.
Further, the processor is further configured to receive, through the transceiver, an interface query request sent by the second communication node before receiving the configuration information sent by the second communication node, and feed back, according to the interface query request, a locally available LD to the second communication node through the transceiver.
In the embodiment of the invention, the processor is further used for creating a static BFD configuration interface between the processor and the second communication node before receiving the configuration information sent by the second communication node, wherein the interface parameters of the static BFD configuration interface comprise at least one of session name, home terminal identification, opposite terminal identification, minimum sending interval, minimum receiving interval, detection multiple, tunnel identification and LSP type, and the LSP type is a main LSP or a standby LSP.
Further, the communication node further comprises a transceiver, and the processor is further configured to receive an update indication sent by the second communication node through the transceiver, and update the first primary LSP, the second primary LSP, the first backup LSP, the second backup LSP, the first static BFD session, the second static BFD session, the third static BFD session and the fourth static BFD session according to the update indication.
The implementation embodiments of the tunnel path fault detection method are applicable to the embodiments of the communication node, and can achieve the corresponding same technical effects.
The embodiment of the invention also provides a communication node, which is a second communication node, as shown in fig. 7, and comprises a processor 71 and a transceiver 72;
the processor 72 is configured to obtain configuration information according to the locally available local identifier LD of the first communication node;
transmitting the configuration information to the first communication node via the transceiver 72;
the configuration information comprises creation configuration information of a first tunnel and a second tunnel, and indication configuration information indicating that a first static Bidirectional Forwarding Detection (BFD) session is associated with a first main Label Switched Path (LSP), a second static BFD session is associated with a second main LSP, a third static BFD session is associated with a first standby LSP and a fourth static BFD session is associated with a second standby LSP;
The first main LSP is a forward path, and the second main LSP is a reverse path which is the same as the first main LSP; the first standby LSP is a forward path, and the second standby LSP is a reverse path which is the same as the first standby LSP in path;
The remote identifier RD value of the first static BFD session is the LD value of the second static BFD session, and the RD value of the second static BFD session is the LD value of the first static BFD session;
the RD value of the third static BFD session is the LD value of the fourth static BFD session, which is the LD value of the third static BFD session;
the first main LSP and the first standby LSP are different paths, and the second main LSP and the second standby LSP are different paths.
The communication node provided by the embodiment of the invention obtains the configuration information through the local identifier LD according to the local available of the first communication node; transmitting the configuration information to the first communication node; the configuration information comprises creation configuration information of a first tunnel and a second tunnel, and indication configuration information indicating that a first static Bidirectional Forwarding Detection (BFD) session is associated with a first main Label Switched Path (LSP), a second static BFD session is associated with a second main LSP, a third static BFD session is associated with a first standby LSP and a fourth static BFD session is associated with a second standby LSP; the first main LSP is a forward path, the second main LSP is a reverse path (which can be understood that the second main LSP is an LD value of the first main LSP and is opposite to and in the same way as the first main LSP), the first standby LSP is a forward path, the second standby LSP is a reverse path (which can be understood that the second standby LSP is a reverse and same way as the first standby LSP) in the same path as the first standby LSP, the remote identifier RD value of the first static BFD session is an LD value of the second static BFD session, the RD value of the second static BFD session is an LD value of the first static BFD session, the RD value of the third static BFD session is an LD value of the fourth static BFD session, the first main LSP and the first standby LSP are different paths, the second standby LSP and the second standby LSP are opposite to and the first standby LSP, the second standby LSP and the second standby LSP are different paths, and the second standby LSP and the first standby LSP and the second standby LSP are different paths are different from each other, thereby realizing the detection of the first LSP and the second LSP and the third LSP, and the second LSP are different from the first LSP and the second LSP and the third LSP and the second LSP, and the second LSP are different from the first LSP and the second LSP and the, the method and the device avoid misjudgment of path fault detection, further realize that when a main LSP of a tunnel fails, a standby LSP can play a real backup protection role, provide unaware HSB (high speed switch) fault switching of the tunnel within 50ms for clients, and create high-quality network service, and well solve the problem of misjudgment of a path fault detection scheme in the prior art.
Further, the processor is further configured to send an interface query request to the first communication node through the transceiver before obtaining the configuration information according to the local available local identifier LD of the first communication node, and receive, through the transceiver, the local available LD of the first communication node fed back by the first communication node according to the interface query request.
In the embodiment of the invention, the processor is further used for creating a static BFD configuration interface between the static BFD configuration interface and the first communication node before sending the configuration information to the first communication node, wherein the interface parameters of the static BFD configuration interface comprise at least one of session name, home terminal identification, opposite terminal identification, minimum sending interval, minimum receiving interval, detection multiple, tunnel identification and LSP type, and the LSP type is a main LSP or a standby LSP.
Further, the processor is further configured to obtain an update indication if the first primary LSP and/or the second primary LSP do not meet a preset condition, and send the update indication to the first communication node through the transceiver, where the update indication is used to indicate to update the first primary LSP, the second primary LSP, the first backup LSP, the second backup LSP, the first static BFD session, the second static BFD session, the third static BFD session, and the fourth static BFD session.
The implementation embodiments of the tunnel path control method are applicable to the embodiments of the communication node, and can achieve the corresponding same technical effects.
The embodiment of the invention also provides a communication node which comprises a memory, a processor and a program stored in the memory and capable of running on the processor, wherein the processor realizes the tunnel path fault detection method when executing the program, or
And the processor realizes the tunnel path control method when executing the program.
The implementation embodiments of the tunnel path fault detection method or the tunnel path control method are applicable to the embodiments of the communication node, and can achieve the corresponding same technical effects.
The embodiment of the invention also provides a readable storage medium, which stores a program which, when executed by a processor, realizes the steps in the tunnel path fault detection method, or
The program, when executed by the processor, implements the steps in the tunnel path control method described above.
The implementation embodiments of the tunnel path fault detection method or the tunnel path control method are applicable to the embodiment of the readable storage medium, and can achieve the corresponding same technical effects.
It should be noted that many of the functional components described in this specification have been referred to as modules, in order to more particularly emphasize their implementation independence.
In an embodiment of the invention, the modules may be implemented in software for execution by various types of processors. An identified module of executable code may, for instance, comprise one or more physical or logical blocks of computer instructions which may, for instance, be organized as an object, procedure, or function. Nevertheless, the executables of an identified module need not be physically located together, but may comprise disparate instructions stored in different bits which, when joined logically together, comprise the module and achieve the stated purpose for the module.
Indeed, a module of executable code may be a single instruction, or many instructions, and may even be distributed over several different code segments, among different programs, and across several memory devices. Likewise, operational data may be identified within modules and may be embodied in any suitable form and organized within any suitable type of data structure. The operational data may be collected as a single data set, or may be distributed over different locations including over different storage devices.
Where a module may be implemented in software, taking into account the level of existing hardware technology, a module may be implemented in software, and one skilled in the art may, without regard to cost, build corresponding hardware circuitry, including conventional Very Large Scale Integration (VLSI) circuits or gate arrays, and existing semiconductors such as logic chips, transistors, or other discrete components, to achieve the corresponding functions. A module may also be implemented in programmable hardware devices such as field programmable gate arrays, programmable array logic, programmable logic devices or the like.
While the foregoing is directed to the preferred embodiments of the present invention, it will be appreciated by those skilled in the art that various modifications and changes can be made without departing from the principles of the present invention, and such modifications and changes should also be considered as being within the scope of the present invention.

Claims (14)

1.一种隧道路径故障检测方法,应用于第一通信节点,其特征在于,包括:1. A tunnel path failure detection method, applied to a first communication node, comprising: 接收第二通信节点发送的接口查询请求;Receiving an interface query request sent by a second communication node; 根据所述接口查询请求,向所述第二通信节点反馈本地可用LD;Feedback the locally available LD to the second communication node according to the interface query request; 创建与所述第二通信节点之间的静态BFD配置接口;Creating a static BFD configuration interface with the second communication node; 其中,所述静态BFD配置接口的接口参数包括以下参数:The interface parameters of the static BFD configuration interface include the following parameters: 会话名称、本端标识、对端标识、最小发送间隔、最小接收间隔、检测倍数、隧道标识以及LSP类型;其中,所述LSP类型为主LSP或备LSP;Session name, local end identifier, peer end identifier, minimum sending interval, minimum receiving interval, detection multiple, tunnel identifier, and LSP type; wherein the LSP type is a primary LSP or a backup LSP; 接收第二通信节点发送的配置信息;其中,所述配置信息包括第一隧道和第二隧道的创建配置信息,以及,指示第一静态BFD会话与第一主LSP关联、第二静态BFD会话与第二主LSP关联的指示配置信息、第三静态BFD会话与第一备LSP关联和第四静态BFD会话与第二备LSP关联;Receive configuration information sent by the second communication node; wherein the configuration information includes creation configuration information of the first tunnel and the second tunnel, and indication configuration information indicating that the first static BFD session is associated with the first primary LSP, the second static BFD session is associated with the second primary LSP, the third static BFD session is associated with the first standby LSP, and the fourth static BFD session is associated with the second standby LSP; 根据所述创建配置信息,创建所述第一隧道以及第二隧道;Creating the first tunnel and the second tunnel according to the creation configuration information; 所述第一静态BFD会话的远端标识符RD值为所述第二静态BFD会话的本地标识符LD值,所述第二静态BFD会话的RD值为所述第一静态BFD会话的LD值;The remote identifier RD value of the first static BFD session is the local identifier LD value of the second static BFD session, and the RD value of the second static BFD session is the LD value of the first static BFD session; 根据所述指示配置信息,将所述第一静态BFD会话与第一主LSP之间、所述第二静态BFD会话与第二主LSP之间、所述第三静态BFD会话与第一备LSP之间以及所述第四静态BFD会话与第二备LSP之间分别建立关联;通过第一静态双向转发检测BFD会话和第二静态BFD会话,分别对第一隧道的第一主标签交换路径LSP和第二隧道的第二主LSP进行故障检测;According to the indication configuration information, establish associations between the first static BFD session and the first primary LSP, between the second static BFD session and the second primary LSP, between the third static BFD session and the first standby LSP, and between the fourth static BFD session and the second standby LSP, respectively; perform fault detection on the first primary label switching path LSP of the first tunnel and the second primary LSP of the second tunnel, respectively, through the first static bidirectional forwarding detection BFD session and the second static BFD session; 其中,所述第一主LSP为正向路径,所述第二主LSP为与所述第一主LSP同路径的反向路径;The first main LSP is a forward path, and the second main LSP is a reverse path that is the same path as the first main LSP; 所述第一隧道还包括:第一备LSP,第二隧道还包括:第二备LSP;The first tunnel further includes: a first backup LSP, and the second tunnel further includes: a second backup LSP; 所述路径故障检测方法还包括:The path failure detection method further includes: 通过第三静态BFD会话和第四静态BFD会话,分别对第一隧道的第一备LSP和第二隧道的第二备LSP进行故障检测;Performing fault detection on the first backup LSP of the first tunnel and the second backup LSP of the second tunnel respectively through the third static BFD session and the fourth static BFD session; 其中,所述第一备LSP为正向路径,所述第二备LSP为与所述第一备LSP同路径的反向路径;The first backup LSP is a forward path, and the second backup LSP is a reverse path that is the same path as the first backup LSP; 所述第三静态BFD会话的RD值为所述第四静态BFD会话的LD值,所述第四静态BFD会话的RD值为所述第三静态BFD会话的LD值。The RD value of the third static BFD session is the LD value of the fourth static BFD session, and the RD value of the fourth static BFD session is the LD value of the third static BFD session. 2.根据权利要求1所述的隧道路径故障检测方法,其特征在于,还包括:2. The tunnel path fault detection method according to claim 1, characterized in that it also includes: 在检测到所述第一主LSP故障,以及所述第二主LSP故障的情况下,将所述第一隧道的隧道路径由所述第一主LSP切换至所述第一备LSP,以及将所述第二隧道的隧道路径由所述第二主LSP切换至所述第二备LSP。When a failure of the first main LSP and a failure of the second main LSP are detected, the tunnel path of the first tunnel is switched from the first main LSP to the first backup LSP, and the tunnel path of the second tunnel is switched from the second main LSP to the second backup LSP. 3.根据权利要求1所述的隧道路径故障检测方法,其特征在于,还包括:3. The tunnel path fault detection method according to claim 1, characterized in that it also includes: 接收第二通信节点发送的更新指示;receiving an update indication sent by the second communication node; 根据所述更新指示,更新所述第一主LSP、第二主LSP、第一备LSP、第二备LSP、第一静态BFD会话、第二静态BFD会话、第三静态BFD会话以及第四静态BFD会话。According to the update indication, the first main LSP, the second main LSP, the first backup LSP, the second backup LSP, the first static BFD session, the second static BFD session, the third static BFD session and the fourth static BFD session are updated. 4.一种隧道路径控制方法,应用于第二通信节点,其特征在于,包括:4. A tunnel path control method, applied to a second communication node, characterized by comprising: 向第一通信节点发送接口查询请求;Sending an interface query request to the first communication node; 接收所述第一通信节点根据所述接口查询请求反馈的第一通信节点的本地可用LD;Receiving the locally available LD of the first communication node fed back by the first communication node according to the interface query request; 创建与所述第一通信节点之间的静态BFD配置接口;Creating a static BFD configuration interface with the first communication node; 其中,所述静态BFD配置接口的接口参数包括以下参数:The interface parameters of the static BFD configuration interface include the following parameters: 会话名称、本端标识、对端标识、最小发送间隔、最小接收间隔、检测倍数、隧道标识以及LSP类型;Session name, local end ID, peer end ID, minimum sending interval, minimum receiving interval, detection multiple, tunnel ID, and LSP type; 所述LSP类型为主LSP或备LSP;The LSP type is a main LSP or a backup LSP; 根据所述第一通信节点的本地可用本地标识符LD,得到配置信息;Obtaining configuration information according to the locally available local identifier LD of the first communication node; 将所述配置信息,发送给所述第一通信节点;Sending the configuration information to the first communication node; 其中,所述配置信息包括第一隧道和第二隧道的创建配置信息,以及,指示第一静态双向转发检测BFD会话与第一主标签交换路径LSP关联、第二静态BFD会话与第二主LSP关联、第三静态BFD会话与第一备LSP关联和第四静态BFD会话与第二备LSP关联的指示配置信息;The configuration information includes creation configuration information of the first tunnel and the second tunnel, and configuration information indicating that the first static bidirectional forwarding detection BFD session is associated with the first primary label switching path LSP, the second static BFD session is associated with the second primary LSP, the third static BFD session is associated with the first backup LSP, and the fourth static BFD session is associated with the second backup LSP; 所述第一主LSP为正向路径,所述第二主LSP为与所述第一主LSP同路径的反向路径;所述第一备LSP为正向路径,所述第二备LSP为与所述第一备LSP同路径的反向路径;The first main LSP is a forward path, and the second main LSP is a reverse path with the same path as the first main LSP; the first backup LSP is a forward path, and the second backup LSP is a reverse path with the same path as the first backup LSP; 所述第一静态BFD会话的远端标识符RD值为所述第二静态BFD会话的LD值,所述第二静态BFD会话的RD值为所述第一静态BFD会话的LD值;The remote identifier RD value of the first static BFD session is the LD value of the second static BFD session, and the RD value of the second static BFD session is the LD value of the first static BFD session; 所述第三静态BFD会话的RD值为所述第四静态BFD会话的LD值,所述第四静态BFD会话的RD值为所述第三静态BFD会话的LD值;The RD value of the third static BFD session is the LD value of the fourth static BFD session, and the RD value of the fourth static BFD session is the LD value of the third static BFD session; 所述第一主LSP与第一备LSP为不同路径,所述第二主LSP与第二备LSP为不同路径。The first main LSP and the first backup LSP are different paths, and the second main LSP and the second backup LSP are different paths. 5.根据权利要求4所述的隧道路径控制方法,其特征在于,还包括:5. The tunnel path control method according to claim 4, further comprising: 在检测到所述第一主LSP和/或第二主LSP不满足预设条件的情况下,获取更新指示;When it is detected that the first primary LSP and/or the second primary LSP do not meet a preset condition, obtaining an update indication; 将所述更新指示发送给所述第一通信节点;sending the update indication to the first communication node; 其中,所述更新指示用于指示更新所述第一主LSP、第二主LSP、第一备LSP、第二备LSP、第一静态BFD会话、第二静态BFD会话、第三静态BFD会话以及第四静态BFD会话。The update indication is used to indicate updating of the first main LSP, the second main LSP, the first backup LSP, the second backup LSP, the first static BFD session, the second static BFD session, the third static BFD session and the fourth static BFD session. 6.一种隧道路径故障检测装置,应用于第一通信节点,其特征在于,包括:6. A tunnel path fault detection device, applied to a first communication node, characterized by comprising: 第二接收模块,用于在接收第二通信节点发送的配置信息之前,接收所述第二通信节点发送的接口查询请求;A second receiving module, used for receiving an interface query request sent by the second communication node before receiving the configuration information sent by the second communication node; 第一反馈模块,用于根据所述接口查询请求,向所述第二通信节点反馈本地可用LD;A first feedback module, configured to feed back a locally available LD to the second communication node according to the interface query request; 第二创建模块,用于在接收第二通信节点发送的配置信息之前,创建与所述第二通信节点之间的静态BFD配置接口;A second creation module, used for creating a static BFD configuration interface with the second communication node before receiving the configuration information sent by the second communication node; 其中,所述静态BFD配置接口的接口参数包括以下参数:The interface parameters of the static BFD configuration interface include the following parameters: 会话名称、本端标识、对端标识、最小发送间隔、最小接收间隔、检测倍数、隧道标识以及LSP类型;Session name, local end ID, peer end ID, minimum sending interval, minimum receiving interval, detection multiple, tunnel ID, and LSP type; 所述LSP类型为主LSP或备LSP;The LSP type is a main LSP or a backup LSP; 第一接收模块,用于在通过第一静态BFD会话和第二静态BFD会话,分别对第一隧道的第一主LSP和第二隧道的第二主LSP进行故障检测之前,接收第二通信节点发送的配置信息;其中,所述配置信息包括所述第一隧道和第二隧道的创建配置信息,以及,指示所述第一静态BFD会话与第一主LSP关联、所述第二静态BFD会话与第二主LSP关联、第三静态BFD会话与第一备LSP关联和第四静态BFD会话与第二备LSP关联的指示配置信息;A first receiving module is used to receive configuration information sent by a second communication node before performing fault detection on a first main LSP of a first tunnel and a second main LSP of a second tunnel respectively through a first static BFD session and a second static BFD session; wherein the configuration information includes creation configuration information of the first tunnel and the second tunnel, and indication configuration information indicating that the first static BFD session is associated with the first main LSP, the second static BFD session is associated with the second main LSP, the third static BFD session is associated with the first standby LSP, and the fourth static BFD session is associated with the second standby LSP; 第一创建模块,用于根据所述创建配置信息,创建所述第一隧道以及第二隧道;其中,所述第一静态BFD会话的远端标识符RD值为所述第二静态BFD会话的本地标识符LD值,所述第二静态BFD会话的RD值为所述第一静态BFD会话的LD值;A first creation module, configured to create the first tunnel and the second tunnel according to the creation configuration information; wherein the remote identifier RD value of the first static BFD session is the local identifier LD value of the second static BFD session, and the RD value of the second static BFD session is the LD value of the first static BFD session; 第一建立模块,用于根据所述指示配置信息,将所述第一静态BFD会话与第一主LSP之间、所述第二静态BFD会话与第二主LSP之间、所述第三静态BFD会话与第一备LSP之间以及所述第四静态BFD会话与第二备LSP之间分别建立关联;A first establishing module, configured to establish associations between the first static BFD session and the first primary LSP, between the second static BFD session and the second primary LSP, between the third static BFD session and the first backup LSP, and between the fourth static BFD session and the second backup LSP, respectively, according to the indication configuration information; 第一检测模块,用于通过第一静态双向转发检测BFD会话和第二静态BFD会话,分别对第一隧道的第一主标签交换路径LSP和第二隧道的第二主LSP进行故障检测;A first detection module, configured to perform fault detection on a first primary label switching path LSP of the first tunnel and a second primary LSP of the second tunnel respectively through a first static bidirectional forwarding detection BFD session and a second static BFD session; 其中,所述第一主LSP为正向路径,所述第二主LSP为与所述第一主LSP同路径的反向路径;The first main LSP is a forward path, and the second main LSP is a reverse path that is the same path as the first main LSP; 所述第一静态BFD会话的远端标识符RD值为所述第二静态BFD会话的本地标识符LD值,所述第二静态BFD会话的RD值为所述第一静态BFD会话的LD值;The remote identifier RD value of the first static BFD session is the local identifier LD value of the second static BFD session, and the RD value of the second static BFD session is the LD value of the first static BFD session; 所述第一隧道还包括:第一备LSP,第二隧道还包括:第二备LSP;The first tunnel further includes: a first backup LSP, and the second tunnel further includes: a second backup LSP; 所述路径故障检测装置还包括:The path fault detection device also includes: 第二检测模块,用于通过第三静态BFD会话和第四静态BFD会话,分别对第一隧道的第一备LSP和第二隧道的第二备LSP进行故障检测;A second detection module, used to perform fault detection on the first standby LSP of the first tunnel and the second standby LSP of the second tunnel respectively through a third static BFD session and a fourth static BFD session; 其中,所述第一备LSP为正向路径,所述第二备LSP为与所述第一备LSP同路径的反向路径;The first backup LSP is a forward path, and the second backup LSP is a reverse path that is the same path as the first backup LSP; 所述第三静态BFD会话的RD值为所述第四静态BFD会话的LD值,所述第四静态BFD会话的RD值为所述第三静态BFD会话的LD值;The RD value of the third static BFD session is the LD value of the fourth static BFD session, and the RD value of the fourth static BFD session is the LD value of the third static BFD session; 所述第一主LSP与第一备LSP为不同路径,所述第二主LSP与第二备LSP为不同路径。The first main LSP and the first backup LSP are different paths, and the second main LSP and the second backup LSP are different paths. 7.根据权利要求6所述的隧道路径故障检测装置,其特征在于,还包括:7. The tunnel path fault detection device according to claim 6, characterized in that it also includes: 第一切换模块,用于在检测到所述第一主LSP故障,以及所述第二主LSP故障的情况下,将所述第一隧道的隧道路径由所述第一主LSP切换至所述第一备LSP,以及将所述第二隧道的隧道路径由所述第二主LSP切换至所述第二备LSP。The first switching module is used to switch the tunnel path of the first tunnel from the first main LSP to the first backup LSP, and switch the tunnel path of the second tunnel from the second main LSP to the second backup LSP when a failure of the first main LSP and a failure of the second main LSP are detected. 8.根据权利要求6所述的隧道路径故障检测装置,其特征在于,还包括:8. The tunnel path fault detection device according to claim 6, characterized in that it also includes: 第三接收模块,用于接收第二通信节点发送的更新指示;A third receiving module, used to receive an update indication sent by the second communication node; 第一更新模块,用于根据所述更新指示,更新所述第一主LSP、第二主LSP、第一备LSP、第二备LSP、第一静态BFD会话、第二静态BFD会话、第三静态BFD会话以及第四静态BFD会话。The first update module is used to update the first main LSP, the second main LSP, the first backup LSP, the second backup LSP, the first static BFD session, the second static BFD session, the third static BFD session and the fourth static BFD session according to the update indication. 9.一种隧道路径控制装置,应用于第二通信节点,其特征在于,包括:9. A tunnel path control device, applied to a second communication node, characterized by comprising: 第二发送模块,用于在根据第一通信节点的本地可用本地标识符LD,得到配置信息之前,向所述第一通信节点发送接口查询请求;A second sending module, configured to send an interface query request to the first communication node before obtaining configuration information according to the locally available local identifier LD of the first communication node; 第四接收模块,用于接收所述第一通信节点根据所述接口查询请求反馈的所述第一通信节点的本地可用LD;A fourth receiving module, configured to receive the locally available LD of the first communication node fed back by the first communication node according to the interface query request; 第三创建模块,用于在将所述配置信息,发送给所述第一通信节点之前,创建与所述第一通信节点之间的静态BFD配置接口;A third creation module, configured to create a static BFD configuration interface with the first communication node before sending the configuration information to the first communication node; 其中,所述静态BFD配置接口的接口参数包括以下参数中的至少一种:The interface parameters of the static BFD configuration interface include at least one of the following parameters: 会话名称、本端标识、对端标识、最小发送间隔、最小接收间隔、检测倍数、隧道标识以及LSP类型;Session name, local end ID, peer end ID, minimum sending interval, minimum receiving interval, detection multiple, tunnel ID, and LSP type; 所述LSP类型为主LSP或备LSP;The LSP type is a main LSP or a backup LSP; 第一处理模块,用于根据第一通信节点的本地可用本地标识符LD,得到配置信息;A first processing module, configured to obtain configuration information according to a locally available local identifier LD of the first communication node; 第一发送模块,用于将所述配置信息,发送给所述第一通信节点;A first sending module, used to send the configuration information to the first communication node; 其中,所述配置信息包括第一隧道和第二隧道的创建配置信息,以及,指示第一静态双向转发检测BFD会话与第一主标签交换路径LSP关联、第二静态BFD会话与第二主LSP关联、第三静态BFD会话与第一备LSP关联和第四静态BFD会话与第二备LSP关联的指示配置信息;The configuration information includes creation configuration information of the first tunnel and the second tunnel, and configuration information indicating that the first static bidirectional forwarding detection BFD session is associated with the first primary label switching path LSP, the second static BFD session is associated with the second primary LSP, the third static BFD session is associated with the first backup LSP, and the fourth static BFD session is associated with the second backup LSP; 所述第一主LSP为正向路径,所述第二主LSP为与所述第一主LSP同路径的反向路径;所述第一备LSP为正向路径,所述第二备LSP为与所述第一备LSP同路径的反向路径;The first main LSP is a forward path, and the second main LSP is a reverse path with the same path as the first main LSP; the first backup LSP is a forward path, and the second backup LSP is a reverse path with the same path as the first backup LSP; 所述第一静态BFD会话的远端标识符RD值为所述第二静态BFD会话的LD值,所述第二静态BFD会话的RD值为所述第一静态BFD会话的LD值;The remote identifier RD value of the first static BFD session is the LD value of the second static BFD session, and the RD value of the second static BFD session is the LD value of the first static BFD session; 所述第三静态BFD会话的RD值为所述第四静态BFD会话的LD值,所述第四静态BFD会话的RD值为所述第三静态BFD会话的LD值;The RD value of the third static BFD session is the LD value of the fourth static BFD session, and the RD value of the fourth static BFD session is the LD value of the third static BFD session; 所述第一主LSP与第一备LSP为不同路径,所述第二主LSP与第二备LSP为不同路径。The first main LSP and the first backup LSP are different paths, and the second main LSP and the second backup LSP are different paths. 10.根据权利要求9所述的隧道路径控制装置,其特征在于,还包括:10. The tunnel path control device according to claim 9, characterized in that it also includes: 第一获取模块,用于在检测到所述第一主LSP和/或第二主LSP不满足预设条件的情况下,获取更新指示;A first acquisition module, configured to acquire an update indication when it is detected that the first primary LSP and/or the second primary LSP do not meet a preset condition; 第三发送模块,用于将所述更新指示发送给所述第一通信节点;A third sending module, configured to send the update indication to the first communication node; 其中,所述更新指示用于指示更新所述第一主LSP、第二主LSP、第一备LSP、第二备LSP、第一静态BFD会话、第二静态BFD会话、第三静态BFD会话以及第四静态BFD会话。The update indication is used to indicate updating of the first main LSP, the second main LSP, the first backup LSP, the second backup LSP, the first static BFD session, the second static BFD session, the third static BFD session and the fourth static BFD session. 11.一种通信节点,所述通信节点为第一通信节点,其特征在于,包括:处理器和收发机;11. A communication node, the communication node being a first communication node, characterized in that it comprises: a processor and a transceiver; 所述处理器用于:通过所述收发机接收第二通信节点发送的接口查询请求;根据所述接口查询请求,通过所述收发机向所述第二通信节点反馈本地可用LD;创建与所述第二通信节点之间的静态BFD配置接口;The processor is used to: receive an interface query request sent by a second communication node through the transceiver; according to the interface query request, feedback a locally available LD to the second communication node through the transceiver; and create a static BFD configuration interface with the second communication node; 其中,所述静态BFD配置接口的接口参数包括以下参数:The interface parameters of the static BFD configuration interface include the following parameters: 会话名称、本端标识、对端标识、最小发送间隔、最小接收间隔、检测倍数、隧道标识以及LSP类型;其中,所述LSP类型为主LSP或备LSP;Session name, local end identifier, peer end identifier, minimum sending interval, minimum receiving interval, detection multiple, tunnel identifier, and LSP type; wherein the LSP type is a primary LSP or a backup LSP; 所述收发机接收第二通信节点发送的配置信息;其中,所述配置信息包括第一隧道和第二隧道的创建配置信息,以及,指示第一静态BFD会话与第一主LSP关联、第二静态BFD会话与第二主LSP关联的指示配置信息、第三静态BFD会话与第一备LSP关联和第四静态BFD会话与第二备LSP关联;The transceiver receives configuration information sent by the second communication node; wherein the configuration information includes creation configuration information of the first tunnel and the second tunnel, and indication configuration information indicating that the first static BFD session is associated with the first primary LSP, the second static BFD session is associated with the second primary LSP, the third static BFD session is associated with the first standby LSP, and the fourth static BFD session is associated with the second standby LSP; 所述处理器还用于:根据所述创建配置信息,创建所述第一隧道以及第二隧道;The processor is further configured to: create the first tunnel and the second tunnel according to the creation configuration information; 所述第一静态BFD会话的远端标识符RD值为所述第二静态BFD会话的本地标识符LD值,所述第二静态BFD会话的RD值为所述第一静态BFD会话的LD值;The remote identifier RD value of the first static BFD session is the local identifier LD value of the second static BFD session, and the RD value of the second static BFD session is the LD value of the first static BFD session; 所述处理器还用于:根据所述指示配置信息,将所述第一静态BFD会话与第一主LSP之间、所述第二静态BFD会话与第二主LSP之间、所述第三静态BFD会话与第一备LSP之间以及所述第四静态BFD会话与第二备LSP之间分别建立关联;The processor is further configured to: establish associations between the first static BFD session and the first primary LSP, between the second static BFD session and the second primary LSP, between the third static BFD session and the first backup LSP, and between the fourth static BFD session and the second backup LSP, respectively, according to the indication configuration information; 所述处理器,还用于通过第一静态双向转发检测BFD会话和第二静态BFD会话,分别对第一隧道的第一主标签交换路径LSP和第二隧道的第二主LSP进行故障检测;The processor is further configured to perform fault detection on a first primary label switching path LSP of the first tunnel and a second primary LSP of the second tunnel respectively through a first static bidirectional forwarding detection BFD session and a second static BFD session; 其中,所述第一主LSP为正向路径,所述第二主LSP为与所述第一主LSP同路径的反向路径;The first main LSP is a forward path, and the second main LSP is a reverse path that is the same path as the first main LSP; 所述第一静态BFD会话的远端标识符RD值为所述第二静态BFD会话的本地标识符LD值,所述第二静态BFD会话的RD值为所述第一静态BFD会话的LD值;The remote identifier RD value of the first static BFD session is the local identifier LD value of the second static BFD session, and the RD value of the second static BFD session is the LD value of the first static BFD session; 所述第一隧道还包括:第一备LSP,第二隧道还包括:第二备LSP;The first tunnel further includes: a first backup LSP, and the second tunnel further includes: a second backup LSP; 所述处理器,还用于通过第三静态BFD会话和第四静态BFD会话,分别对第一隧道的第一备LSP和第二隧道的第二备LSP进行故障检测;The processor is further configured to perform fault detection on the first backup LSP of the first tunnel and the second backup LSP of the second tunnel respectively through a third static BFD session and a fourth static BFD session; 其中,所述第一备LSP为正向路径,所述第二备LSP为与所述第一备LSP同路径的反向路径;The first backup LSP is a forward path, and the second backup LSP is a reverse path that is the same path as the first backup LSP; 所述第三静态BFD会话的RD值为所述第四静态BFD会话的LD值,所述第四静态BFD会话的RD值为所述第三静态BFD会话的LD值。The RD value of the third static BFD session is the LD value of the fourth static BFD session, and the RD value of the fourth static BFD session is the LD value of the third static BFD session. 12.一种通信节点,所述通信节点为第二通信节点,其特征在于,包括:处理器和收发机;12. A communication node, the communication node being a second communication node, characterized in that it comprises: a processor and a transceiver; 所述处理器还用于:通过所述收发机向第一通信节点发送接口查询请求;The processor is further configured to: send an interface query request to the first communication node via the transceiver; 通过所述收发机接收所述第一通信节点根据所述接口查询请求反馈的第一通信节点的本地可用LD;Receiving, by the transceiver, the first communication node's locally available LD fed back by the first communication node according to the interface query request; 所述处理器还用于创建与所述第一通信节点之间的静态BFD配置接口;The processor is further configured to create a static BFD configuration interface with the first communication node; 其中,所述静态BFD配置接口的接口参数包括以下参数:The interface parameters of the static BFD configuration interface include the following parameters: 会话名称、本端标识、对端标识、最小发送间隔、最小接收间隔、检测倍数、隧道标识以及LSP类型;Session name, local end ID, peer end ID, minimum sending interval, minimum receiving interval, detection multiple, tunnel ID, and LSP type; 所述LSP类型为主LSP或备LSP;The LSP type is a main LSP or a backup LSP; 所述处理器,用于根据第一通信节点的本地可用本地标识符LD,得到配置信息;The processor is configured to obtain configuration information according to the locally available local identifier LD of the first communication node; 将所述配置信息,通过所述收发机发送给所述第一通信节点;Sending the configuration information to the first communication node via the transceiver; 其中,所述配置信息包括第一隧道和第二隧道的创建配置信息,以及,指示第一静态双向转发检测BFD会话与第一主标签交换路径LSP关联、第二静态BFD会话与第二主LSP关联、第三静态BFD会话与第一备LSP关联和第四静态BFD会话与第二备LSP关联的指示配置信息;The configuration information includes creation configuration information of the first tunnel and the second tunnel, and configuration information indicating that the first static bidirectional forwarding detection BFD session is associated with the first primary label switching path LSP, the second static BFD session is associated with the second primary LSP, the third static BFD session is associated with the first backup LSP, and the fourth static BFD session is associated with the second backup LSP; 所述第一主LSP为正向路径,所述第二主LSP为与所述第一主LSP同路径的反向路径;所述第一备LSP为正向路径,所述第二备LSP为与所述第一备LSP同路径的反向路径;The first main LSP is a forward path, and the second main LSP is a reverse path with the same path as the first main LSP; the first backup LSP is a forward path, and the second backup LSP is a reverse path with the same path as the first backup LSP; 所述第一静态BFD会话的远端标识符RD值为所述第二静态BFD会话的LD值,所述第二静态BFD会话的RD值为所述第一静态BFD会话的LD值;The remote identifier RD value of the first static BFD session is the LD value of the second static BFD session, and the RD value of the second static BFD session is the LD value of the first static BFD session; 所述第三静态BFD会话的RD值为所述第四静态BFD会话的LD值,所述第四静态BFD会话的RD值为所述第三静态BFD会话的LD值;The RD value of the third static BFD session is the LD value of the fourth static BFD session, and the RD value of the fourth static BFD session is the LD value of the third static BFD session; 所述第一主LSP与第一备LSP为不同路径,所述第二主LSP与第二备LSP为不同路径。The first main LSP and the first backup LSP are different paths, and the second main LSP and the second backup LSP are different paths. 13.一种通信节点,包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的程序;其特征在于,所述处理器执行所述程序时实现如权利要求1至3中任一项所述的隧道路径故障检测方法;或者,13. A communication node, comprising a memory, a processor, and a program stored in the memory and executable on the processor; wherein the processor implements the tunnel path fault detection method according to any one of claims 1 to 3 when executing the program; or 所述处理器执行所述程序时实现如权利要求4至5中任一项所述的隧道路径控制方法。When the processor executes the program, the tunnel path control method according to any one of claims 4 to 5 is implemented. 14.一种可读存储介质,其上存储有程序,其特征在于,该程序被处理器执行时实现如权利要求1至3中任一项所述的隧道路径故障检测方法中的步骤;或者,14. A readable storage medium having a program stored thereon, characterized in that when the program is executed by a processor, the steps in the tunnel path fault detection method according to any one of claims 1 to 3 are implemented; or, 该程序被处理器执行时实现如权利要求4至5中任一项所述的隧道路径控制方法中的步骤。When the program is executed by a processor, the steps in the tunnel path control method as described in any one of claims 4 to 5 are implemented.
CN202011516342.0A 2020-12-21 2020-12-21 A tunnel path fault detection method, control method, device and communication node Active CN114650241B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011516342.0A CN114650241B (en) 2020-12-21 2020-12-21 A tunnel path fault detection method, control method, device and communication node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011516342.0A CN114650241B (en) 2020-12-21 2020-12-21 A tunnel path fault detection method, control method, device and communication node

Publications (2)

Publication Number Publication Date
CN114650241A CN114650241A (en) 2022-06-21
CN114650241B true CN114650241B (en) 2025-02-11

Family

ID=81990824

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011516342.0A Active CN114650241B (en) 2020-12-21 2020-12-21 A tunnel path fault detection method, control method, device and communication node

Country Status (1)

Country Link
CN (1) CN114650241B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116208523B (en) * 2023-02-07 2024-09-03 重庆奥普泰通信技术有限公司 BFD-based SRV6 TE tunnel fault detection method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724117A (en) * 2012-06-06 2012-10-10 华为技术有限公司 Method and device for establishing multi-protocol label switching traffic engineering tunnel
CN102752143A (en) * 2012-07-05 2012-10-24 杭州华三通信技术有限公司 Bi-directional forwarding detection (BFD) method of multiple protocol label switching (MPLS) traffic engineering (TE) bi-directional tunnel and routing equipment
CN108123875A (en) * 2016-11-29 2018-06-05 中兴通讯股份有限公司 A kind of bidirectional forwarding detection (BFD) method and device
CN108989232A (en) * 2017-05-31 2018-12-11 中兴通讯股份有限公司 Message interaction method and device in SDN

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141330B (en) * 2007-10-23 2010-06-16 华为技术有限公司 Method, system and equipment for establishing BFD detection for LSP tunnel
CN101447900A (en) * 2008-12-15 2009-06-03 华为技术有限公司 Method, system and device for building bidirectional forwarding detection
CN102624609A (en) * 2012-02-28 2012-08-01 华为技术有限公司 Method and device for sending reverse BFD message and notifying path
CN102769543B (en) * 2012-07-20 2015-05-20 杭州华三通信技术有限公司 BFD (Bidirectional Forwarding Detection) method and equipment based on LSP (Label Switching Path)
US9979515B2 (en) * 2014-06-30 2018-05-22 Telefonaktiebolaget Lm Ericsson (Publ) Control for BFD return path
WO2017008862A1 (en) * 2015-07-16 2017-01-19 Telefonaktiebolaget Lm Ericsson (Publ) Restoration method for an mpls ring network
CN108880766A (en) * 2017-05-10 2018-11-23 中兴通讯股份有限公司 Signaling configuration method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724117A (en) * 2012-06-06 2012-10-10 华为技术有限公司 Method and device for establishing multi-protocol label switching traffic engineering tunnel
CN102752143A (en) * 2012-07-05 2012-10-24 杭州华三通信技术有限公司 Bi-directional forwarding detection (BFD) method of multiple protocol label switching (MPLS) traffic engineering (TE) bi-directional tunnel and routing equipment
CN108123875A (en) * 2016-11-29 2018-06-05 中兴通讯股份有限公司 A kind of bidirectional forwarding detection (BFD) method and device
CN108989232A (en) * 2017-05-31 2018-12-11 中兴通讯股份有限公司 Message interaction method and device in SDN

Also Published As

Publication number Publication date
CN114650241A (en) 2022-06-21

Similar Documents

Publication Publication Date Title
US9363168B2 (en) Technique for operating a network node
US7944811B2 (en) Multiple multicast forwarder prevention during NSF recovery of control failures in a router
US8599683B2 (en) System and method for changing a delivery path of multicast traffic
US20060256767A1 (en) Router and network connecting method
EP3813306B1 (en) Message processing method and communications system
US20220417136A1 (en) Pce controlled network reliability
US12052165B2 (en) Fault diagnosis method and apparatus thereof
CN112995041A (en) Network communication method, device, electronic equipment and storage medium
Papan et al. The new multicast repair (M‐REP) IP fast reroute mechanism
US12231288B2 (en) System and method for Border Gateway Protocol (BGP) controlled network reliability
CN114650241B (en) A tunnel path fault detection method, control method, device and communication node
US9246796B2 (en) Transmitting and forwarding data
EP3806387B1 (en) Method for implementing data multicast, apparatus, and system
Park et al. Toward control path high availability for software-defined networks
CN106059925B (en) Multicast processing method and equipment
US20250274381A1 (en) Method and apparatus for implementing bfd in bier network, and storage medium
US11888596B2 (en) System and method for network reliability
Carthern et al. Basic Switch and Router Troubleshooting
CN118283539A (en) Multicast switching method and device, electronic equipment and storage medium
CN117811995A (en) Method and device for determining node
HK1189310A (en) Technique for operating a network node

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