Link control method and device, medium and product

By adopting the out-band link data management method in the PCIe link management system, and using the switching network and NVMe MI protocol to generate control packets, the problem of PCIe link data acquisition depends on the in-band method, efficient link control and management are realized, and the maintenance of storage devices is improved.

CN120499087APending Publication Date: 2025-08-15SHANDONG YUNHAI GUOCHUANG CLOUD COMPUTING EQUIP IND INNOVATION CENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510688401.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-27
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

In the prior art, PCIe link data acquisition depends on the operating system in-band method, resulting in an increase in resource consumption, affecting data accuracy and timeliness, especially when the system load is high or failure is more obvious.

Method used

In the link management system composed of the operation and maintenance platform and multiple servers, external link data management is used to manage the link data with the switch network, and the link control command is sent to the target server. The target management controller generates control messages according to the NVMe MI protocol to realize link control operations on the storage device.

Benefits of technology

It reduces processor performance and memory resource consumption caused by in-band acquisition of link information, improves the maintainability and ease of maintenance of storage devices, and avoids the drawbacks of information acquisition after system failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120499087A_ABST
    Figure CN120499087A_ABST
Patent Text Reader

Abstract

The invention discloses a link control method and device, a medium and a product, and relates to the technical field of computer storage and interfaces. According to the scheme, a link management system composed of an operation and maintenance platform and a plurality of servers is established in advance to serve as a hardware basis of out-of-band link data management. When link data of a storage device of a target server is managed, a link control command is sent to the target server, based on the command type and command content of the link control command, a target management controller generates a control message according to a nonvolatile memory host controller interface specification management interface protocol, and the control message is sent to the target server. Therefore, the storage device can execute the link control operation based on the control message, and out-of-band control of the link data is realized. According to the method, the consumption of processor performance and memory resources caused by acquiring the link information in the in-band mode can be reduced, the defect that the information cannot be acquired in the in-band mode after a system fault is avoided, and the maintainability and the maintainability of the storage device are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer storage and interface technology, and in particular to a link control method, device, medium and product. Background Art

[0002] The high-speed Peripheral Component Interconnect Express (PCIe) bus is crucial in the storage sector, providing a high-bandwidth, low-latency interface that is particularly well-suited for storage devices such as Non-Volatile Memory Express (NVMe) and solid-state drives (SSDs). Monitoring, maintenance, and management of PCIe links are crucial to ensure optimal performance.

[0003] Currently, PCIe link data is primarily obtained through in-band methods within the operating system, such as the Linux lspci command, or through hardware devices such as protocol analyzers. However, in-band methods rely on the processor to perform monitoring and data collection, which can increase resource consumption and affect data accuracy and timeliness, especially under high system load or fault conditions.

[0004] In view of the above, how to solve the current problem that PCIe link data acquisition relies on the in-band method of the operating system, which easily increases resource consumption and affects data accuracy and timeliness, is an urgent problem that technicians in this field need to solve. Summary of the Invention

[0005] The present invention provides a link control method, device, medium and product to at least solve the problem that current PCIe link data acquisition relies on the in-band mode of the operating system, which easily increases resource consumption and affects data accuracy and timeliness.

[0006] The present invention provides a link control method, which is applied to an operation and maintenance platform; the operation and maintenance platform is connected to multiple servers via a switching network; the method includes:

[0007] Sending a link control command to a target server via a switching network; wherein the target server is a subset of all servers;

[0008] parsing the link control command by the target management controller of the target server to determine the command type and command content;

[0009] Based on the command type and command content, the target management controller generates a first management component transmission protocol message according to the non-volatile memory host controller interface specification management interface protocol;

[0010] The first management component transmission protocol message is sent to the corresponding storage device through the target management controller, so that the storage device performs the link control operation.

[0011] The present invention also provides an electronic device, comprising: a memory for storing a computer program; and a processor for implementing the steps of any one of the above-mentioned link control methods when executing the computer program.

[0012] The present invention also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the above-mentioned link control methods are implemented.

[0013] The present invention also provides a computer program product, comprising a computer program, which implements the steps of any one of the above link control methods when executed by a processor.

[0014] The beneficial effect of the present invention is that a link management system consisting of an operation and maintenance platform and multiple servers is pre-built. The operation and maintenance platform is connected to multiple servers through a switching network to serve as the hardware foundation for out-of-band link data management. When managing the link data of the storage device of the target server, a link control command is sent to the target server. Based on the command type and command content of the link control command, the target management controller generates a control message in accordance with the non-volatile memory host controller interface specification management interface protocol, so that the storage device performs link control operations based on the control message, thereby realizing out-of-band control of the link data. This method can reduce the consumption of processor performance and memory resources caused by obtaining link information in an in-band manner, avoid the disadvantage of information that cannot be obtained in an in-band manner after a system failure, and greatly improve the maintainability and ease of maintenance of the storage device.

[0015] In addition, the present invention also provides an electronic device, a medium and a product, which have the same effects as above. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the embodiments of the present invention, the following is a brief introduction to the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0017] Figure 1 A schematic diagram of a PCIe link management system provided by an embodiment of the present invention;

[0018] Figure 2 A flowchart of a link control method provided by an embodiment of the present invention;

[0019] Figure 3A schematic diagram of a PCIe Configuration Read format message provided in an embodiment of the present invention;

[0020] Figure 4 A schematic diagram of a PCIe Configuration Write format message provided in an embodiment of the present invention;

[0021] Figure 5 A flowchart of another link control method provided by an embodiment of the present invention;

[0022] Figure 6 A schematic diagram of a link control device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0023] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making any creative efforts shall fall within the scope of protection of the present invention.

[0024] It should be noted that, in the description of the present invention, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. The terms "first," "second," etc., in the present invention are used to distinguish similar objects, and are not used to describe a particular order or precedence.

[0025] In order to enable those skilled in the art to better understand the solutions of the present invention, the present invention is further described in detail below with reference to the accompanying drawings and specific implementation methods.

[0026] The PCIe bus is crucial in the storage world, providing a high-bandwidth, low-latency interface, particularly well-suited for storage devices like modern NVMe SSDs. Each generation of PCIe technology has significantly increased data transfer speeds, further boosting this rate with support for multi-channel transmission. This significantly boosts data read and write speeds for storage devices, eliminating system performance bottlenecks and significantly impacting applications requiring fast data access, such as databases, virtualization, and data analytics. Therefore, monitoring, maintenance, and management of PCIe links are crucial to ensure optimal performance.

[0027] Currently, PCIe link data is primarily acquired in-band within the operating system, such as the Linux lspci command, or using hardware devices such as protocol analyzers. However, in-band methods rely on the CPU to perform monitoring and data collection, which can increase resource consumption and affect data accuracy and timeliness, especially when the system is under high load or experiencing a fault. To address the above issues, the present invention provides a link control method. It should be noted that the link control method provided by the present invention is applicable to PCIe link management systems.

[0028] Figure 1 Schematic diagram of a PCIe link management system provided by an embodiment of the present invention. Figure 1 As shown, the PCIe link management system consists of an operations and maintenance platform, a switching network, and multiple servers. The operations and maintenance platform communicates with the servers via the switching network. It should be noted that the operations and maintenance platform is deployed on a server or personal host and communicates with multiple servers (in a data center or storage equipment room) via the switching network. The switching network connects to each server through the external network port of the corresponding baseboard management controller (BMC).

[0029] It's also important to note that each storage device in the server is managed out-of-band through its corresponding BMC. The BMC and the corresponding storage device are connected via PCIe or 2-Wire (I2C / I3C) at the physical layer, and data exchanged is transmitted using MCTP over PCIe VDM or MCTP over I2C / I3C.

[0030] Figure 2 Flowchart of a link control method provided by an embodiment of the present invention. Figure 2 As shown, the method includes:

[0031] S10: Send the link control command to the target server through the switching network.

[0032] The target server is a subset of all servers.

[0033] Specifically, the operation and maintenance platform first sends a link control command to the target server via the switching network. This command can be sent manually or on a scheduled basis. It should be noted that the link control command manages the PCIe link of the storage device in the target server. The target server is a subset of all servers, meaning it can be one or more servers. In this embodiment, the specific type of target server is not limited.

[0034] S11: Parsing the link control command through the target management controller of the target server to determine the command type and command content.

[0035] Furthermore, the target management controller (BMC) of the target server parses the link control command to determine the command type and command content. It should be understood that the command type refers to the specific type of operation to be performed by the link control command, such as a read command or a write command; the command content includes the specific details of the operation to be performed, such as the location of the data to be read or the data to be written. The parsing process for command type and command content is not limited in this embodiment and depends on the specific implementation.

[0036] S12: Based on the command type and command content, the target management controller generates a first management component transmission protocol message according to the non-volatile memory host controller interface specification management interface protocol.

[0037] Subsequently, based on the command type and command content, the BMC of the target server generates a first Management Component Transport Protocol (MCTP) message according to the Non-Volatile Memory Host Controller Interface Specification Management Interface (NVMe MI) protocol.

[0038] It's worth noting that the present invention is implemented based on the PCIe Command Set in the NVMe MI protocol. This command set serves as the payload carried by MCTP. The PCIe Configuration Read command (PCIe ConfigurationRead) reads the PCIe configuration space of an NVMe storage device, thereby obtaining the PCIe link status. The PCIe Configuration Write command sets the PCIe configuration space of an NVMe storage device, thereby controlling the PCIe link status. Therefore, the target server's BMC must generate a first MCTP message according to the NVMe MI protocol to obtain or control the PCIe link status based on this message.

[0039] S13: Sending the first management component transmission protocol message to the corresponding storage device through the target management controller, so that the storage device performs the link control operation.

[0040] Finally, the target server's BMC batch distributes the first MCTP message to each corresponding NVMe storage device. Upon receiving the message, each storage device parses the message and performs link control operations, thereby achieving PCIe link management. It should be noted that the specific process for performing link control operations on storage devices is not limited in this embodiment and depends on the specific implementation.

[0041] In this embodiment, a link management system consisting of an operation and maintenance platform and multiple servers is pre-established. The operation and maintenance platform is connected to multiple servers via a switching network to serve as the hardware foundation for out-of-band link data management. When managing the link data of the storage device of the target server, a link control command is sent to the target server. Based on the command type and command content of the link control command, the target management controller generates a control message in accordance with the non-volatile memory host controller interface specification management interface protocol, so that the storage device can perform link control operations based on the control message, thereby realizing out-of-band control of the link data. This method can reduce the consumption of processor performance and memory resources caused by obtaining link information in an in-band manner, avoid the disadvantage of information that cannot be obtained in an in-band manner after a system failure, and greatly improve the maintainability and ease of maintenance of the storage device.

[0042] Based on the above embodiment, in some embodiments, sending the link control command to the target server through the switching network includes:

[0043] S101: parsing the Internet Protocol address of the target management controller in the link control command through the switching network;

[0044] S102: Based on the Internet Protocol address of the target management controller, send the link control command to the target server through the switching network.

[0045] To accurately send link control commands to the target server, the switch network is used to parse the target management controller's Internet Protocol (IP) address (i.e., the target server's BMC IP address) contained in the link control command. Based on the target management controller's IP address, the switch network locates the target server and sends the link control command to it, ensuring accurate control command delivery and facilitating PCIe link management of the target server's storage devices.

[0046] Based on the above embodiment, in some embodiments, the target management controller of the target server parses the link control command to determine the command type and command content, including:

[0047] S111: Parse the function description information of the link control command to determine the command type.

[0048] Among them, the command types include link data query commands and link data configuration commands.

[0049] S112: Parse the offset information and length information in the link control command.

[0050] To determine the command type and command content, in this embodiment, the functional description information of the link control command is specifically parsed to determine the command type. It should be noted that command types include link data query commands and link data configuration commands. The link data query command is a command for querying PCIe link data, and the link data configuration command is a command for configuring PCIe link data.

[0051] Furthermore, the offset information (Offset) and length information (Length) in the link control command are parsed. It should be noted that Offset represents the offset in the PCIe configuration space, and Length represents the number of bytes. This allows the command type and content to be determined, facilitating the subsequent accurate execution of the link control command by the storage device. The following describes the link control command execution process in detail, using specific examples:

[0052] (1) When the command type is a link data query command.

[0053] Based on the above embodiment, in some embodiments, based on the command type and command content, the target management controller generates a first management component transmission protocol message according to the non-volatile memory host controller interface specification management interface protocol, including:

[0054] S121: Configuring a general message header of the non-volatile memory host controller interface specification management interface protocol.

[0055] S122: Configure a controller identifier corresponding to the storage device and configure a bus configuration read message.

[0056] S123: Configure offset information and length information to generate a first management component transmission protocol message.

[0057] Specifically, when the BMC of the target server determines that the command type is a link data query command, it assembles the first MCTP message according to the PCIe Configuration Read format in the NVMe MI protocol.

[0058] Figure 3 Schematic diagram of the PCIe Configuration Read format message provided by an embodiment of the present invention. Figure 3As shown, first configure the NVMe-MI Message Header, a common message header for the NVMe MI protocol. Configure the controller identifier (ID) corresponding to the storage device, specifically the controller ID of each NVMe storage device obtained by the BMC. Configure the bus configuration read message Opcode = 00h, indicating that this is a PCIe Configuration Read message. Configure the offset information Offset and length information Length. Offset indicates the offset of the PCIe link data to be obtained in the PCIe configuration space. Offset = 0x0 indicates that data is obtained from the beginning of the PCIe configuration space. Length indicates the number of bytes to be read. Length = 0xff indicates the number of bytes of link information to be obtained. This generates the first MCTP message.

[0059] The storage device then performs a link control operation. Specifically, the storage device parses the first MCTP message, determines the corresponding message type as a PCIe Configuration Read message, and retrieves the corresponding link data based on the offset information and length information. The storage device then encapsulates the link data into a second MCTP message in the NVMe MI response format and sends the second MCTP message to the target management controller, namely the BMC of the target server.

[0060] Finally, the target server's BMC receives the second MCTP message sent by each storage device to determine the link data. The BMC integrates the link data and returns the integrated link data to the operation and maintenance platform, so that the operation and maintenance platform can parse and extract the PCIe link information and perform unified management.

[0061] (2) When the command type is a link data configuration command.

[0062] Based on the above embodiment, in some embodiments, based on the command type and command content, the target management controller generates a first management component transmission protocol message according to the non-volatile memory host controller interface specification management interface protocol, including:

[0063] S124: Configuring a general message header of the non-volatile memory host controller interface specification management interface protocol.

[0064] S125: Configure the controller identifier corresponding to the storage device and configure a bus configuration write message.

[0065] S126: Configure offset information, length information and request data to generate a first management component transmission protocol message.

[0066] Specifically, when the BMC of the target server determines that the command type is a link data configuration command, it assembles the first MCTP message according to the PCIe Configuration Write format in the NVMe MI protocol.

[0067] Figure 4 Schematic diagram of the PCIe Configuration Write format message provided in an embodiment of the present invention. Figure 4 As shown, first configure the NVMe-MI Message Header, a common message header for the NVMe MI protocol. Configure the controller identifier (ID) corresponding to the storage device, specifically the controller ID of each NVMe storage device obtained by the BMC. Configure the bus configuration write message Opcode = 01h, indicating that this is a PCIe ConfigurationWrite message. Configure the offset information Offset and length information Length. Offset indicates the offset of the PCIe link data to be modified in the PCIe configuration space. Offset = 0x0 indicates that the data is retrieved from the beginning of the PCIe configuration space. Length indicates the number of bytes to be modified, and Request Data indicates the specific content to be modified. This generates the first MCTP message.

[0068] The storage device then performs a link control operation. Specifically, the storage device parses the first MCTP message, determines the corresponding message type as a PCIe Configuration Write message, locates the link data in the configuration space based on the offset information and the length information. The storage device then modifies the link data based on the request data and generates a modification result. The storage device then encapsulates the modification result into a second MCTP message in the NVMe MI response format and sends the second MCTP message to the target management controller (i.e., the BMC of the target server).

[0069] Finally, the target server's BMC receives the second MCTP message sent by each storage device to determine the modification results. The BMC integrates the modification results and returns the integrated modification results to the operation and maintenance platform so that the operation and maintenance platform can echo the configuration command delivery results.

[0070] In summary, out-of-band acquisition and configuration of PCIe link information of storage devices are achieved, reducing the consumption of processor performance and memory resources caused by in-band batch acquisition of PCIe link information, and avoiding the disadvantage of inability to obtain information in-band after a system failure.

[0071] Based on the above embodiment, in some embodiments, after the operation and maintenance platform receives the data of each link, the following steps are further included:

[0072] S14: storing each link data through the device status register and the link status register, and generating a link data table;

[0073] S15: Output the link data table through the visualization page.

[0074] To better manage the acquired PCIe link data, the operation and maintenance platform can present the PCIe link information data in the following table or export the table for maintenance and analysis:

[0075] Table 1 PCIe link data table

[0076]

[0077] As shown in Table 1, the Device Status and Link Status registers in the PCIe configuration space store link data and generate a link data table. This table contains various PCIe link status descriptions. Since the configuration space's contents are not limited to the two registers listed above, other required content can also be retrieved and displayed on the platform interface or exported for table analysis. This enables the operation and maintenance platform to parse batches of PCIe link information and present it on the interface, facilitating data analysis.

[0078] Furthermore, after acquiring the PCIe link data shown in the table above, the operations and maintenance platform can perform a variety of analysis, monitoring, and management operations to enhance storage system stability, performance, and efficiency. Specifically, it ensures link normal operation by real-time monitoring of link status and performance metrics such as speed, bandwidth, and error rate. It also sends alerts when anomalies are detected, enabling timely resolution. By analyzing performance trends using historical data, the platform can predict potential performance bottlenecks or failures and provide optimization recommendations, such as adjusting link speeds, increasing lane counts, or optimizing resource allocation, to improve system performance. When a failure occurs, the platform uses detailed information to quickly locate the cause and provides troubleshooting steps or automated remediation scripts to help operations personnel quickly resolve the issue. Furthermore, the platform analyzes PCIe link resource utilization, identifies idle or overloaded links, optimizes resources, and supports capacity planning by predicting future resource requirements, ensuring the system has sufficient resources to accommodate business growth. By configuring automated monitoring tasks and remediation scripts, the platform reduces manual work and improves operational efficiency. Regularly generated reports and data visualizations, such as charts and dashboards, provide management and operations teams with a more intuitive understanding of system status and performance. In terms of security and compliance, the platform monitors link security, detects potential threats, and ensures configuration compliance with relevant regulations and standards. Finally, by monitoring the health of NVMe storage devices and maintaining the latest firmware and drivers, the platform improves device performance and security, comprehensively strengthening PCIe link management and monitoring capabilities, and ensuring stable and efficient system operation.

[0079] Figure 5 A flowchart of another link control method provided by an embodiment of the present invention. The method is applied to a target server; the operation and maintenance platform is connected to multiple servers via a switching network, and the target server is a subset of all servers; Figure 5 As shown, the method includes:

[0080] S20: Receive the link control command sent by the operation and maintenance platform through the switching network.

[0081] S21: Parse the link control command through the corresponding target management controller to determine the command type and command content.

[0082] S22: Based on the command type and command content, the target management controller generates a first management component transmission protocol message according to the non-volatile memory host controller interface specification management interface protocol.

[0083] S23: Sending the first management component transmission protocol message to the corresponding storage device through the target management controller, so that the storage device performs the link control operation.

[0084] In this embodiment, a link management system consisting of an operation and maintenance platform and multiple servers is pre-established. The operation and maintenance platform is connected to multiple servers via a switching network to serve as the hardware foundation for out-of-band link data management. When managing the link data of the storage device of the target server, a link control command is sent to the target server. Based on the command type and command content of the link control command, the target management controller generates a control message in accordance with the non-volatile memory host controller interface specification management interface protocol, so that the storage device can perform link control operations based on the control message, thereby realizing out-of-band control of the link data. This method can reduce the consumption of processor performance and memory resources caused by obtaining link information in an in-band manner, avoid the disadvantage of information that cannot be obtained in an in-band manner after a system failure, and greatly improve the maintainability and ease of maintenance of the storage device.

[0085] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method.

[0086] Figure 6 Schematic diagram of a link control device provided by an embodiment of the present invention. Figure 6 As shown, the device includes:

[0087] The first sending module 10 is configured to send the link control command to a target server via a switching network; wherein the target server is a subset of all servers.

[0088] The parsing module 11 is configured to parse the link control command through the target management controller of the target server to determine the command type and command content.

[0089] The generating module 12 is configured to generate a first management component transmission protocol message based on the command type and command content by the target management controller in accordance with the non-volatile memory host controller interface specification management interface protocol.

[0090] The second sending module 13 is configured to send the first management component transmission protocol message to the corresponding storage device through the target management controller, so that the storage device performs a link control operation.

[0091] In some embodiments, the first sending module 10 includes:

[0092] A first parsing submodule, configured to parse an Internet Protocol address of a target management controller in a link control command through a switching network;

[0093] The first sending submodule is configured to send the link control command to the target server through the switching network based on the Internet Protocol address of the target management controller.

[0094] In some embodiments, the parsing module 11 includes:

[0095] A second parsing submodule is configured to parse the function description information of the link control command to determine the command type; wherein the command type includes a link data query command and a link data configuration command;

[0096] The third parsing submodule is used to parse the offset information and length information in the link control command.

[0097] In some embodiments, the generation module 12 includes:

[0098] A first configuration submodule is used to configure a general message header of a non-volatile memory host controller interface specification management interface protocol;

[0099] A second configuration submodule is used to configure a controller identifier corresponding to the storage device and configure a bus configuration read message;

[0100] A third configuration submodule, configured to configure offset information and length information to generate a first management component transmission protocol message;

[0101] Correspondingly, the storage device performs a link control operation, including: the storage device parses the first management component transmission protocol message and determines that the corresponding message type is a bus configuration read message; based on the bus configuration read message, the storage device obtains corresponding link data according to the offset information and the length information; the storage device encapsulates the link data into a second management component transmission protocol message; and sends the second management component transmission protocol message to the target management controller;

[0102] Correspondingly, after the first management component transmission protocol message is sent to the corresponding storage device through the target management controller, it also includes: the target management controller receives the second management component transmission protocol message sent by each storage device to determine the data of each link; the target management controller integrates the data of each link and returns the integrated link data to the operation and maintenance platform.

[0103] In some embodiments, the generation module 12 includes:

[0104] a fourth configuration submodule, configured to configure a general message header of a non-volatile memory host controller interface specification management interface protocol;

[0105] a fifth configuration submodule, configured to configure a controller identifier corresponding to the storage device and configure a bus configuration write message;

[0106] a sixth configuration submodule, configured to configure offset information, length information, and request data to generate a first management component transmission protocol message;

[0107] Correspondingly, the storage device performs a link control operation, including: the storage device parses the first management component transmission protocol message and determines that the corresponding message type is a bus configuration write message; based on the bus configuration write message, the storage device locates the link data in the configuration space according to the offset information and the length information; modifies the link data according to the request data and generates a modification result; the storage device encapsulates the modification result into a second management component transmission protocol message; and sends the second management component transmission protocol message to the target management controller;

[0108] Correspondingly, after the first management component transmission protocol message is sent to the corresponding storage device through the target management controller, it also includes: the target management controller receives the second management component transmission protocol message sent by each storage device to determine each modification result; the target management controller integrates each modification result and returns the integrated modification results to the operation and maintenance platform.

[0109] In some embodiments, further comprising:

[0110] A table generation module is used to store each link data through the device status register and the link status register and generate a link data table;

[0111] The output module is used to output the link data table through the visualization page.

[0112] For the description of the features in the embodiment corresponding to the link control device, please refer to the relevant description of the embodiment corresponding to the link control method, and will not be repeated here.

[0113] An embodiment of the present invention further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above-mentioned link control method embodiments.

[0114] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any one of the above-mentioned link control method embodiments when running.

[0115] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disk.

[0116] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above-mentioned link control method embodiments are implemented.

[0117] An embodiment of the present invention also provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above-mentioned link control method embodiments are implemented.

[0118] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to their functions. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.

[0119] The above is a detailed introduction to the link control method, device, medium, and product provided by the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only intended to help understand the method and core ideas of the present invention. It should be noted that, for those skilled in the art, several improvements and modifications can be made to the present invention without departing from the principles of the present invention, and these improvements and modifications also fall within the scope of protection of the present invention.

Claims

1. A link control method, characterized in that: Applied to operation and maintenance platform; The operation and maintenance platform is connected to multiple servers via a switching network; the method includes: Sending a link control command to a target server via the switching network; wherein the target server is a subset of all the servers; parsing the link control command by the target management controller of the target server to determine the command type and command content; Based on the command type and the command content, the target management controller generates a first management component transmission protocol message according to the non-volatile memory host controller interface specification management interface protocol; The first management component transport protocol message is sent to the corresponding storage device through the target management controller, so that the storage device performs a link control operation.

2. The link control method according to claim 1, wherein: Sending a link control command to a target server through the switching network includes: parsing the Internet Protocol address of the target management controller in the link control command through the switching network; The link control command is sent to the target server through the switching network based on the Internet Protocol address of the target management controller.

3. The link control method according to claim 1, wherein: Parsing the link control command by the target management controller of the target server to determine the command type and command content includes: Parsing the functional description information of the link control command to determine the command type; wherein the command type includes a link data query command and a link data configuration command; Parse the offset information and length information in the link control command.

4. The link control method according to claim 3, wherein: When the command type is the link data query command, based on the command type and the command content, the target management controller generates a first management component transmission protocol message according to the non-volatile memory host controller interface specification management interface protocol, including: Configure the common message header of the non-volatile memory host controller interface specification management interface protocol; Configuring a controller identifier corresponding to the storage device and configuring a bus configuration read message; Configuring the offset information and the length information to generate the first management component transmission protocol message; Correspondingly, the storage device performs a link control operation, including: The storage device parses the first management component transmission protocol message and determines that the corresponding message type is the bus configuration read message; Based on the bus configuration read message, the storage device obtains corresponding link data according to the offset information and the length information; The storage device encapsulates the link data into a second management component transmission protocol message; Sending the second management component transmission protocol message to the target management controller; Correspondingly, after sending the first management component transmission protocol message to the corresponding storage device through the target management controller, the method further includes: The target management controller receives the second management component transmission protocol message sent by each storage device to determine each link data; The target management controller integrates the link data and returns the integrated link data to the operation and maintenance platform.

5. The link control method according to claim 3, wherein: When the command type is the link data configuration command, based on the command type and the command content, the target management controller generates a first management component transmission protocol message according to the non-volatile memory host controller interface specification management interface protocol, including: Configure the common message header of the non-volatile memory host controller interface specification management interface protocol; Configuring a controller identifier corresponding to the storage device and configuring a bus configuration write message; Configuring the offset information, the length information, and the request data to generate the first management component transmission protocol message; Correspondingly, the storage device performs a link control operation, including: The storage device parses the first management component transmission protocol message and determines that the corresponding message type is the bus configuration write message; Based on the bus configuration write message, the storage device locates link data in the configuration space according to the offset information and the length information; Modifying the link data according to the request data and generating a modification result; The storage device encapsulates the modification result into a second management component transmission protocol message; Sending the second management component transmission protocol message to the target management controller; Correspondingly, after sending the first management component transmission protocol message to the corresponding storage device through the target management controller, the method further includes: The target management controller receives the second management component transmission protocol message sent by each storage device to determine each modification result; The target management controller integrates the modification results and returns the integrated modification results to the operation and maintenance platform.

6. The link control method according to claim 4, wherein: After the operation and maintenance platform receives the link data, the method further includes: Storing each link data via a device status register and a link status register, and generating a link data table; The link data table is outputted through a visualization page.

7. A link control method, characterized in that: Apply to the target server; The operation and maintenance platform is connected to multiple servers via a switching network, and the target server is a subset of all the servers; the method includes: receiving a link control command sent by the operation and maintenance platform through the switching network; Parsing the link control command by the corresponding target management controller to determine the command type and command content; Based on the command type and the command content, the target management controller generates a first management component transmission protocol message according to the non-volatile memory host controller interface specification management interface protocol; The first management component transport protocol message is sent to the corresponding storage device through the target management controller, so that the storage device performs a link control operation.

8. An electronic device, characterized in that: include: memory for storing computer programs; A processor, configured to implement the steps of the link control method according to any one of claims 1 to 7 when executing the computer program.

9. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the link control method according to any one of claims 1 to 7.

10. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the link control method according to any one of claims 1 to 7 are implemented.