CN115834369A - Server network configuration method and system - Google Patents

Server network configuration method and system Download PDF

Info

Publication number
CN115834369A
CN115834369A CN202211412458.9A CN202211412458A CN115834369A CN 115834369 A CN115834369 A CN 115834369A CN 202211412458 A CN202211412458 A CN 202211412458A CN 115834369 A CN115834369 A CN 115834369A
Authority
CN
China
Prior art keywords
server
connectors
network card
target network
configuring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211412458.9A
Other languages
Chinese (zh)
Inventor
高名铎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211412458.9A priority Critical patent/CN115834369A/en
Publication of CN115834369A publication Critical patent/CN115834369A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The application discloses a server network configuration method and a server network configuration system in the technical field of computers. After a server is started, the Loopback signals of two connectors are identified; if the Loopback signals of the two connectors are the same, configuring the target network card to be in a single machine mode, and enabling the two connectors to equally divide 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 a dual-computer mode, and the bandwidth of the two connectors is the same as the total bandwidth of the server, so that the network card configuration and the bandwidth configuration of the connectors can be completed. The scheme can realize the automatic configuration of the network card and the bandwidth of the server, does not need to change circuits on a mainboard of the server, and has low hardware cost.

Description

Server network configuration method and system
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and a system for configuring a server network.
Background
Currently, the operating mode of the network card connected to the server is generally adapted by setting a resistor on the server motherboard. Different designs need to be carried out on the mainboard aiming at the single machine mode and the double machine mode of the network card, so that the hardware cost is higher, and the circuit connection change is not easy to carry out.
Therefore, how to provide a server network configuration scheme with low hardware cost is a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of this, an object of the present application is to provide a method and a system for configuring a server network, so as to provide a server network configuration scheme with low hardware cost. The specific scheme is as follows:
in a first aspect, the present application provides a server network configuration method, applied to a server provided with dual processors, including:
if the server is started, identifying a Loopback signal of two connectors for connecting the server and the target network card;
if the Loopback signals of the two connectors are the same, configuring the target network card to be in a single machine mode, and enabling the two connectors to equally divide the total bandwidth of the server;
and if the Loopback signals of the two connectors are different, configuring the target network card to be in a dual-computer mode, and enabling the bandwidth of the two connectors to be the same as the total bandwidth of the server.
Optionally, the identifying a Loopback signal for connecting two connectors of the server and the target network card includes:
and identifying the Loopback signals of the two connectors by using a CPLD in a mainboard of the server.
Optionally, the configuring the target network card to be in a single-computer mode, or the configuring the target network card to be in a dual-computer mode includes:
and the target network card is configured to be in a single machine mode or a double machine mode by utilizing the CPLD.
Optionally, if the Loopback signals of the two connectors are the same, configuring the target network card to be in a standalone mode includes:
and if the Loopback signals of the two connectors are both low level, setting the BIF of the target network card as a single-machine mode flag bit so as to configure the target network card to be in a single-machine mode.
Optionally, if the Loopback signals of the two connectors are different, configuring the target network card to be in a dual-computer mode, including:
and 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, setting the BIF of the target network card as a dual-computer mode flag bit so as to configure the target network card to be in a dual-computer mode.
Optionally, the bandwidth of the two connectors is configured using the BIOS of the server.
Optionally, the configuring the bandwidths of the two connectors by using the BIOS of the server includes:
identifying a first signal and a second signal corresponding to each connector by using the BIOS;
if the first signal and the second signal corresponding to only one connector are different, the BIOS is used for configuring the two connectors to equally divide the total bandwidth of the server;
and if the first signal and the second signal corresponding to each connector are different, configuring the bandwidth of the two connectors by using the BIOS to be the same as the total bandwidth of the server.
Optionally, the server is connected with the two connectors through any arithmetic unit of the first processor in the server; or the server is connected with one of the two connectors through any arithmetic unit of the first processor in the server, and simultaneously the server is connected with the other connector through any arithmetic unit of the second processor in the server.
Optionally, both connectors are MCIO connectors.
In a second aspect, the present application provides a server network configuration system, comprising: the system comprises a server provided with double processors and a target network card connected with the server through two connectors;
the server is configured to: if the power is started, recognizing the Loopback signals of the two connectors; if the Loopback signals of the two connectors are the same, configuring the target network card to be in a single machine mode, and enabling the two connectors to equally divide the total bandwidth of the two connectors; and if the Loopback signals of the two connectors are different, configuring the target network card to be in a dual-computer mode, and enabling the bandwidths of the two connectors to be the same as the total bandwidth of the two connectors.
Optionally, the server is connected with the two connectors through any arithmetic unit of a first processor in the server; or the server is connected with one of the two connectors through any arithmetic unit of a first processor in the server, and simultaneously the server is connected with the other connector through any arithmetic unit of a second processor in the server.
Optionally, the two connectors are both MCIO connectors.
Optionally, the server is specifically configured to: and identifying the Loopback signals of the two connectors by using the CPLD in the mainboard of the device.
Optionally, the server is specifically configured to: and configuring the target network card into a single-machine mode or a double-machine mode by using the CPLD in the mainboard of the target network card.
Optionally, the server is specifically configured to: and if the Loopback signals of the two connectors are both low level, setting the BIF of the target network card as a single-machine mode flag bit so as to configure the target network card to be in a single-machine mode.
Optionally, the server is specifically configured to: and 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, setting the BIF of the target network card as a dual-computer mode flag bit so as to configure the target network card to be in a dual-computer mode.
Optionally, the server is specifically configured to: configuring the bandwidth of the two connectors by using the BIOS in the connector.
Optionally, the server is specifically configured to: identifying a first signal and a second signal corresponding to each connector by using a BIOS in the BIOS; if the first signal and the second signal corresponding to only one connector are different, the BIOS is used for configuring the two connectors to equally divide the total bandwidth of the server; and if the first signal and the second signal corresponding to each connector are different, configuring the bandwidth of the two connectors by using the BIOS to be the same as the total bandwidth of the server.
In a third aspect, the present application provides an electronic device, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the server network configuration method disclosed in the foregoing.
In a fourth aspect, the present application provides a computer readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the server network configuration method disclosed above.
According to the above scheme, the present application provides a server network configuration method, applied to a server with dual processors, including: if the server is started, identifying a Loopback signal of two connectors for connecting the server and the target network card; if the Loopback signals of the two connectors are the same, configuring the target network card to be in a single machine mode, and enabling the two connectors to equally divide the total bandwidth of the server; and if the Loopback signals of the two connectors are different, configuring the target network card to be in a dual-computer mode, and enabling the bandwidths of the two connectors to be the same as the total bandwidth of the server.
It can be seen that the present application is directed to a dual processor server, which utilizes two connectors to connect the server to its intended target network card. After the server is started, recognizing Loopback signals of the two connectors; if the Loopback signals of the two connectors are the same, configuring the target network card to be in a single-machine mode, and enabling the two connectors to equally divide 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 a dual-computer mode, and the bandwidth of the two connectors is the same as the total bandwidth of the server, so that the network card configuration and the bandwidth configuration of the connectors can be completed. The scheme can enable the server to automatically determine whether the network card is configured into a single-computer mode or a multi-computer mode by identifying a Loopback signal of the connector, and automatically configure the bandwidth based on the configuration of the working mode of the network card, thereby realizing the automatic configuration of the network card and the bandwidth of the server. The scheme does not need to change circuits on a server mainboard, and the connection between the server and the network card can be completed by using two connectors, so that different connection schemes can be completed by using one mainboard, the hardware cost is low, and the connection change is easy to perform.
Accordingly, the server network configuration system and other components provided by the application also have the technical effects. The other components are: an electronic device or a computer-readable storage medium.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of a server network configuration method disclosed herein;
fig. 2 is a schematic connection diagram of a server motherboard and a network card disclosed in the present application;
fig. 3 is a schematic diagram illustrating connection between another server motherboard and a network card disclosed in the present application;
FIG. 4 is a schematic diagram of a connector and PE disclosed herein;
fig. 5 is a schematic diagram of an electronic device disclosed in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
At present, the working mode of the network card connected to the server is generally adapted by setting a resistor on the server motherboard. Different designs need to be carried out on the mainboard aiming at the single machine mode and the double machine mode of the network card, so that the hardware cost is higher, and the circuit connection change is not easy to carry out. Therefore, the server network configuration scheme can be provided, the server network configuration scheme with low hardware cost can be provided, the automatic configuration of the network card and the bandwidth of the server can be realized, circuit change on a server mainboard is not needed, and the connection between the server and the network card can be completed by using two connectors, so that the hardware cost is low, and the connection change is easy to perform.
Referring to fig. 1, an embodiment of the present application discloses a server network configuration method, which is applied to a server provided with dual processors, and includes:
s101, if the server is started, identifying a Loopback signal of two connectors for connecting the server and the target network card.
In the embodiment, the server is connected with the two connectors through any arithmetic unit of the first processor in the server; or the server is connected with one of the two connectors through any arithmetic unit of the first processor in the server, and simultaneously the server is connected with the other connector through any arithmetic unit of the second processor in the server. In one embodiment, both connectors are MCIO (Mini Cooled Input/Output power connector) connectors.
Typically, a processor includes a plurality of arithmetic units, with 0 to 15 lanes for each arithmetic unit. Therefore, 0 to 7lane of one arithmetic unit can be connected to one connector, and 8 to 15lane of the arithmetic unit can be connected to the other connector, whereby two connectors can be connected to one arithmetic unit. When an arithmetic unit is connected to a connector, the connector connects 0 to 7lane or 8 to 15lane of the arithmetic unit.
In one example, a CPLD (Complex Programmable Logic Device) may be provided on the server motherboard to identify the Loopback signal of the connector. In one embodiment, identifying a Loopback signal for connecting two connectors of a server and a target network card comprises: and identifying the Loopback signals of the two connectors by using the CPLD in the mainboard of the server. Correspondingly, the CPLD on the server motherboard may also configure the operating mode of the target network card, that is: the CPLD configures the target network card to be in a single machine mode or a double machine mode. Therefore, in a specific embodiment, configuring the target network card to be in a single-computer mode, or configuring the target network card to be in a dual-computer mode includes: and configuring the target network card into a single machine mode or a double machine mode by utilizing the CPLD. The two connectors may also be disposed on the server motherboard.
And S102, if the Loopback signals of the two connectors are the same, configuring the target network card to be in a single machine mode, and enabling the two connectors to equally divide the total bandwidth of the server.
In one embodiment, if the Loopback signals of the two connectors are the same, configuring the target network card to be in a standalone mode includes: if the Loopback signals of the two connectors are both low level, the BIF (bifurcation) of the target network card is set as the single-machine mode flag bit to configure the target network card to be in single-machine mode. Of course, the target network card may be configured to be in the stand-alone mode when the Loopback signals of the two connectors are both at the high level. Wherein, the single machine mode flag bit includes: BIF0=0 and BIF1=0 and BIF2=0.
S103, if the Loopback signals of the two connectors are different, the target network card is configured to be in a dual-computer mode, and the bandwidth of the two connectors is the same as the total bandwidth of the server.
In one embodiment, if the Loopback signals of the two connectors are different, configuring the target network card to be in a dual-host 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 as a dual-computer mode flag bit to configure the target network card to be in a dual-computer mode. Wherein, the double machine mode flag bit includes: BIF0=0 and BIF1=0 and BIF2=1.
In one embodiment, the bandwidth of both connectors can be configured using the server's BIOS (Basic Input/Output Sysem). The method for configuring the bandwidths of the two connectors by using the BIOS of the server comprises the following steps: identifying a first signal and a second signal corresponding to each connector by using the BIOS; if the first signal and the second signal corresponding to only one connector are different, the total bandwidth of the server is equally divided by using the BIOS to configure the two connectors; if the first signal and the second signal corresponding to each connector are different, the bandwidth of the two connectors configured by the BIOS is the same as the total bandwidth of the server. The first signal and the second signal corresponding to each connector are specifically shown in table 1.
TABLE 1
Figure BDA0003939238340000071
One connector is associated with the first signal ID1 in table 1 and the second signal ID0 in table 1, and is connected to 0 to 7lane or 8 to 15lane of a certain arithmetic unit PEx of a certain processor CPUx. If one of the two connectors is confirmed to be connected to 8-15 Lane of PEx of CPUx, ID1 of the connector takes 1 and ID0 takes 0; meanwhile, the other of the two connectors is connected to 0 to 7Lane of PEx of CPUx, and ID1 of the other connector is 1 and ID0 is 0, then the first signal and the second signal corresponding to the two connectors are different, which means that the two connectors are connected to the same processor, and thus the two connectors are configured by using BIOS to equally 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 with the connector performs data processing according to the total bandwidth of x16 of the server. If one of the two connectors is confirmed to be connected to 8-15 Lane of PEx of CPUx, ID1 of the connector takes 1 and ID0 takes 0; meanwhile, the other connector of the two connectors is connected with 8-15 Lane of PEy of the CPUy, and ID1 of the other connector is 1 and ID0 of the other connector is 1, then the first signal and the second signal corresponding to only one connector of the two connectors are different, which means that the two connectors are connected with different processors, so that the bandwidth of the two connectors is configured to be the same as the total bandwidth of the server by using BIOS, namely: 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 with the two connectors perform data processing according to the total bandwidth of x16 of the server. Wherein, the first signal and the second signal corresponding to each connector are transmitted to the connector by the 8 Lanes of the PE connected to the connector. If the first signal and the second signal corresponding to each connector are both 1, as shown in the 2 nd last row in table 1, it indicates that the connector is not connected with a network card.
It should be noted that, a processor generally includes a plurality of PEs, and these PEs may be connected to other PCIE devices in addition to the network card through the connector.
It can be seen that the present embodiment is directed to a dual-processor server, and two connectors are used to connect the server and a target network card to be used by the server. After the server is started, recognizing Loopback signals of the two connectors; if the Loopback signals of the two connectors are the same, configuring the target network card to be in a single machine mode, and enabling the two connectors to equally divide 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 a dual-computer mode, and the bandwidth of the two connectors is the same as the total bandwidth of the server, so that the network card configuration and the bandwidth configuration of the connectors can be completed. The scheme can enable the server to automatically determine whether the network card is configured into a single-computer mode or a multi-computer mode by identifying a 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 network card and the bandwidth of the server. The scheme does not need to change circuits on a server mainboard, and the connection between the server and the network card can be completed by using two connectors, so that different connection schemes can be completed by using one mainboard, the hardware cost is low, and the connection change is easy to perform.
Referring to fig. 2, an embodiment of the present application provides a schematic diagram of a connection scheme. As shown in fig. 2, in the dual-processor system, 0 to 7lane of one PE of CPU0 on the system board is connected to one connector, 0 to 7lane of one PE of CPU1 on the system board is connected to the other connector, and both connectors are connected to the same network card. The network card is an OCP 3.0NIC card, and PCIE x16 bandwidth can be configured. In this connection scheme, the network card is configured in a dual-machine mode, and the bandwidths of the lines where the two connectors are located are both x16. The specific configuration process comprises the following steps: the CPLD on the system motherboard defines 3 pin signals of the network card: BIF0, BIF1, BIF2, BIF0=0, BIF1=0, and BIF2=1, so as to set the network card to the dual-machine mode. In the scheme, the system BIOS can identify that a connector connected with a CPU1 has a 1 signal, and simultaneously identifies that a connector connected with a CPU0 has a 0 signal, the system BIOS sets the bandwidth of the PE connected with the network card in the CPU1 to be x16, sets the bandwidth of the PE connected with the network card in the CPU0 to be x16, and sets the bandwidths of the two connectors to be the total bandwidth of the system. Thereby completing the configuration flow.
The OCP (Open computer Project) is an Open computing Project.
Referring to fig. 3, another schematic diagram of a connection scheme is provided in the embodiment of the present application. As shown in fig. 3, in the dual-processor system, 0 to 7lane of a PE of CPU0 on the system board are connected to one connector, 8 to 15lane of the PE of CPU0 are connected to another connector, and both connectors are connected to the same network card; the CPU1 on the system mainboard is connected with other equipment. The network card is an OCP 3.0NIC card, and PCIE x16 bandwidth can be configured. In this connection scheme, the network card is configured in a single-machine mode, and the bandwidth of the line on which the two connectors are located is x8. The specific configuration process comprises the following steps: the CPLD on the system motherboard defines 3 pin signals of the network card: BIF0, BIF1, BIF2, BIF0=0 and BIF1=0 and BIF2=0, to set the network card to the standalone mode. In the scheme, the system BIOS can identify that a connector connected with a CPU0 has a 0 signal, and simultaneously identify that the other connector connected with the CPU0 has a 0 signal, the system BIOS sets the bandwidth of 0-7 lane of the PE connected with the network card in the CPU0 to be x8, sets the bandwidth of 8-15 lane of the PE to be x8, and sets the bandwidth of the two connectors to be half of the total bandwidth of the system. Thereby completing the configuration flow.
Therefore, different circuit connections are required to be performed for the network card dual-computer mode and the network card single-computer mode, but the network card configuration and the network bandwidth configuration can be completed according to the same logic.
It should be noted that one PE of any CPU can be connected to one MCIO connector with reference to fig. 4. As shown in fig. 4, a PE of the CPU controls whether 0 to 7lane and 8 to 15lane of the PE communicate with the connector through a PCH (path controller) provided on the motherboard, and thereby determines the ID0 signal and the ID1 signal corresponding to the connector. Pulling up 4.7K and A26 pins A8 in FIG. 4 to be connected in an air-to-air manner, when the MCIO connector is not connected with a network card, ID0 and ID1 of 0-7 lane and ID0 and ID1 of 8-15 lane take the following values: 1111, at which time the corresponding configuration x16 is set. In the network card dual-machine mode, referring to fig. 4, it can be flexibly selected to let the MCIO connector connect to 0 to 7lane or 8 to 15lane of PE of CPU0, the connected ID will be reversed by MOS, and another MCIO connector connects to 0 to 7lane or 8 to 15lane of PE of another CPU1, so that the BIOS recognizes: 1110 or 0111 so that CPU0 and CPU1 each have an MCIO connector to the network card. In the network card single mode, referring to fig. 4, one MCIO connector may be connected to 0 to 7lane of a PE of CPU0 or CPU1, and another MCIO connector may be connected to 8 to 15lane of the PE, at this time, the BIOS may identify: 1010.
in the single-machine mode, two a30 pins of the same PE of one CPU are connected to a CPLD on the motherboard through an external pull-up resistor, one a30 pin corresponds to 0 to 7lane of the PE, the other a30 pin corresponds to 8 to 15lane of the PE, and the two a30 pins are connected to different connectors. The pin B30 of the network card is connected to the CPLD, and at this time, the CPLD recognizes that the Loopback signals connected to the two connectors are both at a low level, that is, it is considered that one PE of the same CPU is connected to the two connectors, and then the CPLD sets BIF0=0, BIF1=0, and BIF2=0 of the network card, so as to set the network card to the standalone mode. And in the dual-computer mode, one a30 pin of one PE of one CPU is connected to the CPLD through an external pull-up resistor, one a30 pin of one PE of another CPU is also connected to the CPLD through an external pull-up resistor, and the two a30 pins are connected to different connectors, so that the CPLD can recognize that the Loopback signals of the two connectors are high level and low level, so that BIF0=0 and BIF1=0 and BIF2=1 of the network card are set, so as to set the network card to the dual-computer mode.
Therefore, different circuit connections are required for the network card dual-machine mode and the network card single-machine mode, but based on the two different circuit connections, the network card configuration and the network bandwidth configuration can be completed according to the same logic. When the circuit connection is changed, the network card, the CPLD, the BIOS and the like do not need to change the firmware, and the network card can work in a dual-machine mode or a single-machine mode by changing the firmware to the minimum degree, so that the use of the network card is more flexible, and the hardware cost is lower.
In the following, a server network configuration system provided by the embodiment of the present application is introduced, and the server network configuration system described below and the server network configuration method described above may be referred to each other.
The embodiment of the application discloses a server network configuration system, which comprises: the system comprises a server provided with double processors and a target network card connected with the server through two connectors.
The server is used for: if the power is started, recognizing the Loopback signals of the two connectors; if the Loopback signals of the two connectors are the same, configuring the target network card to be in a single-machine mode, and enabling the two connectors to equally divide the total bandwidth of the two connectors; if the Loopback signals of the two connectors are different, the target network card is configured to be in a dual-computer mode, and the bandwidth of the two connectors is the same as the total bandwidth of the two connectors.
In a specific embodiment, the server is connected with the two connectors through any arithmetic unit of the first processor in the server; or the server is connected with one of the two connectors through any arithmetic unit of the first processor in the server, and simultaneously the server is connected with the other connector through any arithmetic unit of the second processor in the server.
In one embodiment, both connectors are MCIO connectors.
In a specific embodiment, the server is specifically configured to: and identifying the Loopback signals of the two connectors by using the CPLD in the mainboard.
In a specific embodiment, the server is specifically configured to: and configuring the target network card into a single-machine mode or a double-machine mode by using the CPLD in the mainboard of the host computer.
In a specific embodiment, the server is specifically configured to: if the Loopback signals of the two connectors are both low level, the BIF of the target network card is set as a single-machine mode flag bit to configure the target network card to be in a single-machine mode.
In a specific embodiment, the server is specifically configured to: 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 as a dual-computer mode flag bit to configure the target network card to be in a dual-computer mode.
In a specific embodiment, the server is specifically configured to: the bandwidth of both connectors is configured with the BIOS in itself.
In a specific embodiment, the server is specifically configured to: identifying a first signal and a second signal corresponding to each connector by using a BIOS in the BIOS; if the first signal and the second signal corresponding to only one connector are different, the total bandwidth of the server is equally divided by using the BIOS to configure the two connectors; if the first signal and the second signal corresponding to each connector are different, the bandwidth of the two connectors configured by the BIOS is the same as the total bandwidth of the server.
For more specific working processes of each module and unit in this embodiment, reference may be made to corresponding contents disclosed in the foregoing embodiments, and details are not described here again.
Therefore, the embodiment provides a server network configuration system, which can enable a server to automatically determine whether a network card is configured in a single-computer mode or in a multi-computer mode by identifying a Loopback signal of a connector, and automatically configure a bandwidth based on the configuration of a network card working mode, thereby implementing automatic configuration of the network card and the bandwidth of the server. The scheme does not need to change circuits on a server mainboard, and the connection between the server and the network card can be completed by using two connectors, so that different connection schemes can be completed by using one mainboard, the hardware cost is low, and the connection change is easy to perform.
In the following, an electronic device provided by an embodiment of the present application is introduced, and an electronic device described below and a server network configuration method and apparatus described above may be referred to each other.
Referring to fig. 5, an embodiment of the present application discloses an electronic device, including:
a memory 501 for storing a computer program;
a processor 502 for executing the computer program to implement the method disclosed in any of the embodiments above.
Further, an embodiment of the present application further provides a server as the 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. Wherein, the memory is used for storing a computer program, and the computer program is loaded and executed by the processor to realize the relevant steps in the server network configuration method disclosed in any one of the foregoing embodiments.
In this embodiment, the power supply is configured to provide a working voltage for each hardware device on the server; the communication interface can create a data transmission channel between the server and external equipment, and the communication protocol followed by the communication interface is any communication protocol applicable to the technical scheme of the application, and the communication protocol is not specifically limited herein; the input/output interface is used for acquiring external input data or outputting data to the outside, and the specific interface type can be selected according to specific application requirements without specific limitation.
In addition, the memory is used as a carrier for resource storage, and may be a read-only memory, a random access memory, a magnetic disk, an optical disk, or the like, where the stored resources include an operating system, a computer program, data, and the like, and the storage manner may be a transient storage manner or a permanent storage manner.
The operating system is used for managing and controlling hardware devices and computer programs on the Server so as to realize the operation and processing of the processor on the data in the memory, and the operating system can be Windows Server, netware, unix, linux and the like. The computer program may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the server network configuration method disclosed in any of the foregoing embodiments. The data may include data such as developer information of the virtual machine, in addition to data such as the virtual machine.
Further, the embodiment of the application also provides a terminal as the electronic device. The terminal may specifically include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Generally, the terminal in this embodiment includes: a processor and a memory.
The processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, and so on. The processor may be implemented in at least one hardware form of a DSP (Digital Signal Processing), an FPGA (Field-Programmable Gate Array), and a PLA (Programmable Logic Array). The processor may also include a main processor and a coprocessor, where the main processor is a processor for Processing data in a wake state, and is also called a Central Processing Unit (cpu); a coprocessor is a low power processor for processing data in a 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 that the display screen needs to display. In some embodiments, the processor may further include an AI (Artificial Intelligence) processor for processing computing operations related to machine learning.
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, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory is at least used for storing a computer program, wherein after being loaded and executed by the processor, the computer program can implement relevant steps in the server network configuration method executed by the terminal side disclosed in any one of the foregoing embodiments. In addition, the resources stored by the memory may also include an operating system, data and the like, and the storage mode may be a transient storage mode or a permanent storage mode. The operating system may include Windows, unix, linux, and the like. The data may include, but is not limited to, update information for the application.
In some embodiments, the terminal may further include a display, an input/output interface, a communication interface, a sensor, a power source, and a communication bus.
In the following, a computer-readable storage medium provided by an embodiment of the present application is introduced, and a computer-readable storage medium described below and a server network configuration method, apparatus, and device described above may be referred to each other.
A computer-readable storage medium for storing a computer program, wherein the computer program, when executed by a processor, implements the server network configuration method disclosed in the foregoing embodiments.
References in this application to "first," "second," "third," "fourth," etc., if any, are intended to distinguish between similar elements and not necessarily to describe a particular order or sequence. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be implemented in other sequences than those illustrated or described herein. Furthermore, the terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, or apparatus.
It should be noted that the descriptions relating to "first", "second", etc. in this application are for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of computer-readable storage medium known in the art.
The principle and the implementation of the present application are explained herein by applying specific examples, and the above description of the embodiments is only used to help understand the method and the core idea of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A server network configuration method is applied to a server provided with dual processors, and comprises the following steps:
if the server is started, identifying a Loopback signal of two connectors for connecting the server and the target network card;
if the Loopback signals of the two connectors are the same, configuring the target network card to be in a single machine mode, and enabling the two connectors to equally divide the total bandwidth of the server;
and if the Loopback signals of the two connectors are different, configuring the target network card to be in a dual-computer mode, and enabling the bandwidths of the two connectors to be the same as the total bandwidth of the server.
2. The server network configuration method of claim 1, wherein the identifying a Loopback signal for two connectors connecting the server and the target network card comprises:
and identifying the Loopback signals of the two connectors by using a CPLD in a mainboard of the server.
3. The server network configuration method according to claim 2, wherein the configuring the target network card to be in a stand-alone mode or the configuring the target network card to be in a dual-machine mode includes:
and configuring the target network card into a single machine mode or a double machine mode by utilizing the CPLD.
4. The server network configuration method according to claim 1, wherein if the Loopback signals of the two connectors are the same, configuring the target network card to be in a stand-alone mode comprises:
and if the Loopback signals of the two connectors are both low level, setting the BIF of the target network card as a single-machine mode flag bit so as to configure the target network card to be in a single-machine mode.
5. The method according to claim 1, wherein if the Loopback signals of the two connectors are different, configuring the target network card to be in a dual-machine mode comprises:
and 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, setting the BIF of the target network card as a dual-computer mode flag bit so as to configure the target network card to be in a dual-computer mode.
6. The server network configuration method according to any one of claims 1 to 5, wherein the bandwidths of the two connectors are configured by a BIOS of the server.
7. The server network configuration method of claim 6, wherein configuring the bandwidth of the two connectors using the BIOS of the server comprises:
identifying a first signal and a second signal corresponding to each connector by using the BIOS;
if the first signal and the second signal corresponding to only one connector are different, the BIOS is used for configuring the two connectors to equally divide the total bandwidth of the server;
and if the first signal and the second signal corresponding to each connector are different, configuring the bandwidth of the two connectors by using the BIOS to be the same as the total bandwidth of the server.
8. A server network configuration system, comprising: the system comprises a server provided with double processors and a target network card connected with the server through two connectors;
the server is configured to: if the power is started, recognizing the Loopback signals of the two connectors; if the Loopback signals of the two connectors are the same, configuring the target network card to be in a single machine mode, and enabling the two connectors to equally divide the total bandwidth of the two connectors; and if the Loopback signals of the two connectors are different, configuring the target network card to be in a dual-computer mode, and enabling the bandwidths of the two connectors to be the same as the total bandwidth of the two connectors.
9. The server network configuration system according to claim 8, wherein the server connects the two connectors through any arithmetic unit of a first processor in the server; or the server is connected with one of the two connectors through any arithmetic unit of the first processor in the server, and simultaneously the server is connected with the other connector through any arithmetic unit of the second processor in the server.
10. The server network configuration system of claim 8, wherein the two connectors are MCIO connectors.
CN202211412458.9A 2022-11-11 2022-11-11 Server network configuration method and system Pending CN115834369A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211412458.9A CN115834369A (en) 2022-11-11 2022-11-11 Server network configuration method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211412458.9A CN115834369A (en) 2022-11-11 2022-11-11 Server network configuration method and system

Publications (1)

Publication Number Publication Date
CN115834369A true CN115834369A (en) 2023-03-21

Family

ID=85527761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211412458.9A Pending CN115834369A (en) 2022-11-11 2022-11-11 Server network configuration method and system

Country Status (1)

Country Link
CN (1) CN115834369A (en)

Similar Documents

Publication Publication Date Title
US10317973B2 (en) Peripheral device expansion card system
CN115562738B (en) Port configuration method, component and hard disk expansion device
US10509750B2 (en) System and method for controlling multi-function pins in management controller stack
US10140231B2 (en) Flexible port configuration based on interface coupling
CN110727466B (en) Multi-grain multi-core computer platform and starting method thereof
CN109947682B (en) Server mainboard and server
CN103098039A (en) High-speed peripheral-device interconnected-bus port configuration method and apparatus
US11232060B2 (en) Method, apparatus and system for power supply policy exchange on a bus
CN115686872A (en) Memory resource processing equipment, method, device and medium based on BMC (baseboard management controller)
US9946552B2 (en) System and method for detecting redundant array of independent disks (RAID) controller state from baseboard management controller (BMC)
CN114691224A (en) Equipment loading system and method and electronic equipment
CN114003528A (en) OCP switching card, switching system and switching method
CN117135055A (en) Bandwidth resource control method and device, storage medium and electronic device
CN114185720B (en) Method, device, equipment and storage medium for dynamic hot backup of server
CN115834369A (en) Server network configuration method and system
CN115878327A (en) Bus reservation method, device, server, electronic equipment and storage medium
CN113472576A (en) Bandwidth allocation method of OCP network card and related device
CN115905072A (en) Computer system, control method based on PCIe device and related device
US20210286744A1 (en) Programmable input/output port
US7496747B2 (en) Redundant link mezzanine daughter card
CN115422110B (en) Port configuration method of electronic equipment and PCIE Switch chip
CN115454748A (en) Test board, node selection method and component
CN108346878B (en) Connector, server and server power supply switching method
JP6841876B2 (en) Flexible connection of processor modules
CN116107945A (en) Device, method, system, equipment and medium for configuring bandwidth

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination