CN113746697A - Link fault detection method, device and equipment - Google Patents

Link fault detection method, device and equipment Download PDF

Info

Publication number
CN113746697A
CN113746697A CN202110935214.8A CN202110935214A CN113746697A CN 113746697 A CN113746697 A CN 113746697A CN 202110935214 A CN202110935214 A CN 202110935214A CN 113746697 A CN113746697 A CN 113746697A
Authority
CN
China
Prior art keywords
link
bfd
neighbor
route
sending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110935214.8A
Other languages
Chinese (zh)
Inventor
胡益明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Dimiantong Information Network Co ltd
Original Assignee
Shanghai Dimiantong Information Network Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Dimiantong Information Network Co ltd filed Critical Shanghai Dimiantong Information Network Co ltd
Priority to CN202110935214.8A priority Critical patent/CN113746697A/en
Publication of CN113746697A publication Critical patent/CN113746697A/en
Pending legal-status Critical Current

Links

Images

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/0823Errors, e.g. transmission errors
    • 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
    • H04L45/026Details of "hello" or keep-alive messages
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a link fault detection method, a device and equipment. The method comprises the following steps: discovering a neighbor route through a hello message mechanism, wherein the neighbor route is a core route node of a data center of a receiving end; establishing an adjacency relation with the neighbor route; acquiring neighbor information of the neighbor route; and sending the neighbor information to a Bidirectional Forwarding Detection (BFD) protocol so as to enable the BFD to carry out link fault detection after establishing a BFD session, wherein a link is a communication link between a local terminal and the receiving terminal. By using the method, the time for detecting the link failure can be effectively reduced, and the millisecond-level automatic switching is realized when the link fails.

Description

Link fault detection method, device and equipment
Technical Field
The embodiment of the invention relates to the technical field of routing, in particular to a link fault detection method, a device and equipment.
Background
In order to reduce the influence of the device failure on the service and improve the reliability of the network, the network device needs to be able to detect the communication failure with the adjacent device as soon as possible, so as to take measures in time and ensure the service to continue.
In the prior art, a Hello message mechanism of a routing protocol is usually adopted for link failure detection. However, the failure detection process of these routing protocols is too complex, so that the link failure detection time is long, which can generally reach more than 30 seconds, and when the transmission data reaches the level of gigabit rate, a large amount of data is lost in the detection time.
Disclosure of Invention
Embodiments of the present invention provide a method, an apparatus, and a device for detecting a link failure, which can effectively reduce the time for detecting a link failure, and implement millisecond-level automatic switching when a link fails.
In a first aspect, an embodiment of the present invention provides a link failure detection method, including:
discovering a neighbor route through a hello message mechanism, wherein the neighbor route is a core route node of a data center of a receiving end;
establishing an adjacency relation with the neighbor route;
acquiring neighbor information of the neighbor route;
and sending the neighbor information to a Bidirectional Forwarding Detection (BFD) protocol so as to enable the BFD to carry out link fault detection after establishing a BFD session, wherein a link is a communication link between a local terminal and the receiving terminal.
In a second aspect, an embodiment of the present invention further provides a link failure detection method, including:
receiving neighbor information of a neighbor route;
establishing a BFD session according to the neighbor information;
and carrying out link fault detection on a main link between the local terminal and the sending terminal which have established the BFD session.
In a third aspect, an embodiment of the present invention further provides a link failure detection apparatus, including:
the device comprises a discovery module, a routing module and a routing module, wherein the discovery module is used for discovering neighbor routes through a hello message mechanism, and the neighbor routes are core routing nodes of a data center of a receiving end;
the establishing module is used for establishing an adjacent relation with the neighbor route;
the acquisition module is used for acquiring the neighbor information of the neighbor route;
and the sending module is used for sending the neighbor information to a Bidirectional Forwarding Detection (BFD) protocol so as to detect link failure after the BFD establishes a BFD session, wherein the link is a communication link between the local terminal and the receiving terminal.
In a fourth aspect, an embodiment of the present invention further provides a link failure detection apparatus, including:
the receiving module is used for receiving neighbor information of the neighbor route;
the establishing module is used for establishing BFD conversation according to the neighbor information;
and the detection module is used for detecting the link fault of the main link between the local end and the sending end which establish the BFD session.
In a fifth aspect, an embodiment of the present invention further provides a computer device, which is used as a core routing node of a data center at a sending end or a core routing node of a data center at a receiving end; the method comprises the following steps:
one or more processors;
storage means for storing one or more programs;
the one or more programs are executable by the one or more processors to cause the one or more processors to perform a method of link failure detection as described in any embodiment of the invention.
The embodiment of the invention provides a link fault detection method, a device and equipment, which are characterized in that a neighbor route is discovered through a hello message mechanism, the neighbor route is a core route node of a data center of a receiving end, then an adjacent relation is established with the neighbor route, then neighbor information of the neighbor route is obtained, finally the neighbor information is sent to a Bidirectional Forwarding Detection (BFD) protocol, so that link fault detection is carried out after BFD establishes a BFD session, and a link is a communication link between the local end and the receiving end. By using the technical scheme, the time for detecting the link failure can be effectively reduced, and the millisecond-level automatic switching is realized when the link fails.
Drawings
Fig. 1 is a schematic flowchart of a link failure detection method according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a link failure detection method according to a second embodiment of the present invention;
fig. 3 is a schematic diagram illustrating an example of a link failure detection method according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a link failure detection apparatus according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a link failure detection apparatus according to a fifth embodiment of the present invention.
Detailed Description
Embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present invention are shown in the drawings, it should be understood that the present invention may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present invention. It should be understood that the drawings and the embodiments of the present invention are illustrative only and are not intended to limit the scope of the present invention.
It should be understood that the various steps recited in the method embodiments of the present invention may be performed in a different order and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the invention is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present invention are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in the present invention are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that reference to "one or more" unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present invention are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The traditional routing technology mainly comprises Open Shortest Path First (OSPF) routing protocols, protocols from an Intermediate System to an Intermediate System (IS-IS), and the like, and the fault detection process of the upper-layer protocols IS too complex, so that the link fault detection time IS long, generally more than 30 seconds, and the corresponding data center level cannot be qualified, and the packet loss of application layer data IS sensitive.
In order to reduce the influence of the device failure on the service and improve the reliability of the network, the network device needs to be able to detect the communication failure with the adjacent device as soon as possible, so as to take measures in time and ensure the service to continue. In the prior art, the following two methods are generally adopted to detect a link failure. The first method is to detect link hardware faults by hardware detection signals, such as by Synchronous Digital Hierarchy (SDH) alarms. Another method is to adopt a hello message mechanism of a routing protocol to detect the link failure.
However, the above two methods have the following problems:
1. not all media are capable of providing hardware detection.
2. The hello message mechanism of the routing protocol needs longer time, which is more than 10 seconds, for detecting the link failure. When the data reaches the gigabit rate level, a large amount of data is lost during this detection time.
3. In a three-layer network, the hello message detection mechanism cannot detect faults for all routing protocols.
In view of the above problems, the present invention provides a link failure detection method, which can effectively solve the above problems.
Example one
Fig. 1 is a flowchart of a link failure detection method according to an embodiment of the present invention, where the method is applicable to a case of performing failure detection on a link between data centers, and the method may be executed by a link failure detection apparatus, where the apparatus may be implemented by software and/or hardware and is generally integrated on a computer device at a sending end.
As shown in fig. 1, a method for detecting a link failure according to an embodiment of the present invention is executed by a core routing node of a local data center, and includes the following steps:
s110, discovering a neighbor route through a hello message mechanism, wherein the neighbor route is a core route node of a data center of a receiving end.
In this embodiment, the home terminal may serve as a sending terminal, and for example, if a routing node of the data center a needs to send data to a routing node of the data center B, that is, network interconnection is performed, the data center a may serve as the sending terminal, and the data center B serves as the receiving terminal.
The routing protocol of the core routing node of the local data center may be any routing protocol, and for example, the routing protocol may be an OSPF protocol.
The neighbor route may be a route adjacent to the home-end route, and the neighbor route may be a route node corresponding to the receiving end. It can be understood that the route corresponding to the home terminal also belongs to the neighbor route for the neighbor route, that is, the route of the home terminal and the neighbor route are neighbors to each other.
In this embodiment, the specific process of discovering the neighbor route through the hello packet mechanism may be as follows: the home terminal data center core routing node sends a hello message to the receiving terminal data center core routing node, the neighbor router in the message is empty and is used for discovering neighbor routes, and when the receiving terminal data center core routing node receives the message, the state of the receiving terminal data center core routing node is init; after receiving the hello message, the core routing node of the receiving end data center can know that the core routing node of the local end data center is a neighbor of the core routing node according to the source address in the data packet.
It should be noted that the core routing node of the local data center may send hello packets in a multicast mode, and for a network that does not support multicast, the IP address of a neighbor needs to be manually specified.
And S120, establishing an adjacency relation with the neighbor route.
In this embodiment, after discovering the neighbor route, the core routing node of the local data center may perform one step of establishing an adjacency relation with the neighbor route. It should be noted that the sending time of the hello packet may be 10s and 30s, the aging time of the hello packet must be 4 times of the hello time, and if the condition is not met, the adjacency relation cannot be established.
In this embodiment, before the route of the OSPF protocol is normally run, an adjacency relationship needs to be established with the neighbor route. The process of establishing the adjacency may be to complete parameter negotiation in the hello message, where the parameter may include a sending rate of the message.
The specific process of establishing the adjacency relationship between the core routing node of the local data center and the neighbor route may be as follows: after discovering the neighbor route, the receiving end data center core routing node may send a new hello message for establishing the neighbor relationship, where the neighbor of the message is the RouterID of the receiving end data center core routing node, when the home end data center core routing node receives the message, the home end data center core routing node enters the 2way state from nit, and simultaneously the home end data center core routing node also sends the hello message where the neighbor is the RouterID of the receiving end data center core routing node, when the receiving end data center core routing node receives the hello message, the init enters the 2way state, and at this time, the establishment of the neighbor relationship is completed.
S130, acquiring neighbor information of the neighbor route.
In this embodiment, the neighbor information may include parameters of the neighbor route and detection parameters, where the detection parameters may include a destination address and a source address. After the core routing node of the local data center establishes the adjacency relation with the neighbor route, the neighbor information can be directly acquired.
And S140, sending the neighbor information to a Bidirectional Forwarding Detection (BFD) protocol so as to enable the BFD to carry out link fault detection after establishing a BFD session, wherein a link is a communication link between a local terminal and a receiving terminal.
Among them, Bidirectional Forwarding Detection (BFD) is a network protocol for detecting a failure between two Forwarding points. The link may be a link between the home terminal and the receiving terminal, which enables the two terminals to communicate, for example, between data center a and data center B, network communication and data transmission may be performed through the link.
In this embodiment, the routing protocol OSPF protocol of the home terminal may notify the neighbor information to the BFD protocol, and the BFD protocol may establish a BFD session according to the neighbor information, and the home terminal performs link failure detection on a link between the two ends on the basis of establishing the BFD session. It should be noted that the routing protocol OSPF protocol of the home terminal may be an upper layer protocol of the BFD protocol.
Further, the link between the local terminal and the receiving terminal comprises a main link and a standby link, and the standby link performs data transmission after the main link fails.
In this embodiment, the link between the core routing node of the local data center and the core routing node of the receiving end data center may include two links, and the link may be a physical link or a logical link. The main link can be used for network communication, the standby link can be used for realizing route switching, and the standby link can replace the main link to carry out network communication when the main link fails as a backup channel, so that the reliability of the network can be ensured. It should be noted that the link failure detection is performed on the main link.
Further, the performing of the link failure detection includes: periodically sending a BFD control message to a receiving end according to a sending rate obtained after the local end and the receiving end negotiate; and if the receiving end cannot receive the BFD control message, determining that the main link fails.
In this embodiment, the sending of the BFD control packet periodically may be understood as sending the BFD control packet once at a preset time interval. The sending rate may be a parameter obtained by negotiation when the home terminal and the receiving terminal establish an adjacency relationship.
In this embodiment, whether the main link fails may be determined according to whether the receiving end can receive the BFD control packet sent by the local end. It can be understood that determining whether the main link fails may be performed by detecting both ends at the same time, that is, both ends may send the BFD control packet to the opposite end at the same time to detect whether the main link fails. In this embodiment, it is emphasized that the local terminal sends a BFD control packet to the receiving terminal to perform the primary link failure detection.
The link fault detection method provided by the embodiment of the invention comprises the steps of firstly discovering a neighbor route through a hello message mechanism, wherein the neighbor route is a core route node of a data center of a receiving end; secondly, establishing an adjacency relation with the neighbor route; then acquiring neighbor information of the neighbor route; and finally, sending the neighbor information to a Bidirectional Forwarding Detection (BFD) protocol so as to enable the BFD to carry out link fault detection after establishing a BFD session, wherein a link is a communication link between a local terminal and the receiving terminal. The method utilizes BFD to detect the link failure, thereby effectively reducing the time of detecting the link failure; when the main link fails, normal network communication can be ensured through the standby link.
Example two
Fig. 2 is a flowchart of a link failure detection method according to a second embodiment of the present invention, where the method is applicable to a case of performing failure detection on a link between data centers, and the method may be executed by a link failure detection apparatus, where the apparatus may be implemented by software and/or hardware and is generally integrated on a computer device at a receiving end.
As shown in fig. 2, a link failure detection provided by the second embodiment of the present invention includes the following steps:
s210, receiving neighbor information of the neighbor route.
In this embodiment, the local end may serve as a receiving end, and the neighbor route may be a core routing node of the data center of the receiving end.
And S220, establishing a BFD session according to the neighbor information.
In this embodiment, after the home terminal, that is, the receiving terminal, receives the neighbor information, the BFD may start to establish a BFD session, and the BFD is linked with an upper layer routing protocol, for example, an OSFP protocol, so as to implement fast convergence of a route and ensure continuity of a service.
It will be appreciated that the BFD session may be viewed at the home data center core routing node so that it may be determined whether the BFD session is complete.
In this embodiment, when the BFD session is established, there may be two establishment modes, including an active establishment mode and a passive establishment mode. The active establishment mode comprises that before the BFD session is established, no matter whether a sending end receives a BFD control message or not, a core routing node of a data center of the sending end actively sends the BFD control message; the passive establishment mode comprises that before the BFD session is established, the sending end does not actively send the BFD control message until the BFD control message is received, and then the BFD control message is sent.
It should be noted that both ends need to have at least one end operating in the active mode to successfully establish the BFD session. When multiple links exist between two ends, BFD may establish a BFD session on one link between the two ends, and then may establish a BFD session for each link.
Further, the establishing a BFD session according to the neighbor information includes: discovering BFD neighbors according to the neighbor information; and establishing an adjacency relation with the BFD neighbor.
In this embodiment, the BFD neighbor may be discovered according to the neighbor parameters included in the neighbor information, and then an adjacency is established with the BFD neighbor after the BFD neighbor is discovered. The process of discovering the BFD neighbor and establishing the adjacency with the BFD neighbor is similar to the process of discovering the neighbor route and establishing the adjacency with the neighbor route by the OSPF routing protocol in the first embodiment of the present invention, and is not described herein again.
And S230, carrying out link fault detection on the main link between the local end and the sending end which have established the BFD session.
In this embodiment, BFD may perform two modes of operation after session establishment, and the modes of operation may include an asynchronous mode and a query mode. In the asynchronous mode, the nodes at the two ends can periodically send BFD control messages, and if the BFD control messages of the opposite end are not received within the detection time, the main link can be considered to be in fault. The query mode may include that the local end may stop sending BFD messages after the BFD session is established unless the displayed verification connectivity is required. If the connectivity is to be displayed, the magnet can send a short series of BFD control packets, and if no returned message is received within the detection time, the conversation is declared to be in a stop state Down; if the response message of the opposite end can be received, the protocol can be kept silent again.
It should be noted that the BFD detection may be bidirectional detection, in the first embodiment, the sending end sends the BFD control packet to the receiving end for link detection, and in the present embodiment, the receiving end sends the BFD control packet to the sending end for link detection.
Further, the performing fault detection on the main link between the local end and the sending end, where the BFD session has been established, includes: periodically sending a BFD control message to a sending end according to a sending rate obtained after the local end and the sending end negotiate; and if the sending end cannot receive the BFD control message, determining that the main link fails.
In this embodiment, whether the main link fails may be determined according to whether the sending end can receive the BFD control packet sent by the local end.
Further, network failures detected by BFD may be recovered by the forwarding plane or by the control plane.
The link failure detection method provided by the second embodiment of the present invention first receives neighbor information of a neighbor route, then establishes a BFD session according to the neighbor information, and finally performs link failure detection on a main link between a home terminal and a sending terminal, where the BFD session has been established. The method utilizes BFD to detect the link fault, the fault detection time is far shorter than 1 second, the link fault can be quickly detected, the forwarding communication state of the link or the route can be monitored, and the network communication performance is improved.
Further, after the link failure detection, the method further includes: if the main link is detected to be in fault, the BFD session state is changed into a stop state; the BFD protocol informs a routing protocol process BFD neighbors that data transmission cannot be carried out; the routing protocol process interrupts the adjacency of the routing node with the neighbor route.
In this embodiment, the BFD session state changes to the stopped state, i.e., the session state changes to down. When the BFD session state is changed into down, the BFD can inform the routing protocol process that the BFD message can not reach the BFD neighbor, and at the moment, the routing protocol OSPF protocol process can interrupt the adjacency relation with the neighbor route.
In this embodiment, if a link failure is detected, the BFD neighbor may be removed, and an upper layer protocol, i.e., an OSPF protocol, which is an upper layer routing protocol of the BFD protocol, may be notified immediately, and the OSPF protocol may perform a link switch immediately, and switch to a standby link for network communication.
EXAMPLE III
Fig. 3 is a schematic diagram illustrating an example of a link failure detection method according to a third embodiment of the present invention, as shown in fig. 3, a node RA of a data center a, that is, a core routing node of a data center at a sending end, performs network communication with a node RB of a data center B, that is, a core routing node of a data center at a receiving end, through a Fiber communication primary link Fiber1, that is, a primary link, and a Fiber communication backup link Fiber2, that is, a backup link, through a Fiber communication backup link, the routing protocol OSPF protocol, that is, the routing protocol of the routing node at the sending end, establishes an adjacency relationship with OSPF neighbors, and sends the neighbor information to a BFD protocol, which establishes a session according to the neighbor information, after establishing the session, both ends can perform fault detection on the link through BFD, when the Fiber1 is found to be failed, the BFD session state can be changed into Down, namely the BFD session state is changed into a stop state, and the OSPF state is changed into Down, namely the adjacency relation between the routing node and the neighbor route is interrupted.
Example four
Fig. 4 is a schematic structural diagram of a link failure detection apparatus according to a fourth embodiment of the present invention, where the apparatus is applicable to a case of performing failure detection on a link between data centers, where the apparatus may be implemented by software and/or hardware and is generally integrated on a computer device at a sending end.
As shown in fig. 4, the apparatus includes: a discovery module 410, an establishment module 420, an acquisition module 430, and a sending module 440.
A discovery module 410, configured to discover a neighbor route through a hello packet mechanism, where the neighbor route is a core routing node of a data center at a receiving end;
an establishing module 420, configured to establish an adjacency relation with the neighbor route;
an obtaining module 430, configured to obtain neighbor information of the neighbor route;
a sending module 440, configured to send the neighbor information to a Bidirectional Forwarding Detection (BFD) protocol, so that the BFD establishes a BFD session and then performs link failure detection, where a link is a communication link between the local terminal and the receiving terminal.
In this embodiment, the apparatus is first configured to discover a neighbor route through a hello packet mechanism by a discovery module 410, where the neighbor route is a route corresponding to a core routing node of a data center at a receiving end; secondly, establishing an adjacency relation with the neighbor route through an establishing module 420; then, the neighbor information of the neighbor route is acquired through the acquisition module 430; and finally, sending the neighbor information to a Bidirectional Forwarding Detection (BFD) protocol through a sending module 440, so that link failure detection is performed after BFD establishes a BFD session, wherein a link is a communication link between the local terminal and the receiving terminal.
The embodiment provides a link failure detection device, which can effectively reduce the time for detecting link failure by using BFD to detect link failure; when the main link fails, normal network communication can be ensured through the standby link.
Further, the link between the local terminal and the receiving terminal comprises a main link and a standby link, and the standby link performs data transmission after the main link fails.
Further, the performing of the link failure detection includes: periodically sending a BFD control message to a receiving end according to a sending rate obtained after the local end and the receiving end negotiate; and if the receiving end cannot receive the BFD control message, determining that the main link fails.
The link fault detection device can execute the link fault detection method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a link failure detection apparatus according to a fifth embodiment of the present invention, which is applicable to a case of performing failure detection on a link between data centers, where the apparatus may be implemented by software and/or hardware and is generally integrated on a computer device at a receiving end.
As shown in fig. 5, the apparatus includes: a receiving module 510, a establishing module 520, and a detecting module 530.
A receiving module 510, configured to receive neighbor information of a neighbor route;
an establishing module 520, configured to establish a BFD session according to the neighbor information;
a detecting module 530, configured to perform link failure detection on a main link between the local end and the sending end that have established the BFD session.
In this embodiment, the apparatus first receives neighbor information of a neighbor route through a receiving module 510, then establishes a BFD session according to the neighbor information through an establishing module 520, and finally performs link failure detection on a main link between a home terminal and a sending terminal, where the BFD session has been established, through a detecting module 530.
The embodiment provides a link fault detection device, which performs link fault detection by using BFD, wherein the fault detection time is much shorter than 1 second, so that the link fault can be quickly detected, the forwarding communication state of a link or a route can be monitored, and the network communication performance can be improved.
Further, the establishing module 520 is specifically configured to discover a BFD neighbor according to the neighbor information; and establishing an adjacency relation with the BFD neighbor.
Further, the detecting module 530 is specifically configured to periodically send a BFD control packet to the sending end according to the sending rate obtained after the negotiation between the local end and the sending end; and if the sending end cannot receive the BFD control message, determining that the main link fails.
Further, the apparatus further includes an interrupt module, configured to change the BFD session state to a stop state if it is detected that the main link fails; the BFD protocol informs a routing protocol process BFD neighbors that data transmission cannot be carried out; the routing protocol process interrupts the adjacency of the routing node with the neighbor route.
EXAMPLE six
The sixth embodiment of the invention provides computer equipment. The computer device provided by the sixth embodiment of the invention can be used as a core routing node of a data center at a sending end or a core routing node of a data center at a receiving end; the method comprises the following steps: one or more processors and storage devices; the processor in the computer device may be one or more of, for example, a processor; storage means for storing one or more programs; the one or more programs are executed by the one or more processors to cause the one or more processors to implement the link failure detection method according to any one of the embodiments of the present invention.
The computer device may further include: an input device and an output device.
The processor, storage, input, and output devices in the computer apparatus may be connected by a bus or other means, such as by a bus connection.
The storage device in the computer device is used as a computer-readable storage medium, and can be used to store one or more programs, which may be software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the link failure detection method provided in one or two embodiments of the present invention (for example, the modules in the link failure detection apparatus shown in fig. 4 include a discovery module 410, an establishment module 420, an acquisition module 430, and a transmission module 440, and the modules in the link failure detection apparatus shown in fig. 5 include a receiving module 510, an establishment module 520, and a detection module 530). The processor executes various functional applications and data processing of the computer device by executing software programs, instructions and modules stored in the storage device, that is, implements the link failure detection method in the above method embodiment.
The storage device may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the computer device, and the like. Further, the storage device may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the storage device may further include memory located remotely from the processor 61, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function controls of the computer apparatus. The output device may include a display device such as a display screen.
And when one or more programs included in the computer device are executed by the one or more processors, the programs perform operations corresponding to the sending-end data center core routing node or perform operations corresponding to the receiving-end data center core routing node.
Executing the operation corresponding to the core routing node of the sending end data center, comprising the following steps:
discovering a neighbor route through a hello message mechanism, wherein the neighbor route is a core route node of a data center of a receiving end;
establishing an adjacency relation with the neighbor route;
acquiring neighbor information of the neighbor route;
and sending the neighbor information to a Bidirectional Forwarding Detection (BFD) protocol so as to enable the BFD to carry out link fault detection after establishing a BFD session, wherein a link is a communication link between a local terminal and the receiving terminal.
Executing the operation corresponding to the core routing node of the receiving end data center, comprising the following steps:
receiving neighbor information of a neighbor route;
establishing a BFD session according to the neighbor information;
and carrying out link fault detection on a main link between the local terminal and the sending terminal which have established the BFD session.
EXAMPLE seven
An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is used to execute a link failure detection method when executed by a processor.
For example, the method for detecting the link failure of the core routing node of the application and sending end data center comprises the following steps:
discovering a neighbor route through a hello message mechanism, wherein the neighbor route is a core route node of a data center of a receiving end;
establishing an adjacency relation with the neighbor route;
acquiring neighbor information of the neighbor route;
and sending the neighbor information to a Bidirectional Forwarding Detection (BFD) protocol so as to enable the BFD to carry out link fault detection after establishing a BFD session, wherein a link is a communication link between a local terminal and the receiving terminal.
As applied to a receiver data center core routing node, a link failure detection method, the method comprising:
receiving neighbor information of a neighbor route;
establishing a BFD session according to the neighbor information;
and carrying out link fault detection on a main link between the local terminal and the sending terminal which have established the BFD session.
Optionally, the program, when executed by the processor, may be further configured to perform a link failure detection method provided in any embodiment of the present invention.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a flash Memory, an optical fiber, a portable CD-ROM, an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. A computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take a variety of forms, including, but not limited to: an electromagnetic signal, an optical signal, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, Radio Frequency (RF), etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A link failure detection method is executed by a core routing node of a local data center, and comprises the following steps:
discovering a neighbor route through a hello message mechanism, wherein the neighbor route is a core route node of a data center of a receiving end;
establishing an adjacency relation with the neighbor route;
acquiring neighbor information of the neighbor route;
and sending the neighbor information to a Bidirectional Forwarding Detection (BFD) protocol so as to enable the BFD to carry out link fault detection after establishing a BFD session, wherein a link is a communication link between a local terminal and the receiving terminal.
2. The method of claim 1, wherein the link between the home terminal and the receiving terminal comprises a main link and a backup link, and the backup link performs data transmission after the main link fails.
3. The method of claim 1, wherein performing link failure detection comprises:
periodically sending a BFD control message to a receiving end according to a sending rate obtained after the local end and the receiving end negotiate;
and if the receiving end cannot receive the BFD control message, determining that the main link fails.
4. A link failure detection method is executed by a core routing node of a local data center, and comprises the following steps:
receiving neighbor information of a neighbor route;
establishing a BFD session according to the neighbor information;
and carrying out link fault detection on a main link between the local terminal and the sending terminal which have established the BFD session.
5. The method of claim 4, wherein establishing a BFD session according to the neighbor information comprises:
discovering BFD neighbors according to the neighbor information;
and establishing an adjacency relation with the BFD neighbor.
6. The method according to claim 4, wherein the performing failure detection on the main link between the local end and the sending end, where the BFD session is established, comprises:
periodically sending a BFD control message to a sending end according to a sending rate obtained after the local end and the sending end negotiate;
and if the sending end cannot receive the BFD control message, determining that the main link fails.
7. The method of claim 1 or 4, further comprising, after performing link failure detection:
if the main link is detected to be in fault, the BFD session state is changed into a stop state;
the BFD protocol informs a routing protocol process BFD neighbors that data transmission cannot be carried out;
the routing protocol process interrupts the adjacency of the routing node with the neighbor route.
8. A link failure detection apparatus, the apparatus comprising:
the device comprises a discovery module, a routing module and a routing module, wherein the discovery module is used for discovering neighbor routes through a hello message mechanism, and the neighbor routes are core routing nodes of a data center of a receiving end;
the establishing module is used for establishing an adjacent relation with the neighbor route;
the acquisition module is used for acquiring the neighbor information of the neighbor route;
and the sending module is used for sending the neighbor information to a Bidirectional Forwarding Detection (BFD) protocol so as to detect link failure after the BFD establishes a BFD session, wherein the link is a communication link between the local terminal and the receiving terminal.
9. A link failure detection apparatus, the apparatus comprising:
the receiving module is used for receiving neighbor information of the neighbor route;
the establishing module is used for establishing BFD conversation according to the neighbor information;
and the detection module is used for detecting the link fault of the main link between the local end and the sending end which establish the BFD session.
10. A computer device is characterized in that the computer device is used as a core routing node of a data center at a sending end or a core routing node of a data center at a receiving end; the method comprises the following steps:
one or more processors;
storage means for storing one or more programs;
the one or more programs being executable by the one or more processors to cause the one or more processors to perform the link failure detection method of any of claims 1-7.
CN202110935214.8A 2021-08-16 2021-08-16 Link fault detection method, device and equipment Pending CN113746697A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110935214.8A CN113746697A (en) 2021-08-16 2021-08-16 Link fault detection method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110935214.8A CN113746697A (en) 2021-08-16 2021-08-16 Link fault detection method, device and equipment

Publications (1)

Publication Number Publication Date
CN113746697A true CN113746697A (en) 2021-12-03

Family

ID=78731119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110935214.8A Pending CN113746697A (en) 2021-08-16 2021-08-16 Link fault detection method, device and equipment

Country Status (1)

Country Link
CN (1) CN113746697A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101695037A (en) * 2009-09-29 2010-04-14 清华大学 Quick fault detection method between multi-hop routing systems
CN103916275A (en) * 2014-03-31 2014-07-09 杭州华三通信技术有限公司 BFD detection device and method
EP3232611A1 (en) * 2014-12-31 2017-10-18 Huawei Technologies Co., Ltd. Method, device and system for performing bidirectional forwarding detection on aggregated link

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101695037A (en) * 2009-09-29 2010-04-14 清华大学 Quick fault detection method between multi-hop routing systems
CN103916275A (en) * 2014-03-31 2014-07-09 杭州华三通信技术有限公司 BFD detection device and method
EP3232611A1 (en) * 2014-12-31 2017-10-18 Huawei Technologies Co., Ltd. Method, device and system for performing bidirectional forwarding detection on aggregated link

Similar Documents

Publication Publication Date Title
EP2996290B1 (en) Packet forwarding method, apparatus, and system
US8331222B2 (en) Link fault handling method and data forwarding apparatus
US9537846B2 (en) Integrity check optimization systems and methods in live connectivity frames
WO2017036180A1 (en) Packet processing method and device
WO2006099784A1 (en) A method for detecting link fault between end-to-end nodes in a hybrid network
WO2011157145A2 (en) Main/backup switching method between communication device, communication device, system and service request device
US10567272B2 (en) Bit error information transfer method, network device, and communications system
US10560456B2 (en) Method, apparatus, and system for collecting access control list
US20130022052A1 (en) Data Transport System and Control Method of Data Transport System
CN106878072B (en) Message transmission method and device
JP2009303092A (en) Network equipment and line switching method
EP3001615B1 (en) Bit error rate detecting method and network device
CN101483592A (en) Method and apparatus for inhibiting bidirectional forwarding detection link oscillation
CN111614505B (en) Message processing method and gateway equipment
CN110417564B (en) Full-mesh link protection method, device, equipment and storage medium
US20090006650A1 (en) Communication device, communication method, communication interface, and program product
WO2011157146A2 (en) Main/backup switching method between communication devices, communication device, system and service request device
CN109873719B (en) Fault detection method and device
JP4532253B2 (en) Frame transfer apparatus and frame loop suppression method
WO2021109997A1 (en) Anti-fiber breakage method and device for segment routing tunnel, ingress node and storage medium
WO2015035852A1 (en) Method and device for announcing state between nodes
CN111917577A (en) BGP routing information acquisition method, BGP routing information acquisition device, computer equipment and storage medium
CN113746697A (en) Link fault detection method, device and equipment
CN113163344B (en) Control method, device, medium and electronic equipment for wired and wireless hybrid networking
CN107623607B (en) BFD session connection establishment method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20211203