Network link failure processing method, device, equipment, medium and networking

By using BFD and OSPF protocols in triangular topology networking to disconnect the failed link and update the routing table, the traffic interruption problem caused by network link failure in VxLAN technology is solved, ensuring that data packets are transmitted to the target device.

CN118827531BActive Publication Date: 2024-12-24BEIJING HUAHUAN ELECTRONICS
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411296823.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2024-12-24
Estimated Expiration
2044-09-18

AI Technical Summary

Technical Problem

When using VxLAN technology, network link failure causes packets to be discarded, causing network traffic interruption.

Method used

By using bidirectional forwarding to detect BFD and open shortest path-first OSPF protocols in triangular topology networking, disconnect the fault link and update the routing table to ensure that data packets are forwarded along the target transmission path to the target device, avoiding traffic interruption.

Benefits of technology

In the case of network link failure, ensure that data packets can be transmitted smoothly to the target device, reducing network traffic interruption caused by link failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118827531B_ABST
    Figure CN118827531B_ABST
Patent Text Reader

Abstract

The present invention provides a network link failure processing method, device, equipment, medium and networking, which relates to the field of network link processing technology. The method is applied to the first endpoint device in a triangle topology network, including: receiving a data message corresponding to a first user; disconnecting the first physical link and determining an update routing table corresponding to the first endpoint device based on a bidirectional forwarding detection BFD message and an open shortest path first OSPF protocol to determine that the first physical link fails; the update routing table is used to update the routing output interface corresponding to the first transmission tunnel; determining the target transmission path corresponding to the first endpoint device; forwarding the data message along the target transmission path based on the updated routing table to forward the data message to the second endpoint device. The technical solution of the present invention ensures that in the case of a network link failure, the message can still be sent to the target device, reducing the problem of network traffic interruption caused by the link failure.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network link processing, and in particular to a network link failure processing method, device, equipment, medium and networking. Background Art

[0002] As a tunnel technology, Visual eXtensible Local Area Network (VxLAN) achieves cross-regional Layer 2 interconnection by establishing a Layer 2 Ethernet network tunnel based on a Layer 3 network. It has many advantages. For example, VxLAN Network Identifier (VNI) can effectively solve the problem of massive tenant isolation in cloud computing. VxLAN technology can also plan virtual machines with Internet Protocol (IP) addresses on the same network segment into a large Layer 2 network to solve the limitation that the IP address must remain unchanged during virtual machine migration.

[0003] However, when using VxLAN technology, network link failures are inevitable. Messages passing through faulty network links will be discarded, resulting in network traffic interruption.

[0004] Therefore, there is an urgent need for a network link failure processing method to reduce the negative impact of network traffic interruption caused by link failure. Summary of the invention

[0005] The present invention provides a network link fault processing method, device, equipment, medium and networking, which are used to solve the defect in the prior art that messages passing through a faulty network link will be discarded, thereby causing network traffic interruption. The technical solution of the present invention ensures that in the event of a network link failure, the message can still be sent to the target device, reducing the problem of network traffic interruption caused by the link failure.

[0006] The present invention provides a network link failure processing method, which is applied to a first endpoint device in a triangle topology network. The first endpoint device is any endpoint device in the triangle topology network. The method comprises the following steps.

[0007] Receiving a data message corresponding to a first user;

[0008] In the case where a first physical link failure is determined based on a bidirectional forwarding detection (BFD) message and an open shortest path first (OSPF) protocol, the first physical link is disconnected, and an updated routing table corresponding to the first endpoint device is determined; the first physical link is a direct network link between the first endpoint device and the second endpoint device corresponding to the data message; the updated routing table is used to update the routing output interface corresponding to the first transmission tunnel; the first transmission tunnel is a transmission path between the first endpoint device and the second endpoint device;

[0009] Determining a target transmission path corresponding to the first endpoint device;

[0010] Based on the updated routing table, the data message is forwarded along the target transmission path to forward the data message to the second endpoint device.

[0011] According to a network link failure processing method provided by the present invention, forwarding the data message along the target transmission path based on the updated routing table includes:

[0012] Encapsulating the data message based on the network identifier corresponding to the target transmission path;

[0013] The encapsulated data message is forwarded along the target transmission path.

[0014] According to a network link failure processing method provided by the present invention, the target transmission path includes a second transmission tunnel and an updated first transmission tunnel, and the second transmission tunnel is a transmission path between the first endpoint device and the third endpoint device;

[0015] The encapsulating the data message based on the network identifier corresponding to the target transmission path includes:

[0016] Encapsulating the data message based on the first network identifier corresponding to the updated first transmission tunnel in the updated routing table to obtain a first data message;

[0017] The data message is encapsulated based on the second network identifier corresponding to the second transmission tunnel in the updated routing table to obtain a second data message.

[0018] According to a network link failure processing method provided by the present invention, the updated first transmission tunnel includes a second physical link and a third physical link; the second physical link is a direct network link between the first endpoint device and the third endpoint device; the third physical link is a direct network link between the third endpoint device and the second endpoint device;

[0019] The forwarding of the encapsulated data message along the target transmission path includes:

[0020] Based on the updated routing output interface corresponding to the first transmission tunnel, the first data packet is sent to the third endpoint device, so as to transparently transmit the first data packet to the second endpoint device along the third physical link;

[0021] The second data packet is sent along the second transmission tunnel to the third endpoint device, so as to discard the second data packet based on the bridge packet forwarding policy corresponding to the third endpoint device.

[0022] According to a network link failure processing method provided by the present invention, the determining of a target transmission path corresponding to the first endpoint device includes:

[0023] Without updating the table entries in the forwarding database corresponding to the triangular topology network based on the data message, the second transmission tunnel and the updated first transmission tunnel corresponding to the first endpoint device are determined based on the forwarding database and the bridge corresponding to the first endpoint device, and the bridge includes an interface between the first endpoint device and the first user, as well as the second transmission tunnel and the updated first transmission tunnel associated with the first endpoint device.

[0024] According to a network link failure processing method provided by the present invention, the first physical link failure is determined based on a bidirectional forwarding detection BFD message and an open shortest path first OSPF protocol, including:

[0025] When the BFD message is not received within a preset time period and the OSPF protocol detects that the link status of the first physical link is abnormal, it is determined that the first physical link is faulty.

[0026] The present invention also provides a network link fault processing device, which is applied to a first endpoint device in a triangle topology network, wherein the first endpoint device is any endpoint device in the triangle topology network, and comprises the following modules:

[0027] A receiving module, used for receiving a data message corresponding to a first user;

[0028] An update module, configured to disconnect the first physical link and determine an update routing table corresponding to the first endpoint device when the first physical link fails based on a bidirectional forwarding detection BFD message and an open shortest path first OSPF protocol; the first physical link is a direct network link between the first endpoint device and the second endpoint device corresponding to the data message; the update routing table is used to update the routing output interface corresponding to the first transmission tunnel; the first transmission tunnel is a transmission path between the first endpoint device and the second endpoint device;

[0029] A determination module, used to determine a target transmission path corresponding to the first endpoint device;

[0030] A forwarding module is used to forward the data message along the target transmission path based on the updated routing table, so as to forward the data message to the second endpoint device.

[0031] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the network link failure processing method described above is implemented.

[0032] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the network link failure processing method described in any one of the above is implemented.

[0033] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the network link failure processing method described in any one of the above is implemented.

[0034] The network link failure processing method, device, equipment, medium and networking provided by the present invention first receive the data message corresponding to the first user, and disconnect the first physical link when the first physical link failure is determined based on the bidirectional forwarding detection BFD message and the open shortest path first OSPF protocol, and determine the updated routing table corresponding to the first endpoint device. Among them, the first physical link is a direct network link between the first endpoint device and the second endpoint device corresponding to the data message, and the updated routing table is used to update the routing output interface corresponding to the first transmission tunnel, and the first transmission tunnel is the transmission path between the first endpoint device and the second endpoint device. The target transmission path corresponding to the first endpoint device can also be determined. Further based on the updated routing table, the data message is forwarded along the target transmission path to forward the data message to the second endpoint device. The technical solution of the present invention disconnects the first physical link when the first physical link fails, and can forward the data message along the target transmission path based on the updated routing table to forward the data message to the second endpoint device, that is, it ensures that the message can be sent to the target device in the case of a network link failure, reducing the problem of network traffic interruption caused by the link failure. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0036] Figure 1 It is a flow chart of the network link failure processing method provided by the present invention.

[0037] Figure 2 This is one of the schematic diagrams of the triangle topology networking provided by the present invention.

[0038] Figure 3 This is the second schematic diagram of the triangle topology networking provided by the present invention.

[0039] Figure 4 It is a structural schematic diagram of the network link failure processing device provided by the present invention.

[0040] Figure 5 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0042] In view of the above problems in the prior art, the present invention provides a network link failure processing method, which is applied to a first endpoint device in a triangle topology network. The first endpoint device is any endpoint device in the triangle topology network. It is easy to understand that any endpoint device in the triangle topology network can be the execution subject of the present invention. Figure 1 FIG. 1 is a flow chart of a method for handling a network link failure provided by the present invention. Figure 1 As shown, the method includes the following steps 110, 120, 130 and 140.

[0043] Step 110: Receive a data message corresponding to the first user.

[0044] Specifically, the first endpoint device in the triangle topology network can receive a data message corresponding to a first user, where the first user is a user corresponding to the first endpoint device. Figure 2 This is one of the schematic diagrams of the triangular topology network provided by the present invention, such as Figure 2 As shown, for example, if the first endpoint device is endpoint device VTEP1, VTEP1 can receive the data message corresponding to the first user USER1 through the UNI1 interface. In the triangle topology network, each endpoint device has a corresponding loopback port address, and any endpoint device will notify its own loopback port address to other endpoint devices.

[0045] It should be noted that the specific content of the data message corresponding to the first user is determined by the first user, and the embodiment of the present invention does not make specific limitations here. For example, the data message corresponding to the first user can be an APR (Address Resolution Protocol) request message, requesting to find the MAC address (Media Access Control Address) of the second user USER2.

[0046] In one embodiment, the determining of the first physical link failure based on a bidirectional forwarding detection (BFD) message and an open shortest path first (OSPF) protocol includes:

[0047] When the BFD message is not received within a preset time period and the OSPF protocol detects that the link status of the first physical link is abnormal, it is determined that the first physical link is faulty.

[0048] Specifically, if no BFD message is received within the preset time, and the OSPF protocol detects that the link state of the first physical link is abnormal, it can be determined that the first physical link has failed. The preset time can be set as needed, and the embodiment of the present invention does not make specific limitations here. For example, the preset time can be set to 20 milliseconds.

[0049] In the above embodiment, when no BFD message is received within a preset time period and the OSPF protocol detects that the link status of the first physical link is abnormal, the first physical link is determined to be faulty, so that when the first physical link actually fails, the fault can be detected more quickly, so that the fault can be quickly processed and the loss of data messages is reduced.

[0050] Step 120: When the failure of the first physical link is determined based on bidirectional forwarding detection BFD messages and open shortest path first OSPF protocol, the first physical link is disconnected and the updated routing table corresponding to the first endpoint device is determined; the first physical link is a direct network link between the first endpoint device and the second endpoint device corresponding to the data message; the updated routing table is used to update the routing output interface corresponding to the first transmission tunnel; the first transmission tunnel is the transmission path between the first endpoint device and the second endpoint device.

[0051] Specifically, whether the first physical link fails can be detected based on the bidirectional forwarding detection BFD message and the open shortest path first OSPF protocol. When the first physical link is determined to be faulty based on the BFD message and the OSPF protocol, the first physical link can be disconnected. Among them, the BFD message can speed up the OSPF protocol to detect tunnel failures. The first physical link is a direct network link between the first endpoint device and the second endpoint device corresponding to the data message. The second endpoint device corresponding to the data message is the endpoint device corresponding to the transmission object of the data message. When the endpoint device corresponding to the transmission object of the data message is the second endpoint device, the destination address of the first transmission tunnel VxLAN12 is the loopback port address corresponding to the second endpoint device. Exemplarily, Figure 3 This is the second schematic diagram of the triangle topology network provided by the present invention. Assume Figure 2 If a first physical link between the first endpoint device VTEP1 and the second endpoint device VTEP2 fails, the first physical link is disconnected, and the following is obtained: Figure 3 The triangle topology shown in the figure is Figure 3The curve marked with VxLAN12 represents the first transmission tunnel when the first physical link is disconnected. The first transmission tunnel is a transmission path between the first endpoint device and the second endpoint device.

[0052] Further, after disconnecting the first physical link, an updated routing table corresponding to the first endpoint device may be determined, and the updated routing table is used to update the routing outbound interface corresponding to the first transmission tunnel, such as Figure 2 and Figure 3 As shown, updating the routing table can update the routing outbound interface corresponding to the first transmission tunnel from NNI12 to NNI13.

[0053] Step 130: Determine a target transmission path corresponding to the first endpoint device.

[0054] Specifically, in the event that the first physical link corresponding to the first endpoint device fails, the first endpoint device can determine its corresponding target transmission path. It is easy to understand that the target transmission path is the target transmission path in the event that the first physical link fails. If the first physical link does not fail, the transmission path determined by the first endpoint device only includes the first physical link, that is, the message data is still transmitted along the first physical link.

[0055] In one embodiment, determining a target transmission path corresponding to the first endpoint device includes:

[0056] Without updating the table entries in the forwarding database corresponding to the triangular topology network based on the data message, the second transmission tunnel and the updated first transmission tunnel corresponding to the first endpoint device are determined based on the forwarding database and the bridge corresponding to the first endpoint device, and the bridge includes an interface between the first endpoint device and the first user, as well as the second transmission tunnel and the updated first transmission tunnel associated with the first endpoint device.

[0057] Specifically, in the application process of the existing VxLAN tunnel technology, the table entries in the forwarding database (Forwarding Data Base, FDB) corresponding to the triangular topology network will be updated based on the data message, but the update of the table entries will cause the first endpoint device to still send the data message to the second endpoint device corresponding to the data message through the first physical link when the first physical link fails, thereby causing the loss of the data message. Therefore, the present invention can be arranged not to update the table entries in the forwarding database corresponding to the triangular topology network.

[0058] Furthermore, the target transmission path includes a second transmission tunnel and an updated first transmission tunnel, and the second transmission tunnel is a transmission path between the first endpoint device and the third endpoint device. In the case where the table entry in the forwarding database corresponding to the triangular topology network is not updated based on the data message, the second transmission tunnel corresponding to the first endpoint device and the updated first transmission tunnel can be determined based on the forwarding database and the bridge corresponding to the first endpoint device. The bridge corresponding to the first endpoint device includes an interface between the first endpoint device and the first user, as well as the second transmission tunnel associated with the first endpoint device and the updated first transmission tunnel, such as Figure 2 As shown, the network bridge corresponding to the first endpoint device VTEP1 includes the interface UNI1 between the first endpoint device VTEP1 and the first user USER1, as well as the second transmission tunnel and the updated first transmission tunnel associated with the first endpoint device VTEP1. It should be noted that all endpoint devices have corresponding bridges, and the bridges corresponding to each endpoint device are pre-configured. For example, the network bridge corresponding to the third endpoint device VTEP3 includes the interface UNI3 between the third endpoint device VTEP1 and the third user USER3, as well as the transmission tunnel associated with the third endpoint device VTEP3. For another example, the network bridge corresponding to the second endpoint device VTEP2 includes the interface UNI2 between the second endpoint device VTEP2 and the second user USER2, as well as the transmission tunnel associated with the second endpoint device VTEP2.

[0059] For example, Figure 3 As shown, in the event of a failure of the first physical link, since it is determined that the target transmission path corresponding to the first endpoint device includes the updated first transmission tunnel, the data packet that actually needs to be sent to the second endpoint device VTEP2 can be first sent to the third endpoint device VTEP3 through the second physical link. That is, in this case, the first transmission tunnel VxLAN12 before the update includes the first physical link, and the updated first transmission tunnel VxLAN12 includes the second physical link and the third physical link.

[0060] In the above embodiment, without updating the table entries in the forwarding database corresponding to the triangular topology network based on the data message, the second transmission tunnel corresponding to the first endpoint device and the updated first transmission tunnel are determined based on the forwarding database and the bridge corresponding to the first endpoint device, which lays a foundation for forwarding the data message along the target transmission path in the event of a subsequent failure of the first physical link.

[0061] Step 140: forwarding the data message along the target transmission path based on the updated routing table, so as to forward the data message to the second endpoint device.

[0062] Specifically, after the updated routing table and the target transmission path are determined, the data message may be forwarded along the target transmission path based on the updated routing table, so as to forward the data message to the second endpoint device.

[0063] In one embodiment, forwarding the data message along the target transmission path based on the updated routing table includes:

[0064] Encapsulating the data message based on the network identifier corresponding to the target transmission path;

[0065] The encapsulated data message is forwarded along the target transmission path.

[0066] Specifically, the data message can be encapsulated based on the network identifier corresponding to the target transmission path in the updated routing table. For example, if the network identifier corresponding to the tunnel VxLAN12 in the target transmission path is 12, then the VxLAN data header 12 can be added to the data message and the data message can be encapsulated. After encapsulating the data message, the encapsulated data message can be forwarded along the target transmission path. It is easy to understand that if the target transmission path includes multiple tunnels, the data message is copied to ensure that the number of data messages is consistent with the number of tunnels in the target transmission path, and the copied data messages are encapsulated differently.

[0067] In the above embodiment, based on the network identifier corresponding to the target transmission path in the updated routing table, the data message is encapsulated and the encapsulated data message is forwarded along the target transmission path. The encapsulation of the data message ensures that the data message can be smoothly transmitted to the target transmission object.

[0068] In one embodiment, the target transmission path includes a second transmission tunnel and an updated first transmission tunnel, the second transmission tunnel being a transmission path between the first endpoint device and a third endpoint device;

[0069] The encapsulating the data message based on the network identifier corresponding to the target transmission path includes:

[0070] Encapsulating the data message based on the first network identifier corresponding to the updated first transmission tunnel in the updated routing table to obtain a first data message;

[0071] The data message is encapsulated based on the second network identifier corresponding to the second transmission tunnel in the updated routing table to obtain a second data message.

[0072] Specifically, the target transmission path includes the second transmission tunnel and the updated first transmission tunnel, the second transmission tunnel being a transmission path between the first endpoint device and the third endpoint device, such as Figure 3As shown, the second transmission tunnel is tunnel VxLAN13. The first endpoint device can encapsulate the data message based on the first network identifier corresponding to the updated first transmission tunnel in the updated routing table to obtain the first data message. Figure 3 As shown, the VxLAN data header in the first data message is 12. The first endpoint device can also encapsulate the data message based on the second network identifier corresponding to the second transmission tunnel in the updated routing table to obtain a second data message, such as Figure 3 As shown, the VxLAN data header in the second data packet is 13.

[0073] In the above embodiment, based on the first network identifier corresponding to the updated first transmission tunnel in the updated routing table, the data packet is encapsulated to obtain the first data packet, and based on the second network identifier corresponding to the second transmission tunnel in the updated routing table, the data packet is encapsulated to obtain the second data packet. Since the first data packet and the second data packet have different encapsulated VxLAN data headers, different strategies will be executed later to ensure the normal transmission of the message.

[0074] In one embodiment, the updated first transmission tunnel includes a second physical link and a third physical link; the second physical link is a direct network link between the first endpoint device and the third endpoint device; the third physical link is a direct network link between the third endpoint device and the second endpoint device;

[0075] The forwarding of the encapsulated data message along the target transmission path includes:

[0076] Based on the updated routing output interface corresponding to the first transmission tunnel, the first data packet is sent to the third endpoint device, so as to transparently transmit the first data packet to the second endpoint device along the third physical link;

[0077] The second data packet is sent along the second transmission tunnel to the third endpoint device, so as to discard the second data packet based on the bridge packet forwarding policy corresponding to the third endpoint device.

[0078] Specifically, the updated first transmission tunnel includes a second physical link and a third physical link; the third physical link is a direct network link between the third endpoint device and the second endpoint device. The first endpoint device can send the first data message to the third endpoint device based on the routing output interface corresponding to the updated first transmission tunnel, so as to transparently transmit the first data message to the second endpoint device along the third physical link.

[0079] Exemplarily, the data message corresponding to the first user is an APR request message, and the request is to find the MAC address of the second user USER2, such as Figure 3As shown, the routing output interface corresponding to the updated first transmission tunnel is the same as the routing output interface corresponding to the second transmission tunnel, both of which are NNI3. After receiving the first data message, the third endpoint device VTEP3 will not process the first data message because its encapsulated VxLAN data header is 12. Then the third endpoint device VTEP3 transparently transmits the first data message to the second endpoint device VTEP2 through the NNI32 output interface along the third physical link VxLAN23. After the second endpoint device VTEP2 receives the first data message through the interface NNI23, it will strip the VxLAN data header in the first data message, and then send the first data message after stripping the data header to the second user along the UNI2 interface. After the second user sends a response data message, the second user sends the response message data to the second endpoint device VTEP2 through the UNI2 interface. Then the second endpoint device VTEP2 can also execute the method of the present invention, encapsulate the response message data, and then return the response data message to the first endpoint device VTEP1 along the transmission path corresponding to the second endpoint device. And due to the configuration of the bridge message forwarding strategy, after the second endpoint device VTEP2 receives the first data message through the interface NNI23, it will not return the first data message to the third endpoint device VTEP3, thereby avoiding the broadcast storm in the topology.

[0080] It is easy to understand that after the failure of the first physical link is repaired, the routing table is updated again, and the first endpoint device transmits the first data message to the second endpoint device through the first physical link according to the new updated routing table.

[0081] Furthermore, the first endpoint device may also send the second data message to the third endpoint device along the second physical link, so as to discard the second data message based on the bridge message forwarding policy corresponding to the third endpoint device.

[0082] Exemplarily, the data packet corresponding to the first user is an APR request packet, and the request destination is the MAC address of the second user USER2. Since the MAC address of the second user USER2 cannot be matched in the FDB corresponding to the third endpoint device, the third endpoint device cannot find the output interface corresponding to the second data packet. According to the bridge message forwarding policy corresponding to the third endpoint device, the second data packet will be discarded.

[0083] In the above embodiment, based on the updated routing output interface corresponding to the first transmission tunnel, the first data message is sent to the third endpoint device, so that the first data message is transparently transmitted to the second endpoint device along the third physical link, ensuring that the data message can be sent to the second endpoint device in the event of a failure of the first physical link. The second data message is sent to the third endpoint device along the second transmission tunnel, and based on the bridge message forwarding policy corresponding to the third endpoint device, the second data message is discarded, so that the second data message will not be transmitted too much, thereby reducing the waste of network resources.

[0084] The network link failure processing method provided by the present invention first receives a data message corresponding to the first user, disconnects the first physical link and determines the update routing table corresponding to the first endpoint device when the first physical link fails based on the bidirectional forwarding detection BFD message and the open shortest path first OSPF protocol. The first physical link is a direct network link between the first endpoint device and the second endpoint device corresponding to the data message, and the updated routing table is used to update the routing output interface corresponding to the first transmission tunnel, and the first transmission tunnel is the transmission path between the first endpoint device and the second endpoint device. The target transmission path corresponding to the first endpoint device can also be determined. Further based on the updated routing table, the data message is forwarded along the target transmission path to forward the data message to the second endpoint device. The technical solution of the present invention disconnects the first physical link when the first physical link fails, and can forward the data message along the target transmission path based on the updated routing table to forward the data message to the second endpoint device, that is, it ensures that the message can be sent to the target device in the case of a network link failure, reducing the problem of network traffic interruption caused by the link failure.

[0085] The network link fault processing device provided by the present invention is described below. The network link fault processing device described below and the network link fault processing method described above can be referred to each other.

[0086] The network link fault processing device provided by the present invention is applied to a first endpoint device in a triangle topology network, wherein the first endpoint device is any endpoint device in the triangle topology network. Figure 4 is a schematic diagram of the structure of the network link fault processing device provided by the present invention, such as Figure 4 As shown, the network link failure processing device 400 includes the following modules:

[0087] The receiving module 410 is used to receive a data message corresponding to the first user;

[0088] The update module 420 is used to disconnect the first physical link and determine the update routing table corresponding to the first endpoint device when the first physical link fails based on the bidirectional forwarding detection BFD message and the open shortest path first OSPF protocol; the first physical link is a direct network link between the first endpoint device and the second endpoint device corresponding to the data message; the updated routing table is used to update the routing output interface corresponding to the first transmission tunnel; the first transmission tunnel is a transmission path between the first endpoint device and the second endpoint device;

[0089] A determination module 430, configured to determine a target transmission path corresponding to the first endpoint device;

[0090] The forwarding module 440 is configured to forward the data message along the target transmission path based on the updated routing table, so as to forward the data message to the second endpoint device.

[0091] In one embodiment, the forwarding module 440 is specifically configured to:

[0092] Encapsulating the data message based on the network identifier corresponding to the target transmission path;

[0093] The encapsulated data message is forwarded along the target transmission path.

[0094] In one embodiment, the target transmission path includes a second transmission tunnel and an updated first transmission tunnel, the second transmission tunnel is a transmission path between the first endpoint device and the third endpoint device, and the forwarding module 440 is further configured to:

[0095] Encapsulating the data message based on the first network identifier corresponding to the updated first transmission tunnel in the updated routing table to obtain a first data message;

[0096] The data message is encapsulated based on the second network identifier corresponding to the second transmission tunnel in the updated routing table to obtain a second data message.

[0097] In one embodiment, the updated first transmission tunnel includes a second physical link and a third physical link; the second physical link is a direct network link between the first endpoint device and the third endpoint device; the third physical link is a direct network link between the third endpoint device and the second endpoint device, and the forwarding module 440 is specifically further used to:

[0098] The forwarding of the encapsulated data message along the target transmission path includes:

[0099] Based on the updated routing output interface corresponding to the first transmission tunnel, the first data packet is sent to the third endpoint device, so as to transparently transmit the first data packet to the second endpoint device along the third physical link;

[0100] The second data packet is sent along the second transmission tunnel to the third endpoint device, so as to discard the second data packet based on the bridge packet forwarding policy corresponding to the third endpoint device.

[0101] In one embodiment, the determination module 430 is specifically configured to:

[0102] Without updating the table entries in the forwarding database corresponding to the triangular topology network based on the data message, the second transmission tunnel and the updated first transmission tunnel corresponding to the first endpoint device are determined based on the forwarding database and the bridge corresponding to the first endpoint device, and the bridge includes an interface between the first endpoint device and the first user, as well as the second transmission tunnel and the updated first transmission tunnel associated with the first endpoint device.

[0103] In one embodiment, the update module 420 is specifically used to:

[0104] When the BFD message is not received within a preset time period and the OSPF protocol detects that the link status of the first physical link is abnormal, it is determined that the first physical link is faulty.

[0105] The network link failure processing device provided by the present invention first receives a data message corresponding to the first user, and disconnects the first physical link when it is determined that the first physical link fails based on a bidirectional forwarding detection BFD message and an open shortest path first OSPF protocol, and determines the updated routing table corresponding to the first endpoint device. The first physical link is a direct network link between the first endpoint device and the second endpoint device corresponding to the data message, and the updated routing table is used to update the routing output interface corresponding to the first transmission tunnel, and the first transmission tunnel is the transmission path between the first endpoint device and the second endpoint device. The target transmission path corresponding to the first endpoint device can also be determined. Further based on the updated routing table, the data message is forwarded along the target transmission path to forward the data message to the second endpoint device. The technical solution of the present invention disconnects the first physical link when the first physical link fails, and can forward the data message along the target transmission path based on the updated routing table to forward the data message to the second endpoint device, that is, it ensures that the message can be sent to the target device in the case of a network link failure, reducing the problem of network traffic interruption caused by the link failure.

[0106] Figure 5 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 5As shown, the electronic device may include: a processor 510, a communications interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communications interface 520 and the memory 530 communicate with each other through the communication bus 540. The processor 510 may call the logic instructions in the memory 530 to execute the network link failure processing method, which includes:

[0107] Receiving a data message corresponding to a first user;

[0108] In the case where a first physical link failure is determined based on a bidirectional forwarding detection BFD message and an open shortest path first OSPF protocol, the first physical link is disconnected, and an updated routing table corresponding to the first endpoint device is determined; the first physical link is a direct network link between the first endpoint device and the second endpoint device corresponding to the data message; the updated routing table is used to update the routing output interface corresponding to the first transmission tunnel; the first transmission tunnel is a transmission path between the first endpoint device and the second endpoint device;

[0109] Determining a target transmission path corresponding to the first endpoint device;

[0110] Based on the updated routing table, the data message is forwarded along the target transmission path to forward the data message to the second endpoint device.

[0111] In addition, the logic instructions in the above-mentioned memory 530 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0112] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program may be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the computer can execute the network link failure processing method provided by the above methods, the method comprising:

[0113] Receiving a data message corresponding to a first user;

[0114] In the case where a first physical link failure is determined based on a bidirectional forwarding detection BFD message and an open shortest path first OSPF protocol, the first physical link is disconnected, and an updated routing table corresponding to the first endpoint device is determined; the first physical link is a direct network link between the first endpoint device and the second endpoint device corresponding to the data message; the updated routing table is used to update the routing output interface corresponding to the first transmission tunnel; the first transmission tunnel is a transmission path between the first endpoint device and the second endpoint device;

[0115] Determining a target transmission path corresponding to the first endpoint device;

[0116] Based on the updated routing table, the data message is forwarded along the target transmission path to forward the data message to the second endpoint device.

[0117] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the network link failure processing method provided by the above methods is implemented, and the method includes:

[0118] Receiving a data message corresponding to a first user;

[0119] In the case where a first physical link failure is determined based on a bidirectional forwarding detection BFD message and an open shortest path first OSPF protocol, the first physical link is disconnected, and an updated routing table corresponding to the first endpoint device is determined; the first physical link is a direct network link between the first endpoint device and the second endpoint device corresponding to the data message; the updated routing table is used to update the routing output interface corresponding to the first transmission tunnel; the first transmission tunnel is a transmission path between the first endpoint device and the second endpoint device;

[0120] Determining a target transmission path corresponding to the first endpoint device;

[0121] Based on the updated routing table, the data message is forwarded along the target transmission path to forward the data message to the second endpoint device.

[0122] The present invention also provides a triangular topology network, including: a first endpoint device, a second endpoint device and a third endpoint device, wherein the first endpoint device, the second endpoint device and the third endpoint device are all deployed with an open shortest path first OSPF protocol and a bridge; the first endpoint device is used to execute the network link failure handling method provided by the above methods.

[0123] Furthermore, each endpoint device has a corresponding loopback port address, and any endpoint device will notify its own loopback port address to other endpoint devices. Bidirectional Forwarding Detection (BFD) is also deployed on each of the endpoint devices. Each bridge also has a corresponding bridge message forwarding strategy, so that messages cannot be forwarded between tunnels included in the bridge.

[0124] The device embodiments described above are merely illustrative, wherein 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, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0125] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0126] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for handling a network link failure, characterized in that: The method is applied to a first endpoint device in a triangular topology network, wherein the first endpoint device is any endpoint device in the triangular topology network, and comprises: Receiving a data message corresponding to a first user; In the case where a first physical link failure is determined based on a bidirectional forwarding detection BFD message and an open shortest path first OSPF protocol, the first physical link is disconnected, and an updated routing table corresponding to the first endpoint device is determined; the first physical link is a direct network link between the first endpoint device and the second endpoint device corresponding to the data message; the updated routing table is used to update the routing output interface corresponding to the first transmission tunnel; the first transmission tunnel is a transmission path between the first endpoint device and the second endpoint device; Determining a target transmission path corresponding to the first endpoint device; forwarding the data message along the target transmission path based on the updated routing table to forward the data message to the second endpoint device; The forwarding of the data message along the target transmission path based on the updated routing table includes: Encapsulating the data message based on the network identifier corresponding to the target transmission path; Forwarding the encapsulated data message along the target transmission path; The target transmission path includes a second transmission tunnel and an updated first transmission tunnel, wherein the second transmission tunnel is a transmission path between the first endpoint device and a third endpoint device; The encapsulating the data message based on the network identifier corresponding to the target transmission path includes: Encapsulating the data message based on the first network identifier corresponding to the updated first transmission tunnel in the updated routing table to obtain a first data message; The data message is encapsulated based on the second network identifier corresponding to the second transmission tunnel in the updated routing table to obtain a second data message.

2. The method for handling network link failure according to claim 1, characterized in that: The updated first transmission tunnel includes a second physical link and a third physical link; the second physical link is a direct network link between the first endpoint device and the third endpoint device; The third physical link is a direct network link between the third endpoint device and the second endpoint device; The forwarding of the encapsulated data message along the target transmission path includes: Based on the updated routing output interface corresponding to the first transmission tunnel, the first data packet is sent to the third endpoint device, so as to transparently transmit the first data packet to the second endpoint device along the third physical link; The second data packet is sent along the second transmission tunnel to the third endpoint device, so as to discard the second data packet based on the bridge packet forwarding policy corresponding to the third endpoint device.

3. The network link failure processing method according to claim 1 or 2, characterized in that: The determining a target transmission path corresponding to the first endpoint device includes: Without updating the table entries in the forwarding database corresponding to the triangular topology network based on the data message, the second transmission tunnel and the updated first transmission tunnel corresponding to the first endpoint device are determined based on the forwarding database and the bridge corresponding to the first endpoint device, and the bridge includes an interface between the first endpoint device and the first user, as well as the second transmission tunnel and the updated first transmission tunnel associated with the first endpoint device.

4. The method for handling network link failure according to claim 2, characterized in that: The determining of the first physical link failure based on a bidirectional forwarding detection BFD message and an open shortest path first OSPF protocol includes: When the BFD message is not received within a preset time period and the OSPF protocol detects that the link status of the first physical link is abnormal, it is determined that the first physical link is faulty.

5. A network link failure processing device for implementing the network link failure processing method according to claim 1, characterized in that: A first endpoint device applied to a triangle topology network, wherein the first endpoint device is any endpoint device in the triangle topology network, including: A receiving module, used for receiving a data message corresponding to a first user; An update module, configured to disconnect the first physical link and determine an update routing table corresponding to the first endpoint device when the first physical link fails based on a bidirectional forwarding detection BFD message and an open shortest path first OSPF protocol; the first physical link is a direct network link between the first endpoint device and the second endpoint device corresponding to the data message; the update routing table is used to update the routing output interface corresponding to the first transmission tunnel; the first transmission tunnel is a transmission path between the first endpoint device and the second endpoint device; A determination module, used to determine a target transmission path corresponding to the first endpoint device; a forwarding module, configured to forward the data message along the target transmission path based on the updated routing table, so as to forward the data message to the second endpoint device; The forwarding module is specifically used for: Encapsulating the data message based on the network identifier corresponding to the target transmission path; Forwarding the encapsulated data message along the target transmission path; The target transmission path includes a second transmission tunnel and an updated first transmission tunnel, the second transmission tunnel is a transmission path between the first endpoint device and the third endpoint device, and the forwarding module is further configured to: Encapsulating the data message based on the first network identifier corresponding to the updated first transmission tunnel in the updated routing table to obtain a first data message; The data message is encapsulated based on the second network identifier corresponding to the second transmission tunnel in the updated routing table to obtain a second data message.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the network link failure processing method according to any one of claims 1 to 4 is implemented.

7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the network link failure processing method according to any one of claims 1 to 4 is implemented.

8. A triangular topology network, characterized in that: include: A first endpoint device, a second endpoint device and a third endpoint device, wherein the open shortest path first (OSPF) protocol and a bridge are deployed on the first endpoint device, the second endpoint device and the third endpoint device; the first endpoint device is used to execute the network link failure handling method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method for transmitting data packets in a data network comprising a multiplicity of network nodes

    CA2844945A1

  • Route updating using a BFD protocol

    US20210099376A1

  • A method for transmitting BFD message, a method and device for detecting link failure

    WO2009089713A1

  • Routing updating method and apparatus, device, and storage medium

    WO2024109045A1