Multi-unit server parallel configuration management method and system based on software and hardware collaborative design

By introducing CPLD switching logic components and asynchronous serial port communication protocols in multi-unit servers, efficient parallel configuration management is achieved under the condition of in-band and out-of-band network isolation, solving the problems of low efficiency and security risks in existing technologies and improving the efficiency and security of configuration management.

CN120723334AActive Publication Date: 2025-09-30NAT UNIV OF DEFENSE TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202511167075.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-20
Publication Date
2025-09-30
Estimated Expiration
2045-08-20

AI Technical Summary

Technical Problem

When the in-band business access network and the out-of-band monitoring and management network of existing multi-unit servers are isolated or inaccessible, the configuration management efficiency is low and there are security risks, making it impossible to achieve efficient parallel configuration management.

Method used

By adopting hardware-software collaborative design, utilizing the CPLD switching logic component and the monitoring management software SMC in the monitoring management blade, independent switching of the serial port sending and receiving channels is achieved through the master and slave multiplexers. An asynchronous serial port communication protocol is designed to implement parallel configuration management that separates command sending and result feedback.

Benefits of technology

Independent serial port sending and receiving switching channels are designed in hardware, and an asynchronous serial port communication protocol is designed in software, which enables the monitoring and management blade to efficiently manage the configuration of each unit server, improves configuration management efficiency, ensures security, and avoids blocking problems caused by serial execution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120723334A_ABST
    Figure CN120723334A_ABST
Patent Text Reader

Abstract

The invention discloses a software and hardware collaborative design multi-unit server parallel configuration management method and system, and the method comprises the steps: carrying out the parallel configuration management of each blade unit through a CPLD (Complex Programmable Logic Device) change-over switch logic assembly in a monitoring management blade and monitoring management software SMC running on a CPU (Central Processing Unit); the CPLD change-over switch logic component comprises two multiplexers, namely a master multiplexer and a slave multiplexer, the master multiplexer controls a serial port sending channel, and the slave multiplexer controls a serial port receiving channel; the two multiplexers, namely the master multiplexer and the slave multiplexer, have independent switching control signals so as to realize half-duplex parallel configuration of a serial port channel between the monitoring management blade and the blade unit. The invention aims to realize efficient configuration management on each unit server through the monitoring management software SMC deployed on the monitoring management unit under the condition of physical isolation of the in-band service access network and the out-of-band monitoring management network, and solves the blocking problem caused by time consumption of request execution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to server configuration technology in the field of high-performance computers, and in particular to a parallel configuration management method and system for multi-unit servers with collaborative software and hardware design. Background Art

[0002] High-density multi-unit servers can be managed out-of-band (OOB) and in-band (IB). Out-of-band management involves performing basic status monitoring, power on / off control, and other operations on devices on the monitoring and management network, rather than through the service access network. In-band management, on the other hand, involves accessing devices through the service access network, such as SSH or SNMP, to monitor and control the device status.

[0003] In practice, multi-unit server designs for different application scenarios employ varying architectures. Some completely physically isolate the in-band service access network from the out-of-band monitoring and management network for security reasons. Others, for the convenience of unified management, connect system-level monitoring and management modules to both the in-band monitoring and management network and the out-of-band service access network, enabling unified management of both in-band and out-of-band monitoring information.

[0004] In a multi-unit server where the service access network and the monitoring and management network are completely isolated, each blade unit is equipped with a baseboard management controller (BMC), which is connected to the general-purpose microprocessor (CPU) of the monitoring and management blade (on which the system management software SMC is deployed) through the monitoring and management network. The CPU of each blade unit is connected to the service access network for interconnection and communication. Because the monitoring and management unit is not connected to the service access network, the SMC deployed on the monitoring and management blade cannot access the in-band management information of each blade unit, let alone perform in-band management operations such as configuring the network address of the blade unit, querying the running status of each software, and restarting the operating system.

[0005] In a multi-unit server where the business access network and the monitoring and management network are not completely isolated, the monitoring and management unit is connected to both the out-of-band network and the in-band network, facilitating unified management and complementary coordination of in-band and out-of-band networks. For example, the in-band network can be used as a backup when the out-of-band network fails. In this multi-unit server architecture, in-band management operations may be affected by business network traffic or failures and cannot be completed automatically. For example, in the event of a business network failure or when the blade business network address is not configured correctly, operations such as blade unit network address configuration, operating system and software running status monitoring, and operating system restart cannot be completed. In order to implement the above-mentioned in-band management operations such as network address configuration and operating system and software running status monitoring, the multi-unit server needs to provide another way to support the completion of the above-mentioned operations in the event of a business network access failure, so as to ensure the availability of the multi-unit server.

[0006] The implementation methods of the above-mentioned configuration management operations such as network address configuration, operating system and software running status monitoring are mainly divided into three categories: one is to implement the configuration management operation of each blade by manually logging into each blade unit one by one; the second is to implement the respective configuration management operation through the BMC of each blade unit; and the third is to implement the configuration management operation by establishing a serial port path between the monitoring management blade and each blade unit. (1) Manually logging into each blade unit one by one to configure and manage each blade: Manually logging into each blade unit one by one to perform configuration management requires the user to be able to access the business network or each blade to provide an external service interface (such as a serial port) to log in to each blade to perform configuration management operations. This is time-consuming and labor-intensive. It is easy to make mistakes during manual configuration management (such as configuring various network addresses of multiple network interfaces) and the technical requirements for operation and maintenance personnel are also high. When each blade unit in a multi-unit server does not provide an external service interface and cannot access the business network, the user cannot log in to the operating system of each blade unit and cannot perform configuration management of the blade. (2) Configuration management is achieved by establishing a communication channel between the blade unit's BMC and each blade: Operation and maintenance personnel can use the monitoring management SMC to send the configuration management request command to the corresponding blade unit's BMC through the monitoring management network. After the BMC receives the request command information, it completes the sending of the request command information by establishing a communication channel between the blade's BMC and the CPU. This type of method mainly provides a communication channel through hardware. There are two main types: one is to connect the serial port communication channel between the BMC and the CPU on the blade unit motherboard. The BMC sends the network address configuration management request command to the CPU through the serial port, and the software deployed on the CPU completes the configuration management operation; the other is to connect the GPIO channel between the BMC and the CPU on the blade unit motherboard. The BMC writes the configuration management request command to a certain storage space and sends a GPIO signal to the CPU. After the CPU receives the signal, it retrieves the configuration management request command information from the storage space and completes the configuration management operation through the software deployed on the CPU. These two types of methods establish a channel between the BMC and the CPU, allowing the CPU to be controlled through the out-of-band management module BMC, making the blade unit node vulnerable to attack and facing serious security issues. (3) Configuration management is achieved by establishing a serial port path between the monitoring and management blade and each blade: This type of method requires establishing a serial port path between the monitoring and management blade CPU and each blade CPU. The monitoring and management software SMC on the monitoring and management blade sends blade configuration management commands and information to each blade through the serial port protocol. After receiving the command, each blade performs configuration processing.There are several main approaches to implementing this type of method: First, establish separate serial port paths for the CPU of the monitoring and management blade and each blade unit CPU. However, due to the limited serial port resources of the monitoring and management blade CPU, it is usually impossible to establish independent serial port channels with each blade unit CPU. A solution is to select a microprocessor with multiple serial ports. This not only limits the selection of microprocessors, but also increases costs. Second, use a serial port multiplexing chip on the monitoring and management blade to solve the problem of insufficient serial ports on the microprocessor, which also increases costs. Third, use serial port time-sharing multiplexing to connect a single serial port to multiple serial devices. This method is low-cost, but as the number of devices using the multiplexed serial port increases or the amount of serial communication data increases, the serial port multiplexing logic becomes more complex and its real-time performance decreases.

[0007] In general, the existing multi-unit server has the following shortcomings in the technical architecture for implementing configuration management of each blade unit: (1) Manual configuration management of each blade unit is performed manually by manually logging into each blade unit. Each blade unit needs to provide an external access interface. Manual configuration management operations are time-consuming and labor-intensive. Compared with automated configuration, manual configuration has a higher error rate. (2) Automatic configuration management is achieved by establishing a communication path between the blade unit's BMC and each blade. This method requires establishing a communication path between the BMC and the CPU on the blade unit, making it possible for attackers to control the CPU by invading the BMC in the out-of-band management network, making each blade unit vulnerable to attack. (3) Automatic configuration management is achieved by establishing a temporary serial port path between the monitoring management blade and each blade unit. Compared with the above two methods, this method abandons the path between the BMC and the CPU and adopts the construction of a temporary serial port channel. It has high security and meets the requirements of the Information Security Protection 2.0 for management channel isolation. However, in practical applications, this approach suffers from the limited serial port resources of the microprocessor on the monitoring and management blade. This makes it impossible to establish multiple serial channels between the monitoring and management blade and each blade unit. Consequently, the monitoring and management blade's serial ports must be reused to manage the configuration of each blade unit. Methods that establish temporary serial channels to manage the configuration of each blade unit typically use a single multiplexer or simple round-robin optimization to establish temporary serial channels between the monitoring and management blade and the blade units.

[0008] The current multi-unit server architecture is the mainstream architecture for serial port channel reuse. The CPLD / switch is key to implementing time-sharing serial port switching. When the SMC issues control instructions in batches, the CPU, through the CPLD / switch, sequentially establishes serial port channels between the monitoring and management blade and each blade. The control and management instructions are then sent to the blade's proxy plug-in via the serial port protocol. The proxy plug-in executes the corresponding control instruction and, after completion, feeds the result back to the SMC via the serial port channel. Each blade executes the control instruction serially. If the proxy plug-in takes a long time to execute a certain control instruction, no data is transmitted on the serial port channel. However, the SMC cannot issue the control instruction to other blades. The proxy plug-ins on other blades must wait until the previous blade completes its execution before receiving the control instruction. For situations where control and management instructions take a long time to execute and involve a large number of blades, the serial use of the serial port channel fails to fully utilize the serial port channel, resulting in inefficient control and management of the multi-unit server. Summary of the Invention

[0009] Technical problem to be solved by the present invention: In response to the above-mentioned problems of the prior art, a multi-unit server parallel configuration management method and system with collaborative design of software and hardware are provided. The present invention aims to solve the situation where the in-band business access network and the out-of-band monitoring and management network are physically isolated or the in-band business access network is inaccessible. By designing independent serial port sending and receiving switching channels between the monitoring management unit and the unit server in hardware and designing an asynchronous serial port communication protocol in software, a multi-unit server parallel configuration management method with separation of instruction sending and result feedback is realized, and efficient configuration management of each unit server is achieved through the monitoring management software SMC deployed on the monitoring and management unit, thereby solving the blocking problem caused by time-consuming request execution.

[0010] In order to solve the above technical problems, the technical solution adopted by the present invention is: A method for parallel configuration management of a multi-unit server using hardware and software collaborative design includes the following steps: utilizing a CPLD switching logic component in a monitoring and management blade and monitoring and management software SMC running on a CPU to perform parallel configuration management on each blade unit; the CPLD switching logic component includes two multiplexers, a master multiplexer and a slave multiplexer; the master multiplexer controls a serial port transmission channel and is responsible for completing the transmission of configuration management instruction data frames sent by the monitoring and management blade to multiple blade units; the slave multiplexer controls a serial port reception channel and is responsible for completing the transmission of execution result data frames returned by multiple blade units to the monitoring and management blade; the CPU of the monitoring and management blade and the CPU of the blade unit are respectively connected to the CPLD switching logic component via a serial port, and GPIO signals are derived and connected to GPIO pins of the CPLD switching logic component to control channel switching of the master multiplexer and the slave multiplexer; the master multiplexer and the slave multiplexer have independent switching control signals to achieve half-duplex parallel configuration of serial port channels between the monitoring and management blade and the blade units.

[0011] Optionally, it also includes when the monitoring and management software SMC receives a monitoring and management request from an upper-layer application, and the monitoring and management request is a configuration management operation and a serial port channel with a blade unit needs to be established, the monitoring and management software SMC sends a GPIO signal, and after the CPLD switching switch logic component receives the GPIO signal, it switches the serial port sending channel through the main multiplexer to connect the sending serial port TX of the monitoring and management blade to the receiving serial port RX of the target blade unit, thereby realizing serial port communication between the monitoring and management blade and the blade unit; after the monitoring and management software SMC sends a control instruction to the blade unit that has established the serial port sending channel, it does not need to wait for the instruction execution result, and immediately controls the main multiplexer switch to establish a serial port channel between the monitoring and management blade and the next computing blade, and completes the sending of the next control instruction.

[0012] Optionally, the CPU of each blade unit leads out a serial port and two GPIO signals, which are connected to the CPLD switching logic component of the monitoring and management blade through the backplane. The CPU runs the operating system, business applications and agent plug-ins. The agent plug-in is responsible for monitoring the serial port sending channel, receiving configuration management instructions and data parameters issued from the monitoring and management blade and performing corresponding configuration management operations. After the instruction is received successfully or the instruction is executed, the serial port receiving channel is switched from the multiplexer by sending a GPIO signal to connect the sending serial port TX of the blade unit and the receiving serial port RX of the monitoring and management blade, thereby sending the "received instruction" or instruction execution result information to the monitoring and management software SMC.

[0013] Optionally, the monitoring and management software SMC maintains a queue of configuration management instructions to be executed and a queue of completed instructions. The configuration management instruction queue is managed according to the instruction priority, and 2 status bits are set for each instruction. "00" indicates that the instruction is to be issued; "01" indicates that the instruction has been sent; "10" indicates that the instruction has been received by the target blade unit; "11" indicates that the instruction has been executed; when the monitoring and management software SMC receives a configuration management instruction from an upper-level application, it puts it into the queue of configuration management instructions to be executed and sets the corresponding instruction status to "00"; after the monitoring and management software SMC sends the configuration management instruction to the blade unit according to the priority strategy, it sets the corresponding instruction status to "01"; when the monitoring and management software SMC receives the "received instruction" information from the blade unit, it updates the corresponding instruction status to "10", and when it receives the instruction execution result from the blade unit, it updates the corresponding instruction status to "11" and moves the instruction into the instruction completion queue.

[0014] Optionally, the main multiplexer internally implements serial port sending channel management through an internal control signal completion flag bit done_flag0, a switching logic module, a status detection module and a status register status_reg0. The completion flag bit done_flag0 of the internal control signal is used to indicate whether the serial port switching is completed. The completion flag bit done_flag0 is set to a low level during initialization, and is set to a high level after the switching operation is completed; the status register status_reg0 is used to record the currently connected serial port device information; each bit of the status register status_reg0 represents a serial port device, and the corresponding bit of the currently connected device is set to 1; after the switching is completed, the status register status_reg0 is updated to indicate the new connection status; the monitoring and management blade host can determine whether the currently connected serial port device is Target device; if the status register status_reg0 shows that the target device is connected, the monitoring and management blade host can start communication; the status detection module is used to detect the status of the current serial port sending channel, which is divided into idle and busy states; the switching logic module is used to receive the switching command and perform the switching operation; after the CPLD switching switch logic component receives the switching command sent by the host through GPIO, the switching logic module parses the target serial port device, waits for the current serial port channel status to be idle, and configures the internal multiplexing switch so that the serial port of the monitoring and management blade is connected to the serial port of the target blade unit; after the switching is completed, the completion flag bit done_flag0 is updated to a high level, and the corresponding bit of the connected device in the status register status_reg0 is updated, indicating that the switching is completed; at the same time, after the switching is completed, the GPIO pin of the CPLD switching switch logic component is set to a high level and maintained for a preset time so that the monitoring and management blade host can detect the "switching completed" signal.

[0015] Optionally, the slave multiplexer includes dual GPIO signal lines, and each blade unit is connected to two types of pins INT_ACK[i] and INT_RESULT[i] of the CPLD switching switch logic component through two independent GPIO signal lines, where i∈[0,N-1], N is the number of blade units, and the pin INT_ACK[i] is used to be triggered immediately after the blade unit receives the control instruction and verifies it successfully. The high level is valid, indicating "acknowledgement received" and has a higher priority; the pin INT_RESULT[i] is used to be triggered after the control instruction of the blade unit is executed or times out. The high level is valid, indicating "execution result ready" and has a normal priority; when the agent plug-in receives the configuration management instruction , the agent plug-in checks the integrity of the received configuration management instructions, and controls the switching of the serial port receiving channel from the multiplexer to connect the sending serial port TX of the blade unit and the receiving serial port RX of the monitoring and management blade by controlling the GPIO signal, and sends the confirmation information of "receiving the instruction" to the monitoring and management software SMC through the serial communication protocol after receiving the switching confirmation signal; when the agent plug-in completes the execution of the configuration management instruction or the execution times out, it controls the switching of the serial port receiving channel from the multiplexer to connect the sending serial port TX of the blade unit and the receiving serial port RX of the monitoring and management blade by controlling the GPIO signal, and sends the instruction execution result information to the monitoring and management software SMC through the serial communication protocol after receiving the switching confirmation signal; the slave multiplexer is internally connected to the server through the serial communication protocol. An internal control signal completion flag bit done_flag1, a switching logic module, a status detection module and a status register status_reg1 are used to implement serial port receiving channel management. The internal control signal completion flag bit done_flag1 is used to indicate whether the serial port switching is completed; during initialization, the completion flag bit done_flag1 is set to a low level; after the switching operation is completed, the completion flag bit done_flag1 is set to a high level; the status register status_reg1 is used to record the currently connected serial port device information; each bit of the status register status_reg1 represents a serial port device, and the corresponding position of the currently connected device is 1; during the switching After completion, the status register status_reg1 is updated to indicate the new connection status; the status detection module is used to detect the status of the current serial port receiving channel; a state machine is designed inside the CPLD switch logic component to track the transmission status of the data frame, which is divided into two states: idle and busy; the status detection module can identify the start bit at the beginning and the stop bit at the end of the data frame; initially, the state machine is in the idle state. When the status detection module detects the start bit of the data frame, the state machine state is set to busy; when the status detection module detects the stop bit of the data frame, the state machine state is set to idle; each bit of the receive instruction register ack_reg represents a serial port device, and the corresponding position of the blade unit requesting feedback of the receive instruction is 1;Each bit of the execution result register result_reg represents a serial port device, and the corresponding position of the blade unit requesting feedback of the execution instruction result is 1; the GPIO signal processing module is used to monitor the response signal of each blade unit in real time, that is, to scan the status of all pins INT_ACK[i] and INT_RESULT[i] in real time; once it is detected that a blade unit sends a "received confirmation" or "execution result ready" signal, indicating that the blade has successfully received the instruction or completed the instruction execution, the receiving instruction register ack_reg or the execution result register result_reg of the corresponding blade unit number is immediately set to 1, triggering the switching logic module to switch the serial port receiving channel to avoid blocking caused by synchronous waiting; the switching logic module is responsible for detecting the receiving instruction register ack_reg and the execution result register reult_reg, and giving priority to the receiving instruction register ack_reg g, and only if the receive instruction register ack_reg is all 0s does it retrieve the number of the blade unit to be connected from the execution result list result_list in the execution result register reult_reg. When a serial port channel needs to be established between a blade unit and the monitoring and management blade, it waits until the current serial port channel status is idle, then configures the internal multiplexing switch so that the transmitting serial port TX of the blade unit is connected to the receiving serial port RX of the monitoring and management blade. After the switch is completed, the status of the completion flag bit done_flag1 is updated to a high level, and the corresponding bit of the connected device in the status register status_reg1 is updated to indicate that the switch is complete. At the same time, after the switch is completed, the corresponding GPIO pin of the blade unit is set to a high level and maintained for a preset time so that the blade unit host can detect the "switching completed" signal.

[0016] Optionally, the monitoring and management software SMC deployed on the monitoring and management blade sends a control instruction packet to the blade unit through the serial communication protocol, and the agent plug-in on the blade unit sends a response packet to the monitoring and management blade in response to the control instruction packet of the monitoring and management blade; wherein, the frame format of the control instruction packet consists of 7 parts, namely, the frame header sign, the target node IDnode_ID, the instruction type cmd_Type, the instruction data field length cmd_DataLen, the instruction data cmd_Data, the timeout timeout_ms and the check code crc_16, and the frame format of the response packet consists of 8 parts, namely, the frame header sign, the source node IDnode_ID, the instruction type cmd_Type, the execution status status, the execution result field length result_DataLen, the execution result result_data, the execution time timestamp and the check code crc_16.

[0017] Optionally, the method further includes the step of monitoring management software SMC executing configuration management instructions: S101, the monitoring management software SMC maintains a queue of pending configuration management instructions and a queue of completed instructions. After receiving a monitoring management command provided by an upper-layer application, the monitoring management software SMC parses the command to form a set of configuration management instructions for each blade unit. The initial priority value of the configuration management instruction is provided by the upper-layer application. The monitoring management software SMC adds the configuration management instruction to the queue of pending configuration management instructions according to the instruction priority and sets the status bit of the corresponding instruction to "00"; S102: Determine whether the queue of pending configuration management instructions in the monitoring management software SMC is empty. If not, retrieve the highest priority instruction from the queue of pending configuration management instructions based on priority, parse the node_ID of the blade unit target node of the configuration management instruction, and jump to step S103; otherwise, jump to step S102 and continue determination. S103, the monitoring management software SMC determines whether the currently connected serial port device is the target blade unit by reading the status register status_reg0 of the main multiplexer. If the status register status_reg0 of the main multiplexer shows that the target blade unit is connected, the monitoring management blade starts communicating and sends a configuration management instruction. The instruction status in the queue of configuration management instructions to be executed is updated to "01"; S104: The monitoring and management software SMC obtains status information of the blade unit through the baseboard management controller (BMC) of the corresponding blade unit and determines whether the blade unit is operating normally. If the blade unit is operating normally, the monitoring and management software SMC sends a GPIO signal to the CPLD switch logic component to request the establishment of a serial port transmission channel from the monitoring and management blade to the blade unit, and the process proceeds to step S105. If the blade unit is not operating normally, the monitoring and management software SMC lowers the priority of the configuration management instruction in the queue of configuration management instructions to be executed, and the process proceeds to step S102. S105: After the CPLD switching logic component receives the GPIO signal, the main multiplexer switches the serial port channel between the CPU of the switch management blade and the CPU of the target blade unit according to the target blade unit identified by the GPIO signal, establishes a serial port transmission path for the configuration management command, and feeds back a message indicating that the serial port transmission path has been successfully established. S106 , after receiving the switching confirmation signal indicating that the serial port transmission path is successfully established, the monitoring management software SMC sends a configuration management instruction, and the instruction status in the configuration management instruction queue to be executed is updated to “01”.

[0018] Optionally, the method further includes the step of an agent plug-in in the blade unit executing the configuration management instruction: S201, the proxy plug-in monitors serial port information and jumps to step S202 after receiving the configuration management instruction; S202, check the integrity of the received configuration management instruction through CRC check: if the received configuration management instruction is complete, execute the corresponding configuration management instruction and wait for the completion of the instruction execution; at the same time, send GPIO signal control to request switching the blade unit to the serial port receiving channel of the monitoring and management blade; set the frame header to "0x01" and the status to 0 in the acknowledgment response packet frame; after receiving the switching confirmation signal, send the "received instruction" acknowledgment response packet frame to the monitoring and management software SMC through the serial communication protocol; if the received configuration management instruction is incomplete, send GPIO signal control to request switching the blade unit to the serial port receiving channel of the monitoring and management blade, set the frame header to "0x01" and the status to a non-zero error code in the acknowledgment response packet frame, and send the "received instruction" acknowledgment response packet frame to the monitoring and management software SMC through the serial communication protocol after receiving the switching confirmation signal; finally, jump to step S203 after the configuration management instruction execution is completed; S203: The proxy plug-in sends a GPIO signal control requesting to switch the blade unit to the serial port receiving channel of the monitoring and management blade; sets the frame header to "0x02" and sets the contents of other fields of the response packet according to the execution status of the configuration management instruction; after receiving the switching confirmation signal, it sends an "execution completed" response packet frame to the monitoring and management software SMC via the serial communication protocol; S204, after the monitoring management software SMC receives the response information from the agent plug-in, it will perform corresponding processing according to the type of the response information: if the frame header of the received response packet is "received instruction": according to the response packet status information, if the status is 0, it means that the instruction received by the agent plug-in is consistent with the instruction sent, and the instruction status in the configuration management instruction queue to be executed is updated to "10"; if the status is not 0, the agent plug-in fails to receive the instruction, then the instruction execution priority is increased, and the instruction status in the configuration management instruction queue to be executed is updated to "00"; if the type of the received response packet is "execution completed": according to the response packet status information, if the status is 0, it means that the instruction execution is successful, then the instruction status in the configuration management instruction queue to be executed is updated to "11", the instruction is added to the instruction completion queue, and the corresponding execution result is analyzed and fed back to the upper-level application; if the status is not 0, it means that the instruction execution failed, then the instruction execution priority is lowered, and the instruction status in the configuration management instruction queue to be executed is updated to "00".

[0019] In addition, the present invention also provides a multi-unit server parallel configuration management system with software and hardware collaborative design, including interconnected monitoring management blades and blade units, which are programmed or configured to execute the multi-unit server parallel configuration management method with software and hardware collaborative design.

[0020] Compared with the prior art, the present invention can mainly achieve the following beneficial effects: the present invention includes using the CPLD switching switch logic component in the monitoring and management blade to run the monitoring and management software SMC on the CPU to perform parallel configuration management on each blade unit. The CPLD switching switch logic component includes two multiplexers, a master multiplexer and a slave multiplexer. The master multiplexer controls the serial port sending channel, and the slave multiplexer controls the serial port receiving channel. The master multiplexer and the slave multiplexer have independent switching control signals to achieve half-duplex parallel configuration of the serial port channel between the monitoring and management blade and the blade unit. The present invention can realize the monitoring and management software SMC deployed on the monitoring and management unit to perform efficient configuration management on each blade unit, such as business network address configuration, when the in-band service access network and the out-of-band monitoring and management network are physically isolated or the in-band service access network cannot be accessed. The present invention implements a parallel configuration management method for multiple blade units that separates instruction transmission from result feedback. By designing independent serial port transmission and reception switching channels in hardware and an asynchronous serial port communication protocol in software, the monitoring and management blade can send a configuration management command to a blade unit without waiting for the blade unit to complete the configuration management command and return result information before switching the serial port channel to complete the issuance of the next configuration management command. Simultaneously, by dynamically establishing a temporary serial port channel between the monitoring and management blade and the target blade, the channel is immediately disconnected after configuration is completed, cutting off potential attack paths. This allows the monitoring and management software (SMC) deployed on the monitoring and management blade to perform parallel configuration management on each blade unit without establishing BMC and CPU access channels on the blade unit, achieving physical security isolation and improving the efficiency of parallel configuration management. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 Schematic diagram of the basic principle of the method of the embodiment of the present invention.

[0022] Figure 2 This is a flow chart of the monitoring management software SMC executing configuration management instructions in an embodiment of the present invention.

[0023] Figure 3 This is a flow chart of an agent plug-in executing configuration management instructions in an embodiment of the present invention. DETAILED DESCRIPTION

[0024] In order to improve the service access performance of multi-unit servers and reduce the competition for network bandwidth between service access data and monitoring and management data, multi-unit servers are usually designed with an in-band service access network and an out-of-band monitoring and management network. The two networks are physically isolated. While ensuring the service access performance of the multi-unit server, the effectiveness and maintainability of the monitoring and management system are improved. In a high-density multi-unit server environment, a monitoring and management unit is usually designed to be responsible for implementing status monitoring, configuration management and other operations for each blade unit through an out-of-band monitoring and management network. Certain configuration and management operations of each blade unit, such as service network address configuration, firmware updates, querying network addresses, and online status checks, need to be configured, queried, and managed under the operating system of each blade unit, but the monitoring and management unit cannot directly access each blade unit through the out-of-band monitoring and management network and perform the above-mentioned configuration and management operations. The present invention aims to achieve efficient configuration management of each blade unit through monitoring and management software SMC deployed on the monitoring and management unit in the case where the in-band service access network and the out-of-band monitoring and management network are physically isolated or the in-band service access network is inaccessible, thereby solving the blocking problem caused by time-consuming request execution. In order to enable those skilled in the art to better understand the technical solution of the present invention, the technical solution of the present invention will be further described in detail below with reference to the accompanying drawings in the embodiments of the present invention.

[0025] like Figure 1 As shown, the parallel configuration management method for a multi-unit server with software and hardware collaborative design in this embodiment includes the following steps: using a CPLD switching switch logic component in a monitoring and management blade and monitoring and management software SMC running on a CPU to perform parallel configuration management on each blade unit, the CPLD switching switch logic component includes two multiplexers, a master multiplexer and a slave multiplexer, the master multiplexer controls the serial port sending channel and is responsible for completing the transmission of configuration management instruction data frames sent by the monitoring and management blade to multiple blade units; the slave multiplexer controls the serial port receiving channel and is responsible for completing the transmission of execution result data frames returned by multiple blade units to the monitoring and management blade, the CPU of the monitoring and management blade and the CPU of the blade unit are respectively connected to the CPLD switching switch logic component through a serial port, and GPIO signals are derived and connected to the GPIO pins of the CPLD switching switch logic component to control channel switching of the master multiplexer and the slave multiplexer, and the two multiplexers have independent switching control signals to achieve half-duplex parallel configuration of the serial port channels between the monitoring and management blade and the blade units.

[0026] The server system (multi-unit server) in this embodiment includes one monitoring and management blade and multiple blade units. The monitoring and management network connects the baseboard management controller (BMC) of all blade units with the monitoring and management blades and transmits only out-of-band management data (such as status monitoring). The service network connects the service ports of each blade unit and is used for service data transmission, physically isolated from the monitoring and management network. The serial port channel is separately wired through the backplane and is used only for configuration command transmission and does not participate in service or management data transmission. To address the diverse control and management commands and long execution times in multi-unit servers, the patented invention design separates the sending of control commands from the feedback of control command execution results. This allows control commands to be quickly and efficiently issued to each blade unit. After each blade unit completes the control command, it is fed back to the monitoring and management blade in turn, improving control and management efficiency. In particular, when control and management commands are frequently issued, resulting in a heavy traffic flow from the monitoring and management blade to the serial port transmission channel of the blade units, the control and management time can be optimized from a linear level (the control and management execution time increases linearly with the number of blades) to a near-constant level (all blades execute control and management commands in approximately parallel).

[0027] In this embodiment, the monitoring and management blade includes a CPU, a CPLD switching logic component, and monitoring and management software (SMC) deployed and running on the CPU. The CPU runs the monitoring and management software (SMC), which is responsible for issuing configuration management instructions and managing processes. The CPLD switching logic component implements two master and slave multiplexers (MUXs), respectively switching the serial port transmit and receive channels. The master multiplexer controls the serial port transmit channel, responsible for transmitting configuration management instruction data frames from the monitoring and management blade to the blade units; the slave multiplexer controls the serial port receive channel, responsible for transmitting execution result data frames from the blade units to the monitoring and management blade. Through independent switching control of the master and slave multiplexers, half-duplex parallel serial port channels are achieved between the monitoring and management blade and the blade units, breaking the "request-response" bottleneck of the traditional single-MUX "serial synchronization" mechanism. The monitoring and management blade's CPU is connected to the CPLD switching logic component via a serial port, and GPIO signals are connected to the GPIO pins of the CPLD switching logic component. When the monitoring and management software SMC receives a monitoring and management request from an upper-layer application, and when the monitoring and management request is a configuration management operation and a serial port channel with a blade unit needs to be established, the monitoring and management software SMC sends a GPIO signal. After the CPLD switching logic component receives the GPIO signal, it switches the serial port sending channel through the main multiplexer to connect the sending serial port TX of the monitoring and management blade to the receiving serial port RX of the target blade unit, thereby realizing serial port communication between the monitoring and management blade and the blade unit; after the monitoring and management software SMC sends a control instruction to the blade unit that has established the serial port sending channel, it does not need to wait for the instruction execution result, and immediately controls the main multiplexer switch to establish a serial port channel between the monitoring and management blade and the next blade unit, and completes the sending of the next control instruction.

[0028] This embodiment also includes that when the monitoring and management software SMC receives a monitoring and management request from an upper-layer application, and the monitoring and management request is a configuration management operation and a serial port channel with a blade unit needs to be established, the monitoring and management software SMC sends a GPIO signal, and after the CPLD switching switch logic component receives the GPIO signal, it switches the serial port sending channel through the main multiplexer to connect the sending serial port TX of the monitoring and management blade to the receiving serial port RX of the target blade unit, thereby realizing serial port communication between the monitoring and management blade and the blade unit; after the monitoring and management software SMC sends a control instruction to the blade unit that has established the serial port sending channel, it does not need to wait for the instruction execution result, and immediately controls the main multiplexer to switch to establish a serial port channel between the monitoring and management blade and the next blade unit, and completes the sending of the next control instruction.

[0029] In this embodiment, the CPU of each blade unit leads to a serial port and two GPIO signals, which are connected to the CPLD switching logic component of the monitoring and management blade through the backplane. The CPU runs the operating system, business applications and agent plug-ins. The agent plug-in is responsible for monitoring the serial port sending channel, receiving configuration management instructions and data parameters issued from the monitoring and management blade and performing corresponding configuration management operations. After the instruction is received successfully or the instruction is executed, the GPIO signal is sent to control the switching of the serial port receiving channel from the multiplexer to connect the sending serial port TX of the blade unit and the receiving serial port RX of the monitoring and management blade, thereby sending the "received instruction" or instruction execution result information to the monitoring and management software SMC.

[0030] In this embodiment, the monitoring and management software SMC maintains a queue of configuration management instructions to be executed and a queue of completed instructions. The configuration management instruction queue is managed according to the instruction priority. Two status bits are set for each instruction, "00" indicates that the instruction is to be issued; "01" indicates that the instruction has been sent; "10" indicates that the instruction has been received by the target blade unit; "11" indicates that the instruction has been executed; when the monitoring and management software SMC receives a configuration management instruction from an upper-level application, it puts it into the queue of configuration management instructions to be executed and sets the corresponding instruction status to "00"; after the monitoring and management software SMC sends the configuration management instruction to the blade unit according to the priority strategy, it sets the corresponding instruction status to "01"; when the monitoring and management software SMC receives the "received instruction" information from the blade unit, it updates the corresponding instruction status to "10", and when it receives the instruction execution result from the blade unit, it updates the corresponding instruction status to "11" and moves the instruction into the instruction completion queue.

[0031] To ensure that the main multiplexer can achieve reliable serial port switching and communication, the main multiplexer in this embodiment uses an internal control signal completion flag bit done_flag0, a switching logic module, a status detection module and a status register status_reg0 to achieve serial port transmission channel management. The completion flag bit done_flag0 of the internal control signal is used to indicate whether the serial port switching is completed. The completion flag bit done_flag0 is set to a low level during initialization, and the completion flag bit done_flag0 is set to a high level after the switching operation is completed; the status register status_reg0 is used to record the information of the currently connected serial port device; each bit of the status register status_reg0 represents a serial port device, and the corresponding bit of the currently connected device is set to 1; after the switching is completed, the status register status_reg0 is updated to indicate the new connection status; the monitoring and management blade host can judge the current Whether the connected serial port device is the target device; if the status register status_reg0 shows that the target device is connected, the monitoring and management blade host can start communication; the status detection module is used to detect the status of the current serial port sending channel, which is divided into idle and busy states; the switching logic module is used to receive the switching command and perform the switching operation; after the CPLD switching switch logic component receives the switching command sent by the host through GPIO, the switching logic module parses the target serial port device, waits for the current serial port channel status to be idle, and configures the internal multiplexing switch so that the serial port of the monitoring and management blade is connected to the serial port of the target blade unit; after the switching is completed, the completion flag bit done_flag0 is updated to a high level, and the corresponding bit of the connected device in the status register status_reg0 is updated, indicating that the switching is completed; at the same time, after the switching is completed, the GPIO pin of the CPLD switching switch logic component is set to a high level and maintained for a preset time so that the monitoring and management blade host can detect the "switching completed" signal.

[0032] In this embodiment, the feedback channel is controlled by the multiplexer, and the blade unit sends a GPIO signal to control the serial port receiving channel that is responsible for switching the blade unit to the monitoring and management blade to help the blade unit send the control instruction reception status and execution result information to the monitoring and management node. The receiving channel adopts event-driven reception, and the CPLD detects the response signal of each blade unit by polling and switches the receiving channel. In this embodiment, the multiplexer includes dual GPIO signal lines, and each blade unit is connected to two types of pins INT_ACK[i] and INT_RESULT[i] of the CPLD switching switch logic component through two independent GPIO signal lines, where i∈[0,N-1], N is the number of blade units, and the pin INT_ACK[i] is used to trigger immediately after the blade unit receives the control instruction and verifies it successfully. The high level is valid, indicating "received confirmation", and has a higher priority; the pin INT_RESULT[i] is used to trigger after the control instruction of the blade unit is executed or times out. The high level is valid, indicating "execution result is ready", and has a normal priority; when the agent plug-in receives the configuration When executing a management instruction, the agent plug-in checks the integrity of the received configuration management instruction, and controls the switching of the serial port receiving channel from the multiplexer to connect the sending serial port TX of the blade unit and the receiving serial port RX of the monitoring and management blade by controlling the GPIO signal, and sends the "received instruction" confirmation information to the monitoring and management software SMC through the serial communication protocol after receiving the switching confirmation signal; when the agent plug-in completes the execution of the configuration management instruction or the execution times out, it controls the switching of the serial port receiving channel from the multiplexer to connect the sending serial port TX of the blade unit and the receiving serial port RX of the monitoring and management blade by controlling the GPIO signal, and sends the instruction execution result information to the monitoring and management software SMC through the serial communication protocol after receiving the switching confirmation signal.

[0033] In this embodiment, the serial port receiving channel management is realized from the inside of the multiplexer through an internal control signal completion flag bit done_flag1, a switching logic module, a status detection module and a status register status_reg1. The completion flag bit done_flag1 of the internal control signal is used to indicate whether the serial port switching is completed; during initialization, the completion flag bit done_flag1 is set to a low level; after the switching operation is completed, the completion flag bit done_flag1 is set to a high level; the status register status_reg1 is used to record the currently connected serial port device information; each bit of the status register status_reg1 represents a serial port device, and the corresponding position of the currently connected device is 1; after the switching is completed, the status register status_reg1 is updated to indicate the new connection status; the status detection module is used to detect the status of the current serial port receiving channel; a status register status_reg1 is set inside the CPLD switching switch logic component. A state machine is designed to track the transmission status of the data frame, which is divided into two states: idle and busy. The state detection module can identify the start bit and the stop bit of the data frame. Initially, the state machine is in the idle state. When the state detection module detects the start bit of the data frame, the state machine state is set to busy. When the state detection module detects the stop bit of the data frame, the state machine state is set to idle. Each bit of the receiving instruction register ack_reg represents a serial port device, and the corresponding position of the blade unit requesting feedback of the receiving instruction is 1. Each bit of the execution result register result_reg represents a serial port device, and the corresponding position of the blade unit requesting feedback of the execution instruction result is 1. The GPIO signal processing module is used to monitor the response signal of each blade unit in real time, that is, to scan the status of all pins INT_ACK[i] and INT_RESULT[i] in real time. Once a blade unit is detected to send "received confirmation" (INT_ACK) or "execution result ready" ( The INT_RESULT signal indicates that the blade has successfully received the instruction or completed the instruction execution. It immediately sets the receiving instruction register ack_reg or the execution result register result_reg of the corresponding blade unit number to 1, triggering the switching logic module to switch the serial port receiving channel to avoid blocking caused by synchronous waiting. The switching logic module is responsible for detecting the receiving instruction register ack_reg and the execution result register reult_reg, and preferentially obtains the blade unit number to be connected from the receiving instruction register ack_reg. If the receiving instruction register ack_reg is all 0, it obtains the blade unit number to be connected from the execution result list result_list in the execution result register reult_reg.When a serial port channel needs to be established from a blade unit to the monitoring and management blade, the system waits until the current serial port channel status is idle and then configures the internal multiplexing switch so that the blade unit's transmitting serial port TX is connected to the monitoring and management blade's receiving serial port RX. After the switch is completed, the status of the completion flag bit done_flag1 is updated to a high level, and the corresponding bit of the connected device in the status register status_reg1 is updated to indicate that the switch is complete. At the same time, after the switch is completed, the corresponding GPIO pin of the blade unit is set to a high level and maintained for a preset time so that the blade unit host can detect the "switching completed" signal.

[0034] In this embodiment, the monitoring management software SMC deployed on the monitoring management blade sends a control instruction packet to the blade unit via the serial communication protocol, and the agent plug-in on the blade unit sends a response packet to the monitoring management blade in response to the control instruction packet of the monitoring management blade.

[0035] In this embodiment, the frame format of the control instruction packet consists of 7 parts, namely, the frame header sign, the target node ID node_ID, the instruction type cmd_Type, the instruction data field length cmd_DataLen, the instruction data cmd_Data, the timeout timeout_ms and the check code crc_16, as shown in Table 1:

[0036] Table 1 gives the definitions of the frame header sign, target node ID node_ID, command type cmd_Type, command data field length cmd_DataLen, command data cmd_Data, timeout timeout_ms and check code crc_16 respectively.

[0037] In this embodiment, the frame format of the response packet consists of 8 parts, namely, the frame header sign, the source node ID node_ID, the instruction type cmd_Type, the execution status status, the execution result field length result_DataLen, the execution result result_data, the execution time timestamp and the check code crc_16, as shown in Table 2:

[0038] Table 2 gives the definitions of the frame header sign, source node ID node_ID, instruction type cmd_Type, execution status status, execution result field length result_DataLen, execution result result_data, execution time timestamp and check code crc_16 respectively.

[0039] like Figure 2 As shown, this embodiment also includes the step of monitoring management software SMC executing configuration management instructions: S101, the monitoring management software SMC maintains a queue of pending configuration management instructions and a queue of completed instructions. After receiving a monitoring management command provided by an upper-layer application, the monitoring management software SMC parses the command to form a set of configuration management instructions for each blade unit. The initial priority value of the configuration management instruction is provided by the upper-layer application. The monitoring management software SMC adds the configuration management instruction to the queue of pending configuration management instructions according to the instruction priority and sets the status bit of the corresponding instruction to "00"; S102: Determine whether the queue of pending configuration management instructions in the monitoring management software SMC is empty. If not, retrieve the highest priority instruction from the queue of pending configuration management instructions based on priority, parse the node_ID of the blade unit target node of the configuration management instruction, and jump to step S103; otherwise, jump to step S102 and continue determination. S103, the monitoring management software SMC determines whether the currently connected serial port device is the target blade unit by reading the status register status_reg0 of the main multiplexer. If the status register status_reg0 of the main multiplexer shows that the target blade unit is connected, the monitoring management blade starts communicating and sends a configuration management instruction. The instruction status in the queue of configuration management instructions to be executed is updated to "01"; S104: The monitoring and management software SMC obtains status information of the blade unit through the baseboard management controller (BMC) of the corresponding blade unit and determines whether the blade unit is operating normally. If the blade unit is operating normally, the monitoring and management software SMC sends a GPIO signal to the CPLD switch logic component to request the establishment of a serial port transmission channel from the monitoring and management blade to the blade unit, and the process proceeds to step S105. If the blade unit is not operating normally, the monitoring and management software SMC lowers the priority of the configuration management instruction in the queue of configuration management instructions to be executed, and the process proceeds to step S102. S105: After the CPLD switching logic component receives the GPIO signal, the main multiplexer switches the serial port channel between the CPU of the switch management blade and the CPU of the target blade unit according to the target blade unit identified by the GPIO signal, establishes a serial port transmission path for the configuration management command, and feeds back a message indicating that the serial port transmission path has been successfully established. S106 , after receiving the switching confirmation signal indicating that the serial port transmission path is successfully established, the monitoring management software SMC sends a configuration management instruction, and the instruction status in the configuration management instruction queue to be executed is updated to “01”.

[0040] like Figure 3 As shown, this embodiment also includes the step of executing the configuration management instruction by the agent plug-in in the blade unit: S201, the proxy plug-in monitors serial port information and jumps to step S202 after receiving the configuration management instruction; S202, check the integrity of the received configuration management instruction through CRC check: if the received configuration management instruction is complete, execute the corresponding configuration management instruction and wait for the completion of the instruction execution; at the same time, send GPIO signal control to request switching the blade unit to the serial port receiving channel of the monitoring and management blade; set the frame header to "0x01" and the status to 0 in the acknowledgment response packet frame; after receiving the switching confirmation signal, send the "received instruction" acknowledgment response packet frame to the monitoring and management software SMC through the serial communication protocol; if the received configuration management instruction is incomplete, send GPIO signal control to request switching the blade unit to the serial port receiving channel of the monitoring and management blade, set the frame header to "0x01" and the status to a non-zero error code in the acknowledgment response packet frame, and send the "received instruction" acknowledgment response packet frame to the monitoring and management software SMC through the serial communication protocol after receiving the switching confirmation signal; finally, jump to step S203 after the configuration management instruction execution is completed; S203: The proxy plug-in sends a GPIO signal control requesting to switch the blade unit to the serial port receiving channel of the monitoring and management blade; sets the frame header to "0x02" and sets the contents of other fields of the response packet according to the execution status of the configuration management instruction; after receiving the switching confirmation signal, it sends an "execution completed" response packet frame to the monitoring and management software SMC via the serial communication protocol; S204, after the monitoring management software SMC receives the response information from the agent plug-in, it will perform corresponding processing according to the type of the response information: if the frame header of the received response packet is "received instruction": according to the response packet status information, if the status is 0, it means that the instruction received by the agent plug-in is consistent with the instruction sent, and the instruction status in the configuration management instruction queue to be executed is updated to "10"; if the status is not 0, the agent plug-in fails to receive the instruction, then the instruction execution priority is increased, and the instruction status in the configuration management instruction queue to be executed is updated to "00"; if the type of the received response packet is "execution completed": according to the response packet status information, if the status is 0, it means that the instruction execution is successful, then the instruction status in the configuration management instruction queue to be executed is updated to "11", the instruction is added to the instruction completion queue, and the corresponding execution result is analyzed and fed back to the upper-level application; if the status is not 0, it means that the instruction execution failed, then the instruction execution priority is lowered, and the instruction status in the configuration management instruction queue to be executed is updated to "00".

[0041] In addition, this embodiment also provides a multi-unit server parallel configuration management system with software and hardware collaborative design, including interconnected monitoring management blades and blade units, which are programmed or configured to execute the multi-unit server parallel configuration management method with software and hardware collaborative design.

[0042] To sum up, the method of this embodiment sets the asynchronous serial port switching logic - CPLD switching switch logic component through the monitoring and management blade, so as to realize the dynamic connection between the CPU serial port of the monitoring and management blade and the serial port channel of each blade unit CPU as needed, avoiding the security issues brought about by the traditional establishment of a communication path between the BMC and the CPU for monitoring and management. The method of this embodiment is to design a master multiplexer (control transmission) and a slave multiplexer (control reception) for independent switching control of the serial port sending channel and the serial port receiving channel, so that the instruction issuance and the instruction execution result are asynchronously fed back, and multiple blade units are truly able to execute configuration management instructions in parallel, avoiding the congestion caused by the inability to issue configuration management instructions to other blade units due to the long execution time of a blade unit in the traditional single serial port switching switch solution (the request issuance and the result feedback need to wait synchronously (such as sending the instruction only after polling the target blade, and switching to the next blade unit after the execution result is returned), thereby improving the configuration management efficiency in multiple blade units. The method of this embodiment has the following advantages: 1. A more secure configuration management implementation method: by establishing a temporary serial port path between the monitoring and management blade CPU and the blade unit CPU, the configuration management instruction is sent to the proxy plug-in on the blade unit CPU end through the serial port, and is immediately cut off after the configuration is completed, isolating the attack at the physical level. 1. Path, avoiding the security issues brought about by establishing a path between the BMC and the CPU to complete configuration management. 2. More efficient configuration management implementation method: Upgrading the traditional single MUX "serial synchronization" mode to "half-duplex parallel" mode, and implementing independently controlled serial port sending and receiving channels through design, so that command issuance and command execution result feedback are executed asynchronously, breaking the "request-response" blocking bottleneck under the synchronous mechanism, increasing the parallelism of multiple blade units in executing configuration management commands, and improving configuration management efficiency. 3. Through the three-layer collaboration of hardware, asynchronous communication protocol, and software, this solution achieves efficient differentiation and processing of the two types of feedback without significantly increasing hardware complexity, providing reliable support for asynchronous management of large-scale blade servers. 4. Applicable to different monitoring and management environments, it is suitable for monitoring and management frameworks with isolated out-of-band and in-band management networks, as well as for situations where the in-band business network is disconnected and configuration management commands issued by upper-layer applications cannot be implemented through the in-band business network.

[0043] The above description is merely a preferred embodiment of the present invention. The scope of protection of the present invention is not limited to the above embodiment. All technical solutions based on the concept of the present invention are within the scope of protection of the present invention. It should be noted that for those skilled in the art, various improvements and modifications that do not depart from the principles of the present invention should also be considered within the scope of protection of the present invention.

Claims

1. A parallel configuration management method for multi-unit servers with software and hardware collaborative design, characterized in that: The method comprises the following steps: performing parallel configuration management on each blade unit by using a CPLD switching logic component in a monitoring and management blade and monitoring and management software SMC running on a CPU, wherein the CPLD switching logic component comprises two multiplexers, a master multiplexer and a slave multiplexer, wherein the master multiplexer controls a serial port transmission channel and is responsible for completing the transmission of configuration management instruction data frames sent by the monitoring and management blade to multiple blade units; The slave multiplexer controls the serial port receiving channel and is responsible for completing the transmission of data frames that return execution results from multiple blade units to the monitoring and management blade; the CPU of the monitoring and management blade and the CPU of the blade unit are respectively connected to the CPLD switching switch logic component through the serial port, and the GPIO signal is connected to the GPIO pin of the CPLD switching switch logic component to control the channel switching of the master multiplexer and the slave multiplexer. The two multiplexers of the master multiplexer and the slave multiplexer have independent switching control signals to realize half-duplex parallel configuration of the serial port channel between the monitoring and management blade and the blade unit.

2. The method for parallel configuration management of multi-unit servers with software and hardware collaborative design according to claim 1, characterized in that: The process also includes: when the monitoring management software SMC receives a monitoring management request from an upper-layer application, and the monitoring management request is a configuration management operation and requires establishing a serial port channel with a blade unit, the monitoring management software SMC sends a GPIO signal, and after the CPLD switching logic component receives the GPIO signal, it switches the serial port transmission channel through the main multiplexer to connect the transmitting serial port TX of the monitoring management blade to the receiving serial port RX of the target blade unit, thereby realizing serial port communication between the monitoring management blade and the blade unit; After the monitoring and management software SMC sends a control instruction to the blade unit with established serial port transmission channel, it does not need to wait for the instruction execution result. It immediately controls the main multiplexer to switch to establish the serial port channel between the monitoring and management blade and the next computing blade, and completes the transmission of the next control instruction.

3. The method for parallel configuration management of multi-unit servers with software and hardware collaborative design according to claim 1, characterized in that: The CPU of each blade unit leads to a serial port and two GPIO signals, which are connected to the CPLD switch logic component of the monitoring and management blade through the backplane. The CPU runs the operating system, business applications and agent plug-ins. The agent plug-in is responsible for monitoring the serial port sending channel, receiving configuration management instructions and data parameters issued by the monitoring and management blade, and performing corresponding configuration management operations. After the instruction is successfully received or the instruction is executed, the GPIO signal is sent to control the switching of the serial port receiving channel from the multiplexer to connect the blade unit's sending serial port TX and the monitoring and management blade's receiving serial port RX, thereby sending the "received instruction" or instruction execution result information to the monitoring and management software SMC.

4. The method for parallel configuration management of multi-unit servers with software and hardware collaborative design according to claim 1, characterized in that: The monitoring and management software (SMC) maintains a queue of pending configuration management instructions and a queue of completed instructions. The configuration management instruction queue is managed according to instruction priority. Each instruction has a two-bit status bit: "00" indicates the instruction is pending; "01" indicates the instruction has been sent; "10" indicates the instruction has been received by the target blade unit; and "11" indicates the instruction has been executed. When the monitoring and management software (SMC) receives a configuration management instruction from an upper-layer application, it places it in the queue of pending configuration management instructions and sets the corresponding instruction status to "00." After the monitoring and management software (SMC) sends the configuration management instruction to the blade unit based on the priority policy, it sets the corresponding instruction status to "01." When the monitoring and management software (SMC) receives a "command received" message from the blade unit, it updates the corresponding instruction status to "10." When it receives the instruction execution result from the blade unit, it updates the corresponding instruction status to "11" and moves the instruction to the completed instruction queue.

5. The method for parallel configuration management of multi-unit servers with software and hardware collaborative design according to claim 1, characterized in that: The main multiplexer implements serial port transmission channel management through an internal control signal completion flag bit done_flag0, a switching logic module, a status detection module and a status register status_reg0. The internal control signal completion flag bit done_flag0 is used to indicate whether the serial port switching is completed. The completion flag bit done_flag0 is set to a low level during initialization and is set to a high level after the switching operation is completed. The status register status_reg0 is used to record the information of the currently connected serial port device. Each bit of the status register status_reg0 represents a serial port device, and the corresponding bit of the currently connected device is set to 1. After the switching is completed, the status register status_reg0 is updated to indicate the new connection status. The monitoring and management blade host can determine whether the currently connected serial port device is the target device by reading the status register status_reg0. If the status register status_reg0 shows that the target device is connected, the monitoring and management blade host can start communication; the status detection module is used to detect the status of the current serial port sending channel, which is divided into two states: idle and busy; the switching logic module is used to receive the switching command and execute the switching operation; after the CPLD switching switch logic component receives the switching command sent by the host through GPIO, the switching logic module parses the target serial port device, waits for the current serial port channel status to be idle, and configures the internal multiplexing switch so that the serial port of the monitoring and management blade is connected to the serial port of the target blade unit; after the switching is completed, the completion flag bit done_flag0 is updated to a high level, and the corresponding bit of the connected device in the status register status_reg0 is updated, indicating that the switching is complete; at the same time, after the switching is completed, the GPIO pin of the CPLD switching switch logic component is set to a high level and maintained for a preset time so that the monitoring and management blade host can detect the "switching completed" signal.

6. The method for parallel configuration management of multi-unit servers with software and hardware collaborative design according to claim 1, characterized in that: The slave multiplexer includes dual GPIO signal lines. Each blade unit is connected to two types of pins INT_ACK[i] and INT_RESULT[i] of the CPLD switch logic component through two independent GPIO signal lines, where i∈[0,N-1], N is the number of blade units. Pin INT_ACK[i] is used to trigger immediately after the blade unit receives the control instruction and verifies successfully. The high level is valid, indicating "acknowledgement received" and has a higher priority; pin INT_RESULT[i] is used to trigger after the control instruction of the blade unit is executed or times out. The high level is valid, indicating "execution result ready" and has a normal priority; when the agent plug-in receives the configuration management instruction, the agent The plug-in checks the integrity of the received configuration management instructions, controls the multiplexer to switch the serial port receiving channel to connect the sending serial port TX of the blade unit and the receiving serial port RX of the monitoring and management blade by controlling the GPIO signal, and sends the "received instruction" confirmation information to the monitoring and management software SMC through the serial communication protocol after receiving the switching confirmation signal; when the agent plug-in completes the execution of the configuration management instruction or the execution times out, it controls the multiplexer to switch the serial port receiving channel to connect the sending serial port TX of the blade unit and the receiving serial port RX of the monitoring and management blade by controlling the GPIO signal, and sends the instruction execution result information to the monitoring and management software SMC through the serial communication protocol after receiving the switching confirmation signal; the slave multiplexer is connected to the monitoring and management software SMC through a The completion flag bit done_flag1 of the internal control signal, a switching logic module, a status detection module and a status register status_reg1 are used to implement the serial port receiving channel management. The completion flag bit done_flag1 of the internal control signal is used to indicate whether the serial port switching is completed; during initialization, the completion flag bit done_flag1 is set to a low level; after the switching operation is completed, the completion flag bit done_flag1 is set to a high level; the status register status_reg1 is used to record the information of the currently connected serial port device; each bit of the status register status_reg1 represents a serial port device, and the corresponding position of the currently connected device is 1; after the switching is completed After the connection is completed, the status register status_reg1 is updated to indicate the new connection status; the status detection module is used to detect the status of the current serial port receiving channel; a state machine is designed inside the CPLD switch logic component to track the transmission status of the data frame, which is divided into two states: idle and busy; the status detection module can identify the start bit at the beginning and the stop bit at the end of the data frame; initially, the state machine is in the idle state. When the status detection module detects the start bit of the data frame, the state machine state is set to busy; when the status detection module detects the stop bit of the data frame, the state machine state is set to idle; each bit of the receive instruction register ack_reg represents a serial port device, and the corresponding position of the blade unit requesting feedback of the receive instruction is 1;Each bit of the execution result register result_reg represents a serial port device, and the corresponding bit of the blade unit requesting feedback of the execution instruction result is 1; the GPIO signal processing module is used to monitor the response signal of each blade unit in real time, that is, to scan the status of all pins INT_ACK[i] and INT_RESULT[i] in real time; once it is detected that a blade unit sends a "received confirmation" or "execution result ready" signal, indicating that the blade has successfully received the instruction or completed the instruction execution, the receiving instruction register ack_reg or the execution result register result_reg of the corresponding blade unit number is immediately set to 1, triggering the switching logic module to switch the serial port receiving channel to avoid blocking caused by synchronous waiting; the switching logic module is responsible for detecting the receiving instruction register ack_reg and the execution result register reult_reg, and giving priority to the receiving instruction register ack_reg. reg. Only when the receive instruction register ack_reg is all 0s does the system retrieve the number of the blade unit to be connected from the execution result list result_list in the execution result register reult_reg. When a serial port channel needs to be established between a blade unit and the monitoring and management blade, the system waits until the current serial port channel is idle and then configures the internal multiplexing switch so that the blade unit's transmitting serial port TX is connected to the monitoring and management blade's receiving serial port RX. After the switch is complete, the status of the completion flag bit done_flag1 is updated to a high level, and the corresponding bit of the connected device in the status register status_reg1 is updated to indicate that the switch is complete. Furthermore, after the switch is complete, the corresponding GPIO pin of the blade unit is set to a high level and maintained for a preset time to allow the blade unit host to detect the "switching complete" signal.

7. The method for parallel configuration management of multi-unit servers with software and hardware collaborative design according to claim 1, characterized in that: The monitoring and management software SMC deployed on the monitoring and management blade sends a control instruction packet to the blade unit through the serial communication protocol, and the agent plug-in on the blade unit sends a response packet to the monitoring and management blade in response to the control instruction packet of the monitoring and management blade; wherein, the frame format of the control instruction packet consists of 7 parts, namely, the frame header sign, the target node IDnode_ID, the instruction type cmd_Type, the instruction data field length cmd_DataLen, the instruction data cmd_Data, the timeout timeout_ms and the check code crc_16, and the frame format of the response packet consists of 8 parts, namely, the frame header sign, the source node IDnode_ID, the instruction type cmd_Type, the execution status status, the execution result field length result_DataLen, the execution result result_data, the execution time timestamp and the check code crc_16.

8. The method for parallel configuration management of multi-unit servers with software and hardware collaborative design according to claim 1, characterized in that: It also includes the steps for the monitoring management software SMC to execute configuration management instructions: S101, the monitoring management software SMC maintains a queue of pending configuration management instructions and a queue of completed instructions. After receiving a monitoring management command provided by an upper-layer application, the monitoring management software SMC parses the command to form a set of configuration management instructions for each blade unit. The initial priority value of the configuration management instruction is provided by the upper-layer application. The monitoring management software SMC adds the configuration management instruction to the queue of pending configuration management instructions according to the instruction priority and sets the status bit of the corresponding instruction to "00"; S102, determining whether the queue of configuration management instructions to be executed by the monitoring management software SMC is empty. If not, taking the highest priority instruction from the queue of configuration management instructions to be executed according to the priority, parsing the blade unit target node node_ID of the configuration management instruction, and jumping to step S103; Otherwise, jump to step S102 to continue judging; S103, the monitoring management software SMC determines whether the currently connected serial port device is the target blade unit by reading the status register status_reg0 of the main multiplexer. If the status register status_reg0 of the main multiplexer shows that the target blade unit is connected, the monitoring management blade starts communicating and sends a configuration management instruction. The instruction status in the configuration management instruction queue to be executed is updated to "01"; S104: The monitoring and management software SMC obtains status information of the blade unit through the baseboard management controller (BMC) of the corresponding blade unit and determines whether the blade unit is operating normally. If the blade unit is operating normally, the monitoring and management software SMC sends a GPIO signal to the CPLD switch logic component to request the establishment of a serial port transmission channel from the monitoring and management blade to the blade unit, and the process proceeds to step S105. If the blade unit is not operating normally, the monitoring and management software SMC lowers the priority of the configuration management instruction in the queue of configuration management instructions to be executed, and the process proceeds to step S102. S105: After the CPLD switching logic component receives the GPIO signal, the main multiplexer switches the serial port channel between the CPU of the switch management blade and the CPU of the target blade unit according to the target blade unit identified by the GPIO signal, establishes a serial port transmission path for the configuration management command, and feeds back a message indicating that the serial port transmission path has been successfully established. S106, after receiving the switching confirmation signal of the successful establishment of the serial port transmission path, the monitoring management software SMC sends a configuration management instruction, and the instruction status in the configuration management instruction queue to be executed is updated to "01".

9. The method for parallel configuration management of multi-unit servers with software and hardware collaborative design according to claim 1, characterized in that: The step of executing the configuration management instruction by the agent plug-in in the blade unit is also included: S201, the proxy plug-in monitors serial port information and jumps to step S202 after receiving the configuration management instruction; S202, checking the integrity of the received configuration management instruction through CRC check: if the received configuration management instruction is complete, executing the corresponding configuration management instruction and waiting for the completion of the instruction execution; at the same time, sending a GPIO signal control to request switching the blade unit to the serial port receiving channel of the monitoring and management blade; setting the frame header in the acknowledgment response packet frame to "0x01" and the status to 0; after receiving the switching confirmation signal, sending a "received instruction" acknowledgment response packet frame to the monitoring and management software SMC through the serial communication protocol; if the received configuration management instruction is incomplete, sending a GPIO signal control to request switching the blade unit to the serial port receiving channel of the monitoring and management blade, setting the frame header in the acknowledgment response packet frame to "0x01" and the status to a non-zero error code; after receiving the switching confirmation signal, sending a "received instruction" acknowledgment response packet frame to the monitoring and management software SMC through the serial communication protocol; finally, after the configuration management instruction execution is completed, jumping to step S203; S203, the agent plug-in sends a GPIO signal control request to switch the blade unit to the serial port receiving channel of the monitoring and management blade; Set the frame header to "0x02" and set the contents of other fields of the response packet according to the execution of the configuration management command; After receiving the switching confirmation signal, the "execution completed" response packet frame is sent to the monitoring management software SMC through the serial communication protocol; S204: After receiving the response information from the agent plug-in, the monitoring management software SMC will perform corresponding processing based on the type of the response information: If the frame header of the received response packet is "Received Command": Based on the response packet status information, if the status is 0, it means that the instruction received by the agent plug-in is consistent with the instruction sent, and the instruction status in the pending configuration management instruction queue is updated to "10"; if the status is non-0, the agent plug-in failed to receive the instruction, the instruction execution priority is increased, and the instruction status in the pending configuration management instruction queue is updated to "00"; If the type of the received response packet is "Execution Completed": Based on the response packet status information, if the status is 0, it means that the instruction execution was successful, the instruction status in the pending configuration management instruction queue is updated to "11", the instruction is added to the instruction completion queue, and the corresponding execution result is analyzed and fed back to the upper-layer application; If the status is non-0, it means that the instruction execution failed, the instruction execution priority is lowered, and the instruction status in the pending configuration management instruction queue is updated to "00".

10. A multi-unit server parallel configuration management system with software and hardware collaborative design, comprising interconnected monitoring management blades and blade units, characterized in that: The monitoring management blade and the blade unit are programmed or configured to execute the multi-unit server parallel configuration management method with hardware and software collaborative design as claimed in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Method for implementing redundant management module in compact peripheral component interconnect (CPCI) blade server

    CN102253872A

  • Serial port multiplexing switching circuit

    CN115757235A

  • Data processing method and device, electronic equipment and storage medium

    CN115905087A

  • Multiplexer parameter configuration method and device, storage medium and product

    CN119814550A

  • Monitor Chaining and Docking Mechanism

    US20120062800A1