Computer device, data processor, processing system, and switching method

By using heartbeat data and physical connections in cloud computing scenarios to detect DPU operating anomalies and obtain connection status data, the interruption problem during DPU failover is solved, efficient and reliable data processing services are achieved, and switching efficiency and reliability are improved.

WO2024198629A1PCT designated stage expired Publication Date: 2024-10-03CLOUD INTELLIGENCE ASSETS HOLDING (SINGAPORE) PTE LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2024/071541
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-24
Filing Date
2024-01-10
Publication Date
2024-10-03

AI Technical Summary

Technical Problem

In cloud computing scenarios, when a DPU fails to switch over, it needs to be reinitialized and the connection reestablished, resulting in data processing service interruption, low switching efficiency, and poor reliability.

Method used

By establishing physical connections between multiple processing devices, using heartbeat data to detect operating anomalies and obtain connection status data, uninterrupted data processing services and real-time backup are achieved, reducing resource consumption and improving switching reliability.

Benefits of technology

It realizes fast switching and data backup when DPU failure occurs, ensuring the continuity and efficiency of data processing services, and improving switching reliability and performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024071541_03102024_PF_FP_ABST
    Figure CN2024071541_03102024_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a computer device, a data processor, a processing system, and a switching method. The computer device comprises a first data processor and a second data processor; and the first data processor and the second data processor establish a target connection by means of a cable. The first data processor is used for generating heartbeat data according to a running state of the first data processor and sending the heartbeat data to the second data processor on the basis of the target connection. The second data processor is used for obtaining connection state data from the first data processor on the basis of the target connection under the condition of determining that the operation of the first data processor is abnormal according to the heartbeat data, and providing a corresponding data processing service on the basis of the connection state data. According to the technical solution provided by the embodiments of the present application, the switching efficiency is improved, and the switching reliability is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Computer device, data processor, processing system and switching method

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on March 24, 2023, with application number 202310323944.1 and invention name “Computer device, data processor, processing system and switching method”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The embodiments of the present application relate to the field of computer technology, and in particular to a computer device, a data processor, a processing system, and a switching method. Background Art

[0003] In some network computing scenarios, such as cloud computing, a Data Processing Unit (DPU) is usually introduced to free up the computing power of the CPU (central processing unit) to improve the processing efficiency of the CPU in order to improve cloud computing performance, reduce costs, and improve service quality. For example, the DPU can be used as a smart network card to provide network services for the cloud server created in the physical host.

[0004] In order to improve reliability, multiple DPUs are usually set up for redundancy backup. After a DPU fails, another DPU can be switched to continue providing services.

[0005] In the related art, after a DPU fails, if switching to another DPU, the other DPU needs to be reinitialized and re-established before it can take over the work of the failed DPU. This method will cause a long interruption in the data processing service provided by the DPU, low switching efficiency, and poor switching reliability.

[0006] Summary of the Invention

[0007] The embodiments of the present application provide a computer device, a data processor, a processing system, and a switching method to solve the technical problems of low switching efficiency and poor switching reliability in related technologies.

[0008] In a first aspect, an embodiment of the present application provides a computer device, comprising a first data processor and a second data processor; the first data processor and the second data processor establish a target connection through a cable; the first data processor is configured to generate heartbeat data according to the operating status of the first data processor, and send the heartbeat data to the second data processor based on the target connection; the second data processor is configured to determine, based on the heartbeat data, that the first data processor is operating abnormally, obtain connection status data from the first data processor based on the target connection, and provide corresponding data processing services based on the connection status data.

[0009] In a second aspect, an embodiment of the present application provides a processing system, comprising a plurality of processing devices connected by cables; the processing devices comprise a server or a circuit board deployed in a physical host; the circuit board comprises a data processor, a central processing unit, a graphics processing unit or a network card; wherein a first processing device among the plurality of processing devices is configured to generate heartbeat data according to the operating status of the first processing device, and to send heartbeat data to a second processing device among the plurality of processing devices based on a target connection with the second processing device; the second processing device is configured to determine, based on the heartbeat data, that the first processing device is operating abnormally, obtain connection status data from the first processing device based on the target connection, and provide corresponding data processing services based on the connection status data.

[0010] In a third aspect, an embodiment of the present application provides a data processor, comprising a control unit, a memory and a connection interface; the connection interface is connected to the connection interface of a second data processor via a cable; the control unit is used to generate heartbeat data according to the operating status of the second data processor; and write the heartbeat data into the memory in the second data processor; the memory is used to store connection status data and provide the connection status data to the second data processor.

[0011] In a fourth aspect, an embodiment of the present application provides a switching method, which is applied to a first processing device, wherein the first processing device is connected to at least one processing device via a cable, and the method includes: generating heartbeat data according to the operating status of the first processing device; sending the heartbeat data to the second processing device based on the target connection with the second processing device; the heartbeat data is used to trigger the second processing device to detect whether the first processing device is operating abnormally; and providing connection status data to the second processing device based on the target connection.

[0012] In a fifth aspect, an embodiment of the present application provides a switching method, which is applied to a second processing device, and the second processing device is connected to at least one processing device via a cable. The method includes: determining whether the first processing device is operating abnormally based on heartbeat data sent by the first processing device; in the case where the first processing device is operating abnormally, obtaining connection status data from the first processing device based on the target connection; and providing corresponding data processing services based on the connection status data.

[0013] In a sixth aspect, an embodiment of the present application provides a computer storage medium storing a computer program, which, when executed by a computer, implements the switching method described in the fourth aspect or the switching method described in the fifth aspect.

[0014] It should be noted that the above summary is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments and features described above, aspects, embodiments and features of the present application will be readily apparent by reference to the accompanying drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following is a brief introduction to the drawings required for use in the embodiments or related technical descriptions. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0016] FIG1 shows a schematic structural diagram of an embodiment of a processing system provided by the present application.

[0017] FIG2 shows a schematic structural diagram of an embodiment of a computer device provided by the present application.

[0018] FIG3 shows a schematic structural diagram of another embodiment of a computer device provided by the present application.

[0019] FIG4 shows a schematic structural diagram of another embodiment of a computer device provided by the present application.

[0020] FIG5 shows a schematic structural diagram of an embodiment of a data processor provided by the present application.

[0021] FIG6 shows a flow chart of an embodiment of a switching method provided in the present application.

[0022] FIG7 shows a flow chart of another embodiment of a switching method provided by the present application.

[0023] FIG8 shows a flow chart of another embodiment of a switching method provided by the present application. DETAILED DESCRIPTION

[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0025] In some of the processes described in the specification and claims of this application and the above-mentioned figures, multiple operations that appear in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this document or may be executed in parallel. The serial numbers of the operations, such as 101, 102, etc., are only used to distinguish between different operations, and the serial numbers themselves do not represent any order of execution. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel. It should be noted that the descriptions of "first", "second", etc. in this document are used to distinguish different messages, devices, modules, etc., and do not represent a sequential order, nor do they limit "first" and "second" to being different types.

[0026] The technical solution of the embodiments of the present application can be applied to device redundancy backup scenarios. Device redundancy backup is one of the effective methods to improve reliability. Any independent device has low reliability due to the possibility of single point failure. Therefore, by using multiple devices for redundancy backup, the reliability of the entire system can be greatly improved.

[0027] Taking DPU (Data Processing Unit) redundant backup in cloud computing scenarios as an example, as described in the background technology, currently, after a DPU fails, if switching to another DPU, the other DPU needs to be reinitialized and re-established to take over the work of the failed DPU. This method will cause the data processing service provided by the DPU to be interrupted, and the switching reliability is low.

[0028] The inventors have conceived a method of running multiple DPUs simultaneously. The primary DPU is in normal operation, for example, providing network services to cloud servers, responsible for data conversion and forwarding. The primary and backup DPUs can use data backup to back up connection status data required for data processing services to the backup DPU. The primary and backup DPUs can also use a communication protocol for data backup. However, this implementation consumes significant resources if data backup is performed in real time. Furthermore, if the primary DPU fails, data may not be successfully copied. Therefore, the reliability of this switching method is also low.

[0029] In order to improve the switching reliability, the inventor has proposed the technical solution of the embodiment of the present application after a series of studies. In the embodiment of the present application, a physical connection is established between multiple processing devices through cables, so that the first processing device and the second processing device among the multiple processing devices can directly access each other. The first processing device can generate heartbeat data based on its own operating status, and can directly write the heartbeat data to the second processing device. The second processing device can determine whether the first processing device is operating abnormally based on the heartbeat data, and can directly obtain the connection status data from the first processing device based on the physical connection established between each other in the case of abnormal operation, so that the corresponding data processing service can continue to be provided based on the connection status data, ensuring that the data processing service is not interrupted, and data backup can be achieved when a fault occurs, which can reduce resource consumption and does not require the participation of the faulty device. The real-time and efficiency of the switching can be guaranteed based on the physical connection, thereby improving the switching reliability.

[0030] The processing device involved in the embodiments of this application may refer to, for example, a server providing network services or a processing device in a physical host, and the processing device may be, for example, a CPU (Central Processing Unit), a GPU (Graphic Processing Unit), a DPU, an FPGA (Field-Programmable Gate Array), a Smart NIC, or other processing type chip devices. This application does not limit this. For ease of understanding, the technical solutions of the embodiments of this application are mainly introduced in one or more embodiments below, mainly using the DPU as an example.

[0031] It should be noted that the embodiments of this application may involve the use of user data. In actual applications, user-specific personal data may be used in the scheme described herein within the scope permitted by applicable laws and regulations, provided that it complies with the applicable laws and regulations of the country where the user is located (for example, with the user's explicit consent, effective notification to the user, etc.).

[0032] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without making creative efforts are within the scope of protection of this application.

[0033] FIG1 is a schematic diagram of the structure of an embodiment of a processing system provided by an embodiment of the present application. The processing system may include multiple processing devices 10, which are connected to each other via cables. In one example, multiple processing devices 10 may be connected to each other via cables. Alternatively, a processing device may be connected to one or more designated processing devices via cables.

[0034] Among them, the first processing device 101 among the multiple processing devices 10 is used to generate heartbeat data according to the operating status of the first processing device 101, and send heartbeat data to the second processing device 102 among the multiple processing devices 10 based on the target connection with the second processing device 102; the second processing device 102 is used to determine, based on the heartbeat data, that the first processing device 101 is operating abnormally, obtain connection status data from the first processing device 101 based on the target connection, and provide corresponding data processing services based on the connection status data.

[0035] The first processing device 101 may refer to a main processing device that operates normally and provides data processing services, and the second processing device 102 may be any processing device selected by the first processing device 101 to serve as a backup processing device.

[0036] The first processing device 101 can generate heartbeat data periodically, that is, can generate heartbeat data at predetermined intervals according to a heartbeat cycle. If the first processing device 101 operates abnormally, it will no longer be able to send heartbeat data, so that the health status of the first processing device 101 can be determined based on the heartbeat data.

[0037] Each time the first processing device 101 generates a heartbeat data, it can be sent to the second processing device 102 based on the connection established by the cable. The second processing device 102 can then determine whether the first processing device 101 is alive based on the heartbeat data. In one example, the second processing device 102 can determine that the first processing device 101 is operating abnormally when detecting a heartbeat data timeout, such as when no heartbeat data is received within a predetermined time interval.

[0038] If second processing device 102 determines that first processing device 101 is operating abnormally, it can obtain connection status data from first processing device 101 based on the target connection and provide corresponding data processing services based on the connection status data. After second processing device 102 provides the corresponding data processing services based on the connection status data, it switches to first processing device 101 to serve as the active processing device.

[0039] The connection status data may include, for example, configuration data, session control data (Session) such as a session table, and may also include hardware resource data.

[0040] The hardware resource data is used to initialize the second processing device 102, the configuration data can be used to configure the second processing device 102 to achieve the same configuration as the first processing device 101, and the session control data is used by the second processing device 102 to continue providing corresponding data processing services, such as maintaining a connection to perform data conversion and forwarding. The session control data also refers to information exchange data, such as temporary, interactive information transmitted between the server and the client.

[0041] In this embodiment, the first processing device and the second processing device establish a physical connection through a cable. Through the heartbeat data method, the first processing device can directly write the heartbeat data to the second processing device, so that the second processing device can promptly identify whether the first processing device is operating abnormally, and obtain the connection status data from the first processing device when the operation is abnormal. Therefore, there is no need for the participation of the faulty first processing device, that is, the synchronous backup of the connection status data can be achieved, and the physical connection established by the cable can improve the real-time and efficiency of data backup, thereby improving the switching efficiency, and will not cause long-term interruption of the data processing service provided, thereby ensuring the switching reliability.

[0042] The multiple processing devices 10 can be physically connected to each other via cables based on a bus standard, and the cables used for connection are also referred to as buses. In embodiments of the present application, after the multiple processing devices 10 are physically connected, they can directly access each other's memories. Therefore, in some embodiments, the first processing device 101 sending heartbeat data to the second processing device 102 based on the target connection can be: based on the target connection, accessing the second memory of the second processing device 102 and writing the heartbeat data to the second memory; the second processing device 102 obtaining connection status data from the first processing device based on the target connection can be: based on the target connection, accessing the first memory of the first processing device 101 and obtaining the connection status data from the first memory.

[0043] In one embodiment, a physical connection may be established between the multiple processing devices 10 based on a CXL (Compute Express Link) protocol, for example, so that memory access may be implemented according to the CXL.mem protocol.

[0044] Among them, CXL is a cache coherent interconnect protocol developed based on PCIE (peripheral component interconnect express, high-speed serial computer expansion bus). It runs on the PCIE physical layer and has the same electrical characteristics. It is a new protocol optimized for cache and memory and is physically compatible with PCIE.

[0045] The CXL protocol primarily consists of CXL.io, CXL.cache, and CXL.mem. CXL.io is used for initialization, linking, device discovery and enumeration, and register access. CXL.cache defines the protocol for interaction between devices, and CXL.mem provides direct access to device attached memory using load / store commands.

[0046] The memories of the multiple processing devices 10 may use a unified memory addressing method to set memory addresses, so that the multiple processing devices can know the memory addresses of each other's memories to initiate direct access.

[0047] For example, the first processing device 101 may access the second memory according to the memory address of the second memory, and the second processing device 102 may access the first memory according to the memory address of the first memory.

[0048] In one embodiment, any one processing device may perform unified memory addressing on the memories of multiple processing devices, and may notify each processing device of the determined memory addresses of the multiple processing devices, or may notify each processing device of only the memory address of each processing device, and each processing device may determine the memory addresses of other processing devices by combining its own memory address and the unified memory addressing method. The any one processing device may be a pre-designated processing device or a randomly selected processing device.

[0049] Among them, setting memory addresses for the memories of multiple processing devices in a unified memory addressing manner can allow the memories of multiple processing devices to share the same address space. After an address in the address space is allocated to a memory, another memory cannot occupy the address.

[0050] In some embodiments, when the second processing device 102 determines that the first processing device 101 is operating abnormally, it can also set a backup flag in the first memory of the first processing device 101 based on the target connection, and set a success flag in the first memory after obtaining the connection status data.

[0051] The above-mentioned backup identifier and success identifier can be used to determine the backup status. The backup status may include, for example, backup in progress and backup successful. For example, when there is only a backup identifier in the first processing device, the backup status is backup in progress. When there are a backup identifier and a success identifier, the backup status is backup successful.

[0052] The first processing device can determine whether to execute a target processing operation based on the backup status. The target processing operation can be, for example, a reboot operation. The first processing device can reboot in the event of an abnormal operation. To avoid affecting the backup operation, the reboot operation can be performed after the backup is successful. Therefore, if the backup status is "backup in progress," the target processing operation is suspended. If the backup status is "backup successful," the target processing operation can be executed.

[0053] In addition, the backup identifier and the success identifier determine whether the backup is successful. For example, if only the backup identifier exists but not the success identifier, it means that the backup has failed. In this way, relevant personnel can determine the cause of the failure by combining the backup identifier and the success identifier when there is an abnormality in the data processing service.

[0054] Furthermore, in some embodiments, the first processing device 101 may select a processing device that does not have a backup flag or a success flag set as the second processing device 102, i.e., a backup processing device. The backup flag or success flag may indicate that the corresponding processing device may have a fault, and thus, the backup flag or success flag may be combined to determine whether the second processing device 102 is not faulty.

[0055] In one embodiment, when the second processing device 102 determines that the first processing device 101 is operating abnormally, it may further send fault prompt information to the control device, where the fault prompt information is used to prompt the first processing device 101 that the first processing device 101 is operating abnormally.

[0056] The control device can feed back the fault prompt information to the relevant personnel so that the relevant personnel can perform maintenance, etc. The relevant personnel can determine whether the backup is successful by combining the backup mark and the success mark.

[0057] As can be seen from the above description, in actual applications, the processing device mentioned above may refer to, for example, a server or a processing device deployed in a physical host, etc. The processing device may refer to, for example, a DPU, a CPU, a GPU, etc.

[0058] The above-mentioned data processing services vary depending on the type of device or the type of service provided, and may refer to, for example, network services, storage services, computing services, or communication services.

[0059] For example, when the processing device is a server, the server can establish communication connections with different clients and provide communication services. In order to ensure the quality of communication services, multiple servers can be set up, and the client establishes a communication connection with the primary server. In the event of an abnormal operation of the primary server, the backup server can continue to provide communication services to ensure that the communication connection is not interrupted.

[0060] For example, if the processing device is a smart network card (NIC) or network interface card (NIC), it can provide network services for applications running on the physical host. By configuring multiple NICs or smart NICs, if the primary NIC or primary smart NIC malfunctions, a backup NIC or backup smart NIC can be selected to continue providing network services to the applications, ensuring uninterrupted service. A NIC, also known as a network interface card (NIC), is a network hardware device that connects the network and server, facilitating network data transmission and communication. A smart network interface card (SmartNIC) is a flexible and programmable NIC. SmartNICs can have computing capabilities. To free up CPU power, data processing functions related to networking, security, and storage that are not suitable for the CPU can be offloaded to the SmartNIC, reducing CPU consumption. In the internet industry, smart NICs are widely used in data centers. SmartNICs can be used for data transmission, virtual switching, data security, and data storage.

[0061] For example, when the processing device is a CPU, it can provide network services, storage services, computing services or communication services for applications running in the physical host. By setting up multiple CPUs, when the main CPU operates abnormally, the backup CPU can be selected to continue to provide corresponding services to the application, ensuring uninterrupted service.

[0062] For example, if the processing device is a DPU, one implementation of the DPU can perform the functions of the aforementioned Smart NIC, and can also provide computing services or storage services, thereby offloading some of the CPU's computing power to the CPU and improving CPU processing efficiency. By configuring multiple DPUs, if the primary DPU fails, a backup DPU can be selected to continue providing corresponding services to the application, ensuring uninterrupted service.

[0063] It should be noted that the above only lists several possible application scenarios, and the present application is not limited thereto. By adopting the technical solutions of the embodiments of the present application, the switching reliability can be improved.

[0064] For ease of understanding, in the following one or more embodiments, the technical solutions of the embodiments of the present application are mainly introduced by taking the switching of the DPU as an example.

[0065] As shown in Figure 2, a structural diagram of an embodiment of a computer device provided in an embodiment of the present application is provided. The computer device can be a physical host, and the computer device can include a first DPU201 and a second DPU202; the first DPU201 and the second DPU202 establish a target connection via a cable; the first DPU201 is used to generate heartbeat data according to the operating status of the first DPU, and send the heartbeat data to the second DPU based on the target connection; the second DPU202 is used to determine, based on the heartbeat data, that the first DPU201 is operating abnormally, obtain connection status data from the first DPU201 based on the target connection, and provide corresponding data processing services based on the connection status data.

[0066] In one embodiment, the computer device may include two or more DPUs. The first DPU may be the active DPU, and the second DPU may be the standby DPU. After the second DPU obtains the connection status data and provides the corresponding data processing service, it switches to become the first DPU and can continue to execute the technical solutions of the embodiments of the present application.

[0067] In one embodiment, the second DPU may be a pre-designated DPU corresponding to the first DPU, or alternatively, may be any non-faulty DPU selected by the first DPU from among a plurality of DPUs.

[0068] In one embodiment, the connection status data may include, for example, configuration data, session control data (Session) such as a session table, and may also include hardware resource data.

[0069] The first DPU can generate heartbeat data periodically, that is, it can generate heartbeat data at predetermined time intervals according to a heartbeat cycle. If the first DPU operates abnormally, it will no longer be able to send heartbeat data, so that the health status of the first DPU can be determined based on the heartbeat data.

[0070] Each time the first DPU generates a heartbeat data, it can be sent to the second DPU based on the connection established by the cable. The second DPU can then determine whether the first processing device is alive based on the heartbeat data. In one example, the second DPU can determine that the first DPU is operating abnormally when it detects a heartbeat data timeout, such as when it does not receive heartbeat data within a predetermined time interval.

[0071] In this embodiment, the first DPU and the second DPU establish a physical connection via a cable. The first DPU can directly write the heartbeat data to the second DPU via heartbeat data, so that the second DPU can promptly identify whether the first DPU is operating abnormally and obtain connection status data from the first DPU when the operation is abnormal. This eliminates the need for the participation of the faulty first DPU, and thus enables synchronous backup of the connection status data. Establishing a physical connection via a cable can improve the real-time nature and efficiency of data backup, thereby improving switching efficiency, preventing long-term interruption of the provided data processing services, and ensuring switching reliability.

[0072] The first DPU and the second DPU may be physically connected via a cable based on a bus standard, and the cable used for connection is also a bus. In the embodiment of the present application, after the first DPU and the second DPU establish a physical connection, they can directly access each other's memory. Therefore, in some embodiments, the first DPU sending heartbeat data to the second DPU based on the target connection includes: accessing the second memory of the second DPU based on the target connection, and writing the heartbeat data into the second memory;

[0073] The second DPU obtains the connection status data from the first DPU based on the target connection, including: accessing the first memory of the first DPU based on the target connection, and obtaining the connection status data from the first memory.

[0074] In one embodiment, a physical connection may be established between the first DPU and the second DPU based on the CXL protocol, for example, so that memory access may be implemented according to the CXL.mem protocol.

[0075] As shown in Figure 3, as another embodiment, the first DPU201 may include a first control unit 21, a first memory 22 and a first connection interface 23; the second DPU202 includes a second control unit 24, a second memory 25 and a second connection interface 26; wherein the first connection interface 23 and the second connection interface 26 are connected by a cable, so that the first DPU and the second DPU establish a target connection.

[0076] The first connection interface 23 and the second connection interface 26 may be interconnection interfaces supporting the CXL protocol, etc.

[0077] The first control unit 21 is used to generate heartbeat data according to the operating status of the first DPU, and write the heartbeat data into the second memory 25 based on the target connection; the second control unit 24 is used to determine, based on the heartbeat data, that the first DPU is operating abnormally, obtain connection status data from the first memory 22 through the target connection, and provide corresponding data processing services based on the connection status data.

[0078] In some embodiments, the first memory 22 and the second memory 25 may set memory addresses using a unified memory addressing method; thereby, the first control unit 21 and the second control unit 24 may know the memory addresses of each other's memories to initiate direct access.

[0079] The first control unit 21 writes the heartbeat data into the second memory 25 through the target connection, including: determining the memory address of the second memory 25, and writing the heartbeat data into the second memory 25 through the bus according to the memory address of the second memory 25; the second control unit 24 obtains the connection status data from the first memory 22 through the target connection, including: determining the memory address of the first memory 22, and obtaining the connection status data from the first memory 22 according to the memory address of the first memory 22.

[0080] Wherein, the computer device includes multiple DPUs, and a designated DPU may perform unified memory addressing on the memories of the multiple DPUs, and notify each DPU separately.

[0081] For example, in some embodiments, the first control unit 21 is further used to perform unified memory addressing on the first memory 22 and the second memory 25, and to notify the second control unit 24 of the memory address of the first memory 22 and the memory address of the second memory 25 based on the target connection.

[0082] For example, in some embodiments, the second control unit 24 is further used to perform unified memory addressing on the first memory 22 and the second memory 25, and to notify the first control unit 21 of the memory address of the first memory 22 and the memory address of the second memory 25 based on the target connection.

[0083] Of course, the first control unit 21 or the second control unit 24 may also obtain the memory addresses corresponding to the respective DPUs notified by the third control unit. The third control unit may be a control unit included in any one of the multiple DPUs, or a control unit included in a pre-designated DPU.

[0084] Of course, the CPU in the computer device may also perform memory unified addressing operations, etc., and this application does not specifically limit this.

[0085] The memory address is set by adopting the unified memory addressing method so that multiple memories share the same address space. After an address in the address space is allocated to a memory, another memory cannot occupy the address.

[0086] In some embodiments, the second control unit 24 may also be configured to set a backup flag in the first memory 22 when determining that the first DPU is operating abnormally, and to set a success flag in the first memory 22 after obtaining the connection status data.

[0087] The backup flag and the success flag are used to determine the backup status. The first control unit can also determine the backup status according to the backup flag or the success flag, and determine whether to perform the target processing operation according to the backup status.

[0088] The backup status may include, for example, backup in progress and backup successful. For example, when there is only a backup mark in the first control unit, the backup status is backup in progress; when there are a backup mark and a success mark, the backup status is backup successful.

[0089] The first control unit can determine whether to execute a target processing operation based on the backup status. The target processing device can, for example, be a reboot operation. In the event of an operational anomaly, the first control unit can execute a reboot operation to restart the first DPU. To avoid affecting the backup operation, the reboot operation can be executed after the backup is successful. Therefore, if the backup status is "backup in progress," the target processing operation is suspended. If the backup status is "backup successful," the target processing operation can be executed.

[0090] In addition, the backup flag and success flag can determine whether the backup was successful. For example, if only the backup flag exists but the success flag does not, it means that the backup failed. Therefore, relevant personnel can combine the backup flag and success flag to determine the cause of the failure in the event of an abnormality in the data processing service.

[0091] In addition, in some embodiments, the second control unit 24 is further configured to send a fault prompt message to the control terminal when determining that the first DPU is operating abnormally.

[0092] In addition, in actual applications, the first control unit 21 and the second control unit 24 can be implemented using an ASIC (Application Specific Integrated Circuit). In order to reduce the design complexity of the control unit, as shown in Figure 3, the first DPU can also include a first processing unit 27, and the second DPU can also include a second processing unit 28; the second control unit 24 is also used to determine, based on the heartbeat data, that the first DPU is operating abnormally, and send a fault notification to the second processing unit 28; the second processing unit 28 is used to send fault prompt information to the control end based on the fault notification, so that the control end can output the fault prompt information.

[0093] The fault prompt information may indicate that the first DPU is operating abnormally, etc.

[0094] The control terminal can feed back the fault prompt information to the relevant personnel so that the relevant personnel can perform maintenance, etc. The relevant personnel can determine whether the backup is successful by combining the backup mark and the success mark.

[0095] The first processing unit 27 and the second processing unit 28 may be implemented as a CPU, for example.

[0096] In one embodiment, the above-mentioned first memory and second memory can be, for example, SDRAM (Synchronous Dynamic Random Access Memory), DDR SDRM (Double data Rate SDRAM, abbreviated as DDRs, double data rate synchronous dynamic random access memory), PMEM (Persistent Memory), etc. Of course, the memory can also include ROM (Read Only Memory), CACHE (Cache Memory), etc., and this application does not make specific limitations on this.

[0097] In a practical application, the technical solution of the embodiment of the present application can be applied to a cloud computing scenario. The above-mentioned computer device is a physical host provided by the cloud computing system, as shown in Figure 4. The difference from the structure shown in Figure 2 is that the computer device can also include a processing component 40, in which at least one cloud server 41 can run.

[0098] The processing component can provide network services to at least one cloud server 41 through the first DPU or the second DPU respectively.

[0099] That is, the first DPU or the second DPU can provide a network card function to provide corresponding network services, etc. The first DPU or the second DPU provides network services, etc. for the cloud server by building a virtual network card.

[0100] In this implementation scenario, the configuration data included in the above-mentioned connection status data may include, for example, ENI (Elastic Network Interface), EBS (Elastic Block Storage), IP (Internet Protocol) address, etc.

[0101] The session control data may include, for example, a session table, a routing table, etc. The session table records specific interaction data, and the routing table records data forwarding addresses, etc.

[0102] The hardware resource information may include, for example, initialization information such as supported PCIE and VirtIO (an I / O paravirtualization standard) to facilitate initialization operations.

[0103] Combined with the above connection status data, the second DPU can be initialized according to PCIE and VirtIO to build ENI, EBS and allocate IP addresses, and then can provide corresponding network services based on the session table and routing table.

[0104] In one embodiment, the computer device may further include a storage component, the storage component storing one or more computer instructions, the one or more computer instructions being used to be called and executed by the processing component to operate at least one cloud server and provide network services to the at least one cloud server through the first DPU or the second DPU;

[0105] The second DPU provides corresponding data processing services based on the connection status data, that is, specifically provides network services for at least one cloud server based on the connection status data.

[0106] The processing component may include one or more processors to execute computer instructions to complete all or part of the steps in the above method. Of course, the processing component may also be implemented as one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the above method.

[0107] The storage component is configured to store various types of data to support operations at the terminal. The storage component can be implemented by any type of volatile or non-volatile memory device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.

[0108] In a cloud computing scenario, the above-mentioned computer device may be an elastic computing host provided by a cloud computing platform, etc.

[0109] In addition, as shown in Figure 5, an embodiment of the present application also provides a data processor, which may include a control unit 501, a memory 502 and a connection interface 503; the connection interface 503 is connected to the connection interface of the second DPU via a cable; the control unit 501 is used to generate heartbeat data according to the operating status of the second DPU; and write the heartbeat data into the memory in the second DPU; the memory 502 is used to store connection status data and provide the connection status data to the second DPU.

[0110] The data processor shown in FIG. 5 may be implemented as the first data processor in any of the above embodiments, that is, as a main data processor.

[0111] In addition, in some scenarios, the data processor shown in Figure 5 can also be used as a backup processor, etc., and can be implemented as the second data processor in any of the above embodiments. Therefore, in some embodiments, the memory 502 can also be used to save the heartbeat data written by the first DPU; the control unit 501 can also be used to determine that the first DPU is operating abnormally based on the heartbeat data written by the memory 502, obtain connection status data from the memory of the first DPU, and provide corresponding data processing services based on the connection status data.

[0112] In some embodiments, the data processor may further include a processing unit 504 configured to receive a fault notification sent by the control unit 501 and send fault prompt information to the control terminal based on the fault notification.

[0113] The control unit 501 may also send the fault notification to the processing unit 504 when determining that the first data processor operates abnormally.

[0114] In addition, corresponding to the processing system shown in Figure 1, as shown in Figure 6, it is a flowchart of an embodiment of a switching method provided in an embodiment of the present application. The technical solution of this embodiment is applied to a first processing device. The first processing device can be connected to at least one processing device via a cable. The method may include the following steps: 601: Generate heartbeat data based on the operating status of the first processing device. 602: Send heartbeat data to the second processing device based on the target connection with the second processing device. The heartbeat data is used to trigger the second processing device to detect whether the first processing device is operating abnormally; 603: Provide connection status data to the second processing device based on the target connection.

[0115] When determining that the first processing device operates abnormally, the second processing device may obtain the connection status data from the first processing device based on the target connection.

[0116] In some embodiments, the first processing device may write the heartbeat data into the second memory of the second processing device based on the target connection with the second processing device.

[0117] The second processing device may access the first memory in the first processing device based on the target connection to obtain the connection status data.

[0118] It should be noted that the operation of each step involved in the switching method described in the embodiment shown in FIG6 has been described in detail in the processing system described in the embodiment shown in FIG1 above, and will not be elaborated on here.

[0119] FIG7 is a flowchart of another embodiment of a switching method provided by an embodiment of the present application. The technical solution of this embodiment is executed by a second processing device, which is connected to at least one processing device via a cable. The method may include the following steps: 701: Based on the heartbeat data sent by the first processing device, determine whether the first processing device is operating abnormally. If so, execute step 702. 702: Based on the target connection, obtain connection status data from the first processing device. 703: Based on the connection status data, provide corresponding data processing services.

[0120] In some embodiments, the first processing device may write data into a second memory of the second processing device, and the second processing device may determine whether the first processing device operates abnormally based on the heartbeat data in the second memory.

[0121] In one embodiment, the second processing device may obtain the connection state data from the first memory of the first processing device based on the target connection.

[0122] It should be noted that the operation of each step involved in the switching method described in the embodiment shown in FIG. 7 has been described in detail in the processing system described in the embodiment shown in FIG. 1 above, and will not be elaborated on here.

[0123] FIG8 is a signaling flow chart of another embodiment of a handover method provided by an embodiment of the present application. FIG8 uses a DPU as an example to illustrate the technical solution of the embodiment of the present application. The method may include the following steps: 801: The first control unit generates heartbeat data based on the operating status of the first DPU and writes the heartbeat data to the second memory of the second DPU based on the target connection. 802: The second control unit determines, based on the heartbeat data, that the first DPU is operating abnormally. 803: The second control unit sets a backup flag in the first memory. 804: The second control unit obtains connection status data from the first memory via the target connection. This connection status data can be directly written to the second memory. 805: The second control unit sets a success flag in the first memory. 806: The second control unit provides corresponding data processing services based on the connection status data. The second control unit can provide data processing services based on the connection status data stored in the second memory. 807: The second control unit sends a fault notification to the second processing unit. 808: Based on the fault notification, the second processing unit sends a fault prompt message to the control end.

[0124] It should be noted that the operation methods of the various steps involved in the switching method described in the embodiment shown in Figure 8 have been described in detail in the computer device described in the embodiment shown in Figure 2 or Figure 3 or Figure 4 above, and will not be elaborated here.

[0125] In the embodiment of the present application, health status identification is achieved by using heartbeat data through remote memory refresh. Through physical connection, no communication protocol connection is required, so that data backup is more real-time and efficient, and no faulty equipment is required to participate. Data replication across devices is achieved to maintain the continued provision of data processing services without interruption, thereby improving switching reliability and greatly improving performance.

[0126] The present application also provides a computer-readable storage medium storing a computer program. When executed by a computer, the computer program can implement the switching method described in the embodiment shown in FIG. 6 or the switching method described in the embodiment shown in FIG. 7 . The computer-readable medium can be included in the electronic device described in the above embodiments, or it can exist independently and not be incorporated into the electronic device.

[0127] The present application also provides a computer program product, which includes a computer program carried on a computer-readable storage medium. When the computer program is executed by a computer, it can implement the switching method described in the embodiment shown in Figure 6 or the switching method described in the embodiment shown in Figure 7. In such an embodiment, the computer program can be downloaded and installed from a network and / or installed from a removable medium. When the computer program is executed by a processor, it performs various functions defined in the system of the present application.

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

[0129] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.

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

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

Claims

1. A computer device, comprising a first data processor and a second data processor; the first data processor and the second data processor establish a target connection via a cable; The first data processor is configured to generate heartbeat data according to an operation state of the first data processor, and send the heartbeat data to the second data processor based on the target connection; The second data processor is used to determine, based on the heartbeat data, that the first data processor is operating abnormally, obtain connection status data from the first data processor based on the target connection, and provide corresponding data processing services based on the connection status data.

2. The device according to claim 1, wherein: The first data processor sending the heartbeat data to the second data processor based on the target connection includes: based on the target connection, accessing a second memory of the second data processor, and writing the heartbeat data into the second memory; The second data processor acquiring the connection status data from the first data processor based on the target connection includes: accessing a first memory of the first data processor based on the target connection, and acquiring the connection status data from the first memory.

3. The device according to claim 2, wherein: The first data processor includes a first control unit and the first memory; the second data processor includes a second control unit and the second memory; The first control unit is configured to generate heartbeat data according to the running state of the first data processor, and write the heartbeat data into the second memory based on the target connection; The second control unit is used to determine, based on the heartbeat data, that the first data processor is operating abnormally, obtain connection status data from the first memory through the target connection, and provide corresponding data processing services based on the connection status data.

4. The device according to claim 3, wherein: The first memory and the second memory use a unified memory addressing method to set memory addresses; The first control unit writing the heartbeat data into the second memory through the target connection includes: determining a memory address of the second memory, and writing the heartbeat data into the second memory through the cable according to the memory address of the second memory; The second control unit acquiring the connection status data from the first memory through the target connection includes: determining a memory address of the first memory, and acquiring the connection status data from the first memory according to the memory address of the first memory.

5. The device according to claim 4, wherein: The first control unit is further used to perform unified memory addressing on the first memory and the second memory, and notify the second control unit of the memory address of the first memory and the memory address of the second memory based on the target connection; Alternatively, the second control unit is further used to perform unified memory addressing on the first memory and the second memory, and to notify the first control unit of the memory address of the first memory and the memory address of the second memory based on the target connection.

6. The device according to claim 3, wherein: The first data processor further includes a first processing unit, and the second data processor further includes a second processing unit; The second control unit is further configured to determine, based on the heartbeat data, that the first data processor is operating abnormally. In the event of a fault, sending a fault notification to the second processing unit; The second processing unit is used to send fault prompt information to the control end based on the fault notification, so that the control end outputs the fault prompt information.

7. The device according to claim 3, wherein: The second control unit is further used to set a backup identifier in the first memory, and after obtaining the connection status data, set a success identifier in the first memory; the backup identifier and the success identifier are used to determine the backup status.

8. The device according to claim 1, wherein: The device also includes a processing component; the processing component is used to run at least one cloud server and provide network services for the at least one cloud server through the first data processor or the second data processor.

9. A processing system, comprising a plurality of processing devices, wherein the plurality of processing devices are connected by cables; the processing devices include a server or a circuit board deployed in a physical host; the circuit board includes a data processor, a central processing unit, a graphics processor or a network card; in, a first processing device among the plurality of processing devices, configured to generate heartbeat data according to an operating state of the first processing device, and send the heartbeat data to a second processing device among the plurality of processing devices based on a target connection with the second processing device; The second processing device is used to determine, based on the heartbeat data, that the first processing device is operating abnormally, obtain connection status data from the first processing device based on the target connection, and provide corresponding data processing services based on the connection status data.

10. A data processor, comprising a control unit, a memory and a connection interface; the connection interface is connected to a connection interface of a second data processor via a cable; The control unit is configured to generate heartbeat data according to the operating state of the second data processor; and writing the heartbeat data into a memory in the second data processor; The memory is used to store connection status data and provide the connection status data to the second data processor.

11. The data processor according to claim 10, wherein: The memory is also used to store the heartbeat data written by the first data processor; The control unit is further used to determine, based on the heartbeat data written into the memory, that the second data processor is operating abnormally, obtain connection status data from the memory of the second data processor, and provide corresponding data processing services based on the connection status data.

12. A switching method, applied to a first processing device, wherein the first processing device is connected to at least one processing device via a cable, the method comprising: generating heartbeat data according to the operating status of the first processing device; sending the heartbeat data to a second processing device based on a target connection with the second processing device; The heartbeat data is used to trigger the second processing device to detect whether the first processing device operates abnormally; Based on the target connection, connection status data is provided to the second processing device.

13. A switching method, applied to a second processing device, wherein the second processing device establishes a target connection with at least one processing device via a cable, the method comprising: Determining whether the first processing device operates abnormally based on the heartbeat data sent by the first processing device; In the case where the first processing device operates abnormally, obtaining from the first processing device based on the target connection Connection status data; Based on the connection status data, corresponding data processing services are provided.

14. A computer storage medium storing a computer program, wherein the computer program, when executed by a computer, implements the switching method according to claim 12 or the switching method according to claim 13.

Citation Information

Patent Citations

  • Electronic equipment, wireless networking system and device, and a control method and storage device thereof

    CN108282907A

  • Intelligent road side unit

    CN110874926A

  • Control equipment main controller redundancy backup system and method

    CN115022159A

  • Computer equipment, data processor, processing system and switching method

    CN116467116A

  • An apparatus and method for processing data streams

    EP2199914A1