Fault processing method and apparatus, device, 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.

WO2024222569A1PCT designated stage expired Publication Date: 2024-10-31HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2024/088646
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-28
Filing Date
2024-04-18
Publication Date
2024-10-31

AI Technical Summary

Technical Problem

The existing technology has poor adaptability to fault sensing and recovery mechanisms between terminals and network equipment in communication networks, making it difficult to quickly respond to link faults and affecting business continuity.

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 network resource consumption, and improves business recovery efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024088646_31102024_PF_FP_ABST
    Figure CN2024088646_31102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of communications, and discloses a fault processing method and apparatus, a device, a system and a storage medium. Taking a first network device executing the method as an example, the first network device determines that a network fault occurs, and sends to a first node a disconnect request packet corresponding to a first connection. The first connection is the connection between the first node and other nodes, the disconnect request packet is compatible with the standard protocol, and the disconnect request packet instructs the first node to disconnect the first connection. According to the method, when a network device determines that a network fault occurs, by means of a disconnect request packet, a first node can be quickly triggered to disconnect a first connection, thereby achieving fast fault awareness of the first node, and improving the network reliability. Since the disconnect request packet is compatible with the standard protocol, there is no need to adapt codes, new protocols, private protocols and the like, so that the method can be applied to a complex multi-scene system service environment, and the implementation universality and flexibility are improved.
Need to check novelty before this filing date? Find Prior Art

Description

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

[0001] This application claims priority to Chinese patent application number 202310488265.X filed on April 28, 2023, entitled “Fault handling method, device, equipment, system and storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] 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

[0003] With the development of communication technology, when a link failure or equipment failure occurs in a communication network, terminals need to be able to quickly detect the occurrence of the failure and ensure that the service can be quickly recovered from the failure.

[0004] In related technologies, 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 a network failure, it actively notifies the fault information to the fault perception module of the terminal, so that the fault perception module of the terminal can recover the service from the network failure in time.

[0005] 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.

[0006] Summary of the Invention

[0007] 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.

[0008] 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 has occurred and sends a disconnect request message corresponding to a first connection to a first node. The first connection is a connection between the first node and another node. The disconnect request message is compatible with a standard protocol and instructs the first node to disconnect the first connection.

[0009] When a network device determines a network failure has occurred, this method sends a disconnection request message to a first node, quickly triggering the first node to disconnect the first connection. This enables rapid fault detection by the first node and improves network reliability. Because the disconnection request message is compatible with standard protocols, no code, new protocols, or proprietary protocol configuration is required. This makes this method applicable to complex, multi-scenario system business environments, improving implementation versatility and flexibility.

[0010] In a second aspect, a fault handling method is provided. Taking a target node executing the method as an example, the target node determines that a network fault has occurred and sends a disconnect request message corresponding to a first connection to a first node. The disconnect request message is compatible with a standard protocol and 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 a connection between the first node and a node other than the target node.

[0011] When a target node determines a network failure has occurred, this method sends a disconnection request message to the first node, quickly triggering the first node to disconnect the first connection. This allows the first node to quickly detect the failure and improve network reliability. Because the disconnection request message is compatible with standard protocols, no code, new protocols, or proprietary protocols need to be configured. This makes this method applicable to complex, multi-scenario system environments, improving implementation versatility and flexibility.

[0012] In the case where the first connection is 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, upon detecting a network failure, the target node can directly send a disconnection request message to the first node, eliminating the need for active detection by the first node. This saves network resources required for active detection by the first node, increases the speed at which the first node detects the failure, and thereby improves the efficiency of fault handling.

[0013] In any possible implementation of the first and second aspects above, the first connection is a connection affected by a network failure. The connection affected by the network failure may refer to a connection where service transmission performance is impaired due to the network failure. That is, the method can quickly send a disconnect request message to an end-side node corresponding to the connection affected by the network failure, thereby quickly triggering the end-side node corresponding to the connection affected by the network failure to perform fault processing.

[0014] In any possible implementation of the first and second aspects, 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. Because the present application can be applied to different standard protocols, the method has high flexibility and applicability.

[0015] In any possible implementation of the first and second aspects, the method 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 determining the occurrence of the network failure more efficient and accurate.

[0016] In any possible implementation of the first and second aspects, after determining that a network failure has occurred, the first node can be determined based on device connection information, where the device connection information includes source addresses and destination addresses corresponding to multiple connections. Because 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.

[0017] In any possible implementation of the first and second aspects above, determining the occurrence of a network failure 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 the occurrence of a network failure; and determining the occurrence of a network failure based on the fault notification information. Compared to detecting network failures, this method of receiving notification messages can detect network failures on a wider scale because notification messages sent by various network devices in the network can be received, further improving network reliability.

[0018] In any possible implementation of the first and second aspects, the notification message further includes fault connection information, where the fault connection information indicates a first connection. After determining that a network fault has occurred, the first node can be determined based on the fault connection information and device connection information, where the device connection information includes source addresses and destination addresses corresponding to multiple connections. The first node can be accurately determined using the first connection indicated by the fault connection information and the device connection information. Furthermore, since the first network device does not experience a network fault, a success rate for sending a disconnect request message to the first node is improved.

[0019] In any possible implementation of the first and second 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. This application provides different methods for obtaining device connection information, making the method for obtaining device connection information more flexible.

[0020] In any possible implementation of the first and second aspects, the method further receives a disconnection response message sent by the first node, where the disconnection response message is compatible with a standard protocol and is a response message to the disconnection request message. The disconnection response message is a DisconnectReply message of the RDMA protocol or a Finish Acknowledgement (FIN-ACK) message of TCP.

[0021] 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.

[0022] In any possible implementation of the first and second aspects above, 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 recognized that the network fault still exists; or, within a reference time period after sending a 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 a reference time period after sending a 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. 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.

[0023] On the 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.

[0024] In this method, the first node can quickly detect a failure in the first connection by receiving a disconnect request message and disconnect the first connection, thereby achieving rapid recovery from the service failure. Because the disconnect request message is compatible with standard protocols, no code, new protocols, or proprietary protocols need to be adapted. This makes this method applicable to complex, multi-scenario system business environments, improving its versatility and flexibility.

[0025] In a possible implementation manner, the disconnect request message is a DisconnectRequest message of the RDMA protocol or a FIN 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 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.

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

[0028] 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 re-establish the first connection; the first node receives a connection establishment rejection message corresponding to the connection establishment request message.

[0029] In one possible implementation, after the first node disconnects the first connection based on the disconnect request message, the first node switches the service transmitted on the first connection to a second connection for transmission, where the second connection is not affected by the network failure. This ensures service transmission performance on the first connection and reduces service damage caused by the network failure.

[0030] In a fourth aspect, a fault handling device is provided, which is applied to a first network device and includes:

[0031] a transceiver module, configured to perform 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;

[0032] The processing module is configured to perform other operations other than 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.

[0033] 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 transmission-related operations.

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

[0035] The transceiver module is used to send a disconnection request message corresponding to a first connection to the first node, where 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.

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

[0037] a transceiver module, configured 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;

[0038] The processing module is used to perform other operations besides the reception and / or transmission related operations performed by the target node in the second aspect or any possible implementation manner of the second aspect.

[0039] 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 transmission-related operations.

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

[0041] A transceiver module is used to send a disconnection request message corresponding to a first connection to the first node, where 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 a node other than the target node.

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

[0043] In any possible implementation manner of the fourth and fifth aspects above, the processing module is configured to detect a network failure.

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

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

[0046] The processing module is used to determine whether a network failure has occurred according to the failure notification information.

[0047] In any possible implementation of the fourth and fifth aspects above, the notification message also includes fault connection information, which 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 end address and the destination end address corresponding to multiple connections respectively.

[0048] 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.

[0049] In any possible implementation of the fourth and fifth aspects above, the transceiver module is further 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.

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

[0051] In any possible implementation of the fourth and fifth aspects above, the transceiver module is further used 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 send a connection establishment rejection message corresponding to the connection establishment request message to the first node.

[0052] In a sixth aspect, a fault handling device is provided, which is applied to a first node and includes:

[0053] a transceiver module, configured 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;

[0054] The processing module is configured to perform other operations other than 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.

[0055] 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 transmission-related operations.

[0056] In one 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 another node, and the disconnection request message is compatible with a standard protocol;

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

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

[0059] In a possible implementation, the transceiver module 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.

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

[0061] In a possible implementation, 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.

[0062] In a possible implementation, 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 not affected by the network failure.

[0063] 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.

[0064] Optionally, there are one or more processors and one or more memories.

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

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

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

[0068] 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.

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

[0070] 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.

[0071] 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 the computer to implement the method of the above-mentioned first aspect or any possible implementation of the first aspect, or to implement the method of the above-mentioned second aspect or any possible implementation of the second aspect, or to implement the method of the above-mentioned third aspect or any possible implementation of the third aspect.

[0072] 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 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 method in the above-mentioned third aspect or any possible implementation of the third aspect.

[0073] 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.

[0074] 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. When the code is executed, the processor is used to execute the methods in the above aspects.

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

[0076] FIG1 is a schematic diagram of a network structure provided by an embodiment of the present application;

[0077] FIG2 is a schematic diagram of an implementation environment of a fault handling method provided in an embodiment of the present application;

[0078] FIG3 is an interactive diagram of a fault handling method provided in an embodiment of the present application;

[0079] FIG4 is a schematic diagram of a message format provided in an embodiment of the present application;

[0080] FIG5 is an interactive diagram of another fault handling method provided in an embodiment of the present application;

[0081] FIG6 is a schematic diagram of a network failure provided in an embodiment of the present application;

[0082] FIG7 is a schematic diagram of another network failure provided in an embodiment of the present application;

[0083] FIG8 is an interactive diagram of a fault handling process provided in an embodiment of the present application;

[0084] FIG9 is a schematic diagram of another network failure provided in an embodiment of the present application;

[0085] FIG10 is an interactive diagram of another fault handling process provided in an embodiment of the present application;

[0086] FIG11 is a schematic structural diagram of a fault handling device provided in an embodiment of the present application;

[0087] FIG12 is a schematic structural diagram of another fault handling device provided in an embodiment of the present application;

[0088] FIG13 is a schematic structural diagram of another fault handling device provided in an embodiment of the present application;

[0089] FIG14 is a schematic structural diagram of a fault handling device provided in an embodiment of the present application;

[0090] FIG15 is a schematic structural diagram of another fault handling device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0092] In the field of communications technology, network reliability refers to the ability of end-side nodes to quickly sense network failures and ensure rapid business recovery from network failures when they occur. End-side nodes can refer to the two ends of a service message transmission process. For example, an end-side node can be a terminal or a server. For example, referring to the network networking structure diagram shown in FIG1 , the network networking structure is a storage system in 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 operations such as storage, reading, writing, or accessing the storage end through at least one network device.

[0093] As shown in Figure 1, the client can establish two connections with two ports on the storage side. For example, the two ports are port A and port B. Port A and port B serve as backups for each other, and the connection B established with port B (shown by the dotted arrow in Figure 1) is used as a redundant backup connection. In the event of a network failure in connection A (shown by the solid arrow in Figure 1) established with port A, if the client is able to perceive 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 the network failure occurs, thereby meeting the network reliability requirements. 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 perceiving the network failure, the time required for the end-side node to perceive 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 perceives and handles the network failure, the less damage to the service transmission performance.

[0094] In the related art, 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 probe message to the other end. If no response to the probe message is received from the other end within the detection time, it is considered that the other end has failed, 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 the redundant backup connection.

[0095] 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 adopt a unified private protocol between the end-side nodes and the network devices, which makes the adaptability of this method poor. As for the method of sending a probe 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 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, in the storage system shown in Figure 1, 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 probe message to switch the physical path does not switch the destination address of the service connection to port B, so the service data still accesses port A. Therefore, no matter how the physical path is switched, it cannot bypass the access link failure of port A and cannot achieve service failure recovery. As for the method of sending heartbeat messages, since heartbeat messages between 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.

[0096] An embodiment of the present application provides a fault handling method, see Figure 2, which is a schematic diagram of the implementation environment of a fault handling method provided by an embodiment of the present application. As shown in Figure 2, the implementation environment includes multiple nodes and multiple network devices, and any two of the multiple nodes serve as two end nodes for transmitting business 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.

[0097] 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 a timely manner according to the received disconnection request message. The connection affected by the network fault may 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 a timely manner according to the received disconnection request message. The proxy device can be any network device or any node shown in Figure 2. For example, the proxy device is a leaf switch at the access layer shown in Figure 2.

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

[0099] See Figure 3, which is an interactive diagram of a fault handling method provided in an embodiment of the present application. This method can be applied to the implementation environment shown in Figure 2. For example, the method is described using any network device and any node shown in Figure 2 as an example. Any network device is referred to as a first network device, and any node is referred to as a first node. As shown in Figure 3, the fault handling method includes but is not limited to the following steps 301-303.

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

[0101] In the embodiments of the present application, a network failure refers to a failure or abnormality that affects the connection and transmission of services, such as a failure of the link between network devices, a bit error rate or packet error rate on the 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 is unable to process the receiving queue of the network card in a timely manner due to reasons such as hanging, resulting in the network card being 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.

[0102] Optionally, methods for determining the occurrence of a network failure include, but are not limited to, the following two methods. Method 1: The first network device detects the occurrence of a network failure. In this method, the first network device acts as a network failure detection device, i.e., the first network device has the ability to detect network failures, and determines the occurrence of a network failure based on the results of the network failure detection. This makes determining the occurrence of a network failure more efficient and accurate.

[0103] In the second determination method, a first network device receives a notification message from a second network device. The notification message includes fault notification information indicating a network fault has occurred. The first network device then determines that a network fault has occurred based on the fault notification information. Under this second determination method, the second network device acts as a network fault detection device, meaning it has the ability to detect network faults. The second network device sends the results of its network fault detection to the first network device, allowing the first network device to determine that a network fault has occurred. Because the first network device can receive notification messages from various network devices in the network, it can detect network faults on a wider scale than would be possible with the first network device detecting network faults on its own.

[0104] 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. If the notification message is an LLDP message, the fault notification information may be carried in the extended type (type), length (length), and value (TLV) fields (referred to as TLV fields) of the LLDP message. If 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. If the notification message is a UDP message, the fault notification information may be carried in the payload of the UDP message.

[0105] 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 using a bidirectional forwarding detection (BFD) method.

[0106] 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.

[0107] In an embodiment of the present application, the disconnect request message includes information indicating the first connection, so that the disconnect request message can instruct the first node to disconnect the first connection. Since the disconnect 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 other than 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 disconnect request message may be the DisconnectRequest message of the RDMA protocol or the FIN message of TCP.

[0108] 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. 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 the storage system, and the second node is a storage service end of the storage system.

[0109] In one 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 the disconnection request message is to be sent 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 the disconnection request message to the first node.

[0110] 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 shown in FIG4 , including an Ethernet message header, an Internet Protocol (IP) message header, a UDP message header, and an Infiniband message header. Among them, the Infiniband message 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, if 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. Thus, 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 correspond to different TIDs. Therefore, the TID may also indicate the first connection.

[0111] In one 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. In the case of multiple first connections, the first network device may send a corresponding disconnection request message to each end node corresponding to each of the multiple first connections. This allows the first network device to promptly send a disconnection request message to the node corresponding to the affected connection after sensing a network failure, thereby improving the efficiency of the node in sensing the network failure.

[0112] 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 based on the device connection information, the device connection information includes the source address and the destination address corresponding to 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 based on 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.

[0113] 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 connections 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 based on the cause of the network failure. For example, the first network device monitors the data transmission status of the connection. If a connection with no data transmission within a reference time is detected, the connection is determined to be an abnormal connection. The connection with no data transmission within the reference time is the first connection. Among them, the reference time can be set based on experience or flexibly adjusted according to the application scenario.

[0114] 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 fault connection information, and the fault connection information can indicate the first connection. For example, the fault connection information includes the connection identifier of the first connection. The first network device determines the first node based on the fault 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.

[0115] The manner in which fault connection information is carried in a notification message can be found in the manner in which fault notification information is carried in a notification message, and will not be further described here. Optionally, the manner in which the second network device determines the first connection affected by the network fault in Determination Method 4 can be found in the manner in which the first network device determines the first connection affected by the network fault in Determination Method 3, and will not be further described here. After the second network device determines the first connection affected by the network fault, the second network device will be able to instruct the first connection's fault connection information to be sent to the first network device.

[0116] In an embodiment of the present application, the device connection information maintained by the first network device in determination method three is referred to as first device connection information, and the device connection information maintained by the second network device in determination method four is referred to as second device connection information. The first device connection information and the second device connection information may be the same or different in description of the same connection. When 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 destination address corresponding to the first connection in the first device connection information; when 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 destination address corresponding to the target connection.

[0117] In a possible embodiment, the device connection information can be obtained based on the messages exchanged during the process of establishing a connection between nodes. For example, 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 messages and the corresponding connection establishment response messages 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.

[0118] 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 the interactive message. For example, 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. 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. As a result, the second network device obtains multiple connections whose physical paths pass through the second network device, as well as the source address and destination address corresponding to the multiple connections.

[0119] Exemplarily, the device connection information is a table maintained by the first network device or the second network device, which includes the source and destination addresses corresponding to multiple connections, as well as information such as the port and link corresponding to each connection. After detecting a network failure, the first network device or the second network device performs a table lookup based on the location of the network failure and determines the first connection based on the table lookup result. For example, if the network failure is located at 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 network failure is located at 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.

[0120] 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.

[0121] 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. 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.

[0122] 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. 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 based on the disconnection response message. The response mechanism of the disconnection response message improves the transmission reliability of the disconnection response message. 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.

[0123] 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 being the DisconnectReply message of the RDMA protocol as an example, the message format of the disconnect response message may also be as shown in FIG4 . 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 the LCID is swapped with the value of the RCID. For example, the LCID may indicate the address of the second node, and the RCID may indicate the address of the first node.

[0124] In one possible application scenario, a bidirectional disconnect is required to disconnect. In this scenario, the first node disconnects the first connection based on a disconnect request message, including: the first node sends a disconnect request message for the first connection to the first network device, such as a DisconnectRequest message of the RDMA protocol; and the first network device returns a disconnect response message corresponding to the disconnect request message to the first node, such as a DisconnectReply message of the RDMA protocol. This bidirectional disconnection method can improve the accuracy of the disconnection.

[0125] 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 if the network failure still exists, the first network device can directly reject the request to establish a connection, thereby improving the processing efficiency in the interactive process of establishing the connection and improving the accuracy of the connection establishment.

[0126] Exemplarily, the first node sends a connection request message to the first network device, and the connection request message is used to re-establish the first connection; after receiving the connection request message, the first network device sends a connection rejection message corresponding to the connection request message to the first node. The first network device may send a connection rejection message corresponding to the connection request message to the first node when it recognizes that the network fault still exists; or, within a reference time after sending a disconnection request message to the first node, the first network device believes that the network fault still exists and sends a connection rejection message corresponding to the connection request message to the first node; or, within a reference time after sending a disconnection request message to the first node, the first network device sends a connection rejection message corresponding to the connection request message to the first node when it recognizes that the network fault still exists. 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.

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

[0128] Exemplarily, the first network device starts a timer after sending a disconnect request message to the first node, and the timer value 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.

[0129] 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 request message to the second network device, and the connection request message is used to re-establish the first connection; after receiving the connection request message, the second network device sends a connection rejection message corresponding to the connection request message to the first node.

[0130] The fault handling method shown in Figure 3, when a network device determines that a network fault has occurred, can quickly send a disconnect request message to the end-side node corresponding to the connection affected by the network fault, quickly triggering the end-side node to handle the network fault, reducing the transmission impact of the network fault on the service, and achieving rapid fault detection and service recovery by the end-side node, thereby improving network reliability. In addition, because the disconnect request message is compatible with standard protocols, it does not require adaptation to code, new protocols, or proprietary protocols. This makes this method applicable to the business environments of complex multi-scenario systems, improving the versatility and flexibility of its implementation.

[0131] See Figure 5, which is an interactive schematic diagram of a fault handling method provided in an embodiment of the present application. This method can be applied to the implementation environment shown in Figure 2. For example, the method is described using any two nodes shown in Figure 2 interacting to execute the method. The two nodes include a target node and a first node, where the target node is the node that sends the disconnect request message and the first node is the node that needs to disconnect. As shown in Figure 5, the fault handling method includes but is not limited to the following steps 501-503.

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

[0133] 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.

[0134] In 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 a node other than the target node.

[0135] 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 be referred 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 based on 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 a notification message sent by the second network device, determines the first connection and the first node based on 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. The details will not be repeated here.

[0136] 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, it is usually necessary for the first node 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 thus improving the efficiency of fault handling.

[0137] 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 the end-side node at both ends 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 a timely manner, which improves the speed at which the end-side node perceives the failure, and thereby improves the efficiency of the end-side node in fault handling.

[0138] 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.

[0139] 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 received by the first node in step 303 and sent by the first network device, which will not be repeated here.

[0140] In the fault handling method shown in Figure 5, when a target node determines that a network failure 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 failure, thereby quickly triggering the end-side node to handle the network failure, reducing the transmission impact of the network failure on the service, and achieving rapid fault perception and service recovery on the end-side node, thereby improving network reliability. In addition, because the disconnection request message is compatible with standard protocols, it does not require adaptation to code, new protocols, or proprietary protocols. This makes this method applicable to the business environments of complex multi-scenario systems, improving the versatility and flexibility of its implementation.

[0141] Below, the fault handling method provided in the embodiment of the present application is illustrated by taking the device that detects the network failure and sends the disconnection request message as the same device, which can be a network device, and the two end nodes of the connection are terminal 1 and terminal 2 as an example. Referring to the schematic diagram of the network failure shown in Figure 6 or 7, three connections are established between terminal 1 and terminal 2 through switch 1-switch 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. In Figure 6, the access link directly connected between switch 3 and terminal 2 fails, and in Figure 7, the link between switch 2 and switch 3 fails. For the network failure shown in Figures 6 and 7, the fault handling method provided in the embodiment of the present application is illustrated in combination with the fault handling process shown in Figure 8.

[0142] In the fault handling process shown in Figure 8 , a first connection is first established between Terminal 1 and Terminal 2 via a network device. The network device then 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, as shown in Figures 6 and 7 , the first connection established between Terminal 1 and Terminal 2 is QP3, and the device that detects the network fault and sends the disconnect request message is Switch 3 shown in Figures 6 and 7 .

[0143] Optionally, the network device obtains the device connection information in the following manner: during the process of establishing a connection between the terminals, the network device actively obtains the connection information between the 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.

[0144] Then, when the network device detects a network failure, it determines the connections affected by the network failure. The connections affected by the network failure may be one or more. For example, if the connection affected by the network failure is a first connection, the network device constructs a disconnection request message for the first connection based on the connection information of the first connection and sends the disconnection request message to Terminal 1 and Terminal 2 to which the first connection belongs, so that Terminal 1 and Terminal 2 disconnect the first connection.

[0145] Exemplarily, if a network failure causes the network device to be unreachable from one terminal in the first connection, the network device sends a disconnect request message to the other reachable terminal in the first connection. As shown in Figure 6, 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 disconnect request message to terminal 1. As another example, if a network failure occurs between the network device and one terminal in the first connection, the network device sends a disconnect request message to the other terminal in the first connection. As shown in Figure 7, the link between switch 2 and switch 3 fails. Both switch 2 and switch 3 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.

[0146] In the case shown in FIG8 , when the network device 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. The network device may not process the received disconnect response message or may discard the disconnect response message. Alternatively, terminal 1 sends a connection request message to the network device. If the connection established by the connection request message is still affected by the network failure, the network device constructs a connection rejection message corresponding to the received connection request message and returns the connection rejection message to terminal 1 to reject terminal 1's request to establish a connection.

[0147] Afterwards, terminal 1 senses the network failure based on the received disconnect request message, disconnects the faulty connection indicated by the disconnect request message, and performs corresponding service fault recovery processing. For example, the service is switched from the faulty connection to another available connection for transmission. For example, as shown in Figure 6 or Figure 7, 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, achieving the effect of fault recovery by changing the source or destination address. In the embodiment of the present application, the specific implementation of the fault handling process shown in Figure 8 can refer to the specific implementation of the fault handling method shown in Figure 3 or Figure 5, and will not be repeated here.

[0148] Assuming that the device that detects the network failure and sends the disconnection request message are 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, the fault handling method provided in the embodiment of the present application is illustrated. Referring to the schematic diagram of the network failure shown in Figure 9, 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. In Figure 9, the link between switch 2 and switch 3 fails. With respect to the network failure shown in Figure 9, the fault handling method provided in the embodiment of the present application is illustrated in combination with the fault handling process shown in Figure 10.

[0149] As shown in Figure 10 , a first connection is first established between Terminal 1 and Terminal 2 via a network device. This process is identical to the process for establishing the first connection between Terminal 1 and Terminal 2 via a network device shown in Figure 8 and will not be further described here. Then, if the network device detects a network failure, it determines the connection affected by the failure. Again, using the connection affected by the failure as the first connection, the network device notifies the proxy device of the failure notification information and the failed connection information. The proxy device then constructs a disconnection request message for the first connection and sends it to Terminal 1 and Terminal 2, to which the first connection belongs, causing Terminal 1 and Terminal 2 to disconnect the first connection.

[0150] Exemplarily, the first connection established between Terminal 1 and Terminal 2 is QP3, as shown in FIG9 . The network device is Switch 3, as shown in FIG9 , and the proxy device is Switch 5, as shown in FIG9 . When Switch 3 detects a link failure between Switch 3 and Switch 2, Switch 3 sends a fault notification message and a fault connection message to Switch 5, which then sends a disconnect request message to Terminal 1 and Terminal 2. Optionally, Switch 2 also detects a link failure between Switch 3 and Switch 2 and sends a fault notification message and a fault connection message to Switch 5. Switch 5 receives two copies of the fault notification message and the fault connection message sent by Switch 3 and Switch 2. Based on these two copies of the fault notification message and the fault connection message, Switch 5 can send two disconnect request messages to Terminal 1 and Terminal 2, respectively, or it can aggregate the two copies of the fault notification message and the fault connection message and send a single disconnect request message to Terminal 1 and Terminal 2, thereby avoiding repeated transmission of disconnect request messages.

[0151] As another example, the proxy device can also be terminal 2 as shown in Figure 9. When switch 3 detects that a fault occurs in the link between switch 3 and switch 2, switch 3 sends fault notification information and fault connection information to terminal 2, and terminal 2 sends a disconnect request message to terminal 1.

[0152] In the fault handling process shown in Figure 10, sending a disconnect request message to terminal 1 is taken as an example. The operation of terminal 1 after receiving the disconnect request message is the same as the operation of terminal 1 after receiving the disconnect request message shown in Figure 8, and will not be repeated here. Among them, if the connection establishment request message sent by 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 terminal 1 reaches the proxy device, the proxy device can also return a connection establishment rejection message corresponding to the connection establishment request message. This embodiment of the present application is not limited to this. In the embodiment of the present application, the specific implementation methods of the fault handling process shown in Figure 10 can refer to the specific implementation methods of the fault handling method shown in Figure 3 or Figure 5, and will not be repeated here.

[0153] The above introduces 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. Figure 11 is a structural diagram of a fault handling device provided by an embodiment of the present application, and the device is applied to a first network device, and the first network device is the first network device shown in Figure 3 above. Based on the following multiple modules shown in Figure 11, the fault handling device shown in Figure 11 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 therein, and the embodiment of the present application does not limit this. As shown in Figure 11, the device includes:

[0154] The transceiver module 1001 is configured to execute the reception and / or transmission related operations performed by the first network device in the method shown in FIG3 ;

[0155] The processing module 1002 is configured to execute other operations in addition to the receiving and / or sending related operations executed by the first network device in the method shown in FIG. 3 .

[0156] 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.

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

[0158] 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.

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

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

[0161] 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.

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

[0163] The processing module 1002 is configured to determine whether a network failure has occurred according to the failure notification information.

[0164] In a possible implementation, the notification message also includes fault connection information, which indicates the first connection; the processing module 1002 is further 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 end address and the destination end address corresponding to multiple connections respectively.

[0165] In a possible implementation, the device connection information is obtained based on messages exchanged during a connection establishment process between nodes; or, the device connection information is obtained based on local connection information sent by the first node.

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

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

[0168] 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 send a connection establishment rejection message corresponding to the connection establishment request message to the first node.

[0169] Figure 12 is a schematic diagram of the structure of a fault handling device provided in an embodiment of the present application, which is applied to a target node, which is the target node shown in Figure 5 above. Based on the following multiple modules shown in Figure 12, the fault handling device shown in Figure 12 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 embodiment of the present application does not limit this. As shown in Figure 12, the device includes:

[0170] The transceiver module 1101 is configured to execute the reception and / or transmission related operations performed by the target node in the method shown in FIG5 ;

[0171] The processing module 1102 is configured to perform other operations besides the reception and / or transmission related operations performed by the target node in the method shown in FIG. 5 .

[0172] 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.

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

[0174] The transceiver module 1101 is used to send a disconnection request message corresponding to a first connection to the first node, where 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 a node other than the target node.

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

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

[0177] 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.

[0178] 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, where the fault notification information indicates that a network fault has occurred;

[0179] The processing module 1102 is configured to determine whether a network failure has occurred according to the failure notification information.

[0180] In a possible implementation, the notification message also includes fault connection information, which indicates the first connection; the processing module 1102 is further 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 end address and the destination end address corresponding to multiple connections respectively.

[0181] In a possible implementation, the device connection information is obtained based on messages exchanged during a connection establishment process between nodes; or, the device connection information is obtained based on local connection information sent by the first node.

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

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

[0184] 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 send a connection establishment rejection message corresponding to the connection establishment request message to the first node.

[0185] Figure 13 is a schematic diagram of the structure of a fault handling device provided in an embodiment of the present application, which is applied to a first node, which is the first node shown in Figure 3 or Figure 5 above. Based on the following multiple modules shown in Figure 13, the fault handling device shown in Figure 13 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 embodiment of the present application does not limit this. As shown in Figure 13, the device includes:

[0186] The transceiver module 1201 is configured to perform the reception and / or transmission related operations performed by the first node in the method shown in FIG. 3 or FIG. 5 ;

[0187] The processing module 1202 is configured to perform other operations in addition to the reception and / or transmission related operations performed by the first node in the method shown in FIG. 3 or FIG. 5 .

[0188] 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.

[0189] In one 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 another node, and the disconnection request message is compatible with a standard protocol;

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

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

[0192] In a possible implementation, 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.

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

[0194] In a possible implementation, 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.

[0195] In a possible implementation, the processing module 1202 is further configured for the first node to switch 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.

[0196] It should be understood that the devices provided in the above Figures 11-13 are only illustrated by the division of the above functional modules when implementing their functions. In actual applications, the above 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 devices 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. The effects produced by the devices shown in the above Figures 11-13 can be referred to the effects produced by the methods shown in Figures 3 or 5, and will not be repeated here.

[0197] Referring to Figure 14 , Figure 14 illustrates a schematic diagram of the structure of a fault handling device 2000 provided in accordance with an exemplary embodiment of the present application. The fault handling device 2000 illustrated in Figure 14 is configured to perform the operations described in the fault handling methods illustrated in Figures 3 or 5 . The fault handling device 2000 may be, for example, a terminal, server, switch, or router, and may be implemented using a general bus architecture.

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

[0199] 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 unit (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 device, a transistor logic device, a hardware component, 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 the 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 computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0200] Optionally, fault handling device 2000 also includes a bus. The bus is used to transmit information between the various components of fault handling device 2000. The bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, for example. Buses can be classified as address buses, data buses, control buses, etc. For ease of illustration, FIG14 shows only one line, but this does not mean that there is only one bus or only one type of bus.

[0201] The memory 2003 is, for example, a read-only memory (ROM) or other type of static storage device that can store static information and instructions, or a random access memory (RAM) or other type of dynamic storage device 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 compact 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 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.

[0202] The communication interface 2004 uses any transceiver-like device for communicating with other devices or communication networks. The communication network can be Ethernet, a radio access network (RAN), or a wireless local area network (WLAN). The communication interface 2004 can include a wired communication interface or 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 the embodiment of the present application, the communication interface 2004 can be used for the fault handling device 2000 to communicate with other devices.

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

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

[0205] In a specific implementation, as an embodiment, the fault handling device 2000 may further 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 can 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 can be a mouse, a keyboard, a touch screen device, or a sensor device.

[0206] In some embodiments, the memory 2003 is used to store 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. In other words, 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 may also store program code or instructions for executing the solution of the present application.

[0207] In a specific embodiment, the fault handling device 2000 of the embodiment of the present application may correspond to the first network device in the above-mentioned method embodiments. The processor 2001 in the fault handling device 2000 reads the instructions in the memory 2003, so that the fault handling device 2000 shown in Figure 14 can execute all or part of the operations performed by the first network device.

[0208] Specifically, the processor 2001 is configured to determine that a network failure has occurred 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 another node. The disconnection request message is compatible with a standard protocol and instructs the first node to disconnect the first connection.

[0209] For the sake of brevity, other optional implementations will not be described here in detail.

[0210] For another example, the fault handling device 2000 of an embodiment of the present application may correspond to the target node in each of the above-mentioned method embodiments. The processor 2001 in the fault handling device 2000 reads the instructions in the memory 2003, so that the fault handling device 2000 shown in Figure 14 can execute all or part of the operations performed by the target node.

[0211] Specifically, the processor 2001 is configured to determine that a network failure has occurred 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 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 a connection between the first node and a node other than the target node.

[0212] For the sake of brevity, other optional implementations will not be described here in detail.

[0213] For another example, the fault handling device 2000 of an embodiment of the present application may correspond to the first node in each of the above-mentioned method embodiments. The processor 2001 in the fault handling device 2000 reads the instructions in the memory 2003, so that the fault handling device 2000 shown in Figure 14 can execute all or part of the operations performed by the first node.

[0214] Specifically, the processor 2001 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; and disconnect the first connection based on the disconnection request message.

[0215] For the sake of brevity, other optional implementations will not be described here in detail.

[0216] Fault handling device 2000 may also correspond to the fault handling apparatus shown in Figures 11-13 above, and each functional module in the fault handling apparatus is implemented using the software of fault handling device 2000. In other words, the functional modules included in the fault handling apparatus are generated by processor 2001 of fault handling device 2000 after reading program code 2010 stored in memory 2003.

[0217] Among them, each step of the fault handling method shown in Figure 3 or Figure 5 is completed by the hardware integrated logic circuit 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 being executed by a hardware processor, or can be executed by 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 random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.

[0218] Referring to Figure 15 , Figure 15 shows a schematic diagram of the structure of a fault handling device 2100 provided in another exemplary embodiment of the present application. The fault handling device 2100 shown in Figure 15 is configured to perform all or part of the operations involved in the fault handling method shown in Figure 3 . The fault handling device 2100 is, for example, a switch or router, and can be implemented using a general bus architecture.

[0219] As shown in FIG. 15 , the fault handling device 2100 includes a main control board 2110 and an interface board 2130 .

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

[0221] Interface board 2130 is also known as a line processing unit (LPU), line card, or service board. It provides various service interfaces and implements data packet forwarding. Service interfaces include, but are not limited to, Ethernet interfaces and POS (Packet over SONET / SDH) interfaces. Ethernet interfaces, for example, are Flexible Ethernet Clients (FlexE Clients) interfaces. Interface board 2130 includes a central processing unit (CPU) 2131, a network processor (NPU) 2132, a forwarding table memory 2134, and a physical interface card (PIC) 2133.

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

[0223] The network processor 2132 is used to implement message forwarding processing. 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 using an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA). Specifically, the network processor 2132 is used to forward received messages based on the forwarding table stored in the forwarding entry memory 2134. If the destination address of the message is the address of the fault handling device 2100, the message is sent to the CPU (such as the central processing unit 2131) for processing. If the destination address of the message is not the address of the fault handling device 2100, the next hop and outgoing interface corresponding to the destination address are searched in the forwarding table based on the destination address, and the message is forwarded to the outgoing interface corresponding to the destination address. The processing of uplink messages may include processing the message inbound interface and forwarding table lookup; the processing of downlink messages may include forwarding table lookup, etc. In some embodiments, the central processing unit may also perform the functions of the forwarding chip, such as implementing software forwarding based on a general-purpose CPU, thereby eliminating the need for a forwarding chip in the interface board.

[0224] Physical interface card 2133 implements physical layer interconnection. Raw traffic enters interface board 2130 through this card, and processed packets are sent out from this physical interface card 2133. Physical interface card 2133, also known as a daughter card, can be installed on interface board 2130. It converts optical and electrical signals into packets, performs a validity check on these packets, and then forwards them to network processor 2132 for processing. In some embodiments, central processing unit 2131 can also perform the functions of network processor 2132, such as implementing software forwarding based on a general-purpose CPU, thus eliminating the need for network processor 2132 in physical interface card 2133.

[0225] Optionally, fault handling device 2100 includes multiple interface boards. For example, fault handling device 2100 further includes interface board 2140. Interface board 2140 includes a central processing unit 2141, a network processor 2142, a forwarding table entry memory 2144, and a physical interface card 2143. The functions and implementation of each component in interface board 2140 are the same as or similar to those of interface board 2130 and are not further described here.

[0226] Optionally, fault handling device 2100 also includes a switch fabric unit (SFU) 2120. This unit is also referred to as a switch fabric unit (SFU). If fault handling device 2100 includes multiple interface boards, SFU 2120 is used to exchange data between the interface boards. For example, interface board 2130 and interface board 2140 can communicate via SFU 2120.

[0227] 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 via a system bus to achieve intercommunication. In one possible implementation, an inter-process communication (IPC) channel is established between the main control board 2110 and the interface boards 2130 and 2140, and communication is performed between the main control board 2110 and the interface boards 2130 and 2140 via the IPC channel.

[0228] Logically, 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 that perform forwarding, such as a forwarding table entry memory 2134, physical interface cards 2133, and a network processor 2132. The control plane performs functions such as routing, generating forwarding tables, processing signaling and protocol messages, and configuring and maintaining network device status. The control plane sends the generated forwarding tables to the forwarding plane. On the forwarding plane, the network processor 2132 forwards messages received by the physical interface card 2133 based on the forwarding tables sent by the control plane. The forwarding tables sent by the control plane can be stored in the forwarding table entry memory 2134. In some embodiments, the control plane and forwarding plane can be completely separate and not located on the same network device.

[0229] It's worth noting that there may be one or more main control boards (SPUs), which can include both active and standby SPUs. There may also be one or more interface boards. The higher the network device's data processing capabilities, the more interface boards it provides. Interface boards can also have one or more physical interface cards. There may be no SPUs, one or more SPUs, and multiple SPUs can provide load balancing and redundancy. In a centralized forwarding architecture, network devices may not require SPUs; the interface boards handle service data processing for the entire system. In a distributed forwarding architecture, network devices may have at least one SPU, which enables data exchange between multiple interface boards, providing high-capacity data exchange and processing capabilities. Therefore, network devices with distributed architectures have greater data access and processing capabilities than those with centralized architectures. Alternatively, a network device can consist of a single card, without a switching fabric board (SFB), integrating the functions of the interface board and the main control board. In this case, the central processing unit (CPU) on the interface board and the CPU on the main control board can be combined into a single CPU on this card, performing the combined functions of the two. This type of network device has lower data exchange and processing capabilities (for example, low-end network devices such as switches or routers). The specific architecture used depends on the specific network deployment scenario and is not specified here.

[0230] In a specific embodiment, fault handling device 2100 corresponds to the fault handling apparatus applied to the first network device shown in FIG11 . In some embodiments, transceiver module 1001 in the fault handling apparatus shown in FIG11 corresponds to physical interface card 2133 in fault handling device 2100 , and processing module 1002 corresponds to central processing unit 2111 or network processor 2132 in fault handling device 2100 .

[0231] An embodiment of the present application further provides a fault handling system, comprising: a first network device and a first node. Optionally, the first network device is fault handling device 2000 shown in FIG. 14 or fault handling device 2100 shown in FIG. 15 , and the first node is fault handling device 2000 shown in FIG. The fault handling method executed by the first network device and the first node can be found in the description of the embodiment shown in FIG. 3 above, and will not be further described here.

[0232] This embodiment of the present application also provides a fault handling system, comprising: a target node and a first node. Optionally, the target node and the first node may be the fault handling device 2000 shown in FIG14 . The fault handling method executed by the target node and the first node can be found in the description of the embodiment shown in FIG5 above and will not be further described here.

[0233] An embodiment of the present application further provides a communication device, comprising: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other via 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. When the processor executes the instructions stored in the memory, the processor executes the method required to be executed by the first network device.

[0234] The present application also provides a communication device, comprising: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other via 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. When the processor executes the instructions stored in the memory, the processor executes a method required to be executed by a target node.

[0235] An embodiment of the present application further provides a communication device, comprising: a transceiver, a memory, and a processor. The transceiver, the memory, and the processor communicate with each other via 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. When the processor executes the instructions stored in the memory, the processor executes the method required to be executed by the first node.

[0236] It should be understood that the processor may be a CPU, or other general-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, 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 that supports the Advanced Reduced Instruction Set Machine (ARM) architecture.

[0237] Furthermore, 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 device type information.

[0238] The memory may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. Non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory may be random access memory (RAM), which is used as an external cache memory. By way of example and 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 rambus RAM (DR RAM).

[0239] An embodiment of the present application further provides a computer-readable storage medium, in which at least one instruction is stored. The instruction is loaded and executed by a processor to enable a computer to implement any of the above fault handling methods.

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

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

[0242] 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 through 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.

[0243] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments can be implemented 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 a computer, all or part of the processes or functions according to the present application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. 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 one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive).

[0244] Those skilled in the art will appreciate that the various method steps and modules described in conjunction with the embodiments disclosed herein 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 skilled 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.

[0245] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by a program to instruct the relevant hardware, 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.

[0246] 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 split 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.

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

[0248] In the context of the embodiments of the present application, computer program code or related data may be carried by any suitable 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.

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

[0250] A machine-readable medium may be any tangible medium that contains or stores a program for or in connection with 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.

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

[0252] In the several embodiments provided in this 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 merely schematic. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, 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 can be electrical, mechanical or other forms of connection.

[0253] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across 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.

[0254] In addition, the functional modules in the various embodiments of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into a single module. The above-mentioned integrated modules may be implemented in the form of hardware or software functional modules.

[0255] If the integrated module is implemented in the form of a software functional 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 for enabling 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: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0256] In this application, the terms "first", "second", etc. are used to distinguish between identical or similar items that have 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 any limitation on quantity or 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 the 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. The first image and the second image may both be images, and in some cases, may be separate and different images.

[0257] 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.

[0258] In this application, the term "at least one" means one or more, and the term "plurality" means two or more. For example, "plurality of second messages" means two or more second messages. The terms "system" and "network" are often used interchangeably herein.

[0259] It should be understood that the terminology used in the description of the various examples herein is for the purpose of describing particular examples only and is 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.

[0260] It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the listed items. The term "and / or" describes an association between associated objects, indicating that three possible relationships exist. For example, "A and / or B" can represent: A exists alone, A and B exist simultaneously, or B exists alone. Furthermore, the character " / " in this application generally indicates that the associated objects are in an "or" relationship.

[0261] It will 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.

[0262] 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 [stated condition or event] is detected” may be interpreted to mean “upon determining ” or “in response to determining ” or “upon detecting [stated condition or event]” or “in response to detecting [stated condition or event],” depending on the context.

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

[0264] It should also be understood that references throughout this specification to "one embodiment," "an embodiment," or "one possible implementation" mean that specific features, structures, or characteristics associated with that embodiment or implementation are included in at least one embodiment of the present application. Therefore, the appearance of "in one embodiment," "in an embodiment," or "one possible implementation" throughout this specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0265] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the principles of the present application should be included in the scope of protection 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: computer program code, which 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

Patent Citations

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

    CN118869432A

  • Main and standby network switching method and device

    CN115277545A

  • Protection switching method and network equipment

    CN115801552A

  • Method, device, equipment and system for detecting tunnel fault and storage medium

    CN115967606A

  • Facilitating localization of faults in core, edge, and access networks

    US20220385526A1

Cited By

  • Flow switching method and device, frame type equipment and medium

    CN121151197A