Network interface control method and multi-node server

By introducing the switching chip module and multiple network interfaces in multi -node servers to dynamically control the network interface, the network ring returns and high cost in the multi -node server are solved, and efficient data packet forwarding and performance use have been achieved.

CN119376920APending Publication Date: 2025-01-28XFUSION DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411331484.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2022-12-12
Publication Date
2025-01-28

AI Technical Summary

Technical Problem

In existing multi-node servers, it is usually necessary to use a node specifically as a management board, which leads to high costs and underutilization of the performance of the node, and also has the problem of network loopback.

Method used

By introducing the switching chip module and multiple network interfaces in multiple node servers, the dynamic control of the network interface is achieved, select a target network interface and open it, turn off other network interfaces, to solve the network ring back problem, and avoid specifically specializing in nodes specifically. Used for management board.

Benefits of technology

Realize the data message forwarding between multi -node server and switch/router to avoid the network ring rebate, reduce costs, and make full use of the performance of the node.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119376920A_ABST
    Figure CN119376920A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a control method of a network interface and a multi-node server, which are used for controlling the network interface of the multi-node server so as to solve the problem of network loopback. In the application, the multi-node server can obtain the access condition of each network interface in the M network interfaces, and the access condition is used for indicating whether the network interface accesses the network cable or not. When the multi-node server determines that at least two network interfaces in the P network interfaces (P is a positive integer smaller than or equal to M) are accessed to the network line based on the access condition, the multi-node server can select one of the at least two network interfaces as a target network interface, and open the target network interface, so that the network line is accessed to the network line. And the other network interfaces except the target network interface in the at least two network interfaces are closed, so that the problem of network loopback between the multi-node server and the switch / router is solved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application is a divisional application of the invention patent application with application number CN202211606308.1 submitted to the China Patent Office, application date December 12, 2022, and invention name “A network interface control method and multi-node server”. Technical Field

[0002] The present application relates to the field of server technology, and in particular to a network interface control method and a multi-node server. Background Art

[0003] A multi-node server is a server with multiple nodes. A node is also called a node server. The function of a node is equivalent to that of a single-node server. Therefore, a multi-node server can be understood as multiple servers deployed in one space.

[0004] Currently, among the multiple nodes of a multi-node server, one node is usually designated as a management board, which is used to connect to the network interface to access the network cable. Users can access the baseboard management controller (BMC) of each node in the multi-node server through the management board, that is, the management board can be used as a switch for each node in the multi-node server. However, if the node is used exclusively as a management board, the cost is high and the performance of the node is not fully utilized. Summary of the invention

[0005] The embodiments of the present application provide a network interface control method and a multi-node server, which are used to control the network interface of the multi-node server to solve the problem of network loopback.

[0006] The first aspect of the present application provides a method for controlling a network interface, which is applied to a multi-node server, wherein the multi-node server includes a switching chip module, at least M nodes, and at least M network interfaces, wherein the M nodes correspond to the M network interfaces in a one-to-one manner, and the switching chip module includes N ports, wherein M and N are both integers greater than or equal to 2, and N is greater than M. Among them, the M nodes are connected to M ports of the N ports in a one-to-one manner, and P ports of the N ports that are not connected to the M nodes are connected to P network interfaces of the M network interfaces in a one-to-one manner, and the M network interfaces are used to access network cables, and P is a positive integer less than or equal to M.

[0007] It can be seen that, since at least one of the P network interfaces is connected to a network cable, the network cable can be connected to a switch / router, and the M nodes in the multi-node server can send a first data message to the switching chip module, and the switching chip module forwards the first data message to the switch / router through the network interface connected to the network cable among the P network interfaces. Alternatively, after the switch / router receives the second data message, it forwards the second data message to the switching chip module through the network interface connected to the network cable among the P network interfaces, and the switching chip module receives the second data message through P ports, and forwards it to the corresponding node among the M nodes based on the IP address / MAC address of the second data message. Then, the forwarding of data messages between the multi-node server and the switch / router can be realized through the switching chip module, and there is no need to use one of the nodes in the multi-node server as a management board, and the performance of one node will not be wasted, thereby reducing costs.

[0008] In addition, the multi-node server can obtain the access status of each network interface among the M network interfaces, and the access status is used to indicate whether the network interface is connected to the network cable. When P is greater than or equal to 2, and the multi-node server determines that at least 2 network interfaces among the P network interfaces are connected to the network cable based on the access status, the multi-node server can select one of the at least 2 network interfaces as the target network interface, and open the target network interface, and close the other network interfaces among the at least 2 network interfaces except the target network interface, thereby solving the problem of network loopback between the multi-node server and the switch / router.

[0009] In some feasible implementations, each of the M nodes obtains the access status of the corresponding network interface among the M network interfaces, and the master node among the M nodes obtains the access status of each of the M network interfaces from each of the M nodes, thereby enabling the multi-node server to obtain the access status of each of the M network interfaces.

[0010] In some feasible implementations, the multi-node service also includes a CPLD chip, which connects each of the M nodes. Each of the M nodes sends the access status of the corresponding network interface to the CPLD chip, and the master node obtains the access status of each of the M network interfaces from the CPLD chip, so that the master node can obtain the access status of each of the M network interfaces.

[0011] In some feasible implementations, the master node opens the target network interface and closes the other network interfaces among at least two network interfaces except the target network interface, thereby enabling a multi-node server to open the target network interface and close the other network interfaces among at least two network interfaces except the target network interface, solving the problem of network loopback.

[0012] In some feasible implementations, each of the M network interfaces includes a physical layer chip and a registered socket RJ45 interface, and each of the M nodes is connected to a corresponding physical layer chip, wherein the physical layer chip and the RJ45 interface are connected correspondingly. Each of the M nodes obtains the link status of the corresponding physical layer chip in the M network interfaces, where the connection status is connected or not connected, and the link status is used as the access status to obtain the access status of each of the M network interfaces, thereby enabling the multi-node server to obtain the access status of each of the M network interfaces.

[0013] A second aspect of the present application provides a multi-node server, comprising: a switching chip module, at least M nodes and at least M network interfaces, wherein the M nodes correspond to the M network interfaces one by one, the switching chip module comprises N ports, M and N are both integers greater than or equal to 2, and N is greater than M;

[0014] The M nodes are connected to M ports of the N ports in a one-to-one correspondence, and P ports of the N ports that are not connected to the M nodes are connected to P network interfaces of the M network interfaces in a one-to-one correspondence, and the M network interfaces are used to access network cables, and P is a positive integer less than or equal to M;

[0015] The M nodes are used to obtain access status of a corresponding network interface among the M network interfaces, where the access status is used to indicate whether the network interface is connected to a network cable;

[0016] The M nodes are further configured to select one of the at least two network interfaces as the target network interface when P is greater than or equal to 2 and it is determined based on the access situation that at least two of the P network interfaces are connected to the network cable;

[0017] The M nodes are further used to open the target network interface and close other network interfaces among the at least two network interfaces except the target network interface.

[0018] In some feasible implementations, each of the M nodes is used to obtain the access status of the corresponding network interface among the M network interfaces; and the master node among the M nodes is used to obtain the access status of each of the M network interfaces from each of the M nodes.

[0019] In some feasible implementations, the multi-node service also includes a CPLD chip, which connects each of the M nodes; each of the M nodes is used to send the access status of the corresponding network interface to the CPLD chip; and the master node is used to obtain the access status of each of the M network interfaces from the CPLD chip.

[0020] In some feasible implementations, the master node is further configured to open the target network interface, and close other network interfaces among the at least two network interfaces except the target network interface.

[0021] In some feasible implementations, each of the M network interfaces includes a physical layer chip and a registered socket RJ45 interface, and each of the M nodes is respectively connected to a physical layer chip, wherein the physical layer chip and the RJ45 interface are correspondingly connected; each of the M nodes is also used to obtain the link status of the corresponding physical layer chip in the M network interfaces, where the connection status is connected or not connected, and the link status is used as the access status to obtain the access status of each of the M network interfaces.

[0022] A third aspect of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute any of the methods in the first, second, or third aspects above.

[0023] A fourth aspect of the present application provides a computer program product, which includes computer execution instructions, which are stored in a computer-readable storage medium; at least one processor of a device can read the computer execution instructions from the computer-readable storage medium, and at least one processor executes the computer execution instructions so that the device implements the method provided by the above-mentioned first aspect or any possible implementation of the first aspect.

[0024] In a fifth aspect, the present application provides a communication device, which may include at least one processor, a memory, and a communication interface. At least one processor is coupled to the memory and the communication interface. The memory is used to store instructions, at least one processor is used to execute the instructions, and the communication interface is used to communicate with other communication devices under the control of at least one processor. When the instructions are executed by at least one processor, the at least one processor executes the method in the first aspect or any possible implementation of the first aspect.

[0025] A sixth aspect of the present application provides a chip system, which includes a processor for supporting the implementation of the functions involved in the above-mentioned first aspect or any possible implementation method of the first aspect.

[0026] In a possible design, the chip system may also include a memory, which is used to store necessary program instructions and data. The chip system may be composed of a chip, or may include a chip and other discrete devices.

[0027] Among them, the technical effects brought about by the second to sixth aspects or any possible implementation methods thereof can refer to the technical effects brought about by the first aspect or different possible implementation methods of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1 A schematic diagram of the structure of a multi-node server to which an embodiment of the present application is applied;

[0029] Figure 2-1 A schematic diagram of the composition structure of a multi-node server provided in an embodiment of the present application;

[0030] Figure 2-2 Another schematic diagram of the structure of a multi-node server provided in an embodiment of the present application;

[0031] Figure 2-3 Another schematic diagram of the structure of a multi-node server provided in an embodiment of the present application;

[0032] Figure 2-4 A schematic diagram of the structure of a multi-node server connected to a switch / router provided in an embodiment of the present application;

[0033] Figure 2-5 Another structural diagram of a multi-node server connected to a switch / router provided in an embodiment of the present application;

[0034] Figure 3-1 Another schematic diagram of the structure of a multi-node server provided in an embodiment of the present application;

[0035] Figure 3-2 Another schematic diagram of the structure of a multi-node server provided in an embodiment of the present application;

[0036] Figure 4 A schematic diagram of the structure of a multi-node server provided in an embodiment of the present application;

[0037] Figure 5 A schematic diagram of the structure of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0038] The embodiments of the present application provide a network interface control method and a multi-node server, which are used to control the network interface of the multi-node server to solve the problem of network loopback.

[0039] The embodiments of the present application are described below in conjunction with the accompanying drawings.

[0040] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances, which is only to describe the distinction mode adopted by the objects of the same attributes when describing in the embodiments of the present application. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, so that the process, method, system, product or equipment comprising a series of units need not be limited to those units, but may include other units that are not clearly listed or inherent to these processes, methods, products or equipment.

[0041] For example, see Figure 1 2 is a schematic diagram of a structure of a multi-node server 100 , wherein the multi-node server 100 includes four nodes, namely nodes 110 - 140 .

[0042] It should be noted that the multi-node server 100 is a server with multiple nodes. A node is also called a node server. The function of a node is equivalent to that of a single-node server. Therefore, the multi-node server 100 can be understood as multiple servers centrally deployed in one space.

[0043] In actual application scenarios, the multi-node server 100 has high scalability, high availability, and high manageability. High scalability means that nodes can be added or reduced in the multi-node server as demand and load change. High availability means that by transferring applications on failed nodes to backup nodes, the multi-node server 100 can increase normal operation time to more than 99.9%, greatly reducing the downtime of the multi-node server 100 and applications. High manageability means that users can remotely manage a multi-node server to achieve an effect similar to that of a stand-alone system.

[0044] As the popularity of new generation information technology represented by cloud computing, big data, mobile Internet, smart terminals, and the Internet of Things continues to accelerate, data centers are expanding rapidly, and their space and power consumption issues have become a major problem. When designing, building, and operating large data centers, data centers are developing towards a high-density model. The multi-node server 100 has the characteristics of high scalability, high availability, and high manageability, as well as energy saving and easy maintenance, and has a broad market space.

[0045] The server may have relatively large differences due to different configurations or performances, and may include at least one central processing unit (CPU) (e.g., at least one processor) and memory, and at least one storage medium for storing applications or data (e.g., at least one mass storage device). Among them, the memory and the storage medium may be short-term storage or persistent storage. The program stored in the storage medium may include at least one module, and each module may include a series of instruction operations on the server. Furthermore, the central processing unit may be configured to communicate with the storage medium and execute a series of instruction operations in the storage medium on the server. The server may also include at least one power supply, at least one wired or wireless network interface, at least one input and output interface, and / or at least one operating system, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, NetWare, etc. In some feasible implementations, the server may also be a cloud server, which is not limited here.

[0046] A server, also known as a server, is a device that provides computing services. Since the server needs to respond to service requests and process them to provide reliable services, generally speaking, the server should have the ability to undertake and guarantee services. The server needs to have strong processing power, high stability, high reliability, high security, scalability, and manageability. In an embodiment of the present application, the server may be an x86 server, which is also called a complex instruction set computer (CISC) architecture server, that is, a personal computer (PC) server, which is based on the PC architecture and uses an Intel or other x86 instruction set compatible processor chip and a Windows operating system.

[0047] Currently, among the multiple nodes of a multi-node server, one node is usually designated as a management board, which is used to connect to the network interface to access the network cable. Users can access the baseboard management controller (BMC) of each node in the multi-node server through the management board, that is, the management board can be used as a switch for each node in the multi-node server. However, if the node is used exclusively as a management board, the cost is high and the performance of the node is not fully utilized.

[0048] To this end, the present application proposes a multi-node server, which includes a switching chip module, at least M nodes and at least M network interfaces, the M nodes and the M network interfaces correspond one to one, the switching chip module includes N ports, M and N are integers greater than or equal to 2, and N is greater than M. Among them, the M nodes are connected to M ports of the N ports in a one-to-one correspondence, the P ports of the N ports that are not connected to the M nodes are connected to P network interfaces of the M network interfaces in a one-to-one correspondence, the M network interfaces are used to access network cables, and P is a positive integer less than or equal to M.

[0049] In some feasible implementations, each of the M network interfaces includes a physical layer chip and a registered jack 45 (RJ) 45 interface, and each of the M nodes is respectively connected to a physical layer chip, wherein the physical layer chip and the RJ45 interface are correspondingly connected.

[0050] Then, when at least one of the P network interfaces is connected to a network cable, the network cable can be connected to a switch / router, and the M nodes in the multi-node server can send a first data message to the switching chip module, and the switching chip module forwards the first data message to the switch / router through the network interface connected to the network cable among the P network interfaces. Alternatively, after the switch / router receives the second data message, it forwards the second data message to the switching chip module through the network interface connected to the network cable among the P network interfaces, and the switching chip module receives the second data message through P ports, and forwards it to the corresponding node among the M nodes based on the IP address / MAC address of the second data message. Then, the forwarding of data messages between the multi-node server and the switch / router can be realized through the switching chip module, and there is no need to use one of the nodes in the multi-node server as a management board, so the performance of one node will not be wasted, thereby reducing costs.

[0051] For example, Figure 2-1 As shown, the multi-node server 200 includes a switching chip module 210, four nodes 220 and four network interfaces 230. The switching chip module 210 may include eight ports, four of which are used to connect to the four nodes 220, and the other four ports are used to connect to the four network interfaces 230, and any one of the four network interfaces 230 is used to access a network cable.

[0052] In some feasible implementations, among the other 4 ports of the 8 ports that are not connected to the 4 nodes, P ports may be connected to the P network interfaces of the 4 network interfaces in a one-to-one correspondence, where P may be equal to 1, 2, 3, or 4. For example, if P is equal to 2, then 2 ports of the 4 ports are connected to 2 network interfaces of the 4 network interfaces in a one-to-one correspondence; or, if P is equal to 3, then 3 ports of the 4 ports are connected to 3 network interfaces of the 4 network interfaces in a one-to-one correspondence.

[0053] In some feasible implementations, each of the four network interfaces includes a physical layer (PHY) chip and a registered jack 45 (RJ) 45 interface, and each of the four nodes is respectively connected to a physical layer chip, wherein the physical layer chip and the RJ45 interface are correspondingly connected.

[0054] In some feasible implementations, the switch chip module may include one switch chip or two switch chips connected to each other, which is not limited here. The following description will be made by taking one switch chip and two switch chips as examples.

[0055] In some possible implementations, such as Figure 2-2 As shown, the switching chip module 220 may include a switching chip, and the switching chip includes at least 5 interfaces, such as 5 interfaces, 8 interfaces or 10 interfaces. Here, 8 interfaces are used as an example for explanation, namely port00, port01, port02, port03, port10, port11, port12, and port13. Among them, node 1 in the multi-node server 210 is connected to port00, node 2 is connected to port01, node 3 is connected to port02, and node 4 is connected to port03. And the P ports of port10, port11, port12, and port13 are connected to the P network interfaces in the four network interfaces in a one-to-one correspondence. For example, if P is equal to 2, then port10 and port13 in the four ports are connected to the network interfaces corresponding to node 1 and node 4 in the four network interfaces in a one-to-one correspondence; or, if P is equal to 3, then port10, port11, and port13 in the four ports are connected to the network interfaces corresponding to node 1, node 2, and node 4 in the four network interfaces in a one-to-one correspondence.

[0056] Among them, the four network interfaces are used to access the network cable to connect the switch / router. Among them, the switching chip is used to receive the first data message from nodes 1 to 4 through port00 to port03, and forward the first data message to the switch / router through the network interface connected to the network cable. Alternatively, the switch / router receives the second data message, sends the second data message to the switching chip through the connected network interface, and the switching chip receives the second data message through port10 to port13, and forwards it to the corresponding node among the four nodes based on the IP address / MAC address of the second data message.

[0057] Among them, the switch / router is a hardware device that connects two or more user devices and acts as a gateway between user devices. The switch / router is a dedicated intelligent network device that can read the destination address in the message and decide how to transmit the message according to the destination address; the switch / router can understand different protocols, such as the Ethernet protocol used by a local area network, the Transmission Control Protocol / Internet Protocol (TCP / IP) protocol used by the Internet, etc., so that the switch / router can analyze the destination addresses of messages sent from various types of networks, convert non-TCP / IP addresses into TCP / IP addresses, or vice versa; and then transmit each message to the destination address according to the best transmission path based on the routing algorithm, so the switch / router can connect non-TCP / IP networks to the Internet.

[0058] In some feasible implementations, the switch chip module 220 may include two connected switch chips, namely, switch chip 1 and switch chip 2, wherein switch chip 2 is connected to each node in the multi-node server 210, and switch chip 1 is used to connect M network interfaces. In some feasible implementations, the switch chip 2 and the switch chip 1 may be connected via a reduced gigabit media independent interface (RGMII) interface, or other methods, which are not limited here.

[0059] For example, Figure 2-3As shown, the switch chip 1 includes 4 ports, namely port00, port01, port02, and port03. The switch chip 2 also includes 4 ports, namely port10, port11, port12, and port13. Among them, port00 in the switch chip 2 is connected to node 1, port01 is connected to node 2, port02 is connected to node 3, and port03 is connected to node 4. Each port in the switch chip 1 is connected to a PHY chip, and each PHY chip is connected to an RJ45 interface. The switch / router can be connected from any one or more of the 4 RJ45 interfaces to enable the multi-node server 200 to connect to the network.

[0060] The switching chip is used to receive the first data message from nodes 1 to 4 through port00 to port03, and forward the first data message to the switch / router through the network interface connected to the network cable. Alternatively, the switch / router receives the second data message, sends the second data message to the switching chip through the connected network interface, and the switching chip receives the second data message through port10 to port13, and forwards it to the corresponding node among the four nodes based on the IP address / MAC address of the second data message.

[0061] Then, the switch chip 2 can receive the first data message sent by nodes 1 to 4, and forward the first data message to the switch chip 1, and the switch chip 1 forwards the first data message to the switch / router through the network interface connected to the network cable among the four network interfaces. The switch chip 1 can also receive the second data message sent by the switch / router through the network interface connected to the network cable among the four network interfaces, and forward it to the switch chip 2, and the switch chip 2 forwards the second data message to each node in the multi-node server 200 based on the IP address / MAC address in the second data message.

[0062] It can be seen that when at least one of the four network interfaces is connected to the network cable, Figure 2-4As shown, the network cable can be connected to the switch / router, and the four nodes in the multi-node server 200 can send a first data message to the switching chip module 210, and the switching chip module 210 forwards the first data message to the switch / router through the network interface connected to the network cable among the four network interfaces. Alternatively, after the switch / router receives the second data message, it forwards the second data message to the switching chip module 210 through the network interface connected to the network cable among the four network interfaces, and the switching chip module receives the second data message through P ports, and forwards it to the corresponding node among the M nodes based on the IP address / MAC address of the second data message. Then, the forwarding of data messages between the multi-node server 200 and the switch / router can be realized through the switching chip module 210, and there is no need to use one of the nodes in the multi-node server 200 as a management board, so the performance of one node will not be wasted, thereby reducing costs.

[0063] In some scenarios, due to user misoperation, the switch / router may be connected to the multi-node server 200 by pulling multiple network cables at the same time, then at least two network interfaces in the multi-node server 200 will be connected to the switch / router, that is, the switch chip 1 will be connected to the switch / router through at least two ports. Figure 2-5 As shown, the network interfaces corresponding to port 10 and port 13 in the switch chip 1 are connected to the switch / router respectively. Then, if the first data message is a broadcast message, the switch / router will forward the first data message to port 13 of the switch chip 1, and the switch chip 1 will send it to the switch / router again through port 10 based on the IP address / MAC address of the first data message, and so on, forming a network loop. The problem of network loopback may cause the first data message to be repeatedly forwarded between the multi-node server and the switch / router, forming a traffic black hole, occupying the bandwidth resources of the switch / router, affecting the forwarding of normal business data, and causing a poor user experience.

[0064] To this end, the present application provides a method for controlling a network interface, where a multi-node server can obtain the access status of each of the M network interfaces, and the access status is used to indicate whether the network interface is connected to a network cable. When P is greater than or equal to 2, and the multi-node server determines that at least 2 of the P network interfaces are connected to a network cable based on the access status, the multi-node server can select one of the at least 2 network interfaces as the target network interface, and turn on the target network interface, and turn off the other network interfaces of the at least 2 network interfaces except the target network interface, thereby solving the problem of network loopback between the multi-node server and the switch / router.

[0065] In some possible implementations, such as Figure 3-1As shown, the multi-node service 200 may also include a complex programmable logic device (CPLD) chip 240, and the CPLD chip 240 connects each of the M nodes. Exemplarily, the CPLD chip can connect the M nodes through an inter-integrated circuit (IIC) interface, or can be connected in other ways, which are not limited here. The CPLD chip 240 is used to receive the access status of the corresponding network interface sent by each of the M nodes 220, and return the access status of the corresponding network interface of each of the M nodes 220 at the request of the master node.

[0066] See also Figure 3-2 As shown, the control method of the network interface provided in the embodiment of the present application mainly includes the following steps:

[0067] 301. Each of the M nodes obtains access status of a corresponding network interface among the M network interfaces.

[0068] In some possible implementations, each of the M network interfaces may include a PHY chip and a registered socket RJ45 interface, and each of the M nodes is respectively connected to a physical layer chip, wherein the physical layer chip and the RJ45 interface are connected to each other. In the embodiment of the present application, the access status is used to indicate whether the network interface is connected to a network cable. For example, Figure 2-5 As shown, the network interfaces corresponding to port 10 and port 13 in the switching chip module are connected to network cables, and the network cables are connected to the switch / router.

[0069] In some possible implementations, each of the M nodes may obtain the link status of the corresponding physical layer chip in the M network interfaces, where the connection status is connected or not connected, and the link status is used as the access status to obtain the access status of each of the M network interfaces. For example, Figure 2-5 As shown, node 1 obtains the link status of the PHY chip connected to port 10 in the switching chip module, node 2 obtains the link status of the PHY chip connected to port 11 in the switching chip module, node 3 obtains the link status of the PHY chip connected to port 12 in the switching chip module, and node 4 obtains the link status of the PHY chip connected to port 13 in the switching chip module. Among them, the link status obtained by node 1 and node 4 is connected, and the link status obtained by node 2 and node 3 is not connected.

[0070] 302. Each of the M nodes sends access status of the corresponding network interface to the CPLD chip.

[0071] In an embodiment of the present application, after each of the M nodes obtains the access status of the corresponding network interface among the M network interfaces, each node may send the access status of the corresponding network interface to the CPLD chip.

[0072] For example, Figure 2-5 As shown, the access status sent by node 1 to the CPLD chip is accessed, the access status sent by node 2 to the CPLD chip is not accessed, the access status sent by node 3 to the CPLD chip is not accessed, and the access status sent by node 4 to the CPLD chip is accessed, so the CPLD chip obtains the access status of the corresponding network interface of each node in nodes 1 to 4.

[0073] 303. The master node obtains access status of each of the M network interfaces from the CPLD chip.

[0074] In some feasible implementations, the CPLD chip can determine the master node among the M nodes. Exemplarily, the CPLD chip can randomly determine any one of the M nodes as the master node, or determine a node as the master node based on a priority order. Exemplarily, the priority order of nodes 1 to 4 is node 1, node 2, node 3, and node 4. The CPLD chip preferentially determines node 1 as the master node. If node 1 is not connected to the multi-node server, node 2 is selected as the master node, and so on. Exemplarily, if Figure 2-5 As shown, nodes 1 to 4 are all connected to the multi-node server, and the CPLD chip designates node 1 as the master node based on the principle of preset order.

[0075] In some possible implementations, after the CPLD chip specifies a master node among the M nodes, the master node may obtain access status of each of the M network interfaces from the CPLD chip.

[0076] Through the above steps 302 to 303, the master node obtains the access status of each of the M network interfaces from each of the M nodes, and the multi-node server obtains the access status of each of the M network interfaces.

[0077] 304. When the master node determines that at least two of the P network interfaces are connected to the network cable based on the access situation, one of the at least two network interfaces is selected as the target network interface.

[0078] Exemplarily, if P is equal to 2, port10 and port13 among the four ports are connected one-to-one with the network interfaces corresponding to node 1 and node 4 among the four network interfaces; or, if P is equal to 3, port10, port11 and port13 among the four ports are connected one-to-one with the network interfaces corresponding to node 1, node 2 and node 4 among the four network interfaces.

[0079] In some possible implementations, when P is greater than or equal to 2, and the master node determines based on the access situation that only one of the P network interfaces is connected to the network cable, there is no network loopback problem, so the master node does not need to shut down any network interface. For example, if P is equal to 1, then port 10 of the four ports is connected one-to-one with the network interface corresponding to node 1 of the four network interfaces. The broadcast message sent by the node can be forwarded to the switch / router through port 10 by the switching chip module. Since the network interfaces other than the network interface corresponding to node 1 of the P network interfaces are not connected, the switch / router cannot forward the broadcast message to the switching chip module through other network interfaces, so there is no network loopback problem, so the master node does not need to shut down any network interface.

[0080] In some possible implementations, if the master node determines that at least two of the M network interfaces are connected to the network cable based on the access situation, a network loopback problem may occur. For example, if P is equal to 3, then port 10, port 11, and port 13 of the four ports are connected to the network interfaces corresponding to node 1, node 2, and node 4 of the four network interfaces in a one-to-one correspondence, wherein the network interfaces corresponding to node 1 and node 4 are both connected to the network cable. Then, when the broadcast message sent by node 1, the switching chip module can forward it to the switch / router through port 10 (or port 13). Since the network interface corresponding to node 4 is connected to the network cable in addition to the network interface corresponding to node 1 among the P network interfaces, the switch / router can forward the broadcast message to the switching chip module through the network interface corresponding to port 13, and the switching chip module forwards the broadcast message to the switch / router through port 10, and the cycle repeats, resulting in a network loopback problem. Then the master node can select one from port 10 and port 13 as the target network interface, and subsequently transmit the data message through the target network interface.

[0081] For example, Figure 2-5As shown, the network interfaces corresponding to node 1 and node 4 are connected to network cables. Assume that the master node is node 1. Node 1 can determine one of the network interfaces corresponding to node 1 and node 4 as the target network interface. For example, the network interface corresponding to node 1 is determined as the target network interface. The subsequent data message interactions between the multi-node server and the switch / router are all transmitted through the target network interface.

[0082] 305. The master node opens the target network interface, and closes the other network interfaces among at least two network interfaces except the target network interface.

[0083] In the embodiment of the present application, after the master node determines the target network interface, the target network interface can be opened, and the other network interfaces except the target network interface among the at least two network interfaces can be closed. Figure 2-5 As shown, node 1 (master node) can open the network interface corresponding to node 1 and close the network interface corresponding to node 4.

[0084] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0085] In order to better implement the above-mentioned solution of the embodiment of the present application, relevant devices for implementing the above-mentioned solution are also provided below.

[0086] See also Figure 4 As shown, a multi-node server 400 provided in an embodiment of the present application may include:

[0087] A switching chip module 410, at least M nodes 420 and at least M network interfaces 430, wherein the M nodes 420 and the M network interfaces 430 correspond to each other one by one, and the switching chip module 410 includes N ports, where M and N are both integers greater than or equal to 2, and N is greater than M;

[0088] The M nodes 420 are connected to M ports of the N ports in a one-to-one correspondence, and P ports of the N ports that are not connected to the M nodes 420 are connected to P network interfaces of the M network interfaces 430 in a one-to-one correspondence, and the M network interfaces 430 are used to access network cables, and P is a positive integer less than or equal to M;

[0089] The M nodes 420 are used to obtain access status of corresponding network interfaces among the M network interfaces 430, where the access status is used to indicate whether the network interface is connected to a network cable;

[0090] The M nodes 420 are further configured to select one of the at least two network interfaces as the target network interface when P is greater than or equal to 2 and it is determined based on the access situation that at least two network interfaces among the P network interfaces 430 are connected to the network cable;

[0091] The M nodes 420 are further configured to open the target network interface, and close other network interfaces among the at least two network interfaces except the target network interface.

[0092] In some feasible implementations, each node among the M nodes 420 is used to obtain the access status of the corresponding network interface among the M network interfaces 430; the master node among the M nodes 420 is used to obtain the access status of each network interface among the M network interfaces 430 from each node among the M nodes 420.

[0093] In some feasible implementations, the multi-node service 400 also includes a CPLD chip 440, which connects each of the M nodes 420; each of the M nodes 420 is used to send the access status of the corresponding network interface to the CPLD chip 440; and the master node is used to obtain the access status of each of the M network interfaces 430 from the CPLD chip 440.

[0094] In some feasible implementations, the master node is further configured to open the target network interface, and close other network interfaces among the at least two network interfaces except the target network interface.

[0095] In some feasible implementations, each of the M network interfaces 430 includes a physical layer chip and a registered socket RJ45 interface, and each of the M nodes 420 is respectively connected to a physical layer chip, wherein the physical layer chip and the RJ45 interface are correspondingly connected; each of the M nodes 420 is also used to obtain the link status of the corresponding physical layer chip in the M network interfaces 430, wherein the connection status is connected or not connected, and the link status is used as the access status to obtain the access status of each of the M network interfaces 430.

[0096] It should be noted that the information interaction, execution process, etc. between the modules / units of the above-mentioned device are based on the same concept as the method embodiment of the present application, and the technical effects they bring are the same as those of the method embodiment of the present application. For specific contents, please refer to the description in the method embodiment shown above in the present application, and will not be repeated here.

[0097] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a program, and the program executes some or all of the steps recorded in the above method embodiment.

[0098] Next, another communication device provided by the embodiment of the present application is introduced. Figure 5 As shown, the communication device 500 includes:

[0099] Receiver 501, transmitter 502, processor 503 and memory 504. In some embodiments of the present application, the receiver 501, transmitter 502, processor 503 and memory 504 may be connected via a bus or other means, wherein: Figure 5 The example of connecting through bus is taken in the following.

[0100] The memory 504 may include a read-only memory and a random access memory, and provides instructions and data to the processor 503. A portion of the memory 504 may also include a non-volatile random access memory (NVRAM). The memory 504 stores an operating system and operating instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, wherein the operating instructions may include various operating instructions for implementing various operations. The operating system may include various system programs for implementing various basic services and processing hardware-based tasks.

[0101] The processor 503 controls the operation of the communication device 500, and the processor 503 may also be referred to as a central processing unit (CPU). In a specific application, the various components of the communication device 500 are coupled together through a bus system, wherein the bus system may include a power bus, a control bus, and a status signal bus in addition to a data bus. However, for the sake of clarity, various buses are referred to as bus systems in the figure.

[0102] The method disclosed in the above embodiment of the present application can be applied to the processor 503, or implemented by the processor 503. The processor 503 can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 503. The above processor 503 can be a general processor, a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field programmable gate array (field-programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to execute, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 504, and the processor 503 reads the information in the memory 504 and completes the steps of the above method in combination with its hardware.

[0103] The receiver 501 may be used to receive input digital or character information and generate signal input related to relevant settings and function control. The transmitter 502 may include a display device such as a display screen. The transmitter 502 may be used to output digital or character information through an external interface.

[0104] In the embodiment of the present application, the processor 503 is used to execute the aforementioned network interface control method.

[0105] In another possible design, when the multi-node server 400 and the communication device 500 are chips, they include: a processing unit and a communication unit, wherein the processing unit may be, for example, a processor, and the communication unit may be, for example, an input / output interface, a pin or a circuit, etc. The processing unit may execute computer-executable instructions stored in the storage unit so that the chip in the terminal executes the method for sending wireless report information of any one of the above-mentioned first aspects. Optionally, the storage unit is a storage unit in the chip, such as a register, a cache, etc., and the storage unit may also be a storage unit in the terminal located outside the chip, such as a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM), etc.

[0106] The processor mentioned in any of the above places may be a general-purpose central processing unit, a microprocessor, an ASIC, or one or more integrated circuits for controlling the execution of the program of the above method.

[0107] It should also be noted that the device embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that there is a communication connection between them, which may be specifically implemented as one or more communication buses or signal lines.

[0108] Through the description of the above implementation mode, the technicians in the field can clearly understand that the present application can be implemented by means of software plus necessary general hardware, and of course, it can also be implemented by special hardware including application-specific integrated circuits, special CPUs, special memories, special components, etc. In general, all functions completed by computer programs can be easily implemented with corresponding hardware, and the specific hardware structure used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits. However, for the present application, software program implementation is a better implementation mode in more cases. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer floppy disk, a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0109] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.

[0110] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)), etc.

Claims

1. A multi-node server, characterized in that: include: A switching chip module, at least M nodes and at least M network interfaces, wherein the switching chip module includes N ports; The M nodes are connected to M ports among the N ports in a one-to-one correspondence, and P ports among the N ports that are not connected to the M nodes are connected to P network interfaces among the M network interfaces in a one-to-one correspondence. The M network interfaces are used to access network cables, and P is a positive integer less than or equal to M.

2. The multi-node server according to claim 1, characterized in that: The switching chip module includes two connected switching chips, the first switching chip is connected to the M nodes, and the second switching chip is connected to the M network interfaces.

3. The multi-node server according to claim 1, characterized in that: The multi-node service further includes a CPLD chip, the CPLD chip is connected to each of the M nodes, and the CPLD chip is used to obtain access status of each of the M network interfaces.

4. The multi-node server according to claim 2, characterized in that: The M network interfaces respectively include a physical layer chip and a registered socket RJ45 interface, each of the physical layer chips is respectively connected to a port of the second switching chip, and the physical layer chip and the RJ45 interface are respectively connected to each other.

5. The multi-node server according to claim 2, characterized in that: There are 4 nodes and 4 network interfaces. The first switching chip includes 4 ports and the second switching chip includes 4 ports. The 4 ports of the first switching chip are respectively connected to the 4 nodes in a one-to-one correspondence, and the 4 ports of the second switching chip are respectively connected to the 4 network interfaces in a one-to-one correspondence.

6. The multi-node server according to any one of claims 1 to 5, characterized in that: At least one of the nodes is used to determine a target network interface according to the access status of each network interface among the M network interfaces, open the target network interface, and close other network interfaces except the target network interface.

7. A multi-node server, characterized in that: include: A switching chip module, multiple nodes and multiple network interfaces, the multiple nodes are connected to the switching chip module, the multiple network interfaces are connected to the switching chip module, the multiple network interfaces are used to access network cables, and the multi-node server does not include a management board.

8. The multi-node server according to claim 7, characterized in that: The switching chip module includes two connected switching chips, the multiple nodes are connected to the first switching chip, the multiple network interfaces are connected to the second switching chip, and the multiple network interfaces are used to access network cables.

9. The multi-node server according to claim 7, characterized in that: The multi-node service further includes a CPLD chip, the CPLD chip is connected to each of the multiple nodes, and the CPLD chip is used to obtain access status of each of the multiple network interfaces.

10. The multi-node server according to claim 8, characterized in that: There are 4 nodes and 4 network interfaces. The first switching chip includes 4 ports and the second switching chip includes 4 ports. The 4 ports of the first switching chip are respectively connected to the 4 nodes in a one-to-one correspondence, and the 4 ports of the second switching chip are respectively connected to the 4 network interfaces in a one-to-one correspondence.

11. The multi-node server according to any one of claims 7 to 10, characterized in that: At least one of the nodes is used to determine a target network interface according to the access status of each network interface among the multiple network interfaces, open the target network interface, and close other network interfaces except the target network interface.