Working mode switching system, method, device, equipment, medium and product

By setting up adapter cards and monitors in multi-node servers, the connection relationship between network cards and nodes is automatically adjusted, solving the problem that traditional multi-node servers cannot automatically switch network card working modes, thus improving the server's working efficiency and reliability.

CN121785986APending Publication Date: 2026-04-03XIAMEN YUANCHOU INTELLIGENT COMPUTING TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-30
Publication Date
2026-04-03

AI Technical Summary

Technical Problem

Traditional multi-node servers cannot automatically switch network card working modes, requiring manual operation, which increases the complexity of production and data center operation and maintenance.

Method used

A switching card is set up between the network card and the node, which includes multiple downlink connectors, uplink connectors, mode switching components and a monitor. The monitor obtains the network card status information, and the controller automatically adjusts the connection relationship according to business needs and routing information to realize the switching of working modes.

Benefits of technology

It enables automated switching of network card operating modes, reduces manual operation, and improves server efficiency and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121785986A_ABST
    Figure CN121785986A_ABST
Patent Text Reader

Abstract

The invention discloses a working mode switching system, method, device, equipment, medium and product, and relates to the technical field of multi-node servers, an adapter card is arranged between network cards and nodes, a plurality of network cards are connected with downlink connectors of the adapter card, and a plurality of nodes are connected with uplink connectors of the adapter card. The mode switching component in the adapter card can adjust the connection relation between the plurality of downlink connectors and the plurality of uplink connectors. The network card state information records a topological relation between a network card and a node, the routing information records a connection relation between a plurality of uplink connectors and a plurality of downlink connectors, and the controller can determine a routing switching mode according to the service demand change information, the network card state information and the routing information; and the mode switching component adjusts the connection relationship between each downlink connector and each uplink connector according to a route switching mode, so that automatic switching of different working modes of the network card can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of multi-node server technology, and in particular to a working mode switching system, method, apparatus, device, medium and product. Background Technology

[0002] With the development of server processor technology in recent years, server architecture has also changed, with multi-node servers becoming increasingly common. A multi-node server is a server containing multiple smallest computer units, each of which can be considered a node. These smallest computer units share the server's peripherals, such as power supply, cooling, storage, and network resources, forming a complete server.

[0003] To maximize performance, a single network interface card (NIC) can be connected to only one node (single-host mode); or to improve utilization and reliability, a single NIC can be connected to two or more nodes (multi-host mode). Each node has one or more Central Processing Units (CPUs), and each CPU has multiple sets of high-speed serial computer expansion buses (Peripheral Component Interconnect Express, PCIe) to connect the server to peripheral devices that support the PCIe protocol, such as NICs and hard drives.

[0004] Traditional multi-node servers generally do not support multi-host mode between smart NIC nodes, or only support multi-host mode for two CPUs within the same node. Some multi-node servers can support multi-host mode between nodes, but when the operating mode needs to be switched to single-host mode, it is usually necessary to disconnect the PCIe cable connected to the smart NIC from one node and connect it to another node, which requires manual operation and increases the complexity of production and data center operation and maintenance.

[0005] It is evident that how to achieve automated switching between different working modes is a problem that needs to be solved by those skilled in the art. Summary of the Invention

[0006] This application provides a working mode switching system, method, apparatus, device, medium, and product to at least solve the problem of the inability to automatically switch the working mode of a network card in related technologies.

[0007] This application provides a working mode switching system, including multiple nodes, an adapter card, and multiple network interface cards (NICs); wherein, the adapter card includes multiple downlink connectors for connecting to the NICs, multiple uplink connectors for connecting to the nodes, a mode switching component, and a monitor;

[0008] The monitor is connected to the node's controller and is used to transmit the acquired network interface card (NIC) status information to the controller; wherein, the NIC status information includes the NIC topology among the multiple NICs and the multiple nodes;

[0009] The controller is connected to the mode switching unit and is used to receive network card status information transmitted by the monitor; obtain routing information from the mode switching unit; wherein, the routing information includes the connection relationship between each downlink connector and each uplink connector; determine the routing switching mode based on service requirement change information, network card status information and routing information; and transmit a switching command containing the routing switching mode to the mode switching unit.

[0010] The mode switching component is used to adjust the connection relationship between each downlink connector and each uplink connector according to the routing switching method contained in the switching command when a switching command is received from the controller, so as to complete the switching of the working mode.

[0011] This application also provides a method for switching working modes, including:

[0012] The system receives network interface card (NIC) status information transmitted by a monitor; wherein the monitor is an adapter card; the adapter card also includes multiple downlink connectors for connecting to multiple NICs, multiple uplink connectors for connecting to multiple nodes, and a mode switching component; wherein the NIC status information includes the NIC topology between the multiple NICs and the multiple nodes;

[0013] Obtain routing information for the mode switching component; wherein, the routing information includes the connection relationship between each of the downlink connectors and each of the uplink connectors;

[0014] Based on the changes in business requirements, network card status information, and routing information, determine the routing switching method;

[0015] The mode switching component transmits a switching command containing the routing switching method, so that the mode switching component can adjust the connection relationship between each downlink connector and each uplink connector according to the routing switching method to complete the switching of the working mode.

[0016] This application also provides a working mode switching device, including a receiving unit, an acquiring unit, a determining unit, and a switching unit;

[0017] A receiving unit is used to receive network interface card (NIC) status information transmitted by a monitor; wherein the monitor is an adapter card; the adapter card also includes multiple downlink connectors for connecting to multiple NICs, multiple uplink connectors for connecting to multiple nodes, and a mode switching component; wherein the NIC status information includes the NIC topology between the multiple NICs and the multiple nodes;

[0018] An acquisition unit is used to acquire routing information of the mode switching component; wherein, the routing information includes the connection relationship between each of the downlink connectors and each of the uplink connectors;

[0019] The determination unit is used to determine the routing switching method based on business requirement change information, network card status information, and routing information;

[0020] The switching unit is used to transmit a switching command containing the routing switching method to the mode switching component, so that the mode switching component can adjust the connection relationship between each downlink connector and each uplink connector according to the routing switching method to complete the switching of the working mode.

[0021] This application also provides an electronic device, including: a memory for storing a computer program; and a processor for implementing the steps of any of the above-described operating mode switching methods when executing the computer program.

[0022] This application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, it implements the steps of any of the above-described working mode switching methods.

[0023] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of any of the above-described working mode switching methods.

[0024] This application establishes a switching card between multiple network interface cards (NICs) and multiple nodes. The switching card includes multiple downlink connectors for connecting to the NICs, multiple uplink connectors for connecting to the nodes, a mode switching component, and a monitor. The monitor connects to the node's controller and transmits the acquired NIC status information to the controller. Based on the NIC status information, it can be determined whether the NIC supports mode switching. The controller connects to the mode switching component and receives the NIC status information transmitted by the monitor; it also obtains the routing information from the mode switching component. The NIC status information records the topology relationship between the NIC and the node, and the routing information records the connection relationships between the multiple uplink connectors and multiple downlink connectors. Therefore, the controller can determine the routing switching method based on service requirement changes, NIC status information, and routing information; and transmit a switching command containing the routing switching method to the mode switching component. Upon receiving the switching command from the controller, the mode switching component adjusts the connection relationships between each downlink connector and each uplink connector according to the routing switching method contained in the switching command to complete the mode switching. The hardware architecture and software control method provided in this application can effectively support the automated switching of multiple operating modes of current NICs. Compared to traditional solutions, this application does not require on-site network card topology modifications by factory or data center maintenance personnel. Based on this hardware architecture, this application can switch network card working modes through software operations to meet business needs and improve server efficiency and reliability. Attached Figure Description

[0025] To more clearly illustrate the embodiments of this application, the accompanying drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0026] Figure 1 This is a schematic diagram of the traditional single-host mode of the network card;

[0027] Figure 2 This is a schematic diagram of the traditional multi-host mode;

[0028] Figure 3 This is a schematic diagram of the structure of a working mode switching system provided in an embodiment of this application;

[0029] Figure 4 An implementation logic diagram of a working mode switching system provided in this application embodiment;

[0030] Figure 5 This application provides a schematic diagram illustrating the connection relationship between two network interface cards (NICs) and two nodes in an embodiment.

[0031] Figure 6A schematic diagram illustrating the connection relationship between four network interface cards (NICs) and four nodes is provided in an embodiment of this application.

[0032] Figure 7 A flowchart illustrating a working mode switching method provided in this application embodiment;

[0033] Figure 8 This is a schematic diagram of a working mode switching device provided in an embodiment of this application. Detailed Implementation

[0034] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the protection scope of this application.

[0035] It should be noted that, in the description of this application, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. The terms "first," "second," etc., in this application are used to distinguish similar objects and are not used to describe a specific order or sequence.

[0036] Currently, network interface cards (NICs) have two operating modes: single-host mode, where one NIC is used by a single node, and multi-host mode, where one NIC can be used by multiple nodes. Figure 1 This is a schematic diagram of the traditional single-host mode of the network card. Figure 1 The example shown is a chassis containing two nodes, with one CPU and one network card in each node. Each CPU has multiple x16 PCIe buses to connect the peripheral devices supported by that node; x16 refers to the 16 data transfer channels it has. Figure 1 In this system, each node connects to a network interface card (NIC) slot via a set of x16 PCIe buses, and each NIC for each node operates independently. Each node exclusively uses the bandwidth resources of its connected NIC; node 1 exclusively uses NIC 1, node 2 exclusively uses NIC 2, and so on. In single-host mode, each node has its own dedicated NIC, resulting in the best performance and relative independence between nodes.

[0037] Figure 2 This is a schematic diagram of a traditional multi-host mode. Figure 2This example uses a chassis containing two nodes. The network interface card (NIC) typically uses an x16 PCIe bus. When connecting the NIC to a node, this entire x16 PCIe bus can be used, or it can be split into two x8 PCIe buses. The x16 PCIe bus can be called a PCIe x16 cable, and the x8 PCIe bus a PCIe x8 cable. NIC 1 connects to port 1 of node 1 via one x8 PCIe bus, and the other x8 PCIe bus connects to port 1 of node 2. Similarly, NIC 2 also connects to port 2 of node 1 via one x8 PCIe bus, and the other x8 PCIe bus connects to port 2 of node 2, thus connecting one NIC to two nodes. Multi-host mode offers high flexibility because the two nodes share a single NIC. If one node is under light load and the other under heavy load, the heavily loaded node can obtain more resources from the NIC, resulting in higher NIC utilization. Furthermore, this model offers greater redundancy. Even if one network card fails, the two nodes still have another network card to continue operating, ensuring that neither node is without a usable network card. Similarly, if one node fails, the network card can be used by the other node, thus improving the overall reliability of the server.

[0038] Network interface cards (NICs) have two distinct operating modes, each with its own characteristics. Users can choose the appropriate NIC operating mode based on their business needs. Because user business scenarios are diverse and frequently change, switching the operating mode of a NIC within a server is a common requirement.

[0039] However, most traditional multi-node servers do not support the multi-host mode of smart network interface cards (NICs) between nodes. For example... Figure 1 In the server architecture shown, the PCIe signals on the PCIe slot are connected to the central processing unit (CPU) via a printed circuit board (PCB). Once the network card's gold fingers are inserted into this slot, the PCIe link from the network card to the CPU is fixed and cannot be connected to the PCIe bus of another node's CPU. This architecture physically does not support a single network card connecting two nodes.

[0040] like Figure 2The server architecture shown has the CPU's PCIe bus on each node running from the PCB to the PCIe port, and then via cable to the expansion card (Riser). The network card is inserted into the PCIe slot of the expansion card. This architecture allows for switching of operating modes by modifying the cables. In single-host mode, network card 1 connects to both port 1 and port 2 of node 1 via the expansion card, and network card 2 connects to both port 1 and port 2 of node 2 via the expansion card. In multi-host mode, network card 1 connects to both port 1 of node 1 and port 1 of node 2 via the expansion card, and network card 1 connects to both port 2 of node 1 and port 2 of node 2 via the expansion card. However, this switching requires manually disassembling the server to modify the physical topology of the network cards, increasing the complexity of production and data center maintenance, and potentially damaging the server.

[0041] Therefore, this application provides a working mode switching system, method, apparatus, device, medium, and product. By setting up an adapter card between network interface cards (NICs) and nodes, multiple NICs are connected to the downlink connectors of the adapter card, and multiple nodes are connected to the uplink connectors of the adapter card. The mode switching component inside the adapter card can control the connection relationships between the multiple downlink and uplink connectors. When a NIC working mode switch is required, the connection relationships between the multiple downlink and uplink connectors are adjusted by the mode switching component, thus achieving automated working mode switching. The entire process eliminates the need for manual cable plugging and unplugging, improving server efficiency and reliability.

[0042] To enable those skilled in the art to better understand the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0043] Figure 3 This is a schematic diagram of a working mode switching system provided in an embodiment of this application. The working mode switching system includes multiple nodes 10, a switch card 11, and multiple network cards 12. The switch card 11 includes multiple downlink connectors 111 for connecting to the network cards 12, multiple uplink connectors 112 for connecting to the nodes 10, a mode switching component 113, and a monitor 114.

[0044] Figure 3 The example uses two nodes and two network interface cards (NICs). In practical applications, the number of nodes 10 and NICs 12 can be increased, and no limitation is made here. For ease of distinction, the two nodes can be referred to as the first node and the second node, and the two NICs can be referred to as the first NIC and the second NIC.

[0045] In this embodiment, the network interface card 12 may include a network interface card body, a riser board, and a structural bracket. The riser board has a standard PCIe x16 slot for installing the network interface card. The other end of the riser board is connected to the adapter card 11 via a cable. The structural bracket is used to fix the network interface card body and the riser board to the chassis. In this way, the PCIe link of the network interface card body is connected to the mode switching component 113 of the adapter card 11 via the riser board and the cable, and finally connected to the PCIe port of the CPU on the node 10.

[0046] In this embodiment, node 10 and adapter card 11 can be directly connected via connector or via cable; the Riser board of network card 12 can be connected to adapter card 11 via cable or can be directly designed on adapter card 11.

[0047] By connecting the network card 12 to the adapter card 11 via a cable, and connecting the adapter card 11 to the node 10 via a cable, the network card 12, the adapter card 11, and the node 10 can be completely decoupled, thus allowing the adapter card 11 to be flexibly used on other machines.

[0048] In the following description, cable connection will be used as an example. For example, multiple downlink connectors 111 can be connected to the corresponding network card 12 through cables, and multiple uplink connectors 112 can be connected to the corresponding node 10 through cables, so as to realize the pluggable and pluggable adapter card 11 between multiple network cards 12 and multiple nodes 10.

[0049] The monitor 114 is connected to the controller of node 10 and is used to transmit the acquired network interface card (NIC) status information to the controller; the NIC status information includes the NIC topology between multiple NICs 12 and multiple nodes 10.

[0050] The network card status information can be obtained by the monitor 114 by monitoring the network card 12 connected to the adapter card 11.

[0051] To ensure that network interface card 12 can support smooth switching of working modes, the network interface card status information can include not only the network interface card topology between multiple network interface cards 12 and multiple nodes 10, but also the network interface card's presence status, working status, and working mode.

[0052] In practical applications, the monitor 114 can obtain the presence status, working status, and working mode of each network card 12 connected to each downlink connector 111; determine the network card topology based on routing information, the connection relationship between each downlink connector 111 and each network card 12, and the connection relationship between each uplink connector 112 and each node 10; and transmit the presence status, working status, working mode, and network card topology of each network card 12 to the controller.

[0053] The presence status is used to characterize whether the downlink connector 111 is actually connected to a network card.

[0054] The controller can determine the number of network cards currently on the server based on their presence status.

[0055] The working status is used to characterize whether the network card 12 is working properly. The working status can include normal status and abnormal status.

[0056] The operating modes can include single-host mode and multi-host mode.

[0057] In this embodiment of the application, the monitor obtains network card status information from multiple dimensions. When performing network card working mode switching, the controller can first verify whether the network card supports working mode switching based on the network card status information, thereby improving the reliability of system operation and maintenance.

[0058] The controller can be a Board Management Controller (BMC).

[0059] The controller is connected to the mode switching unit 113 and is used to receive network card status information transmitted by the monitor 114; obtain routing information from the mode switching unit 113; determine the routing switching method based on the service requirement change information, network card status information and routing information; and transmit a switching command containing the routing switching method to the mode switching unit 113.

[0060] To support the switching of network interface card (NIC) working modes, each NIC 12 can be connected to multiple downlink connectors 111, and each node 10 can be connected to multiple uplink connectors 112.

[0061] The routing information records the connection relationships between each downlink connector 111 and each uplink connector 112, and this routing information can be stored in the register of the mode switching unit 113. The controller can read the register of the mode switching unit 113 via the serial bus to obtain the routing information.

[0062] The business requirement change information includes which network interface cards (NICs) have their operating modes adjusted and the new operating modes. For example, the business requirement change information may include adjusting the first and second NICs to multi-host mode.

[0063] Based on the system's current network interface card (NIC) status and routing information, the controller can determine the connection relationships between multiple nodes 10, multiple NICs 12, multiple downlink connectors 111, and multiple uplink connectors 112. When a working mode switch is required, combined with information on changes in business requirements, it can determine which downlink connectors 111 and which uplink connectors 112 need to be adjusted.

[0064] The routing switching method records which downlink connectors 111 and which uplink connectors 112 need to be adjusted.

[0065] The mode switching component 113 is used to adjust the connection relationship between each downlink connector 111 and each uplink connector 112 according to the routing switching method contained in the switching command when a switching command is received from the controller, so as to complete the switching of the working mode.

[0066] Figure 4 This is an implementation logic diagram of a working mode switching system provided in an embodiment of this application. Figure 4 Taking a network with n network cards and n nodes as an example, Figure 4 In a multi-node server, n network interface cards (NICs) are represented by NIC 1 through NIC n, and n nodes are represented by Node 1 through Node n. Each node in the multi-node server has its corresponding controller. In practical applications, one controller can be selected to determine the routing switching method. The monitor, as the sensing unit of the entire system, is used to sense the current NIC status information. When the NIC status information changes, it can obtain the changed information and transmit this information to the controller. The controller can also read routing information from the registers of the mode switching component. After receiving service requirement change information, the controller can use the NIC status information and routing information to determine the routing switching method. By issuing a switching command to the mode switching component, the mode switching component adjusts the connection relationship between each downlink connector and each uplink connector, thereby completing the switching of the working mode. Figure 4 The main purpose is to demonstrate the workflow of switching between working modes; the connections between the various components are not shown. Figure 4 It is presented in the middle.

[0067] The implementation logic described above can meet the needs of multi-node servers for different working modes of smart network cards. When adjusting the working mode, manual operation is avoided, reducing the workload of server reconfiguration.

[0068] As can be seen from the above technical solution, a switching card is set up between multiple network interface cards (NICs) and multiple nodes. The switching card includes multiple downlink connectors for connecting to the NICs, multiple uplink connectors for connecting to the nodes, a mode switching component, and a monitor. The monitor is connected to the node's controller and is used to transmit the acquired NIC status information to the controller. Based on the NIC status information, it can be identified whether the NIC supports switching of working modes. The controller is connected to the mode switching component and is used to receive the NIC status information transmitted by the monitor and obtain the routing information of the mode switching component. The NIC status information records the topology relationship between the NIC and the node, and the routing information records the connection relationship between multiple uplink connectors and multiple downlink connectors. Therefore, the controller can determine the routing switching method based on the service requirement change information, NIC status information, and routing information; and transmit a switching command containing the routing switching method to the mode switching component. Upon receiving the switching command transmitted by the controller, the mode switching component adjusts the connection relationship between each downlink connector and each uplink connector according to the routing switching method contained in the switching command to complete the switching of working modes. Based on the hardware architecture and software control method provided in this application, the automated switching of multiple working modes of current NICs can be well supported. Compared to traditional solutions, this application does not require on-site network card topology modifications by factory or data center maintenance personnel. Based on this hardware architecture, this application can switch network card working modes through software operations to meet business needs and improve server efficiency and reliability.

[0069] To facilitate a clear understanding of the status of network interface cards (NICs) and the connection relationships between NICs and nodes, the controller can construct a topology mapping table based on routing information, NIC topology, and the presence, working status, and working mode of each NIC 12.

[0070] Table 1 is the topology mapping table.

[0071]

[0072] Table 1 uses two network interface cards (NICs) and two nodes as an example. The two NICs are referred to as the first NIC and the second NIC; the two nodes are referred to as the first node and the second node. When there are two NICs 12 and two nodes 10, the adapter card 11 may include four downlink connectors 111, four uplink connectors 112, and a mode switching component 113. Each pair of downlink connectors 111 connects to one NIC 12, and each pair of uplink connectors 112 connects to one node 10. The four downlink connectors 111 are connected to the four uplink connectors 112 through the mode switching component 113.

[0073] To facilitate the differentiation of the different downlink connectors 111, the four downlink connectors 111 can be referred to as the first downlink connector, the second downlink connector, the third downlink connector, and the fourth downlink connector, respectively.

[0074] To facilitate the differentiation of the different uplink connectors 112, the four uplink connectors 112 can be referred to as the first uplink connector, the second uplink connector, the third uplink connector, and the fourth uplink connector, respectively.

[0075] Each downlink connector 111 is connected to one downlink port of the mode switching component 113. The four downlink ports corresponding to the four downlink connectors 111 can be referred to as the first downlink port, the second downlink port, the third downlink port, and the fourth downlink port, respectively. 1A can be used to represent the first downlink port, 2A to represent the second downlink port, 3A to represent the third downlink port, and 4A to represent the fourth downlink port. Similarly, each uplink connector 112 is connected to one uplink port of the mode switching component 113. The four uplink ports corresponding to the four uplink connectors 112 can be referred to as the first uplink port, the second uplink port, the third uplink port, and the fourth uplink port, respectively. 1B can be used to represent the first uplink port, 2B to represent the second uplink port, 3B to represent the third uplink port, and 4B to represent the fourth uplink port.

[0076] Taking single-host mode as an example, the routing information can record connections between 1A and 1B, 2A and 2B, 3A and 3B, and 4A and 4B.

[0077] The first network interface card (NIC) is connected to both the first and second downlink connectors. The first NIC can transmit the lower octet (Pciex8_L) to 1A via the first downlink connector. 1B is connected to the first uplink connector, which is connected to the first port (PE0_Pcie[0, 7]) of the first node. Since the routing information records that 1A and 1B are connected, the NIC topology can be determined as follows: the lower octet of the first NIC is connected to the first port of the first node, i.e., Pciex8_L => first node_PE0_Pcie[0, 7]. The first NIC can transmit the higher octet (Pciex8_H) to 2A via the second downlink connector. 2B is connected to the second uplink connector, which is connected to the second port (PE0_Pcie[8, 15]) of the first node. Since the routing information records that 2A and 2B are connected, the network card topology can be determined: the high eight bits of the first network card are connected to the second port of the first node, i.e., Pciex8_H=>first node_PE0_Pcie[8,15].

[0078] By constructing a topology mapping table, the controller can clearly and intuitively know which PCIe link of each network card is connected to which node CPU's PCIe port.

[0079] Regarding the switching of working modes, the controller can, upon receiving information about changes in service requirements, determine the first network interface card (NIC) corresponding to the change. If the NIC's status information meets the conditions for switching working modes, the controller determines the first node connected to the first NIC based on the NIC topology. An unloading notification is sent to the first node to unload the first NIC. A power-down operation is performed on the first NIC. Based on the working mode corresponding to the service requirement change information, the NIC topology, and routing information, the routing switching method is determined. A switching command containing the routing switching method is transmitted to the mode switching component 113, a notification message for the insertion of the first NIC is sent to the second node included in the routing switching method, and a power-on operation is performed on the first NIC to allow the first and second nodes to initialize the first NIC.

[0080] Regarding the implementation method for determining whether the network interface card (NIC) status information meets the working mode switching conditions, the controller can determine whether the first NIC is present. If the first NIC is present, it determines whether the first NIC's working status is normal. If the first NIC's working status is normal, it determines whether the first NIC's working mode differs from the working mode corresponding to the service requirement change information. If the first NIC's working mode differs from the working mode corresponding to the service requirement change information, it can be determined that the first NIC's NIC status information meets the working mode switching conditions.

[0081] If the first network card is in an abnormal working state, the controller can transmit an abnormal prompt message carrying the network card 12 identifier of the first network card to the client device.

[0082] If the first network card is not present, the controller can transmit a message indicating that the network card 12 is not connected to the client device.

[0083] The controller transmits the switching command to the mode switching unit 113 by directly modifying the routing information recorded in the register of the mode switching unit 113 according to the routing switching method. The mode switching unit 113 then adjusts the connection relationship between the downlink connector 111 and the uplink connector 112 based on the modified routing information in the register.

[0084] When switching network interface card (NIC) operating modes, the controller first verifies whether the NIC's status information meets the switching conditions to ensure that the first NIC can function normally after the mode switch. By issuing an uninstallation notification, the controller powers down the NIC, ensuring that the mode switch is not affected by other factors. After completing the connection change, the controller powers on and initializes the NIC to ensure it can operate in the new mode.

[0085] In this embodiment, the controller modifies the routing information recorded in the register, and the mode switching unit adjusts the connection relationship between the downlink connector and the uplink connector according to the modified routing information, thereby changing the connection relationship between the network card and the node, so that the network card can switch between different working modes.

[0086] The mode switching unit 113 may include the same number of downlink ports as the multiple downlink connectors 111, and the same number of uplink ports as the multiple uplink connectors 112. The mode switching unit 113 adjusts the connection relationship between the downlink connectors 111 and the uplink connectors 112 based on the modified routing information in the register; in effect, it adjusts the connection relationship between the downlink ports and the uplink ports.

[0087] Taking two network interface cards (NICs) 12 and two nodes 10 as an example, the adapter card 11 can include four downlink connectors 111, four uplink connectors 112, and a mode switching component 113. Each pair of downlink connectors 111 connects to one NIC 12, each pair of uplink connectors 112 connects to one node 10, and the four downlink connectors 111 are connected to the four uplink connectors 112 through the mode switching component 113.

[0088] Figure 5 This application provides a schematic diagram illustrating the connection relationship between two network interface cards (NICs) and two nodes. The two NICs are designated as a first NIC and a second NIC, and the two nodes are designated as a first node and a second node. The first NIC is connected to a first downlink connector and a second downlink connector, respectively, and the second NIC is connected to a third downlink connector and a fourth downlink connector, respectively. The first node is connected to a first uplink connector and a second uplink connector, respectively, and the second node is connected to a third uplink connector and a fourth uplink connector, respectively. The monitor can communicate with the controller via a sideband connector. The controller can also transmit switching commands to the mode switching component via the sideband connector. Figure 5 The network interface cards (NICs) are connected to downstream connectors via cables. For example, the first NIC is connected to the first downstream device via a PCIe x8 cable, and to the second downstream device via another PCIe x8 cable. Nodes are connected to upstream connectors via cables. For example, the first port of the CPU of the first node is connected to the first upstream device via a PCIe x8 cable, and the second port of the CPU of the first node is connected to the second upstream device via a PCIe x8 cable. The first port of the CPU of the second node is connected to the third upstream device via a PCIe x8 cable, and the second port of the CPU of the second node is connected to the third upstream device via a PCIe x8 cable.

[0089] Figure 5The first downlink connector is connected to the first downlink port (1A), the second downlink connector is connected to the second downlink port (2A), the third downlink connector is connected to the third downlink port (3A), and the fourth downlink connector is connected to the fourth downlink port (4A); the first uplink connector is connected to the first uplink port (1B), the second uplink connector is connected to the second uplink port (2B), the third uplink connector is connected to the third uplink port (3B), and the fourth uplink connector is connected to the fourth uplink port (4B).

[0090] In single-host mode, the first downlink port is connected to the first uplink port, the second downlink port is connected to the second uplink port, the third downlink port is connected to the third uplink port, and the fourth downlink port is connected to the fourth uplink port.

[0091] When the operating mode corresponding to the business requirement change information is multi-host mode, the controller, based on the business requirement change information, network card status information, and routing information, can determine that in order to implement multi-host mode, the connection relationship between the second downlink port and the second uplink port, and between the third downlink port and the third uplink port, needs to be adjusted. Specifically, the second downlink port needs to be connected to the third uplink port, and the third downlink port needs to be connected to the second uplink port. At this time, the mode switching unit can disconnect the second downlink port from the second uplink port and connect it to the third uplink port; conversely, it can disconnect the third downlink port from the third uplink port and connect it to the second uplink port. Figure 5 The dashed line represents the new connectivity relationship between the uplink and downlink ports that needs to be adjusted after the working mode switch.

[0092] Taking the example that there are four network cards 12 and four nodes 10, the adapter card 11 can include eight downlink connectors 111, eight uplink connectors 112 and two mode switching components 113; wherein, every two downlink connectors 111 are connected to one network card 12, every two uplink connectors 112 are connected to one node 10, and the eight downlink connectors 111 are connected to the eight uplink connectors 112 through the mode switching components 113.

[0093] Figure 6 This embodiment of the application provides a schematic diagram of the connection relationship between four network interface cards (NICs) and four nodes. The four NICs are designated as a first NIC, a second NIC, a third NIC, and a fourth NIC, and the four nodes are designated as a first node, a second node, a third node, and a fourth node. The adapter card includes eight downlink connectors, eight uplink connectors, and two mode switching components. The eight downlink connectors are designated as the first downlink connector to the eighth downlink connector; the eight uplink connectors are designated as the first uplink connector to the eighth uplink connector; the two mode switching components are designated as a first mode switching component and a second mode switching component, which are connected via a cascade bus. Figure 6 For details on the connection methods between each network interface card (NIC) and the downlink connector, the connection method between the uplink connector and the node, and the connection methods of the downlink and uplink ports of each mode switching component, please refer to [link to documentation]. Figure 5 The details of its introduction will not be repeated here.

[0094] and Figure 5 Compared to the diagram showing the connection relationship between two network cards and two nodes, Figure 6 In addition to increasing the number of uplink and downlink connectors, the intermediate connector 11 also includes a mode switching component. Two mode switching components are cascaded via a set of x16 PCIe buses. This allows the third and fourth network cards to connect to the first mode switching component via the cascade bus, and then to the first and second nodes connected to the first mode switching component via cables. Similarly, the first and second network cards can also connect to the second mode switching component via the cascade bus, and then to the third and fourth nodes connected to the second mode switching component via cables. This enables one network card to connect to four nodes in multi-host mode.

[0095] according to Figure 6 The provided diagram shows that in multi-host mode, one network interface card (NIC) can connect to a maximum of four nodes. Considering current NIC specifications, generally one NIC can connect to a maximum of four nodes. Therefore, in practical applications, if the number of NICs exceeds four, the following can be referenced: Figure 6 The architecture of the relay card can be replicated to meet the connection needs of more network cards.

[0096] Figure 7 A flowchart of a working mode switching method provided in this application embodiment, the method including:

[0097] S701: Receives network card status information transmitted by the monitor.

[0098] The monitor is a type of adapter card; the adapter card also includes multiple downlink connectors for connecting to multiple network cards, multiple uplink connectors for connecting to multiple nodes, and a mode switching component; the network card status information includes the network card topology between multiple network cards and multiple nodes;

[0099] S702: Obtain routing information from the mode switching component.

[0100] The routing information includes the connection relationships between each downlink connector and each uplink connector.

[0101] S703: Determine the routing switching method based on changes in business requirements, network card status information, and routing information.

[0102] S704: Transmits a switching command containing the routing switching method to the mode switching unit, so that the mode switching unit can adjust the connection relationship between each downlink connector and each uplink connector according to the routing switching method to complete the switching of the working mode.

[0103] In some embodiments, obtaining routing information for the mode switching component includes:

[0104] The routing information is obtained by reading the registers of the mode switching component via the serial bus.

[0105] In some embodiments, after obtaining the routing information of the mode switching component, the method further includes:

[0106] Based on routing information, network interface card (NIC) topology, and the presence, working status, and working mode of each NIC, a topology mapping table is constructed.

[0107] In some embodiments, the routing switching method is determined based on business requirement change information, network interface card status information, and routing information, including:

[0108] Upon receiving information about changes in business requirements, determine the first network interface card (NIC) corresponding to the changes in business requirements.

[0109] If the network card status information of the first network card meets the working mode switching conditions, the first node connected to the first network card is determined according to the network card topology corresponding to the first network card.

[0110] Send an uninstallation notification to the first node so that the first node can uninstall the first network card;

[0111] Perform a power-down operation on the first network card;

[0112] Based on the working mode corresponding to the business requirement change information and the network card topology and routing information corresponding to the first network card, determine the routing switching method;

[0113] After transmitting a switching command containing the routing switching mode to the mode switching component, a notification message for the insertion of the first network card is sent to the second node included in the routing switching mode, and a power-on operation is performed on the first network card so that the first node and the second node can perform initialization on the first network card.

[0114] In some embodiments, the method for determining whether the network interface card (NIC) status information of the first NIC meets the working mode switching conditions further includes:

[0115] Determine if the first network interface card is present;

[0116] With the first network card in place, determine whether the working status of the first network card is normal;

[0117] If the first network interface card (NIC) is in a normal working state, determine whether the working mode of the first NIC is different from the working mode corresponding to the business requirement change information.

[0118] If the working mode of the first network card is different from the working mode corresponding to the change in service requirements, it is determined that the network card status information of the first network card meets the working mode switching conditions.

[0119] In some embodiments, it also includes:

[0120] If the first network interface card (NIC) is in an abnormal working state, an abnormality message carrying the NIC identifier of the first NIC is transmitted to the client device.

[0121] In some embodiments, it also includes:

[0122] If the primary network interface card (NIC) is not present, a message indicating a network interface card connection error is transmitted to the client device.

[0123] In some embodiments, transmitting a switching command containing a routing switching method to the mode switching component includes:

[0124] According to the routing switching method, the routing information recorded in the register of the mode switching unit is modified so that the mode switching unit can adjust the connection relationship between the downlink connector and the uplink connector based on the modified routing information in the register.

[0125] For a description of the features in the embodiment corresponding to the working mode switching method, please refer to the relevant description of the embodiment corresponding to the working mode switching system, which will not be repeated here.

[0126] As can be seen from the above technical solution, the controller receives network interface card (NIC) status information transmitted by the monitor; the monitor is a transfer card; the transfer card also includes multiple downlink connectors for connecting to multiple NICs, multiple uplink connectors for connecting to multiple nodes, and a mode switching component; the NIC status information includes the NIC topology between multiple NICs and multiple nodes. Based on the NIC status information, it can be identified whether the NIC supports switching of working modes. The routing information of the mode switching component is obtained; the routing information includes the connection relationships between each downlink connector and each uplink connector. The NIC status information records the topology relationship between the NIC and the nodes, and the routing information records the connection relationships between multiple uplink connectors and multiple downlink connectors. Therefore, based on the service requirement change information, NIC status information, and routing information, the routing switching method can be determined; a switching command containing the routing switching method is transmitted to the mode switching component, so that the mode switching component can adjust the connection relationships between each downlink connector and each uplink connector according to the routing switching method to complete the switching of working modes. Compared to traditional solutions, this application does not require on-site network card topology modifications by factory or data center maintenance personnel. The switching of network card operating modes can be completed through software operations, meeting business needs and improving server efficiency and reliability.

[0127] Figure 8 A schematic diagram of a working mode switching device provided in an embodiment of this application includes a receiving unit 81, an acquiring unit 82, a determining unit 83, and a switching unit 84;

[0128] The receiving unit 81 is used to receive network card status information transmitted by the monitor; wherein the monitor is a transition card; the transition card also includes multiple downlink connectors for connecting to multiple network cards, multiple uplink connectors for connecting to multiple nodes, and a mode switching component; wherein the network card status information includes the network card topology between multiple network cards and multiple nodes;

[0129] The acquisition unit 82 is used to acquire the routing information of the mode switching component; wherein, the routing information includes the connection relationship between each downlink connector and each uplink connector;

[0130] The determination unit 83 is used to determine the routing switching method based on the business requirement change information, network card status information, and routing information;

[0131] The switching unit 84 is used to transmit a switching command containing the routing switching method to the mode switching component, so that the mode switching component can adjust the connection relationship between each downlink connector and each uplink connector according to the routing switching method to complete the switching of the working mode.

[0132] For a description of the features in the embodiment corresponding to the working mode switching device, please refer to the relevant description in the embodiment corresponding to the working mode switching system, which will not be repeated here.

[0133] As can be seen from the above technical solution, the controller receives network interface card (NIC) status information transmitted by the monitor; the monitor is a transfer card; the transfer card also includes multiple downlink connectors for connecting to multiple NICs, multiple uplink connectors for connecting to multiple nodes, and a mode switching component; the NIC status information includes the NIC topology between multiple NICs and multiple nodes. Based on the NIC status information, it can be identified whether the NIC supports switching of working modes. The routing information of the mode switching component is obtained; the routing information includes the connection relationships between each downlink connector and each uplink connector. The NIC status information records the topology relationship between the NIC and the nodes, and the routing information records the connection relationships between multiple uplink connectors and multiple downlink connectors. Therefore, based on the service requirement change information, NIC status information, and routing information, the routing switching method can be determined; a switching command containing the routing switching method is transmitted to the mode switching component, so that the mode switching component can adjust the connection relationships between each downlink connector and each uplink connector according to the routing switching method to complete the switching of working modes. Compared to traditional solutions, this application does not require on-site network card topology modifications by factory or data center maintenance personnel. The switching of network card operating modes can be completed through software operations, meeting business needs and improving server efficiency and reliability.

[0134] Embodiments of this application also provide an electronic device, including a memory and a processor, wherein the memory stores a computer program and the processor is configured to run the computer program to perform the steps in any of the above-described embodiments of the working mode switching method.

[0135] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above-described embodiments of the working mode switching method.

[0136] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.

[0137] Embodiments of this application also provide a computer program product, which includes a computer program that, when executed by a processor, implements the steps in any of the above-described embodiments of the working mode switching method.

[0138] Embodiments of this application also provide another computer program product, including a non-volatile computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps in any of the above-described operating mode switching method embodiments.

[0139] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0140] The above provides a detailed description of a working mode switching system, method, apparatus, device, medium, and product provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are merely for the purpose of helping to understand the method and core ideas of this application. It should be noted that those skilled in the art can make various improvements and modifications to this application without departing from its principles, and these improvements and modifications also fall within the protection scope of the claims of this application.

Claims

1. A working mode switching system, characterized in that, It includes multiple nodes, adapter cards, and multiple network interface cards (NICs); wherein, the adapter card includes multiple downlink connectors for connecting to the NICs, multiple uplink connectors for connecting to the nodes, a mode switching component, and a monitor; The monitor is connected to the node's controller and is used to transmit the acquired network interface card (NIC) status information to the controller; wherein, the NIC status information includes the NIC topology among the multiple NICs and the multiple nodes; The controller is connected to the mode switching component and is used to receive the network card status information transmitted by the monitor; obtain the routing information of the mode switching component; wherein, the routing information includes the connection relationship between each downlink connector and each uplink connector; determine the routing switching mode according to the service requirement change information, the network card status information and the routing information; and transmit a switching command containing the routing switching mode to the mode switching component. The mode switching component is used to adjust the connection relationship between each downlink connector and each uplink connector according to the routing switching method included in the switching command when receiving the switching command transmitted by the controller, so as to complete the switching of the working mode.

2. The working mode switching system according to claim 1, characterized in that, Each network interface card connects to multiple downlink connectors, and each node connects to multiple uplink connectors; The controller is configured to read the registers of the mode switching component via a serial bus to obtain the routing information.

3. The working mode switching system according to claim 2, characterized in that, The monitor is used to obtain the presence status, working status, and working mode of each network card according to the network cards connected to each downlink connector; determine the network card topology based on the routing information, the connection relationship between each downlink connector and each network card, and the connection relationship between each uplink connector and each node; and transmit the presence status, working status, working mode, and network card topology of each network card to the controller.

4. The working mode switching system according to claim 3, characterized in that, The controller is configured to construct a topology mapping table based on the routing information, the network interface card topology, and the presence, working status, and working mode of each network interface card.

5. The working mode switching system according to claim 3, characterized in that, The controller is used to determine the first network interface card corresponding to the service requirement change information when it receives service requirement change information. If the network card status information of the first network card meets the working mode switching conditions, the first node connected to the first network card is determined according to the network card topology corresponding to the first network card. Send an uninstallation notification to the first node so that the first node can uninstall the first network card; Perform a power-down operation on the first network card; Based on the working mode corresponding to the business requirement change information and the network card topology and routing information corresponding to the first network card, the routing switching method is determined; The system transmits a switching command containing the routing switching mode to the mode switching component, sends a notification message of the insertion of the first network card to the second node included in the routing switching mode, and performs a power-on operation on the first network card so that the first node and the second node can perform initialization on the first network card.

6. The working mode switching system according to claim 5, characterized in that, The controller is used to determine whether the first network card is in place; if the first network card is in place, it determines whether the working state of the first network card is normal. If the first network card is in a normal working state, determine whether the working mode of the first network card is different from the working mode corresponding to the service requirement change information; If the working mode of the first network card is different from the working mode corresponding to the service requirement change information, it is determined that the network card status information of the first network card meets the working mode switching conditions.

7. The working mode switching system according to claim 6, characterized in that, The controller is configured to transmit an abnormal prompt message carrying the network card identifier of the first network card to the client device when the working state of the first network card is abnormal.

8. The working mode switching system according to claim 6, characterized in that, The controller is used to transmit a network card connection error message to the client device when the first network card is not present.

9. The working mode switching system according to claim 1, characterized in that, The controller is used to modify the routing information recorded in the register of the mode switching component according to the routing switching method; The mode switching component is used to adjust the connection relationship between the downlink connector and the uplink connector according to the modified routing information in the register.

10. The working mode switching system according to claim 9, characterized in that, The mode switching component includes the same number of downlink ports as the plurality of downlink connectors, and the same number of uplink ports as the plurality of uplink connectors; The mode switching component is used to adjust the connection relationship between the downlink port and the uplink port according to the modified routing information in the register.

11. The working mode switching system according to claim 1, characterized in that, When there are two network cards and two nodes, the adapter card includes four downlink connectors, four uplink connectors, and a mode switching component; wherein, every two downlink connectors are connected to one network card, every two uplink connectors are connected to one node, and the four downlink connectors are connected to the four uplink connectors through the mode switching component.

12. The working mode switching system according to claim 11, characterized in that, The first network interface card (NIC) is connected to the first downlink connector and the second downlink connector, respectively; the second NIC is connected to the third downlink connector and the fourth downlink connector, respectively; the first node is connected to the first uplink connector and the second uplink connector, respectively; the second node is connected to the third uplink connector and the fourth uplink connector, respectively. The first downlink connector is connected to the first downlink port, the second downlink connector is connected to the second downlink port, the third downlink connector is connected to the third downlink port, and the fourth downlink connector is connected to the fourth downlink port; the first uplink connector is connected to the first uplink port, the second uplink connector is connected to the second uplink port, the third uplink connector is connected to the third uplink port, and the fourth uplink connector is connected to the fourth uplink port. In single-host mode, the first downlink port is connected to the first uplink port, the second downlink port is connected to the second uplink port, the third downlink port is connected to the third uplink port, and the fourth downlink port is connected to the fourth uplink port.

13. The working mode switching system according to claim 12, characterized in that, When the working mode corresponding to the business requirement change information is multi-host mode, the mode switching component is used to disconnect the second downlink port from the second uplink port and connect the second downlink port to the third uplink port; disconnect the third downlink port from the third uplink port and connect the third downlink port to the second uplink port.

14. The working mode switching system according to claim 1, characterized in that, With four network cards and four nodes, the adapter card includes eight downlink connectors, eight uplink connectors, and two mode switching components; the first mode switching component and the second mode switching component are connected via a cascade bus.

15. The working mode switching system according to claim 1, characterized in that, The multiple downlink connectors are connected to the corresponding network cards via cables, and the multiple uplink connectors are connected to the corresponding nodes via cables, so as to enable the adapter card to be plugged and unplugged between the multiple network cards and the multiple nodes.

16. A method for switching working modes, characterized in that, include: The system receives network interface card (NIC) status information transmitted by a monitor; wherein the monitor is an adapter card; the adapter card further includes multiple downlink connectors for connecting to multiple NICs, multiple uplink connectors for connecting to multiple nodes, and a mode switching component; wherein the NIC status information includes the NIC topology between the multiple NICs and the multiple nodes; Obtain the routing information of the mode switching component; wherein, the routing information includes the connection relationship between each downlink connector and each uplink connector; Based on the business requirement change information, the network card status information, and the routing information, the routing switching method is determined; The mode switching component transmits a switching command containing the routing switching method to the mode switching component, so that the mode switching component can adjust the connection relationship between each downlink connector and each uplink connector according to the routing switching method to complete the switching of the working mode.

17. A working mode switching device, characterized in that, It includes a receiving unit, an acquiring unit, a determining unit, and a switching unit; The receiving unit is used to receive network card status information transmitted by the monitor; wherein the monitor is an adapter card; the adapter card further includes multiple downlink connectors for connecting to multiple network cards, multiple uplink connectors for connecting to multiple nodes, and a mode switching component; wherein the network card status information includes the network card topology between the multiple network cards and the multiple nodes; The acquisition unit is used to acquire the routing information of the mode switching component; wherein, the routing information includes the connection relationship between each downlink connector and each uplink connector; The determining unit is used to determine the routing switching method based on the business requirement change information, the network card status information, and the routing information; The switching unit is used to transmit a switching command containing the routing switching method to the mode switching component, so that the mode switching component can adjust the connection relationship between each downlink connector and each uplink connector according to the routing switching method to complete the switching of the working mode.

18. An electronic device, characterized in that, include: Memory, used to store computer programs; A processor, configured to implement the steps of the operating mode switching method as described in claim 16 when executing the computer program.

19. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the working mode switching method as described in claim 16.

20. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the steps of the working mode switching method as described in claim 16.