Fault processing method, device, equipment, system and storage medium

By using standard protocol-compatible disconnection request messages in the communication network, the problem of poor fault sensing adaptability between terminals and network devices is solved, rapid fault sensing and service recovery are achieved, and network reliability and applicability are improved.

CN118869432APending Publication Date: 2024-10-29HUAWEI TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310488265.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-28
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The existing technology has poor adaptability to fault sensing and recovery mechanisms between terminals and network devices in communication networks, making it difficult to quickly respond to link failures, resulting in low service recovery efficiency.

Method used

By sending standard protocol-compatible disconnection request messages in network devices, nodes are quickly triggered to disconnect, realizing fault sensing and recovery, avoiding private protocol configuration, and is suitable for complex multi-scenario systems.

Benefits of technology

It improves network reliability and applicability, simplifies the fault handling process, reduces the network resources required for active node detection, and improves fault handling efficiency and business recovery speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118869432A_ABST
    Figure CN118869432A_ABST
Patent Text Reader

Abstract

The invention discloses a fault processing method, device, equipment, system and a storage medium, and relates to the technical field of communication. Taking a first network device to execute the method as an example, the first network device determines that a network fault occurs; and sending a disconnection request message corresponding to the first connection to the first node. The first connection is the connection between the first node and other nodes, the disconnection request message is compatible with a standard protocol, and the disconnection request message indicates the first node to disconnect the first connection. According to the method, under the condition that the network device determines that the network fault occurs, the first node can be rapidly triggered to disconnect the first connection through the disconnection request message, rapid fault sensing of the first node is realized, and the network reliability is improved. As the disconnection request message is compatible with the standard protocol, the adaptation of codes, new protocols, private protocols and the like is not needed, so that the method can be suitable for the business environment of a complex multi-scene system, and the implementation universality and flexibility are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a fault handling method, apparatus, device, system and storage medium. Background Art

[0002] With the development of communication technology, when a link failure or equipment failure occurs in a communication network, the terminal needs to be able to quickly sense the failure and ensure that the service recovers quickly from the failure.

[0003] In the related technology, a fault perception module is configured on the terminal, and the network device needs to establish a private protocol with the fault perception module in the terminal. When the network device senses that a network failure has occurred, it actively notifies the fault information to the fault perception module of the terminal, so that the fault perception module of the terminal can promptly recover the service from the network failure.

[0004] However, since terminals and network devices often come from different manufacturers, it is difficult to adopt a unified private protocol between the terminals and the network devices, which makes the adaptability of the methods in the related technologies poor. Summary of the invention

[0005] The present application provides a fault handling method, apparatus, device, system and storage medium for performing fault handling when a network fault is determined to have occurred.

[0006] In a first aspect, a fault handling method is provided. Taking a first network device executing the method as an example, the first network device determines that a network fault occurs; and sends a disconnection request message corresponding to a first connection to a first node. The first connection is a connection between the first node and other nodes, the disconnection request message is compatible with a standard protocol, and the disconnection request message instructs the first node to disconnect the first connection.

[0007] In the case where the network device determines that a network failure has occurred, the method sends a disconnection request message to the first node to quickly trigger the first node to disconnect the first connection, thereby realizing rapid fault perception of the first node and improving network reliability. Since the disconnection request message is compatible with the standard protocol, no configuration of code, new protocol, private protocol, etc. is required, so that the method can be applied to the business environment of complex multi-scenario systems, improving the versatility and flexibility of implementation.

[0008] In a second aspect, a fault handling method is provided. Taking the method executed by a target node as an example, the target node determines that a network fault occurs; and sends a disconnection request message corresponding to a first connection to a first node. The disconnection request message is compatible with a standard protocol, and the disconnection request message instructs the first node to disconnect the first connection, where the first connection is a connection established by the first node to the target node, or the first connection is a connection between the first node and other nodes except the target node.

[0009] In the case where the target node determines that a network failure has occurred, the method sends a disconnection request message to the first node to quickly trigger the first node to disconnect the first connection, thereby realizing rapid fault perception of the first node and improving network reliability. Since the disconnection request message is compatible with the standard protocol, no configuration of code, new protocol, private protocol, etc. is required, so that the method can be applied to the business environment of complex multi-scenario systems, improving the versatility and flexibility of implementation.

[0010] Wherein, in the case where the first connection is a connection established by the first node to the target node, the first node is the active establisher of the first connection, and the target node is the passive establisher of the first connection. In this method, when the target node detects a network failure, it can directly send a disconnection request message to the first node without the need for active detection by the first node, thus saving the network resources required for active detection by the first node, increasing the speed at which the first node perceives the failure, and thereby improving the efficiency of fault handling.

[0011] In any possible implementation of the first aspect and the second aspect, the first connection is a connection affected by a network failure, and the connection affected by a network failure may refer to a connection whose service transmission performance is impaired due to the network failure. That is, the method can quickly send a disconnection request message to an end-side node corresponding to the connection affected by the network failure, so as to quickly trigger the end-side node corresponding to the connection affected by the network failure to perform fault processing.

[0012] In any possible implementation of the first aspect and the second aspect, the standard protocol includes a remote direct memory access (RDMA) protocol or a transmission control protocol (TCP), and the disconnect request message can be a disconnect request (DisconnectRequest) message of the RDMA protocol or a finish (FIN) message of TCP. Since the present application can be applied to different standard protocols, the flexibility and applicability of the method are high.

[0013] In any possible implementation of the first and second aspects, the manner of determining the occurrence of the network failure may include: detecting the occurrence of the network failure. Determining the occurrence of the network failure by detecting the network failure makes it more efficient and accurate to determine the occurrence of the network failure.

[0014] In any possible implementation of the first and second aspects above, after determining that a network failure has occurred, the first node can be determined based on the device connection information, where the device connection information includes source addresses and destination addresses corresponding to a plurality of connections. Since the device connection information includes the source address and destination address of the first connection, the first node corresponding to the first connection determined based on the device connection information is more accurate.

[0015] In any possible implementation of the first aspect and the second aspect, the method of determining that a network failure has occurred may also include: receiving a notification message sent by a second network device, the notification message including fault notification information, the fault notification information indicating that a network failure has occurred; and determining that a network failure has occurred according to the fault notification information. Compared to the method of detecting network failures, the method of receiving notification messages can receive notification messages sent by various network devices in the network, and thus can determine a wider range of network failures, further improving the reliability of the network.

[0016] In any possible implementation of the first aspect and the second aspect, the notification message further includes fault connection information, and the fault connection information indicates a first connection; after determining that a network failure has occurred, the first node can be determined according to the fault connection information and the device connection information, and the device connection information includes source addresses and destination addresses corresponding to a plurality of connections. The first connection indicated by the fault connection information and the device connection information can be used to accurately determine the first node, and since the first network device does not have a network failure, the success rate of sending a disconnection request message to the first node is improved.

[0017] In any possible implementation of the first aspect and the second aspect, the device connection information is obtained according to the messages exchanged during the process of establishing a connection between nodes; or, the device connection information is obtained according to the local connection information sent by the first node. The present application provides different methods for obtaining device connection information, making the method for obtaining device connection information more flexible.

[0018] In any possible implementation of the first aspect and the second aspect, the method further receives a disconnection response message sent by the first node, the disconnection response message is compatible with the standard protocol, and the disconnection response message is a response message to the disconnection request message. The disconnection response message is a disconnect reply (DisconnectReply) message of the RDMA protocol or a finish acknowledgement (finish acknowledgement, FIN-ACK) message of TCP.

[0019] Through the response mechanism of the disconnection response message, the transmission reliability of the disconnection response message is improved. Since the disconnection response message is also compatible with the standard protocol, the method can also be applied to the business environment of complex multi-scenario systems, thereby improving the implementation versatility and flexibility of the method.

[0020] In any possible implementation of the first aspect and the second aspect, the method further receives a connection establishment request message sent by the first node, the connection establishment request message is used to re-establish the first connection; and sends a connection establishment rejection message corresponding to the connection establishment request message to the first node. Wherein, the first network device can send a connection establishment rejection message corresponding to the connection establishment request message to the first node when it is identified that the network fault still exists; or, within a reference time after the first network device sends a disconnection request message to the first node, it believes that the network fault still exists, and sends a connection establishment rejection message corresponding to the connection establishment request message to the first node; or, within a reference time after the first network device sends a disconnection request message to the first node, and when it is identified that the network fault still exists, it sends a connection establishment rejection message corresponding to the connection establishment request message to the first node. In the case where the first node re-establishes the first connection, since the network fault still exists, the first network device can directly reject the request to establish the first connection, thereby improving the processing efficiency of establishing the connection and also improving the accuracy of connection establishment.

[0021] According to a third aspect, a fault handling method is provided. Taking the first node executing the method as an example, the first node receives a disconnection request message corresponding to a first connection. The first connection is a connection between the first node and other nodes. The disconnection request message is compatible with the standard protocol. The first node disconnects the first connection based on the disconnection request message.

[0022] In the method, the first node can quickly sense that the first connection has failed and disconnect the first connection by receiving the disconnection request message, thereby realizing rapid recovery of the service failure. Since the disconnection request message is compatible with the standard protocol, no adaptation of code, new protocol, private protocol, etc. is required, so that the method can be applied to the business environment of complex multi-scenario systems, thereby improving the implementation versatility and flexibility of the method.

[0023] In a possible implementation manner, the disconnect request message is a DisconnectRequest message of the RDMA protocol or a FIN message of TCP.

[0024] In a possible implementation, after the first node receives the disconnection request message corresponding to the first connection, the first node sends a disconnection response message, the disconnection response message is compatible with the standard protocol, and the disconnection response message is a reply message to the disconnection request message.

[0025] In a possible implementation manner, the disconnect response message is a DisconnectReply message of the RDMA protocol or a FIN-ACK message of TCP.

[0026] In a possible implementation, after the first node receives the disconnection request message corresponding to the first connection, the first node sends a connection establishment request message, where the connection establishment request message is used to reestablish the first connection; the first node receives a connection establishment rejection message corresponding to the connection establishment request message.

[0027] In a possible implementation, after the first node disconnects the first connection based on the disconnection request message, the first node switches the service transmitted on the first connection to the second connection for transmission, and the second connection is a connection that is not affected by the network failure. In this way, the service transmission performance on the first connection is guaranteed, and the damage to the service caused by the network failure is reduced.

[0028] In a fourth aspect, a fault handling device is provided, the device being applied to a first network device, the device comprising:

[0029] A transceiver module, used to perform the reception and / or transmission related operations performed by the first network device in the first aspect or any possible implementation manner of the first aspect;

[0030] The processing module is used to perform other operations besides the reception and / or transmission related operations performed by the first network device in the first aspect or any possible implementation manner of the first aspect.

[0031] In a possible implementation, the transceiver module includes a receiving module and / or a sending module. The receiving module is used to perform reception-related operations, and the sending module is used to perform sending-related operations.

[0032] In a possible implementation, the processing module is used to determine that a network failure occurs;

[0033] The transceiver module is used to send a disconnection request message corresponding to a first connection to the first node, the first connection is a connection between the first node and other nodes, the disconnection request message is compatible with the standard protocol, and the disconnection request message instructs the first node to disconnect the first connection.

[0034] In a fifth aspect, a fault handling device is provided, the device is applied to a target node, and the device includes:

[0035] A transceiver module, used to perform reception and / or transmission related operations performed by the target node in the second aspect or any possible implementation manner of the second aspect;

[0036] A processing module is used to perform other operations besides the receiving and / or sending related operations performed by the target node in the second aspect or any possible implementation manner of the second aspect.

[0037] In a possible implementation, the transceiver module includes a receiving module and / or a sending module. The receiving module is used to perform reception-related operations, and the sending module is used to perform sending-related operations.

[0038] In a possible implementation, the processing module is used to determine that a network failure occurs;

[0039] A transceiver module is used to send a disconnection request message corresponding to a first connection to a first node, the disconnection request message is compatible with a standard protocol, and the disconnection request message instructs the first node to disconnect the first connection, the first connection is a connection established by the first node to a target node, or the first connection is a connection between the first node and other nodes except the target node.

[0040] In any possible implementation manner of the fourth aspect and the fifth aspect, the disconnect request message is a DisconnectRequest message of the RDMA protocol or a FIN message of TCP.

[0041] In any possible implementation manner of the fourth aspect and the fifth aspect above, the processing module is used to detect that a network failure occurs.

[0042] In any possible implementation of the fourth and fifth aspects above, the processing module is further used to determine the first node according to the device connection information, and the device connection information includes source addresses and destination addresses corresponding to multiple connections respectively.

[0043] In any possible implementation manner of the fourth aspect and the fifth aspect, the transceiver module is configured to receive a notification message sent by the second network device, where the notification message includes fault notification information, and the fault notification information indicates that a network fault occurs;

[0044] The processing module is used to determine the occurrence of a network failure according to the failure notification information.

[0045] In any possible implementation of the fourth and fifth aspects above, the notification message also includes fault connection information, and the fault connection information indicates the first connection; the processing module is also used to determine the first node based on the fault connection information and the device connection information, and the device connection information includes the source address and the destination address corresponding to multiple connections respectively.

[0046] In any possible implementation of the fourth and fifth aspects above, the device connection information is obtained based on messages exchanged during the process of establishing a connection between nodes; or, the device connection information is obtained based on local connection information sent by the first node.

[0047] In any possible implementation of the fourth and fifth aspects above, the transceiver module is also used to receive a disconnection response message sent by the first node, the disconnection response message is compatible with the standard protocol, and the disconnection response message is a response message to the disconnection request message.

[0048] In any possible implementation manner of the fourth aspect and the fifth aspect, the disconnect response message is a DisconnectReply message of the RDMA protocol or a FIN-ACK message of TCP.

[0049] In any possible implementation of the fourth and fifth aspects above, the transceiver module is also used to receive a connection establishment request message sent by the first node, and the connection establishment request message is used to re-establish the first connection; and send a connection establishment rejection message corresponding to the connection establishment request message to the first node.

[0050] In a sixth aspect, a fault handling device is provided, the device being applied to a first node, the device comprising:

[0051] A transceiver module, used to perform the reception and / or transmission related operations performed by the first node in the third aspect or any possible implementation manner of the third aspect;

[0052] A processing module is used to perform other operations besides the reception and / or transmission related operations performed by the first node in the third aspect or any possible implementation manner of the third aspect.

[0053] In a possible implementation, the transceiver module includes a receiving module and / or a sending module. The receiving module is used to perform reception-related operations, and the sending module is used to perform sending-related operations.

[0054] In a possible implementation, the transceiver module is configured to receive a disconnection request message corresponding to a first connection, where the first connection is a connection between the first node and other nodes, and the disconnection request message is compatible with a standard protocol;

[0055] The processing module is used to disconnect the first connection based on the disconnection request message.

[0056] In a possible implementation manner, the disconnect request message is a DisconnectRequest message of the RDMA protocol or a FIN message of TCP.

[0057] In a possible implementation manner, the transceiver module is further used for the first node to send a disconnection response message, the disconnection response message is compatible with the standard protocol, and the disconnection response message is a reply message to the disconnection request message.

[0058] In a possible implementation manner, the disconnect response message is a DisconnectReply message of the RDMA protocol or a FIN-ACK message of TCP.

[0059] In a possible implementation manner, the transceiver module is further configured to send a connection establishment request message, where the connection establishment request message is used to re-establish the first connection; and receive a connection establishment rejection message corresponding to the connection establishment request message.

[0060] In a possible implementation manner, the processing module is further configured to cause the first node to switch a service transmitted on the first connection to be transmitted on the second connection, where the second connection is a connection that is not affected by the network failure.

[0061] In the seventh aspect, a fault handling device is provided, which includes: a processor, the processor is coupled to a memory, the memory stores at least one program instruction or code, and the at least one program instruction or code is loaded and executed by the processor so that the device implements the fault handling method as described in any one of the first aspects above.

[0062] Optionally, the number of the processors is one or more, and the number of the memories is one or more.

[0063] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.

[0064] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or can be set on different chips. This application does not limit the type of memory and the setting method of the memory and the processor.

[0065] In an eighth aspect, a fault handling system is provided, the fault handling system comprising a first network device and a first node;

[0066] The first network device is used to execute the method described in the first aspect or any possible implementation of the first aspect, and the first node is used to execute the method described in the third aspect or any possible implementation of the third aspect.

[0067] In a ninth aspect, a fault handling system is provided, the fault handling system comprising a target node and a first node;

[0068] The target node is used to execute the method described in the second aspect or any possible implementation of the second aspect, and the first node is used to execute the method described in the third aspect or any possible implementation of the third aspect.

[0069] In the tenth aspect, a computer-readable storage medium is provided, wherein the storage medium stores at least one instruction, and the instruction is loaded and executed by a processor to enable a computer to implement the method in the above-mentioned first aspect or any possible implementation of the first aspect, or to implement the method in the above-mentioned second aspect or any possible implementation of the second aspect, or to implement the above-mentioned third aspect or any possible implementation of the third aspect.

[0070] In the eleventh aspect, a computer program (product) is provided, which includes: computer program code, which, when executed by a computer, enables the computer to implement the method in the first aspect or any possible implementation of the first aspect, or to implement the method in the second aspect or any possible implementation of the second aspect, or to implement the third aspect or any possible implementation of the third aspect.

[0071] In a twelfth aspect, a chip is provided, comprising a processor for calling and executing instructions stored in a memory from the memory, so that a communication device equipped with the chip executes the methods in the above aspects.

[0072] In the thirteenth aspect, another chip is provided, comprising: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory, and when the code is executed, the processor is used to execute the methods in the above aspects.

[0073] It should be understood that the beneficial effects achieved by the technical solutions of the third to thirteenth aspects of the present application and the corresponding possible implementation methods can be referred to the technical effects of the first or second aspect and their corresponding possible implementation methods, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] Figure 1 A schematic diagram of a network structure provided for an embodiment of the present application;

[0075] Figure 2 A schematic diagram of an implementation environment of a fault handling method provided in an embodiment of the present application;

[0076] Figure 3 An interactive schematic diagram of a fault handling method provided in an embodiment of the present application;

[0077] Figure 4 A schematic diagram of a message format provided in an embodiment of the present application;

[0078] Figure 5 An interactive schematic diagram of another fault handling method provided in an embodiment of the present application;

[0079] Figure 6 A schematic diagram of a network failure provided in an embodiment of the present application;

[0080] Figure 7 A schematic diagram of another network failure provided in an embodiment of the present application;

[0081] Figure 8 An interactive schematic diagram of a fault handling process provided in an embodiment of the present application;

[0082] Fig. 9 A schematic diagram of another network failure provided in an embodiment of the present application;

[0083] Fig.10 An interactive schematic diagram of another fault handling process provided in an embodiment of the present application;

[0084] Fig.11 A schematic diagram of the structure of a fault handling device provided in an embodiment of the present application;

[0085] Fig.12 A schematic diagram of the structure of another fault handling device provided in an embodiment of the present application;

[0086] Fig.13 A schematic diagram of the structure of another fault handling device provided in an embodiment of the present application;

[0087] Fig.14 A schematic diagram of the structure of a fault handling device provided in an embodiment of the present application;

[0088] Fig.15 A schematic diagram of the structure of another fault handling device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0089] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0090] In the field of communication technology, network reliability means that when a network failure occurs, the end-side node can quickly perceive the network failure and ensure that the service can recover quickly from the network failure. The end-side node can refer to the two ends of the transmission service message, for example, the end-side node can be a terminal or a server. For example, see Figure 1 The network networking structure diagram shown is a storage system of a data center. The end-side nodes in the storage system include at least one client and at least one storage end. The client performs storage, reading, writing or access operations on the storage end through at least one network device.

[0091] like Figure 1 As shown, the client can establish two connections with two ports of the storage end. For example, the two ports are port A and port B. Port A and port B are backups for each other. The connection B ( Figure 1 The dashed arrow in the figure is used as a redundant backup connection. Figure 1 In the event of a network failure (as indicated by the solid arrow in the middle), if the client is able to sense the network failure, it will switch or migrate the service from connection A to connection B to access port B, thereby ensuring that the service is continuous and uninterrupted when a network failure occurs, to meet the requirements of network reliability. Among them, since the end-side node needs to switch the service of the connection affected by the network failure to the redundant backup connection after sensing the network failure, the time required for the end-side node to sense the network failure and handle the failure directly affects the degree of damage to the service transmission performance. For example, the faster the end-side node senses and handles the network failure, the less damage to the service transmission performance.

[0092] In the related technology, a fault perception module is configured on the end-side node, and the network device needs to establish a private protocol with the fault perception module in the end-side node. When the network device senses that a network failure has occurred, it actively notifies the fault perception module of the end-side node of the fault information, so that the fault perception module of the end-side node can promptly recover the service from the network failure. Alternatively, a session is established between network devices. After the session is established, the local end that actively establishes the session sends a detection message to the other end. If no response to the detection message is received from the other end within the detection time, it is considered that the other end has a failure, so that the local end actively changes the route so that the service can be forwarded from other available physical paths to bypass the fault location. Alternatively, the client sends a heartbeat message to the server. If multiple heartbeats are not returned, it is determined that the connection of the original path is abnormal, and the client switches the service to a redundant backup connection.

[0093] As for the method of establishing a private protocol, since the end-side nodes and network devices often come from different manufacturers, it is difficult to use a unified private protocol between the end-side nodes and network devices, which makes the adaptability of this method poor. As for the method of sending a detection message to switch the physical path, since the source address and destination address of the service connection do not change before and after the physical path switching, the network device reroutes the service data on the connection to the new physical path. This method is not applicable to the scenario where there is only one physical path between network devices, nor can it switch the service to the redundant backup connection between the end-side nodes. For example, Figure 1 In the storage system shown, if the access link of port A fails, the client needs to switch the connection to access the backup port B. However, the above method of sending a detection message to switch the physical path does not switch the destination address of the service connection to port B, so that the service data still accesses port A. Therefore, switching the physical path cannot bypass the access link failure of port A and cannot achieve service failure recovery. As for the method of sending heartbeat messages, since the heartbeat messages between the end-side nodes are usually sent every few seconds and multiple heartbeat messages are required to confirm the connection abnormality, the fault detection time is long and the fault recovery is slow.

[0094] This application embodiment provides a fault handling method, see Figure 2 , Figure 2 A schematic diagram of an implementation environment of a fault handling method provided in an embodiment of the present application. Figure 2As shown, the implementation environment includes multiple nodes and multiple network devices, and any two of the multiple nodes serve as two end nodes for transmitting service messages, and communicate with each other through network devices. Among them, any node can be a terminal or a server, and any network device can be a switch or a router. In a multi-layer network architecture, multiple network devices may include leaf switches at the access layer, spine switches at the aggregation layer, and core switches at the core layer. In actual deployment, the number of nodes, leaf switches, spine switches, and core switches can be flexibly adjusted according to factors such as the scale of the network.

[0095] Optionally, any node has the capabilities of fault perception and connection switching after fault perception. Any network device is used to detect network faults. After detecting a network fault, it can directly send a disconnection request message to the node corresponding to the connection affected by the network fault, so that the node can disconnect the faulty connection in time according to the received disconnection request message. The connection affected by the network fault can refer to a connection whose service transmission performance is impaired due to the network fault. Alternatively, the detected network fault and the connection information affected by the network fault are sent to a proxy device, and the proxy device sends a disconnection request message to the node, so that the node can disconnect the faulty connection in time according to the received disconnection request message. The proxy device can be Figure 2 Any network device or any node shown, for example, a proxy device is Figure 2 The leaf switch of the access layer is shown.

[0096] The embodiments of the present application do not limit the application scenarios of the fault handling method. Optionally, the application scenario of the method may be a data center network, an interconnection between multiple data centers, or a wide area Internet. The services targeted by the method may be distributed machine learning training, distributed storage, artificial intelligence (AI), high performance computing (HPC), or high-performance services such as containers.

[0097] See also Figure 3 , Figure 3 This is an interactive diagram of a fault handling method provided in an embodiment of the present application. The method can be applied to Figure 2 The implementation environment shown, for example, Figure 2 The method is described by taking any network device and any node as an example to interactively execute the method. Figure 3 As shown, the fault handling method includes but is not limited to the following steps 301 to 303.

[0098] Step 301: A first network device determines that a network failure occurs.

[0099] In an embodiment of the present application, a network failure refers to a failure or abnormality that affects the connection transmission service, for example, a link failure between network devices, a bit error rate or packet error rate on a link higher than a normal threshold, a priority-based flow control (PFC) storm, a cyclic redundancy check (CRC) error, an access link failure of an end-side node, a storage failure of an end-side node, or a connection-level abnormality. Among them, a PFC storm refers to a phenomenon in which the network card driver software cannot process the receiving queue of the network card in a timely manner due to a hang or other reasons, causing the network card to be in a congested state, and then causing the network card to issue PFC all the time. Storage failures may include storage network card failures or storage controller system abnormalities. The normal threshold can be set based on experience or flexibly adjusted according to the application scenario.

[0100] Optionally, the determination method for the occurrence of a network failure includes but is not limited to the following two methods. Determination method 1: the first network device detects the occurrence of a network failure. In this determination method, the first network device is a device for detecting network failures, that is, the first network device has the ability to detect network failures, and determines the occurrence of a network failure based on the result of detecting the network failure. This makes it more efficient and accurate to determine the occurrence of a network failure.

[0101] Determination method 2: The first network device receives a notification message sent by the second network device, the notification message includes fault notification information, and the fault notification information indicates that a network fault has occurred; the first network device determines that a network fault has occurred based on the fault notification information. Under this determination method 2, the second network device acts as a device for detecting network faults, that is, the second network device has the ability to detect network faults, and the second network device sends the result of the detected network fault to the first network device, so that the first network device can determine that a network fault has occurred. Since the first network device can receive notification messages sent by each network device in the network, it can determine a wider range of network faults compared to the method in which the first network device detects network faults.

[0102] The message type of the notification message includes, but is not limited to, a link layer discovery protocol (LLDP) message, a transmission control protocol (TCP) message, or a user datagram protocol (UDP) message. When the notification message is an LLDP message, the fault notification information may be carried in the type, length, and value fields (TLV fields for short) of the LLDP message extension; when the notification message is a TCP message, the fault notification information may be carried in the payload or option extension header of the TCP message; when the notification message is a UDP message, the fault notification information may be carried in the payload of the UDP message.

[0103] The embodiment of the present application does not limit the method by which the first network device or the second network device detects a network fault, and it is sufficient that the network fault can be detected. For example, detection can be performed based on the port status of the network device, or detection can be performed using a bidirectional forwarding detection (BFD) method.

[0104] Step 302: The first network device sends a disconnection request message corresponding to a first connection to the first node. The first connection is a connection between the first node and another node. The disconnection request message is compatible with a standard protocol.

[0105] In an embodiment of the present application, the disconnection request message includes information indicating the first connection, so that the disconnection request message can instruct the first node to disconnect the first connection. Since the disconnection request message is compatible with the standard protocol, the standard protocol can be applied to network devices or nodes from different manufacturers, so that there is no need to establish a private protocol outside the standard protocol between the first network device and the first node, that is, there is no need to perform protocol modification or code adaptation on the first network device or the first node. Therefore, the fault handling method provided in the embodiment of the present application is easy to deploy, can be applied to the business environment of complex multi-scenario systems, and improves wide applicability. Optionally, the standard protocol may include the RDMA protocol or TCP, and the disconnection request message may be the DisconnectRequest message of the RDMA protocol or the FIN message of TCP.

[0106] In an embodiment of the present application, the first connection is a connection affected by a network failure, and the connection affected by a network failure may refer to a connection in which the service transmission performance is impaired due to the network failure. Wherein, service transmission is performed between any two nodes in the network through an established connection, and the established connection is a logical concept, and a connection may correspond to an actual physical path, and a physical path includes at least one network device. Before the first network device sends a disconnection request message corresponding to the first connection to the first node, the first network device needs to first determine the first connection affected by the network failure, and the two end nodes connected to the first connection. Wherein, the end node that initiates the establishment of the first connection may be the first node, and the other end node that passively establishes the first connection may be the second node, and the second node is a node other than the first node. For example, the first node is a client of a storage system, and the second node is a storage service client of the storage system.

[0107] In a possible implementation, after determining that the two end nodes connected by the first connection are the first node and the second node, the first network device may send a disconnection request message to both the first node and the second node. If the physical path from the first network device to the second node is unreachable, the first network device only sends the disconnection request message to the first node. Alternatively, the first network device may determine to which end node of the first connection to send the disconnection request message based on the connection direction of the first connection and the location where the network failure occurs. For example, if the connection direction of the first connection is from the first node to the first network device and then to the second node, and the location where the network failure occurs is between the first network device and the second node, the first network device sends a disconnection request message to the first node.

[0108] For example, taking the disconnect request message as the DisconnectRequest message of the RDMA protocol as an example, the message format of the disconnect request message is as follows: Figure 4As shown, it includes an Ethernet header, an Internet Protocol (IP) header, a UDP header, and an Infiniband header. Among them, the Infiniband header includes an attributed ID, a queue pair (QP) number, a local customer ID (LCID), and a remote customer ID (RCID). The attributed ID indicates that the attribute of the message is a disconnect request. For example, the value of the attributed ID is 0x15 in hexadecimal or 21 in decimal. The QP number is used to indicate the number of the QP. The LCID represents the source address of the first connection, and the RCID represents the destination address of the first connection. For example, the source of the first connection is the first node, and the destination of the first connection is the second node. The LCID can indicate the address of the first node, and the RCID can indicate the address of the second node. Therefore, the first connection can be indicated by the QP number, LCID, and RCID. Optionally, the Infiniband message header may further include a transaction identification (TID), and different connections may correspond to different TIDs, so the TID may also indicate the first connection.

[0109] In a possible implementation, in addition to sending a disconnection request message corresponding to the first connection to the first node, the first network device may also send a disconnection request message corresponding to the first connection to the other end node of the first connection. Optionally, the number of first connections may be one or more. When the number of first connections is more than one, the first network device may send corresponding disconnection request messages to each end node corresponding to the multiple first connections. This allows the first network device to send a disconnection request message to the node corresponding to the affected connection in a timely manner after sensing a network failure, thereby improving the efficiency of the node sensing a network failure.

[0110] Corresponding to the above-mentioned determination method one, the method for the first network device to determine the first connection and the first node includes the following determination method three. Determination method three, the first network device determines the first node according to the device connection information, the device connection information includes the source address and the destination address corresponding to the multiple connections respectively, and the multiple connections include the first connection. After detecting that a network failure has occurred, the first network device first determines the first connection affected by the network failure; then determines the source address and the destination address corresponding to the first connection according to the maintained device connection information, then the first node may be the node corresponding to the source address or the node corresponding to the destination address. Among them, the node corresponding to the source address may refer to the node that actively establishes or initiates the establishment of the first connection, and the node corresponding to the destination address may refer to the node that passively establishes the first connection.

[0111] The embodiment of the present application does not limit the manner in which the first network device determines the first connection affected by the network failure. Optionally, in the case where the network failure is a link failure, the connection including the network failure location in the physical path is taken as the first connection. For example, the first network device determines the faulty port corresponding to the network failure, and queries the connection corresponding to the faulty port based on the correspondence between the port and the connection in the device connection information. The connection corresponding to the faulty port is the connection affected by the network failure. Among them, the connection affected by the network failure can be one or more, and the first connection is included in the connection affected by the network failure. In another possible implementation, in the case where the network failure is a connection abnormality, the first network device can directly determine the first connection according to the cause of the network failure. For example, the first network device monitors the data transmission of the connection. If a connection without data transmission within the reference time is detected, the connection is determined as an abnormal connection. The connection without data transmission within the reference time is the first connection. Among them, the reference time can be set according to experience or flexibly adjusted in the application scenario.

[0112] Corresponding to the above-mentioned determination method 2, the method for the first network device to determine the first connection and the first node includes the following determination method 4. Determination method 4, the notification message sent by the second network device and received by the first network device also includes faulty connection information, and the faulty connection information can indicate the first connection. For example, the faulty connection information includes the connection identifier of the first connection. The first network device determines the first node based on the faulty connection information and the device connection information. Similarly, the device connection information includes the source end address and the destination end address corresponding to the multiple connections. Since the first network device does not have a network failure, the success rate of sending a disconnection request message to the first node is improved.

[0113] The manner in which fault connection information is carried in a notification message may refer to the manner in which the fault notification information is carried in a notification message described above, which will not be described in detail here. Optionally, the manner in which the second network device determines the first connection affected by the network failure in determination method four may refer to the manner in which the first network device determines the first connection affected by the network failure in determination method three, which will not be described in detail here. After the second network device determines the first connection affected by the network failure, the second network device will be able to instruct the first connection's fault connection information to be sent to the first network device.

[0114] In the embodiment of the present application, the device connection information maintained by the first network device in the determination method three is referred to as the first device connection information, and the device connection information maintained by the second network device in the determination method four is referred to as the second device connection information. The descriptions of the same connection in the first device connection information and the second device connection information may be the same or different. In the case where the first device connection information and the second device connection information are the same, the first network device determines that the first connection is obtained based on the received fault connection information, and directly determines the first node based on the source address and the destination address corresponding to the first connection in the first device connection information; in the case where the first device connection information and the second device connection information are different, the first network device determines that the first connection is obtained based on the received fault connection information, converts the first connection into the corresponding target connection in the first device connection information, and determines the first node based on the source address and the destination address corresponding to the target connection.

[0115] In a possible implementation, the device connection information can be obtained based on the messages exchanged during the process of establishing a connection between nodes. Exemplarily, corresponding to the above-mentioned determination method one and determination method three, taking the first node actively establishing a first connection to the second node as an example, the first node will send a connection establishment request message for establishing the first connection to the second node through the first network device, and the second node will also return a connection establishment response message corresponding to the connection establishment request message to the first node through the first network device. The first network device can determine that the first connection is successfully established by parsing the connection establishment request message and the connection establishment response message, and obtain the source address and destination address corresponding to the first connection. In this way, the connection establishment request message and the corresponding connection establishment response message exchanged by other nodes during the connection establishment process can also be obtained, and then multiple connections whose physical paths pass through the first network device, as well as the source address and destination address corresponding to the multiple connections are obtained.

[0116] Alternatively, the device connection information can also be obtained based on the local connection information sent by the first node, avoiding security issues arising in the process of parsing interactive messages. Exemplarily, corresponding to the above-mentioned determination method 2 and determination method 4, after the first node successfully establishes the first connection, since the physical path corresponding to the first connection passes through the second network device, the first node can send the source address and destination address of the first connection to the second network device, and similarly, other nodes will also send the source address and destination address corresponding to the connection whose physical path passes through the second network device to the second network device, thereby the second network device obtains multiple connections whose physical paths pass through the second network device, as well as the source addresses and destination addresses corresponding to the multiple connections.

[0117] Exemplarily, the device connection information is a table maintained by the first network device or the second network device, which includes the source end addresses and destination end addresses corresponding to multiple connections, as well as the port and link information corresponding to each connection. After sensing the network failure, the first network device or the second network device looks up the table according to the location of the network failure, and determines the first connection according to the table lookup result. For example, if the location of the network failure is port 1, the connection corresponding to port 1 in the table is obtained by looking up the table, and the connection corresponding to port 1 is the first connection; if the location of the network failure is link 1, the connection corresponding to link 1 in the table is obtained by looking up the table, and the connection corresponding to link 1 is the first connection.

[0118] Step 303: The first node receives a disconnection request message corresponding to the first connection sent by the first network device, and disconnects the first connection based on the disconnection request message.

[0119] After receiving the disconnection request message corresponding to the first connection sent by the first network device, the first node can perceive the network failure based on the disconnection request message. In addition to disconnecting the first connection, the first node can perform corresponding service failure recovery processing according to the perceived network failure. Optionally, the first node can switch the service transmitted on the first connection to the second connection for transmission, and the second connection is a connection that is not affected by the network failure, that is, the second connection is a connection that can be transmitted normally, so as to reduce the degree of damage to the service transmission performance. The source address and destination address of the second connection can be the same as or different from the source address and destination address of the first connection. For example, in the case that the access link of the destination port A of the first connection fails, the destination address of the second connection switched to can be the address of the destination port B.

[0120] In an embodiment of the present application, after the first node receives the disconnection request message corresponding to the first connection sent by the first network device, it can also return a disconnection response message to the first network device, and the disconnection response message is also compatible with the above-mentioned standard protocol, and the disconnection response message is a reply message to the above-mentioned disconnection request message. Thus, the first network device can receive the disconnection response message returned by the first node, and confirm that the disconnection request message has been successfully sent according to the disconnection response message. Through the reply mechanism of the disconnection response message, the transmission reliability of the disconnection response message is improved. Since the disconnection response message is also compatible with the standard protocol, the method can also be applied to the business environment of complex multi-scenario systems, which improves the implementation versatility and flexibility of the method.

[0121] Optionally, when the standard protocol is the RDMA protocol, the disconnect response message may be a DisconnectReply message of the RDMA protocol, and when the standard protocol is TCP, the disconnect response message may be a FIN-ACK message of TCP. For example, taking the disconnect request message as the DisconnectReply message of the RDMA protocol as an example, the message format of the disconnect response message may also be as follows: Figure 4 As shown, the difference from the disconnect request message is that the attributed ID in the Infiniban message header indicates that the attribute of the message is a disconnect response, for example, the value of the attributed ID is 0x16 in hexadecimal or 22 in decimal, and the value of LCID is swapped with the value of RCID, for example, LCID can indicate the address of the second node, and RCID can indicate the address of the first node.

[0122] In one possible application scenario, a two-way disconnection is required to disconnect. In this scenario, the first node disconnects the first connection based on a disconnection request message, including: the first node sends a disconnection request message for the first connection to the first network device, for example, a DisconnectRequest message of the RDMA protocol; the first network device returns a disconnection response message corresponding to the disconnection request message to the first node, for example, a DisconnectReply message of the RDMA protocol. By using a two-way disconnection method, the accuracy of the disconnection can be improved.

[0123] Optionally, after the first node receives the disconnection request message corresponding to the first connection sent by the first network device, it can initiate a request to establish a connection again. If the connection requested to be established by the first node is a connection affected by the network failure, for example, the first connection, then the first network device can directly reject the request to establish a connection if the network failure still exists, thereby improving the processing efficiency in the interactive process of establishing the connection and also improving the accuracy of connection establishment.

[0124] Exemplarily, the first node sends a connection establishment request message to the first network device, and the connection establishment request message is used to re-establish the first connection; after receiving the connection establishment request message, the first network device sends a connection establishment rejection message corresponding to the connection establishment request message to the first node. Wherein, the first network device can send a connection establishment rejection message corresponding to the connection establishment request message to the first node when it is recognized that the network fault still exists; or, within the reference time after sending the disconnection request message to the first node, the first network device believes that the network fault still exists and sends a connection establishment rejection message corresponding to the connection establishment request message to the first node; or, within the reference time after sending the disconnection request message to the first node, and when it is recognized that the network fault still exists, the first network device sends a connection establishment rejection message corresponding to the connection establishment request message to the first node. This allows the first network device to directly reject the request for establishing the first connection initiated by the first node when the network fault still exists, thereby improving the interaction efficiency of the connection establishment process.

[0125] The reference duration can be set based on experience or flexibly adjusted according to application scenarios. Optionally, after the first network device sends a disconnection request message to the first node, the first network device does not send a connection rejection message corresponding to the connection request message to the first node after receiving the connection request message, thereby preventing incorrect identification of network failures by setting the reference duration.

[0126] Exemplarily, the first network device starts a timer after sending a disconnect request message to the first node, and the value of the timer is a reference duration; if the timer has not timed out and it is recognized that the network fault still exists, a connection rejection message corresponding to the connection request message is sent to the first node, or, if the timer has not timed out, it is directly considered that the network fault still exists, and a connection rejection message corresponding to the connection request message is sent to the first node; if the timer times out, the connection rejection message corresponding to the connection request message is not sent to the first node. In the case where the standard protocol is the RDMA protocol, the connection request message can be a connection request (ConnectRequest) message of the RDMA protocol, and the connection rejection message can be a connection rejection (ConnectReject) message of the RDMA protocol.

[0127] In an embodiment of the present application, for the case where the first network device receives a notification message sent by the second network device, another implementation method is that the first node can directly send a disconnection response message to the second network device, and the second network device receives the disconnection response message. In a two-way disconnection scenario, the first node can also directly send a disconnection request message for the first connection to the second network device, and the first network device returns a disconnection response message corresponding to the disconnection request message to the first node. Similarly, in a reconnection scenario, the first node can send a connection establishment request message to the second network device, and the connection establishment request message is used to reestablish the first connection; after receiving the connection establishment request message, the second network device sends a connection establishment rejection message corresponding to the connection establishment request message to the first node.

[0128] Figure 3 The fault handling method shown can quickly send a disconnect request message to the end-side node corresponding to the connection affected by the network fault when the network device determines that a network fault has occurred, so as to quickly trigger the end-side node to handle the network fault, reduce the transmission impact of the network fault on the service, and achieve rapid fault perception and rapid service recovery of the end-side node, thereby improving network reliability. In addition, since the disconnect request message is compatible with the standard protocol, there is no need to adapt the code, new protocol, private protocol, etc., so that the method can be applied to the business environment of complex multi-scenario systems, which improves the implementation versatility and flexibility of the method.

[0129] See also Figure 5 , Figure 5 This is an interactive diagram of a fault handling method provided in an embodiment of the present application. The method can be applied to Figure 2 The implementation environment shown, for example, Figure 2 The method is described by taking any two nodes interactively executing the method as an example, wherein the two nodes include a target node and a first node, the target node is the node that sends the disconnection request message, and the first node is the node that needs to be disconnected. Figure 5 As shown, the fault handling method includes but is not limited to the following steps 501 to 503.

[0130] Step 501: The target node determines that a network failure occurs.

[0131] In an embodiment of the present application, the implementation method for the target node to determine the occurrence of a network failure can refer to the implementation method for the first network device to determine the occurrence of a network failure in step 301, that is, the target node can detect the occurrence of a network failure, and can also determine the occurrence of a network failure based on the notification message received from the second network device, which will not be repeated here.

[0132] Step 502: The target node sends a disconnection request message corresponding to a first connection to the first node. The disconnection request message is compatible with a standard protocol. The first connection is a connection established by the first node to the target node, or the first connection is a connection between a node and other nodes except the target node.

[0133] In the embodiment of the present application, the implementation method of the target node sending the disconnection request message corresponding to the first connection to the first node can refer to the implementation method of the first network device sending the disconnection request message corresponding to the first connection to the first node in step 302. That is, the target node detects a network failure, determines the first connection and the first node according to the maintained device connection information, and sends the disconnection request message corresponding to the first connection to the first node; or, the target node receives the notification message sent by the second network device, determines the first connection and the first node according to the fault connection information in the notification message and the maintained device connection information, and sends the disconnection request message corresponding to the first connection to the first node, which will not be repeated here.

[0134] In the case where the first connection is a connection established by the first node to the target node, the first node is the active establisher of the first connection, and the target node is the passive establisher of the first connection. In the related art, the first node is usually required to start a heartbeat keep-alive mechanism, intermittently send heartbeat messages to the target node, and sense whether the first connection is abnormal based on whether there is a response to the heartbeat message. In an embodiment of the present application, when a network failure is detected, the target node can directly send a disconnect request message to the first node without the need for active detection by the first node, thereby saving the network resources required for sending heartbeat messages, increasing the speed at which the active party establishing the connection perceives the failure, and thereby improving the efficiency of fault handling.

[0135] In the case where the first connection is a connection between a node and other nodes except the target node, the target node is not an end-side node at either end of the first connection. The target node can detect the network failure affecting the first connection by itself, and the target node can also receive the network failure affecting the first connection notified by the second network device. In short, the target node can send the disconnection request message to the corresponding end-side node in time, which improves the speed at which the end-side node perceives the failure, thereby improving the efficiency of the end-side node in handling the failure.

[0136] Step 503: The first node receives a disconnection request message corresponding to the first connection sent by the target node, and disconnects the first connection based on the disconnection request message.

[0137] In an embodiment of the present application, the first node receives a disconnection request message corresponding to the first connection sent by the target node. The implementation method of disconnecting the first connection based on the disconnection request message can be referred to the implementation method of disconnecting the first connection based on the disconnection request message in step 303, in which the first node receives a disconnection request message corresponding to the first connection sent by the first network device. It will not be repeated here.

[0138] Figure 5 In the fault handling method shown, when the target node determines that a network fault has occurred, the target node can quickly send a disconnection request message to the end-side node corresponding to the connection affected by the network fault, so as to quickly trigger the end-side node to handle the network fault, reduce the transmission impact of the network fault on the service, and achieve rapid fault perception and rapid service recovery of the end-side node, thereby improving network reliability. In addition, since the disconnection request message is compatible with the standard protocol, there is no need to adapt the code, new protocol, private protocol, etc., so that the method can be applied to the business environment of complex multi-scenario systems, improving the implementation versatility and flexibility of the method.

[0139] Below, the fault handling method provided in the embodiment of the present application is described by taking the case where the device that detects the network failure and sends the disconnection request message is the same device, which may be a network device, and the two end nodes of the connection are terminal 1 and terminal 2 as an example. Figure 6 In the schematic diagram of the network failure shown in FIG. 7 , three connections are established between terminal 1 and terminal 2 through switches 1 to 6, namely QP3, QP4 and QP5. Among them, the source address of QP3 is IP1, and the destination address of QP3 is IP3; the source address of QP4 is IP1, and the destination address of QP4 is IP3; the source address of QP5 is IP2, and the destination address of QP5 is IP4. Figure 6 In the example, the access link between switch 3 and terminal 2 fails. Figure 7 In the example, the link between switch 2 and switch 3 fails. Figure 6 and 7 The network failure shown, combined with Figure 8 The fault handling process shown is an example of the fault handling method provided in the embodiment of the present application.

[0140] exist Figure 8 In the fault handling process shown, first, a first connection is established between terminal 1 and terminal 2 through a network device, and the network device obtains device connection information, which includes the source address of the first connection, i.e., the address of terminal 1, and the destination address, i.e., the address of terminal 2. For example, Figure 6 and 7As shown, the first connection established between terminal 1 and terminal 2 is QP3, and the device that detects the network failure and sends the disconnection request message is Figure 6 and 7 Switch 3 is shown.

[0141] Optionally, the network device obtains the device connection information in the following manner: during the process of establishing a connection between terminals, the network device actively obtains the connection information between terminals; or, after the connection is established between the terminals, terminal 1 or terminal 2 transmits the connection information of the established connection to the network device; or, the device connection information is configured in the network device through out-of-band configuration.

[0142] Then, when the network device detects that a network failure has occurred, it determines the connection affected by the network failure, which may be one or more connections. Taking the connection affected by the network failure as a first connection as an example, the network device constructs a disconnection request message for the first connection according to the connection information of the first connection, and sends the disconnection request message to the terminal 1 and the terminal 2 to which the first connection belongs, so that the terminal 1 and the terminal 2 disconnect the first connection.

[0143] Exemplarily, if a network failure causes the network device to be unreachable from one terminal in the first connection, the network device sends a disconnection request message to the other reachable terminal in the first connection. Figure 6 As shown, the access link directly connected between switch 3 and terminal 2 fails, switch 3 detects the access link failure, terminal 2 is unreachable, and switch 3 sends a disconnection request message to terminal 1. In another exemplary embodiment, if the network failure occurs between the network device and one terminal of the first connection, the network device sends a disconnection request message to the other terminal in the first connection. Figure 7 As shown, the link between switch 2 and switch 3 fails. Switch 2 and switch 3 both detect the link failure. Switch 2 sends a disconnect request message to terminal 1, and switch 3 sends a disconnect request message to terminal 2.

[0144] exist Figure 8 In the case where the network device shown sends a disconnect request message to terminal 1, terminal 1 returns a disconnect response message corresponding to the disconnect request message to the network device, and the network device may not process the received disconnect response message, or may discard the disconnect response message. Optionally, terminal 1 sends a connection establishment request message to the network device. If the connection established by the connection establishment request message is still affected by the network failure, the network device constructs a corresponding connection establishment rejection message for the received connection establishment request message, and returns the connection establishment rejection message to terminal 1 to reject the request of terminal 1 to establish a connection.

[0145] Afterwards, terminal 1 senses the network failure according to the received disconnection request message, disconnects the faulty connection indicated by the disconnection request message, and performs corresponding service failure recovery processing. For example, the service is switched from the faulty connection to another available connection for transmission. For example, Figure 6 or Figure 7 As shown, terminal 1 switches the service to QP4 for transmission. In this case, the source and destination addresses of QP4 and QP3 are the same. Alternatively, terminal 1 switches the service to QP5 for transmission. In this case, the source and destination addresses of QP5 and QP3 are different, thus achieving the effect of fault recovery by changing the source or destination address. In the embodiment of the present application, Figure 8 The specific implementation methods of the fault handling process shown can be found in Figure 3 or Figure 5 The specific implementation of the fault handling method shown will not be repeated here.

[0146] Taking the devices that detect the network failure and send the disconnection request message as different devices, for example, the device that detects the network failure is a network device, and the device that sends the disconnection request message is a proxy device, the proxy device can be any network device or any terminal, and the two end nodes of the connection are terminal 1 and terminal 2 as an example, the fault handling method provided in the embodiment of the present application is illustrated. Fig. 9 In the schematic diagram of the network failure shown in FIG. 1 , a connection QP3 is established between terminal 1 and terminal 2, wherein the source address of QP3 is IP1 and the destination address of QP3 is IP3. Fig. 9 In the example, the link between switch 2 and switch 3 fails. Fig. 9 The network failure shown, combined with Fig.10 The fault handling process shown is an example of the fault handling method provided in the embodiment of the present application.

[0147] like Fig.10 As shown, first, a first connection is established between terminal 1 and terminal 2 through a network device. This process is similar to Figure 8 The process of establishing the first connection between the terminal 1 and the terminal 2 through the network device is the same, and will not be repeated here. Then, when the network device detects that a network failure has occurred, it determines the connection affected by the network failure, and still takes the connection affected by the network failure as the first connection as an example, the network device notifies the proxy device of the failure notification information and the failure connection information. The proxy device constructs a disconnection request message for the first connection, and sends the disconnection request message to the terminal 1 and the terminal 2 to which the first connection belongs, so that the terminal 1 and the terminal 2 disconnect the first connection.

[0148] Exemplarily, the first connection established between terminal 1 and terminal 2 is Fig. 9QP3 shown. The network devices are Fig. 9 The switch 3 shown is the proxy device Fig. 9 In the switch 5 shown, when the switch 3 detects that the link between the switch 3 and the switch 2 fails, the switch 3 sends the fault notification information and the fault connection information to the switch 5, and the switch 5 sends the disconnection request message to the terminal 1 and the terminal 2. Optionally, the switch 2 also detects that the link between the switch 3 and the switch 2 fails, and the switch 2 also sends the fault notification information and the fault connection information to the switch 5. The switch 5 will receive two fault notification information and the fault connection information sent by the switch 3 and the switch 2. Based on the two fault notification information and the fault connection information, the switch 5 can send two disconnection request messages to the terminal 1 and the terminal 2 respectively, or aggregate the two fault notification information and the fault connection information to send one disconnection request message to the terminal 1 and the terminal 2, so as to avoid repeated sending of the disconnection request message.

[0149] In another exemplary embodiment, the proxy device may also be Fig. 9 For the terminal 2 shown, when the switch 3 detects that a link between the switch 3 and the switch 2 fails, the switch 3 sends a fault notification message and a fault connection message to the terminal 2, and the terminal 2 sends a disconnection request message to the terminal 1.

[0150] exist Fig.10 In the fault handling process shown in the figure, sending a disconnection request message to terminal 1 is used as an example. The operation of terminal 1 after receiving the disconnection request message is similar to that of Figure 8 The operation of the terminal 1 after receiving the disconnection request message is the same as shown, and will not be repeated here. Among them, if the connection establishment request message sent by the terminal 1 reaches the network device, then the network device can return a connection establishment rejection message corresponding to the connection establishment request message; if the connection establishment request message sent by the terminal 1 reaches the proxy device, the proxy device can also return a connection establishment rejection message corresponding to the connection establishment request message, and the embodiment of the present application does not limit this. In the embodiment of the present application, Fig.10 The specific implementation methods of the fault handling process shown can be found in Figure 3 or Figure 5 The specific implementation of the fault handling method shown will not be repeated here.

[0151] The above describes the fault handling method of the embodiment of the present application. Corresponding to the above method, the embodiment of the present application also provides a fault handling device. Fig.11 is a structural diagram of a fault handling device provided in an embodiment of the present application, the device is applied to a first network device, the first network device is the above-mentioned Figure 3 The first network device shown. Based on Fig.11As shown in the following multiple modules, the Fig.11 The fault handling device shown can perform all or part of the operations performed by the first network device. It should be understood that the device may include more additional modules than the modules shown or omit some of the modules shown, and the embodiments of the present application are not limited to this. Fig.11 As shown, the device comprises:

[0152] The transceiver module 1001 is used to execute Figure 3 Receiving and / or sending related operations performed by the first network device in the method shown;

[0153] Processing module 1002, for executing Figure 3 Other operations besides the receiving and / or sending related operations performed by the first network device in the method shown.

[0154] In a possible implementation, the transceiver module 1001 includes a receiving module and / or a sending module. The receiving module is used to perform reception-related operations, and the sending module is used to perform sending-related operations.

[0155] In a possible implementation, the processing module 1002 is configured to determine that a network failure occurs;

[0156] The transceiver module 1001 is used to send a disconnection request message corresponding to a first connection to the first node. The first connection is a connection between the first node and other nodes. The disconnection request message is compatible with the standard protocol, and the disconnection request message instructs the first node to disconnect the first connection.

[0157] In a possible implementation manner, the disconnect request message is a DisconnectRequest message of the RDMA protocol or a FIN message of TCP.

[0158] In a possible implementation, the processing module 1002 is configured to detect that a network failure occurs.

[0159] In a possible implementation, the processing module 1002 is further configured to determine the first node according to the device connection information, where the device connection information includes source end addresses and destination end addresses corresponding to a plurality of connections.

[0160] In a possible implementation, the transceiver module 1001 is configured to receive a notification message sent by a second network device, where the notification message includes fault notification information, and the fault notification information indicates that a network fault has occurred;

[0161] The processing module 1002 is used to determine whether a network failure occurs according to the failure notification information.

[0162] In a possible implementation, the notification message also includes fault connection information, which indicates the first connection; the processing module 1002 is also used to determine the first node based on the fault connection information and the device connection information, and the device connection information includes source addresses and destination addresses corresponding to multiple connections respectively.

[0163] In a possible implementation manner, the device connection information is obtained according to messages exchanged during the process of establishing a connection between nodes; or, the device connection information is obtained according to local connection information sent by the first node.

[0164] In a possible implementation, the transceiver module 1001 is further configured to receive a disconnection response message sent by the first node, the disconnection response message is compatible with a standard protocol, and the disconnection response message is a reply message to the disconnection request message.

[0165] In a possible implementation manner, the disconnect response message is a DisconnectReply message of the RDMA protocol or a FIN-ACK message of TCP.

[0166] In a possible implementation, the transceiver module 1001 is further configured to receive a connection establishment request message sent by the first node, where the connection establishment request message is used to re-establish the first connection; and to send a connection establishment rejection message corresponding to the connection establishment request message to the first node.

[0167] Fig.12 is a schematic diagram of a fault handling device provided in an embodiment of the present application, the device is applied to a target node, the target node is the above Figure 5 The target node shown. Fig.12 As shown in the following multiple modules, the Fig.12 The fault handling device shown can perform all or part of the operations performed by the target node. It should be understood that the device may include more additional modules than the modules shown or omit some of the modules shown therein, and the embodiments of the present application are not limited to this. Fig.12 As shown, the device comprises:

[0168] The transceiver module 1101 is used to execute Figure 5 The receiving and / or sending related operations performed by the target node in the method shown;

[0169] Processing module 1102, for executing Figure 5 Other operations besides the reception and / or transmission related operations performed by the target node in the method shown.

[0170] In a possible implementation, the transceiver module 1101 includes a receiving module and / or a sending module. The receiving module is used to perform reception-related operations, and the sending module is used to perform sending-related operations.

[0171] In a possible implementation, the processing module 1102 is configured to determine that a network failure occurs;

[0172] The transceiver module 1101 is used to send a disconnection request message corresponding to a first connection to the first node, the disconnection request message is compatible with the standard protocol, and the disconnection request message instructs the first node to disconnect the first connection, the first connection is a connection established by the first node to the target node, or the first connection is a connection between the first node and other nodes except the target node.

[0173] In a possible implementation manner, the disconnect request message is a DisconnectRequest message of the RDMA protocol or a FIN message of TCP.

[0174] In a possible implementation, the processing module 1102 is configured to detect that a network failure occurs.

[0175] In a possible implementation, the processing module 1102 is further configured to determine the first node according to the device connection information, where the device connection information includes source end addresses and destination end addresses corresponding to a plurality of connections.

[0176] In a possible implementation, the transceiver module 1101 is configured to receive a notification message sent by the second network device, where the notification message includes fault notification information, and the fault notification information indicates that a network fault has occurred;

[0177] The processing module 1102 is used to determine whether a network failure occurs according to the failure notification information.

[0178] In a possible implementation, the notification message also includes fault connection information, which indicates the first connection; the processing module 1102 is also used to determine the first node based on the fault connection information and the device connection information, and the device connection information includes source addresses and destination addresses corresponding to multiple connections respectively.

[0179] In a possible implementation manner, the device connection information is obtained according to messages exchanged during the process of establishing a connection between nodes; or, the device connection information is obtained according to local connection information sent by the first node.

[0180] In a possible implementation, the transceiver module 1101 is further configured to receive a disconnection response message sent by the first node, the disconnection response message is compatible with a standard protocol, and the disconnection response message is a reply message to the disconnection request message.

[0181] In a possible implementation manner, the disconnect response message is a DisconnectReply message of the RDMA protocol or a FIN-ACK message of TCP.

[0182] In a possible implementation, the transceiver module 1101 is further configured to receive a connection establishment request message sent by the first node, where the connection establishment request message is used to re-establish the first connection; and to send a connection establishment rejection message corresponding to the connection establishment request message to the first node.

[0183] Fig.13 is a schematic diagram of a fault handling device provided in an embodiment of the present application, the device is applied to a first node, the first node is the above-mentioned Figure 3 or Figure 5 The first node shown. Based on Fig.13 As shown in the following multiple modules, the Fig.13 The fault handling device shown can perform all or part of the operations performed by the first node. It should be understood that the device may include more additional modules than the modules shown or omit some of the modules shown therein, and the embodiments of the present application are not limited to this. Fig.13 As shown, the device comprises:

[0184] The transceiver module 1201 is used to execute Figure 3 or Figure 5 Receiving and / or sending related operations performed by the first node in the method shown;

[0185] Processing module 1202, for executing Figure 3 or Figure 5 Other operations besides the receiving and / or sending related operations performed by the first node in the method shown.

[0186] In a possible implementation, the transceiver module 1201 includes a receiving module and / or a sending module. The receiving module is used to perform reception-related operations, and the sending module is used to perform sending-related operations.

[0187] In a possible implementation, the transceiver module 1201 is configured to receive a disconnection request message corresponding to a first connection, where the first connection is a connection between the first node and other nodes, and the disconnection request message is compatible with a standard protocol;

[0188] The processing module 1202 is configured to disconnect the first connection based on the disconnection request message.

[0189] In a possible implementation manner, the disconnect request message is a DisconnectRequest message of the RDMA protocol or a FIN message of TCP.

[0190] In a possible implementation manner, the transceiver module 1201 is further configured for the first node to send a disconnection response message, the disconnection response message is compatible with a standard protocol, and the disconnection response message is a reply message to the disconnection request message.

[0191] In a possible implementation manner, the disconnect response message is a DisconnectReply message of the RDMA protocol or a FIN-ACK message of TCP.

[0192] In a possible implementation manner, the transceiver module 1201 is further configured to send a connection establishment request message, where the connection establishment request message is used to re-establish the first connection; and receive a connection establishment rejection message corresponding to the connection establishment request message.

[0193] In a possible implementation manner, the processing module 1202 is further configured to cause the first node to switch a service transmitted on the first connection to be transmitted on the second connection, where the second connection is a connection that is not affected by the network failure.

[0194] It should be understood that the above Figure 11-13 When the device provided realizes its functions, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiments belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here. Figure 11-13 The effect of the device shown can be seen in Figure 3 or Figure 5 The effects produced by the method shown will not be described in detail here.

[0195] See also Fig.14 , Fig.14 A schematic structural diagram of a fault handling device 2000 provided in an exemplary embodiment of the present application is shown. Fig.14 The fault handling device 2000 shown is used to perform the above Figure 3 or Figure 5 The operations involved in the fault handling method shown in the figure. The fault handling device 2000 is, for example, a terminal, a server, a switch, a router, etc. The fault handling device 2000 can be implemented by a general bus architecture.

[0196] like Fig.14 As shown, the fault handling device 2000 includes at least one processor 2001 , a memory 2003 and at least one communication interface 2004 .

[0197] The processor 2001 is, for example, a general-purpose central processing unit (CPU), a digital signal processor (DSP), a network processor (NP), a graphics processing unit (GPU), a neural-network processing units (NPU), a data processing unit (DPU), a microprocessor, or one or more integrated circuits for implementing the solution of the present application. For example, the processor 2001 includes an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The PLD is, for example, a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof. It can implement or execute various logic blocks, modules, and circuits described in conjunction with the disclosure of the embodiments of the present invention. The processor can also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0198] Optionally, the fault handling device 2000 further includes a bus. The bus is used to transmit information between the components of the fault handling device 2000. The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.14 The fact that only one line is used in the diagram does not mean that there is only one bus or only one type of bus.

[0199] The memory 2003 is, for example, a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, or a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 2003 is, for example, independent and connected to the processor 2001 via a bus. The memory 2003 can also be integrated with the processor 2001.

[0200] The communication interface 2004 uses any transceiver-like device to communicate with other devices or communication networks, and the communication network can be Ethernet, radio access network (RAN) or wireless local area network (WLAN), etc. The communication interface 2004 can include a wired communication interface and can also include a wireless communication interface. Specifically, the communication interface 2004 can be an Ethernet interface, a Fast Ethernet (FE) interface, a Gigabit Ethernet (GE) interface, an Asynchronous Transfer Mode (ATM) interface, a wireless local area network (WLAN) interface, a cellular network communication interface or a combination thereof. The Ethernet interface can be an optical interface, an electrical interface or a combination thereof. In an embodiment of the present application, the communication interface 2004 can be used for the fault handling device 2000 to communicate with other devices.

[0201] In a specific implementation, as an embodiment, the processor 2001 may include one or more CPUs, such as Fig.140 and CPU1 shown in FIG. Each of these processors may be a single-core CPU processor or a multi-core CPU processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0202] In a specific implementation, as an embodiment, the fault processing device 2000 may include multiple processors, such as Fig.14 2001 and 2005 are shown in FIG. Each of these processors may be a single-core CPU or a multi-core CPU. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).

[0203] In a specific implementation, as an embodiment, the fault handling device 2000 may also include an output device and an input device. The output device communicates with the processor 2001 and can display information in a variety of ways. For example, the output device may be a liquid crystal display (LCD), a light emitting diode (LED) display device, a cathode ray tube (CRT) display device, or a projector. The input device communicates with the processor 2001 and can receive user input in a variety of ways. For example, the input device may be a mouse, a keyboard, a touch screen device, or a sensor device.

[0204] In some embodiments, the memory 2003 is used to store the program code 2010 for executing the solution of the present application, and the processor 2001 can execute the program code 2010 stored in the memory 2003. That is, the fault handling device 2000 can implement the fault handling method provided by the method embodiment through the processor 2001 and the program code 2010 in the memory 2003. The program code 2010 may include one or more software modules. Optionally, the processor 2001 itself can also store the program code or instruction for executing the solution of the present application.

[0205] In a specific embodiment, the fault handling device 2000 of the embodiment of the present application may correspond to the first network device in each of the above method embodiments, and the processor 2001 in the fault handling device 2000 reads the instruction in the memory 2003, so that Fig.14 The fault handling device 2000 shown can execute all or part of the operations executed by the first network device.

[0206] Specifically, the processor 2001 is used to determine that a network failure occurs; and send a disconnection request message corresponding to a first connection to the first node. The first connection is a connection between the first node and other nodes, the disconnection request message is compatible with a standard protocol, and the disconnection request message instructs the first node to disconnect the first connection.

[0207] For the sake of brevity, other optional implementations are not described here in detail.

[0208] For another example, the fault handling device 2000 in the embodiment of the present application may correspond to the target node in each of the above method embodiments, and the processor 2001 in the fault handling device 2000 reads the instruction in the memory 2003, so that Fig.14 The fault handling device 2000 shown is capable of executing all or part of the operations performed by the target node.

[0209] Specifically, the processor 2001 is used to determine that a network failure occurs; and send a disconnection request message corresponding to a first connection to the first node. The disconnection request message is compatible with a standard protocol, and the disconnection request message instructs the first node to disconnect the first connection, where the first connection is a connection established by the first node to a target node, or the first connection is a connection between the first node and other nodes except the target node.

[0210] For the sake of brevity, other optional implementations are not described here in detail.

[0211] For another example, the fault handling device 2000 in the embodiment of the present application may correspond to the first node in each of the above method embodiments, and the processor 2001 in the fault handling device 2000 reads the instruction in the memory 2003, so that Fig.14 The fault handling device 2000 shown is capable of executing all or part of the operations executed by the first node.

[0212] Specifically, the processor 2001 is used to receive a disconnection request message corresponding to a first connection, where the first connection is a connection between the first node and other nodes, and the disconnection request message is compatible with a standard protocol; and disconnect the first connection based on the disconnection request message.

[0213] For the sake of brevity, other optional implementations are not described here in detail.

[0214] The fault handling device 2000 may also correspond to the above Figure 11-13 In the fault processing device shown, each functional module in the fault processing device is implemented by software of the fault processing device 2000. In other words, the functional modules included in the fault processing device are generated after the processor 2001 of the fault processing device 2000 reads the program code 2010 stored in the memory 2003.

[0215] in, Figure 3 or Figure 5 Each step of the fault handling method shown is completed by an integrated logic circuit of hardware or software instructions in the processor of the fault handling device 2000. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor, or a combination of hardware and software modules in the processor. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.

[0216] See also Fig.15 , Fig.15 FIG. 2 shows a schematic diagram of the structure of a fault handling device 2100 provided by another exemplary embodiment of the present application. Fig.15 The fault handling device 2100 shown is used to perform the above Figure 3 All or part of the operations involved in the fault handling method shown. The fault handling device 2100 is, for example, a switch, a router, etc. The fault handling device 2100 can be implemented by a general bus architecture.

[0217] like Fig.15 As shown, the fault handling device 2100 includes: a main control board 2110 and an interface board 2130 .

[0218] The main control board is also called a main processing unit (MPU) or a route processor card. The main control board 2110 is used to control and manage various components in the fault handling device 2100, including route calculation, device management, device maintenance, and protocol processing functions. The main control board 2110 includes: a central processing unit 2111 and a memory 2112.

[0219] The interface board 2130 is also called a line processing unit (LPU), a line card (linecard) or a service board. The interface board 2130 is used to provide various service interfaces and realize the forwarding of data packets. The service interface includes but is not limited to an Ethernet interface, a POS (Packet over SONET / SDH) interface, etc., and the Ethernet interface is, for example, a Flexible Ethernet Service Interface (Flexible Ethernet Clients, FlexE Clients). The interface board 2130 includes: a central processing unit 2131, a network processor 2132, a forwarding table entry memory 2134 and a physical interface card (physical interface card, PIC) 2133.

[0220] The central processor 2131 on the interface board 2130 is used to control and manage the interface board 2130 and communicate with the central processor 2111 on the main control board 2110 .

[0221] The network processor 2132 is used to implement the forwarding processing of the message. The network processor 2132 can be in the form of a forwarding chip. The forwarding chip can be a network processor (NP). In some embodiments, the forwarding chip can be implemented by an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA). Specifically, the network processor 2132 is used to forward the received message based on the forwarding table stored in the forwarding table entry memory 2134. If the destination address of the message is the address of the fault processing device 2100, the message is sent to the CPU (such as the central processor 2131) for processing; if the destination address of the message is not the address of the fault processing device 2100, the next hop and the output interface corresponding to the destination address are found from the forwarding table according to the destination address, and the message is forwarded to the output interface corresponding to the destination address. Among them, the processing of the uplink message may include: processing of the message input interface, forwarding table search; the processing of the downlink message may include: forwarding table search, etc. In some embodiments, the central processor can also perform the function of the forwarding chip, such as implementing software forwarding based on a general-purpose CPU, so that the forwarding chip is not required in the interface board.

[0222] The physical interface card 2133 is used to implement the physical layer docking function, whereby the original traffic enters the interface board 2130, and the processed message is sent out from the physical interface card 2133. The physical interface card 2133, also called a daughter card, can be installed on the interface board 2130, and is responsible for converting the photoelectric signal into a message and forwarding the message to the network processor 2132 for processing after checking the legitimacy of the message. In some embodiments, the central processor 2131 can also perform the functions of the network processor 2132, such as implementing software forwarding based on a general-purpose CPU, so that the network processor 2132 is not required in the physical interface card 2133.

[0223] Optionally, the fault handling device 2100 includes a plurality of interface boards, for example, the fault handling device 2100 further includes an interface board 2140, and the interface board 2140 includes: a central processor 2141, a network processor 2142, a forwarding table entry memory 2144, and a physical interface card 2143. The functions and implementation methods of the components in the interface board 2140 are the same or similar to those of the interface board 2130, and are not described in detail herein.

[0224] Optionally, the fault handling device 2100 further includes a switching fabric board 2120. The switching fabric board 2120 may also be referred to as a switch fabric unit (SFU). When the fault handling device 2100 has multiple interface boards, the switching fabric board 2120 is used to complete data exchange between the interface boards. For example, the interface board 2130 and the interface board 2140 may communicate through the switching fabric board 2120.

[0225] The main control board 2110 is coupled to the interface board. For example, the main control board 2110, the interface board 2130, the interface board 2140, and the switching network board 2120 are connected to the system backplane through the system bus to achieve intercommunication. In a possible implementation, an inter-process communication (IPC) channel is established between the main control board 2110 and the interface board 2130 and the interface board 2140, and the main control board 2110 and the interface board 2130 and the interface board 2140 communicate through the IPC channel.

[0226] Logically, the fault handling device 2100 includes a control plane and a forwarding plane. The control plane includes a main control board 2110 and a central processing unit 2111. The forwarding plane includes various components for performing forwarding, such as a forwarding table entry memory 2134, a physical interface card 2133, and a network processor 2132. The control plane performs functions such as a router, generating a forwarding table, processing signaling and protocol messages, and configuring and maintaining the status of network devices. The control plane sends the generated forwarding table to the forwarding plane. On the forwarding plane, the network processor 2132 forwards the message received by the physical interface card 2133 based on the forwarding table sent by the control plane. The forwarding table sent by the control plane can be stored in the forwarding table entry memory 2134. In some embodiments, the control plane and the forwarding plane can be completely separated and not on the same network device.

[0227] It is worth noting that there may be one or more main control boards, and when there are multiple boards, they may include a primary main control board and a backup main control board. There may be one or more interface boards. The stronger the data processing capability of the network device, the more interface boards are provided. There may also be one or more physical interface cards on the interface board. There may be no switching network board, or there may be one or more switching network boards. When there are multiple switching network boards, they can jointly realize load sharing and redundant backup. In a centralized forwarding architecture, network devices may not need switching network boards, and the interface board is responsible for processing the service data of the entire system. In a distributed forwarding architecture, network devices may have at least one switching network board, and data exchange between multiple interface boards is realized through the switching network board, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network devices with distributed architectures are greater than those of network devices with centralized architectures. Optionally, the network device may have only one board, that is, no switching board, and the functions of the interface board and the main control board are integrated on the board. In this case, the central processor on the interface board and the central processor on the main control board can be combined into one central processor on the board to perform the functions of the two. This type of network device has low data exchange and processing capabilities (for example, low-end switches or routers and other network devices). The specific architecture to be adopted depends on the specific networking deployment scenario, and no limitation is made here.

[0228] In a specific embodiment, the fault handling device 2100 corresponds to the above Fig.11 The fault handling device shown is applied to the first network device. In some embodiments, Fig.11 The transceiver module 1001 in the fault processing apparatus shown is equivalent to the physical interface card 2133 in the fault processing device 2100 , and the processing module 1002 is equivalent to the central processor 2111 or the network processor 2132 in the fault processing device 2100 .

[0229] The embodiment of the present application further provides a fault handling system, the handling system comprising: a first network device and a first node. Optionally, the first network device is Fig.14 The fault handling device 2000 shown or Fig.15 The fault handling device 2100 shown in FIG. 1 has a first node. Fig.14 The fault handling device 2000 shown. The fault handling method executed by the first network device and the first node can refer to the above Figure 3 The relevant description of the illustrated embodiment will not be repeated here.

[0230] The embodiment of the present application also provides a fault processing system, the processing system comprising: a target node and a first node. Optionally, the target node and the first node can be Fig.14 The fault handling device 2000 shown in FIG. 2000. The fault handling method executed by the target node and the first node can be referred to in the above Figure 5 The relevant description of the illustrated embodiment will not be repeated here.

[0231] The embodiment of the present application also provides a communication device, which includes: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals, and when the processor executes the instructions stored in the memory, the processor executes the method required to be executed by the first network device.

[0232] The embodiment of the present application also provides a communication device, which includes: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals, and when the processor executes the instructions stored in the memory, the processor executes the method required to be executed by the target node.

[0233] The embodiment of the present application also provides a communication device, which includes: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other through an internal connection path, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory to control the transceiver to receive signals and control the transceiver to send signals, and when the processor executes the instructions stored in the memory, the processor executes the method required to be executed by the first node.

[0234] It should be understood that the processor may be a CPU, or other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the advanced reduced instruction set machine (ARM) architecture.

[0235] Further, in an optional embodiment, the memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. The memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.

[0236] The memory may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memory. Among them, the nonvolatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM) and direct RAM bus random access memory (DR RAM).

[0237] An embodiment of the present application also provides a computer-readable storage medium, in which at least one instruction is stored. The instruction is loaded and executed by a processor so that a computer implements any of the above fault handling methods.

[0238] The embodiments of the present application also provide a computer program (product), which, when executed by a computer, can enable a processor or a computer to execute the corresponding steps and / or processes in the above method embodiments.

[0239] An embodiment of the present application also provides a chip, including a processor, for calling and executing instructions stored in the memory from the memory, so that a communication device equipped with the chip executes any of the above fault handling methods.

[0240] An embodiment of the present application also provides another chip, including: an input interface, an output interface, a processor and a memory, wherein the input interface, the output interface, the processor and the memory are connected via an internal connection path, and the processor is used to execute the code in the memory. When the code is executed, the processor is used to execute any of the above fault handling methods.

[0241] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center to another website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (solid state disk)), etc.

[0242] Those of ordinary skill in the art will appreciate that, in conjunction with the various method steps and modules described in the embodiments disclosed herein, they can be implemented in software, hardware, firmware, or any combination thereof. In order to clearly illustrate the interchangeability of hardware and software, the steps and components of each embodiment have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those of ordinary skill in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0243] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.

[0244] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer program instructions. As an example, the method of the embodiment of the present application can be described in the context of a machine executable instruction, and the machine executable instruction is such as included in the program module executed in the device on the real or virtual processor of the target. Generally speaking, a program module includes a routine, a program, a library, an object, a class, a component, a data structure, etc., which performs a specific task or realizes a specific abstract data structure. In various embodiments, the function of the program module can be merged or divided between the described program modules. The machine executable instruction for the program module can be executed in a local or distributed device. In a distributed device, the program module can be located in both a local and a remote storage medium.

[0245] The computer program code for realizing the method for the embodiment of the present application can be written in one or more programming languages. These computer program codes can be provided to the processor of a general-purpose computer, a special-purpose computer or other programmable data processing device, so that the program code, when executed by a computer or other programmable data processing device, causes the function / operation specified in the flow chart and / or block diagram to be implemented. The program code can be executed completely on a computer, partially on a computer, as an independent software package, partially on a computer and partially on a remote computer or completely on a remote computer or server.

[0246] In the context of the embodiments of the present application, computer program codes or related data may be carried by any appropriate carrier to enable a device, apparatus or processor to perform the various processes and operations described above. Examples of carriers include signals, computer readable media, and the like.

[0247] Examples of signals may include electrical, optical, radio, acoustic or other forms of propagated signals, such as carrier waves, infrared signals, etc.

[0248] A machine-readable medium may be any tangible medium that contains or stores a program for or related to an instruction execution system, apparatus, or device. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination thereof. More detailed examples of machine-readable storage media include an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0249] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0250] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, or it can be an electrical, mechanical or other form of connection.

[0251] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of the present application.

[0252] In addition, each functional module in each embodiment of the present application can be integrated into one processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0253] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art, or all or 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 to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0254] In the present application, the terms "first", "second", etc. are used to distinguish between identical or similar items having substantially the same effects and functions. It should be understood that there is no logical or temporal dependency between "first", "second", and "nth", nor is there a limitation on quantity and execution order. It should also be understood that although the following description uses the terms first, second, etc. to describe various elements, these elements should not be limited by the terms. These terms are only used to distinguish one element from another. For example, without departing from the scope of various examples, a first image may be referred to as a second image, and similarly, a second image may be referred to as a first image. Both the first image and the second image may be images, and in some cases, may be separate and different images.

[0255] It should also be understood that in the various embodiments of the present application, the size of the serial number of each process does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0256] The term "at least one" in this application means one or more, and the term "multiple" in this application means two or more, for example, multiple second messages means two or more second messages. The terms "system" and "network" are often used interchangeably herein.

[0257] It should be understood that the terms used in the description of the various examples herein are only for describing specific examples and are not intended to be limiting. As used in the description of the various examples and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0258] It should also be understood that the term "and / or" used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items. The term "and / or" is a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this application generally indicates that the associated objects before and after are in an "or" relationship.

[0259] It should also be understood that the term “comprise” (also known as “includes,” “including,” “comprises” and / or “comprising”) when used in this specification specifies the presence of stated features, integers, steps, operations, elements, and / or components, but does not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.

[0260] It should also be understood that the terms "if" and "if" may be interpreted to mean "when" or "upon" or "in response to determining" or "in response to detecting." Similarly, the phrases "if it is determined that ..." or "if [a stated condition or event] is detected" may be interpreted to mean "upon determining that ..." or "in response to determining that ..." or "upon detecting [a stated condition or event]" or "in response to detecting [a stated condition or event]," depending on the context.

[0261] It should be understood that determining B based on A does not mean determining B only based on A. B can also be determined based on A and / or other information.

[0262] It should also be understood that the references to "one embodiment", "an embodiment", or "a possible implementation" throughout the specification mean that specific features, structures, or characteristics related to the embodiment or implementation are included in at least one embodiment of the present application. Therefore, the references to "in one embodiment" or "in an embodiment", or "a possible implementation" throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0263] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present application should be included in the protection scope of the present application.

Claims

1. A fault handling method, characterized in that: The method is applied to a first network device, and the method includes: Determining that a network failure has occurred; A disconnection request message corresponding to a first connection is sent to a first node, where the first connection is a connection between the first node and other nodes, the disconnection request message is compatible with a standard protocol, and the disconnection request message instructs the first node to disconnect the first connection.

2. A fault handling method, characterized in that: The method is applied to a target node, and the method comprises: Determining that a network failure has occurred; A disconnection request message corresponding to a first connection is sent to a first node, wherein the disconnection request message is compatible with a standard protocol and the disconnection request message instructs the first node to disconnect the first connection, wherein the first connection is a connection established by the first node to the target node, or the first connection is a connection between the first node and other nodes except the target node.

3. The method according to claim 1 or 2, characterized in that: The disconnect request message is a disconnect request DisconnectRequest message of a remote direct memory access RDMA protocol or a termination FIN message of a transmission control protocol TCP.

4. The method according to any one of claims 1 to 3, characterized in that: The determining that a network failure occurs includes: A network failure has been detected.

5. The method according to claim 4, characterized in that After determining that a network failure occurs, the method further includes: The first node is determined according to device connection information, where the device connection information includes source end addresses and destination end addresses corresponding to a plurality of connections respectively.

6. The method according to any one of claims 1 to 3, characterized in that: The determining that a network failure occurs includes: receiving a notification message sent by a second network device, wherein the notification message includes fault notification information, and the fault notification information indicates that the network fault occurs; The occurrence of the network failure is determined according to the failure notification information.

7. The method according to claim 6, characterized in that The notification message further includes faulty connection information, where the faulty connection information indicates the first connection; After determining that a network failure occurs, the method further includes: The first node is determined according to the fault connection information and the device connection information, wherein the device connection information includes source end addresses and destination end addresses respectively corresponding to a plurality of connections.

8. The method according to claim 5 or 7, characterized in that: The device connection information is obtained according to messages exchanged during a process of establishing a connection between nodes; or, the device connection information is obtained according to local connection information sent by the first node.

9. The method according to any one of claims 1 to 8, characterized in that: The method further comprises: A disconnection response message sent by the first node is received, where the disconnection response message is compatible with the standard protocol and is a reply message to the disconnection request message.

10. The method according to claim 9, characterized in that The disconnect response message is a disconnect reply DisconnectReply message of a remote direct memory access RDMA protocol or a termination confirmation FIN-ACK message of a transmission control protocol TCP.

11. The method according to any one of claims 1 to 10, characterized in that: The method further comprises: receiving a connection establishment request message sent by the first node, where the connection establishment request message is used to reestablish the first connection; Sending a connection establishment rejection message corresponding to the connection establishment request message to the first node.

12. A fault handling method, characterized in that: The method comprises: The first node receives a disconnection request message corresponding to a first connection, where the first connection is a connection between the first node and another node, and the disconnection request message is compatible with a standard protocol; The first node disconnects the first connection based on the disconnection request message.

13. The method according to claim 12, characterized in that The disconnect request message is a disconnect request DisconnectRequest message of a remote direct memory access RDMA protocol or a termination FIN message of a transmission control protocol TCP.

14. The method according to claim 12 or 13, characterized in that After the first node receives the disconnection request message corresponding to the first connection, the method further includes: The first node sends a disconnection response message, the disconnection response message is compatible with the standard protocol, and the disconnection response message is a reply message to the disconnection request message.

15. The method according to claim 14, characterized in that The disconnect response message is a disconnect reply DisconnectReply message of a remote direct memory access RDMA protocol or a termination confirmation FIN-ACK message of a transmission control protocol TCP.

16. The method according to any one of claims 12 to 15, characterized in that: After the first node receives the disconnection request message corresponding to the first connection, the method further includes: The first node sends a connection establishment request message, where the connection establishment request message is used to re-establish the first connection; The first node receives a connection establishment rejection message corresponding to the connection establishment request message.

17. The method according to any one of claims 12 to 16, characterized in that: After the first node disconnects the first connection based on the disconnection request message, the method further includes: The first node switches the service transmitted on the first connection to the second connection for transmission, where the second connection is a connection not affected by the network failure.

18. A fault handling device, characterized in that: The device is applied to a first network device, and the device includes: A transceiver module, used to perform the reception and / or transmission related operations performed by the first network device in the fault handling method according to any one of claims 1, 3-11; A processing module, used to perform other operations besides the receiving and / or sending related operations performed by the first network device in the fault handling method described in any one of claims 1 and 3-11.

19. A fault handling device, characterized in that: The device is applied to a target node, and comprises: A transceiver module, used to perform the reception and / or transmission related operations performed by the target node in the fault handling method according to any one of claims 2 to 11; A processing module, used to perform other operations other than the receiving and / or sending related operations performed by the target node in the fault handling method described in any one of claims 2-11.

20. A fault handling device, characterized in that: The device is applied to a first node, and includes: A transceiver module, used to perform the reception and / or transmission related operations performed by the first node in the fault handling method according to any one of claims 12 to 17; A processing module, used to perform other operations besides the receiving and / or sending related operations performed by the first node in the fault handling method described in any one of claims 12-17.

21. A fault handling device, characterized in that: The device includes: a processor, the processor is coupled to a memory, the memory stores at least one program instruction or code, and the at least one program instruction or code is loaded and executed by the processor so that the device implements the fault handling method described in any one of claims 1-17.

22. A fault handling system, characterized in that: The fault handling system includes a first network device and a first node; The first network device is used to execute the method described in any one of claims 1 and 3-11, and the first node is used to execute the method described in any one of claims 12-17.

23. A fault handling system, characterized in that: The fault handling system includes a target node and a first node; The target node is used to execute the method described in any one of claims 2-11, and the first node is used to execute the method described in any one of claims 12-17.

24. A computer-readable storage medium, characterized in that: The computer storage medium stores at least one instruction, and the at least one instruction is loaded and executed by the processor so that the computer implements the fault handling method as described in any one of claims 1-17.

25. A computer program product, characterized in that The computer program product includes: a computer program code, and the computer program code is loaded and executed by a computer to enable the computer to implement the fault handling method described in any one of claims 1-17.

Citation Information

Cited By

  • Fault processing method and apparatus, device, system and storage medium

    EP4694050A1

  • Fault processing method and apparatus, device, system and storage medium

    WO2024222569A1