PCIe-based network transmission configuration method and server

By setting up microcontroller units in the server's central processing unit and PCIe devices, and automatically allocating IP addresses using the IIC communication link, the IP conflict problem when multiple computing modules are in the server is solved, achieving efficient network configuration and improved product quality.

CN116668283BActive Publication Date: 2026-04-10INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
INSPUR SUZHOU INTELLIGENT TECH CO LTD
Filing Date
2023-06-29
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

In existing technologies, when multiple computing modules are configured simultaneously in a server, their IP addresses need to be manually set, resulting in low network configuration efficiency and a high risk of errors.

Method used

By setting up microcontroller units in the server's central processing unit and PCIe devices, and automatically assigning IP addresses using the IIC communication link, network communication between PCIe devices can be achieved.

Benefits of technology

Automated IP address configuration improves network configuration efficiency, avoids manual intervention, and enhances product quality and production efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116668283B_ABST
    Figure CN116668283B_ABST
Patent Text Reader

Abstract

The application provides a PCIe-based network transmission configuration method and server, and the method comprises the following steps: when it is determined that the to-be-configured server is powered on, a first micro control unit is controlled to read all candidate IP address information from a storage chip of the to-be-configured server; the first micro control unit is controlled to distribute target IP address information to each second micro control unit through a target communication link, so that each PCIe device actually connected to the to-be-configured server establishes network communication between a central processing unit of the to-be-configured server and each PCIe device according to the target IP address information read from the corresponding second micro control unit. The PCIe-based network transmission configuration method and server provided by the application can automatically set different IP addresses for different PCIe slave devices in a software mode when a local area network is constructed between a PCIe master device and a PCIe slave device.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of servers, and in particular to a PCIe-based network transmission configuration method and server. BACKGROUND

[0002] At present, edge computing is an important support for the iterative optimization of technologies such as 5G, the Internet of Things, and artificial intelligence. With the increasing trend of the proportion of edge computing servers in the overall server market, people's demand for server products has developed from the most basic computing power expansion to the idea of modular design, which enables different functions of server products to be executed by different modules to meet customers' diverse customization needs. For example, NVME hard disks, SATA hard disks, or computing modules with certain computing power can be plugged into the hard disk backplane and interconnected with the server central processor through the Peripheral Component Interconnect express (PCIe) channel.

[0003] Although the computing module can communicate with the server central processor, in actual production, the server central processor may be used with more than one computing module. When multiple computing modules are used simultaneously, since the computing module only uses one system image, the virtual network card IP in the system of the computing module is the same when it is produced and assembled. To avoid communication abnormalities caused by IP conflicts, the prior art generally manually sets different IP addresses for different computing modules. This method is inefficient and prone to errors. SUMMARY

[0004] The present application provides a PCIe-based network transmission configuration method and server to solve the low network configuration efficiency caused by manually setting different IP addresses for each computing-capable peripheral device in the prior art.

[0005] The present application provides a PCIe-based network transmission configuration method applied to a central processor of a server to be configured, comprising:

[0006] When it is determined that the server to be configured is powered on, a first micro control unit reads all candidate IP address information from a storage chip of the server to be configured;

[0007] The first micro control unit distributes target IP address information to each second micro control unit through a target communication link, so that each PCIe device actually plugged into the server to be configured establishes network communication between the central processor of the server to be configured and each PCIe device according to the target IP address information read from each second micro control unit;

[0008] The first micro control unit is a micro control unit (MCU) arranged in a central processing unit of the server to be configured; the second micro control unit is an MCU arranged in each PCIe device connected to the server to be configured; the target communication link is an IIC communication link between any second micro control unit and the first micro control unit; and the number of target IP address information is less than or equal to the number of candidate IP address information.

[0009] The PCIe-based network transmission configuration method further comprises the following steps before determining whether the server to be configured is powered on:

[0010] According to the PCIe configuration requirement of the server to be configured, the rated maximum number of PCIe devices is determined.

[0011] IP address information in the same network segment and equal to the rated maximum number of PCIe devices is taken as the candidate IP address information, and the candidate IP address information is burned in a storage chip of the server to be configured.

[0012] The PCIe-based network transmission configuration method further comprises the following steps before determining whether the server to be configured is powered on:

[0013] The PCIe-based network transmission configuration method further comprises the following steps before determining whether the server to be configured is powered on:

[0014] The second micro control unit receives target IP address information issued by the first micro control unit through a target communication link.

[0015] According to the target IP address information read from the second micro control unit, network communication between the central processing unit of the server to be configured and each PCIe device is established.

[0016] The first micro control unit is a micro control unit (MCU) arranged in a central processing unit of the server to be configured; the second micro control unit is an MCU arranged in each PCIe device connected to the server to be configured; the target communication link is an IIC communication link between any second micro control unit and the first micro control unit.

[0017] According to the PCIe-based network transmission configuration method, the network communication between the central processing unit of the server to be configured and each PCIe device according to the target IP address information read from the second micro control unit comprises the following steps:

[0018] write the target IP address information read from the second micro control unit into an interface configuration file for assignment update;

[0019] based on the updated interface configuration file, reestablish network communication between the central processing unit of the server to be configured and the current PCIe device.

[0020] The application also provides a server, comprising a server mainboard for executing the PCIe-based network transmission configuration method according to any one of the above, and a PCIe device connected with the server mainboard;

[0021] Any PCIe device is used for executing the PCIe-based network transmission configuration method according to any one of the above;

[0022] An IIC communication link is formed between the first micro control unit on the server mainboard and the second micro control unit on any PCIe device.

[0023] According to the application, an IIC arbiter and an IIC gate on any IIC communication link are provided;

[0024] The IIC arbiter is used for determining the control subject of the IIC link as the first micro control unit or a baseboard management controller.

[0025] The IIC gate is used for selecting the IIC communication link of the connected different PCIe devices.

[0026] According to the application, the script code for executing the PCIe-based network transmission configuration method according to any one of the above is built into the flashing package of the PCIe device.

[0027] According to the application, the PCIe device is a smart network card or a computing module.

[0028] The application also provides a non-transient computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to realize the PCIe-based network transmission configuration method according to any one of the above.

[0029] The application provides a PCIe-based network transmission configuration method and a server. BRIEF DESCRIPTION OF DRAWINGS

[0030] In order to more clearly illustrate the technical solutions in the application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description are some embodiments of the application, and other drawings can be obtained by those skilled in the art without any creative effort on the basis of these drawings.

[0031] Figure 1 Fig. 1 is one of flow diagrams of the PCIe-based network transmission configuration method provided by the application;

[0032] Figure 2 Fig. 3 is a logic diagram of the communication link between the first micro control unit and the electrically erasable programmable read-only memory provided by the application;

[0033] Figure 3 Fig. 2 is another flow diagram of the PCIe-based network transmission configuration method provided by the application;

[0034] Figure 4 Fig. 4 is a structural diagram of the server provided by the application;

[0035] Figure 5 Fig. 5 is a logic diagram of the communication link between the first micro control unit and the second micro control unit provided by the application. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical solutions and advantages of the application more clear, the following will combine the drawings in the application to clearly and completely describe the technical solutions in the application. Obviously, the described embodiments are some of the embodiments of the application, but not all the embodiments. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without any creative effort belong to the protection scope of the application.

[0037] The terms "first", "second", and the like, as used in the description of the application, are used to differentiate between analogous objects, and are not used to describe a particular sequential or chronological order. It is to be understood that the data so used can be interchanged, where appropriate, so that the embodiments of the present application might operate in other sequences than those described herein, and that "first", "second", and the like, differentiated objects are generally of a like kind and are not limited to a specific number of objects, for example, a first object can be one or more.

[0038] It is to be understood that the terms used in the specification are merely for the purpose of describing particular embodiments and do not intend to limit the present application. As used in the present application, the singular forms "a", "an" and "the" are intended to include the plural forms, unless the context clearly indicates otherwise.

[0039] The terms "include" and "contain" indicate the presence of the described features, whole, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, whole, steps, operations, elements, components and / or sets thereof.

[0040] Figure 1 is one of the flow diagrams of the PCIe-based network transmission configuration method provided by the present application. As shown in Figure 1 The PCIe-based network transmission configuration method provided by the embodiment of the present application is applied to the central processor of a server to be configured, and includes the following steps: in step 101, when it is determined that the server to be configured is powered on, a first micro control unit reads all candidate IP address information from a storage chip of the server to be configured.

[0041] The first micro control unit is a micro control unit (MCU) arranged in the central processor of the server to be configured.

[0042] It should be noted that the execution subject of the PCIe-based network transmission configuration method provided by the embodiment of the present application is a PCIe-based network transmission configuration device. The PCIe-based network transmission configuration device can be arranged on the central processor of the server to be configured, or the PCIe-based network transmission configuration device is the central processor of the server to be configured.

[0043] The application scenario of the PCIe-based network transmission configuration device is that a software code about a first micro controller unit (MCU) is implanted in a central processing unit (CPU) of a server to be configured, different IP addresses previously programmed are read out by running the code, and then are sent to MCUs in PCIe devices plugged in the server to be configured, and network communication is established between the PCIe devices of the server to be configured through different IP addresses.

[0044] The first MCU refers to an MCU deployed on a bottom plate corresponding to the CPU of the server to be configured.

[0045] Specifically, in step 101, when it is determined according to the state information of each component in the server that the server to be configured has been powered on and is in a running state, the PCIe-based network transmission configuration device running on the CPU of the server to be configured controls the first micro controller unit to read candidate IP address information previously programmed from a storage chip built in the server to be configured.

[0046] The candidate IP address information refers to different IP addresses of the same network segment previously programmed in the storage chip built in the server to be configured, and the number of the candidate IP address information is determined by the configuration of the server to be configured.

[0047] In step 102, the first micro controller unit is controlled to distribute target IP address information to each second micro controller unit through a target communication link, so that each PCIe device actually plugged in the server to be configured establishes network communication between the CPU of the server to be configured and the PCIe device according to the target IP address information read from the second micro controller unit.

[0048] The second micro controller unit refers to an MCU deployed on a bottom plate corresponding to each PCIe device plugged in the server to be configured. The target communication link refers to an IIC communication link between any second micro controller unit and the first micro controller unit, and the number of the target IP address information is less than or equal to the number of the candidate IP address information.

[0049] It should be noted that the second MCU refers to an MCU deployed on a bottom plate corresponding to each peripheral plugged in the server to be configured through a PCIe link.

[0050] The target communication link refers to an IIC communication link between the first MCU as a master device and any second MCU as a slave device.

[0051] Specifically, in step 102, the PCIe-based network transmission configuration device running on the CPU of the server to be configured selects target IP address information from the candidate IP address information, the number of which matches the actual plug-in configuration of the server to be configured, and controls the first MCU to distribute the target IP address information to the second micro control units in the PCIe devices actually plugged into the server to be configured in sequence through the connected target communication link.

[0052] After any second micro control unit receives the target IP address information, it provides the received target IP address information to the PCIe device on which it runs, so that each PCIe device automatically extracts an IP address different from others, and each PCIe device performs network communication with the central processing unit of the server to be configured according to the corresponding IP address.

[0053] The number of target IP address information is determined by the actual plug-in configuration of the server to be configured. If it is a full configuration, the number of target IP address information is equal to the number of candidate IP address information. If it is a reduced configuration, the number of target IP address information is less than the number of candidate IP address information.

[0054] After the IIC communication path between the first MCU on the bottom plate of the server CPU and the second MCU on the bottom plate of the PCIe device is opened, the first MCU reads a plurality of different IP address values from the server and sends them to a plurality of second MCUs, so that different PCIe devices perform network configuration according to the IP addresses read from the respective second MCUs. When a local area network is constructed between the master and slave PCIe devices, different IP addresses are automatically set for different PCIe slave devices by software, which not only solves the problem of IP conflict, but also avoids the process of manually setting different IP addresses for each PCIe device during product production, thereby improving network configuration efficiency and product quality.

[0055] On the basis of any of the above embodiments, before determining whether the server to be configured is powered on, the method further comprises: determining the rated maximum number of PCIe devices according to the PCIe configuration requirement of the server to be configured.

[0056] Specifically, before step 101, the PCIe-based network transmission configuration device running on the CPU of the server to be configured needs to enumerate different peripheral combinations and the rated maximum number of PCIe devices contained therein, denoted as N, in combination with its own configuration and actual configuration requirement.

[0057] Burn the IP address information in the same network segment and equal to the rated maximum number of the PCIe device as the candidate IP address information in the storage chip of the server to be configured.

[0058] Specifically, the PCIe-based network transmission configuration device running on the CPU of the server to be configured pre-burns N IP address information in different network segments as candidate IP address information in the storage chip built-in the server to be configured, so that the first MCU accesses the storage chip through IIC and reads the burned candidate IP address information.

[0059] The embodiment of the present application can improve the adaptability and expansibility of the entire network system by pre-burning the IP address information matching the PCIe configuration requirement as the candidate IP address information in the storage chip of the server, so that the first MCU reads the burned candidate IP address information and decides the distribution of IP addresses.

[0060] Figure 2 is the communication link logical diagram between the first micro control unit and the electrically erasable programmable read only memory provided by the present application. Figure 2 As shown in the above any embodiment, the storage chip of the server to be configured is an electrically erasable programmable read only memory.

[0061] Specifically, the storage chip built-in the server to be configured is an electrically erasable programmable read only memory (EEPROM), and the EEPROM has a plurality of IP addresses in the same network segment, and when the machine is powered on, the first MCU obtains the control right of the PCA9641 to access the EEPROM in communication connection with the CPU through IIC and read the IP address value.

[0062] The embodiment of the present application configures the storage chip as an electrically erasable programmable read only memory, which can continue to store data when power failure, and can be erased and rewritten under the action of higher than normal voltage, improving the convenience of development.

[0063] Figure 3 is the second flowchart of the PCIe-based network transmission configuration method provided by the present application. Figure 3 As shown in the above any embodiment, the PCIe-based network transmission configuration method provided by the embodiment of the present application is applied to each PCIe device plugged in the server to be configured, comprising: step 301, receiving the target IP address information issued by the first micro control unit through the target communication link by the second micro control unit.

[0064] The first micro control unit is a micro control unit (MCU) arranged in a central processing unit of the server to be configured. The second micro control unit is an MCU arranged in each PCIe device plugged in the server to be configured. The target communication link is an IIC communication link between any second micro control unit and the first micro control unit.

[0065] It should be noted that the execution subject of the PCIe-based network transmission configuration method provided by the embodiment of the present application is a PCIe-based network transmission configuration device. The PCIe-based network transmission configuration device can be arranged on each PCIe device plugged in the server to be configured, or the PCIe-based network transmission configuration device is each PCIe device plugged in the server to be configured.

[0066] The application scenario of the PCIe-based network transmission configuration device is to implant a software code about the second micro control unit (MCU) in each PCIe device plugged in the server to be configured, read out the IP address of the first MCU issued to the second MCU by running the code, and establish the network communication between the PCIe devices of the server to be configured directly through different IP addresses.

[0067] It can be understood that the PCIe devices plugged in the server include but are not limited to NVME hard disks, SATA hard disks, and devices with independent computing capabilities (i.e., with CPU and / or graphics processing unit (GPU)).

[0068] Since the NX computing module with CPU and GPU simultaneously only uses one system image, i.e., the virtual network card IP in the system of the NX computing module is the same when it is produced and assembled, the effect obtained by the PCIe-based network transmission configuration method provided by the embodiment of the present application is the most significant when the NX computing module is applied.

[0069] Specifically, in step 301, the PCIe-based network transmission configuration device running on the PCIe device plugged in the server to be configured controls the IIC communication link between the second MCU and the first MCU to keep communication, so as to receive the target IP address information from the first MCU.

[0070] In step 302, according to the target IP address information read from the second micro control unit, the network communication between the central processing unit of the server to be configured and each PCIe device is established.

[0071] Specifically, in step 302, the PCIe-based network transmission configuration device running on the PCIe device to be configured by the server determines that the second MCU receives the target IP address information, reads the target IP address information received by the second MCU, and automatically extracts different IP addresses for each PCIe device, and each PCIe device performs network communication with the central processor of the server according to the corresponding IP address.

[0072] The embodiment of the application passes the IIC communication path between the first MCU on the bottom plate of the server CPU and the second MCU on the bottom plate of the PCIe device, controls the first MCU to read a plurality of different IP address values from the server, and sends the plurality of different IP address values to the plurality of second MCUs, so that different PCIe devices perform network configuration according to the IP addresses read from the respective second MCUs. When a local area network is constructed between the PCIe master and slave devices, different IP addresses are automatically set for different PCIe slave devices by a software mode, which not only solves the problem of IP conflict, but also avoids the process of manually setting different IP addresses for each PCIe device in the production process, improves the network configuration efficiency and product quality.

[0073] In any of the above embodiments, the network communication between the central processor of the server to be configured and each PCIe device according to the target IP address information read from the second micro control unit comprises: writing the target IP address information read from the second micro control unit into an interface configuration file for assignment update.

[0074] Specifically, in step 302, the PCIe-based network transmission configuration device running on the PCIe device to be configured by the server determines that the second MCU receives the target IP address information, reads the target IP address information received by the second MCU, and automatically extracts different IP addresses for each PCIe device, and each PCIe device performs network communication with the central processor of the server according to the corresponding IP address.

[0075] For example, set the IP address of the network card eth0, write the following content in the interface configuration file.

[0076] auto eth0

[0077] iface eth0 inet static

[0078] address 192.168.2.18

[0079] netmask 255.255.255.0

[0080] gateway 192.168.2.1

[0081] Based on the updated interface configuration file, the network communication between the central processor of the server to be configured and the current PCIe device is re-established.

[0082] Specifically, the PCIe-based network transmission configuration device running on the PCIe device plugged into the server to be configured resets the network through the IP address value recorded in the updated interface configuration file and makes the network communication between the central processor and the current PCIe device effective.

[0083] The embodiment of the application resets the network by communicating with the second MCU, reading the target IP address information received by the second MCU, and writing the value into the interface configuration file in the system. The PCIe device obtains the IP address from its own MCU and makes the entire network communication effective.

[0084] Figure 4 is the structure diagram of the server provided by the application. On the basis of any of the above embodiments, as shown in Figure 4 The server provided by the embodiment of the application includes a server mainboard 410 for executing the PCIe-based network transmission configuration method as described above, and a PCIe device 420 connected to the server mainboard 410.

[0085] Any PCIe device 420 is used to execute the PCIe-based network transmission configuration method as described above.

[0086] The first micro control unit 411 on the server mainboard 410 forms an IIC communication link with the second micro control unit 421 on any PCIe device 420.

[0087] Specifically, when the state information of each component in the server determines that it has been in the power-on running state, the first micro control unit 411 in the server mainboard 410 reads the candidate IP address information previously burned into the storage chip built-in in the server.

[0088] The server mainboard 410 selects target IP address information from the candidate IP address information, the number of which matches the actual plugging situation of the server to be configured, and controls the first MCU 411 to distribute the target IP address information to the second micro control unit 421 in each PCIe device 420 actually plugged into the server through the connected target communication link.

[0089] Any PCIe device 420 controls the IIC communication link between the second MCU and the first MCU to remain connected. After determining that the second MCU has received the target IP address information, it reads the received target IP address information from the second MCU so that each PCIe device can automatically extract a unique IP address and conduct network communication with the central processing unit of the server to be configured based on the corresponding IP address.

[0090] This invention establishes an IIC communication path between a first MCU on the server CPU's backplane and a second MCU on the PCIe device's backplane. The first MCU reads multiple different IP address values ​​from the server and sends them to multiple second MCUs, allowing different PCIe devices to perform network configuration based on the IP addresses read from their respective second MCUs. This enables the automatic assignment of different IP addresses to different PCIe slave devices via software when building a local area network between PCIe master and slave devices. This resolves IP conflict issues and avoids the need for manual IP address assignment for each PCIe device during manufacturing, improving network configuration efficiency and product quality.

[0091] Figure 5 This is a schematic diagram of the communication link logic between the first microcontroller unit and the second microcontroller unit provided by the present invention. Figure 5 As shown, based on any of the above embodiments, an IIC arbitrator and an IIC selector are provided on any of the IIC communication links.

[0092] The IIC arbitrator is used to determine whether the control entity of the IIC link is the first microcontroller unit or the baseboard management controller.

[0093] The IIC gate is used to select the IIC communication link between different PCIe devices.

[0094] Specifically, Figure 5 The leftmost element represents the IIC interface in the first MCU, and the rightmost element, NVME_BOARD, is a board that connects the PCIe device and its backplane. The NVME0 / NVME1 markings on it represent the PCIe device and its backplane. The IIC link between the first and second MCUs must contain at least an IIC arbitrator and an IIC gate, where:

[0095] The PCA9641 is an IIC arbiter. By setting its internal registers, it can be determined whether the MCU or BMC controls the subsequent IIC link.

[0096] The PCA9546 is an IIC strobe that allows users to select and access different IIC slave devices connected to it by setting its internal registers.

[0097] On the basis of the structure as shown in the figure, the communication process between the first MCU and the second MCU is as follows: first, the first MCU will obtain the control right of the PCA9641, then respectively select the PCA9546 to connect different channels, then respectively establish IIC communication with the four second MCUs through the channels, and finally send different IP addresses to different second MCUs. Figure 5

[0098] The embodiment of the application can avoid data conflict and protect data by using conflict detection mechanism and arbitration mechanism when multiple hosts simultaneously request control of the bus by setting IIC arbitrator and IIC gate on the IIC communication link.

[0099] On the basis of any of the above embodiments, the script code for executing the PCIe-based network transmission configuration method as claimed in any of the above is built into the flashing package of the PCIe device.

[0100] Specifically, the script code of the PCIe device 420 when it executes the PCIe-based network transmission configuration method is built into the flashing package of the PCIe device 420, so that the script is automatically executed at startup, the IP address is read from the second MCU, and the IP address is written into the interface configuration file to configure the static IP of the virtual network card.

[0101] The embodiment of the application builds the script code of the PCIe device for extracting the IP address from the self MCU into the flashing package, so that the relevant link communication logic is reset when the PCIe device runs the flashing package put in advance, and the underlying data of the device is not damaged, so that the operation is more convenient and fast.

[0102] On the basis of any of the above embodiments, the PCIe device is a smart network card or a computing module.

[0103] Specifically, the PCIe device 420 is a smart network card or a computing module.

[0104] Of course, the PCIe device 420 here can also be other types of PCIe devices, which are not particularly limited in the present application.

[0105] The embodiment of the application improves the expansibility of the server through various PCIe devices, and even if the PCIe device is replaced at any time, the automatic IP address allocation can be performed through the IIC communication between the MCUs, and the efficiency of network configuration is improved.

[0106] ​In addition, the logic instructions in the storage chip described above can be implemented in the form of a software function unit and sold or used as an independent product, and can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application essentially or the part that contributes to the prior art or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in various embodiments of the present application. The foregoing storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0107] In another aspect, the present application also provides a computer program product, which comprises a computer program, the computer program being stored in a non-transitory computer readable storage medium, and the computer program being capable of executing the PCIe-based network transmission configuration method provided by any of the above methods when executed by a processor, and the method is applied to a central processing unit of a server to be configured, and the method comprises: when it is determined that the server to be configured is powered on, controlling a first micro control unit to read all candidate IP address information from a storage chip of the server to be configured; controlling the first micro control unit to distribute target IP address information to each second micro control unit through a target communication link, so that each PCIe device actually plugged into the server to be configured establishes network communication between the central processing unit of the server to be configured and each PCIe device according to the target IP address information read from the respective second micro control unit; wherein the first micro control unit is a micro control unit (MCU) arranged in the central processing unit of the server to be configured; the second micro control unit is an MCU arranged in each PCIe device plugged into the server to be configured; the target communication link is an IIC communication link between any second micro control unit and the first micro control unit; and the number of target IP address information is less than or equal to the number of candidate IP address information. The PCIe-based network transmission configuration method provided by any of the above methods can also be executed, and is applied to each PCIe device plugged into the server to be configured, and the method comprises: receiving target IP address information issued by the first micro control unit through the target communication link by the second micro control unit; and establishing network communication between the central processing unit of the server to be configured and each PCIe device according to the target IP address information read from the second micro control unit; wherein the first micro control unit is a micro control unit (MCU) arranged in the central processing unit of the server to be configured; the second micro control unit is an MCU arranged in each PCIe device plugged into the server to be configured; the target communication link is an IIC communication link between any second micro control unit and the first micro control unit.

[0108] In another aspect, the application also provides a non-transitory computer readable storage medium having stored thereon a computer program, which, when executed by a processor, implements the PCIe-based network transmission configuration method provided by the above method, and is applied to a central processing unit of a server to be configured, and the method comprises: when it is determined that the server to be configured is powered on, controlling a first micro control unit to read all candidate IP address information from a storage chip of the server to be configured; controlling the first micro control unit to distribute target IP address information to each second micro control unit through a target communication link, so that each PCIe device actually plugged into the server to be configured establishes network communication between the central processing unit of the server to be configured and each PCIe device according to the target IP address information read from the respective second micro control unit; wherein the first micro control unit is a micro control unit (MCU) arranged in the central processing unit of the server to be configured; the second micro control unit is an MCU arranged in each PCIe device plugged into the server to be configured; the target communication link is an IIC communication link between any second micro control unit and the first micro control unit; and the number of target IP address information is less than or equal to the number of candidate IP address information. The PCIe-based network transmission configuration method provided by the above method can also be applied to each PCIe device plugged into the server to be configured, and the method comprises: receiving target IP address information issued by the first micro control unit through the target communication link by the second micro control unit; and establishing network communication between the central processing unit of the server to be configured and each PCIe device according to the target IP address information read from the second micro control unit; wherein the first micro control unit is a micro control unit (MCU) arranged in the central processing unit of the server to be configured; the second micro control unit is an MCU arranged in each PCIe device plugged into the server to be configured; and the target communication link is an IIC communication link between any second micro control unit and the first micro control unit.

[0109] The apparatus embodiments described above are merely illustrative, wherein the units described as separate components can or can not be physically separated, and the components displayed as units can or can not be physical units, i.e., can be located in one place, or can be distributed on multiple network units. Part or all of the modules can be selected to achieve the purpose of the embodiment scheme according to actual needs. Those skilled in the art can understand and implement without creative labor.

[0110] Those skilled in the art can clearly understand the technical solutions of the various embodiments from the above description of the embodiments, and the various embodiments can be implemented by means of software with the necessary general hardware platforms, and of course, can also be implemented by hardware. Based on such understanding, the above technical solutions, essentially or in other words, the part of the prior art that makes a contribution, can be embodied in the form of a software product, which can be stored in a computer readable storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, and the like, and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0111] Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, rather than limit them; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: it can still modify the technical solutions recorded in the foregoing embodiments, or make equivalent replacement for some technical features therein; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for configuring a PCIe-based network transmission, applied to a central processing unit of a server to be configured, and characterized in that, The method comprises the steps of: controlling the first micro control unit to read all candidate IP address information from the storage chip of the server to be configured when determining that the server to be configured is powered on; controlling the first micro control unit to distribute target IP address information to each second micro control unit through a target communication link, so that each PCIe device actually plugged in the server to be configured establishes network communication between the central processor of the server to be configured and each PCIe device according to the target IP address information read from the respective second micro control unit; wherein the first micro control unit is a micro control unit (MCU) arranged in the central processor of the server to be configured; the second micro control unit is an MCU arranged in each PCIe device plugged in the server to be configured; the target communication link is an IIC communication link between any second micro control unit and the first micro control unit; the number of target IP address information is less than or equal to the number of candidate IP address information; before determining whether the server to be configured is powered on, the method further comprises the steps of: determining the rated maximum number of PCIe devices according to the PCIe configuration requirement of the server to be configured; burning in the storage chip of the server to be configured IP address information in the same network segment and equal to the rated maximum number of PCIe devices as the candidate IP address information, so that the first micro control unit accesses the storage chip through the IIC communication link and reads the burned candidate IP address information.

2. The PCIe-based network transmission configuration method according to claim 1, wherein, The storage chip of the server to be configured is a flash memory.

3. A PCIe-based network transmission configuration method, applied to each PCIe device connected to a server to be configured, characterized in that, The method comprises the steps of: receiving target IP address information distributed by the first micro control unit through the target communication link by the second micro control unit; establishing network communication between the central processor of the server to be configured and each PCIe device according to the target IP address information read from the second micro control unit; wherein the first micro control unit is a micro control unit (MCU) arranged in the central processor of the server to be configured; the second micro control unit is an MCU arranged in each PCIe device plugged in the server to be configured; the target communication link is an IIC communication link between any second micro control unit and the first micro control unit; establishing network communication between the central processor of the server to be configured and each PCIe device according to the target IP address information read from the second micro control unit, comprising the steps of: writing the target IP address information read from the second micro control unit into the interface configuration file for value updating; reestablishing network communication between the central processor of the server to be configured and the current PCIe device based on the updated interface configuration file.

4. A server, characterized by The server mainboard comprises a server mainboard for executing the PCIe-based network transmission configuration method according to any one of claims 1 to 2, and a PCIe device connected with the server mainboard. Any PCIe device is used to perform the PCIe-based network transmission configuration method as claimed in claim 3; An IIC communication link is formed between the first micro control unit on the server motherboard and the second micro control unit on any PCIe device.

5. The server of claim 4, wherein, An IIC arbiter and an IIC gate are arranged on any IIC communication link; The IIC arbiter is used to determine whether the control subject of the IIC link is the first micro control unit or a baseboard management controller; The IIC gate is used to select the IIC communication link of the connected different PCIe device.

6. The server of claim 4, wherein, The script code for performing the PCIe-based network transmission configuration method as claimed in claim 3 is built into the flashing package of the PCIe device.

7. The server of any of claims 4-6, wherein, The PCIe device is a smart network card or a computing module.

8. A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program, when executed by a processor, implements the PCIe-based network transmission configuration method as claimed in any one of claims 1 to 2, and when executed, implements the PCIe-based network transmission configuration method as claimed in any one of claims 3.

Citation Information

Patent Citations

  • Method and system for automatic IP address information configuration by multi-network card server

    CN107592209A

  • PCIE (Peripheral Component Interface Express) equipment communication method and device, equipment and medium

    CN116155738A