A network card cluster management method, device, electronic device and readable storage medium

By establishing communication connections between network card devices, comparing status information and identifying faulty network cards, and sending fault notifications to management devices, decentralized management of network card cluster fault detection and maintenance is achieved, improving the efficiency of managing a large number of network card devices and solving solve the problem of low efficiency in the existing technology.

CN116016090BActive Publication Date: 2024-10-22INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211685891.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-27
Publication Date
2024-10-22
Estimated Expiration
2042-12-27

AI Technical Summary

Technical Problem

The network card management method in the existing technology is inefficient and difficult to apply to a large number of network card device management scenarios.

Method used

By establishing a communication connection relationship between network card devices, obtaining and comparing the status information of each network card device, determining the faulty network card device and sending a fault notification to the management device, the fault detection and maintenance work can be transferred to the cluster itself for execution, and the management equipment can be alleviated. Work stress.

Benefits of technology

It improves the management and maintenance efficiency when facing a large number of network card devices, solves the problem of low network card management efficiency in the existing technology, and reduces the workload of the management device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116016090B_ABST
    Figure CN116016090B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a network card cluster management method and device, an electronic device and a readable storage medium; a management device sends a maintenance management instruction to the network card devices in the network card cluster, and the network card devices immediately perform adaptive maintenance management after receiving the management instruction; the network card devices can obtain the status information of themselves and adjacent network card devices from each other, find out the network card devices with different status information through information comparison, and then determine the network card devices that may have faults, and report the faults to the management device; then the faulty network card device can recover data through the adjacent normal network card devices, and the fault detection and maintenance work of the network card cluster is transferred to the cluster body for execution, which greatly reduces the work pressure of the original management device, and when facing a large number of network card clusters, it can also maintain a high management and maintenance efficiency; it solves the problem that the network card management method in the prior art is inefficient and difficult to apply to a large number of network card device management scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a network card cluster management method, device, electronic equipment and readable storage medium. Background Art

[0002] Smart NIC is an important expansion hardware in current computer network technology. It can pre-process network data. With the continuous improvement of the demand for network data interaction, the number of smart NICs installed in management devices is also increasing. The management of massive network card devices is of great significance to current data operation and maintenance.

[0003] In the related art, connection management is mainly performed by setting up a central management device and an intelligent network card, and each accessible network card in the network is independently managed through a point-to-point interaction relationship.

[0004] However, in the existing technical solutions, it is obvious that as the number of managed network cards continues to grow, the one-to-one management mode will bring a huge workload to the management equipment, and the efficiency of independent management and maintenance of each smart network card is low; it is difficult to apply to the management of a large number of network card devices. Summary of the invention

[0005] The embodiments of the present invention provide a network card cluster management method, device, electronic device and readable storage medium to solve the problem that the network card management method in the prior art is inefficient and difficult to apply to a large number of network card device management scenarios.

[0006] In a first aspect, an embodiment of the present invention provides a network card cluster management method, which is applied to any network card device in a network card cluster, and the method includes:

[0007] In response to the maintenance execution instruction sent by the management device, obtaining first status information of the current network card device and second status information of an adjacent network card device, wherein the adjacent network card device is a network card device having a communication connection relationship with the current network card device;

[0008] Compare the first state information with the second state information to obtain a first comparison result;

[0009] When it is determined that the current network card device or an adjacent network card device is faulty according to the first comparison result, a network card fault notification including an identity of the faulty network card device is sent to the management device, so that the management device generates a maintenance log according to the identity.

[0010] In a second aspect, an embodiment of the present invention provides a network card cluster management method, which is applied to a management device, and the method includes:

[0011] Initialize the system and establish a network card cluster consisting of network card devices;

[0012] Sending a maintenance execution instruction to the network card device;

[0013] receiving a network card fault notification sent by the network card device, wherein the network card fault notification includes: an identity of the faulty network card device; the identity of the faulty network card device is: an identity of the faulty network card device determined by comparing the first state information of the network card device with the second state information of a network card device adjacent to the network card device according to the first comparison result;

[0014] A management and maintenance log is generated according to the identity identifier of the faulty network card device.

[0015] In a third aspect, an embodiment of the present invention provides a network card cluster management device, which is applied to any network card device in a network card cluster, and the device includes:

[0016] A status information acquisition module, configured to acquire, in response to a maintenance execution instruction sent by a management device, first status information of a current network card device and second status information of an adjacent network card device, wherein the adjacent network card device is a network card device having a communication connection relationship with the current network card device;

[0017] a state information comparison module, configured to compare the first state information with the second state information to obtain a first comparison result;

[0018] A fault information notification module is used to send a network card fault notification including an identity identifier of the faulty network card device to the management device when it is determined that the current network card device or an adjacent network card device has a fault based on the first comparison result, so that the management device can generate a maintenance log based on the identity identifier.

[0019] In a fourth aspect, an embodiment of the present invention provides a network card cluster management device, which is applied to a management device, and the device includes:

[0020] A network card cluster building module is used to initialize the system and build a network card cluster consisting of network card devices;

[0021] A maintenance instruction sending module, used for sending a maintenance execution instruction to the network card device;

[0022] a fault information receiving module, configured to receive a network card fault notification sent by the network card device, wherein the network card fault notification includes: an identity of the faulty network card device; the identity of the faulty network card device is: an identity of the faulty network card device determined by comparing the first state information of the network card device with the second state information of the network card device adjacent to the network card device according to the first comparison result;

[0023] The management log generation module is used to generate a management maintenance log according to the identity identifier of the faulty network card device.

[0024] In a fifth aspect, an embodiment of the present invention provides an electronic device, including: a processor;

[0025] a memory for storing instructions executable by the processor;

[0026] The processor is configured to execute the instructions to implement the method.

[0027] In a sixth aspect, an embodiment of the present invention provides a readable storage medium, which, when instructions in the readable storage medium are executed by a processor of an electronic device, enables the electronic device to execute the method.

[0028] In an embodiment of the present invention, a network card cluster management method is provided. First, a management device sends a maintenance management instruction to the network card devices in the network card device cluster. After receiving the management instruction, the network card devices immediately perform adaptive maintenance management. The network card devices can obtain status information of themselves and adjacent network card devices from each other, find out the network card devices with different status information through information comparison, and then determine the identification of the network card device that may have a fault, and report the fault to the management device. Subsequently, the faulty network card device can perform data recovery through the adjacent normal network card device, and the fault detection and maintenance work of the network card cluster is transferred to the cluster body for execution, which greatly reduces the work pressure on the original management device. When facing a network card cluster with a large number of network cards, it can also maintain a high management and maintenance efficiency. The problem that the network card management method in the prior art is inefficient and difficult to apply to management scenarios of a large number of network card devices is solved.

[0029] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0031] Figure 1 This is a brief step implementation flow chart of a network card cluster management method provided by an embodiment of the present invention;

[0032] Figure 2 It is a schematic diagram of a topological connection relationship of a network card cluster management provided by an embodiment of the present invention;

[0033] Figure 3 It is a structural diagram of a centralized network card management method provided by an embodiment of the present invention;

[0034] Figure 4 It is a brief step implementation flow chart of another network card cluster management method provided by an embodiment of the present invention;

[0035] Figure 5 It is an interactive flow chart of specific steps of a network card cluster management method provided by an embodiment of the present invention;

[0036] Figure 6 It is a logical diagram of specific steps of a network card cluster management method provided by an embodiment of the present invention;

[0037] Figure 7 It is a schematic diagram of the module composition of a network card cluster management device provided by an embodiment of the present invention;

[0038] Figure 8 It is a schematic diagram of the module composition of another network card cluster management device provided by an embodiment of the present invention;

[0039] Fig. 9 is a functional component relationship diagram of an electronic device provided by an embodiment of the present invention;

[0040] Fig.10 It is a functional component relationship diagram of another electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] The exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present invention and to enable the scope of the present invention to be fully communicated to those skilled in the art.

[0042] Reference Figure 1 , Figure 1 This is a simplified flow chart of the steps of implementing a network card cluster management method provided by an embodiment of the present invention. The steps and methods shown are applied to any network card device in a network card cluster. The method includes:

[0043] Step 101, in response to a maintenance execution instruction sent by a management device, obtain first status information of a current network card device and second status information of an adjacent network card device, wherein the adjacent network card device is a network card device having a communication connection relationship with the current network card device.

[0044] In a network card cluster management method provided by an embodiment of the present invention, the network card device itself is used as the main executor of the management task for the network card cluster; when any network card device in the cluster receives a maintenance execution instruction sent from a central management device, it starts to obtain the status information of the network card devices adjacent to it; in the embodiment of the present invention, as long as there is a communication connection relationship between the network card devices, they can be called "adjacent network card devices" to each other, wherein the adjacent expression relationship does not require that there is an adjacent relationship in physical distance between the two network card devices, or that the two network card devices have a wired connection relationship; the adjacent refers to the relationship between network card devices that have data exchange capabilities at the virtual network logical level.

[0045] It is worth noting that, with respect to the selection principle of adjacent network card devices, in a feasible implementation, for a single network card device, a node with the smallest communication delay and the fastest response with itself can be selected as its adjacent network card device; the specific identity of the adjacent network card device can also be determined based on other selection principles, and the embodiment of the present invention does not impose any restrictions on this.

[0046] According to this adjacent connection logic, there are adjacent relationships as described above between multiple network card devices; at the system logic level, a certain number of network card devices can form a network card cluster network, and a single network card can become a "network card node" in the cluster network. The number of network card nodes with adjacent relationships can be arbitrary; management devices independent of the network card cluster network can be interconnected with any network card in the network card cluster network, and then obtain data from any device in the network through the network card node.

[0047] Specifically, refer to Figure 2 , Figure 2 Schematic diagram of a topological connection relationship of a network card cluster management provided by an embodiment of the present invention; Figure 2 As shown, there are at least three network card nodes in the network card cluster node network in the figure: smart network card node 1, smart network card node 2 and smart network card node 3, and the network card nodes are connected to each other; for smart network card node 1, smart network card node 2 and smart network card node 3 are both its adjacent network card nodes; similarly, this adjacent relationship also applies to smart network card node 2 and smart network card node 3; the management device where the manager is located is independent of the network card cluster network, and there is a two-way connection link with the entire network card cluster network. The management device can interact with any network card node in the network card cluster network, and rely on the adjacent connection relationship between the network card nodes to access all network card nodes / devices in the entire network card cluster network.

[0048] Reference Figure 3 , Figure 3 is a structural diagram of a centralized network card management method provided by an embodiment of the present invention; Figure 3 In the present invention, a network card network architecture is composed of multiple smart network cards. Each network card is connected to a switch and then managed by a manager / management device. Through point-to-point information access, each network card device is managed separately, such as conventional operation status query, firmware maintenance and upgrade, and reading network card work logs. The whole process is initiated by the manager. Therefore, as the scale of the network card network structure continues to expand, the operation pressure faced by the manager is also increasing. The embodiments of the present invention provide, for example, Figure 2 The decentralized network card management architecture shown can transfer the management and maintenance pressure to the network card cluster, which is shared by all network card devices, greatly reducing the operating pressure of the administrator; and as the scale of the network card cluster continues to increase, its maintenance efficiency will not have the problem of decreased management efficiency caused by the accumulated operating pressure of centralized administrators.

[0049] Step 102: Compare the first state information with the second state information to obtain a first comparison result.

[0050] When any network card device obtains its own first status information and the second status information of the adjacent network card device, the two status information will be compared to determine whether there is a difference between the status information of the two. In the embodiment of the present invention, the status information of the network card device under normal conditions includes: the working voltage of the network card device, the hardware temperature of the device, and the error information that the network card device may generate for the system in the running state.

[0051] Specifically, the current network card device executing the maintenance instruction matches and compares its own first status information with the acquired second status information of the adjacent network card device, and generates a comparison result, thereby determining whether there is a status information difference between the current network card device and its adjacent network card device.

[0052] Step 103, when it is determined according to the first comparison result that the current network card device or the adjacent network card device has a fault, a network card fault notification including the identity of the faulty network card device is sent to the management device, so that the management device can generate a maintenance log according to the identity.

[0053] In the generated comparison result, when there is a difference in the content of any one or more of the status information, it can be determined that there is a difference in status information between the current network card device and its adjacent network card device; at this time, it can be determined that at least one of the current network card device and the adjacent network card device has a network card failure.

[0054] Since in a status information comparison process, the current network card device is used as the main executor of information status acquisition and comparison, when it is determined that at least one of the current network card device and the adjacent network card device has a network card fault, the current network card device is also used as the step execution subject to send a network card fault notification to the management device; in this way, the developers can timely understand the identity information of the network card device with problems in the current network card cluster network through the management device, and can also record the system maintenance log based on the fault information.

[0055] Specifically, the current network card device sends a network card fault notification determined according to the status information comparison difference to the management device through the communication link between the network card cluster network and the management device, and the network card fault notification contains the identity information of the faulty network card device.

[0056] In summary, an embodiment of the present invention provides a network card cluster management method applied to any network card device in a network card cluster, comprising: in response to a maintenance execution instruction sent by a management device, obtaining first status information of a current network card device and second status information of an adjacent network card device, wherein the adjacent network card device is a network card device having a communication connection relationship with the current network card device; comparing the first status information with the second status information to obtain a first comparison result; when it is determined according to the first comparison result that the current network card device or the adjacent network card device has a fault, sending a network card fault notification including an identity identifier of the faulty network card device to the management device, so that the management device can generate a maintenance log according to the identity identifier; the present invention greatly reduces the work pressure on the original management device by transferring the fault detection work of the network card cluster to the cluster body for execution, and can also maintain a high management and maintenance efficiency when facing a network card cluster with a large number of network cards; it solves the problem that the network card management method in the prior art is inefficient and difficult to apply to management scenarios of a large number of network card devices.

[0057] Reference Figure 4 , Figure 4 This is a brief step implementation flow chart of a network card forwarding performance test method provided by an embodiment of the present invention. The step method shown is applied to a management device. The method includes:

[0058] Step 201, perform system initialization and establish a network card cluster consisting of network card devices.

[0059] Although the system's fault detection and maintenance pressure has been transferred to the entire network card cluster, it is still necessary to implement upper-level control operations on the network card cluster through management equipment; when the management and maintenance work begins, the management equipment first initializes the entire network card management system.

[0060] Specifically, it includes: obtaining the device identity information of all network card devices that can currently establish communication connections, as well as the connection link relationship between each network card device, establishing a network card cluster network through the device identity information of the network card device and the corresponding connection relationship, mapping a single network card device to a virtual network card node, and clarifying the connection relationship between each network card node.

[0061] Step 202: Send a maintenance execution instruction to the network card device.

[0062] After the system is initialized, management operations can be performed on the NIC cluster network; first, a maintenance execution instruction is sent to the NIC devices in the NIC cluster through the communication connection link. The sending object can be any NIC device in the NIC cluster, so that the NIC device can respond to the instruction and start management and maintenance operations, obtain status information of itself and adjacent NIC devices for comparison, and other operations.

[0063] It is worth noting that during the execution of the maintenance command, the NIC devices in the entire NIC cluster can execute the maintenance management actions synchronously, or they can perform them asynchronously in turn according to certain sequence rules; for example: for a 5-node NIC cluster with a virtual number AE, NIC device A first obtains the status information of itself and NIC device B. At this time, NIC device B is the adjacent NIC device of NIC device A; when NIC device A completes a management and maintenance action, NIC device B obtains the status information of NIC device C, and so on; finally, NIC device E uses NIC device A as its adjacent NIC device, that is, A→B→C→D→E→A, forming a closed detection relationship chain; in an optional implementation scheme, only NIC device A can execute, and NIC device BE can be polled and accessed in turn as its adjacent NIC devices.

[0064] Step 203, receiving a network card fault notification sent by the network card device, the network card fault notification including: an identity of the faulty network card device; the identity of the faulty network card device is: an identity of the faulty network card device determined by comparing the first status information of the network card device with the second status information of a network card device adjacent to the network card device.

[0065] After the network card devices in the network card cluster respond to the maintenance instruction, they will send a network card failure notification to the management device according to the network card failure that occurs, including: the identity of the failed network card device.

[0066] Step 204: Generate a management and maintenance log according to the identity identifier of the faulty network card device.

[0067] According to the network card failure notification including the identity of the faulty network card device received in step 203, a management and maintenance log of the generation system is recorded so that the management personnel can be aware of the network card devices with faulty problems. If a certain network card device fails frequently, it can be considered that there is a problem with the network card hardware, and the management personnel can randomly repair or replace the hardware equipment.

[0068] In summary, an embodiment of the present invention provides a network card cluster management method for a management device, comprising: initializing the management device system to establish a network card cluster composed of network card devices; sending a maintenance execution instruction to the network card device; receiving a network card fault notification sent by the network card device, the network card fault notification comprising: an identity of the faulty network card device; the identity of the faulty network card device is: an identity of the faulty network card device determined by a first comparison result after comparing the first state information of the network card device with the second state information of the network card device adjacent to the network card device; finally, a management and maintenance log is generated according to the identity of the faulty network card device; the present invention transfers the fault detection work of the network card cluster to the cluster body for execution, thereby greatly reducing the work pressure on the original management device, and can maintain a high management and maintenance efficiency when facing a network card cluster with a large number of network cards; and solves the problem that the network card management method in the prior art is inefficient and difficult to apply to management scenarios of a large number of network card devices.

[0069] Reference Figure 5 , Figure 5 This is an interactive flow chart of specific steps of a network card cluster management method provided by an embodiment of the present invention. The method includes:

[0070] Step 301, perform system initialization and establish a network card cluster consisting of network card devices.

[0071] This step refers to the above step 201 and will not be described again here.

[0072] Step 302: Send a maintenance execution instruction to the network card device.

[0073] This step refers to the above step 202 and will not be described again here.

[0074] Step 303, in response to the maintenance execution instruction sent by the management device, obtain the first status information of the current network card device and the second status information of the adjacent network card device, wherein the adjacent network card device is a network card device having a communication connection relationship with the current network card device.

[0075] This step refers to the above step 101 and will not be repeated here.

[0076] Optionally, the status information includes:

[0077] One or more of the operating voltage, operating temperature and system error information generated during operation of the network card device. The embodiment of the present invention does not limit the specific content of the status information.

[0078] Step 304: Compare the first state information with the second state information to obtain a first comparison result.

[0079] This step refers to the above step 102 and will not be described again here.

[0080] Optionally, step 304 further includes:

[0081] Sub-step 3041, when the first status information is the same as the second status information, determining that there is no fault in the current network card device or the adjacent network card device.

[0082] After comparing the first status information of the current network card device with the second status information of the adjacent network card device, if the status information of the two is exactly the same, such as: the working voltage and hardware temperature of the two network cards are at normal state values, and the difference fluctuates within a small range, and both network card devices have no system error information, then it can be considered that there is no difference in the status information of the two network cards.

[0083] In this case, it can be determined that neither the current network card device nor its adjacent network card devices have fault problems; in the embodiment of the present invention, it is believed that the network card status information of the network card devices in the same network card cluster in normal operation should be uniform.

[0084] Optionally, the sub-step 3041 further includes:

[0085] When it is determined that there is no fault in the current network card device or the adjacent network card device, the status information of the current network card device is re-acquired and compared with the status information of the adjacent network card device to obtain a first comparison result.

[0086] If, during a single status information comparison, it is determined that there is no difference in status information between the current network card device and the adjacent network card device, it indicates that there is no faulty network card at present; therefore, there is no need to perform subsequent maintenance management steps.

[0087] Instead, the next round of status information monitoring is performed again; specifically, as described in the specific embodiment in step 202, for a network card cluster network with 5 network card nodes, when no status information difference is detected between network card device A and network card device B, network card device A can obtain and compare the status information of network card device B in the next round; or, in the next round of status information comparison to be executed, network card device A can use network card device C as an adjacent node to obtain the status information of network card device C again. If no difference is found by comparing the status information of network card device C, network card device D can be selected for the next round of cyclic detection.

[0088] The management and maintenance of the network card cluster is a long-term sustainable dynamic operation. Even if no faulty network card device is found in one round of troubleshooting, the detection mechanism needs to continue to run to ensure that any fault problems that occur at any time during the operation of the network card cluster network can be detected in a timely manner, thereby reducing the continued occurrence of other problems caused by the fault.

[0089] Sub-step 3042: When the first status information is different from the second status information, determine that the current network card device or the adjacent network card device has a fault.

[0090] After comparing the first status information of the current network card device with the second status information of the adjacent network card device, if the status information of the two is different, such as: the difference between the working voltage and hardware temperature of the two network cards is too large, or the two network card devices have different system error information, then it can be considered that there is a difference in the status information of the two network cards.

[0091] In this case, it can be determined that at least one of the current network card device and its adjacent network card devices has a network card failure.

[0092] Optionally, the sub-step 3042 may further include:

[0093] Sub-step 30421, if the first status information is different from the second status information, sending a status information query request to other network card devices in the network card cluster except the adjacent network card device, so that other network card devices can respond to the status information query request and send their own status information to the current network card device.

[0094] After determining that at least one of the current network card device and its adjacent network card devices has a network card fault, it is necessary to further determine correct faulty network card information.

[0095] Specifically, the current network card device sends a status information query request to other network card devices in the cluster, thereby obtaining status information of other network card devices for information matching; after responding to this request, other network cards randomly feed back their own status information to the current network card device.

[0096] In the implementation of the present invention, it is considered that the failure of the network card device in the network card cluster is a low-probability event, so the corresponding network card status information should also only have differences in a relatively small number of network card devices.

[0097] Sub-step 30422: compare the first status information with status information of all other network card devices in the network card cluster to obtain a second comparison result.

[0098] After receiving the status information sent by other network cards, the current network card device compares its own first status information with the status information of all other network card devices in the network card cluster, and obtains a second comparison result.

[0099] The second comparison result includes multiple status information difference comparison records. For example, in a cluster of 5 network card devices, status information comparisons of network card device A with network card device C, network card device D, and network card device E are all recorded in the second comparison result.

[0100] Sub-step 30423: determining, according to the second comparison result, the identity of a faulty network card device in the current network card device or the adjacent network card device.

[0101] After obtaining the second comparison result, the proportion of differences between the status information of other network card devices in the second comparison result and the first status information of the current network card device can be used to determine whether the current network card device has a fault; that is, it is believed that the vast majority of network card devices in the network card cluster are working normally and have not failed. If the status information of the current network card device is consistent with the status information of most network card devices in the network card cluster, it can be considered that the current network card device has not failed; otherwise, it means that the current network card device may have a fault problem.

[0102] Optionally, sub-step 30423 may also include:

[0103] Sub-step 304231: if in the second comparison result, there are network card devices whose status information exceeds a first quantity threshold and is the same as the first status information, it is determined that the adjacent network card device is faulty, and the identity of the adjacent network card device is obtained.

[0104] If in the second comparison result, the status information of network card devices exceeding the first number threshold is the same as the first status information of the current network card device, it is determined that the current network card device is not faulty, so it is deduced that the adjacent network card device is faulty.

[0105] Regarding the determination of the first quantity threshold, in an optional embodiment, the first quantity threshold is set to half of the number of network card devices in the network card cluster; that is, if the status information of more than half of the network card devices is consistent with the first status information of the current network card device, it means that the current network card device has not failed; according to the needs of cluster management, the first quantity threshold can also be set to other values, which is not limited in the embodiment of the present invention.

[0106] After determining that the faulty network card device is an adjacent network card device, the current network card device obtains its network card identity so as to send its network card identity when subsequently sending a network card fault notification to the management device.

[0107] Sub-step 304232: if in the second comparison result, there are network card devices whose status information is different from the first status information and exceeds the first number threshold, it is determined that the current network card device has a fault, and the identity of the current network card device is obtained.

[0108] On the contrary, if in the second comparison result, the status information of the network card devices exceeding the first quantity threshold is different from the first status information of the current network card device, it is determined that the current network card device has a fault.

[0109] Step 305: When it is determined that the current network card device or an adjacent network card device has a fault according to the first comparison result, a network card fault notification including the identity of the faulty network card device is sent to the management device, so that the management device can generate a maintenance log according to the identity.

[0110] This step refers to the above step 103 and will not be repeated here.

[0111] Optionally, after sending the network card failure notification including the identity of the failed network card device to the management device, the method further includes:

[0112] Sub-step 3051, if it is determined that the adjacent network card device has a fault, a network card fault notification is sent to the adjacent network card device, and network card information data of the current network card device is sent to the adjacent network card, so that the adjacent network card device can perform data recovery.

[0113] After the faulty network card device is determined, maintenance operations are immediately performed on the faulty network card device; specifically, data is transmitted to the faulty network card device through the adjacent network card devices of the faulty network card device, and its operating state is readjusted to the correct operating parameters.

[0114] In the embodiment of the present invention, if it is determined that the adjacent network card device B has a fault, the current network card device A first sends a network card fault notification to the adjacent network card device B, and then sends the network card information data of the current network card device A to the network card device B for data recovery.

[0115] By restoring data through adjacent network cards, the operating status information of the failed network card can be made consistent with that of most network card devices in the network card cluster. For maintenance and management, there is no need to perform maintenance on the failed network card devices one by one through the central management device, which improves the reliability of the system.

[0116] Sub-step 3052, if it is determined that the current network card device has a fault, a data recovery request is sent to the adjacent network card device, and network card information data sent by the adjacent network card in response to the data recovery request is received, so that the current network card device can perform data recovery.

[0117] Correspondingly, if it is determined that the current network card device A has a fault, the current network card device A only sends a network card fault notification to the management device, and then sends a data recovery request to the network card device B, and receives the network card information data sent by the network card device B for network card device A to perform data recovery.

[0118] In order to more clearly understand the network card cluster management method provided by the present invention, this embodiment also provides a complete execution step logic flow chart for reference, and its main implementation method is concentrated on the network card device side; specifically, refer to Figure 6 , Figure 6 This is a logical diagram of specific steps of a network card cluster management method provided by an embodiment of the present invention. The contents of the steps shown can refer to the above-mentioned steps 301 to 305 and the related contents of their sub-steps.

[0119] Step 306, receiving a network card fault notification sent by the network card device, the network card fault notification including: an identity of the faulty network card device; the identity of the faulty network card device is: an identity of the faulty network card device determined by comparing the first status information of the network card device with the second status information of a network card device adjacent to the network card device.

[0120] This step refers to the above step 203 and will not be described again here.

[0121] Step 307: Generate a management and maintenance log according to the identity identifier of the faulty network card device.

[0122] This step refers to the above step 204 and will not be described again here.

[0123] In summary, an embodiment of the present invention provides a network card cluster management method, comprising: in response to a maintenance execution instruction sent by a management device, obtaining first status information of a current network card device and second status information of an adjacent network card device, wherein the adjacent network card device is a network card device having a communication connection relationship with the current network card device; comparing the first status information with the second status information to obtain a first comparison result; when it is determined according to the first comparison result that the current network card device or the adjacent network card device has a fault, sending a network card fault notification including an identity identifier of the faulty network card device to the management device, so that the management device can generate a maintenance log according to the identity identifier; the present invention transfers the fault detection work of the network card cluster to the cluster body for execution, thereby greatly reducing the work pressure on the original management device, and can maintain a high management and maintenance efficiency when facing a network card cluster with a large number of network cards; it solves the problem that the network card management method in the prior art is inefficient and difficult to apply to management scenarios of a large number of network card devices.

[0124] Reference Figure 7 , Figure 7 Schematic diagram of the functional modules of a network card cluster management device provided by an embodiment of the present invention, which is specifically applicable to network card devices; Figure 7 As shown, the network card cluster management device includes:

[0125] The status information acquisition module 401 is used to obtain the first status information of the current network card device and the second status information of the adjacent network card device in response to the maintenance execution instruction sent by the management device, wherein the adjacent network card device is a network card device having a communication connection relationship with the current network card device;

[0126] A state information comparison module 402, configured to compare the first state information with the second state information to obtain a first comparison result;

[0127] The fault information notification module 403 is used to send a network card fault notification including the identity of the faulty network card device to the management device when it is determined that the current network card device or the adjacent network card device has a fault based on the first comparison result, so that the management device can generate a maintenance log based on the identity.

[0128] Optionally, the network card cluster management device further includes:

[0129] A fault result judgment module is used to judge whether the current network card device or the adjacent network card device has a fault according to the first comparison result; when the first status information is the same as the second status information, determine that the current network card device or the adjacent network card device has no fault; when the first status information is different from the second status information, determine that the current network card device or the adjacent network card device has a fault.

[0130] Optionally, the fault result judgment module further includes:

[0131] a status information query request submodule, configured to send a status information query request to other network card devices in the network card cluster except the adjacent network card device when the first status information is different from the second status information, so that the other network card devices can respond to the status information query request and send their own status information to the current network card device;

[0132] A status information comparison submodule, used to compare the first status information with status information of all other network card devices in the network card cluster to obtain a second comparison result;

[0133] The faulty network card identification submodule is used to determine the identity of the faulty network card device in the current network card device or the adjacent network card device according to the second comparison result.

[0134] Optionally, the network card cluster management device further includes:

[0135] The maintenance instruction loop module is used to re-acquire the status information of the current network card device and compare it with the status information of the adjacent network card device to obtain a first comparison result when it is determined that the current network card device or the adjacent network card device does not have a fault.

[0136] Optionally, the network card cluster management device further includes:

[0137] A data recovery request module is used to send a data recovery request to an adjacent network card device of a faulty network card device, and receive network card information data for data recovery sent from the adjacent network card device; if it is determined that the adjacent network card device has a fault, send a network card fault notification to the adjacent network card device, and send the network card information data of the current network card device to the adjacent network card, so that the adjacent network card device can perform data recovery; if it is determined that the current network card device has a fault, send a data recovery request to the adjacent network card device, and receive the network card information data sent by the adjacent network card in response to the data recovery request, so that the current network card device can perform data recovery.

[0138] In summary, an embodiment of the present invention provides a network card cluster management device, which obtains first status information of a current network card device and second status information of an adjacent network card device by responding to a maintenance execution instruction sent by a management device, wherein the adjacent network card device is a network card device that has a communication connection relationship with the current network card device; compares the first status information with the second status information to obtain a first comparison result; when it is determined according to the first comparison result that the current network card device or the adjacent network card device has a fault, sends a network card fault notification including an identity identifier of the faulty network card device to the management device, so that the management device can generate a maintenance log according to the identity identifier; the present invention transfers the fault detection work of the network card cluster to the cluster body for execution, which greatly reduces the work pressure on the original management device, and can maintain a high management and maintenance efficiency when facing a network card cluster with a large number of network cards; it solves the problem that the network card management method in the prior art is inefficient and difficult to apply to management scenarios of a large number of network card devices.

[0139] Reference Figure 8 , Figure 8 Schematic diagram of the functional modules of a network card cluster management device provided by an embodiment of the present invention, which is specifically applicable to management equipment; Figure 8 As shown, the network card cluster management device includes:

[0140] The network card cluster building module 501 is used to initialize the system and build a network card cluster consisting of network card devices;

[0141] A maintenance instruction sending module 502 is used to send a maintenance execution instruction to the network card device;

[0142] The fault information receiving module 503 is used to receive the network card fault notification sent by the network card device, wherein the network card fault notification includes: the identity of the faulty network card device; the identity of the faulty network card device is: the identity of the faulty network card device determined by comparing the first state information of the network card device with the second state information of the network card device adjacent to the network card device according to the first comparison result;

[0143] The management log generating module 504 is used to generate a management maintenance log according to the identity identifier of the faulty network card device.

[0144] To summarize, a network card cluster management device provided by an embodiment of the present invention establishes a network card cluster network through system initialization, sends management and maintenance execution instructions to the network card devices in the network card cluster, then receives faulty network card information fed back from the network card devices, and generates a management log based on this; the present invention transfers the fault detection work of the network card cluster to the cluster body for execution, which greatly reduces the work pressure on the original management device, and can maintain a high management and maintenance efficiency when facing a network card cluster with a large number of network cards; it solves the problem that the network card management method in the prior art is inefficient and difficult to apply to management scenarios of a large number of network card devices.

[0145] Fig. 9 is a block diagram of an electronic device 600 according to an exemplary embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0146] Reference Fig. 9 , the electronic device 600 may include one or more of the following components: a processing component 602 , a memory 604 , a power component 606 , a multimedia component 608 , an audio component 610 , an input / output (I / O) interface 612 , a sensor component 614 , and a communication component 616 .

[0147] The processing component 602 generally controls the overall operation of the electronic device 600, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, the processing component 602 may include one or more modules to facilitate the interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate the interaction between the multimedia component 608 and the processing component 602.

[0148] The memory 604 is used to store various types of data to support the operation of the electronic device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phone book data, messages, pictures, multimedia, etc. The memory 604 can be implemented by any type of volatile or non-volatile storage 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.

[0149] The power supply component 606 provides power to the various components of the electronic device 600. The power supply component 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the electronic device 600.

[0150] The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and / or a rear camera. When the electronic device 600 is in an operating mode, such as a shooting mode or a multimedia mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0151] The audio component 610 is used to output and / or input audio signals. For example, the audio component 610 includes a microphone (MIC), and when the electronic device 600 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is used to receive an external audio signal. The received audio signal can be further stored in the memory 604 or sent via the communication component 616. In some embodiments, the audio component 610 also includes a speaker for outputting audio signals.

[0152] I / O interface 612 provides an interface between processing component 602 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0153] The sensor assembly 614 includes one or more sensors for providing various aspects of status assessment for the electronic device 600. For example, the sensor assembly 614 can detect the open / closed state of the electronic device 600, the relative positioning of the components, such as the display and keypad of the electronic device 600, and the sensor assembly 614 can also detect the position change of the electronic device 600 or a component of the electronic device 600, the presence or absence of contact between the user and the electronic device 600, the orientation or acceleration / deceleration of the electronic device 600, and the temperature change of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0154] The communication component 616 is used to facilitate wired or wireless communication between the electronic device 600 and other devices. The electronic device 600 can access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0155] In an exemplary embodiment, the electronic device 600 may be implemented by 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 implement a network card cluster management method provided in an embodiment of the present invention.

[0156] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 604 including instructions, and the instructions can be executed by a processor 620 of an electronic device 600 to perform the above method. For example, the non-transitory storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0157] Fig.10is a block diagram of an electronic device 700 according to an exemplary embodiment. For example, the electronic device 700 may be provided as a server. Fig.10 The electronic device 700 includes a processing component 722, which further includes one or more processors, and a memory resource represented by a memory 732, for storing instructions that can be executed by the processing component 722, such as an application. The application stored in the memory 732 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 722 is configured to execute instructions to perform a network card cluster management method provided by an embodiment of the present invention.

[0158] The electronic device 700 may also include a power supply component 726 configured to perform power management of the electronic device 700, a wired or wireless network interface 750 configured to connect the electronic device 700 to a network, and an input / output (I / O) interface 758. The electronic device 700 may operate based on an operating system stored in the memory 732, such as Windows Server™, Mac OS X™, Unix™, Linux™, FreeBSD™ or the like.

[0159] Those skilled in the art will readily appreciate other embodiments of the invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present invention are indicated by the following claims.

[0160] It should be understood that the present invention is not limited to the exact construction that has been described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present invention is limited only by the appended claims.

Claims

1. A network card cluster management method, characterized in that: Applied to any network card device in a network card cluster, the method includes: In response to the maintenance execution instruction sent by the management device, obtaining first status information of the current network card device and second status information of an adjacent network card device, wherein the adjacent network card device is a network card device having a communication connection relationship with the current network card device; Compare the first state information with the second state information to obtain a first comparison result; When it is determined according to the first comparison result that the current network card device or the adjacent network card device has a fault, a network card fault notification including an identity identifier of the faulty network card device is sent to the management device, so that the management device generates a maintenance log according to the identity identifier; When the first state information is different from the second state information, determining that the current network card device or the adjacent network card device has a fault; When the first state information is different from the second state information, determining that the current network card device or the adjacent network card device has a fault includes: If the first status information is different from the second status information, sending a status information query request to other network card devices in the network card cluster except the adjacent network card device, so that the other network card devices can respond to the status information query request, and sending their own status information to the current network card device; Compare the first status information with status information of all other network card devices in the network card cluster to obtain a second comparison result; Determining, according to the second comparison result, an identity of a faulty network card device among the current network card device or the adjacent network card devices; The determining, according to the second comparison result, an identity of a faulty network card device in the current network card device or the adjacent network card devices includes: If, in the second comparison result, there are network card devices whose status information exceeds a first quantity threshold and is the same as the first status information, it is determined that the adjacent network card device is faulty, and the identity of the adjacent network card device is obtained; If in the second comparison result, there are network card devices whose status information is different from the first status information and exceeds the first number threshold, it is determined that the current network card device has a fault, and the identity of the current network card device is obtained.

2. The method according to claim 1, characterized in that The method further comprises: When the first status information is the same as the second status information, it is determined that the current network card device or the adjacent network card device has no fault.

3. The method according to claim 2, characterized in that When it is determined that the current network card device or the adjacent network card device does not have a fault, the method includes: The current network card device status information is reacquired and compared with the adjacent network card device status information to obtain a first comparison result.

4. The method according to claim 1, characterized in that: The method further comprises: If it is determined that the adjacent network card device has a fault, a network card fault notification is sent to the adjacent network card device, and network card information data of the current network card device is sent to the adjacent network card device, so that the adjacent network card device can perform data recovery; If it is determined that the current network card device has a fault, a data recovery request is sent to the adjacent network card device, and network card information data sent by the adjacent network card device in response to the data recovery request is received, so that the current network card device can perform data recovery.

5. The method according to claim 1, characterized in that The status information includes: One or more of the network card device's operating voltage, operating temperature, and system error information generated during operation.

6. A network card cluster management method, characterized in that: Applied to managing equipment, the method comprises: Initialize the system and establish a network card cluster consisting of network card devices; Sending a maintenance execution instruction to the network card device; receiving a network card fault notification sent by the network card device, wherein the network card fault notification includes: an identity of the faulty network card device; the identity of the faulty network card device is: the identity of the faulty network card device is determined by obtaining a first comparison result after comparing first state information of the network card device with second state information of a network card device adjacent to the network card device according to the first comparison result; Generate a management and maintenance log according to the identity of the faulty network card device; When the first state information is different from the second state information, determining that a current network card device or the adjacent network card device has a fault; When the first state information is different from the second state information, determining that the current network card device or the adjacent network card device has a fault includes: If the first status information is different from the second status information, sending a status information query request to other network card devices in the network card cluster except the adjacent network card device, so that the other network card devices can respond to the status information query request, and sending their own status information to the current network card device; Compare the first status information with status information of all other network card devices in the network card cluster to obtain a second comparison result; Determining, according to the second comparison result, an identity of a faulty network card device among the current network card device or the adjacent network card devices; The determining, according to the second comparison result, an identity of a faulty network card device in the current network card device or the adjacent network card devices includes: If, in the second comparison result, there are network card devices whose status information exceeds a first quantity threshold and is the same as the first status information, it is determined that the adjacent network card device is faulty, and the identity of the adjacent network card device is obtained; If in the second comparison result, there are network card devices whose status information is different from the first status information and exceeds the first number threshold, it is determined that the current network card device has a fault, and the identity of the current network card device is obtained.

7. A network card cluster management device, characterized in that: Applicable to any network card device in a network card cluster, the device comprises: A status information acquisition module, configured to acquire, in response to a maintenance execution instruction sent by a management device, first status information of a current network card device and second status information of an adjacent network card device, wherein the adjacent network card device is a network card device having a communication connection relationship with the current network card device; A state information comparison module, used for comparing the first state information with the second state information to obtain a first comparison result; a fault information notification module, configured to send a network card fault notification including an identity of the faulty network card device to the management device when it is determined that the current network card device or an adjacent network card device has a fault according to the first comparison result, so that the management device can generate a maintenance log according to the identity; When the first state information is different from the second state information, determining that the current network card device or the adjacent network card device has a fault; When the first state information is different from the second state information, determining that the current network card device or the adjacent network card device has a fault includes: If the first status information is different from the second status information, sending a status information query request to other network card devices in the network card cluster except the adjacent network card device, so that the other network card devices can respond to the status information query request, and sending their own status information to the current network card device; Compare the first status information with status information of all other network card devices in the network card cluster to obtain a second comparison result; Determining, according to the second comparison result, an identity of a faulty network card device among the current network card device or the adjacent network card devices; The determining, according to the second comparison result, an identity of a faulty network card device in the current network card device or the adjacent network card devices includes: If, in the second comparison result, there are network card devices whose status information exceeds a first quantity threshold and is the same as the first status information, it is determined that the adjacent network card device is faulty, and the identity of the adjacent network card device is obtained; If in the second comparison result, there are network card devices whose status information is different from the first status information and exceeds the first number threshold, it is determined that the current network card device has a fault, and the identity of the current network card device is obtained.

8. A network card cluster management device, characterized in that: Applied to management equipment, the device comprises: A network card cluster building module is used to initialize the system and build a network card cluster consisting of network card devices; A maintenance instruction sending module, used for sending a maintenance execution instruction to the network card device; a fault information receiving module, configured to receive a network card fault notification sent by the network card device, wherein the network card fault notification includes: an identity of the faulty network card device; the identity of the faulty network card device is: the identity of the faulty network card device determined by a first comparison result obtained by comparing the first state information of the network card device with the second state information of a network card device adjacent to the network card device; A management log generation module, used to generate a management maintenance log according to the identity identifier of the faulty network card device; When the first state information is different from the second state information, determining that a current network card device or the adjacent network card device has a fault; When the first state information is different from the second state information, determining that the current network card device or the adjacent network card device has a fault includes: If the first status information is different from the second status information, sending a status information query request to other network card devices in the network card cluster except the adjacent network card device, so that the other network card devices can respond to the status information query request, and sending their own status information to the current network card device; Compare the first status information with status information of all other network card devices in the network card cluster to obtain a second comparison result; Determining, according to the second comparison result, an identity of a faulty network card device among the current network card device or the adjacent network card devices; The determining, according to the second comparison result, an identity of a faulty network card device in the current network card device or the adjacent network card devices includes: If, in the second comparison result, there are network card devices whose status information exceeds a first quantity threshold and is the same as the first status information, it is determined that the adjacent network card device is faulty, and the identity of the adjacent network card device is obtained; If in the second comparison result, there are network card devices whose status information is different from the first status information and exceeds the first number threshold, it is determined that the current network card device has a fault, and the identity of the current network card device is obtained.

9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the method according to any one of claims 1 to 6.

10. A readable storage medium, characterized in that: When the instructions in the readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to perform the method as claimed in any one of claims 1 to 6.