A server network configuration method and system

By identifying the loopback signal and automatically configuring the server network card mode and bandwidth, it solves the problems of high hardware cost and difficulty in changing circuit connections in the existing technology, and realizes low-cost and flexible server network configuration.

CN115834369BActive Publication Date: 2024-10-18INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211412458.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-11
Publication Date
2024-10-18
Estimated Expiration
2042-11-11

AI Technical Summary

Technical Problem

In the existing technology, resistors are set on the server motherboard to adapt to the single-machine mode and dual-machine mode of the network card, resulting in high hardware costs and difficulty in changing the circuit connections.

Method used

By identifying the Loopback signal between the server and the target network card, CPLD and BIOS are used to automatically configure the network card mode and bandwidth to achieve single-machine or dual-machine mode switching of the network card without the need for circuit changes on the motherboard.

Benefits of technology

It realizes server network configuration with low hardware cost, automatically determines the network card mode and bandwidth, reduces hardware cost, and simplifies the connection change process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115834369B_ABST
    Figure CN115834369B_ABST
Patent Text Reader

Abstract

The present application discloses a server network configuration method and system in the field of computer technology. After the server is powered on, the present application identifies the loopback signals of two connectors; if the loopback signals of the two connectors are the same, the target network card is configured as a single-machine mode, and the two connectors share the total bandwidth of the server; if the loopback signals of the two connectors are different, the target network card is configured as a dual-machine mode, and the bandwidth of the two connectors is the same as the total bandwidth of the server, thereby completing the network card configuration and the bandwidth configuration of the connector. This solution can realize the automatic configuration of the server network card and bandwidth, and there is no need to change the circuit on the server motherboard, and the hardware cost is low.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a server network configuration method and system. Background Art

[0002] At present, resistors are generally set on the server motherboard to adapt to the working mode of the network card connected to the server. However, for the single-machine mode and dual-machine mode of the network card, different designs need to be made on the motherboard, which results in high hardware costs and is not easy to change the circuit connection.

[0003] Therefore, how to provide a server network configuration solution with low hardware cost is a problem that those skilled in the art need to solve. Summary of the invention

[0004] In view of this, the purpose of this application is to provide a server network configuration method and system to provide a server network configuration solution with low hardware cost. The specific solution is as follows:

[0005] In a first aspect, the present application provides a server network configuration method, which is applied to a server with dual processors, comprising:

[0006] If the server is powered on, identifying loopback signals of two connectors for connecting the server and the target network card;

[0007] If the Loopback signals of the two connectors are the same, the target network card is configured to be in stand-alone mode, and the two connectors evenly share the total bandwidth of the server;

[0008] If the Loopback signals of the two connectors are different, the target network card is configured to be in dual-machine mode, and the bandwidths of the two connectors are made the same as the total bandwidth of the server.

[0009] Optionally, the identifying loopback signals of two connectors for connecting the server and the target network card includes:

[0010] The CPLD in the mainboard of the server is used to identify the loopback signals of the two connectors.

[0011] Optionally, configuring the target network card to be in a single-machine mode, or configuring the target network card to be in a dual-machine mode, includes:

[0012] The target network card is configured as a single-machine mode or a dual-machine mode using the CPLD.

[0013] Optionally, if the Loopback signals of the two connectors are the same, configuring the target network card to a stand-alone mode includes:

[0014] If the Loopback signals of the two connectors are both at low levels, the BIF of the target network card is set to a stand-alone mode flag to configure the target network card to be in stand-alone mode.

[0015] Optionally, if the Loopback signals of the two connectors are different, configuring the target network card to be in a dual-machine mode includes:

[0016] If the Loopback signal of one of the two connectors is at a high level and the Loopback signal of the other connector is at a low level, the BIF of the target network card is set to a dual-machine mode flag to configure the target network card to be in dual-machine mode.

[0017] Optionally, the bandwidth of the two connectors is configured using BIOS of the server.

[0018] Optionally, configuring the bandwidth of the two connectors by using the BIOS of the server includes:

[0019] Using the BIOS to identify a first signal and a second signal corresponding to each connector;

[0020] If the first signal and the second signal corresponding to only one connector are different, configuring the two connectors by using the BIOS to evenly divide the total bandwidth of the server;

[0021] If the first signal and the second signal corresponding to each connector are different, the bandwidth of the two connectors is configured by using the BIOS to be the same as the total bandwidth of the server.

[0022] Optionally, the server connects the two connectors through any computing unit of the first processor in itself; or the server connects one of the two connectors through any computing unit of the first processor in itself, and at the same time the server connects the other of the two connectors through any computing unit of the second processor in itself.

[0023] Optionally, both connectors are MCIO connectors.

[0024] In a second aspect, the present application provides a server network configuration system, comprising: a server provided with dual processors, and a target network card connected to the server via two connectors;

[0025] The server is used to: if it is powered on, identify the Loopback signals of the two connectors; if the Loopback signals of the two connectors are the same, configure the target network card to a single-machine mode and make the two connectors evenly share their own total bandwidth; if the Loopback signals of the two connectors are different, configure the target network card to a dual-machine mode and make the bandwidth of the two connectors the same as their own total bandwidth.

[0026] Optionally, the server connects the two connectors through any computing unit of the first processor in the server; or the server connects one of the two connectors through any computing unit of the first processor in the server, and at the same time, the server connects the other of the two connectors through any computing unit of the second processor in the server.

[0027] Optionally, both of the two connectors are MCIO connectors.

[0028] Optionally, the server is specifically configured to: utilize a CPLD in its own mainboard to identify loopback signals of the two connectors.

[0029] Optionally, the server is specifically used to: configure the target network card to be in a single-machine mode or a dual-machine mode by using a CPLD in its own mainboard.

[0030] Optionally, the server is specifically configured to: if the Loopback signals of the two connectors are both at low levels, set the BIF of the target network card to a stand-alone mode flag to configure the target network card to the stand-alone mode.

[0031] Optionally, the server is specifically used to: if the Loopback signal of one of the two connectors is high and the Loopback signal of the other connector is low, set the BIF of the target network card to a dual-machine mode flag to configure the target network card to dual-machine mode.

[0032] Optionally, the server is specifically configured to: configure the bandwidth of the two connectors using BIOS in the server.

[0033] Optionally, the server is specifically used to: use the BIOS in itself to identify the first signal and the second signal corresponding to each connector; if the first signal and the second signal corresponding to only one connector are different, use the BIOS to configure the two connectors to evenly divide the total bandwidth of the server; if the first signal and the second signal corresponding to each connector are different, use the BIOS to configure the bandwidth of the two connectors to be the same as the total bandwidth of the server.

[0034] In a third aspect, the present application provides an electronic device, including:

[0035] Memory for storing computer programs;

[0036] The processor is used to execute the computer program to implement the server network configuration method disclosed above.

[0037] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program implements the aforementioned disclosed server network configuration method when executed by a processor.

[0038] It can be seen from the above scheme that the present application provides a server network configuration method, which is applied to a server with a dual processor, including: if the server is powered on, identifying the Loopback signals of the two connectors used to connect the server and the target network card; if the Loopback signals of the two connectors are the same, configuring the target network card to a single-machine mode, and making the two connectors evenly divide the total bandwidth of the server; if the Loopback signals of the two connectors are different, configuring the target network card to a dual-machine mode, and making the bandwidth of the two connectors the same as the total bandwidth of the server.

[0039] It can be seen that the present application is aimed at a dual-processor server, and two connectors are used to connect the server and the target network card to be used. After the server is powered on, the Loopback signals of the two connectors are identified; if the Loopback signals of the two connectors are the same, the target network card is configured as a single-machine mode, and the two connectors are made to evenly divide the total bandwidth of the server; if the Loopback signals of the two connectors are different, the target network card is configured as a dual-machine mode, and the bandwidth of the two connectors is made the same as the total bandwidth of the server, thereby completing the network card configuration and the bandwidth configuration of the connector. This solution can automatically determine whether the network card is configured as a single-machine mode or a multi-machine mode by identifying the Loopback signal of the connector, and automatically configure the bandwidth based on the configuration of the network card working mode, thereby realizing the automatic configuration of the server network card and bandwidth. This solution also does not require circuit changes on the server motherboard, and the connection between the server and the network card can be completed with two connectors. Therefore, different connection schemes can be completed with one motherboard, the hardware cost is low, and the connection changes are easy.

[0040] Correspondingly, the server network configuration system and other components provided by the present application also have the above technical effects. Other components are: electronic devices or computer-readable storage media. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0042] Figure 1 A flow chart of a server network configuration method disclosed in this application;

[0043] Figure 2 A schematic diagram of the connection between a server mainboard and a network card disclosed in this application;

[0044] Figure 3 This is another schematic diagram of the connection between a server mainboard and a network card disclosed in this application;

[0045] Figure 4 A schematic diagram of a connection between a connector and a PE disclosed in this application;

[0046] Figure 5 This is a schematic diagram of an electronic device disclosed in this application. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0048] At present, the working mode of the network card connected to the server is generally adapted by setting a resistor on the server motherboard. However, for the single-machine mode and dual-machine mode of the network card, different designs need to be made on the motherboard, so the hardware cost is relatively high and it is not easy to change the circuit connection. To this end, the present application provides a server network configuration solution, which can provide a server network configuration solution with low hardware cost, can realize automatic configuration of the server network card and bandwidth, and does not need to make circuit changes on the server motherboard. The connection between the server and the network card can be completed with two connectors, so the hardware cost is low and the connection change is easy.

[0049] See also Figure 1 As shown, the embodiment of the present application discloses a server network configuration method, which is applied to a server with dual processors, including:

[0050] S101: If the server is powered on, identify loopback signals of two connectors for connecting the server and a target network card.

[0051] In this embodiment, the server connects the two connectors through any computing unit of the first processor in the server; or the server connects one of the two connectors through any computing unit of the first processor in the server, and the server connects the other of the two connectors through any computing unit of the second processor in the server. In a specific implementation, both connectors are MCIO (Mini Cooledge Input / Output purpose connector) connectors.

[0052] Typically, a processor includes multiple computing units, each of which has 0 to 15 lanes. Therefore, lanes 0 to 7 of a computing unit can be connected to one connector, while lanes 8 to 15 of the computing unit can be connected to another connector, so that one computing unit can be connected to two connectors. When a computing unit is connected to a connector, the connector connects lanes 0 to 7 or lanes 8 to 15 of the computing unit.

[0053] In one example, a CPLD (Complex Programmable Logic Device) can be set on the server motherboard to identify the loopback signal of the connector. In a specific implementation, identifying the loopback signals of the two connectors used to connect the server and the target network card includes: using the CPLD in the server motherboard to identify the loopback signals of the two connectors. Correspondingly, the CPLD on the server motherboard can also configure the working mode of the target network card, that is, the CPLD configures the target network card to a single-machine mode or a dual-machine mode. Therefore, in a specific implementation, configuring the target network card to a single-machine mode, or configuring the target network card to a dual-machine mode, includes: using the CPLD to configure the target network card to a single-machine mode or a dual-machine mode. Two connectors can also be set on the server motherboard.

[0054] S102: If the loopback signals of the two connectors are the same, configure the target network card to a stand-alone mode, and make the two connectors evenly share the total bandwidth of the server.

[0055] In a specific implementation, if the Loopback signals of the two connectors are the same, the target network card is configured to be in stand-alone mode, including: if the Loopback signals of the two connectors are both low, the BIF (bifurcation) of the target network card is set to the stand-alone mode flag to configure the target network card to be in stand-alone mode. Of course, the target network card can also be configured to be in stand-alone mode when the Loopback signals of the two connectors are both high. Among them, the stand-alone mode flag includes: BIF0=0 and BIF1=0 and BIF2=0.

[0056] S103: If the loopback signals of the two connectors are different, configure the target network card to a dual-machine mode, and make the bandwidths of the two connectors the same as the total bandwidth of the server.

[0057] In a specific implementation, if the Loopback signals of the two connectors are different, configuring the target network card to be in dual-machine mode includes: if the Loopback signal of one of the two connectors is high level and the Loopback signal of the other connector is low level, setting the BIF of the target network card to a dual-machine mode flag bit to configure the target network card to be in dual-machine mode. The dual-machine mode flag bit includes: BIF0=0, BIF1=0, and BIF2=1.

[0058] In a specific implementation, the bandwidth of the two connectors can be configured using the BIOS (Basic Input / Output Sysem) of the server. The configuration of the bandwidth of the two connectors using the BIOS of the server includes: using the BIOS to identify the first signal and the second signal corresponding to each connector; if only the first signal and the second signal corresponding to one connector are different, then using the BIOS to configure the two connectors to evenly divide the total bandwidth of the server; if the first signal and the second signal corresponding to each connector are different, then using the BIOS to configure the bandwidth of the two connectors to be the same as the total bandwidth of the server. For details of the first signal and the second signal corresponding to each connector, please refer to Table 1.

[0059] Table 1

[0060]

[0061] For a connector, its corresponding first signal is ID1 in Table 1, and its corresponding second signal is ID0 in Table 1, and the connector is connected to 0-7 lanes or 8-15 lanes of a certain computing unit PEx of a certain processor CPUx. If it is confirmed that one of the two connectors is connected to 8-15 lanes of PEx of CPUx, then the ID1 of the connector is 1 and the ID0 is 0; at the same time, the other connector of the two connectors is connected to 0-7 lanes of PEx of CPUx, and the ID1 of the other connector is 1 and the ID0 is 0, then the first signal and the second signal corresponding to the two connectors are different, indicating that the two connectors are connected to the same processor, so the BIOS is used to configure the two connectors to evenly divide the total bandwidth of the server, that is: one connector is configured with a bandwidth of x8, and the other connector is also configured with a bandwidth of x8, so that the processor connected to the connector processes data according to the total bandwidth of the server x16. If it is confirmed that one of the two connectors is connected to Lane 8-15 of PEx of CPUx, then the ID1 of the connector is 1 and the ID0 is 0; at the same time, the other connector of the two connectors is connected to Lane 8-15 of PEy of CPUy, and the ID1 of the other connector is 1 and the ID0 is 1, then only one of the two connectors has different first and second signals, indicating that the two connectors are connected to different processors. Therefore, the bandwidth of the two connectors is configured to be the same as the total bandwidth of the server using BIOS, that is, one connector is configured with a bandwidth of x16, and the other connector is also configured with a bandwidth of x16, so that the CPUx and CPUy connected to the two connectors can process data according to the total bandwidth of the server x16. Among them, the first and second signals corresponding to each connector are transmitted to the connector by the 8 Lanes of the PE it is connected to. If the first and second signals corresponding to each connector are both 1, as shown in the second to last row in Table 1, it means that the connector is not connected to the network card.

[0062] It should be noted that a processor generally includes multiple PEs, which can be connected to other PCIE devices in addition to being connected to the network card through a connector.

[0063] It can be seen that this embodiment is aimed at a dual-processor server, and two connectors are used to connect the server and the target network card to be used. After the server is powered on, the Loopback signals of the two connectors are identified; if the Loopback signals of the two connectors are the same, the target network card is configured as a single-machine mode, and the two connectors are made to share the total bandwidth of the server; if the Loopback signals of the two connectors are different, the target network card is configured as a dual-machine mode, and the bandwidth of the two connectors is made the same as the total bandwidth of the server, thereby completing the network card configuration and the bandwidth configuration of the connector. This solution can automatically determine whether the network card is configured as a single-machine mode or a multi-machine mode by identifying the Loopback signal of the connector, and automatically configure the bandwidth based on the configuration of the network card working mode, thereby realizing the automatic configuration of the server network card and bandwidth. This solution also does not require circuit changes on the server motherboard, and the connection between the server and the network card can be completed with two connectors. Therefore, different connection schemes can be completed with one motherboard, the hardware cost is low, and the connection change is easy.

[0064] See also Figure 2 As shown, the present application embodiment provides a connection scheme schematic diagram. Figure 2 As shown, in a dual-processor system, lanes 0 to 7 of a PE of CPU0 on the system motherboard are connected to a connector, and lanes 0 to 7 of a PE of CPU1 on the system motherboard are connected to another connector, and both connectors are connected to the same network card. Among them, the network card is an OCP3.0 NIC card, which can be configured with PCIE x16 bandwidth. In this connection scheme, the network card is configured as a dual-machine mode, and the bandwidth of the lines where the two connectors are located is x16. The specific configuration process includes: the CPLD on the system motherboard defines the three pin signals of the network card: BIF0, BIF1, and BIF2, so that BIF0=0, BIF1=0, and BIF2=1, so as to set the network card to dual-machine mode. The system BIOS is configured according to the working mode of the network card, and sets bifurcation for the PE connected to the network card. In this solution, the system BIOS can recognize that the connector connected to CPU1 has a 1 signal, and at the same time recognize that the connector connected to CPU0 has a 0 signal, then the system BIOS sets the bandwidth of the PE connected to the network card in CPU1 to x16, and the bandwidth of the PE connected to the network card in CPU0 is also set to x16, then the bandwidth of these two connectors is the total bandwidth of the system. This completes the configuration process.

[0065] Among them, OCP (Open Compute Project) is an open computing project.

[0066] See also Figure 3 As shown, the present application embodiment provides another connection scheme schematic diagram. Figure 3As shown, in a dual-processor system, lanes 0 to 7 of a PE of CPU0 on the system motherboard are connected to a connector, and lanes 8 to 15 of the PE of CPU0 are connected to another connector, and both connectors are connected to the same network card; CPU1 on the system motherboard is connected to other devices. Among them, the network card is an OCP 3.0 NIC card, which can be configured with PCIE x16 bandwidth. In this connection scheme, the network card is configured as a stand-alone mode, and the bandwidth of the lines where the two connectors are located is x8. The specific configuration process includes: the CPLD on the system motherboard defines the three pin signals of the network card: BIF0, BIF1, and BIF2, so that BIF0=0, BIF1=0, and BIF2=0, so as to set the network card to stand-alone mode. The system BIOS configures the working mode of the network card and sets bifurcation for the PE connected to the network card. In this solution, the system BIOS can recognize that the connector connected to CPU0 has a 0 signal, and at the same time recognize that the other connector connected to CPU0 has a 0 signal. Then the system BIOS sets the bandwidth of lanes 0 to 7 of the PE connected to the network card in CPU0 to x8, and also sets the bandwidth of lanes 8 to 15 of the PE to x8. Then the bandwidth of the two connectors is half of the total bandwidth of the system. This completes the configuration process.

[0067] It can be seen that different circuit connections are required for the network card dual-machine mode and the network card single-machine mode, but the network card configuration and network bandwidth configuration can be completed according to the same logic.

[0068] It should be noted that, please refer to Figure 4 Connect a PE of any CPU to an MCIO connector. Figure 4 As shown in the figure, a PE of the CPU controls whether lanes 0 to 7, lanes 8 to 15 of the PE are connected to the connector through the PCH (path controller) set on the motherboard, and thereby determines the ID0 signal and ID1 signal corresponding to the connector. Figure 4 Pin A8 is pulled up to 4.7K, and A26 is unconnected. When the MCIO connector is not connected to the network card, the ID0 and ID1 of lanes 0 to 7, and the ID0 and ID1 of lanes 8 to 15 are 1111. At this time, the corresponding configuration x16 is set. In the network card dual-machine mode, you can refer to Figure 4 Flexible selection allows the MCIO connector to connect to lanes 0 to 7 or lanes 8 to 15 of CPU0's PE. The connected ID will be reversed due to MOS. Another MCIO connector connects to lanes 0 to 7 or lanes 8 to 15 of another CPU1's PE, allowing the BIOS to recognize: 1110 or 0111, so that CPU0 and CPU1 each have an MCIO connector connected to the network card. In the network card stand-alone mode, you can refer to Figure 4Make one MCIO connector connected to lanes 0 to 7 of PE of CPU0 or CPU1, and make another MCIO connector connected to lanes 8 to 15 of the PE. At this time, BIOS can recognize: 1010.

[0069] Among them, in the stand-alone mode, the two A30 pins of the same PE of a CPU are connected to the CPLD on the motherboard through an external pull-up resistor, one A30 pin corresponds to the 0-7 lanes of the PE, and the other A30 pin corresponds to the 8-15 lanes of the PE, and the two A30 pins are connected to different connectors. The B30 pin on the network card is connected to the CPLD. At this time, the CPLD recognizes that the Loopback signals connected to the two connectors are both low, that is, it is considered that one PE of the same CPU is connected to two connectors, then the CPLD sets the BIF0=0, BIF1=0, and BIF2=0 of the network card to set the network card to the stand-alone mode. In the dual-machine mode, an A30 pin of a PE of one CPU is connected to the CPLD through an external pull-up resistor, and an A30 pin of a PE of another CPU is also connected to the CPLD through an external pull-up resistor. The two A30 pins are connected to different connectors. Then the CPLD can recognize that the Loopback signals of the two connectors are one high level and the other low level, so set BIF0=0, BIF1=0 and BIF2=1 of the network card to set the network card to dual-machine mode.

[0070] It can be seen that different circuit connections are required for the dual-machine mode and the single-machine mode of the network card, but based on these two different circuit connections, the network card configuration and network bandwidth configuration can be completed according to the same logic. When changing the circuit connection, the network card, CPLD, BIOS, etc. do not need to be modified in firmware. Minimum changes can be made to make the network card work in dual-machine mode or single-machine mode, making the use of the network card more flexible and lowering the hardware cost.

[0071] A server network configuration system provided in an embodiment of the present application is introduced below. The server network configuration system described below and the server network configuration method described above can be referenced to each other.

[0072] The embodiment of the present application discloses a server network configuration system, including: a server with dual processors, and a target network card connected to the server through two connectors.

[0073] The server is used to: if it is powered on, identify the Loopback signals of the two connectors; if the Loopback signals of the two connectors are the same, configure the target network card to single-machine mode and make the two connectors share their total bandwidth; if the Loopback signals of the two connectors are different, configure the target network card to dual-machine mode and make the bandwidth of the two connectors the same as their total bandwidth.

[0074] In a specific embodiment, the server connects the two connectors through any computing unit of the first processor in the server; or the server connects one of the two connectors through any computing unit of the first processor in the server, and at the same time the server connects the other of the two connectors through any computing unit of the second processor in the server.

[0075] In a specific implementation, both connectors are MCIO connectors.

[0076] In a specific implementation manner, the server is specifically configured to: utilize the CPLD in its own mainboard to identify the loopback signals of the two connectors.

[0077] In a specific implementation manner, the server is specifically used to: configure the target network card to a single-machine mode or a dual-machine mode using the CPLD in its own mainboard.

[0078] In a specific implementation, the server is specifically configured to: if the Loopback signals of the two connectors are both at low levels, set the BIF of the target network card to a stand-alone mode flag to configure the target network card to the stand-alone mode.

[0079] In a specific implementation, the server is specifically used to: if the Loopback signal of one of the two connectors is high and the Loopback signal of the other connector is low, set the BIF of the target network card to the dual-machine mode flag to configure the target network card to the dual-machine mode.

[0080] In a specific implementation, the server is specifically configured to: configure the bandwidth of the two connectors using the BIOS in the server.

[0081] In a specific implementation, the server is specifically used to: use the BIOS in the server to identify the first signal and the second signal corresponding to each connector; if the first signal and the second signal corresponding to only one connector are different, use the BIOS to configure the two connectors to evenly divide the total bandwidth of the server; if the first signal and the second signal corresponding to each connector are different, use the BIOS to configure the bandwidth of the two connectors to be the same as the total bandwidth of the server.

[0082] Among them, for more specific working processes of each module and unit in this embodiment, reference can be made to the corresponding contents disclosed in the aforementioned embodiments, which will not be repeated here.

[0083] It can be seen that this embodiment provides a server network configuration system, which can automatically determine whether the network card is configured in a single-machine mode or a multi-machine mode by identifying the loopback signal of the connector, and automatically configure the bandwidth based on the configuration of the network card working mode, thereby realizing the automatic configuration of the server network card and bandwidth. This solution also does not require circuit changes on the server motherboard, and the connection between the server and the network card can be completed with two connectors. Therefore, different connection solutions can be completed with one motherboard, the hardware cost is low, and the connection change is easy.

[0084] An electronic device provided in an embodiment of the present application is introduced below. The electronic device described below and the server network configuration method and device described above can refer to each other.

[0085] See also Figure 5 As shown, the embodiment of the present application discloses an electronic device, including:

[0086] Memory 501, used for storing computer programs;

[0087] The processor 502 is used to execute the computer program to implement the method disclosed in any of the above embodiments.

[0088] Furthermore, an embodiment of the present application also provides a server as the above-mentioned electronic device. The server may specifically include: at least one processor, at least one memory, a power supply, a communication interface, an input / output interface, and a communication bus. The memory is used to store a computer program, and the computer program is loaded and executed by the processor to implement the relevant steps in the server network configuration method disclosed in any of the above-mentioned embodiments.

[0089] In this embodiment, the power supply is used to provide working voltage for each hardware device on the server; the communication interface can create a data transmission channel between the server and external devices, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited here; the input and output interface is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs and is not specifically limited here.

[0090] In addition, the memory as a carrier for resource storage can be a read-only memory, random access memory, disk or CD, etc. The resources stored thereon include operating system, computer programs and data, etc. The storage method can be temporary storage or permanent storage.

[0091] The operating system is used to manage and control the hardware devices and computer programs on the server to realize the operation and processing of the data in the memory by the processor, and it can be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the server network configuration method disclosed in any of the aforementioned embodiments, the computer program can further include computer programs that can be used to complete other specific tasks. In addition to data such as virtual machines, data can also include data such as the developer information of the virtual machine.

[0092] Furthermore, the embodiment of the present application also provides a terminal as the above electronic device. The terminal may specifically include but is not limited to a smart phone, a tablet computer, a laptop computer or a desktop computer.

[0093] Generally, the terminal in this embodiment includes: a processor and a memory.

[0094] Among them, the processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor can be implemented in at least one hardware form of DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). The processor may also include a main processor and a coprocessor. The main processor is a processor for processing data in the awake state, also known as a processor (Central Processing Unit); the coprocessor is a low-power processor for processing data in the standby state. In some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the display screen. In some embodiments, the processor may also include an AI (Artificial Intelligence) processor, which is used to process computing operations related to machine learning.

[0095] The memory may include one or more computer-readable storage media, which may be non-transitory. The memory may also include high-speed random access memory, and non-volatile memory, such as one or more disk storage devices, flash memory storage devices. In this embodiment, the memory is at least used to store the following computer program, wherein, after the computer program is loaded and executed by the processor, it can implement the relevant steps in the server network configuration method performed by the terminal side disclosed in any of the aforementioned embodiments. In addition, the resources stored in the memory may also include an operating system and data, etc., and the storage method may be temporary storage or permanent storage. Among them, the operating system may include Windows, Unix, Linux, etc. The data may include, but is not limited to, update information of the application.

[0096] In some embodiments, the terminal may also include a display screen, an input and output interface, a communication interface, a sensor, a power supply, and a communication bus.

[0097] A computer-readable storage medium provided in an embodiment of the present application is introduced below. The computer-readable storage medium described below and the server network configuration method, apparatus, and device described above can be referenced to each other.

[0098] A computer-readable storage medium is used to store a computer program, wherein the computer program, when executed by a processor, implements the server network configuration method disclosed in the above-mentioned embodiment.

[0099] The "first", "second", "third", "fourth", etc. (if any) referred to in this application are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods or devices.

[0100] It should be noted that the descriptions involving "first", "second", etc. in this application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0101] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0102] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of computer-readable storage medium known in the art.

[0103] Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.

Claims

1. A server network configuration method, characterized in that: Applies to servers with dual processors, including: If the server is powered on, identifying loopback signals of two connectors for connecting the server and the target network card; If the Loopback signals of the two connectors are the same, the target network card is configured to be in stand-alone mode, and the two connectors evenly share the total bandwidth of the server; If the loopback signals of the two connectors are different, the target network card is configured to be in dual-machine mode, and the bandwidth of the two connectors is made the same as the total bandwidth of the server; If the Loopback signals of the two connectors are the same, configuring the target network card to a stand-alone mode includes: If the Loopback signals of the two connectors are both at low levels, the BIF of the target network card is set to a stand-alone mode flag to configure the target network card to be in stand-alone mode; If the Loopback signals of the two connectors are different, configuring the target network card to be in dual-machine mode includes: If the Loopback signal of one of the two connectors is at a high level and the Loopback signal of the other connector is at a low level, the BIF of the target network card is set to a dual-machine mode flag to configure the target network card to be in dual-machine mode.

2. The server network configuration method according to claim 1, characterized in that: The identifying loopback signal of two connectors for connecting the server and the target network card includes: The CPLD in the mainboard of the server is used to identify the loopback signals of the two connectors.

3. The server network configuration method according to claim 2, characterized in that: The configuring the target network card to be in a single-machine mode, or the configuring the target network card to be in a dual-machine mode, includes: The target network card is configured as a single-machine mode or a dual-machine mode using the CPLD.

4. The server network configuration method according to any one of claims 1 to 3, characterized in that: The bandwidth of the two connectors is configured using the BIOS of the server.

5. The server network configuration method according to claim 4, characterized in that: The configuring the bandwidth of the two connectors by using the BIOS of the server includes: Using the BIOS to identify a first signal and a second signal corresponding to each connector; If the first signal and the second signal corresponding to only one connector are different, configuring the two connectors by using the BIOS to evenly divide the total bandwidth of the server; If the first signal and the second signal corresponding to each connector are different, the bandwidth of the two connectors is configured by using the BIOS to be the same as the total bandwidth of the server.

6. A server network configuration system, characterized in that: include: A server having a dual processor and a target network card connected to the server via two connectors; The server is used to: if powered on, identify the loopback signals of the two connectors; If the Loopback signals of the two connectors are the same, the target network card is configured to be in single-machine mode, and the two connectors evenly divide their own total bandwidth; if the Loopback signals of the two connectors are different, the target network card is configured to be in dual-machine mode, and the bandwidth of the two connectors is the same as their own total bandwidth; If the Loopback signals of the two connectors are the same, configuring the target network card to a stand-alone mode includes: If the Loopback signals of the two connectors are both at low levels, the BIF of the target network card is set to a stand-alone mode flag to configure the target network card to be in stand-alone mode; If the Loopback signals of the two connectors are different, configuring the target network card to be in dual-machine mode includes: If the Loopback signal of one of the two connectors is at a high level and the Loopback signal of the other connector is at a low level, the BIF of the target network card is set to a dual-machine mode flag to configure the target network card to be in dual-machine mode.

7. The server network configuration system according to claim 6, characterized in that: The server connects the two connectors through any computing unit of the first processor in the server; or the server connects one of the two connectors through any computing unit of the first processor in the server, and at the same time the server connects the other of the two connectors through any computing unit of the second processor in the server.

8. The server network configuration system according to claim 6, characterized in that: The two connectors are both MCIO connectors.

Citation Information

Patent Citations

  • Signal testing device

    CN108153630A

  • Method and device for realizing network address translation loopback under linux system and storage medium

    CN109889620A