CN102299935A - Method for improving server stability of prestart execution environment and server device - Google Patents

Method for improving server stability of prestart execution environment and server device Download PDF

Info

Publication number
CN102299935A
CN102299935A CN2010102089702A CN201010208970A CN102299935A CN 102299935 A CN102299935 A CN 102299935A CN 2010102089702 A CN2010102089702 A CN 2010102089702A CN 201010208970 A CN201010208970 A CN 201010208970A CN 102299935 A CN102299935 A CN 102299935A
Authority
CN
China
Prior art keywords
server
client computer
network boot
boot
download
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2010102089702A
Other languages
Chinese (zh)
Other versions
CN102299935B (en
Inventor
叶顺智
李忠安
郭远翰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wistron Corp
Original Assignee
Wistron Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wistron Corp filed Critical Wistron Corp
Priority to CN201010208970.2A priority Critical patent/CN102299935B/en
Publication of CN102299935A publication Critical patent/CN102299935A/en
Application granted granted Critical
Publication of CN102299935B publication Critical patent/CN102299935B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a method for improving server stability of a prestart execution environment and a server device. In the method, a server supports a prestart execution environment. The method comprises the following steps of: when a client computer is started up in the prestart execution environment, instructing the client computer to execute a first network boot program; receiving a request signal output by the first network boot program, wherein the request signal is used for requesting the server to allow the client computer to download a second network boot program, and the second network boot program is used for downloading an operation system by the server; and outputting a response signal corresponding to the request signal to allow or forbid the client computer according to the service condition of the server to download the second network boot program.

Description

Promote the method and the server unit of the server stability of Pre-boot Execution Environment
Technical field
The present invention relates to a kind of method and server unit that promotes the server stability of Pre-boot Execution Environment, relate in particular to a kind of multi-client of effectively avoiding and download simultaneously, and then prevent method and the server unit that server is damaged or client computer is abandoned starting shooting.
Background technology
(Preboot eXecution Environment is a kind of environment of network start PXE) to Pre-boot Execution Environment, also can be described as no disk start, is intended to make network interface to become the computer booting device.In simple terms, in Pre-boot Execution Environment, server provides service, and (for example: under situation hard disk), do not need prior installing operating system, just can start shooting enters operating system at no storage medium to make client computer.
PXE communication protocol combines DynamicHost and sets agreement (Dynamic Host Configuration Protocol, DHCP), Trivial file transfer protocol (Trivial File Transfer Protocol, TFTP) and three existing standards of network boot (Network Bootstrap Program, NBP).Wherein, DHCP is carried out by server, is used for automatic distribution network address to client computer, and the indication client computer is relevant to the information of TFTP and NBP; TFTP is carried out by server, is used to provide file download service, makes client computer obtain specific file (being NBP); NBP is the file that is stored in server, is sent to client computer via TFTP, is carried out by client computer.Start function mode about known PXE please refer to Fig. 1.
As shown in Figure 1, after starting start, the basic input/output system of client computer (Basic Input/Output System) can be carried out flow processs such as start test, then gives boot program with right of execution.Obtain right of execution by boot program and obtain operating system (Operation System) to client computer and can roughly be divided into three phases, be respectively A1, A2, A3.In stage A 1, boot program proposes demand for services to the DHCP unit of server, and then client computer can be given in the distribution network address in the DHCP unit, and indication is relevant to the information of TFTP and NBP.In stage A 2, the information that boot program is provided according to the DHCP unit proposes the download demand to the TFTP unit of server, to obtain NBP and NBP is stored in the memory.At last, in stage A 3, boot program is given NBP with right of execution, and then NBP can propose the download demand to the TFTP unit of server, to obtain operating system and operating system is stored in the memory.After stage A 3 obtained operating system, NBP can give operating system with right of execution, finishes boot program by operating system.
Therefore, by stage A 1, A2, A3, client computer can obtain operating system, reaches the purpose of no disk start.Yet in stage A 2 or A3, client computer all needs if be in stage A 2 or A3 simultaneously with too much client computer of time, can cause very big burden by the server file in download to the TFTP unit of server.In this case, the reaction speed of the TFTP unit of server is slack-off, speed of download is slack-off, makes the NBP waits for too long of client computer, and abandons or restart start.What is more, if the client computer of downloading is simultaneously increased sharply, even may cause server to damage, and makes the All Clients can't file in download, causes system to be stopped.
Hence one can see that, and the function mode of known PXE has improved necessity in fact.
Summary of the invention
Therefore, main purpose of the present invention promptly is to provide a kind of method and server unit that promotes the server stability of Pre-boot Execution Environment.
The present invention discloses a kind of method of stability of lifting one server, and this server is supported a Pre-boot Execution Environment, and this method includes when a client computer is started shooting by this Pre-boot Execution Environment, indicates this client computer to carry out one first network boot; Receive the request signal that this first network boot is exported, this request signal is used for asking this server to allow this clients download one second network boot, and this second network boot is downloaded an operating system with this server of cause; And according to the service scenarios of this server, output is corresponding to a back-signalling of this request signal, to allow or to forbid this second network boot of this clients download.
The present invention discloses a kind of server unit that promotes stability in addition, and this server unit is supported a Pre-boot Execution Environment, and it includes a processor; And a memory, being used for storing a program, this program is used to refer to this processor and carries out following steps: when a client computer is started shooting by this Pre-boot Execution Environment, indicate this client computer to carry out one first network boot; Receive the request signal that this first network boot is exported, this request signal is used for asking this server to allow this clients download one second network boot, and this second network boot is downloaded an operating system with this server of cause; And, export a back-signalling according to the service scenarios of this server, to allow or to forbid this second network boot of this clients download.
Description of drawings
Fig. 1 is the schematic diagram of PXE start function mode in the known technology.
Fig. 2 is the schematic diagram of embodiment of the invention PXE start function mode.
Fig. 3 is the schematic diagram of the embodiment of the invention one flow process 30.
[main element symbol description]
A1, A2, A3, B1, B2, B3, B4, B5 stage
30 flow processs
300,302,304,306,308 steps
Embodiment
The major defect of known PXE start flow process is that the TFTP standard for the All Clients requirement, all refuses nobody, so that can't limit the quantity of client computer, causes delay machine or running speed of system slack-off.Improve this shortcoming,,, can both start shooting successfully by PXE to guarantee each client computer so can only increase the usefulness of server or, limit the number of client computer with artificial action owing to can't revise the TFTP stand-by period of the NBP program that the third party writes.In this case, in the setting of not revising existing PXE system, do not change under the original start of client computer yet, improve the shortcoming of known PXE, the present invention imports one and askes the mechanism of answering, and the situation by client computer is inquired TFTP earlier makes server can control the carrying out of follow-up flow process according to this.Whether and this inquiry is answered the specific implementation of mechanism by a newly-increased auxiliary NBP, and suitably revises the flow process of TFTP, allow clients download to be used for obtaining the NBP (below be called traditional NBP) of operating system with decision.
Specifically, please refer to Fig. 2, Fig. 2 is the schematic diagram of the embodiment of the invention one PXE start function mode.As shown in Figure 2, after starting start, the basic input/output system of client computer can be carried out flow processs such as start test, then gives boot program with right of execution.Obtain right of execution by boot program and obtain operating system to client computer and be divided into five stages, be respectively B1, B2, B3, B4, B5.In stage B 1, boot program proposes demand for services to the DHCP unit of server, and then client computer can be given in the distribution network address in the DHCP unit, and indication is relevant to the information of TFTP and auxiliary NBP.In stage B 2, the information that boot program is provided according to the DHCP unit proposes the download demand to the TFTP unit of server, to obtain auxiliary NBP and will assist NBP to be stored in the memory.In stage B 3, boot program is given auxiliary NBP with right of execution, and auxiliary NBP can propose to download the request of traditional NBP to the TFTP unit of server.If the TFTP unit allows clients download tradition NBP, then enter stage B 4; Otherwise, then maintain stage B 3, the permission of waiting for server.After auxiliary NBP obtained the permission of TFTP unit, in stage B 4, auxiliary NBP can propose the download demand to the TFTP unit, to obtain traditional NBP and traditional NBP is stored in the memory.At last, in stage B 5, auxiliary NBP gives traditional NBP with right of execution, and then traditional NBP can propose the download demand to the TFTP unit, to obtain operating system and operating system is stored in the memory.After stage B 5 got operating system, traditional NBP can give operating system with right of execution, finishes boot program by operating system.
Therefore, comparison diagram 1 and Fig. 2 as can be known, the present invention revises TFTP flow process (stage B 2), and increases the mechanism (stage B 3, B4) of inquiry TFTP situation, in other words, among Fig. 2 among stage B1, B5 and Fig. 1 stage A1, A3 be identical function mode.In addition, be noted that, in the PXE framework, client computer only has the function of passive execution NBP, in other words, the present invention does not need soft, the hardware of client computer are carried out any modification, only needs to increase in server the download mechanism of auxiliary NBP, and revise the operation procedure of TFTP, thereby complexity or degree of difficulty can significantly reduce specific implementation the time.
Further, in Fig. 2, stage B 3 is situations that client computer inquiry server is relevant to TFTP.Therefore, the judgment mechanism of the predeterminable number of clients in TFTP unit of server.For example, when the client computer of downloading did not simultaneously reach a preset upper limit value, if there is a client computer to require to download traditional NBP, then the TFTP unit can allow it to download (promptly entering stage B 4).Otherwise when if the client computer of Xia Zaiing has reached preset upper limit value simultaneously, if there is a client computer to require to download traditional NBP, then the TFTP unit can not allow it to download (promptly maintaining stage B 3).In stage B 3, if client computer is not subjected to the permission of server, then client computer can remain under the state of wait, and continues inquiry TFTP unit, till obtaining allowing to enter stage B 4.Because the situation that client computer can be inquired TFTP, and before not obtaining permission, can continue to wait for, do not carry out other actions, so server can be controlled the priority of client computer PXE start by this.
That is to say that when the client computer of downloading had simultaneously reached preset upper limit value, the client computer that subsequent request is downloaded traditional NBP all can remain under the wait state; At this moment, if there is a client computer to finish download, and when making server that download service can be provided to the client computer under the wait state, server can be set the priority of client computer according to default decision logic, and according to this order, gives the client computer permission.And the decision foundation of priority can be to be as the criterion with the time that proposes download request, or is basis for estimation according to the model of client computer, degree of priority etc., and is not limited thereto.If server was as the criterion with the time that proposes download request, then when client computer proposes download request, the TFTP unit should write down the recognition data (as the network address) of client computer and the time of filing a request, then according to the sequencing of time, give the client computer permission, allow wait client computer at most preferentially carry out.In addition, if server is the decision foundation according to the model of client computer, then auxiliary NBP should be earlier in the basic input/output system of client computer, obtain system information, follow download request to send the TFTP unit to this system information again, make the TFTP unit give the client computer permission, allow the client computer of specific model preferentially carry out according to this according to the order of model.
Be noted that, aforementionedly only be the feasible embodiment of the present invention according to time that proposes download request or way that the client computer model is judged the client computer priority, in fact, the foundation of server decision priority is not limited thereto, also can consider to propose the time and the client computer model of download request simultaneously, or judge according to other information.And the realization of this priority judgment mechanism does not relate to soft, the hardware structure of client computer equally, and only need adjust the content of TFTP flow process or auxiliary NBP.
On the other hand, because auxiliary NBP can inquire the TFTP situation of server, if can't obtain permission, then can remain on wait state, therefore can guarantee that the stand-by period of client computer can be not expired, and each client computer can start shooting smoothly, the difference on the sequencing is only arranged.In other words, the present invention need not revise the TFTP stand-by period of the NBP program that the third party writes, and can guarantee that the stand-by period of client computer can be not expired, and each client computer can be started shooting smoothly.The more important thing is that server can be avoided multi-client to download simultaneously, thereby can prevent the situation that server is damaged or client computer is abandoned starting shooting by the mechanism of scheduling or priority control.
In known technology, if, then can cause very big burden, may cause reaction speed and speed of download slack-off, even may cause the server machine of delaying the TFTP unit of server with too much client computer of time file in download simultaneously.In comparison, the present invention imports one and askes the mechanism of answering, and the situation by client computer is inquired TFTP earlier makes server can control the carrying out of follow-up flow process according to this.And this inquiry is answered the realization of mechanism and can not changed soft, the hardware configuration of client computer, only need moderate modification TFTP flow process and increase auxiliary NBP, thereby complexity or degree of difficulty can effectively reduce specific implementation the time.
Because the present invention only need revise the running of server, further reduce a flow process 30 below therefore, as shown in Figure 3 with being relevant to the function mode of asking the mechanism answered in the server.Flow process 30 can promote the stability of server, includes following steps:
Step 300: beginning.
Step 302: when a client computer is started shooting by PXE, indicate this client computer to carry out auxiliary NBP.
Step 304: receive the request signal that auxiliary NBP is exported, this request signal is used for request server and allows this clients download tradition NBP.
Step 306: according to the service scenarios of server, output is corresponding to a back-signalling of this request signal, to allow or to forbid this clients download tradition NBP.
Step 308: finish.
The detailed description of flow process 30 and possible variation can not given unnecessary details at this with reference to preamble.On the other hand, aspect the hardware realization, can software, mode such as firmware, flow process 30 is converted to a program, and is stored in the memory, carry out the step of flow process 30 to indicate a processor.These are converted to proper procedure to realize the corresponding server device with flow process 30, should be the technology that those skilled in the art are familiar with.
In sum, at PXE start flow process, the present invention imports one and askes the mechanism of answering, and the situation by client computer is inquired TFTP earlier makes server can control the carrying out of follow-up flow process according to this.And this inquiry answer mechanism realization can not change soft, the hardware configuration of client computer, only need moderate modification TFTP flow process and increase auxiliary NBP, thereby complexity or degree of difficulty can effectively reduce specific implementation the time, simultaneously can guarantee that the stand-by period of client computer can be not expired, and each client computer can be started shooting smoothly.The more important thing is that the present invention can effectively avoid multi-client to download simultaneously, and then prevent that server from damaging or client computer is abandoned start.
The above only is the preferred embodiments of the present invention, and all equalizations of doing according to claims of the present invention change and modify, and all should belong to covering scope of the present invention.

Claims (14)

1. method that promotes the stability of a server, this server is supported a Pre-boot Execution Environment, this method includes:
When a client computer is started shooting by this Pre-boot Execution Environment, indicate this client computer to carry out one first network boot;
Receive the request signal that this first network boot is exported, this request signal is used for asking this server to allow this clients download one second network boot, and this second network boot is downloaded an operating system with this server of cause; And
According to the service scenarios of this server, output is corresponding to a back-signalling of this request signal, to allow or to forbid this second network boot of this clients download.
2. the method for claim 1, wherein according to the service scenarios of this server, output is corresponding to the step of this back-signalling of this request signal, when this server still can provide the service of downloading this second network boot to give this client computer, export this back-signalling, to allow this second network boot of this clients download.
3. the method for claim 1, wherein according to the service scenarios of this server, output is corresponding to the step of this back-signalling of this request signal, when this server can't provide the service of downloading this second network boot to give this client computer, export this back-signalling, to forbid this second network boot of this clients download.
4. method as claimed in claim 3, it also comprises:
Set an order of this second network boot of this clients download; And
According to this order, scheduling is carried out in the running of this second network boot of this clients download.
5. method as claimed in claim 4 is wherein set the step of this order of this second network boot of this clients download, according to the time that this first network boot is exported this request signal, sets this order.
6. method as claimed in claim 4 is wherein set the step of this order of this second network boot of this clients download, according to a feature of this client computer, sets this order.
7. method as claimed in claim 6, wherein this feature is a model of this client computer.
8. server unit that can promote stability, this server unit is supported a Pre-boot Execution Environment, it includes:
One processor; And
One memory is used for storing a program, and this program is used to refer to this processor and carries out following steps:
When a client computer is started shooting by this Pre-boot Execution Environment, indicate this client computer to carry out one first network boot;
Receive the request signal that this first network boot is exported, this request signal is used for asking this server to allow this clients download one second network boot, and this second network boot is downloaded an operating system with this server of cause; And
According to the service scenarios of this server, export a back-signalling, to allow or to forbid this second network boot of this clients download.
9. server unit as claimed in claim 8, wherein according to the service scenarios of this server, output is corresponding to the step of this back-signalling of this request signal, when this server still can provide the service of downloading this second network boot to give this client computer, export this back-signalling, to allow this second network boot of this clients download.
10. server unit as claimed in claim 8, wherein according to the service scenarios of this server, output is corresponding to the step of this back-signalling of this request signal, when this server can't provide the service of downloading this second network boot to give this client computer, export this back-signalling, to forbid this second network boot of this clients download.
11. server unit as claimed in claim 10, it also comprises:
Set an order of this second network boot of this clients download; And
According to this order, scheduling is carried out in the running of this second network boot of this clients download.
12. server unit as claimed in claim 11 is wherein set the step of this order of this second network boot of this clients download, according to the time that this first network boot is exported this request signal, sets this order.
13. server unit as claimed in claim 11 is wherein set the step of this order of this second network boot of this clients download, according to a feature of this client computer, sets this order.
14. server unit as claimed in claim 13, wherein this feature is a model of this client computer.
CN201010208970.2A 2010-06-25 2010-06-25 Promote method and the server unit of the server stability of Pre-boot Execution Environment Active CN102299935B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010208970.2A CN102299935B (en) 2010-06-25 2010-06-25 Promote method and the server unit of the server stability of Pre-boot Execution Environment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010208970.2A CN102299935B (en) 2010-06-25 2010-06-25 Promote method and the server unit of the server stability of Pre-boot Execution Environment

Publications (2)

Publication Number Publication Date
CN102299935A true CN102299935A (en) 2011-12-28
CN102299935B CN102299935B (en) 2015-11-25

Family

ID=45360110

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010208970.2A Active CN102299935B (en) 2010-06-25 2010-06-25 Promote method and the server unit of the server stability of Pre-boot Execution Environment

Country Status (1)

Country Link
CN (1) CN102299935B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1604528A (en) * 2004-11-12 2005-04-06 清华大学 Cooperative starting method for network computer
CN101046748A (en) * 2006-03-29 2007-10-03 联想(北京)有限公司 Open system and method for computer

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1604528A (en) * 2004-11-12 2005-04-06 清华大学 Cooperative starting method for network computer
CN101046748A (en) * 2006-03-29 2007-10-03 联想(北京)有限公司 Open system and method for computer

Also Published As

Publication number Publication date
CN102299935B (en) 2015-11-25

Similar Documents

Publication Publication Date Title
US7673131B2 (en) Booting an operating system in discrete stages
WO2011127860A2 (en) Method, server and system for starting application
US11588909B1 (en) System and method for subscription based solution data compatibility
US11789718B2 (en) System and method for subscription based solution modification implementation
CN109388475A (en) A kind of dispositions method, device, electronic equipment and the storage medium of physics bare machine
WO2016179913A1 (en) Home gateway and operation method thereof
US8117432B2 (en) Method for controlling boot sequence of server
CN104158709A (en) Optical module identification method and port extender
CN112506539A (en) Firmware updating method and device, electronic equipment and storage medium
US10007529B2 (en) Data terminal running mode switching method, device, and data terminal
WO2024007800A1 (en) Cloud terminal system upgrade method and apparatus, and cloud terminal and storage medium
CN101771682A (en) System for realizing remote testing on computer device without storage device and testing method thereof
CN116743762A (en) Service registration cluster flow switching method, flow switching device and storage medium
CN115495161B (en) BIOS option modification validation method and device and storage medium
CN116886524A (en) Configuration method, device and server for pre-starting execution environment function
CN102299935A (en) Method for improving server stability of prestart execution environment and server device
CN112632032B (en) Data migration method and device, storage medium and terminal equipment
CN110489169B (en) Quick starting method for memory of system on chip
WO2021254280A1 (en) Disk mounting method and device, storage medium, and electronic device
WO2021057648A1 (en) Esim card, method for processing and setting card application, terminal and platform device
CN111061521A (en) Method and system for starting equipment
TWI502508B (en) Method for enhancing stability of a server in a preboot execution environment and server device using the same
TWI786766B (en) Bare device deploying method, electronic device, and storage medium
CN114253692B (en) Control method and control system for multiple applications in same equipment
TWI811063B (en) Method of setting basic input output system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant