CN104735176A - PXE booting method and device and server single board - Google Patents

PXE booting method and device and server single board Download PDF

Info

Publication number
CN104735176A
CN104735176A CN201510140460.9A CN201510140460A CN104735176A CN 104735176 A CN104735176 A CN 104735176A CN 201510140460 A CN201510140460 A CN 201510140460A CN 104735176 A CN104735176 A CN 104735176A
Authority
CN
China
Prior art keywords
network interface
switch
message
processor
bmc
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
CN201510140460.9A
Other languages
Chinese (zh)
Other versions
CN104735176B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510140460.9A priority Critical patent/CN104735176B/en
Publication of CN104735176A publication Critical patent/CN104735176A/en
Application granted granted Critical
Publication of CN104735176B publication Critical patent/CN104735176B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention provides a PXE booting method and device and a server single board. The method is applied to the server single board. The server single board comprises a BMC, a processor and a network card, the processor and the BMC communicate with an interchanger through the network card. The method is characterized by including the steps that the processor acquires PXE booting information from a remote server connected with the interchanger through the network card and a first aggregation port of the interchanger, wherein the first aggregation port is opened after first linkage is established between the interchanger the BMC; the processor starts an operation system according to the PXE booting information. The problems that implementation is complicated and design cost is high in the prior art are solved.

Description

The method that PXE starts, device and server veneer
Technical field
The embodiment of the present invention relates to the communication technology, particularly relates to method, device and server veneer that a kind of Pre-boot Execution Environment (Pre-bootExecution Environment is called for short PXE) starts.
Background technology
PXE start refer to a communication equipment (such as, server) by network distally server download video and start.Before communication equipment carries out PXE startup, need to carry out static link and converge control protocol (Link Aggregation Control Protocol, be called for short LACP) consult, determine link polymerization terminal port, namely between communication equipment and far-end server, set up an aggregation port link, this aggregation port link is equivalent to a communication tunnel, and communication equipment carries out communication by this aggregation port link and far-end server to be completed PXE and start.
Fig. 1 is the application scenarios schematic diagram carrying out PXE startup in prior art.This communication equipment can be a station server, one or more server veneer 11 can be comprised in server, each server veneer 11 comprises BMC and Service Processing Module, wherein, BMC is for carrying out the control and management of veneer, and Service Processing Module comprises processor 16 and network interface card 17, processor 16 can operation system, and carrying out Business Processing, network interface card 17 is connected with BMC15 and switch 12 as communication interface, and is connected to far-end server 13 by switch.Concrete, network interface card 17 comprises port one and port 2, and these two ports are all physical ports, is connected respectively with the port 3 on the same switch being physical port and port 4.
In a kind of application scenarios, the port 3,4 of switch is statically configured as aggregation port, also needs network interface 1,2 to be configured as aggregation port when applying, and makes to form an aggregation port link between two aggregation ports.In prior art, although can aggregation port be realized, but, because current network interface card and processor B IOS (BIOS is used for the startup work before being responsible for PXE) do not support LACP agreement, cause to carry out LACP negotiation with switch, therefore, processor reset startup stage, the aggregation port of switch is in standby (Standby) state, user's message can not be forwarded, server cannot be communicated with far-end server by switch, cause server PXE to start unsuccessfully.
A kind of method of solution is amendment network interface card or processor B IOS, make it to support LACP agreement, but network interface card and processor B IOS belong to relative solidification, are difficult to the equipment of amendment, if allow these equipment support LACP agreement, also exist and realize the problem complicated, design cost is high.
Summary of the invention
A kind of method that the embodiment of the present invention provides PXE to start, device and server veneer, for solving the realization complexity that prior art also exists, the problem that design cost is high.
The invention process first aspect example provides a kind of PXE method started, be applied to server veneer, described server veneer comprises baseboard management controller BMC, processor and network interface card, described processor is communicated with switch by network interface card, described BMC is communicated with described switch by network interface card, and described method comprises:
Described processor obtains PXE log-on message by the first aggregation port of described network interface card and described switch to the remote server be connected with described switch; Wherein, described first aggregation port be described switch with described BMC set up first link after the aggregation port opened, described first link is after described BMC detects described processor reset, carries out static link converge the link set up after control protocol LACP consults with described switch;
Described processor starts the operating system according to described PXE log-on message.
In conjunction with first aspect, in the first possibility implementation of first aspect, described method also comprises: before described processor obtains PXE log-on message by the first aggregation port of described network interface card and described switch to the remote server be connected with described switch
Described processor, to described BMC transmission lag message, cuts out the binding Bond pattern of the first network interface to make described BMC after receiving described delay message after postponing one period of time of delay; Wherein, described first network interface be described BMC after described processor reset being detected, the network interface formed after at least two corresponding for the medium independent interface MII of oneself network interfaces being configured to bind Bond pattern; Comprise first aggregation port of described processor by described network interface card and described switch described time of delay obtain PXE log-on message to the remote server be connected with described switch and start the operating system the required time according to described PXE log-on message.
In conjunction with the first possibility implementation of first aspect, in the second possibility implementation of first aspect, described delay message is starting device list message.
In conjunction with first or the second possibility implementation of first aspect, in the third possibility implementation of first aspect, described method also comprises: after described processor starts the operating system according to described PXE log-on message,
And after detecting that described BMC closes the Bond pattern of described first network interface, oneself at least two network interfaces are configured to described Bond pattern to form the second network interface by described processor;
The second aggregation port of described switch is opened after described processor and described switch set up the second link; Wherein, described second link is the link that described processor carries out with described switch setting up after described static LACP consults.
Embodiment of the present invention second aspect provides a kind of PXE device started, and comprising:
Acquisition module, for obtaining PXE log-on message by the first aggregation port of network interface card and switch to the remote server be connected with described switch; Wherein, described first aggregation port be described switch with described BMC set up first link after the aggregation port opened, described first link is after described BMC detects described processor reset, carries out static link converge the link set up after control protocol LACP consults with described switch;
Start module, start the operating system for the described PXE log-on message obtained according to described acquisition module.
In conjunction with second aspect, in the first possibility implementation of second aspect, described device also comprises sending module, for described BMC transmission lag message, closes the Bond pattern of the first network interface to make described BMC after receiving described delay message after postponing one period of time of delay; Wherein, described first network interface be described BMC after described processor reset being detected, the network interface formed after at least two corresponding for the medium independent interface MII of oneself network interfaces being configured to bind Bond pattern; Comprise first aggregation port of described acquisition module by described network interface card and described switch described time of delay and obtain PXE log-on message to the remote server be connected with described switch and described startup module starts the operating system the required time according to described PXE log-on message.
In conjunction with the first possibility implementation of second aspect, in the second possibility implementation of second aspect, described delay message is starting device list message.
The first or the second in conjunction with second aspect may implementations, in the third possibility implementation of second aspect, described device also comprises sets up module, for after detecting that described BMC closes the Bond pattern of described first network interface, oneself at least two network interfaces are configured to described Bond pattern to form the second network interface; And after setting up the second link with described switch, open the second aggregation port of described switch; Wherein, described second link is the described link set up module and carry out with described switch setting up after described static LACP consults.
The embodiment of the present invention third aspect provides a kind of PXE starting device, comprising: processor and memory;
Described memory, for storing execution instruction, when described terminal operating, communicates between described processor with described memory, and described processor calls described execution instruction, for performing following operation:
Described processor obtains PXE log-on message by the first aggregation port of described network interface card and described switch to the remote server be connected with described switch; Wherein, described first aggregation port be described switch with described BMC set up first link after the aggregation port opened, described first link is after described BMC detects described processor reset, carries out static link converge the link set up after control protocol LACP consults with described switch;
Described processor starts the operating system according to described PXE log-on message.
Embodiment of the present invention fourth aspect provides a kind of server veneer, comprising: BMC, processor and network interface card;
Described processor is used for obtaining PXE log-on message by the first aggregation port of described network interface card and switch to the remote server be connected with described switch; Wherein, described first aggregation port be described switch with described BMC set up first link after the aggregation port opened, described first link is after described BMC detects described processor reset, carries out static link converge the link set up after control protocol LACP consults with described switch;
Described processor is also for starting the operating system according to described PXE log-on message.
In conjunction with fourth aspect, in the first possibility implementation of fourth aspect, at least two corresponding for the medium independent interface MII of oneself network interfaces, also for after described processor reset being detected, are configured to binding Bond pattern to form the first network interface by described BMC;
Described processor is also for described BMC transmission lag message;
Described BMC also closes the Bond pattern of described first network interface after one period of time of delay for delay after receiving described delay message; Wherein, comprise first aggregation port of described processor by described network interface card and described switch described time of delay obtain PXE log-on message to the remote server be connected with described switch and start the operating system the required time according to described PXE log-on message.
In conjunction with the first possibility implementation of fourth aspect, in the second possibility implementation of fourth aspect, described delay message is starting device list message.
The first or the second in conjunction with fourth aspect may implementations, in the third possibility implementation of fourth aspect, described processor is also for after detecting that described BMC closes the Bond pattern of described first network interface, oneself at least two network interfaces are configured to described Bond pattern to form the second network interface, and after setting up the second link with described switch, open the second aggregation port of described switch; Wherein, described second link is the link that described processor carries out with described switch setting up after described static LACP consults.
The embodiment of the present invention the 5th aspect provides a kind of server, and described server comprises server veneer, heat-sink unit and the power supply unit that any one possibility implementation of one or more above-described embodiment fourth aspect provides.Wherein, described heat-sink unit is used for for one or more described server veneer heat radiation, and described power supply unit is used for powering for one or more described server veneer;
Wherein, described server veneer comprises PEX starting device and BMC; PXE starting device, comprising: processor and memory;
Described memory, for storing execution instruction, when described terminal operating, communicates between described processor with described memory, and described processor calls described execution instruction, for performing following operation:
Described processor obtains PXE log-on message by the first aggregation port of described network interface card and described switch to the remote server be connected with described switch; Wherein, described first aggregation port be described switch with described BMC set up first link after the aggregation port opened, described first link is after described BMC detects described processor reset, carries out static link converge the link set up after control protocol LACP consults with described switch;
Described processor starts the operating system according to described PXE log-on message.
In conjunction with the 5th aspect, in the first the possibility implementation in the 5th, described processor is used for described BMC transmission lag message, closes the Bond pattern of described first network interface to make described BMC after receiving described delay message after postponing one period of time of delay; Wherein, comprise first aggregation port of described processor by described network interface card and described switch described time of delay obtain PXE log-on message to the remote server be connected with described switch and start the operating system the required time according to described PXE log-on message.
In conjunction with the first possibility implementation of the 5th aspect, in the second possibility implementation in the 5th, described delay message is starting device list message.
The first or the second in conjunction with the 5th aspect may implementations, in the third possibility implementation in the 5th, described processor is used for after detecting that described BMC closes the Bond pattern of described first network interface, and oneself at least two network interfaces are configured to described Bond pattern to form the second network interface by described processor;
Described processor is also for opening the second aggregation port of described switch after setting up the second link with described switch; Wherein, described second link is the link that described processor carries out with described switch setting up after described static LACP consults.
The method that the PXE that the present embodiment provides starts, device and server veneer, because BMC substantially can support LACP agreement, therefore, the embodiment of the present invention carries out static LACP negotiation by BMC and switch, to set up the first link, to open the first aggregation port of the switch corresponding with BMC, processor can be communicated with switch with the first aggregation port by network interface card, and distally server obtains PXE log-on message, then complete the startup of the operating system of server according to PXE log-on message, thus complete whole PXE start-up course.Because the embodiment of the present invention does not need amendment processor B IOS or network interface card, only need amendment processor and BMC being carried out to upper layer software (applications), realize simple, reduce design cost.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the application scenarios schematic diagram carrying out PXE startup in prior art;
The method flow diagram that the PXE that Fig. 2 provides for the embodiment of the present invention one starts;
The method flow diagram that the PXE that Fig. 3 provides for the embodiment of the present invention two starts;
The apparatus structure schematic diagram that the PXE that Fig. 4 provides for the embodiment of the present invention three starts;
The apparatus structure schematic diagram that the PXE that Fig. 5 provides for the embodiment of the present invention four starts;
The structural representation of the PXE starting device that Fig. 6 provides for the embodiment of the present invention five;
The structural representation of the server veneer that Fig. 7 provides for the embodiment of the present invention six;
The structural representation of the server that Fig. 8 provides for the embodiment of the present invention seven.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The method that the PXE that the embodiment of the present invention provides starts also can be applied in the scene shown in Fig. 1, as shown in Figure 1, this scene comprises server veneer 11, switch 12 and far-end server 13, wherein, server veneer 11 comprises Service Processing Module 14 and baseboard management controller (BaseboardManagement Controller, be called for short BMC) 15, wherein, Service Processing Module is used for carrying out Business Processing, mainly comprise one for the processor 16 (processor as based on X86-based) of Business Processing and the network interface card 17 for network service, BMC is used for management server veneer.
Concrete, BMC15 comprises medium independence network interface (Medium Independent Interface, MII, not shown), MII is the physical port of BMC, the network controller side band interface (Network Controller Sideband Interface is called for short NCSI) 19 of itself and network interface card 17 connects.As shown in Figure 1, the corresponding network interface 3 of MII and network interface 4, these two network interfaces are respectively the network interface of two logic functional block of BMC15, are the network interface presented in software, and the network interface of non-physical.
Network interface card 17 comprises NCSI port, and this port is the actual physics port of network interface card 17, for being connected by NCSI with BMC.Meanwhile, network interface card 17 is connected with processor 16 by PCIe standard interface 18, and similar with network interface 3, network interface 4, the network interface 1 in Fig. 1 and network interface 2 are also the network interface of two logic functional block, are the network interface that the software of operation on processor 16 presents.
Above-mentioned framework and specific implementation (such as how presenting the network interface that calcaneus rete card is relevant in software) are all prior art, repeat no more here.
Embodiment one
See Fig. 2, based on above-mentioned framework, the embodiment of the present invention one provides a kind of method that PXE starts, the method is applied to server veneer, server veneer comprises BMC, processor and network interface card, processor is communicated with switch by network interface card, and BMC is communicated with switch by network interface card, and the method comprises the following steps:
Step 101, processor obtain PXE log-on message by the first aggregation port of network interface card and switch to the remote server be connected with switch; Wherein, the first aggregation port be switch with BMC set up first link after the aggregation port opened, the first link is after BMC detects processor reset, carries out static link converge the link set up after control protocol LACP consults with switch.
In the present embodiment, PXE log-on message is by the switch distally information that obtains of server, and the PXE log-on message IP address that comprises server veneer and carry out needed for PXE startup file.Processor by the first aggregation port of network interface card and switch to switch transmission request information, this solicited message is sent to far-end server by switch, far-end server is server veneer distributing IP address according to solicited message, and the IP address distributed for server veneer and the file carried out required for PXE startup are sent to switch, these information are sent to network interface card by the first aggregation port by switch, and information is sent to processor by network interface card.Wherein, far-end server is specifically as follows DHCP (Dynamic HostConfiguration Protocol, be called for short DHCP) and TFTP (Trivial File TransferProtocol, be called for short TFTP) server, be mainly used in as server veneer provides DHCP and TFFP to serve when PXE starts, far-end server directly docks with switch.
And, in the present embodiment, after BMC detects server board resetting, BMC and switch carry out static LACP negotiation, the first aggregation port of the switch corresponding with BMC is opened after setting up the first link, as shown in Figure 1, this first aggregation port is specially the aggregation port that port 3 and port 4 are polymerized rear formation.The first aggregation port opening switch refers to and makes the first aggregation port of switch be in normally (selected) state by setting up the first link, processor can be communicated with switch by the first aggregation port, wherein, selected is based on the undefined state of static LACP agreement.
In the present embodiment, BMC can support LACP agreement (this is easy to meet in a practical situation), the process that BMC and switch carry out static LACP negotiation specifically comprises: after BMC detects processor reset, oneself at least two network interfaces are set to binding (Bond) pattern to form the first network interface, and the information of the first network interface is sent to switch by network interface card, from the aggregation port of oneself, the aggregation port corresponding with the first network interface is selected according to the information of the first network interface to make switch, wherein, the system priority of the packets of information purse rope mouth of the first network interface, system MAC Address, network interface priority, the information such as network interface number and operation key (Key), the information of the aggregation port that BMC is sent by network interface card desampler, and set up the first link according to the first network interface and aggregation port, to open the first aggregation port of switch.
Concrete, for Fig. 1, describe the implementation method of the present embodiment in detail, after BMC15 detects that server 14 resets, network interface 3 and network interface 4 are set to Bond pattern to form the first network interface, and by the system priority of the first network interface, system MAC Address, network interface priority, the information such as network interface number and operation key (Key) send to switch 12 by the port one of network interface card 17 and port 2, the information of these information and each aggregation port of self compares by switch 12, the aggregation port that selection can be carried out communicating with the first network interface is as the first aggregation port, and the information of the first aggregation port is sent to BMC, after BMC receives the information of the first aggregation port, determine to carry out static LACP protocol negotiation success with switch, i.e. the first link establishment success, in the present embodiment, BMC15 network interface 3 and network interface 4 carry out Bond pattern configurations after form the first network interface, port 3 and the port 4 of switch 12 form the first aggregation port, after BMC15 and switch 12 carry out static LACP negotiation, the first link is set up between the first network interface and the first aggregation port.The message that BMC15 is sended over by NCSI19 by port one and port 2 by network interface card 17 and processor 16 are all forwarded to switch 12 side by the message that PCIe standard interface 18 sends over, and message switch 12 can brought is transmitted to BMC15 or processor 16 according to (Media Access Control is called for short MAC) matching addresses.
It should be noted that, in the present embodiment, BMC15 not merely comprises network interface 3 and these two network interfaces of network interface 4, other network interfaces can also be comprised, further, the network interface quantity of BMC and processor can be arranged according to the port number of switch, such as, when the port number of switch is 3, BMC arranges 3 network interfaces, equally, 3 network interfaces are also set on a processor, or, when the port number of switch is 4, BMC arranges 4 network interfaces, equally, 4 network interfaces are also set on a processor, not as limit in the present invention.
Step 102, processor start the operating system according to PXE log-on message.
In the present embodiment, after processor receives by network interface card the PXE log-on message that switch sent by the first aggregation port, according in PXE log-on message for the file that PXE starts, the operating system carrying out guide service processing module starts.Such as, Service Processing Module can be considered as " simplification " computer that does not have hard disk, do not have in this computer to store the required configuration file that starts the operating system, after computer resets, when needing to start the operating system, computer first downloads by exchanging in motor-driven far-end server the required configuration file that starts the operating system, and is saved in by configuration file in the memory space of computer, carries out the startup of operating system according to configuration file.
Alternatively, in the present embodiment, before processor obtains PXE log-on message by the first aggregation port of network interface card and switch to the remote server be connected with switch, processor, to BMC transmission lag message, receives the binding Bond pattern of cutting out the first network interface after postponing time of delay after postponing message to make BMC.Wherein, the first network interface be BMC after processor reset being detected, the network interface formed after at least two corresponding for the MII of oneself network interfaces are configured to Bond pattern; Comprise first aggregation port of processor by network interface card and switch time of delay obtain PXE log-on message to the remote server be connected with switch and start the operating system the required time according to PXE log-on message, this time of delay can be obtained by test.Postpone message and be specifically as follows starting device list message, wherein, starting device list message is an existing message, does not need additionally to form again, can reduce the complexity of design.
Alternatively, in the present embodiment, after processor starts the operating system according to PXE log-on message, and after detecting that BMC closes the Bond pattern of the first network interface, oneself at least two network interfaces are configured to Bond pattern to form the second network interface by processor; Processor and switch open the second aggregation port of switch after setting up the second link; Wherein, the second link is the link set up after processor follows switch to carry out static LACP negotiation.
The present embodiment is statically configured aggregation port for the multiple port of switch, the application scenarios that cannot change, after server board resetting, BMC and switch is allowed to carry out static LACP negotiation, to set up the first link, to open the first aggregation port of the switch corresponding with BMC, processor can be communicated with switch with the first aggregation port by network interface card, and distally server obtains PXE log-on message, then complete the startup of the operating system of server according to PXE log-on message, thus complete whole PXE start-up course.After os starting, because operating system all can support LACP agreement, therefore, processor again can carry out LACP again and consults to set up the second link to communicate after the first link-down with switch.Because the embodiment of the present invention does not need amendment processor B IOS or network interface card, only need amendment processor and BMC being carried out to upper layer software (applications), realize simple, reduce design cost.
Embodiment two
See Fig. 3, based on embodiment one, embodiments provide a kind of method that PXE starts, be described in more detail for starting PXE, the method comprises the following steps:
The port arrangement of oneself is aggregation port by step 201, switch.
In the present embodiment, before carrying out static LACP negotiation with BMC, the port arrangement of oneself is first aggregation port by switch, such as, in Fig. 1, forms aggregation port after the port 3 of switch and port 4 being polymerized.
After step 202, BMC detect processor reset, at least two corresponding for the MII of oneself network interfaces are configured to Bond pattern, then carry out static LACP negotiation with switch, after setting up the first link, open the first aggregation port of switch.
In the present embodiment, as shown in Figure 1, after BMC detects processor reset, network interface 3 and network interface 4 are set to Bond pattern, such as, under Linux environment, Bond mode can be set to 4, thus at least two of a BMC network interface can be bound a network interface use, the NCSI of the corresponding network interface card of network interface of this binding, when network interface 3 breaks down, network interface 4 can work on, available to ensure that the network interface of this binding continues.The first aggregation port opening switch refers to and allows the first aggregation port of switch be in selected state, and namely the port 3 of switch and the aggregation port of port 4 formation are in normal condition, can forward user's message.
Step 203, processor pass through intelligent platform management interface (Intelligent PlatformManagement Interface, IPMI) passage to BMC transmission lag message.
In the present embodiment, this delay message is specifically as follows starting device list message, and starting device list message comprises PXE and starts mark, and BMC starts mark according to PXE and knows that processor needs to carry out PXE startup, and then the time that judgement is carried out needed for PXE startup.
Step 204, processor obtain PXE log-on message by the first aggregation port of network interface card and switch to the remote server be connected with switch, and start the operating system according to PXE log-on message.Wherein, the first aggregation port be switch with BMC set up first link after the aggregation port opened, the first link is after BMC detects processor reset, carries out static link converge the link set up after control protocol LACP consults with switch.
In the present embodiment, processor sends PXE to network interface card and starts solicited message, this PXE is started solicited message and sends to switch by the first aggregation port of switch by network interface card, after switch receives PXE startup solicited message, this PXE is started solicited message to be transmitted to PXE and to start far-end server corresponding to target MAC (Media Access Control) address in solicited message, far-end server starts the file generated PXE log-on message of solicited message needed for processor distribution IP address and PXE startup according to PXE, and PXE log-on message is sent to switch, switch sends to network interface card by the first aggregation port again, this PXE log-on message is sent to processor by network interface card, processor starts the operating system according to PXE log-on message.
The delay message that step 205, BMC receiving processor send, and the binding Bond pattern of closing the first network interface postpone one period of time of delay after receiving delay message after.
In the present embodiment, comprise first aggregation port of processor by network interface card and switch time of delay obtain PXE log-on message to the remote server be connected with switch and start the operating system the required time according to PXE log-on message, postpone message and be specifically as follows starting device list message.While execution step 203, after the starting device list message that BMC is sended over to processor by IPMI channel reception, know that processor is current according to the PXE startup mark in list of devices message and carry out PXE startup, then BMC judges time of carrying out required for PXE startup, time concrete finger processor required for PXE starts is from acquisition PXE starts, to the time required for the startup of PXE log-on message complete operation system, after processor completes PXE startup, BMC closes the Bond pattern of the first network interface, return to normal two network interface state, make these two network interfaces can complete other function, such as, use when upper once PXE starts or perform miscellaneous equipment startup item, or for other information interaction.The Bond pattern of closing the first network interface is the Bond pattern of releasing first network interface, be equivalent to the first link be removed, first aggregation port of the switch corresponding with BMC also returns to standby state, then the first aggregation port of switch can not forward user's message.
It should be noted that, the network interface 3 in the present embodiment and network interface 4 are the visible concept of software, are the network interface of the logic functional block of BMC, are not actual physical port.The NCSI of network interface card is the visible concept of physics, is the physical port of network interface card.
After step 206, processor detect that BMC closes the Bond pattern of the first network interface, oneself at least two network interfaces are configured to Bond pattern to form the second network interface; Processor and switch open the second aggregation port of switch after setting up the second link; Wherein, the second link is the link set up after processor follows switch to carry out static LACP negotiation.
In the present embodiment, as shown in Figure 1, after PXE completes, the Bond mode release of the first network interface that network interface 3 and network interface 4 are formed by BMC, then the network interface 1 of oneself and network interface are configured to Bond pattern formation second network interface by network interface card by processor, the information of the second network interface is sent to switch by processor, the information of the information of the second network interface with the aggregation port of oneself compares by switch, determine that the second aggregation port that port 3 and port 4 are formed can communicate with the second network interface, then the information of the second aggregation port is sent to processor, after processor receives the information of the second aggregation port, determine to consult successfully, set up the second link, then processor can be communicated with switch by the second aggregation port of switch.
The method that the PXE that the present embodiment provides starts, because BMC supports LACP agreement, therefore, a BMC is set in server veneer, after server board resetting, static LACP negotiation is carried out by BMC and switch, to set up the first link, to open the first aggregation port of the switch corresponding with BMC, processor can be communicated with switch with the first aggregation port by network interface card, and distally server obtains PXE log-on message, then completes the startup of the operating system of server according to PXE log-on message, thus completes whole PXE start-up course.Because the embodiment of the present invention does not need amendment processor B IOS or network interface card, only need amendment processor and BMC being carried out to upper layer software (applications), realize simple, reduce design cost.In addition, before carrying out PXE startup, processor passes through IPMI passage to BMC transmission lag message, time of delay is judged according to delay message to make BMC, and after arriving this time of delay, close the Bond pattern of the first network interface, release network interface resource timely, improve the utilance of network interface resource; And after the Bond pattern of closedown first network interface, oneself at least two network interfaces are configured to Bond pattern to form the second network interface by processor, and carry out static LACP negotiation with switch, set up the second link, to open the second aggregation port of the switch corresponding with processor, make processor can carry out proper communication with switch by aggregation port.
Embodiment three
Based on above each embodiment, the embodiment of the present invention three provides the device that a kind of PXE starts.As shown in Figure 4, this device comprises acquisition module 21 and starts module 22.Wherein, acquisition module 21 is for obtaining PXE log-on message by the first aggregation port of network interface card and switch to the remote server be connected with switch; Wherein, the first aggregation port be switch with BMC set up first link after the aggregation port opened, the first link is after BMC detects processor reset, carries out with switch the link set up after static LACP consults.Start module 22 to start the operating system for the PXE log-on message obtained according to acquisition module.
The device of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 2, it realizes principle and technique effect is similar, repeats no more herein.
Embodiment four
Based on above each embodiment, the embodiment of the present invention four provides the device that a kind of PXE starts.On above-mentioned basis embodiment illustrated in fig. 4, as shown in Figure 5, this device also comprises sending module 23, for BMC transmission lag message, closes the Bond pattern of the first network interface to make BMC after receiving delay message after postponing one period of time of delay; Wherein, the first network interface be BMC after processor reset being detected, the network interface formed after at least two corresponding for the medium independent interface MII of oneself network interfaces being configured to bind Bond pattern; Comprise first aggregation port of acquisition module by network interface card and switch time of delay to obtain PXE log-on message to the remote server be connected with switch and start module and start the operating system the required time according to PXE log-on message.Wherein, postpone message and be specifically as follows starting device list message.
As shown in Figure 5, in the present embodiment, this device can also comprise sets up module 24, for after detecting that BMC closes the Bond pattern of the first network interface, oneself at least two network interfaces is configured to Bond pattern to form the second network interface; And after setting up the second link with switch, open the second aggregation port of switch; Wherein, the second link is set up module to carry out with switch the link that static LACP consults rear foundation.
The device of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 2 or Fig. 3, it realizes principle and technique effect is similar, repeats no more herein.
Embodiment five
Based on above each embodiment, the embodiment of the present invention five provides a kind of PXE starting device.As shown in Figure 6, this PXE starting device comprises processor 31 and memory 32.Wherein, memory 32, for storing execution instruction, when PXE starting device runs, communicates between processor 31 with memory 32, processor 31 call executive instruction, for performing following operation:
Processor 31 obtains PXE log-on message by the first aggregation port of network interface card and switch to the remote server be connected with switch; Wherein, the first aggregation port be switch with BMC set up first link after the aggregation port opened, the first link is after BMC detects processor reset, carries out static link converge the link set up after control protocol LACP consults with switch; Processor 31 starts the operating system according to PXE log-on message.
The device of the present embodiment, may be used for the technical scheme performing embodiment of the method shown in Fig. 2, it realizes principle and technique effect is similar, repeats no more herein.
Embodiment six
Based on above each embodiment, the embodiment of the present invention six provides a kind of server veneer.As shown in Figure 7, this server veneer comprises BMC41, processor 42 and network interface card 43.Processor 42 is for obtaining PXE log-on message by the first aggregation port of network interface card 43 and switch to the remote server be connected with switch; Wherein, the first aggregation port be switch with BMC41 set up first link after the aggregation port opened, the first link is after BMC41 detects processor reset, carries out with switch the link set up after static LACP consults; Processor 42 is also for starting the operating system according to PXE log-on message.
Alternatively, at least two corresponding for the medium independent interface MII of oneself network interfaces, also for after detecting that processor 42 resets, are configured to binding Bond pattern to form the first network interface by BMC41.
Alternatively, processor 42 is also for BMC transmission lag message; BMC41 also closes the Bond pattern of the first network interface after one period of time of delay for delay after receiving delay message; Wherein, comprise first aggregation port of processor 42 by network interface card 43 and switch time of delay obtain PXE log-on message to the remote server be connected with switch and start the operating system the required time according to PXE log-on message.Wherein, postpone message and be specifically as follows starting device list message.
Alternatively, oneself at least two network interfaces, also for after detecting that BMC41 closes the Bond pattern of the first network interface, are configured to Bond pattern to form the second network interface, and open the second aggregation port of switch after setting up the second link with switch by processor 42; Wherein, the second link is the link that processor 42 carries out with switch setting up after static LACP consults.
The server veneer of the present embodiment, may be used for the technical scheme performing the method that above-mentioned Fig. 2 or the Pre-boot Execution Environment PXE provided embodiment illustrated in fig. 3 starts, it realizes principle and technique effect is similar, repeats no more herein.
Embodiment seven
Based on above each embodiment, the embodiment of the present invention seven provides a kind of server.As shown in Figure 8, this server comprises a kind of server, comprises the server veneer 51 shown in one or more Fig. 7 embodiment, heat-sink unit 52, power supply unit 53; Heat-sink unit 52 is for dispelling the heat for one or more server veneer 51, and power supply unit 53 is for powering for one or more server veneer.Illustrate only two server veneers in Fig. 8, but not as limit.
In the present embodiment, server veneer comprises PXE starting device and BMC, and this PXE starting device comprises processor and memory.Wherein, memory, for storing execution instruction, when PXE starting device runs, communicates between processor with memory, processor call executive instruction, for performing following operation:
Processor obtains PXE log-on message by the first aggregation port of network interface card and switch to the remote server be connected with switch; Wherein, the first aggregation port be switch with BMC set up first link after the aggregation port opened, the first link is after BMC detects processor reset, carries out static link converge the link set up after control protocol LACP consults with switch; Processor starts the operating system according to PXE log-on message.
Alternatively, this PXE starting device can also comprise receiver and reflector, and reflector is connected with processor respectively with receiver.Reflector is used for BMC transmission lag message, closes the binding Bond pattern of the first network interface to make BMC after receiving described delay message after postponing one period of time of delay; Wherein, the first network interface be BMC after processor reset being detected, the network interface formed after at least two corresponding for the medium independent interface MII of oneself network interfaces being configured to bind Bond pattern; Comprise first aggregation port of processor by network interface card and switch time of delay obtain PXE log-on message to the remote server be connected with switch and start the operating system the required time according to PXE log-on message.Wherein, postpone message and be specifically as follows starting device list message.
In the present embodiment, oneself at least two network interfaces also with after detecting that BMC closes the Bond pattern of the first network interface, are configured to Bond pattern to form the second network interface by processor; And after setting up the second link with switch, open the second aggregation port of switch; Wherein, the second link is the link set up after processor follows switch to carry out static LACP negotiation.
The server veneer of the present embodiment, may be used for the technical scheme performing the method that above-mentioned Fig. 2 or the Pre-boot Execution Environment PXE provided embodiment illustrated in fig. 3 starts, it realizes principle and technique effect is similar, repeats no more herein.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that program command is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: read-only memory (Read-Only Memory, be called for short ROM), random access memory (random access memory, be called for short RAM), magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (12)

1. the method for a Pre-boot Execution Environment PXE startup, be applied to server veneer, described server veneer comprises baseboard management controller BMC, processor and network interface card, described processor is communicated with switch by network interface card, described BMC is communicated with described switch by network interface card, it is characterized in that, described method comprises:
Described processor obtains PXE log-on message by the first aggregation port of described network interface card and described switch to the remote server be connected with described switch; Wherein, described first aggregation port be described switch with described BMC set up first link after the aggregation port opened, described first link is after described BMC detects described processor reset, carries out static link converge the link set up after control protocol LACP consults with described switch;
Described processor starts the operating system according to described PXE log-on message.
2. method according to claim 1, is characterized in that, described method also comprises: before described processor obtains PXE log-on message by the first aggregation port of described network interface card and described switch to the remote server be connected with described switch,
Described processor, to described BMC transmission lag message, cuts out the binding Bond pattern of the first network interface to make described BMC after receiving described delay message after postponing one period of time of delay; Wherein, described first network interface be described BMC after described processor reset being detected, the network interface formed after at least two corresponding for the medium independent interface MII of oneself network interfaces being configured to bind Bond pattern; Comprise first aggregation port of described processor by described network interface card and described switch described time of delay obtain PXE log-on message to the remote server be connected with described switch and start the operating system the required time according to described PXE log-on message.
3. method according to claim 2, is characterized in that, described delay message is starting device list message.
4. according to the method in claim 2 or 3, it is characterized in that, described method also comprises: after described processor starts the operating system according to described PXE log-on message,
And after detecting that described BMC closes the Bond pattern of described first network interface, oneself at least two network interfaces are configured to described Bond pattern to form the second network interface by described processor;
The second aggregation port of described switch is opened after described processor and described switch set up the second link; Wherein, described second link is the link that described processor carries out with described switch setting up after described static LACP consults.
5. a device for Pre-boot Execution Environment PXE startup, is characterized in that, comprising:
Acquisition module, for obtaining PXE log-on message by the first aggregation port of network interface card and switch to the remote server be connected with described switch; Wherein, described first aggregation port be described switch with described BMC set up first link after the aggregation port opened, described first link is after described BMC detects described processor reset, carries out static link converge the link set up after control protocol LACP consults with described switch;
Start module, start the operating system for the described PXE log-on message obtained according to described acquisition module.
6. device according to claim 5, is characterized in that, described device also comprises sending module, for described BMC transmission lag message, closes the Bond pattern of the first network interface to make described BMC after receiving described delay message after postponing one period of time of delay; Wherein, described first network interface be described BMC after described processor reset being detected, the network interface formed after at least two corresponding for the medium independent interface MII of oneself network interfaces being configured to bind Bond pattern; Comprise first aggregation port of described acquisition module by described network interface card and described switch described time of delay and obtain PXE log-on message to the remote server be connected with described switch and described startup module starts the operating system the required time according to described PXE log-on message.
7. device according to claim 6, is characterized in that, described delay message is starting device list message.
8. the device according to claim 6 or 7, it is characterized in that, described device also comprises sets up module, for after detecting that described BMC closes the Bond pattern of described first network interface, oneself at least two network interfaces is configured to described Bond pattern to form the second network interface; And after setting up the second link with described switch, open the second aggregation port of described switch; Wherein, described second link is the described link set up module and carry out with described switch setting up after described static LACP consults.
9. a server veneer, is characterized in that, comprising: baseboard management controller BMC, processor and network interface card;
Described processor is used for obtaining PXE log-on message by the first aggregation port of described network interface card and switch to the remote server be connected with described switch; Wherein, described first aggregation port be described switch with described BMC set up first link after the aggregation port opened, described first link is after described BMC detects described processor reset, carries out static link converge the link set up after control protocol LACP consults with described switch;
Described processor is also for starting the operating system according to described PXE log-on message.
10. server veneer according to claim 9, is characterized in that, at least two corresponding for the medium independent interface MII of oneself network interfaces, also for after described processor reset being detected, are configured to binding Bond pattern to form the first network interface by described BMC;
Described processor is also for described BMC transmission lag message;
Described BMC also closes the Bond pattern of described first network interface after one period of time of delay for delay after receiving described delay message; Wherein, comprise first aggregation port of described processor by described network interface card and described switch described time of delay obtain PXE log-on message to the remote server be connected with described switch and start the operating system the required time according to described PXE log-on message.
11. server veneers according to claim 10, is characterized in that, described delay message is starting device list message.
12. server veneers according to claim 10 or 11, it is characterized in that, described processor is also for after detecting that described BMC closes the Bond pattern of described first network interface, oneself at least two network interfaces are configured to described Bond pattern to form the second network interface, and after setting up the second link with described switch, open the second aggregation port of described switch; Wherein, described second link is the link that described processor carries out with described switch setting up after described static LACP consults.
CN201510140460.9A 2015-03-27 2015-03-27 The method, apparatus and server veneer that PXE starts Active CN104735176B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510140460.9A CN104735176B (en) 2015-03-27 2015-03-27 The method, apparatus and server veneer that PXE starts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510140460.9A CN104735176B (en) 2015-03-27 2015-03-27 The method, apparatus and server veneer that PXE starts

Publications (2)

Publication Number Publication Date
CN104735176A true CN104735176A (en) 2015-06-24
CN104735176B CN104735176B (en) 2018-06-05

Family

ID=53458602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510140460.9A Active CN104735176B (en) 2015-03-27 2015-03-27 The method, apparatus and server veneer that PXE starts

Country Status (1)

Country Link
CN (1) CN104735176B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201541A (en) * 2016-07-20 2016-12-07 浪潮电子信息产业股份有限公司 A kind of method utilizing Baseboard Management Controller to adjust network interface card start-up mode
CN107547274A (en) * 2017-08-22 2018-01-05 新华三大数据技术有限公司 Multi-netmouth polymerization and device
CN109450788A (en) * 2018-10-31 2019-03-08 新华三云计算技术有限公司 Initial method, device and the electronic equipment of virtual server
CN110011874A (en) * 2019-04-15 2019-07-12 苏州浪潮智能科技有限公司 A kind of data transmission method based on BMC, device, equipment and medium
CN111124508A (en) * 2019-11-29 2020-05-08 苏州浪潮智能科技有限公司 Method and device for adjusting PXE (PCI extensions for instrumentation) starting sequence of network card
CN111698343A (en) * 2020-04-30 2020-09-22 新华三技术有限公司 PXE equipment positioning method and device
CN113411212A (en) * 2021-06-16 2021-09-17 英业达科技有限公司 BIOS control system of intelligent network card and BIOS control method of intelligent network card
CN114070636A (en) * 2021-11-22 2022-02-18 迈普通信技术股份有限公司 Security control method, security control device, switch, server and network system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080140819A1 (en) * 2006-12-11 2008-06-12 International Business Machines Method of effectively establishing and maintaining communication linkages with a network interface controller
CN104166579A (en) * 2014-09-04 2014-11-26 浪潮电子信息产业股份有限公司 Hardware designing method for achieving BIOS refreshing through BMC under shutdown state
CN104202195A (en) * 2014-09-10 2014-12-10 华为技术有限公司 Server unified communication method, baseboard management controller (BMC) and server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080140819A1 (en) * 2006-12-11 2008-06-12 International Business Machines Method of effectively establishing and maintaining communication linkages with a network interface controller
CN104166579A (en) * 2014-09-04 2014-11-26 浪潮电子信息产业股份有限公司 Hardware designing method for achieving BIOS refreshing through BMC under shutdown state
CN104202195A (en) * 2014-09-10 2014-12-10 华为技术有限公司 Server unified communication method, baseboard management controller (BMC) and server

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201541A (en) * 2016-07-20 2016-12-07 浪潮电子信息产业股份有限公司 A kind of method utilizing Baseboard Management Controller to adjust network interface card start-up mode
CN107547274A (en) * 2017-08-22 2018-01-05 新华三大数据技术有限公司 Multi-netmouth polymerization and device
CN109450788A (en) * 2018-10-31 2019-03-08 新华三云计算技术有限公司 Initial method, device and the electronic equipment of virtual server
CN109450788B (en) * 2018-10-31 2021-08-06 新华三云计算技术有限公司 Virtual server initialization method and device and electronic equipment
CN110011874A (en) * 2019-04-15 2019-07-12 苏州浪潮智能科技有限公司 A kind of data transmission method based on BMC, device, equipment and medium
CN111124508A (en) * 2019-11-29 2020-05-08 苏州浪潮智能科技有限公司 Method and device for adjusting PXE (PCI extensions for instrumentation) starting sequence of network card
CN111698343A (en) * 2020-04-30 2020-09-22 新华三技术有限公司 PXE equipment positioning method and device
CN113411212A (en) * 2021-06-16 2021-09-17 英业达科技有限公司 BIOS control system of intelligent network card and BIOS control method of intelligent network card
CN113411212B (en) * 2021-06-16 2023-02-03 英业达科技有限公司 BIOS control system of intelligent network card and BIOS control method of intelligent network card
CN114070636A (en) * 2021-11-22 2022-02-18 迈普通信技术股份有限公司 Security control method, security control device, switch, server and network system
CN114070636B (en) * 2021-11-22 2023-08-11 迈普通信技术股份有限公司 Security control method and device, switch, server and network system

Also Published As

Publication number Publication date
CN104735176B (en) 2018-06-05

Similar Documents

Publication Publication Date Title
CN104735176A (en) PXE booting method and device and server single board
CN109067877B (en) Control method for cloud computing platform deployment, server and storage medium
US9619417B2 (en) Method and apparatus for remote delivery of managed USB services via a mobile computing device
CN107707622B (en) Method and device for accessing desktop cloud virtual machine and desktop cloud controller
US10361970B2 (en) Automated instantiation of wireless virtual private networks
CN111049686B (en) Safety protection virtual laboratory of power monitoring system and construction method thereof
JP2016507100A (en) Master Automation Service
JP2014501424A (en) Integrated software and hardware system that enables automated provisioning and configuration based on the physical location of the blade
CN110213121B (en) Test platform, test method and test device for virtual communication product
US20190182110A1 (en) Raid configuration
WO2016008379A1 (en) Automatic configuration method and device for storage array, and storage system
US8782185B2 (en) Network booting a machine coupled to the network by a link aggregation group
CN114070723B (en) Virtual network configuration method and system of bare metal server and intelligent network card
CN109587005A (en) Connecting detection method, apparatus, computer equipment and readable storage medium storing program for executing
WO2017059724A1 (en) Operating system starting method and device
US20210111951A1 (en) Hyper-converged infrastructure networking configuration system
CN104144096A (en) Virtual network layer construction method, device and system
CN112099913A (en) Method for realizing safety isolation of virtual machine based on OpenStack
TWI648637B (en) System and method for deploying and operating mobile operating system on platform
CN104468389A (en) Message processing method, servers and server system
CN109756359A (en) The method and remote server and network system of auto-initiation network equipment
EP3474501B1 (en) Network device stacking
CN113285983A (en) Virtual experiment system supporting multiple virtualized security devices to share single encryption card
CN110753093B (en) Method and device for managing equipment in cloud computing system
WO2017054695A1 (en) Method, apparatus and system for deploying virtual machine with backup virtual network interface card based on kvm

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant