Server startup method

Through cross-validation and self-verification calculations of complex programmable logic devices and baseboard management controllers, data security issues caused by failure to detect the legality of firmware when renting servers are solved, ensuring data security and integrity.

CN112632552BActive Publication Date: 2024-10-25GIGA COMPUTING TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910907813.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-09-24
Publication Date
2024-10-25
Estimated Expiration
2039-09-24

AI Technical Summary

Technical Problem

When existing servers were rented, the supplier did not check the legality of the complex programmable logic device (CPLD) and baseboard management controller (BMC) firmware, which could lead to the possibility of malicious viruses being implanted, endangering data security.

Method used

Through cross-validation between complex programmable logic devices and baseboard management controllers, the legitimacy of startup signals and response signals is determined to ensure that only legitimate signals can start the operating system, and self-verification operations are performed when necessary to ensure the integrity of the firmware. sex.

Benefits of technology

It effectively prevents server firmware from being tampered with, protects data stored on the server, and ensures data security and integrity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112632552B_ABST
    Figure CN112632552B_ABST
Patent Text Reader

Abstract

A server startup method is applicable to a server including a complex programmable logic device and a baseboard management controller. The method includes receiving a first startup signal by a complex programmable logic device, outputting a second startup signal to the baseboard management controller according to the first startup signal by the complex programmable logic device, outputting a check signal by the baseboard management controller according to the second startup signal, outputting a response signal corresponding to the check signal to the baseboard management controller when the complex programmable logic device determines that it has received the check signal within a first predetermined period of time and determines that the check signal is legal, and starting an operating system by the baseboard management controller when the baseboard management controller determines that it has received the response signal within a second predetermined period of time and determines that the response signal is legal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a server startup method, and in particular to a server startup method based on a complex programmable logic device and a baseboard management controller. Background Art

[0002] In recent years, due to the rise of cloud services (Cloud Server) and data centers (Data Center), many small and medium-sized enterprises choose to rent servers in data centers to save the cost of building hardware. Among them, complex programmable logic devices (CPLD) are often used to control the power supply of servers, while baseboard management controllers (BMC) control the overall operation of servers to ensure that the servers provide normal services.

[0003] However, general suppliers will only update the operating system when the lease expires. If the supplier does not check the legitimacy of the CPLD or BMC firmware, when someone with ulterior motives implants a malicious virus in the server, the next user who rents the server will expose his or her data to danger without knowing it. Therefore, how to prevent the server from being implanted with malware and protect the data and data stored on the server from being maliciously tampered with or stolen has become an important issue today. Summary of the invention

[0004] In view of the above, the present invention provides a server startup method to meet the above requirements.

[0005] A server startup method according to an embodiment of the present invention is applicable to a server including a complex programmable logic device and a baseboard management controller, comprising: receiving a first startup signal by the complex programmable logic device; outputting a second startup signal to the baseboard management controller according to the first startup signal by the complex programmable logic device; outputting a check signal by the baseboard management controller according to the second startup signal; determining by the complex programmable logic device whether the check signal is received within a first predetermined time period; when determining that the complex programmable logic device receives the check signal within the first predetermined time period, determining whether the check signal is legal; when determining that the check signal is legal by the complex programmable logic device, outputting a response signal corresponding to the check signal to the baseboard management controller; determining by the baseboard management controller whether the response signal is received within a second predetermined time period; when determining that the baseboard management controller receives the response signal within the second predetermined time period, determining whether the response signal is legal; and when determining that the response signal is legal, controlling the startup of an operating system of the server by the baseboard management controller.

[0006] Through the above implementation content, the present invention can prevent the server firmware from being tampered with and protect the data and information stored in the server by mutual authentication of the complex programmable logic device and the baseboard management controller.

[0007] The above description of the disclosed content and the following description of the embodiments are used to demonstrate and explain the spirit and principle of the present invention, and to provide a further explanation of the scope of the patent application of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 The figure is a flow chart of a server startup method according to an embodiment of the present invention.

[0009] Figure 2 The figure is a flow chart of a server startup method according to another embodiment of the present invention.

[0010] Figure 3 FIG. 4 is a flow chart of a self-verification operation in a server startup method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0011] The detailed features and advantages of the present invention are described in detail in the following embodiments, and the contents are sufficient to enable any person skilled in the art to understand the technical content of the present invention and implement it accordingly, and according to the contents disclosed in this specification, the scope of the patent application and the drawings, any person skilled in the art can easily understand the relevant purposes and advantages of the present invention. The following examples further illustrate the viewpoints of the present invention in detail, but do not limit the scope of the present invention in any viewpoint.

[0012] Please refer to Figure 1 , Figure 1 The flowchart of a server startup method according to an embodiment of the present invention is shown, wherein the server startup method disclosed in the present invention is applicable to a server including a complex programmable logic device (CPLD) and a baseboard management controller (BMC).

[0013] When the complex programmable logic device of the server receives the first start signal (step S01), step S02 is executed: the complex programmable logic device outputs a second start signal to the baseboard management controller according to the first start signal. In detail, after the complex programmable logic device is started (Boot) (for example, when the power button of the server is triggered, the complex programmable logic device of the server will receive the first start signal and be started), the complex programmable logic device then outputs a second start signal to the baseboard management controller to start the baseboard management controller. When the baseboard management controller receives the second start signal, step S03 is executed: the baseboard management controller outputs a check signal according to the second start signal. Further, when the baseboard management controller is started by the second start signal, a check signal will be generated and output to the complex programmable logic device. The check signal can be a signal that requests one or more specific parameters from the complex programmable logic device. The specific parameters may be, for example, the update date of a complex programmable logic device or a baseboard management controller, the firmware version number of the baseboard management controller, the serial number of a server or the entire computer host, or an encrypted code of the aforementioned firmware update date, version number and / or serial number, but the present invention is not limited thereto.

[0014] Please continue to refer to Figure 1, in step S04, the complex programmable logic device determines whether a check signal is received within a first predetermined period of time. Generally speaking, the length of the first predetermined period of time can be determined according to actual needs, and this first predetermined period of time can be calculated from the time when the complex programmable logic device outputs the second start signal. When the complex programmable logic device does not receive the check signal within the first predetermined period of time, step S05 will be executed to generate and output an error record. However, the starting time point of the first predetermined period of time can also be adjusted according to actual needs, and the present invention is not limited to this. In detail, when the complex programmable logic device does not receive the check signal within the first predetermined period of time, it indicates that the baseboard management controller may have timed out, so an error record is generated and output. The error record may include the device where the error occurs (in the above situation, the baseboard management controller) and the error event (in the above situation, the operation timeout event). The complex programmable logic device can store the error record in the system log, or output it to a cloud database or other system through the network, and the present invention is not limited to this. In addition, since the CPLD is the main element for controlling the power sequence on the server, in another embodiment, when the CPLD does not receive the check signal within the first predetermined period, the power sequence can be directly controlled to shut down so that the server cannot be started.

[0015] When the complex programmable logic device determines that a verification signal is received within the first predetermined time period, it will continue to execute step S06 to determine whether the verification signal is legal. Further, the complex programmable logic device will determine whether the verification signal meets the default requirements pre-stored in the complex programmable logic device. Furthermore, when it is confirmed that the complex programmable logic device and the baseboard management controller have not been tampered with or implanted with malicious software (for example, when the server is just installed), the complex programmable logic device and the baseboard management controller can agree on a verification process with each other. For example, the verification process is that the baseboard management controller will request computer version parameters from the complex programmable logic device, then the verification signal and the default requirement are "requesting computer version parameters". The above parameters are only examples, and the present invention is not limited to this.

[0016] When the complex programmable logic device determines that the check signal is legal, it means that the baseboard management controller firmware should not be tampered with, and then step S07 is executed by the complex programmable logic device to generate and output a response signal corresponding to the check signal. Further, the response signal includes specific parameters corresponding to the requirements in the check signal, and the detailed examples are listed above and will not be repeated here. On the other hand, when the complex programmable logic device determines that the check signal is not legal, step S05 is executed to output an error record, or control the power sequence to shut down.

[0017] In step S08, the baseboard management controller determines whether a response signal is received within a second predetermined time period. Further, the second predetermined time period may start from the time the baseboard management controller outputs a check signal. When the baseboard management controller does not receive a response signal within the second predetermined time period, an error record is output in step S05. Similarly to the judgment of the aforementioned programmable logic device, when the baseboard management controller does not receive a response signal within the second predetermined time period, it indicates that the complex programmable logic device may have timed out, and thus an error record is generated and output. The error record is the same as the error record made by the aforementioned complex programmable logic device when determining that an error event has occurred, and will not be repeated here. Conversely, when the baseboard management controller determines that a response signal is received within the second predetermined time period, it proceeds to step S09 to determine whether the response signal is legal. Further, the baseboard management controller determines whether the response signal output by the complex programmable logic device in response to the default requirement complies with the default parameters or records in the baseboard management controller.

[0018] For example, if the preset requirement is an update date, the CPLD will correspondingly output its own update date as a response signal, and the BMC will determine whether the update date of the CPLD in the response signal matches the update date of the BMC itself. If they match, it is legal. For another example, the BMC and CPLD can also notify each other of the update time when they were previously updated, so the preset requirement can also be the update date of the BMC or the CPLD. In addition, the response signal can also be the firmware version number corresponding to the above-mentioned check signal, the serial number of the server or the entire computer host, etc., but the present invention is not limited to this.

[0019] When the BMC determines that the response signal is valid, step S10 is executed: the BMC starts the operating system; and when the CPLD determines that the check signal is invalid, step S05 is executed to generate and output an error record. The error record is as described in the previous embodiment and will not be repeated here.

[0020] Please refer to Figure 2 , Figure 2 A flow chart of a server startup method according to another embodiment of the present invention is shown. Figure 2 The flowchart of the server startup method is similar to Figure 1 The flowchart is different in that Figure 2 When the determination results of step S08 “the baseboard management controller determines whether a response signal is received within the second predetermined period” and step S09 “determine whether the response signal is legal” are “no”, the process proceeds to step S05′.

[0021] In detail, Figure 2In step S08, when the baseboard management controller determines that the response signal is not received within the second predetermined time period or determines that the response signal is illegal in step S09, step S05' is executed: determine whether "No" exceeds N times. In other words, the baseboard management controller will determine whether the number of times the response signal is not received and the response signal is illegal exceeds N times (for example, 5 times, which can also be increased or decreased according to actual needs). When the baseboard management controller determines that the response signal is not received and the response signal is illegal The number of times the judgment is not N times (that is, "No" does not exceed N times), step S03 is executed again to output a check signal; conversely, when the baseboard management controller determines that the response signal is not received and the number of times the judgment is illegal The response signal is illegal exceeds N times (that is, "No" exceeds N times), step S05 is executed: output an error record. The error record is as described in the previous embodiments and will not be repeated here. In addition, when the baseboard management controller determines that "No" does not exceed N times in step S05' and continues to execute step S03, the first predetermined time period of step S04 can be started from the time when the complex programmable logic device outputs a response signal corresponding to the check signal (step S07). However, the starting time point of the first predetermined time period can also be adjusted according to actual needs, and the present invention is not limited to this.

[0022] Among them, Figure 1 and Figure 2 In the embodiment of the present invention, after the baseboard management controller starts the operating system, the baseboard management controller may generate another check signal after a period of time, and execute the complex programmable logic device to judge the check signal in step S04, and then continue to perform the following steps: Figure 1 and Figure 2 In the process following step S04, when the baseboard management controller determines that the response signal corresponding to the check signal output by the complex programmable logic device is legal in step S09, the startup state of the operating system is maintained.

[0023] Please refer to Figure 3 , Figure 3 FIG. 1 is a flow chart of performing a self-verification operation according to an embodiment of the present invention. In more detail, Figure 3 The self-verifying operation revealed is Figure 1 or Figure 2 The process is then executed after step S10 (i.e. starting the operating system).

[0024] Please continue to refer to Figure 3, when the operating system is started, step S11 can be executed: perform a self-verification operation with the baseboard management controller and obtain an operation value. In detail, the baseboard management controller can perform a self-verification operation and obtain an operation value based on at least one of the executable file and the library file of the baseboard management controller. Among them, the self-verification operation is preferably a hash operation (Hash Algorithm), so the operation value is preferably a hash value (Hash Value). In more detail, the hash operation is, for example, the Message-Digest 5 Algorithm (MD5), the Cyclic Redundancy Check (CRC) algorithm, the Secure Hash Algorithm (SHA) or the Advanced Encryption Standard (AES) algorithm, and among the hash algorithms, the Secure Hash Algorithm and the Advanced Encryption Standard algorithm are safer encryption methods. However, the self-authentication operation may also be an asymmetric cryptographic algorithm (Rivest-Shamir-Adleman, RSA), a Hash-Based Message Authentication Code (HMAC), a Base 64 algorithm, etc.

[0025] Please continue to refer to Figure 3 And continuing with the above step S11, after the baseboard management controller obtains the calculated value, in step S12, the baseboard management controller determines whether the calculated value is equal to the reference value, that is, the baseboard management controller determines whether the calculated value (hash value) is correct. When the baseboard management controller determines that the calculated value is equal to the reference value, the baseboard management controller performs a self-verification operation based on at least one of the above-mentioned executable file and library file at each interval; when the baseboard management controller determines that the calculated value is not equal to the reference value, the baseboard management controller outputs another error record in step S13. Among them, the above-mentioned reference value can be a reference value obtained by the baseboard management controller when it determines that the executable file and the library file have not been tampered with and no malware has been implanted (for example, when the server is installed), and the executable file or the library file performs the operation based on the self-verification operation. In other words, when the self-verification operation is completed, it can be confirmed whether the server has been tampered with.

[0026] Based on the above content, the server startup method proposed in one or more embodiments of the present invention can determine the legitimacy of the firmware of the baseboard management controller through the complex programmable logic device before starting the operating system, and use the baseboard management controller to determine the legitimacy of the complex programmable logic device. Through the above cross-verification method, it is possible to avoid starting the operating system when the firmware of the baseboard management controller or the complex programmable logic device has been tampered with, thereby avoiding errors in the operation of the operating system. In addition, through the above cross-verification method, it is also possible to determine whether the firmware of the complex programmable logic device or the baseboard management controller is developed by a designated manufacturer. If it is found that the complex programmable logic device or the baseboard management controller has been tampered with or is not developed by a designated manufacturer, an error record can also be output to remind the relevant operators.

[0027] In addition, the server startup method proposed in one or more embodiments of the present invention can determine the validity of the firmware of the baseboard management controller itself by performing a self-verification operation based on the executable file and the library file by the baseboard management controller, and can perform the self-verification operation again at an interval to regularly check the validity of the firmware of the baseboard management controller, thereby preventing the server from being tampered with, implanted with malware, or damaged by the file system at a certain time point after the operating system starts to operate, and can also prevent the validity of the firmware of the baseboard management controller from being misjudged. In addition, when the above self-verification operation is implemented by hash operation, in addition to having both security and execution speed, it can also avoid prolonging the server startup time and affecting the performance of the server.

[0028] Of course, the present invention may have many other embodiments. Without departing from the spirit and essence of the present invention, technicians familiar with the field may make various corresponding changes and deformations based on the present invention, but these corresponding changes and deformations should all fall within the scope of protection of the claims of the present invention.

Claims

1. A server startup method, applicable to a server comprising a complex programmable logic device and a baseboard management controller, It is characterized in that Include: Receiving a first start signal with the complex programmable logic device; Outputting a second activation signal to the baseboard management controller by the complex programmable logic device according to the first activation signal; The baseboard management controller initiates a server startup legitimacy detection according to the second startup signal; the server startup legitimacy detection includes: The baseboard management controller outputs a check signal; Determining by the complex programmable logic device whether the check signal is received within a first predetermined period of time; When it is determined that the complex programmable logic device receives the check signal within the first predetermined period, determining whether the check signal is legal; When the complex programmable logic device determines that the check signal is legal, a response signal corresponding to the check signal is output to the baseboard management controller; Determining by the baseboard management controller whether the response signal is received within a second predetermined period of time; When the baseboard management controller determines that the response signal is received within the second predetermined period, determining whether the response signal is legal; as well as The baseboard management controller determines whether the response signal is legal; When the baseboard management controller determines that the response signal is legal, the baseboard management controller controls the startup of an operating system of the server; as well as, After the operating system is started, the baseboard management controller initiates a server startup legitimacy check after a third predetermined period of time. When the baseboard management controller determines that the response signal is legal, the startup state of the operating system is maintained.

2. The method of claim 1, wherein when the baseboard management controller determines that the response signal is not received within the second predetermined period of time, and the baseboard management controller determines that the response signal is illegal a number of times does not exceed a predetermined number of times, the baseboard management controller outputs the check signal.

3. The method of claim 1, wherein determining whether the response signal is legal by the CPLD comprises determining whether the response signal complies with a default parameter recorded in the CPLD. 4 . The method of claim 1 , wherein when the CPLD determines that the check signal is not received within the first predetermined period of time, the CPLD outputs an error record. 5 . The method of claim 1 , wherein when the baseboard management controller determines that the response signal is not received within the second predetermined period of time, the baseboard management controller outputs an error record.

6. The method of claim 1, wherein the method further comprises, after starting the operating system, using the baseboard management controller to perform a self-verification operation based on at least one of an executable file and a library file and obtain an operation value, and using the baseboard management controller to determine whether the operation value is equal to a reference value. 7 . The method of claim 6 , wherein when it is determined that the calculated value is not equal to the reference value, the baseboard management controller outputs another error record. 8 . The method of claim 6 , wherein when it is determined that the operation value is equal to the reference value, the baseboard management controller executes the self-verification operation based on at least one of the executable file and the library file at intervals.

9. The method of claim 6, wherein the self-verification operation is a hash operation.