WO2014008651A1 - Method and routing device for bfd session establishment - Google Patents

Method and routing device for bfd session establishment Download PDF

Info

Publication number
WO2014008651A1
WO2014008651A1 PCT/CN2012/078561 CN2012078561W WO2014008651A1 WO 2014008651 A1 WO2014008651 A1 WO 2014008651A1 CN 2012078561 W CN2012078561 W CN 2012078561W WO 2014008651 A1 WO2014008651 A1 WO 2014008651A1
Authority
WO
WIPO (PCT)
Prior art keywords
routing device
link
descriptor
detected
identifier
Prior art date
Application number
PCT/CN2012/078561
Other languages
French (fr)
Chinese (zh)
Inventor
杨杰
苏现群
黄永年
王歆平
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2012/078561 priority Critical patent/WO2014008651A1/en
Priority to CN201280000944.8A priority patent/CN102918807B/en
Publication of WO2014008651A1 publication Critical patent/WO2014008651A1/en

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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks

Definitions

  • the present invention relates to a detection technology, and in particular, to a Bidirectional Forwarding Detection (BFD) session establishment method and a routing device.
  • BFD Bidirectional Forwarding Detection
  • BFD Bidirectional Forwarding Detection
  • aspects of the present application provide a method for establishing a BFD session and a routing device to improve the reliability of fault detection.
  • An aspect of the present application provides a method for establishing a BFD session, including:
  • the first routing device sends, to the second routing device, a link identifier for identifying the bidirectional link to be detected and a first descriptor for the first routing device to allocate the bidirectional link to be detected, so that the second Determining, by the routing device, the bidirectional link to be detected according to the link identifier, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, the second descriptor Is a descriptor allocated by the second routing device to the to-be-detected bidirectional link;
  • the first routing device Receiving, by the first routing device, the first BFD packet sent by the second routing device by using the to-be-detected bidirectional link according to the first association, where the first BFD packet includes the first a descriptor and the second descriptor;
  • the first routing device establishes a second association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, and passes the to-be-detected two-way chain according to the second association relationship.
  • the second BFD packet is sent to the second routing device for fault detection, and the second BFD packet includes the first descriptor and the second descriptor.
  • the to-be-detected bidirectional link includes a first link from the first routing device to the second routing device, and the second routing device to the first route The second link of the device;
  • the identifier of the to-be-detected bidirectional link is an identifier of the first link or an identifier of the second link.
  • the identifier of the bidirectional link to be detected is The identifier of the second link.
  • the first routing device sends, to the second routing device, a link identifier and a location for identifying the bidirectional link to be detected.
  • the first descriptor allocated by the first routing device to the to-be-detected bidirectional link includes:
  • the first routing device sends the link identifier and the first descriptor to the second routing device by using a control channel between the first routing device and the second routing device.
  • the first routing device receives the second routing device according to the first association relationship, Before the first BFD packet sent by the bidirectional link to be detected, the method further includes:
  • the first routing device receives the second descriptor sent by the second routing device by using a control channel between the first routing device and the second routing device.
  • the first routing device sends, to the second routing device, the identifier that is to be detected.
  • a link identifier of the link and a first descriptor allocated by the first routing device to the to-be-detected bidirectional link including:
  • the first routing device sends the link identifier and the first descriptor to the second routing device by using the bidirectional link to be detected.
  • Another aspect of the present application provides a method for establishing a BFD session, including:
  • the second routing device receives the link sent by the first routing device to identify the bidirectional link to be detected. Determining, by the first routing device, a first descriptor allocated to the to-be-detected bidirectional link; determining, by the second routing device, the bidirectional link to be detected according to the link identifier, and establishing the to-be-detected a first association relationship between the bidirectional link, the first descriptor, and the second descriptor, where the second descriptor is a descriptor allocated by the second routing device to the bidirectional link to be detected; The second routing device sends a first BFD packet to the first routing device to detect the fault according to the first association relationship, where the first BFD packet includes the first description. And the second descriptor;
  • the second routing device Receiving, by the second routing device, the second BFD packet sent by the first routing device by using the to-be-detected bidirectional link according to the second association, where the second BFD packet includes the first descriptor And the second descriptor, the second association relationship is an association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor established by the first routing device.
  • the to-be-detected bidirectional link includes a first link from the first routing device to the second routing device, and the second routing device to the first route The second link of the device;
  • the identifier of the to-be-detected bidirectional link is an identifier of the first link or an identifier of the second link.
  • the identifier of the bidirectional link to be detected is The identifier of the second link.
  • the second routing device passes the to-be-detected bidirectional link to the first Before the routing device sends the first BFD packet for fault detection, it also includes:
  • the second routing device sends the second descriptor to the first routing device by using a control channel between the first routing device and the second routing device.
  • a routing device including:
  • a sending unit configured to send, to the second routing device, a link identifier used to identify the bidirectional link to be detected and a first descriptor allocated by the routing device to the to-be-detected bidirectional link, so that the second route Determining, according to the link identifier, the bidirectional link to be detected, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, where the second descriptor is Descriptor allocated by the second routing device to the bidirectional link to be detected;
  • a receiving unit configured to receive, by the second routing device, the first BFD packet that is sent by using the to-be-detected bidirectional link according to the first association, where the first BFD packet includes the first description And the second descriptor;
  • the association unit is configured to establish a second association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, and transmit the second association relationship to the sending unit;
  • the sending unit is further configured to: send, according to the second association relationship, the second BFD packet to the second routing device by using the to-be-detected bidirectional link to perform fault detection, where the second BFD packet includes The first descriptor and the second descriptor.
  • the to-be-detected bidirectional link includes a first link of the routing device to the second routing device, and a second routing device of the second routing device to the routing device.
  • the identifier of the to-be-detected bidirectional link is an identifier of the first link or an identifier of the second link.
  • the identifier of the bidirectional link to be detected is The identifier of the second link.
  • the sending unit is specifically used to
  • the receiving unit is further used
  • the sending unit is specifically configured to be used.
  • the routing device sends the link identifier and the first descriptor to the second routing device by using the bidirectional link to be detected.
  • Another aspect of the present application provides a routing device, including:
  • a receiving unit configured to receive a link identifier that is sent by the first routing device to identify the bidirectional link to be detected, and a first descriptor that is allocated by the first routing device to the bidirectional link to be detected, and the Transmitting the link identifier and the first descriptor to the associated unit;
  • the association unit is configured to determine the to-be-detected bidirectional link according to the link identifier, and establish a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, and Transmitting the first association relationship to a sending unit, where the second descriptor is a descriptor allocated by the routing device to the to-be-detected bidirectional link;
  • the sending unit is configured to send, by using the to-be-detected bidirectional link, the first BFD packet to the first routing device to perform fault detection according to the first association relationship, where the first BFD packet includes Describe the first descriptor and the second descriptor;
  • the receiving unit is further configured to receive, by the first routing device, the second BFD packet that is sent by using the to-be-detected bidirectional link according to the second association, where the second BFD packet includes the first a descriptor and the second descriptor, where the second association relationship is an association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor established by the first routing device.
  • the to-be-detected bidirectional link includes a first link of the first routing device to the routing device, and a second of the routing device to the first routing device.
  • the identifier of the to-be-detected bidirectional link is an identifier of the first link or an identifier of the second link.
  • the identifier of the bidirectional link to be detected is The identifier of the second link.
  • the sending unit is further used to
  • a routing device including:
  • a transmitter configured to send, to the second routing device, a link identifier used to identify the bidirectional link to be detected and a first descriptor allocated by the routing device to the to-be-detected bidirectional link, so that the second Determining, by the routing device, the bidirectional link to be detected according to the link identifier, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, the second descriptor Is a descriptor allocated by the second routing device to the to-be-detected bidirectional link;
  • a receiver configured to receive, by the second routing device, the first BFD packet sent by the to-be-detected bidirectional link according to the first association, where the first BFD packet includes the first description And the second descriptor;
  • the processor is configured to establish a second association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, and transmit the second association relationship to the transmitter;
  • the transmitter is further configured to send, by using the to-be-detected bidirectional link, the second BFD packet to the second routing device to perform fault detection according to the second association, where the second BFD packet includes The first descriptor and the second descriptor.
  • the to-be-detected bidirectional link includes a first link of the routing device to the second routing device, and a second routing device of the second routing device to the routing device.
  • the identifier of the to-be-detected bidirectional link is an identifier of the first link or an identifier of the second link.
  • the identifier of the bidirectional link to be detected is The identifier of the second link.
  • the transmitter is specifically used to
  • the receiver is further used
  • the transmitter is specifically used
  • a routing device including:
  • a receiver configured to receive a link identifier sent by the first routing device to identify the bidirectional link to be detected, and a first descriptor that is allocated by the first routing device to the bidirectional link to be detected, and Transmitting the link identifier and the first descriptor to the processor;
  • the processor is configured to determine the to-be-detected bidirectional link according to the link identifier, and establish a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, and Transmitting the first association relationship to a transmitter, where the second descriptor is a descriptor allocated by the routing device to the to-be-detected bidirectional link;
  • the transmitter is configured to send, by using the to-be-detected bidirectional link, the first BFD packet to the first routing device to perform fault detection according to the first association relationship, where the first BFD packet includes Describe the first descriptor and the second descriptor;
  • the receiver is further configured to receive, by the first routing device, the second BFD packet that is sent by using the to-be-detected bidirectional link according to the second association, where the second BFD packet includes the first a descriptor and the second descriptor, where the second association relationship is an association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor established by the first routing device.
  • the to-be-detected bidirectional link includes a first link of the first routing device to the routing device, and a second of the routing device to the first routing device.
  • the identifier of the to-be-detected bidirectional link is an identifier of the first link or an identifier of the second link.
  • the identifier of the bidirectional link to be detected is The identifier of the second link.
  • the transmitter is further used
  • the first routing device sends a link identifier for identifying the bidirectional link to be detected and the first routing device to the second routing device by using the first routing device. Determining a first descriptor for detecting a bidirectional link allocation, so that the second routing device determines the to-be-detected bidirectional link according to the link identifier, and establishing the to-be-detected bidirectional link, the first a first association relationship between the descriptor and the second descriptor, the second descriptor is a descriptor allocated by the second routing device to the bidirectional link to be detected, and the first routing device further receives the first According to the first association relationship, the second routing device includes the first descriptor and the second descriptor by using the first BFD packet sent by the to-be-detected bidirectional link.
  • the bidirectional link sends a second BFD packet to the second routing device for fault detection, where the second BFD packet includes the first descriptor and the second descriptor, End routing
  • the device can establish the association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor. Therefore, it is not necessary to perform backhaul processing on the IP path, so that the backhaul is avoided in the prior art. If the path of the IP address is faulty, the detection result of the BFD is still the fault of the bidirectional link to be detected, which improves the reliability of fault detection.
  • the second routing device receives, by the second routing device, the link identifier that is sent by the first routing device to identify the bidirectional link to be detected, and the first routing device is the to-be-detected. a first descriptor of the bidirectional link allocation, and determining the to-be-detected bidirectional link according to the link identifier, and establishing the first to-be-detected bidirectional link, the first descriptor, and the second descriptor
  • the second descriptor is a descriptor allocated by the second routing device to the to-be-detected bidirectional link, and the second routing device further passes the to-be-detected two-way according to the first association relationship.
  • the link sends the first BFD packet to the first routing device to perform fault detection, where the first BFD packet includes the first descriptor and the second descriptor, so that the second routing device can Receiving, by the first routing device, the second BFD packet sent by the to-be-detected bidirectional link according to the second association, where the second BFD packet includes the first descriptor and the second description
  • the second association relationship is an association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor that is established by the first routing device, because both ends of the bidirectional link to be detected are
  • the routing device can establish the association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor.
  • IP path is processed if the IP path is out If the fault occurs, the detection result of the BFD is still a problem that the bidirectional link to be detected is faulty, thereby improving the reliability of the fault detection.
  • FIG. 1 is a schematic flowchart of a method for establishing a BFD session according to an embodiment of the present disclosure
  • FIG. 2 is a schematic flowchart of a method for establishing a BFD session according to another embodiment of the present disclosure
  • Schematic diagram of the routing device
  • FIG. 4 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure.
  • FIG. 5 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure.
  • the technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application.
  • the embodiments are part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present invention.
  • the term "and/or" in this context is merely an association describing the associated object, indicating that there may be three relationships, for example, A and / or B, which may indicate: A exists separately, and A and B exist simultaneously. There are three cases of B alone.
  • the character T in this paper generally indicates that the contextual object is an "or" relationship.
  • FIG. 1 is a schematic flowchart of a method for establishing a BFD session according to an embodiment of the present disclosure, as shown in FIG. 1 .
  • the first routing device sends, to the second routing device, a link identifier for identifying the bidirectional link to be detected and a first descriptor that is allocated by the first routing device to the bidirectional link to be detected, so that Determining, by the second routing device, the bidirectional link to be detected according to the link identifier, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor,
  • the second descriptor is a descriptor allocated by the second routing device for the to-be-detected bidirectional link.
  • the first routing device receives the first BFD packet that is sent by the second routing device by using the to-be-detected bidirectional link according to the first association, where the first BFD packet includes the a first descriptor and the second descriptor.
  • the first routing device establishes a second association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, and the to-be-detected according to the second association relationship.
  • the bidirectional link sends a second BFD packet to the second routing device for fault detection, where the second BFD packet includes the first descriptor and the second descriptor.
  • the routing device ie, the first routing device and the second routing device at both ends of the bidirectional link to be detected can establish the association between the to-be-detected bidirectional link, the first descriptor, and the second descriptor. Therefore, the first routing device and the second routing device can use the established association relationship to transmit the BFD packets in the two directions, that is, the first BFD packet and the second BFD packet, by using the to-be-detected bidirectional link. ) for fault detection without the need for backhaul on the IP path.
  • the bidirectional link to be detected may include, but is not limited to, a Label Switched Path in a Traffic Engineering (TE) tunnel established by a Resource Resert Protocol (RSVP).
  • TE Traffic Engineering
  • RSVP Resource Resert Protocol
  • LSP LSP
  • LSP LSP
  • PW Pseudo Wire
  • LDP Label Distribution Protocol
  • the to-be-detected bidirectional link may include a first link from the first routing device to the second routing device, and the second route The second link of the device to the first routing device.
  • the identifier of the to-be-detected bidirectional link may be the identifier of the first link or the identifier of the second link.
  • the identifier of the bidirectional link to be detected may be an identifier of the second link.
  • a first routing device eg, Master, etc.
  • a second routing device eg, an AP, etc.
  • Communication between the control channels is performed to complete the packet forwarding process that is completely controlled by the switch/router, thereby realizing the separation of data forwarding and routing control.
  • the first routing device may specifically pass the first routing device and the second And a control channel between the routing devices, sending the link identifier and the first descriptor to the second routing device.
  • the first routing device may further receive the second routing device by using the first routing device and the second routing device. Between the control channels, the second descriptor is sent.
  • the first routing device may send the second routing device to the second routing device by using the to-be-detected bidirectional link.
  • the link identifier and the first descriptor may be used to indicate the second routing device by using the to-be-detected bidirectional link.
  • the first routing device sends a link identifier for identifying the bidirectional link to be detected to the second routing device, and a first descriptor that is allocated by the first routing device to the bidirectional link to be detected. So that the second routing device determines the to-be-detected bidirectional link according to the link identifier, and establishes a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, The second descriptor is a descriptor allocated by the second routing device to the to-be-detected bidirectional link, and the first routing device further receives the second routing device according to the first association relationship, Determining to detect the first BFD packet sent by the bidirectional link, where the first BFD packet includes the first descriptor and the second descriptor, so that the first routing device can establish the to-be-detected a bidirectional link, a second association relationship between the first descriptor and the second descriptor, and sending, by the to-be-detected
  • bidirectional link since BFD packets in both directions can pass from one routing device to another routing device through the bidirectional link to be detected (ie, the bidirectional link), there is no need to perform backhaul processing on the IP path. Therefore, the fault detection of the bidirectional link to be detected needs to be completed in one session, thereby reducing the number of interactions between the two routing devices, and saving interaction costs.
  • FIG. 2 is a schematic flowchart of a method for establishing a BFD session according to another embodiment of the present application, as shown in FIG. 2.
  • the second routing device receives, by the first routing device, a link identifier that is used to identify the bidirectional link to be detected, and a first descriptor that is allocated by the first routing device to the to-be-detected bidirectional link.
  • the second routing device determines the to-be-detected bidirectional link according to the link identifier, and establishes a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor.
  • the second descriptor is a descriptor allocated by the second routing device to the to-be-detected bidirectional link.
  • the second routing device sends a first BFD packet to the first routing device to detect a fault according to the first association relationship, where the first BFD packet is included in the first BFD packet.
  • the first descriptor and the second descriptor are included in the first BFD packet.
  • the second routing device receives the second BFD packet sent by the first routing device by using the to-be-detected bidirectional link according to the second association, where the second BFD packet includes the first a descriptor and the second descriptor, where the second association relationship is an association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor established by the first routing device.
  • the routing device ie, the first routing device and the second routing device at both ends of the bidirectional link to be detected can establish the association between the to-be-detected bidirectional link, the first descriptor, and the second descriptor. Therefore, the first routing device and the second routing device can use the established association relationship to transmit the BFD packets in the two directions, that is, the first BFD packet and the second BFD packet, by using the to-be-detected bidirectional link. ) for fault detection without the need for backhaul on the IP path.
  • the bidirectional link to be detected may include, but is not limited to, a Label Switched Path in a Traffic Engineering (TE) tunnel established by a Resource Resert Protocol (RSVP).
  • TE Traffic Engineering
  • RSVP Resource Resert Protocol
  • LSP LSP
  • LSP LSP
  • PW Pseudo Wire
  • LDP Label Distribution Protocol
  • the to-be-detected bidirectional link may include a first link from the first routing device to the second routing device, and the second route The second link of the device to the first routing device.
  • the identifier of the to-be-detected bidirectional link may be the identifier of the first link or the identifier of the second link.
  • the identifier of the bidirectional link to be detected may be an identifier of the second link.
  • the first routing device (for example, the Master, etc.) communicates with the second routing device (for example, an AP, etc.) through the control channel to jointly complete the packet forwarding process that is completely controlled by the switch/router, thereby implementing data forwarding and Separation of routing control.
  • the second routing device may specifically receive the first routing device by using the first And a control channel between the routing device and the second routing device, the link identifier sent by the first descriptor.
  • the second routing device may further be configured by using a control channel between the first routing device and the second routing device.
  • the first routing device sends the second descriptor.
  • the second routing device may receive, by the second routing device, the first routing device by using the to-be-detected bidirectional link.
  • the link identifier and the first descriptor may be used to identify the second routing device by using the to-be-detected bidirectional link.
  • the second routing device receives, by the first routing device, a link identifier that is used by the first routing device to identify the bidirectional link to be detected, and a first descriptor that is allocated by the first routing device to the to-be-detected bidirectional link. Determining, according to the link identifier, the to-be-detected bidirectional link, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, the second descriptor a descriptor that is allocated by the second routing device to the to-be-detected bidirectional link, and the second routing device, according to the first association relationship, to the first routing device by using the to-be-detected bidirectional link.
  • the bidirectional link since the BFD packets in both directions can pass from one routing device to another routing device through the bidirectional link to be detected (ie, the bidirectional link), there is no need to perform backhaul processing on the IP path, therefore, only one The fault detection of the bidirectional link to be detected is completed in the session, thereby reducing the number of interactions between the two routing devices and saving interaction costs.
  • FIG. 3 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure.
  • the routing device in this embodiment may include a sending unit 31, a receiving unit 32, and an associating unit 33.
  • the sending unit 31 is configured to send, to the second routing device, a link identifier that is used to identify the bidirectional link to be detected, and a first descriptor that is allocated by the routing device to the bidirectional link to be detected, so that the Determining, by the second routing device, the bidirectional link to be detected according to the link identifier, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, where the second The descriptor is a descriptor allocated by the second routing device to the to-be-detected bidirectional link; the receiving unit 32 is configured to receive, by the second routing device, the doubly chain to be detected according to the first association relationship.
  • the first BFD packet sent by the path includes the first descriptor and the second descriptor
  • the association unit 33 is configured to establish the bidirectional link to be detected. Decoding a first descriptor and a second association relationship of the second descriptor, and transmitting the second association relationship to the sending unit 31; the sending unit 31 is further configured to use the second association relationship By the stated
  • the bidirectional link to be detected sends a second BFD packet to the second routing device for fault detection, where the second BFD packet includes the first descriptor and the second descriptor.
  • the routing device ie, the routing device and the second routing device at both ends of the bidirectional link to be detected can establish the association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor. Therefore, the routing device and the second routing device can use the established association relationship to transmit the BFD packets in the two directions, that is, the first BFD packet and the second BFD packet, by using the to-be-detected bidirectional link. Fault detection, no need to perform backhaul processing on the IP path.
  • the bidirectional link to be detected may include, but is not limited to, a Label Switched Path in a Traffic Engineering (TE) tunnel established by a Resource Resert Protocol (RSVP).
  • TE Traffic Engineering
  • RSVP Resource Resert Protocol
  • LSP LSP
  • LSP LSP
  • PW Pseudo Wire
  • LDP Label Distribution Protocol
  • the to-be-detected bidirectional link may include a first link from the first routing device to the second routing device, and the second route The second link of the device to the first routing device.
  • the identifier of the to-be-detected bidirectional link may be the identifier of the first link or the identifier of the second link.
  • the identifier of the bidirectional link to be detected may be an identifier of the second link.
  • the first routing device (for example, the Master, etc.) communicates with the second routing device (for example, an AP, etc.) through the control channel to jointly complete the packet forwarding process that is completely controlled by the switch/router, thereby implementing data forwarding and Separation of routing control.
  • the link identifier and the first description payment are sent to the second routing device for controlling and forwarding a control channel between separate devices.
  • the receiving unit 32 may further receive that the second routing device sends by using a control channel between the routing device and the second routing device. Said second descriptor, and transmitting said second descriptor to said associating unit 33.
  • the sending unit 31 may specifically send, by the routing device, the second routing device to the second routing device by using the to-be-detected bidirectional link. The link identifier and the first descriptor.
  • the routing device sends, by the sending unit, a link identifier for identifying the bidirectional link to be detected and a first descriptor allocated by the routing device to the bidirectional link to be detected, to the second routing device, so that Determining, by the second routing device, the bidirectional link to be detected according to the link identifier, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor,
  • the second descriptor is a descriptor allocated by the second routing device to the to-be-detected bidirectional link, and the receiving unit receives the second routing device, according to the first association relationship, by using the to-be-detected two-way chain.
  • the second BFD packet is configured to detect the fault, and the second BFD packet includes the first descriptor and the second descriptor, and the routing device at both ends of the bidirectional link to be detected can establish the two-way to be detected.
  • the bidirectional link since the BFD packets in both directions can pass from one routing device to another routing device through the bidirectional link to be detected (ie, the bidirectional link), there is no need to perform backhaul processing on the IP path, therefore, only one The fault detection of the bidirectional link to be detected is completed in the session, thereby reducing the number of interactions between the two routing devices and saving interaction costs.
  • FIG. 4 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure.
  • the routing device in this embodiment may include a receiving unit 41, an association unit 42, and a sending unit 43.
  • the receiving unit 41 is configured to receive, by the first routing device, a link identifier that is used to identify the bidirectional link to be detected, and a first descriptor that is allocated by the first routing device to the to-be-detected bidirectional link, and Transmitting the link identifier and the first descriptor to the association unit 42;
  • the association unit 42 is configured to determine the to-be-detected bidirectional link according to the link identifier, and establish the to-be-detected two-way chain a first association relationship between the first descriptor and the second descriptor, and the first
  • the association is transmitted to the sending unit 43, the second descriptor is a descriptor allocated by the routing device to the to-be-detected bidirectional link, and the sending unit 43 is configured to pass the first association relationship
  • the detecting the bidirectional link sends the first BFD packet to the first routing device to perform fault detection, where the first BFD packet includes the first descriptor and the second descriptor; the receiving unit
  • the second BFD packet is sent by the first routing device according to the second association relationship, and the second BFD packet is sent by the second BFD packet.
  • the second descriptor, the second association relationship is an association relationship between the to-be-detected bidirectional link established by the first routing device, the first descriptor, and the second descriptor.
  • the routing device ie, the first routing device and the routing device at both ends of the bidirectional link to be detected can establish the association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor. Therefore, the first routing device and the routing device can use the established association relationship to transmit the BFD packets in the two directions, that is, the first BFD packet and the second BFD packet, by using the to-be-detected bidirectional link. Fault detection, no need to perform backhaul processing on the IP path.
  • the bidirectional link to be detected may include, but is not limited to, a Label Switched Path in a Traffic Engineering (TE) tunnel established by a Resource Resert Protocol (RSVP).
  • TE Traffic Engineering
  • RSVP Resource Resert Protocol
  • LSP LSP
  • LSP LSP
  • PW Pseudo Wire
  • LDP Label Distribution Protocol
  • the to-be-detected bidirectional link may include a first link from the first routing device to the second routing device, and the second route The second link of the device to the first routing device.
  • the identifier of the to-be-detected bidirectional link may be the identifier of the first link or the identifier of the second link.
  • the identifier of the bidirectional link to be detected may be an identifier of the second link.
  • the first routing device (for example, the Master, etc.) communicates with the second routing device (for example, an AP, etc.) through the control channel to jointly complete the packet forwarding process that is completely controlled by the switch/router, thereby implementing data forwarding and Separation of routing control.
  • the sending unit 43 may further perform control between the first routing device and the routing device. Channel, sending the second descriptor to the first routing device.
  • the routing device receives, by the receiving unit, a link identifier that is sent by the first routing device to identify the bidirectional link to be detected, and a first descriptor that is allocated by the first routing device to the to-be-detected bidirectional link. And determining, by the association unit, the bidirectional link to be detected according to the link identifier, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, where The second descriptor is a descriptor allocated by the routing device to the to-be-detected bidirectional link, and the sending unit sends the first routing device to the first routing device by using the to-be-detected bidirectional link according to the first association relationship.
  • a second BFD packet sent by the bidirectional link to be detected, where the second BFD packet includes the first descriptor and the second descriptor, and the second association relationship is The relationship between the two-way link to be detected, the first descriptor, and the second descriptor that is established by the first routing device, because the routing devices at both ends of the bidirectional link to be detected can establish the to-be-detected
  • the association relationship between the bidirectional link, the first descriptor, and the second descriptor therefore, there is no need to perform backhaul processing on the IP path, and it is possible to avoid the prior art if the backhaul is processed in the IP path. If the IP path is faulty, the detection result of BFD is still the fault of the bidirectional link to be detected, which improves the reliability of fault detection.
  • the bidirectional link since the BFD packets in both directions can pass from one routing device to another routing device through the bidirectional link to be detected (ie, the bidirectional link), there is no need to perform backhaul processing on the IP path, therefore, only one The fault detection of the bidirectional link to be detected is completed in the session, thereby reducing the number of interactions between the two routing devices and saving interaction costs.
  • FIG. 5 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure.
  • the routing device in this embodiment may include a transmitter 51, a receiver 52, and a processor 53.
  • the transmitter 51 is configured to send, to the second routing device, a link identifier that is used to identify the bidirectional link to be detected, and a first descriptor that is allocated by the routing device to the bidirectional link to be detected, so that the Determining, by the second routing device, the bidirectional link to be detected according to the link identifier, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, where the second a descriptor is a descriptor allocated by the second routing device to the bidirectional link to be detected;
  • a receiver 52 is configured to connect Receiving, by the second routing device, the first BFD packet 53 sent by the to-be-detected bidirectional link according to the first association, the first BFD packet includes the first descriptor and
  • the routing device ie, the routing device and the second routing device at both ends of the bidirectional link to be detected can establish the association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor. Therefore, the routing device and the second routing device can use the established association relationship to transmit the BFD packets in the two directions, that is, the first BFD packet and the second BFD packet, by using the to-be-detected bidirectional link. Fault detection, no need to perform backhaul processing on the IP path.
  • the bidirectional link to be detected may include, but is not limited to, a Label Switched Path in a Traffic Engineering (TE) tunnel established by a Resource Resert Protocol (RSVP).
  • TE Traffic Engineering
  • RSVP Resource Resert Protocol
  • LSP LSP
  • LSP LSP
  • PW Pseudo Wire
  • LDP Label Distribution Protocol
  • the to-be-detected bidirectional link may include a first link from the first routing device to the second routing device, and the second route The second link of the device to the first routing device.
  • the identifier of the to-be-detected bidirectional link may be the identifier of the first link or the identifier of the second link.
  • the identifier of the bidirectional link to be detected may be an identifier of the second link.
  • the first routing device (for example, the Master, etc.) communicates with the second routing device (for example, an AP, etc.) through the control channel to jointly complete the packet forwarding process that is completely controlled by the switch/router, thereby implementing data forwarding and Separation of routing control.
  • the control and forwarding are separated.
  • the transmitter 51 may specifically send the link identifier and the first descriptor to the second routing device by using a control channel between the routing device and the second routing device.
  • the receiver 52 may further receive that the second routing device sends by using a control channel between the routing device and the second routing device. Said second descriptor, and transmitting said second descriptor to said processor 53.
  • the sending device 51 may specifically send, by the routing device, the second routing device to the second routing device by using the to-be-detected bidirectional link.
  • the link identifier and the first descriptor may specifically send, by the routing device, the second routing device to the second routing device by using the to-be-detected bidirectional link.
  • the routing device sends, by using a transmitter, a link identifier for identifying the bidirectional link to be detected and a first descriptor allocated by the routing device to the bidirectional link to be detected, to the second routing device, so that Determining, by the second routing device, the bidirectional link to be detected according to the link identifier, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor,
  • the second descriptor is a descriptor allocated by the second routing device to the to-be-detected bidirectional link, and the receiver receives the second routing device by the receiver according to the first association relationship, by using the to-be-detected two-way chain.
  • first BFD packet sent by the path, where the first BFD packet includes the first descriptor and the second descriptor, so that the processor can establish the bidirectional link to be detected, and the first description And a second association relationship of the second descriptor, and sending, by the sender, the second BF to the second routing device by using the to-be-detected bidirectional link according to the second association relationship
  • the D packet is fault-detected, and the second BFD packet includes the first descriptor and the second descriptor, and the routing device at both ends of the bidirectional link to be detected can establish the bidirectional link to be detected.
  • the association relationship between the first descriptor and the second descriptor therefore, there is no need to perform backhaul processing on the IP path, and it can be avoided if the IP path appears in the prior art because the backhaul is processed in the IP path. If the fault occurs, the detection result of BFD is still the fault of the bidirectional link to be detected, which improves the reliability of fault detection.
  • the bidirectional link since the BFD packets in both directions can pass from one routing device to another routing device through the bidirectional link to be detected (ie, the bidirectional link), there is no need to perform backhaul processing on the IP path, therefore, only one The fault detection of the bidirectional link to be detected is completed in the session, thereby reducing the number of interactions between the two routing devices and saving interaction costs.
  • FIG. 6 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure, as shown in FIG.
  • the routing device of this embodiment may include a receiver 61, a processor 62, and a transmitter 63.
  • the receiver 61 is configured to receive, by the first routing device, a link identifier that is used to identify the bidirectional link to be detected, and a first descriptor that is allocated by the first routing device to the to-be-detected bidirectional link, and Transmitting the link identifier and the first descriptor to the processor 62;
  • the processor 62 configured to determine the to-be-detected bidirectional link according to the link identifier, and establish the to-be-detected two-way chain a first association relationship between the first descriptor and the second descriptor, and transmitting the first association relationship to the transmitter 63, where the second descriptor is that the routing device is the two-way to be detected a descriptor for the link allocation, the transmitter 63, configured to send, by
  • Second BFD packet sent by the road includes the first descriptor and the second descriptor, where the second association relationship is the to-be-detected bidirectional link established by the first routing device, and the A descriptor and an association relationship of the second descriptor.
  • the routing device ie, the first routing device and the routing device at both ends of the bidirectional link to be detected can establish the association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor. Therefore, the first routing device and the routing device can use the established association relationship to transmit the BFD packets in the two directions, that is, the first BFD packet and the second BFD packet, by using the to-be-detected bidirectional link. Fault detection, no need to perform backhaul processing on the IP path.
  • the bidirectional link to be detected may include but is not limited to a resource reservation protocol.
  • LSP Recycled Switching Path
  • TE Traffic Engineering
  • LSP Pseudo-based Label Distribution Protocol
  • RSVP Resource ReSerVation Protocol
  • the to-be-detected bidirectional link may include a first link from the first routing device to the second routing device, and the second route The second link of the device to the first routing device.
  • the identifier of the to-be-detected bidirectional link may be the identifier of the first link or the identifier of the second link.
  • the identifier of the link may be the identifier of the second link.
  • the first routing device (for example, the Master, etc.) communicates with the second routing device (for example, an AP, etc.) through the control channel to jointly complete the packet forwarding process that is completely controlled by the switch/router, thereby implementing data forwarding and Separation of routing control.
  • the transmitter 63 may further perform control between the first routing device and the routing device for a centralized system that separates control and forwarding. Channel, sending the second descriptor to the first routing device.
  • the routing device receives, by the receiver, a link identifier that is sent by the first routing device to identify the bidirectional link to be detected, and a first descriptor that is allocated by the first routing device to the to-be-detected bidirectional link. Determining, by the processor, the bidirectional link to be detected according to the link identifier, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, where The second descriptor is a descriptor allocated by the routing device to the to-be-detected bidirectional link, and the sender sends the first routing device to the first routing device by using the to-be-detected bidirectional link according to the first association relationship.
  • the association relationship between the first descriptor and the second descriptor therefore, there is no need to perform backhaul processing on the IP path, and it is possible to avoid the failure of the IP path caused by the backhaul being processed in the IP path in the prior art.
  • the detection result of the BFD is still a problem that the bidirectional link to be detected is faulty, thereby improving the reliability of the fault detection.
  • the bidirectional link since the BFD packets in both directions can pass from one routing device to another routing device through the bidirectional link to be detected (ie, the bidirectional link), there is no need to perform backhaul processing on the IP path, therefore, only one The fault detection of the bidirectional link to be detected is completed in the session, thereby reducing the number of interactions between the two routing devices and saving interaction costs.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.

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)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiments of the application provide a method and routing device for BFD session establishment. On one hand, in the embodiments of the application, a first routing device sends a link identifier for identifying the bidirectional link to be detected and a first descriptor assigned by the first routing device for the bidirectional link to be detected to a second routing device, thereby enabling the second routing device to determine the bidirectional link to be detected according to the link identifier, and to create a first relationship of the bidirectional link to be detected, the first descriptor and a second descriptor, wherein the second descriptor is the descriptor assigned by the second routing device for the bidirectional link to be detected; the first routing device further receives a first BFD message sent by the second routing device through the bidirectional link to be detected according the first relationship, wherein the first BFD message comprises the first descriptor and the second descriptor, thereby enabling the first routing device to create a second relationship of the bidirectional link to be detected, the first descriptor and the second descriptor.

Description

BFD会话建立的方法及路由设备  BFD session establishment method and routing device
技术领域 Technical field
本申请涉及检测技术,尤其涉及双向转发检测( Bidirectional Forwarding Detection, 简称 BFD )会话建立的方法及路由设备。 背景技术  The present invention relates to a detection technology, and in particular, to a Bidirectional Forwarding Detection (BFD) session establishment method and a routing device. Background technique
为了快速检测网络故障, 需要进行双向转发检测 ( Bidirectional Forwarding Detection, 简称 BFD ) , 检测到双向链路发生故障时, 可以及 时触发业务路径切换, 从而达到保护业务的目的。 在动态 BFD实现双向链路 故障检测中, 一个路由设备可以通过待检测双向链路(即双向链路) 向另一 个路由设备发送 BFD报文,另一路由设备则在相应的 IP路径进行回程处理, 即将 BFD报文封装在 IP报文中通过 IP路径返回给该路由设备。  In order to detect network faults, you need to perform Bidirectional Forwarding Detection (BFD). When a fault occurs in the bidirectional link, the service path can be triggered at the same time to protect the service. In dynamic BFD to implement bidirectional link fault detection, one routing device can send BFD packets to another routing device through the bidirectional link to be detected (ie, the bidirectional link), and another routing device performs backhaul processing on the corresponding IP path. The BFD packet is encapsulated in the IP packet and returned to the routing device through the IP path.
然而, 由于回程是在 IP路径进行处理的, 因此,如果 IP路径出现故障, 则 BFD的检测结果仍然是待检测双向链路出现故障,导致了故障检测的可靠 性的减低。 发明内容  However, since the backhaul is processed in the IP path, if the IP path fails, the detection result of the BFD is still a failure of the bidirectional link to be detected, resulting in a decrease in the reliability of the fault detection. Summary of the invention
本申请的多个方面提供 BFD会话建立的方法及路由设备,用以提高故障 检测的可靠性。  Aspects of the present application provide a method for establishing a BFD session and a routing device to improve the reliability of fault detection.
本申请的一方面, 提供一种 BFD会话建立的方法, 包括:  An aspect of the present application provides a method for establishing a BFD session, including:
第一路由设备向第二路由设备发送用于标识待检测双向链路的链路标识 和所述第一路由设备为所述待检测双向链路分配的第一描述符, 以使得所述 第二路由设备根据所述链路标识确定所述待检测双向链路, 以及建立所述待 检测双向链路、 所述第一描述符以及第二描述符的第一关联关系, 所述第二 描述符是所述第二路由设备为所述待检测双向链路分配的描述符;  The first routing device sends, to the second routing device, a link identifier for identifying the bidirectional link to be detected and a first descriptor for the first routing device to allocate the bidirectional link to be detected, so that the second Determining, by the routing device, the bidirectional link to be detected according to the link identifier, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, the second descriptor Is a descriptor allocated by the second routing device to the to-be-detected bidirectional link;
所述第一路由设备接收所述第二路由设备根据所述第一关联关系, 通过 所述待检测双向链路发送的第一 BFD报文, 所述第一 BFD报文中包含所述 第一描述符和所述第二描述符; 所述第一路由设备建立所述待检测双向链路、 所述第一描述符以及所述 第二描述符的第二关联关系, 以及根据所述第二关联关系, 通过所述待检测 双向链路向所述第二路由设备发送第二 BFD报文进行故障检测, 所述第二 BFD报文中包含所述第一描述符和所述第二描述符。 Receiving, by the first routing device, the first BFD packet sent by the second routing device by using the to-be-detected bidirectional link according to the first association, where the first BFD packet includes the first a descriptor and the second descriptor; The first routing device establishes a second association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, and passes the to-be-detected two-way chain according to the second association relationship. The second BFD packet is sent to the second routing device for fault detection, and the second BFD packet includes the first descriptor and the second descriptor.
在第一种可能的实现方式中, 所述待检测双向链路包括所述第一路由设 备到所述第二路由设备的第一链路, 以及所述第二路由设备到所述第一路由 设备的第二链路;  In a first possible implementation, the to-be-detected bidirectional link includes a first link from the first routing device to the second routing device, and the second routing device to the first route The second link of the device;
当所述第一链路的标识与所述第二链路的标识相同时, 所述待检测双向 链路的标识为所述第一链路的标识或所述第二链路的标识。  When the identifier of the first link is the same as the identifier of the second link, the identifier of the to-be-detected bidirectional link is an identifier of the first link or an identifier of the second link.
结合第一种可能的实现方式中, 在第二种可能的实现方式中, 当所述第 一链路的标识与所述第二链路的标识不同时, 所述待检测双向链路的标识为 所述第二链路的标识。  With reference to the first possible implementation manner, in a second possible implementation manner, when the identifier of the first link is different from the identifier of the second link, the identifier of the bidirectional link to be detected is The identifier of the second link.
结合第一种或第二种可能的实现方式中, 在第三种可能的实现方式中, 所述第一路由设备向第二路由设备发送用于标识待检测双向链路的链路标识 和所述第一路由设备为所述待检测双向链路分配的第一描述符, 包括:  In combination with the first or second possible implementation manner, in a third possible implementation manner, the first routing device sends, to the second routing device, a link identifier and a location for identifying the bidirectional link to be detected. The first descriptor allocated by the first routing device to the to-be-detected bidirectional link includes:
所述第一路由设备通过所述第一路由设备与所述第二路由设备之间的控 制通道, 向所述第二路由设备发送所述链路标识和所述第一描述符。  The first routing device sends the link identifier and the first descriptor to the second routing device by using a control channel between the first routing device and the second routing device.
结合第一种、 第二种或第三种可能的实现方式中, 在第四种可能的实现 方式中, 所述第一路由设备接收所述第二路由设备根据所述第一关联关系, 通过所述待检测双向链路发送的第一 BFD报文之前, 还包括:  In combination with the first, second, or third possible implementation manner, in a fourth possible implementation, the first routing device receives the second routing device according to the first association relationship, Before the first BFD packet sent by the bidirectional link to be detected, the method further includes:
所述第一路由设备接收所述第二路由设备通过所述第一路由设备与所述 第二路由设备之间的控制通道, 发送的所述第二描述符。  The first routing device receives the second descriptor sent by the second routing device by using a control channel between the first routing device and the second routing device.
结合第一种、 第二种、 第三种或第四种可能的实现方式中, 在第五种可 能的实现方式中, 所述第一路由设备向第二路由设备发送用于标识待检测双 向链路的链路标识和所述第一路由设备为所述待检测双向链路分配的第一描 述符, 包括:  In combination with the first, second, third, or fourth possible implementation manners, in a fifth possible implementation manner, the first routing device sends, to the second routing device, the identifier that is to be detected. a link identifier of the link and a first descriptor allocated by the first routing device to the to-be-detected bidirectional link, including:
所述第一路由设备通过所述待检测双向链路, 向所述第二路由设备发送 所述链路标识和所述第一描述符。  The first routing device sends the link identifier and the first descriptor to the second routing device by using the bidirectional link to be detected.
本申请的另一方面, 提供一种 BFD会话建立的方法, 包括:  Another aspect of the present application provides a method for establishing a BFD session, including:
第二路由设备接收第一路由设备发送的用于标识待检测双向链路的链路 标识和所述第一路由设备为所述待检测双向链路分配的第一描述符; 所述第二路由设备根据所述链路标识确定所述待检测双向链路, 以及建 立所述待检测双向链路、 所述第一描述符以及第二描述符的第一关联关系, 所述第二描述符是所述第二路由设备为所述待检测双向链路分配的描述符; 所述第二路由设备根据所述第一关联关系, 通过所述待检测双向链路向 所述第一路由设备发送第一 BFD报文进行故障检测, 所述第一 BFD报文中 包含所述第一描述符和所述第二描述符; The second routing device receives the link sent by the first routing device to identify the bidirectional link to be detected. Determining, by the first routing device, a first descriptor allocated to the to-be-detected bidirectional link; determining, by the second routing device, the bidirectional link to be detected according to the link identifier, and establishing the to-be-detected a first association relationship between the bidirectional link, the first descriptor, and the second descriptor, where the second descriptor is a descriptor allocated by the second routing device to the bidirectional link to be detected; The second routing device sends a first BFD packet to the first routing device to detect the fault according to the first association relationship, where the first BFD packet includes the first description. And the second descriptor;
所述第二路由设备接收所述第一路由设备根据第二关联关系, 通过所述 待检测双向链路发送的第二 BFD报文, 所述第二 BFD报文中包含所述第一 描述符和所述第二描述符, 所述第二关联关系为所述第一路由设备建立的所 述待检测双向链路、 所述第一描述符以及所述第二描述符的关联关系。  Receiving, by the second routing device, the second BFD packet sent by the first routing device by using the to-be-detected bidirectional link according to the second association, where the second BFD packet includes the first descriptor And the second descriptor, the second association relationship is an association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor established by the first routing device.
在第一种可能的实现方式中, 所述待检测双向链路包括所述第一路由设 备到所述第二路由设备的第一链路, 以及所述第二路由设备到所述第一路由 设备的第二链路;  In a first possible implementation, the to-be-detected bidirectional link includes a first link from the first routing device to the second routing device, and the second routing device to the first route The second link of the device;
当所述第一链路的标识与所述第二链路的标识相同时, 所述待检测双向 链路的标识为所述第一链路的标识或所述第二链路的标识。  When the identifier of the first link is the same as the identifier of the second link, the identifier of the to-be-detected bidirectional link is an identifier of the first link or an identifier of the second link.
结合第一种可能的实现方式中, 在第二种可能的实现方式中, 当所述第 一链路的标识与所述第二链路的标识不同时, 所述待检测双向链路的标识为 所述第二链路的标识。  With reference to the first possible implementation manner, in a second possible implementation manner, when the identifier of the first link is different from the identifier of the second link, the identifier of the bidirectional link to be detected is The identifier of the second link.
在第一种或第二种可能的实现方式中, 第三种可能的实现方式中, 所述 第二路由设备根据所述第一关联关系, 通过所述待检测双向链路向所述第一 路由设备发送第一 BFD报文进行故障检测之前, 还包括:  In a third or a second possible implementation manner, in a third possible implementation manner, the second routing device, according to the first association, passes the to-be-detected bidirectional link to the first Before the routing device sends the first BFD packet for fault detection, it also includes:
所述第二路由设备通过所述第一路由设备与所述第二路由设备之间的控 制通道, 向所述第一路由设备发送所述第二描述符。  The second routing device sends the second descriptor to the first routing device by using a control channel between the first routing device and the second routing device.
本申请的另一方面, 提供一种路由设备, 包括:  Another aspect of the present application provides a routing device, including:
发送单元, 用于向第二路由设备发送用于标识待检测双向链路的链路标 识和所述路由设备为所述待检测双向链路分配的第一描述符, 以使得所述第 二路由设备根据所述链路标识确定所述待检测双向链路, 以及建立所述待检 测双向链路、 所述第一描述符以及第二描述符的第一关联关系, 所述第二描 述符是所述第二路由设备为所述待检测双向链路分配的描述符; 接收单元, 用于接收所述第二路由设备根据所述第一关联关系, 通过所 述待检测双向链路发送的第一 BFD报文, 所述第一 BFD报文中包含所述第 一描述符和所述第二描述符; a sending unit, configured to send, to the second routing device, a link identifier used to identify the bidirectional link to be detected and a first descriptor allocated by the routing device to the to-be-detected bidirectional link, so that the second route Determining, according to the link identifier, the bidirectional link to be detected, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, where the second descriptor is Descriptor allocated by the second routing device to the bidirectional link to be detected; a receiving unit, configured to receive, by the second routing device, the first BFD packet that is sent by using the to-be-detected bidirectional link according to the first association, where the first BFD packet includes the first description And the second descriptor;
所述关联单元, 用于建立所述待检测双向链路、 所述第一描述符以及所 述第二描述符的第二关联关系, 以及将所述第二关联关系传输给所述发送单 元;  The association unit is configured to establish a second association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, and transmit the second association relationship to the sending unit;
所述发送单元, 还用于根据所述第二关联关系, 通过所述待检测双向链 路向所述第二路由设备发送第二 BFD报文进行故障检测, 所述第二 BFD报 文中包含所述第一描述符和所述第二描述符。  The sending unit is further configured to: send, according to the second association relationship, the second BFD packet to the second routing device by using the to-be-detected bidirectional link to perform fault detection, where the second BFD packet includes The first descriptor and the second descriptor.
在第一种可能的实现方式中, 所述待检测双向链路包括所述路由设备到 所述第二路由设备的第一链路, 以及所述第二路由设备到所述路由设备的第 二链路;  In a first possible implementation manner, the to-be-detected bidirectional link includes a first link of the routing device to the second routing device, and a second routing device of the second routing device to the routing device. Link
当所述第一链路的标识与所述第二链路的标识相同时, 所述待检测双向 链路的标识为所述第一链路的标识或所述第二链路的标识。  When the identifier of the first link is the same as the identifier of the second link, the identifier of the to-be-detected bidirectional link is an identifier of the first link or an identifier of the second link.
结合第一种可能的实现方式中, 在第二种可能的实现方式中, 当所述第 一链路的标识与所述第二链路的标识不同时, 所述待检测双向链路的标识为 所述第二链路的标识。  With reference to the first possible implementation manner, in a second possible implementation manner, when the identifier of the first link is different from the identifier of the second link, the identifier of the bidirectional link to be detected is The identifier of the second link.
结合第一种或第二种可能的实现方式中, 在第三种可能的实现方式中, 所述发送单元具体用于  In combination with the first or second possible implementation manner, in a third possible implementation, the sending unit is specifically used to
通过所述路由设备与所述第二路由设备之间的控制通道, 向所述第二路 由设备发送所述链路标识和所述第一描述符。  And transmitting, by the control channel between the routing device and the second routing device, the link identifier and the first descriptor to the second routing device.
结合第一种、 第二种或第三种可能的实现方式中, 在第四种可能的实现 方式中, 所述接收单元还用于  In combination with the first, second or third possible implementation, in a fourth possible implementation, the receiving unit is further used
接收所述第二路由设备通过所述路由设备与所述第二路由设备之间的控 制通道, 发送的所述第二描述符, 以及将所述第二描述符传输给所述关联单 元。  Receiving, by the second routing device, the second descriptor sent by the control channel between the routing device and the second routing device, and transmitting the second descriptor to the associated unit.
结合第一种、 第二种、 第三种或第四种可能的实现方式中, 在第五种可 能的实现方式中, 所述发送单元具体用于  In combination with the first, second, third, or fourth possible implementation manners, in a fifth possible implementation, the sending unit is specifically configured to be used.
所述路由设备通过所述待检测双向链路, 向所述第二路由设备发送所述 链路标识和所述第一描述符。 本申请的另一方面, 提供一种路由设备, 包括: The routing device sends the link identifier and the first descriptor to the second routing device by using the bidirectional link to be detected. Another aspect of the present application provides a routing device, including:
接收单元, 用于接收第一路由设备发送的用于标识待检测双向链路的链 路标识和所述第一路由设备为所述待检测双向链路分配的第一描述符, 以及 将所述链路标识和所述第一描述符传输给关联单元;  a receiving unit, configured to receive a link identifier that is sent by the first routing device to identify the bidirectional link to be detected, and a first descriptor that is allocated by the first routing device to the bidirectional link to be detected, and the Transmitting the link identifier and the first descriptor to the associated unit;
所述关联单元, 用于根据所述链路标识确定所述待检测双向链路, 以及 建立所述待检测双向链路、所述第一描述符以及第二描述符的第一关联关系, 以及将所述第一关联关系传输给发送单元, 所述第二描述符是所述路由设备 为所述待检测双向链路分配的描述符;  The association unit is configured to determine the to-be-detected bidirectional link according to the link identifier, and establish a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, and Transmitting the first association relationship to a sending unit, where the second descriptor is a descriptor allocated by the routing device to the to-be-detected bidirectional link;
所述发送单元, 用于根据所述第一关联关系, 通过所述待检测双向链路 向所述第一路由设备发送第一 BFD报文进行故障检测, 所述第一 BFD报文 中包含所述第一描述符和所述第二描述符;  The sending unit is configured to send, by using the to-be-detected bidirectional link, the first BFD packet to the first routing device to perform fault detection according to the first association relationship, where the first BFD packet includes Describe the first descriptor and the second descriptor;
所述接收单元, 还用于接收所述第一路由设备根据第二关联关系, 通过 所述待检测双向链路发送的第二 BFD报文, 所述第二 BFD报文中包含所述 第一描述符和所述第二描述符, 所述第二关联关系为所述第一路由设备建立 的所述待检测双向链路、 所述第一描述符以及所述第二描述符的关联关系。  The receiving unit is further configured to receive, by the first routing device, the second BFD packet that is sent by using the to-be-detected bidirectional link according to the second association, where the second BFD packet includes the first a descriptor and the second descriptor, where the second association relationship is an association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor established by the first routing device.
在第一种可能的实现方式中, 所述待检测双向链路包括所述第一路由设 备到所述路由设备的第一链路, 以及所述路由设备到所述第一路由设备的第 二链路;  In a first possible implementation, the to-be-detected bidirectional link includes a first link of the first routing device to the routing device, and a second of the routing device to the first routing device. Link
当所述第一链路的标识与所述第二链路的标识相同时, 所述待检测双向 链路的标识为所述第一链路的标识或所述第二链路的标识。  When the identifier of the first link is the same as the identifier of the second link, the identifier of the to-be-detected bidirectional link is an identifier of the first link or an identifier of the second link.
结合第一种可能的实现方式中, 在第二种可能的实现方式中, 当所述第 一链路的标识与所述第二链路的标识不同时, 所述待检测双向链路的标识为 所述第二链路的标识。  With reference to the first possible implementation manner, in a second possible implementation manner, when the identifier of the first link is different from the identifier of the second link, the identifier of the bidirectional link to be detected is The identifier of the second link.
结合第一种或第二种可能的实现方式中, 在第三种可能的实现方式中, 所述发送单元还用于  In combination with the first or second possible implementation manner, in a third possible implementation manner, the sending unit is further used to
通过所述第一路由设备与所述路由设备之间的控制通道, 向所述第一路 由设备发送所述第二描述符。  And transmitting, by the control channel between the first routing device and the routing device, the second descriptor to the first routing device.
本申请的另一方面, 提供一种路由设备, 包括:  Another aspect of the present application provides a routing device, including:
发送器, 用于向第二路由设备发送用于标识待检测双向链路的链路标识 和所述路由设备为所述待检测双向链路分配的第一描述符, 以使得所述第二 路由设备根据所述链路标识确定所述待检测双向链路 , 以及建立所述待检测 双向链路、 所述第一描述符以及第二描述符的第一关联关系, 所述第二描述 符是所述第二路由设备为所述待检测双向链路分配的描述符; a transmitter, configured to send, to the second routing device, a link identifier used to identify the bidirectional link to be detected and a first descriptor allocated by the routing device to the to-be-detected bidirectional link, so that the second Determining, by the routing device, the bidirectional link to be detected according to the link identifier, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, the second descriptor Is a descriptor allocated by the second routing device to the to-be-detected bidirectional link;
接收器, 用于接收所述第二路由设备根据所述第一关联关系, 通过所述 待检测双向链路发送的第一 BFD报文, 所述第一 BFD报文中包含所述第一 描述符和所述第二描述符;  a receiver, configured to receive, by the second routing device, the first BFD packet sent by the to-be-detected bidirectional link according to the first association, where the first BFD packet includes the first description And the second descriptor;
所述处理器, 用于建立所述待检测双向链路、 所述第一描述符以及所述 第二描述符的第二关联关系, 以及将所述第二关联关系传输给所述发送器; 所述发送器, 还用于根据所述第二关联关系, 通过所述待检测双向链路 向所述第二路由设备发送第二 BFD报文进行故障检测, 所述第二 BFD报文 中包含所述第一描述符和所述第二描述符。  The processor is configured to establish a second association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, and transmit the second association relationship to the transmitter; The transmitter is further configured to send, by using the to-be-detected bidirectional link, the second BFD packet to the second routing device to perform fault detection according to the second association, where the second BFD packet includes The first descriptor and the second descriptor.
在第一种可能的实现方式中, 所述待检测双向链路包括所述路由设备到 所述第二路由设备的第一链路, 以及所述第二路由设备到所述路由设备的第 二链路;  In a first possible implementation manner, the to-be-detected bidirectional link includes a first link of the routing device to the second routing device, and a second routing device of the second routing device to the routing device. Link
当所述第一链路的标识与所述第二链路的标识相同时, 所述待检测双向 链路的标识为所述第一链路的标识或所述第二链路的标识。  When the identifier of the first link is the same as the identifier of the second link, the identifier of the to-be-detected bidirectional link is an identifier of the first link or an identifier of the second link.
结合第一种可能的实现方式中, 在第二种可能的实现方式中, 当所述第 一链路的标识与所述第二链路的标识不同时, 所述待检测双向链路的标识为 所述第二链路的标识。  With reference to the first possible implementation manner, in a second possible implementation manner, when the identifier of the first link is different from the identifier of the second link, the identifier of the bidirectional link to be detected is The identifier of the second link.
结合第一种或第二种可能的实现方式中, 在第三种可能的实现方式中, 所述发送器具体用于  In combination with the first or second possible implementation manner, in a third possible implementation manner, the transmitter is specifically used to
通过所述路由设备与所述第二路由设备之间的控制通道, 向所述第二路 由设备发送所述链路标识和所述第一描述符。  And transmitting, by the control channel between the routing device and the second routing device, the link identifier and the first descriptor to the second routing device.
结合第一种、 第二种或第三种可能的实现方式中, 在第四种可能的实现 方式中, 所述接收器还用于  In combination with the first, second or third possible implementation, in a fourth possible implementation, the receiver is further used
接收所述第二路由设备通过所述路由设备与所述第二路由设备之间的控 制通道,发送的所述第二描述符,以及将所述第二描述符传输给所述处理器。  Receiving, by the second routing device, the second descriptor sent by the control channel between the routing device and the second routing device, and transmitting the second descriptor to the processor.
结合第一种、 第二种、 第三种或第四种可能的实现方式中, 在第五种可 能的实现方式中, 所述发送器具体用于  In combination with the first, second, third or fourth possible implementation manner, in a fifth possible implementation, the transmitter is specifically used
所述路由设备通过所述待检测双向链路, 向所述第二路由设备发送所述 链路标识和所述第一描述符。 Transmitting, by the routing device, the two-way link to be detected, to the second routing device A link identifier and the first descriptor.
本申请的另一方面, 提供一种路由设备, 包括:  Another aspect of the present application provides a routing device, including:
接收器, 用于接收第一路由设备发送的用于标识待检测双向链路的链路 标识和所述第一路由设备为所述待检测双向链路分配的第一描述符, 以及将 所述链路标识和所述第一描述符传输给处理器;  a receiver, configured to receive a link identifier sent by the first routing device to identify the bidirectional link to be detected, and a first descriptor that is allocated by the first routing device to the bidirectional link to be detected, and Transmitting the link identifier and the first descriptor to the processor;
所述处理器, 用于根据所述链路标识确定所述待检测双向链路, 以及建 立所述待检测双向链路、 所述第一描述符以及第二描述符的第一关联关系, 以及将所述第一关联关系传输给发送器, 所述第二描述符是所述路由设备为 所述待检测双向链路分配的描述符;  The processor is configured to determine the to-be-detected bidirectional link according to the link identifier, and establish a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, and Transmitting the first association relationship to a transmitter, where the second descriptor is a descriptor allocated by the routing device to the to-be-detected bidirectional link;
所述发送器, 用于根据所述第一关联关系, 通过所述待检测双向链路向 所述第一路由设备发送第一 BFD报文进行故障检测, 所述第一 BFD报文中 包含所述第一描述符和所述第二描述符;  The transmitter is configured to send, by using the to-be-detected bidirectional link, the first BFD packet to the first routing device to perform fault detection according to the first association relationship, where the first BFD packet includes Describe the first descriptor and the second descriptor;
所述接收器, 还用于接收所述第一路由设备根据第二关联关系, 通过所 述待检测双向链路发送的第二 BFD报文, 所述第二 BFD报文中包含所述第 一描述符和所述第二描述符, 所述第二关联关系为所述第一路由设备建立的 所述待检测双向链路、 所述第一描述符以及所述第二描述符的关联关系。  The receiver is further configured to receive, by the first routing device, the second BFD packet that is sent by using the to-be-detected bidirectional link according to the second association, where the second BFD packet includes the first a descriptor and the second descriptor, where the second association relationship is an association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor established by the first routing device.
在第一种可能的实现方式中, 所述待检测双向链路包括所述第一路由设 备到所述路由设备的第一链路, 以及所述路由设备到所述第一路由设备的第 二链路;  In a first possible implementation, the to-be-detected bidirectional link includes a first link of the first routing device to the routing device, and a second of the routing device to the first routing device. Link
当所述第一链路的标识与所述第二链路的标识相同时, 所述待检测双向 链路的标识为所述第一链路的标识或所述第二链路的标识。  When the identifier of the first link is the same as the identifier of the second link, the identifier of the to-be-detected bidirectional link is an identifier of the first link or an identifier of the second link.
结合第一种可能的实现方式中, 在第二种可能的实现方式中, 当所述第 一链路的标识与所述第二链路的标识不同时, 所述待检测双向链路的标识为 所述第二链路的标识。  With reference to the first possible implementation manner, in a second possible implementation manner, when the identifier of the first link is different from the identifier of the second link, the identifier of the bidirectional link to be detected is The identifier of the second link.
结合第一种或第二种可能的实现方式中, 在第三种可能的实现方式中, 所述发送器还用于  In combination with the first or second possible implementation, in a third possible implementation, the transmitter is further used
通过所述第一路由设备与所述路由设备之间的控制通道, 向所述第一路 由设备发送所述第二描述符。  And transmitting, by the control channel between the first routing device and the routing device, the second descriptor to the first routing device.
由上述技术方案可知, 一方面, 本申请实施例通过第一路由设备向第二 路由设备发送用于标识待检测双向链路的链路标识和所述第一路由设备为所 述待检测双向链路分配的第一描述符, 以使得所述第二路由设备根据所述链 路标识确定所述待检测双向链路, 以及建立所述待检测双向链路、 所述第一 描述符以及第二描述符的第一关联关系, 所述第二描述符是所述第二路由设 备为所述待检测双向链路分配的描述符, 所述第一路由设备进而接收所述第 二路由设备根据所述第一关联关系, 通过所述待检测双向链路发送的第一 BFD报文, 所述第一 BFD报文中包含所述第一描述符和所述第二描述符, 使得所述第一路由设备能够建立所述待检测双向链路、 所述第一描述符以及 所述第二描述符的第二关联关系, 以及根据所述第二关联关系, 通过所述待 检测双向链路向所述第二路由设备发送第二 BFD报文进行故障检测,所述第 二 BFD报文中包含所述第一描述符和所述第二描述符,由于待检测双向链路 两端的路由设备均能够建立所述待检测双向链路、 所述第一描述符以及所述 第二描述符的关联关系, 因此, 无需在 IP路径进行回程处理, 能够避免现有 技术中由于回程是在 IP路径进行处理的而导致的如果 IP路径出现故障, 则 BFD的检测结果仍然是待检测双向链路出现故障的问题, 从而提高了故障检 测的可靠性。 According to the foregoing technical solution, on the one hand, the first routing device sends a link identifier for identifying the bidirectional link to be detected and the first routing device to the second routing device by using the first routing device. Determining a first descriptor for detecting a bidirectional link allocation, so that the second routing device determines the to-be-detected bidirectional link according to the link identifier, and establishing the to-be-detected bidirectional link, the first a first association relationship between the descriptor and the second descriptor, the second descriptor is a descriptor allocated by the second routing device to the bidirectional link to be detected, and the first routing device further receives the first According to the first association relationship, the second routing device includes the first descriptor and the second descriptor by using the first BFD packet sent by the to-be-detected bidirectional link. Enabling the first routing device to establish the second association relationship of the to-be-detected bidirectional link, the first descriptor, and the second descriptor, and the to-be-detected according to the second association relationship The bidirectional link sends a second BFD packet to the second routing device for fault detection, where the second BFD packet includes the first descriptor and the second descriptor, End routing The device can establish the association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor. Therefore, it is not necessary to perform backhaul processing on the IP path, so that the backhaul is avoided in the prior art. If the path of the IP address is faulty, the detection result of the BFD is still the fault of the bidirectional link to be detected, which improves the reliability of fault detection.
由上述技术方案可知, 另一方面, 本申请实施例通过第二路由设备接收 第一路由设备发送的用于标识待检测双向链路的链路标识和所述第一路由设 备为所述待检测双向链路分配的第一描述符, 并根据所述链路标识确定所述 待检测双向链路, 以及建立所述待检测双向链路、 所述第一描述符以及第二 描述符的第一关联关系, 所述第二描述符是所述第二路由设备为所述待检测 双向链路分配的描述符, 所述第二路由设备进而根据所述第一关联关系, 通 过所述待检测双向链路向所述第一路由设备发送第一 BFD报文进行故障检 测, 所述第一 BFD报文中包含所述第一描述符和所述第二描述符, 使得所述 第二路由设备能够接收所述第一路由设备根据第二关联关系, 通过所述待检 测双向链路发送的第二 BFD报文, 所述第二 BFD报文中包含所述第一描述 符和所述第二描述符, 所述第二关联关系为所述第一路由设备建立的所述待 检测双向链路、 所述第一描述符以及所述第二描述符的关联关系, 由于待检 测双向链路两端的路由设备均能够建立所述待检测双向链路、 所述第一描述 符以及所述第二描述符的关联关系, 因此, 无需在 IP路径进行回程处理, 能 够避免现有技术中由于回程是在 IP路径进行处理的而导致的如果 IP路径出 现故障, 则 BFD的检测结果仍然是待检测双向链路出现故障的问题, 从而提 高了故障检测的可靠性。 附图说明 为了更清楚地说明本申请实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本申请的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 According to the foregoing technical solution, on the other hand, the second routing device receives, by the second routing device, the link identifier that is sent by the first routing device to identify the bidirectional link to be detected, and the first routing device is the to-be-detected. a first descriptor of the bidirectional link allocation, and determining the to-be-detected bidirectional link according to the link identifier, and establishing the first to-be-detected bidirectional link, the first descriptor, and the second descriptor The second descriptor is a descriptor allocated by the second routing device to the to-be-detected bidirectional link, and the second routing device further passes the to-be-detected two-way according to the first association relationship. The link sends the first BFD packet to the first routing device to perform fault detection, where the first BFD packet includes the first descriptor and the second descriptor, so that the second routing device can Receiving, by the first routing device, the second BFD packet sent by the to-be-detected bidirectional link according to the second association, where the second BFD packet includes the first descriptor and the second description The second association relationship is an association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor that is established by the first routing device, because both ends of the bidirectional link to be detected are The routing device can establish the association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor. Therefore, it is not necessary to perform backhaul processing on the IP path, so that the backhaul in the prior art can be avoided. IP path is processed if the IP path is out If the fault occurs, the detection result of the BFD is still a problem that the bidirectional link to be detected is faulty, thereby improving the reliability of the fault detection. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. The drawings are some embodiments of the present application, and those skilled in the art can obtain other drawings based on these drawings without any inventive labor.
图 1为本申请一实施例提供的 BFD会话建立的方法的流程示意图; 图 2为本申请另一实施例提供的 BFD会话建立的方法的流程示意图; 图 3为本申请另一实施例提供的路由设备的结构示意图;  FIG. 1 is a schematic flowchart of a method for establishing a BFD session according to an embodiment of the present disclosure; FIG. 2 is a schematic flowchart of a method for establishing a BFD session according to another embodiment of the present disclosure; Schematic diagram of the routing device;
图 4为本申请另一实施例提供的路由设备的结构示意图;  4 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure;
图 5为本申请另一实施例提供的路由设备的结构示意图;  FIG. 5 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure;
图 6为本申请另一实施例提供的路由设备的结构示意图。 具体实施方式 为使本申请实施例的目的、 技术方案和优点更加清楚, 下面将结合本申 请实施例中的附图, 对本申请实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本申请一部分实施例, 而不是全部的实施例。 基于 本申请中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本申请保护的范围。  FIG. 6 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure. The technical solutions in the embodiments of the present application are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present application. The embodiments are part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present invention.
另外, 本文中术语"和 /或", 仅仅是一种描述关联对象的关联关系, 表示 可以存在三种关系, 例如, A和 /或 B, 可以表示: 单独存在 A, 同时存在 A 和 B, 单独存在 B这三种情况。 另外, 本文中字符 T, 一般表示前后关联对 象是一种"或"的关系。  In addition, the term "and/or" in this context is merely an association describing the associated object, indicating that there may be three relationships, for example, A and / or B, which may indicate: A exists separately, and A and B exist simultaneously. There are three cases of B alone. In addition, the character T in this paper generally indicates that the contextual object is an "or" relationship.
图 1为本申请一实施例提供的 BFD会话建立的方法的流程示意图,如图 1所示。  FIG. 1 is a schematic flowchart of a method for establishing a BFD session according to an embodiment of the present disclosure, as shown in FIG. 1 .
101、第一路由设备向第二路由设备发送用于标识待检测双向链路的链路 标识和所述第一路由设备为所述待检测双向链路分配的第一描述符, 以使得 所述第二路由设备根据所述链路标识确定所述待检测双向链路, 以及建立所 述待检测双向链路、 所述第一描述符以及第二描述符的第一关联关系, 所述 第二描述符是所述第二路由设备为所述待检测双向链路分配的描述符。 The first routing device sends, to the second routing device, a link identifier for identifying the bidirectional link to be detected and a first descriptor that is allocated by the first routing device to the bidirectional link to be detected, so that Determining, by the second routing device, the bidirectional link to be detected according to the link identifier, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, The second descriptor is a descriptor allocated by the second routing device for the to-be-detected bidirectional link.
102、 所述第一路由设备接收所述第二路由设备根据所述第一关联关系, 通过所述待检测双向链路发送的第一 BFD报文, 所述第一 BFD报文中包含 所述第一描述符和所述第二描述符。  The first routing device receives the first BFD packet that is sent by the second routing device by using the to-be-detected bidirectional link according to the first association, where the first BFD packet includes the a first descriptor and the second descriptor.
103、所述第一路由设备建立所述待检测双向链路、所述第一描述符以及 所述第二描述符的第二关联关系, 以及根据所述第二关联关系, 通过所述待 检测双向链路向所述第二路由设备发送第二 BFD报文进行故障检测,所述第 二 BFD报文中包含所述第一描述符和所述第二描述符。  103. The first routing device establishes a second association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, and the to-be-detected according to the second association relationship. The bidirectional link sends a second BFD packet to the second routing device for fault detection, where the second BFD packet includes the first descriptor and the second descriptor.
至此, 由于待检测双向链路两端的路由设备(即第一路由设备和第二路 由设备) 均能够建立所述待检测双向链路、 所述第一描述符以及所述第二描 述符的关联关系, 因此, 第一路由设备和第二路由设备可以利用各自建立的 关联关系,通过所述待检测双向链路传递两个方向的 BFD报文(即第一 BFD 报文和第二 BFD报文) , 以进行故障检测, 无需在 IP路径进行回程处理。  At this point, the routing device (ie, the first routing device and the second routing device) at both ends of the bidirectional link to be detected can establish the association between the to-be-detected bidirectional link, the first descriptor, and the second descriptor. Therefore, the first routing device and the second routing device can use the established association relationship to transmit the BFD packets in the two directions, that is, the first BFD packet and the second BFD packet, by using the to-be-detected bidirectional link. ) for fault detection without the need for backhaul on the IP path.
其中, 所述待检测双向链路可以包括但不限于基于资源预留协议 ( Resource ReSerVation Protocol , RSVP ) 建立的流量工程 ( Traffic Engineering, TE )隧道( Tunnel )中的标签交换路径( Label Switched Path, LSP )、 基于标签分发协议 ( Label Distribution Protocol, LDP )建立的 LSP 或伪线路( Pseudo Wire, PW ) 。  The bidirectional link to be detected may include, but is not limited to, a Label Switched Path in a Traffic Engineering (TE) tunnel established by a Resource Resert Protocol (RSVP). LSP), LSP or Pseudo Wire (PW) based on Label Distribution Protocol (LDP).
可选地, 在本实施例的一个可能的实现方式中, 所述待检测双向链路可 以包括所述第一路由设备到所述第二路由设备的第一链路, 以及所述第二路 由设备到所述第一路由设备的第二链路。  Optionally, in a possible implementation manner of this embodiment, the to-be-detected bidirectional link may include a first link from the first routing device to the second routing device, and the second route The second link of the device to the first routing device.
当所述第一链路的标识与所述第二链路的标识相同时, 所述待检测双向 链路的标识则可以为所述第一链路的标识或所述第二链路的标识。  When the identifier of the first link is the same as the identifier of the second link, the identifier of the to-be-detected bidirectional link may be the identifier of the first link or the identifier of the second link. .
当所述第一链路的标识与所述第二链路的标识不同时, 所述待检测双向 链路的标识则可以为所述第二链路的标识。  When the identifier of the first link is different from the identifier of the second link, the identifier of the bidirectional link to be detected may be an identifier of the second link.
随着互联网的发展, 分布式系统无法更好的满足网络扩展性和管理上的 需求,因此,控制和转发分离的集中式系统应运而生,例如:开放流( OpenFlow ) 系统等。 第一路由设备 (例如, Master等)与第二路由设备 (例如, AP等) 之间通过控制通道进行通信, 共同完成原来完全由交换机 /路由器控制的报文 转发过程, 从而实现了数据转发和路由控制的分离。 With the development of the Internet, distributed systems cannot better meet the needs of network scalability and management. Therefore, centralized systems with separate control and forwarding emerge, such as the OpenFlow system. a first routing device (eg, Master, etc.) and a second routing device (eg, an AP, etc.) Communication between the control channels is performed to complete the packet forwarding process that is completely controlled by the switch/router, thereby realizing the separation of data forwarding and routing control.
可选地, 在本实施例的一个可能的实现方式中, 对于控制和转发分离的 集中式系统, 在 101 中, 所述第一路由设备具体可以通过所述第一路由设备 与所述第二路由设备之间的控制通道, 向所述第二路由设备发送所述链路标 识和所述第一描述符。  Optionally, in a possible implementation manner of the embodiment, for the centralized system that separates the control and the forwarding, in the 101, the first routing device may specifically pass the first routing device and the second And a control channel between the routing devices, sending the link identifier and the first descriptor to the second routing device.
可选地, 在本实施例的一个可能的实现方式中, 在 102之前, 所述第一 路由设备还可以进一步接收所述第二路由设备通过所述第一路由设备与所述 第二路由设备之间的控制通道, 发送的所述第二描述符。  Optionally, in a possible implementation manner of this embodiment, before the 102, the first routing device may further receive the second routing device by using the first routing device and the second routing device. Between the control channels, the second descriptor is sent.
可选地,在本实施例的一个可能的实现方式中,对于分布式系统,在 101 中, 所述第一路由设备具体可以通过所述待检测双向链路, 向所述第二路由 设备发送所述链路标识和所述第一描述符。  Optionally, in a possible implementation manner of the embodiment, for the distributed system, in the 101, the first routing device may send the second routing device to the second routing device by using the to-be-detected bidirectional link. The link identifier and the first descriptor.
本实施例中, 通过第一路由设备向第二路由设备发送用于标识待检测双 向链路的链路标识和所述第一路由设备为所述待检测双向链路分配的第一描 述符,以使得所述第二路由设备根据所述链路标识确定所述待检测双向链路, 以及建立所述待检测双向链路、 所述第一描述符以及第二描述符的第一关联 关系, 所述第二描述符是所述第二路由设备为所述待检测双向链路分配的描 述符,所述第一路由设备进而接收所述第二路由设备根据所述第一关联关系, 通过所述待检测双向链路发送的第一 BFD报文, 所述第一 BFD报文中包含 所述第一描述符和所述第二描述符, 使得所述第一路由设备能够建立所述待 检测双向链路、 所述第一描述符以及所述第二描述符的第二关联关系, 以及 根据所述第二关联关系, 通过所述待检测双向链路向所述第二路由设备发送 第二 BFD报文进行故障检测, 所述第二 BFD报文中包含所述第一描述符和 所述第二描述符, 由于待检测双向链路两端的路由设备均能够建立所述待检 测双向链路、 所述第一描述符以及所述第二描述符的关联关系, 因此, 无需 在 IP路径进行回程处理, 能够避免现有技术中由于回程是在 IP路径进行处 理的而导致的如果 IP路径出现故障, 则 BFD的检测结果仍然是待检测双向 链路出现故障的问题, 从而提高了故障检测的可靠性。  In this embodiment, the first routing device sends a link identifier for identifying the bidirectional link to be detected to the second routing device, and a first descriptor that is allocated by the first routing device to the bidirectional link to be detected. So that the second routing device determines the to-be-detected bidirectional link according to the link identifier, and establishes a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, The second descriptor is a descriptor allocated by the second routing device to the to-be-detected bidirectional link, and the first routing device further receives the second routing device according to the first association relationship, Determining to detect the first BFD packet sent by the bidirectional link, where the first BFD packet includes the first descriptor and the second descriptor, so that the first routing device can establish the to-be-detected a bidirectional link, a second association relationship between the first descriptor and the second descriptor, and sending, by the to-be-detected bidirectional link, to the second routing device according to the second association relationship The second BFD packet is configured to detect the fault, and the second BFD packet includes the first descriptor and the second descriptor, and the routing device at both ends of the bidirectional link to be detected can establish the two-way to be detected. The association relationship between the link, the first descriptor, and the second descriptor, therefore, there is no need to perform backhaul processing on the IP path, and it is possible to avoid the IP in the prior art caused by the backhaul being processed in the IP path. If the path is faulty, the detection result of BFD is still the fault of the bidirectional link to be detected, which improves the reliability of fault detection.
另夕卜, 由于两个方向的 BFD报文均可以通过待检测双向链路 (即双向链 路)从一个路由设备到达另一个路由设备, 无需在 IP路径进行回程处理, 因 此, 只需要在一个会话中完成待检测双向链路的故障检测, 从而减少了两个 路由设备之间的交互次数, 能够节省交互开销。 In addition, since BFD packets in both directions can pass from one routing device to another routing device through the bidirectional link to be detected (ie, the bidirectional link), there is no need to perform backhaul processing on the IP path. Therefore, the fault detection of the bidirectional link to be detected needs to be completed in one session, thereby reducing the number of interactions between the two routing devices, and saving interaction costs.
图 2为本申请另一实施例提供的 BFD会话建立的方法的流程示意图,如 图 2所示。  FIG. 2 is a schematic flowchart of a method for establishing a BFD session according to another embodiment of the present application, as shown in FIG. 2.
201、第二路由设备接收第一路由设备发送的用于标识待检测双向链路的 链路标识和所述第一路由设备为所述待检测双向链路分配的第一描述符。  The second routing device receives, by the first routing device, a link identifier that is used to identify the bidirectional link to be detected, and a first descriptor that is allocated by the first routing device to the to-be-detected bidirectional link.
202、所述第二路由设备根据所述链路标识确定所述待检测双向链路, 以 及建立所述待检测双向链路、 所述第一描述符以及第二描述符的第一关联关 系, 所述第二描述符是所述第二路由设备为所述待检测双向链路分配的描述 符。  The second routing device determines the to-be-detected bidirectional link according to the link identifier, and establishes a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor. The second descriptor is a descriptor allocated by the second routing device to the to-be-detected bidirectional link.
203、所述第二路由设备根据所述第一关联关系,通过所述待检测双向链 路向所述第一路由设备发送第一 BFD报文进行故障检测, 所述第一 BFD报 文中包含所述第一描述符和所述第二描述符。  203. The second routing device sends a first BFD packet to the first routing device to detect a fault according to the first association relationship, where the first BFD packet is included in the first BFD packet. The first descriptor and the second descriptor.
204、所述第二路由设备接收所述第一路由设备根据第二关联关系,通过 所述待检测双向链路发送的第二 BFD报文, 所述第二 BFD报文中包含所述 第一描述符和所述第二描述符, 所述第二关联关系为所述第一路由设备建立 的所述待检测双向链路、 所述第一描述符以及所述第二描述符的关联关系。  The second routing device receives the second BFD packet sent by the first routing device by using the to-be-detected bidirectional link according to the second association, where the second BFD packet includes the first a descriptor and the second descriptor, where the second association relationship is an association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor established by the first routing device.
至此, 由于待检测双向链路两端的路由设备(即第一路由设备和第二路 由设备) 均能够建立所述待检测双向链路、 所述第一描述符以及所述第二描 述符的关联关系, 因此, 第一路由设备和第二路由设备可以利用各自建立的 关联关系,通过所述待检测双向链路传递两个方向的 BFD报文(即第一 BFD 报文和第二 BFD报文) , 以进行故障检测, 无需在 IP路径进行回程处理。  At this point, the routing device (ie, the first routing device and the second routing device) at both ends of the bidirectional link to be detected can establish the association between the to-be-detected bidirectional link, the first descriptor, and the second descriptor. Therefore, the first routing device and the second routing device can use the established association relationship to transmit the BFD packets in the two directions, that is, the first BFD packet and the second BFD packet, by using the to-be-detected bidirectional link. ) for fault detection without the need for backhaul on the IP path.
其中, 所述待检测双向链路可以包括但不限于基于资源预留协议 ( Resource ReSerVation Protocol , RSVP ) 建立的流量工程 ( Traffic Engineering, TE )隧道( Tunnel )中的标签交换路径( Label Switched Path, LSP )、 基于标签分发协议 ( Label Distribution Protocol, LDP )建立的 LSP 或伪线路( Pseudo Wire, PW ) 。  The bidirectional link to be detected may include, but is not limited to, a Label Switched Path in a Traffic Engineering (TE) tunnel established by a Resource Resert Protocol (RSVP). LSP), LSP or Pseudo Wire (PW) based on Label Distribution Protocol (LDP).
可选地, 在本实施例的一个可能的实现方式中, 所述待检测双向链路可 以包括所述第一路由设备到所述第二路由设备的第一链路, 以及所述第二路 由设备到所述第一路由设备的第二链路。 当所述第一链路的标识与所述第二链路的标识相同时, 所述待检测双向 链路的标识则可以为所述第一链路的标识或所述第二链路的标识。 Optionally, in a possible implementation manner of this embodiment, the to-be-detected bidirectional link may include a first link from the first routing device to the second routing device, and the second route The second link of the device to the first routing device. When the identifier of the first link is the same as the identifier of the second link, the identifier of the to-be-detected bidirectional link may be the identifier of the first link or the identifier of the second link. .
当所述第一链路的标识与所述第二链路的标识不同时, 所述待检测双向 链路的标识则可以为所述第二链路的标识。  When the identifier of the first link is different from the identifier of the second link, the identifier of the bidirectional link to be detected may be an identifier of the second link.
随着互联网的发展, 分布式系统无法更好的满足网络扩展性和管理上的 需求,因此,控制和转发分离的集中式系统应运而生,例如:开放流( OpenFlow ) 系统等。 第一路由设备 (例如, Master等)与第二路由设备 (例如, AP等) 之间通过控制通道进行通信, 共同完成原来完全由交换机 /路由器控制的报文 转发过程, 从而实现了数据转发和路由控制的分离。  With the development of the Internet, distributed systems cannot better meet the needs of network scalability and management. Therefore, centralized systems with separate control and forwarding emerge, such as the OpenFlow system. The first routing device (for example, the Master, etc.) communicates with the second routing device (for example, an AP, etc.) through the control channel to jointly complete the packet forwarding process that is completely controlled by the switch/router, thereby implementing data forwarding and Separation of routing control.
可选地, 在本实施例的一个可能的实现方式中, 对于控制和转发分离的 集中式系统, 在 201 中, 所述第二路由设备具体可以接收所述第一路由设备 通过所述第一路由设备与所述第二路由设备之间的控制通道, 发送的所述链 路标识和所述第一描述符。  Optionally, in a possible implementation manner of this embodiment, for a centralized system that separates control and forwarding, in 201, the second routing device may specifically receive the first routing device by using the first And a control channel between the routing device and the second routing device, the link identifier sent by the first descriptor.
可选地, 在本实施例的一个可能的实现方式中, 在 203之前, 所述第二 路由设备还可以进一步通过所述第一路由设备与所述第二路由设备之间的控 制通道, 向所述第一路由设备发送所述第二描述符。  Optionally, in a possible implementation manner of this embodiment, before the 203, the second routing device may further be configured by using a control channel between the first routing device and the second routing device. The first routing device sends the second descriptor.
可选地,在本实施例的一个可能的实现方式中,对于分布式系统,在 201 中, 所述第二路由设备具体可以接收所述第一路由设备通过所述待检测双向 链路, 发送的所述链路标识和所述第一描述符。  Optionally, in a possible implementation manner of the embodiment, for the distributed system, the second routing device may receive, by the second routing device, the first routing device by using the to-be-detected bidirectional link. The link identifier and the first descriptor.
本实施例中, 通过第二路由设备接收第一路由设备发送的用于标识待检 测双向链路的链路标识和所述第一路由设备为所述待检测双向链路分配的第 一描述符, 并根据所述链路标识确定所述待检测双向链路, 以及建立所述待 检测双向链路、 所述第一描述符以及第二描述符的第一关联关系, 所述第二 描述符是所述第二路由设备为所述待检测双向链路分配的描述符, 所述第二 路由设备进而根据所述第一关联关系, 通过所述待检测双向链路向所述第一 路由设备发送第一 BFD报文进行故障检测, 所述第一 BFD报文中包含所述 第一描述符和所述第二描述符, 使得所述第二路由设备能够接收所述第一路 由设备根据第二关联关系, 通过所述待检测双向链路发送的第二 BFD报文, 所述第二 BFD报文中包含所述第一描述符和所述第二描述符,所述第二关联 关系为所述第一路由设备建立的所述待检测双向链路、 所述第一描述符以及 所述第二描述符的关联关系, 由于待检测双向链路两端的路由设备均能够建 立所述待检测双向链路、 所述第一描述符以及所述第二描述符的关联关系, 因此, 无需在 IP路径进行回程处理, 能够避免现有技术中由于回程是在 IP 路径进行处理的而导致的如果 IP路径出现故障, 则 BFD的检测结果仍然是 待检测双向链路出现故障的问题, 从而提高了故障检测的可靠性。 In this embodiment, the second routing device receives, by the first routing device, a link identifier that is used by the first routing device to identify the bidirectional link to be detected, and a first descriptor that is allocated by the first routing device to the to-be-detected bidirectional link. Determining, according to the link identifier, the to-be-detected bidirectional link, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, the second descriptor a descriptor that is allocated by the second routing device to the to-be-detected bidirectional link, and the second routing device, according to the first association relationship, to the first routing device by using the to-be-detected bidirectional link. Sending a first BFD packet to perform fault detection, where the first BFD packet includes the first descriptor and the second descriptor, so that the second routing device can receive the first routing device according to the first a second association relationship, where the second BFD packet is sent by the to-be-detected bidirectional link, where the second BFD packet includes the first descriptor and the second descriptor, where the second association relationship is The first The routing device to establish a bidirectional link to be detected, and the first descriptor The association relationship between the second descriptors, because the routing devices at both ends of the bidirectional link to be detected are capable of establishing the association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, therefore, If the IP path is faulty, the detection result of the BFD is still a problem that the bidirectional link to be detected is faulty, so that the backhaul is not processed in the IP path. Improve the reliability of fault detection.
另夕卜, 由于两个方向的 BFD报文均可以通过待检测双向链路 (即双向链 路)从一个路由设备到达另一个路由设备, 无需在 IP路径进行回程处理, 因 此, 只需要在一个会话中完成待检测双向链路的故障检测, 从而减少了两个 路由设备之间的交互次数, 能够节省交互开销。  In addition, since the BFD packets in both directions can pass from one routing device to another routing device through the bidirectional link to be detected (ie, the bidirectional link), there is no need to perform backhaul processing on the IP path, therefore, only one The fault detection of the bidirectional link to be detected is completed in the session, thereby reducing the number of interactions between the two routing devices and saving interaction costs.
需要说明的是, 对于前述的各方法实施例, 为了简单描述, 故将其都表 述为一系列的动作组合, 但是本领域技术人员应该知悉, 本申请并不受所描 述的动作顺序的限制, 因为依据本申请, 某些步骤可以采用其他顺序或者同 时进行。 其次, 本领域技术人员也应该知悉, 说明书中所描述的实施例均属 于优选实施例, 所涉及的动作和模块并不一定是本申请所必须的。  It should be noted that, for the foregoing method embodiments, for the sake of brevity, they are all described as a series of action combinations, but those skilled in the art should understand that the present application is not limited by the described action sequence. Because certain steps may be performed in other sequences or concurrently in accordance with the present application. In addition, those skilled in the art should also understand that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没有 详述的部分, 可以参见其他实施例的相关描述。  In the above embodiments, the descriptions of the various embodiments are different, and the parts that are not detailed in a certain embodiment can be referred to the related descriptions of other embodiments.
图 3为本申请另一实施例提供的路由设备的结构示意图, 如图 3所示, 本实施例的路由设备可以包括发送单元 31、 接收单元 32和关联单元 33。 其 中, 发送单元 31 , 用于向第二路由设备发送用于标识待检测双向链路的链路 标识和所述路由设备为所述待检测双向链路分配的第一描述符, 以使得所述 第二路由设备根据所述链路标识确定所述待检测双向链路, 以及建立所述待 检测双向链路、 所述第一描述符以及第二描述符的第一关联关系, 所述第二 描述符是所述第二路由设备为所述待检测双向链路分配的描述符; 接收单元 32, 用于接收所述第二路由设备根据所述第一关联关系, 通过所述待检测双 向链路发送的第一 BFD报文, 所述第一 BFD报文中包含所述第一描述符和 所述第二描述符; 所述关联单元 33, 用于建立所述待检测双向链路、 所述第 一描述符以及所述第二描述符的第二关联关系, 以及将所述第二关联关系传 输给所述发送单元 31 ; 所述发送单元 31 , 还用于根据所述第二关联关系, 通过所述待检测双向链路向所述第二路由设备发送第二 BFD 报文进行故障 检测, 所述第二 BFD报文中包含所述第一描述符和所述第二描述符。 至此, 由于待检测双向链路两端的路由设备(即路由设备和第二路由设 备) 均能够建立所述待检测双向链路、 所述第一描述符以及所述第二描述符 的关联关系,因此,路由设备和第二路由设备可以利用各自建立的关联关系, 通过所述待检测双向链路传递两个方向的 BFD报文(即第一 BFD报文和第 二 BFD报文) , 以进行故障检测, 无需在 IP路径进行回程处理。 FIG. 3 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure. As shown in FIG. 3, the routing device in this embodiment may include a sending unit 31, a receiving unit 32, and an associating unit 33. The sending unit 31 is configured to send, to the second routing device, a link identifier that is used to identify the bidirectional link to be detected, and a first descriptor that is allocated by the routing device to the bidirectional link to be detected, so that the Determining, by the second routing device, the bidirectional link to be detected according to the link identifier, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, where the second The descriptor is a descriptor allocated by the second routing device to the to-be-detected bidirectional link; the receiving unit 32 is configured to receive, by the second routing device, the doubly chain to be detected according to the first association relationship. The first BFD packet sent by the path, the first BFD packet includes the first descriptor and the second descriptor, and the association unit 33 is configured to establish the bidirectional link to be detected. Decoding a first descriptor and a second association relationship of the second descriptor, and transmitting the second association relationship to the sending unit 31; the sending unit 31 is further configured to use the second association relationship By the stated The bidirectional link to be detected sends a second BFD packet to the second routing device for fault detection, where the second BFD packet includes the first descriptor and the second descriptor. At this point, the routing device (ie, the routing device and the second routing device) at both ends of the bidirectional link to be detected can establish the association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor. Therefore, the routing device and the second routing device can use the established association relationship to transmit the BFD packets in the two directions, that is, the first BFD packet and the second BFD packet, by using the to-be-detected bidirectional link. Fault detection, no need to perform backhaul processing on the IP path.
其中, 所述待检测双向链路可以包括但不限于基于资源预留协议 ( Resource ReSerVation Protocol , RSVP ) 建立的流量工程 ( Traffic Engineering, TE )隧道( Tunnel )中的标签交换路径( Label Switched Path, LSP )、 基于标签分发协议 ( Label Distribution Protocol, LDP )建立的 LSP 或伪线路( Pseudo Wire, PW ) 。  The bidirectional link to be detected may include, but is not limited to, a Label Switched Path in a Traffic Engineering (TE) tunnel established by a Resource Resert Protocol (RSVP). LSP), LSP or Pseudo Wire (PW) based on Label Distribution Protocol (LDP).
可选地, 在本实施例的一个可能的实现方式中, 所述待检测双向链路可 以包括所述第一路由设备到所述第二路由设备的第一链路, 以及所述第二路 由设备到所述第一路由设备的第二链路。  Optionally, in a possible implementation manner of this embodiment, the to-be-detected bidirectional link may include a first link from the first routing device to the second routing device, and the second route The second link of the device to the first routing device.
当所述第一链路的标识与所述第二链路的标识相同时, 所述待检测双向 链路的标识则可以为所述第一链路的标识或所述第二链路的标识。  When the identifier of the first link is the same as the identifier of the second link, the identifier of the to-be-detected bidirectional link may be the identifier of the first link or the identifier of the second link. .
当所述第一链路的标识与所述第二链路的标识不同时, 所述待检测双向 链路的标识则可以为所述第二链路的标识。  When the identifier of the first link is different from the identifier of the second link, the identifier of the bidirectional link to be detected may be an identifier of the second link.
随着互联网的发展, 分布式系统无法更好的满足网络扩展性和管理上的 需求,因此,控制和转发分离的集中式系统应运而生,例如:开放流( OpenFlow ) 系统等。 第一路由设备 (例如, Master等)与第二路由设备 (例如, AP等) 之间通过控制通道进行通信, 共同完成原来完全由交换机 /路由器控制的报文 转发过程, 从而实现了数据转发和路由控制的分离。  With the development of the Internet, distributed systems cannot better meet the needs of network scalability and management. Therefore, centralized systems with separate control and forwarding emerge, such as the OpenFlow system. The first routing device (for example, the Master, etc.) communicates with the second routing device (for example, an AP, etc.) through the control channel to jointly complete the packet forwarding process that is completely controlled by the switch/router, thereby implementing data forwarding and Separation of routing control.
可选地, 在本实施例的一个可能的实现方式中, 对于控制和转发分离的 备之间的控制通道, 向所述第二路由设备发送所述链路标识和所述第一描述 付。  Optionally, in a possible implementation manner of this embodiment, the link identifier and the first description payment are sent to the second routing device for controlling and forwarding a control channel between separate devices.
可选地,在本实施例的一个可能的实现方式中, 所述接收单元 32还可以 进一步接收所述第二路由设备通过所述路由设备与所述第二路由设备之间的 控制通道, 发送的所述第二描述符, 以及将所述第二描述符传输给所述关联 单元 33。 可选地, 在本实施例的一个可能的实现方式中, 对于分布式系统, 所述 发送单元 31具体可以所述路由设备通过所述待检测双向链路,向所述第二路 由设备发送所述链路标识和所述第一描述符。 Optionally, in a possible implementation manner of the embodiment, the receiving unit 32 may further receive that the second routing device sends by using a control channel between the routing device and the second routing device. Said second descriptor, and transmitting said second descriptor to said associating unit 33. Optionally, in a possible implementation manner of the embodiment, for the distributed system, the sending unit 31 may specifically send, by the routing device, the second routing device to the second routing device by using the to-be-detected bidirectional link. The link identifier and the first descriptor.
本实施例中, 路由设备通过发送单元向第二路由设备发送用于标识待检 测双向链路的链路标识和所述路由设备为所述待检测双向链路分配的第一描 述符,以使得所述第二路由设备根据所述链路标识确定所述待检测双向链路, 以及建立所述待检测双向链路、 所述第一描述符以及第二描述符的第一关联 关系, 所述第二描述符是所述第二路由设备为所述待检测双向链路分配的描 述符, 进而由接收单元接收所述第二路由设备根据所述第一关联关系, 通过 所述待检测双向链路发送的第一 BFD报文, 所述第一 BFD报文中包含所述 第一描述符和所述第二描述符,使得关联单元能够建立所述待检测双向链路、 所述第一描述符以及所述第二描述符的第二关联关系, 以及由所述发送单元 根据所述第二关联关系, 通过所述待检测双向链路向所述第二路由设备发送 第二 BFD报文进行故障检测, 所述第二 BFD报文中包含所述第一描述符和 所述第二描述符, 由于待检测双向链路两端的路由设备均能够建立所述待检 测双向链路、 所述第一描述符以及所述第二描述符的关联关系, 因此, 无需 在 IP路径进行回程处理, 能够避免现有技术中由于回程是在 IP路径进行处 理的而导致的如果 IP路径出现故障, 则 BFD的检测结果仍然是待检测双向 链路出现故障的问题, 从而提高了故障检测的可靠性。  In this embodiment, the routing device sends, by the sending unit, a link identifier for identifying the bidirectional link to be detected and a first descriptor allocated by the routing device to the bidirectional link to be detected, to the second routing device, so that Determining, by the second routing device, the bidirectional link to be detected according to the link identifier, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, The second descriptor is a descriptor allocated by the second routing device to the to-be-detected bidirectional link, and the receiving unit receives the second routing device, according to the first association relationship, by using the to-be-detected two-way chain. The first BFD packet sent by the path, where the first BFD packet includes the first descriptor and the second descriptor, so that the association unit can establish the bidirectional link to be detected, and the first description And a second association relationship of the second descriptor, and sending, by the sending unit, the second routing device to the second routing device by using the to-be-detected bidirectional link according to the second association relationship The second BFD packet is configured to detect the fault, and the second BFD packet includes the first descriptor and the second descriptor, and the routing device at both ends of the bidirectional link to be detected can establish the two-way to be detected. The association relationship between the link, the first descriptor, and the second descriptor, therefore, there is no need to perform backhaul processing on the IP path, and it is possible to avoid the IP in the prior art caused by the backhaul being processed in the IP path. If the path is faulty, the detection result of BFD is still the fault of the bidirectional link to be detected, which improves the reliability of fault detection.
另夕卜, 由于两个方向的 BFD报文均可以通过待检测双向链路 (即双向链 路)从一个路由设备到达另一个路由设备, 无需在 IP路径进行回程处理, 因 此, 只需要在一个会话中完成待检测双向链路的故障检测, 从而减少了两个 路由设备之间的交互次数, 能够节省交互开销。  In addition, since the BFD packets in both directions can pass from one routing device to another routing device through the bidirectional link to be detected (ie, the bidirectional link), there is no need to perform backhaul processing on the IP path, therefore, only one The fault detection of the bidirectional link to be detected is completed in the session, thereby reducing the number of interactions between the two routing devices and saving interaction costs.
图 4为本申请另一实施例提供的路由设备的结构示意图, 如图 4所示, 本实施例的路由设备可以包括接收单元 41、 关联单元 42和发送单元 43。 其 中, 接收单元 41 , 用于接收第一路由设备发送的用于标识待检测双向链路的 链路标识和所述第一路由设备为所述待检测双向链路分配的第一描述符, 以 及将所述链路标识和所述第一描述符传输给关联单元 42;所述关联单元 42, 用于根据所述链路标识确定所述待检测双向链路, 以及建立所述待检测双向 链路、 所述第一描述符以及第二描述符的第一关联关系, 以及将所述第一关 联关系传输给发送单元 43, 所述第二描述符是所述路由设备为所述待检测双 向链路分配的描述符; 所述发送单元 43, 用于根据所述第一关联关系, 通过 所述待检测双向链路向所述第一路由设备发送第一 BFD报文进行故障检测, 所述第一 BFD报文中包含所述第一描述符和所述第二描述符;所述接收单元 41 , 还用于接收所述第一路由设备根据第二关联关系, 通过所述待检测双向 链路发送的第二 BFD报文, 所述第二 BFD报文中包含所述第一描述符和所 述第二描述符, 所述第二关联关系为所述第一路由设备建立的所述待检测双 向链路、 所述第一描述符以及所述第二描述符的关联关系。 FIG. 4 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure. As shown in FIG. 4, the routing device in this embodiment may include a receiving unit 41, an association unit 42, and a sending unit 43. The receiving unit 41 is configured to receive, by the first routing device, a link identifier that is used to identify the bidirectional link to be detected, and a first descriptor that is allocated by the first routing device to the to-be-detected bidirectional link, and Transmitting the link identifier and the first descriptor to the association unit 42; the association unit 42 is configured to determine the to-be-detected bidirectional link according to the link identifier, and establish the to-be-detected two-way chain a first association relationship between the first descriptor and the second descriptor, and the first The association is transmitted to the sending unit 43, the second descriptor is a descriptor allocated by the routing device to the to-be-detected bidirectional link, and the sending unit 43 is configured to pass the first association relationship according to the first association relationship. The detecting the bidirectional link sends the first BFD packet to the first routing device to perform fault detection, where the first BFD packet includes the first descriptor and the second descriptor; the receiving unit The second BFD packet is sent by the first routing device according to the second association relationship, and the second BFD packet is sent by the second BFD packet. The second descriptor, the second association relationship is an association relationship between the to-be-detected bidirectional link established by the first routing device, the first descriptor, and the second descriptor.
至此, 由于待检测双向链路两端的路由设备(即第一路由设备和路由设 备) 均能够建立所述待检测双向链路、 所述第一描述符以及所述第二描述符 的关联关系,因此,第一路由设备和路由设备可以利用各自建立的关联关系, 通过所述待检测双向链路传递两个方向的 BFD报文(即第一 BFD报文和第 二 BFD报文) , 以进行故障检测, 无需在 IP路径进行回程处理。  So far, the routing device (ie, the first routing device and the routing device) at both ends of the bidirectional link to be detected can establish the association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor. Therefore, the first routing device and the routing device can use the established association relationship to transmit the BFD packets in the two directions, that is, the first BFD packet and the second BFD packet, by using the to-be-detected bidirectional link. Fault detection, no need to perform backhaul processing on the IP path.
其中, 所述待检测双向链路可以包括但不限于基于资源预留协议 ( Resource ReSerVation Protocol , RSVP ) 建立的流量工程 ( Traffic Engineering, TE )隧道( Tunnel )中的标签交换路径( Label Switched Path, LSP )、 基于标签分发协议 ( Label Distribution Protocol, LDP )建立的 LSP 或伪线路( Pseudo Wire, PW ) 。  The bidirectional link to be detected may include, but is not limited to, a Label Switched Path in a Traffic Engineering (TE) tunnel established by a Resource Resert Protocol (RSVP). LSP), LSP or Pseudo Wire (PW) based on Label Distribution Protocol (LDP).
可选地, 在本实施例的一个可能的实现方式中, 所述待检测双向链路可 以包括所述第一路由设备到所述第二路由设备的第一链路, 以及所述第二路 由设备到所述第一路由设备的第二链路。  Optionally, in a possible implementation manner of this embodiment, the to-be-detected bidirectional link may include a first link from the first routing device to the second routing device, and the second route The second link of the device to the first routing device.
当所述第一链路的标识与所述第二链路的标识相同时, 所述待检测双向 链路的标识则可以为所述第一链路的标识或所述第二链路的标识。  When the identifier of the first link is the same as the identifier of the second link, the identifier of the to-be-detected bidirectional link may be the identifier of the first link or the identifier of the second link. .
当所述第一链路的标识与所述第二链路的标识不同时, 所述待检测双向 链路的标识则可以为所述第二链路的标识。  When the identifier of the first link is different from the identifier of the second link, the identifier of the bidirectional link to be detected may be an identifier of the second link.
随着互联网的发展, 分布式系统无法更好的满足网络扩展性和管理上的 需求,因此,控制和转发分离的集中式系统应运而生,例如:开放流( OpenFlow ) 系统等。 第一路由设备 (例如, Master等)与第二路由设备 (例如, AP等) 之间通过控制通道进行通信, 共同完成原来完全由交换机 /路由器控制的报文 转发过程, 从而实现了数据转发和路由控制的分离。 可选地, 在本实施例的一个可能的实现方式中, 对于控制和转发分离的 集中式系统,所述发送单元 43还可以进一步通过所述第一路由设备与所述路 由设备之间的控制通道, 向所述第一路由设备发送所述第二描述符。 With the development of the Internet, distributed systems cannot better meet the needs of network scalability and management. Therefore, centralized systems with separate control and forwarding emerge, such as the OpenFlow system. The first routing device (for example, the Master, etc.) communicates with the second routing device (for example, an AP, etc.) through the control channel to jointly complete the packet forwarding process that is completely controlled by the switch/router, thereby implementing data forwarding and Separation of routing control. Optionally, in a possible implementation manner of the embodiment, for the centralized system that controls and forwards the separation, the sending unit 43 may further perform control between the first routing device and the routing device. Channel, sending the second descriptor to the first routing device.
本实施例中, 路由设备通过接收单元接收第一路由设备发送的用于标识 待检测双向链路的链路标识和所述第一路由设备为所述待检测双向链路分配 的第一描述符, 并由关联单元根据所述链路标识确定所述待检测双向链路, 以及建立所述待检测双向链路、 所述第一描述符以及第二描述符的第一关联 关系,所述第二描述符是所述路由设备为所述待检测双向链路分配的描述符, 进而由发送单元根据所述第一关联关系, 通过所述待检测双向链路向所述第 一路由设备发送第一 BFD报文进行故障检测, 所述第一 BFD报文中包含所 述第一描述符和所述第二描述符, 使得所述接收单元能够接收所述第一路由 设备根据第二关联关系, 通过所述待检测双向链路发送的第二 BFD报文, 所 述第二 BFD报文中包含所述第一描述符和所述第二描述符,所述第二关联关 系为所述第一路由设备建立的所述待检测双向链路、 所述第一描述符以及所 述第二描述符的关联关系, 由于待检测双向链路两端的路由设备均能够建立 所述待检测双向链路、 所述第一描述符以及所述第二描述符的关联关系, 因 此, 无需在 IP路径进行回程处理, 能够避免现有技术中由于回程是在 IP路 径进行处理的而导致的如果 IP路径出现故障, 则 BFD的检测结果仍然是待 检测双向链路出现故障的问题, 从而提高了故障检测的可靠性。  In this embodiment, the routing device receives, by the receiving unit, a link identifier that is sent by the first routing device to identify the bidirectional link to be detected, and a first descriptor that is allocated by the first routing device to the to-be-detected bidirectional link. And determining, by the association unit, the bidirectional link to be detected according to the link identifier, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, where The second descriptor is a descriptor allocated by the routing device to the to-be-detected bidirectional link, and the sending unit sends the first routing device to the first routing device by using the to-be-detected bidirectional link according to the first association relationship. Performing a fault detection on a BFD packet, where the first BFD packet includes the first descriptor and the second descriptor, so that the receiving unit can receive the first routing device according to the second association relationship. a second BFD packet sent by the bidirectional link to be detected, where the second BFD packet includes the first descriptor and the second descriptor, and the second association relationship is The relationship between the two-way link to be detected, the first descriptor, and the second descriptor that is established by the first routing device, because the routing devices at both ends of the bidirectional link to be detected can establish the to-be-detected The association relationship between the bidirectional link, the first descriptor, and the second descriptor, therefore, there is no need to perform backhaul processing on the IP path, and it is possible to avoid the prior art if the backhaul is processed in the IP path. If the IP path is faulty, the detection result of BFD is still the fault of the bidirectional link to be detected, which improves the reliability of fault detection.
另夕卜, 由于两个方向的 BFD报文均可以通过待检测双向链路 (即双向链 路)从一个路由设备到达另一个路由设备, 无需在 IP路径进行回程处理, 因 此, 只需要在一个会话中完成待检测双向链路的故障检测, 从而减少了两个 路由设备之间的交互次数, 能够节省交互开销。  In addition, since the BFD packets in both directions can pass from one routing device to another routing device through the bidirectional link to be detected (ie, the bidirectional link), there is no need to perform backhaul processing on the IP path, therefore, only one The fault detection of the bidirectional link to be detected is completed in the session, thereby reducing the number of interactions between the two routing devices and saving interaction costs.
图 5为本申请另一实施例提供的路由设备的结构示意图, 如图 5所示, 本实施例的路由设备可以包括发送器 51、 接收器 52和处理器 53。 其中, 发 送器 51 , 用于向第二路由设备发送用于标识待检测双向链路的链路标识和所 述路由设备为所述待检测双向链路分配的第一描述符, 以使得所述第二路由 设备根据所述链路标识确定所述待检测双向链路, 以及建立所述待检测双向 链路、 所述第一描述符以及第二描述符的第一关联关系, 所述第二描述符是 所述第二路由设备为所述待检测双向链路分配的描述符; 接收器 52, 用于接 收所述第二路由设备根据所述第一关联关系, 通过所述待检测双向链路发送 的第一 BFD报文 53, 所述第一 BFD报文中包含所述第一描述符和所述第二 描述符; 所述处理器 53, 用于建立所述待检测双向链路、 所述第一描述符以 及所述第二描述符的第二关联关系, 以及将所述第二关联关系传输给所述发 送器 51 ; 所述发送器 51 , 还用于根据所述第二关联关系, 通过所述待检测 双向链路向所述第二路由设备发送第二 BFD报文进行故障检测, 所述第二 BFD报文中包含所述第一描述符和所述第二描述符。 FIG. 5 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure. As shown in FIG. 5, the routing device in this embodiment may include a transmitter 51, a receiver 52, and a processor 53. The transmitter 51 is configured to send, to the second routing device, a link identifier that is used to identify the bidirectional link to be detected, and a first descriptor that is allocated by the routing device to the bidirectional link to be detected, so that the Determining, by the second routing device, the bidirectional link to be detected according to the link identifier, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, where the second a descriptor is a descriptor allocated by the second routing device to the bidirectional link to be detected; a receiver 52 is configured to connect Receiving, by the second routing device, the first BFD packet 53 sent by the to-be-detected bidirectional link according to the first association, the first BFD packet includes the first descriptor and the a second descriptor; the processor 53 is configured to establish a second association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, and transmit the second association relationship The transmitter 51 is further configured to send, by using the to-be-detected bidirectional link, the second BFD packet to the second routing device to perform fault detection according to the second association relationship. The first BFD message includes the first descriptor and the second descriptor.
至此, 由于待检测双向链路两端的路由设备(即路由设备和第二路由设 备) 均能够建立所述待检测双向链路、 所述第一描述符以及所述第二描述符 的关联关系,因此,路由设备和第二路由设备可以利用各自建立的关联关系, 通过所述待检测双向链路传递两个方向的 BFD报文(即第一 BFD报文和第 二 BFD报文) , 以进行故障检测, 无需在 IP路径进行回程处理。  At this point, the routing device (ie, the routing device and the second routing device) at both ends of the bidirectional link to be detected can establish the association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor. Therefore, the routing device and the second routing device can use the established association relationship to transmit the BFD packets in the two directions, that is, the first BFD packet and the second BFD packet, by using the to-be-detected bidirectional link. Fault detection, no need to perform backhaul processing on the IP path.
其中, 所述待检测双向链路可以包括但不限于基于资源预留协议 ( Resource ReSerVation Protocol , RSVP ) 建立的流量工程 ( Traffic Engineering, TE )隧道( Tunnel )中的标签交换路径( Label Switched Path, LSP )、 基于标签分发协议 ( Label Distribution Protocol, LDP )建立的 LSP 或伪线路( Pseudo Wire, PW ) 。  The bidirectional link to be detected may include, but is not limited to, a Label Switched Path in a Traffic Engineering (TE) tunnel established by a Resource Resert Protocol (RSVP). LSP), LSP or Pseudo Wire (PW) based on Label Distribution Protocol (LDP).
可选地, 在本实施例的一个可能的实现方式中, 所述待检测双向链路可 以包括所述第一路由设备到所述第二路由设备的第一链路, 以及所述第二路 由设备到所述第一路由设备的第二链路。  Optionally, in a possible implementation manner of this embodiment, the to-be-detected bidirectional link may include a first link from the first routing device to the second routing device, and the second route The second link of the device to the first routing device.
当所述第一链路的标识与所述第二链路的标识相同时, 所述待检测双向 链路的标识则可以为所述第一链路的标识或所述第二链路的标识。  When the identifier of the first link is the same as the identifier of the second link, the identifier of the to-be-detected bidirectional link may be the identifier of the first link or the identifier of the second link. .
当所述第一链路的标识与所述第二链路的标识不同时, 所述待检测双向 链路的标识则可以为所述第二链路的标识。  When the identifier of the first link is different from the identifier of the second link, the identifier of the bidirectional link to be detected may be an identifier of the second link.
随着互联网的发展, 分布式系统无法更好的满足网络扩展性和管理上的 需求,因此,控制和转发分离的集中式系统应运而生,例如:开放流( OpenFlow ) 系统等。 第一路由设备 (例如, Master等)与第二路由设备 (例如, AP等) 之间通过控制通道进行通信, 共同完成原来完全由交换机 /路由器控制的报文 转发过程, 从而实现了数据转发和路由控制的分离。  With the development of the Internet, distributed systems cannot better meet the needs of network scalability and management. Therefore, centralized systems with separate control and forwarding emerge, such as the OpenFlow system. The first routing device (for example, the Master, etc.) communicates with the second routing device (for example, an AP, etc.) through the control channel to jointly complete the packet forwarding process that is completely controlled by the switch/router, thereby implementing data forwarding and Separation of routing control.
可选地, 在本实施例的一个可能的实现方式中, 对于控制和转发分离的 集中式系统,所述发送器 51具体可以通过所述路由设备与所述第二路由设备 之间的控制通道,向所述第二路由设备发送所述链路标识和所述第一描述符。 Optionally, in a possible implementation manner of this embodiment, the control and forwarding are separated. In a centralized system, the transmitter 51 may specifically send the link identifier and the first descriptor to the second routing device by using a control channel between the routing device and the second routing device.
可选地,在本实施例的一个可能的实现方式中, 所述接收器 52还可以进 一步接收所述第二路由设备通过所述路由设备与所述第二路由设备之间的控 制通道, 发送的所述第二描述符, 以及将所述第二描述符传输给所述处理器 53。  Optionally, in a possible implementation manner of the embodiment, the receiver 52 may further receive that the second routing device sends by using a control channel between the routing device and the second routing device. Said second descriptor, and transmitting said second descriptor to said processor 53.
可选地, 在本实施例的一个可能的实现方式中, 对于分布式系统, 所述 发送器 51具体可以所述路由设备通过所述待检测双向链路,向所述第二路由 设备发送所述链路标识和所述第一描述符。  Optionally, in a possible implementation manner of the embodiment, for the distributed system, the sending device 51 may specifically send, by the routing device, the second routing device to the second routing device by using the to-be-detected bidirectional link. The link identifier and the first descriptor.
本实施例中, 路由设备通过发送器向第二路由设备发送用于标识待检测 双向链路的链路标识和所述路由设备为所述待检测双向链路分配的第一描述 符, 以使得所述第二路由设备根据所述链路标识确定所述待检测双向链路, 以及建立所述待检测双向链路、 所述第一描述符以及第二描述符的第一关联 关系, 所述第二描述符是所述第二路由设备为所述待检测双向链路分配的描 述符, 进而由接收器接收所述第二路由设备根据所述第一关联关系, 通过所 述待检测双向链路发送的第一 BFD报文, 所述第一 BFD报文中包含所述第 一描述符和所述第二描述符, 使得处理器能够建立所述待检测双向链路、 所 述第一描述符以及所述第二描述符的第二关联关系, 以及由所述发送器根据 所述第二关联关系, 通过所述待检测双向链路向所述第二路由设备发送第二 BFD报文进行故障检测, 所述第二 BFD报文中包含所述第一描述符和所述 第二描述符, 由于待检测双向链路两端的路由设备均能够建立所述待检测双 向链路、 所述第一描述符以及所述第二描述符的关联关系, 因此, 无需在 IP 路径进行回程处理, 能够避免现有技术中由于回程是在 IP路径进行处理的而 导致的如果 IP路径出现故障, 则 BFD的检测结果仍然是待检测双向链路出 现故障的问题, 从而提高了故障检测的可靠性。  In this embodiment, the routing device sends, by using a transmitter, a link identifier for identifying the bidirectional link to be detected and a first descriptor allocated by the routing device to the bidirectional link to be detected, to the second routing device, so that Determining, by the second routing device, the bidirectional link to be detected according to the link identifier, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, The second descriptor is a descriptor allocated by the second routing device to the to-be-detected bidirectional link, and the receiver receives the second routing device by the receiver according to the first association relationship, by using the to-be-detected two-way chain. a first BFD packet sent by the path, where the first BFD packet includes the first descriptor and the second descriptor, so that the processor can establish the bidirectional link to be detected, and the first description And a second association relationship of the second descriptor, and sending, by the sender, the second BF to the second routing device by using the to-be-detected bidirectional link according to the second association relationship The D packet is fault-detected, and the second BFD packet includes the first descriptor and the second descriptor, and the routing device at both ends of the bidirectional link to be detected can establish the bidirectional link to be detected. The association relationship between the first descriptor and the second descriptor, therefore, there is no need to perform backhaul processing on the IP path, and it can be avoided if the IP path appears in the prior art because the backhaul is processed in the IP path. If the fault occurs, the detection result of BFD is still the fault of the bidirectional link to be detected, which improves the reliability of fault detection.
另夕卜, 由于两个方向的 BFD报文均可以通过待检测双向链路 (即双向链 路)从一个路由设备到达另一个路由设备, 无需在 IP路径进行回程处理, 因 此, 只需要在一个会话中完成待检测双向链路的故障检测, 从而减少了两个 路由设备之间的交互次数, 能够节省交互开销。  In addition, since the BFD packets in both directions can pass from one routing device to another routing device through the bidirectional link to be detected (ie, the bidirectional link), there is no need to perform backhaul processing on the IP path, therefore, only one The fault detection of the bidirectional link to be detected is completed in the session, thereby reducing the number of interactions between the two routing devices and saving interaction costs.
图 6为本申请另一实施例提供的路由设备的结构示意图, 如图 6所示, 本实施例的路由设备可以包括接收器 61、 处理器 62和发送器 63。 其中, 接 收器 61 , 用于接收第一路由设备发送的用于标识待检测双向链路的链路标识 和所述第一路由设备为所述待检测双向链路分配的第一描述符, 以及将所述 链路标识和所述第一描述符传输给处理器 62; 所述处理器 62, 用于根据所 述链路标识确定所述待检测双向链路, 以及建立所述待检测双向链路、 所述 第一描述符以及第二描述符的第一关联关系, 以及将所述第一关联关系传输 给发送器 63, 所述第二描述符是所述路由设备为所述待检测双向链路分配的 描述符; 所述发送器 63, 用于根据所述第一关联关系, 通过所述待检测双向 链路向所述第一路由设备发送第一 BFD报文进行故障检测, 所述第一 BFD 报文中包含所述第一描述符和所述第二描述符; 所述接收器 61 , 还用于接收 所述第一路由设备根据第二关联关系, 通过所述待检测双向链路发送的第二 BFD报文, 所述第二 BFD报文中包含所述第一描述符和所述第二描述符, 所述第二关联关系为所述第一路由设备建立的所述待检测双向链路、 所述第 一描述符以及所述第二描述符的关联关系。 FIG. 6 is a schematic structural diagram of a routing device according to another embodiment of the present disclosure, as shown in FIG. The routing device of this embodiment may include a receiver 61, a processor 62, and a transmitter 63. The receiver 61 is configured to receive, by the first routing device, a link identifier that is used to identify the bidirectional link to be detected, and a first descriptor that is allocated by the first routing device to the to-be-detected bidirectional link, and Transmitting the link identifier and the first descriptor to the processor 62; the processor 62, configured to determine the to-be-detected bidirectional link according to the link identifier, and establish the to-be-detected two-way chain a first association relationship between the first descriptor and the second descriptor, and transmitting the first association relationship to the transmitter 63, where the second descriptor is that the routing device is the two-way to be detected a descriptor for the link allocation, the transmitter 63, configured to send, by using the to-be-detected bidirectional link, the first BFD packet to the first routing device to perform fault detection according to the first association relationship, where The first BFD packet includes the first descriptor and the second descriptor, and the receiver 61 is further configured to receive, by the first routing device, the doubly chain to be detected according to the second association relationship. Second BFD packet sent by the road The second BFD packet includes the first descriptor and the second descriptor, where the second association relationship is the to-be-detected bidirectional link established by the first routing device, and the A descriptor and an association relationship of the second descriptor.
至此, 由于待检测双向链路两端的路由设备(即第一路由设备和路由设 备) 均能够建立所述待检测双向链路、 所述第一描述符以及所述第二描述符 的关联关系,因此,第一路由设备和路由设备可以利用各自建立的关联关系, 通过所述待检测双向链路传递两个方向的 BFD报文(即第一 BFD报文和第 二 BFD报文) , 以进行故障检测, 无需在 IP路径进行回程处理。  So far, the routing device (ie, the first routing device and the routing device) at both ends of the bidirectional link to be detected can establish the association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor. Therefore, the first routing device and the routing device can use the established association relationship to transmit the BFD packets in the two directions, that is, the first BFD packet and the second BFD packet, by using the to-be-detected bidirectional link. Fault detection, no need to perform backhaul processing on the IP path.
其中, 所述待检测双向链路可以包括但不限于基于资源预留协议 The bidirectional link to be detected may include but is not limited to a resource reservation protocol.
( Resource ReSerVation Protocol , RSVP ) 建立的流量工程 ( Traffic Engineering, TE )隧道( Tunnel )中的标签交换路径( Label Switched Path, LSP )、 基于标签分发协议 ( Label Distribution Protocol, LDP )建立的 LSP 或伪线路( Pseudo Wire, PW ) 。 (Recycled Switching Path (LSP) in the Traffic Engineering (TE) Tunnel, LSP or Pseudo-based Label Distribution Protocol (LDP) established by the Resource ReSerVation Protocol (RSVP) Line (Pseudo Wire, PW).
可选地, 在本实施例的一个可能的实现方式中, 所述待检测双向链路可 以包括所述第一路由设备到所述第二路由设备的第一链路, 以及所述第二路 由设备到所述第一路由设备的第二链路。  Optionally, in a possible implementation manner of this embodiment, the to-be-detected bidirectional link may include a first link from the first routing device to the second routing device, and the second route The second link of the device to the first routing device.
当所述第一链路的标识与所述第二链路的标识相同时, 所述待检测双向 链路的标识则可以为所述第一链路的标识或所述第二链路的标识。  When the identifier of the first link is the same as the identifier of the second link, the identifier of the to-be-detected bidirectional link may be the identifier of the first link or the identifier of the second link. .
当所述第一链路的标识与所述第二链路的标识不同时, 所述待检测双向 链路的标识则可以为所述第二链路的标识。 When the identifier of the first link is different from the identifier of the second link, the two-way to be detected The identifier of the link may be the identifier of the second link.
随着互联网的发展, 分布式系统无法更好的满足网络扩展性和管理上的 需求,因此,控制和转发分离的集中式系统应运而生,例如:开放流( OpenFlow ) 系统等。 第一路由设备 (例如, Master等)与第二路由设备 (例如, AP等) 之间通过控制通道进行通信, 共同完成原来完全由交换机 /路由器控制的报文 转发过程, 从而实现了数据转发和路由控制的分离。  With the development of the Internet, distributed systems cannot better meet the needs of network scalability and management. Therefore, centralized systems with separate control and forwarding emerge, such as the OpenFlow system. The first routing device (for example, the Master, etc.) communicates with the second routing device (for example, an AP, etc.) through the control channel to jointly complete the packet forwarding process that is completely controlled by the switch/router, thereby implementing data forwarding and Separation of routing control.
可选地, 在本实施例的一个可能的实现方式中, 对于控制和转发分离的 集中式系统,所述发送器 63还可以进一步通过所述第一路由设备与所述路由 设备之间的控制通道, 向所述第一路由设备发送所述第二描述符。  Optionally, in a possible implementation manner of this embodiment, the transmitter 63 may further perform control between the first routing device and the routing device for a centralized system that separates control and forwarding. Channel, sending the second descriptor to the first routing device.
本实施例中, 路由设备通过接收器接收第一路由设备发送的用于标识待 检测双向链路的链路标识和所述第一路由设备为所述待检测双向链路分配的 第一描述符, 并由处理器根据所述链路标识确定所述待检测双向链路, 以及 建立所述待检测双向链路、所述第一描述符以及第二描述符的第一关联关系, 所述第二描述符是所述路由设备为所述待检测双向链路分配的描述符, 进而 由发送器根据所述第一关联关系, 通过所述待检测双向链路向所述第一路由 设备发送第一 BFD报文进行故障检测, 所述第一 BFD报文中包含所述第一 描述符和所述第二描述符, 使得所述接收器能够接收所述第一路由设备根据 第二关联关系, 通过所述待检测双向链路发送的第二 BFD报文, 所述第二 BFD报文中包含所述第一描述符和所述第二描述符, 所述第二关联关系为所 述第一路由设备建立的所述待检测双向链路、 所述第一描述符以及所述第二 描述符的关联关系, 由于待检测双向链路两端的路由设备均能够建立所述待 检测双向链路、 所述第一描述符以及所述第二描述符的关联关系, 因此, 无 需在 IP路径进行回程处理, 能够避免现有技术中由于回程是在 IP路径进行 处理的而导致的如果 IP路径出现故障, 则 BFD的检测结果仍然是待检测双 向链路出现故障的问题, 从而提高了故障检测的可靠性。  In this embodiment, the routing device receives, by the receiver, a link identifier that is sent by the first routing device to identify the bidirectional link to be detected, and a first descriptor that is allocated by the first routing device to the to-be-detected bidirectional link. Determining, by the processor, the bidirectional link to be detected according to the link identifier, and establishing a first association relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor, where The second descriptor is a descriptor allocated by the routing device to the to-be-detected bidirectional link, and the sender sends the first routing device to the first routing device by using the to-be-detected bidirectional link according to the first association relationship. Performing a fault detection on a BFD packet, where the first BFD packet includes the first descriptor and the second descriptor, so that the receiver can receive the first routing device according to the second association relationship. a second BFD packet sent by the bidirectional link to be detected, where the second BFD packet includes the first descriptor and the second descriptor, where the second association relationship is The relationship between the to-be-detected bidirectional link, the first descriptor, and the second descriptor established by the routing device, because the routing devices at both ends of the bidirectional link to be detected can establish the bidirectional link to be detected, The association relationship between the first descriptor and the second descriptor, therefore, there is no need to perform backhaul processing on the IP path, and it is possible to avoid the failure of the IP path caused by the backhaul being processed in the IP path in the prior art. The detection result of the BFD is still a problem that the bidirectional link to be detected is faulty, thereby improving the reliability of the fault detection.
另夕卜, 由于两个方向的 BFD报文均可以通过待检测双向链路 (即双向链 路)从一个路由设备到达另一个路由设备, 无需在 IP路径进行回程处理, 因 此, 只需要在一个会话中完成待检测双向链路的故障检测, 从而减少了两个 路由设备之间的交互次数, 能够节省交互开销。  In addition, since the BFD packets in both directions can pass from one routing device to another routing device through the bidirectional link to be detected (ie, the bidirectional link), there is no need to perform backhaul processing on the IP path, therefore, only one The fault detection of the bidirectional link to be detected is completed in the session, thereby reducing the number of interactions between the two routing devices and saving interaction costs.
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描 述的系统, 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应 过程, 在此不再赘述。 It will be apparent to those skilled in the art that the above description is convenient and concise for the description. For the specific working process of the system, the device and the unit, refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统, 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示 意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可 以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个 系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间 的耦合或直接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合 或通信连接, 可以是电性, 机械或其它的形式。  In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作 为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或 者全部单元来实现本实施例方案的目的。  The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单 元中。 上述集成的单元既可以采用硬件的形式实现, 也可以采用硬件加软件 功能单元的形式实现。  In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
最后应说明的是: 以上实施例仅用以说明本申请的技术方案, 而非对其 限制; 尽管参照前述实施例对本申请进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换。  Finally, it should be noted that the above embodiments are only used to explain the technical solutions of the present application, and are not limited thereto; although the present application is described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced.

Claims

权 利 要求 书 claims
1、 一种双向转发检测 BFD会话建立的方法, 其特征在于, 包括: 第一路由设备向第二路由设备发送用于标识待检测双向链路的链路标识 和所述第一路由设备为所述待检测双向链路分配的第一描述符, 以使得所述 第二路由设备根据所述链路标识确定所述待检测双向链路, 以及建立所述待 检测双向链路、 所述第一描述符以及第二描述符的第一关联关系, 所述第二 描述符是所述第二路由设备为所述待检测双向链路分配的描述符; 1. A method for bidirectional forwarding detection of BFD session establishment, characterized in that it includes: the first routing device sends to the second routing device a link identifier used to identify the bidirectional link to be detected and the first routing device is the The first descriptor of the bidirectional link to be detected is allocated, so that the second routing device determines the bidirectional link to be detected based on the link identifier, and establishes the bidirectional link to be detected, the first A first association relationship between a descriptor and a second descriptor, where the second descriptor is a descriptor allocated by the second routing device for the bidirectional link to be detected;
所述第一路由设备接收所述第二路由设备根据所述第一关联关系, 通过 所述待检测双向链路发送的第一 BFD报文, 所述第一 BFD报文中包含所述 第一描述符和所述第二描述符; The first routing device receives a first BFD message sent by the second routing device through the bidirectional link to be detected according to the first association relationship, and the first BFD message includes the first descriptor and said second descriptor;
所述第一路由设备建立所述待检测双向链路、 所述第一描述符以及所述 第二描述符的第二关联关系, 以及根据所述第二关联关系, 通过所述待检测 双向链路向所述第二路由设备发送第二 BFD报文进行故障检测, 所述第二 BFD报文中包含所述第一描述符和所述第二描述符。 The first routing device establishes a second association relationship between the bidirectional link to be detected, the first descriptor and the second descriptor, and according to the second association relationship, through the bidirectional link to be detected The router sends a second BFD message to the second routing device for fault detection, where the second BFD message includes the first descriptor and the second descriptor.
2、根据权利要求 1所述的方法, 其特征在于, 所述待检测双向链路包括 所述第一路由设备到所述第二路由设备的第一链路, 以及所述第二路由设备 到所述第一路由设备的第二链路; 2. The method of claim 1, wherein the bidirectional link to be detected includes a first link from the first routing device to the second routing device, and a link from the second routing device to the second link of the first routing device;
当所述第一链路的标识与所述第二链路的标识相同时, 所述待检测双向 链路的标识为所述第一链路的标识或所述第二链路的标识。 When the identifier of the first link is the same as the identifier of the second link, the identifier of the bidirectional link to be detected is the identifier of the first link or the identifier of the second link.
3、根据权利要求 2所述的方法, 其特征在于, 当所述第一链路的标识与 所述第二链路的标识不同时, 所述待检测双向链路的标识为所述第二链路的 标识。 3. The method according to claim 2, characterized in that, when the identifier of the first link is different from the identifier of the second link, the identifier of the bidirectional link to be detected is the second link. The link's identifier.
4、 根据权利要求 1~3任一权利要求所述的方法, 其特征在于, 所述第 一路由设备向第二路由设备发送用于标识待检测双向链路的链路标识和所述 第一路由设备为所述待检测双向链路分配的第一描述符, 包括: 4. The method according to any one of claims 1 to 3, characterized in that, the first routing device sends a link identifier used to identify the bidirectional link to be detected and the first routing device to the second routing device. The first descriptor allocated by the routing device for the bidirectional link to be detected includes:
所述第一路由设备通过所述第一路由设备与所述第二路由设备之间的控 制通道, 向所述第二路由设备发送所述链路标识和所述第一描述符。 The first routing device sends the link identifier and the first descriptor to the second routing device through a control channel between the first routing device and the second routing device.
5、 根据权利要求 1~4任一权利要求所述的方法, 其特征在于, 所述第 一路由设备接收所述第二路由设备根据所述第一关联关系, 通过所述待检测 双向链路发送的第一 BFD报文之前, 还包括: 所述第一路由设备接收所述第二路由设备通过所述第一路由设备与所述 第二路由设备之间的控制通道, 发送的所述第二描述符。 5. The method according to any one of claims 1 to 4, characterized in that, the first routing device receives, according to the first association relationship, the second routing device through the bidirectional link to be detected. Before sending the first BFD message, it also includes: The first routing device receives the second descriptor sent by the second routing device through a control channel between the first routing device and the second routing device.
6、 根据权利要求 1~5任一权利要求所述的方法, 其特征在于, 所述第 一路由设备向第二路由设备发送用于标识待检测双向链路的链路标识和所述 第一路由设备为所述待检测双向链路分配的第一描述符, 包括: 6. The method according to any one of claims 1 to 5, characterized in that, the first routing device sends a link identifier used to identify the bidirectional link to be detected and the first routing device to the second routing device. The first descriptor allocated by the routing device for the bidirectional link to be detected includes:
所述第一路由设备通过所述待检测双向链路, 向所述第二路由设备发送 所述链路标识和所述第一描述符。 The first routing device sends the link identifier and the first descriptor to the second routing device through the bidirectional link to be detected.
7、 一种双向转发检测 BFD会话建立方法, 其特征在于, 包括: 第二路由设备接收第一路由设备发送的用于标识待检测双向链路的链路 标识和所述第一路由设备为所述待检测双向链路分配的第一描述符; 7. A bidirectional forwarding detection BFD session establishment method, characterized in that it includes: the second routing device receives a link identifier sent by the first routing device to identify the bidirectional link to be detected and the first routing device is the Describe the first descriptor of the bidirectional link allocation to be detected;
所述第二路由设备根据所述链路标识确定所述待检测双向链路, 以及建 立所述待检测双向链路、 所述第一描述符以及第二描述符的第一关联关系, 所述第二描述符是所述第二路由设备为所述待检测双向链路分配的描述符; 所述第二路由设备根据所述第一关联关系, 通过所述待检测双向链路向 所述第一路由设备发送第一 BFD报文进行故障检测, 所述第一 BFD报文中 包含所述第一描述符和所述第二描述符; The second routing device determines the bidirectional link to be detected based on the link identifier, and establishes a first association relationship between the bidirectional link to be detected, the first descriptor and the second descriptor, The second descriptor is a descriptor allocated by the second routing device to the bidirectional link to be detected; the second routing device sends a message to the third bidirectional link through the bidirectional link to be detected based on the first association relationship. A routing device sends a first BFD message for fault detection, where the first BFD message includes the first descriptor and the second descriptor;
所述第二路由设备接收所述第一路由设备根据第二关联关系, 通过所述 待检测双向链路发送的第二 BFD报文, 所述第二 BFD报文中包含所述第一 描述符和所述第二描述符, 所述第二关联关系为所述第一路由设备建立的所 述待检测双向链路、 所述第一描述符以及所述第二描述符的关联关系。 The second routing device receives a second BFD message sent by the first routing device through the bidirectional link to be detected according to the second association relationship, and the second BFD message includes the first descriptor. and the second descriptor, and the second association relationship is an association relationship between the bidirectional link to be detected, the first descriptor, and the second descriptor established by the first routing device.
8、根据权利要求 7所述的方法, 其特征在于, 所述待检测双向链路包括 所述第一路由设备到所述第二路由设备的第一链路, 以及所述第二路由设备 到所述第一路由设备的第二链路; 8. The method of claim 7, wherein the bidirectional link to be detected includes a first link from the first routing device to the second routing device, and a link from the second routing device to the second link of the first routing device;
当所述第一链路的标识与所述第二链路的标识相同时, 所述待检测双向 链路的标识为所述第一链路的标识或所述第二链路的标识。 When the identifier of the first link is the same as the identifier of the second link, the identifier of the bidirectional link to be detected is the identifier of the first link or the identifier of the second link.
9、根据权利要求 8所述的方法, 其特征在于, 当所述第一链路的标识与 所述第二链路的标识不同时, 所述待检测双向链路的标识为所述第二链路的 标识。 9. The method according to claim 8, characterized in that, when the identifier of the first link is different from the identifier of the second link, the identifier of the bidirectional link to be detected is the second link. The link's identifier.
10、 根据权利要求 7~9任一权利要求所述的方法, 其特征在于, 所述第 二路由设备根据所述第一关联关系, 通过所述待检测双向链路向所述第一路 由设备发送第一 BFD报文进行故障检测之前, 还包括: 10. The method according to any one of claims 7 to 9, characterized in that, according to the first association relationship, the second routing device transmits data to the first path through the bidirectional link to be detected. Before the device sends the first BFD message for fault detection, it also includes:
所述第二路由设备通过所述第一路由设备与所述第二路由设备之间的控 制通道, 向所述第一路由设备发送所述第二描述符。 The second routing device sends the second descriptor to the first routing device through a control channel between the first routing device and the second routing device.
1 1、 一种路由设备, 其特征在于, 包括: 1 1. A routing device, characterized by including:
发送单元, 用于向第二路由设备发送用于标识待检测双向链路的链路标 识和所述路由设备为所述待检测双向链路分配的第一描述符, 以使得所述第 二路由设备根据所述链路标识确定所述待检测双向链路, 以及建立所述待检 测双向链路、 所述第一描述符以及第二描述符的第一关联关系, 所述第二描 述符是所述第二路由设备为所述待检测双向链路分配的描述符; A sending unit configured to send a link identifier used to identify the bidirectional link to be detected and a first descriptor allocated by the routing device for the bidirectional link to be detected to the second routing device, so that the second routing device The device determines the bidirectional link to be detected based on the link identifier, and establishes a first association relationship between the bidirectional link to be detected, the first descriptor, and the second descriptor, where the second descriptor is The descriptor assigned by the second routing device to the bidirectional link to be detected;
接收单元, 用于接收所述第二路由设备根据所述第一关联关系, 通过所 述待检测双向链路发送的第一双向转发检测 BFD报文, 所述第一 BFD报文 中包含所述第一描述符和所述第二描述符; A receiving unit configured to receive a first bidirectional forwarding detection BFD message sent by the second routing device through the bidirectional link to be detected according to the first association relationship, where the first BFD message contains the a first descriptor and said second descriptor;
所述关联单元, 用于建立所述待检测双向链路、 所述第一描述符以及所 述第二描述符的第二关联关系, 以及将所述第二关联关系传输给所述发送单 元; The association unit is configured to establish a second association relationship between the bidirectional link to be detected, the first descriptor and the second descriptor, and transmit the second association relationship to the sending unit;
所述发送单元, 还用于根据所述第二关联关系, 通过所述待检测双向链 路向所述第二路由设备发送第二 BFD报文进行故障检测, 所述第二 BFD报 文中包含所述第一描述符和所述第二描述符。 The sending unit is further configured to send a second BFD message to the second routing device through the bidirectional link to be detected for fault detection according to the second association relationship, and the second BFD message contains the first descriptor and the second descriptor.
12、 根据权利要求 1 1 所述的路由设备, 其特征在于, 所述待检测双向 链路包括所述路由设备到所述第二路由设备的第一链路, 以及所述第二路由 设备到所述路由设备的第二链路; 12. The routing device according to claim 11, wherein the bidirectional link to be detected includes a first link from the routing device to the second routing device, and a link from the second routing device to The second link of the routing device;
当所述第一链路的标识与所述第二链路的标识相同时, 所述待检测双向 链路的标识为所述第一链路的标识或所述第二链路的标识。 When the identifier of the first link is the same as the identifier of the second link, the identifier of the bidirectional link to be detected is the identifier of the first link or the identifier of the second link.
13、 根据权利要求 12 所述的路由设备, 其特征在于, 当所述第一链路 的标识与所述第二链路的标识不同时, 所述待检测双向链路的标识为所述第 二链路的标识。 13. The routing device according to claim 12, wherein when the identifier of the first link is different from the identifier of the second link, the identifier of the bidirectional link to be detected is the third link. The identification of the second link.
14、 根据权利要求 11 ~13任一权利要求所述的路由设备, 其特征在于, 所述发送单元具体用于 14. The routing device according to any one of claims 11 to 13, characterized in that the sending unit is specifically used to
通过所述路由设备与所述第二路由设备之间的控制通道, 向所述第二路 由设备发送所述链路标识和所述第一描述符。 The link identifier and the first descriptor are sent to the second routing device through a control channel between the routing device and the second routing device.
15、 根据权利要求 11 ~14任一权利要求所述的路由设备, 其特征在于, 所述接收单元还用于 15. The routing device according to any one of claims 11 to 14, characterized in that the receiving unit is also used to
接收所述第二路由设备通过所述路由设备与所述第二路由设备之间的控 制通道, 发送的所述第二描述符, 以及将所述第二描述符传输给所述关联单 元。 Receive the second descriptor sent by the second routing device through the control channel between the routing device and the second routing device, and transmit the second descriptor to the association unit.
16、 根据权利要求 11 ~15任一权利要求所述的路由设备, 其特征在于, 所述发送单元具体用于 16. The routing device according to any one of claims 11 to 15, characterized in that the sending unit is specifically used to
所述路由设备通过所述待检测双向链路, 向所述第二路由设备发送所述 链路标识和所述第一描述符。 The routing device sends the link identifier and the first descriptor to the second routing device through the bidirectional link to be detected.
17、 一种路由设备, 其特征在于, 包括: 17. A routing device, characterized by including:
接收单元, 用于接收第一路由设备发送的用于标识待检测双向链路的链 路标识和所述第一路由设备为所述待检测双向链路分配的第一描述符, 以及 将所述链路标识和所述第一描述符传输给关联单元; A receiving unit configured to receive a link identifier sent by the first routing device for identifying the bidirectional link to be detected and a first descriptor allocated by the first routing device for the bidirectional link to be detected, and convert the The link identification and the first descriptor are transmitted to the association unit;
所述关联单元, 用于根据所述链路标识确定所述待检测双向链路, 以及 建立所述待检测双向链路、所述第一描述符以及第二描述符的第一关联关系, 以及将所述第一关联关系传输给发送单元, 所述第二描述符是所述路由设备 为所述待检测双向链路分配的描述符; The association unit is configured to determine the bidirectional link to be detected based on the link identifier, and establish a first association relationship between the bidirectional link to be detected, the first descriptor and the second descriptor, and Transmit the first association relationship to the sending unit, and the second descriptor is a descriptor allocated by the routing device for the bidirectional link to be detected;
所述发送单元, 用于根据所述第一关联关系, 通过所述待检测双向链路 向所述第一路由设备发送第一双向转发检测 BFD报文进行故障检测,所述第 — BFD报文中包含所述第一描述符和所述第二描述符; The sending unit is configured to send a first bidirectional forwarding detection BFD message to the first routing device through the bidirectional link to be detected for fault detection according to the first association relationship, and the -th BFD message contains the first descriptor and the second descriptor;
所述接收单元, 还用于接收所述第一路由设备根据第二关联关系, 通过 所述待检测双向链路发送的第二 BFD报文, 所述第二 BFD报文中包含所述 第一描述符和所述第二描述符, 所述第二关联关系为所述第一路由设备建立 的所述待检测双向链路、 所述第一描述符以及所述第二描述符的关联关系。 The receiving unit is also configured to receive a second BFD message sent by the first routing device through the bidirectional link to be detected according to the second association relationship, where the second BFD message contains the first descriptor and the second descriptor, and the second association relationship is an association relationship between the bidirectional link to be detected, the first descriptor, and the second descriptor established by the first routing device.
18、 根据权利要求 17 所述的路由设备, 其特征在于, 所述待检测双向 链路包括所述第一路由设备到所述路由设备的第一链路, 以及所述路由设备 到所述第一路由设备的第二链路; 18. The routing device according to claim 17, wherein the bidirectional link to be detected includes a first link from the first routing device to the routing device, and a link from the routing device to the third routing device. A second link to the routing device;
当所述第一链路的标识与所述第二链路的标识相同时, 所述待检测双向 链路的标识为所述第一链路的标识或所述第二链路的标识。 When the identifier of the first link is the same as the identifier of the second link, the identifier of the bidirectional link to be detected is the identifier of the first link or the identifier of the second link.
19、 根据权利要求 18 所述的路由设备, 其特征在于, 当所述第一链路 的标识与所述第二链路的标识不同时, 所述待检测双向链路的标识为所述第 二链路的标识。 19. The routing device according to claim 18, characterized in that when the first link When the identifier of is different from the identifier of the second link, the identifier of the bidirectional link to be detected is the identifier of the second link.
20、 根据权利要求 17~19任一权利要求所述的路由设备, 其特征在于, 所述发送单元还用于 20. The routing device according to any one of claims 17 to 19, characterized in that the sending unit is also used to
通过所述第一路由设备与所述路由设备之间的控制通道, 向所述第一路 由设备发送所述第二描述符。 The second descriptor is sent to the first routing device through a control channel between the first routing device and the routing device.
21、 一种路由设备, 其特征在于, 包括: 21. A routing device, characterized by including:
发送器, 用于向第二路由设备发送用于标识待检测双向链路的链路标识 和所述路由设备为所述待检测双向链路分配的第一描述符, 以使得所述第二 路由设备根据所述链路标识确定所述待检测双向链路, 以及建立所述待检测 双向链路、 所述第一描述符以及第二描述符的第一关联关系, 所述第二描述 符是所述第二路由设备为所述待检测双向链路分配的描述符; A sender configured to send a link identifier used to identify the bidirectional link to be detected and a first descriptor allocated by the routing device for the bidirectional link to be detected to the second routing device, so that the second routing device The device determines the bidirectional link to be detected based on the link identifier, and establishes a first association relationship between the bidirectional link to be detected, the first descriptor, and the second descriptor, where the second descriptor is The descriptor assigned by the second routing device to the bidirectional link to be detected;
接收器, 用于接收所述第二路由设备根据所述第一关联关系, 通过所述 待检测双向链路发送的第一双向转发检测 BFD报文, 所述第一 BFD报文中 包含所述第一描述符和所述第二描述符; A receiver configured to receive a first bidirectional forwarding detection BFD message sent by the second routing device through the bidirectional link to be detected according to the first association relationship, where the first BFD message contains the a first descriptor and said second descriptor;
所述处理器, 用于建立所述待检测双向链路、 所述第一描述符以及所述 第二描述符的第二关联关系, 以及将所述第二关联关系传输给所述发送器; 所述发送器, 还用于根据所述第二关联关系, 通过所述待检测双向链路 向所述第二路由设备发送第二 BFD报文进行故障检测, 所述第二 BFD报文 中包含所述第一描述符和所述第二描述符。 The processor is configured to establish a second association relationship between the bidirectional link to be detected, the first descriptor and the second descriptor, and transmit the second association relationship to the sender; The sender is further configured to send a second BFD message to the second routing device through the bidirectional link to be detected for fault detection according to the second association relationship, and the second BFD message contains the first descriptor and the second descriptor.
22、 根据权利要求 21 所述的路由设备, 其特征在于, 所述待检测双向 链路包括所述路由设备到所述第二路由设备的第一链路, 以及所述第二路由 设备到所述路由设备的第二链路; 22. The routing device according to claim 21, wherein the bidirectional link to be detected includes a first link from the routing device to the second routing device, and a link from the second routing device to the second routing device. The second link of the routing device;
当所述第一链路的标识与所述第二链路的标识相同时, 所述待检测双向 链路的标识为所述第一链路的标识或所述第二链路的标识。 When the identifier of the first link is the same as the identifier of the second link, the identifier of the bidirectional link to be detected is the identifier of the first link or the identifier of the second link.
23、 根据权利要求 22 所述的路由设备, 其特征在于, 当所述第一链路 的标识与所述第二链路的标识不同时, 所述待检测双向链路的标识为所述第 二链路的标识。 23. The routing device according to claim 22, wherein when the identifier of the first link is different from the identifier of the second link, the identifier of the bidirectional link to be detected is the third link. The identification of the second link.
24、 根据权利要求 21 ~23任一权利要求所述的路由设备, 其特征在于, 所述发送器具体用于 通过所述路由设备与所述第二路由设备之间的控制通道, 向所述第二路 由设备发送所述链路标识和所述第一描述符。 24. The routing device according to any one of claims 21 to 23, characterized in that the transmitter is specifically used for The link identifier and the first descriptor are sent to the second routing device through a control channel between the routing device and the second routing device.
25、 根据权利要求 21 ~24任一权利要求所述的路由设备, 其特征在于, 所述接收器还用于 25. The routing device according to any one of claims 21 to 24, characterized in that the receiver is also used for
接收所述第二路由设备通过所述路由设备与所述第二路由设备之间的控 制通道,发送的所述第二描述符,以及将所述第二描述符传输给所述处理器。 Receive the second descriptor sent by the second routing device through the control channel between the routing device and the second routing device, and transmit the second descriptor to the processor.
26、 根据权利要求 21 ~25任一权利要求所述的路由设备, 其特征在于, 所述发送器具体用于 26. The routing device according to any one of claims 21 to 25, characterized in that the transmitter is specifically used for
所述路由设备通过所述待检测双向链路, 向所述第二路由设备发送所述 链路标识和所述第一描述符。 The routing device sends the link identifier and the first descriptor to the second routing device through the bidirectional link to be detected.
27、 一种路由设备, 其特征在于, 包括: 27. A routing device, characterized by including:
接收器, 用于接收第一路由设备发送的用于标识待检测双向链路的链路 标识和所述第一路由设备为所述待检测双向链路分配的第一描述符, 以及将 所述链路标识和所述第一描述符传输给处理器; A receiver configured to receive a link identifier sent by the first routing device for identifying the bidirectional link to be detected and a first descriptor allocated by the first routing device for the bidirectional link to be detected, and convert the The link identification and the first descriptor are transmitted to the processor;
所述处理器, 用于根据所述链路标识确定所述待检测双向链路, 以及建 立所述待检测双向链路、 所述第一描述符以及第二描述符的第一关联关系, 以及将所述第一关联关系传输给发送器, 所述第二描述符是所述路由设备为 所述待检测双向链路分配的描述符; The processor is configured to determine the bidirectional link to be detected based on the link identifier, and establish a first association relationship between the bidirectional link to be detected, the first descriptor and the second descriptor, and Transmit the first association relationship to the sender, and the second descriptor is a descriptor allocated by the routing device for the bidirectional link to be detected;
所述发送器, 用于根据所述第一关联关系, 通过所述待检测双向链路向 所述第一路由设备发送第一双向转发检测 BFD报文进行故障检测,所述第一 BFD报文中包含所述第一描述符和所述第二描述符; The sender is configured to send a first bidirectional forwarding detection BFD message to the first routing device through the bidirectional link to be detected for fault detection according to the first association relationship, the first BFD message contains the first descriptor and the second descriptor;
所述接收器, 还用于接收所述第一路由设备根据第二关联关系, 通过所 述待检测双向链路发送的第二 BFD报文, 所述第二 BFD报文中包含所述第 一描述符和所述第二描述符, 所述第二关联关系为所述第一路由设备建立的 所述待检测双向链路、 所述第一描述符以及所述第二描述符的关联关系。 The receiver is further configured to receive a second BFD message sent by the first routing device through the bidirectional link to be detected according to the second association relationship, where the second BFD message contains the first descriptor and the second descriptor, and the second association relationship is an association relationship between the bidirectional link to be detected, the first descriptor, and the second descriptor established by the first routing device.
28、 根据权利要求 27 所述的路由设备, 其特征在于, 所述待检测双向 链路包括所述第一路由设备到所述路由设备的第一链路, 以及所述路由设备 到所述第一路由设备的第二链路; 28. The routing device according to claim 27, wherein the bidirectional link to be detected includes a first link from the first routing device to the routing device, and a link from the routing device to the third routing device. A second link to the routing device;
当所述第一链路的标识与所述第二链路的标识相同时, 所述待检测双向 链路的标识为所述第一链路的标识或所述第二链路的标识。 When the identifier of the first link is the same as the identifier of the second link, the identifier of the bidirectional link to be detected is the identifier of the first link or the identifier of the second link.
29、 根据权利要求 28 所述的路由设备, 其特征在于, 当所述第一链路 的标识与所述第二链路的标识不同时, 所述待检测双向链路的标识为所述第 二链路的标识。 29. The routing device according to claim 28, wherein when the identifier of the first link is different from the identifier of the second link, the identifier of the bidirectional link to be detected is the third link. The identification of the second link.
30、 根据权利要求 27~29任一权利要求所述的路由设备, 其特征在于, 所述发送器还用于 30. The routing device according to any one of claims 27 to 29, characterized in that the transmitter is also used for
通过所述第一路由设备与所述路由设备之间的控制通道, 向所述第一路 由设备发送所述第二描述符。 The second descriptor is sent to the first routing device through a control channel between the first routing device and the routing device.
PCT/CN2012/078561 2012-07-12 2012-07-12 Method and routing device for bfd session establishment WO2014008651A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2012/078561 WO2014008651A1 (en) 2012-07-12 2012-07-12 Method and routing device for bfd session establishment
CN201280000944.8A CN102918807B (en) 2012-07-12 2012-07-12 Method and routing equipment for BFD session establishment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/078561 WO2014008651A1 (en) 2012-07-12 2012-07-12 Method and routing device for bfd session establishment

Publications (1)

Publication Number Publication Date
WO2014008651A1 true WO2014008651A1 (en) 2014-01-16

Family

ID=47615752

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/078561 WO2014008651A1 (en) 2012-07-12 2012-07-12 Method and routing device for bfd session establishment

Country Status (2)

Country Link
CN (1) CN102918807B (en)
WO (1) WO2014008651A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102918807B (en) * 2012-07-12 2015-04-08 华为技术有限公司 Method and routing equipment for BFD session establishment
CN107979500B (en) * 2016-10-21 2020-04-17 中国电信股份有限公司 Method for realizing path detection based on Openflow protocol, network system and Openflow switch
CN107547383B (en) * 2017-07-26 2020-04-03 新华三技术有限公司 Path detection method and device
CN109379241B (en) * 2018-12-27 2021-12-24 新华三技术有限公司 Path information determination method and device
CN114172798B (en) * 2021-11-08 2023-10-24 烽火通信科技股份有限公司 BIER network fault detection method, device, equipment and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141330A (en) * 2007-10-23 2008-03-12 华为技术有限公司 Method, system and equipment to establish BFD detection for LSP tunnel
US20080247324A1 (en) * 2007-04-06 2008-10-09 Nadeau Thomas D Detection of specific bfd path failures
CN101447900A (en) * 2008-12-15 2009-06-03 华为技术有限公司 Method, system and device for building bidirectional forwarding detection
CN102918807A (en) * 2012-07-12 2013-02-06 华为技术有限公司 Method and routing equipment for bfd session establishment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771577B (en) * 2008-12-31 2012-10-17 华为技术有限公司 Method, system and equipment for establishing bidirectional forwarding detection (BFD) for bidirectional LSP
CN102158371A (en) * 2011-04-12 2011-08-17 杭州华三通信技术有限公司 Link performance detection method and device based on BFD (Bidirectional Forwarding Detection)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080247324A1 (en) * 2007-04-06 2008-10-09 Nadeau Thomas D Detection of specific bfd path failures
CN101141330A (en) * 2007-10-23 2008-03-12 华为技术有限公司 Method, system and equipment to establish BFD detection for LSP tunnel
CN101447900A (en) * 2008-12-15 2009-06-03 华为技术有限公司 Method, system and device for building bidirectional forwarding detection
CN102918807A (en) * 2012-07-12 2013-02-06 华为技术有限公司 Method and routing equipment for bfd session establishment

Also Published As

Publication number Publication date
CN102918807B (en) 2015-04-08
CN102918807A (en) 2013-02-06

Similar Documents

Publication Publication Date Title
CN103748835B (en) The dynamic renewal of label switched path
JP5484590B2 (en) Method, device and system for processing service traffic based on pseudowire
CN101212400B (en) Method and system for negotiating bidirectional forwarding detection session identifier for pseudo wire
CN106656794B (en) Message transmission method and device
US8130775B2 (en) Mechanism for protecting a pseudo-wire
WO2014047784A1 (en) Method for determining packet forwarding path, network device and control device
WO2009056034A1 (en) Method, system and equipment to establish bfd detection for lsp tunnel
WO2012106986A1 (en) Method for negotiating flow label, and related device and system thereof
CN103916275A (en) BFD detection device and method
CN109672619A (en) A kind of method, equipment and system handling message
WO2014012207A1 (en) Label switching path establishment method, data forwarding method and device
CN102282805B (en) Method for service protection and access device
JP2011528524A (en) Establishing pseudowires in packet-switched networks
US20090185495A1 (en) Method, system of fault detection for pseudo wires and service provider edge router thereof
CN101610535A (en) Multilink direct continuous show scape guarantees the method, system and device of BFD conversation stability down
WO2014008651A1 (en) Method and routing device for bfd session establishment
WO2015149353A1 (en) Oam packet processing method, network device and network system
EP3255838B1 (en) Method, switching device and network controller for protecting links in software-defined network (sdn)
KR20220123070A (en) Detection apparatus, processing method, system and control, communication device, storage medium
CN109788018B (en) Cross-domain service intercommunication method, network equipment and storage medium
US9515923B2 (en) Method and device for processing interconnected ring in multi-protocol label switching
US8427939B2 (en) MPLS tunnel identification method and device
WO2014101185A1 (en) Method, apparatus and system for detecting performance of multicast channel
WO2014048120A1 (en) Method, network node and system for implementing point-to-miltipoint multicast
WO2012142753A1 (en) Method and device for monitoring ip bearer network performance

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201280000944.8

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12881110

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12881110

Country of ref document: EP

Kind code of ref document: A1