CN104735176B - The method, apparatus and server veneer that PXE starts - Google Patents

The method, apparatus and server veneer that PXE starts Download PDF

Info

Publication number
CN104735176B
CN104735176B CN201510140460.9A CN201510140460A CN104735176B CN 104735176 B CN104735176 B CN 104735176B CN 201510140460 A CN201510140460 A CN 201510140460A CN 104735176 B CN104735176 B CN 104735176B
Authority
CN
China
Prior art keywords
interchanger
network interface
processor
bmc
pxe
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.)
Active
Application number
CN201510140460.9A
Other languages
Chinese (zh)
Other versions
CN104735176A (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

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the present invention provides method, apparatus and the server veneer that a kind of PXE starts, this method is applied to server veneer, the server veneer includes BMC, processor and network interface card, the processor is communicated by network interface card with interchanger, the BMC is communicated by network interface card with the interchanger, it is characterized in that, the described method includes:The processor obtains PXE to the remote server being connected with the interchanger by the first aggregation port of the network interface card and the interchanger and starts information;Wherein, first aggregation port for the interchanger with the BMC establish first link after the aggregation port opened;The processor starts information start-up operation system according to the PXE, so as to solve the problem of the prior art there is the complicated design cost of realization it is high.

Description

The method, apparatus and server veneer that PXE starts
Technical field
The present embodiments relate to the communication technology more particularly to a kind of Pre-boot Execution Environment (Pre-boot Execution Environment, abbreviation PXE) start method, apparatus and server veneer.
Background technology
PXE startups refer to that a communication equipment (for example, server) downloads image from far-end server by network and goes forward side by side Row starts., it is necessary to carry out static link convergence control protocol (Link before communication equipment carries out PXE startups Aggregation Control Protocol, abbreviation LACP) consult, determine link polymerization terminal port, i.e., in communication equipment and far An aggregation port link is established between the server of end, which is equivalent to a communication tunnel, and communication equipment leads to The aggregation port link is crossed to communicate to complete PXE startups with far-end server.
Fig. 1 is the application scenarios schematic diagram for carrying out PXE startups in the prior art.The communication equipment can be a service Device can include one or more server veneers 11 in server, and each server veneer 11 includes BMC and business processing Module, wherein, BMC is used to carry out the control management of veneer, and Service Processing Module includes processor 16 and network interface card 17, processor 16 can run operating system, and carry out business processing, and network interface card 17 is connected as communication interface with BMC15 and interchanger 12, And pass through interchanger and be connected to far-end server 13.Specifically, network interface card 17 includes port 1 and port 2, the two ports are all Physical port, respectively be equally physical port interchanger on port 3 and port 4 be connected.
In a kind of application scenarios, the port 3,4 of interchanger is statically configured as aggregation port, be also required in application by Network interface 1,2 carries out being configured to aggregation port so that an aggregation port link is formed between two aggregation ports.The prior art In, although aggregation port can be realized, due to current network interface card and processor BIOS, (BIOS is used to being responsible for opening before PXE Start building to make) LACP agreements are not supported, lead to not carry out LACP negotiations with interchanger, therefore, start rank in processor reset Section, the aggregation port of interchanger are in standby (Standby) state, and user's message cannot be forwarded so that server can not lead to It crosses interchanger and far-end server communicates, server PXE is caused to start failure.
A kind of method of solution is modification network interface card or processor BIOS, is allowed to support LACP agreements, however, network interface card and place Reason device BIOS belongs to opposite curing, is difficult the equipment of modification, if these equipment to be allowed to support LACP agreements, there is realizations Complicated, the problem of design cost is high.
The content of the invention
The embodiment of the present invention provides method, apparatus and the server veneer that a kind of PXE starts, and is deposited for solving the prior art Realization it is complicated, the problem of design cost is high.
The present invention implements first aspect example and provides a kind of method that PXE starts, applied to server veneer, the server Veneer includes baseboard management controller BMC, processor and network interface card, and the processor is communicated by network interface card with interchanger, The BMC is communicated by network interface card with the interchanger, the described method includes:
The processor is connected by the first aggregation port of the network interface card and the interchanger to the interchanger Remote server obtain PXE start information;Wherein, first aggregation port is established for the interchanger with the BMC The aggregation port opened after first link, after first link detects the processor reset for the BMC, with the friendship The link that progress static link convergence control protocol of changing planes LACP is established after consulting;
The processor starts information start-up operation system according to the PXE.
With reference to first aspect, in the first possible realization method of first aspect, the method further includes:The processing Device is obtained by the first aggregation port of the network interface card and the interchanger to the remote server being connected with the interchanger Before PXE starts information,
The processor sends delay message to the BMC, so that the BMC postpones one after the delay message is received The binding Bond patterns of the first network interface are closed after section time delay;Wherein, first network interface for the BMC detect it is described After processor reset, by corresponding at least two network interfaces of the medium independent interface MII of oneself be configured to binding Bond patterns after shape Into network interface;The time delay include the processor by the first aggregation port of the network interface card and the interchanger to The remote server being connected with the interchanger obtains PXE and starts information and start information start-up operation system according to the PXE It unites the required time.
The possible realization method of with reference to first aspect the first, in second of possible realization method of first aspect, institute It is starting device list message to state delay message.
The possible realization method of first or second kind with reference to first aspect, in the third possible realization method of first aspect In, the method further includes:After the processor starts information start-up operation system according to the PXE,
And after detecting that the BMC closes the Bond patterns of first network interface, the processor by oneself at least Two network interfaces are configured to the Bond patterns to form the second network interface;
The processor establishes after the second link the second aggregation port for opening the interchanger with the interchanger;Its In, second link is the link that the processor with the interchanger establish after the static state LACP consults.
Second aspect of the embodiment of the present invention provides the device that a kind of PXE starts, including:
Acquisition module, it is long-range to being connected with the interchanger for passing through the first aggregation port of network interface card and interchanger Server obtains PXE and starts information;Wherein, first aggregation port is establishing the first chain for the interchanger with the BMC The aggregation port opened after connecing, after first link detects the processor reset for the BMC, with the interchanger into The link that row static link convergence control protocol LACP is established after consulting;
Starting module, the PXE for being obtained according to the acquisition module start information start-up operation system.
With reference to second aspect, in the first possible realization method of second aspect, described device further includes sending module, For sending delay message to the BMC, so that the BMC is closed after one section of time delay is postponed after receiving the delay message Close the Bond patterns of the first network interface;Wherein, first network interface for the BMC after the processor reset is detected, incite somebody to action from Oneself corresponding at least two network interfaces of medium independent interface MII are configured to the network interface formed after binding Bond patterns;The delay Time include the acquisition module by the first aggregation port of the network interface card and the interchanger to the interchanger phase Remote server even obtains PXE and starts information and the starting module according to PXE startup information start-up operation systems The required time.
With reference to the first possible realization method of second aspect, in second of possible realization method of second aspect, institute It is starting device list message to state delay message.
With reference to second aspect the first or second may realization method, the third in second aspect may the side of realization In formula, described device, which further includes, establishes module, for after detecting that the BMC closes the Bond patterns of first network interface, At least two network interfaces of oneself are configured to the Bond patterns to form the second network interface;And establish the second chain with the interchanger The second aggregation port of the interchanger is opened behind road;Wherein, second link is the module of establishing with the interchanger Carry out the link established after the static state LACP consults.
The third aspect of the embodiment of the present invention provides a kind of PXE starting devices, including:Processor and memory;
The memory executes instruction for storing, when the terminal operating, the processor and the memory it Between communicate, the processor call described in execute instruction, for performing following operation:
The processor is connected by the first aggregation port of the network interface card and the interchanger to the interchanger Remote server obtain PXE start information;Wherein, first aggregation port is established for the interchanger with the BMC The aggregation port opened after first link, after first link detects the processor reset for the BMC, with the friendship The link that progress static link convergence control protocol of changing planes LACP is established after consulting;
The processor starts information start-up operation system according to the PXE.
Fourth aspect of the embodiment of the present invention provides a kind of server veneer, including:BMC, processor and network interface card;
The processor is used to the interchanger be connected by the first aggregation port of the network interface card and interchanger Remote server obtain PXE start information;Wherein, first aggregation port is established for the interchanger with the BMC The aggregation port opened after first link, after first link detects the processor reset for the BMC, with the friendship The link that progress static link convergence control protocol of changing planes LACP is established after consulting;
The processor is additionally operable to start information start-up operation system according to the PXE.
With reference to fourth aspect, in the first possible realization method of fourth aspect, the BMC is additionally operable to detecting After stating processor reset, by corresponding at least two network interfaces of the medium independent interface MII of oneself be configured to binding Bond patterns with Form the first network interface;
The processor is additionally operable to send delay message to the BMC;
The BMC is additionally operable to close first network interface after one section of time delay is postponed after receiving the delay message Bond patterns;Wherein, the time delay includes first polymerization of the processor by the network interface card and the interchanger Port obtains PXE to the remote server being connected with the interchanger and starts information and according to PXE startup information startups The operating system required time.
With reference to the first possible realization method of fourth aspect, in second of possible realization method of fourth aspect, institute It is starting device list message to state delay message.
With reference to fourth aspect the first or second may realization method, the third in fourth aspect may the side of realization In formula, the processor is additionally operable to after detecting that the BMC closes the Bond patterns of first network interface, by oneself at least Two network interfaces are configured to the Bond patterns to form the second network interface, and described in establishing after the second link with the interchanger and opening Second aggregation port of interchanger;Wherein, second link carries out the static state for the processor with the interchanger The link that LACP is established after consulting.
The 5th aspect of the embodiment of the present invention provides a kind of server, and the server includes one or more above-described embodiments Server veneer, heat-sink unit and the power supply unit that any one possible realization method of fourth aspect provides.Wherein, the heat dissipation Unit is used to radiate for one or more server veneers, and said supply unit is used for as one or more servers Veneer is powered;
Wherein, the server veneer includes PEX starting devices and BMC;PXE starting devices, including:Processor and storage Device;
The memory executes instruction for storing, when the terminal operating, the processor and the memory it Between communicate, the processor call described in execute instruction, for performing following operation:
The processor is connected by the first aggregation port of the network interface card and the interchanger to the interchanger Remote server obtain PXE start information;Wherein, first aggregation port is established for the interchanger with the BMC The aggregation port opened after first link, after first link detects the processor reset for the BMC, with the friendship The link that progress static link convergence control protocol of changing planes LACP is established after consulting;
The processor starts information start-up operation system according to the PXE.
With reference to the 5th aspect, in the first possible realization method of the 5th aspect, the processor is used for the BMC Delay message is sent, so that the BMC closes first net after one section of time delay is postponed after receiving the delay message The Bond patterns of mouth;Wherein, the time delay includes the processor first by the network interface card and the interchanger Aggregation port obtains PXE to the remote server being connected with the interchanger and starts information and according to PXE startup information The start-up operation system required time.
With reference to the first possible realization method of the 5th aspect, in second of possible realization method of the 5th aspect, institute It is starting device list message to state delay message.
With reference to the 5th aspect the first or second may realization method, the third at the 5th aspect may the side of realization In formula, the processor is used for after detecting that the BMC closes the Bond patterns of first network interface, and the processor will be certainly Oneself at least two network interfaces are configured to the Bond patterns to form the second network interface;
The processor, which is additionally operable to open the second of the interchanger after establishing the second link with the interchanger, polymerize end Mouthful;Wherein, the link that second link with the interchanger establish after the static state LACP consults for the processor.
The method, apparatus and server veneer that PXE provided in this embodiment starts, since BMC can support LACP substantially Agreement, therefore, the embodiment of the present invention carry out static state LACP by BMC and interchanger and consult, to establish the first link, to open and First aggregation port of the corresponding interchangers of BMC so that processor can by network interface card and the first aggregation port and interchanger into Row communication, and obtain PXE from far-end server and start information, the operating system of server is then completed according to PXE startup information Startup, so as to complete entire PXE start-up courses.Due to the embodiment of the present invention and processor BIOS or net need not be changed Card, it is only necessary to the modification of upper layer software (applications) is carried out to processor and BMC, realizes simply, reduces design cost.
Description of the drawings
It in order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this hair Some bright embodiments, for those of ordinary skill in the art, without having to pay creative labor, can be with Other attached drawings are obtained according to these attached drawings.
Fig. 1 is the application scenarios schematic diagram for carrying out PXE startups in the prior art;
Fig. 2 is the method flow diagram that the PXE that the embodiment of the present invention one provides starts;
Fig. 3 is the method flow diagram that PXE provided by Embodiment 2 of the present invention starts;
Fig. 4 is the apparatus structure schematic diagram that the PXE that the embodiment of the present invention three provides starts;
Fig. 5 is the apparatus structure schematic diagram that the PXE that the embodiment of the present invention four provides starts;
Fig. 6 is the structure diagram for the PXE starting devices that the embodiment of the present invention five provides;
Fig. 7 is the structure diagram for the server veneer that the embodiment of the present invention six provides;
Fig. 8 is the structure diagram for the server that the embodiment of the present invention seven provides.
Specific embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, the technical solution in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art All other embodiments obtained without making creative work belong to the scope of protection of the invention.
The method that PXE provided in an embodiment of the present invention starts can also be applied in scene shown in FIG. 1, as shown in Figure 1, The scene includes server veneer 11, interchanger 12 and far-end server 13, wherein, server veneer 11 includes business processing mould Block 14 and baseboard management controller (Baseboard Management Controller, abbreviation BMC) 15, wherein, business processing Module is main to include (such as a processing based on X86-based of processor 16 for being used for business processing for carrying out business processing Device) and network interface card 17 for network communication, BMC be used for management server veneer.
Specifically, BMC15 include medium independence network interface (Medium Independent Interface, MII, in figure not Show), MII is the physical port of BMC, network controller side band interface (the Network Controller with network interface card 17 Sideband Interface, abbreviation NCSI) 19 connections.As shown in Figure 1, MII corresponds to network interface 3 and network interface 4, the two network interfaces point Not Wei BMC15 two logic functional blocks network interface, the network interface as showed in software, and non-physical network interface.
Network interface card 17 includes NCSI ports, which is the actual physics port of network interface card 17, for being carried out with BMC by NCSI Connection.Meanwhile network interface card 17 is connected by PCIe standard interface 18 with processor 16, net in Fig. 1 similar with network interface 3, network interface 4 Mouthful 1 and network interface 2 also for the network interface of two logic functional blocks, the network interface that is presented on the software as run on processor 16.
Above-mentioned framework and specific implementation (such as how presenting in software with the relevant network interface of network interface card) are all existing There is technology, which is not described herein again.
Embodiment one
Referring to Fig. 2, based on above-mentioned framework, the embodiment of the present invention one provides a kind of method that PXE starts, this method application In server veneer, server veneer includes BMC, processor and network interface card, and processor is communicated by network interface card with interchanger, BMC is communicated by network interface card with interchanger, and this method comprises the following steps:
Step 101, processor are by the first aggregation port of network interface card and interchanger to the long-range clothes being connected with interchanger Business device obtains PXE and starts information;Wherein, the first aggregation port for interchanger with BMC establish first link after open polymerize Port after the first link detects processor reset for BMC, carries out static link convergence control protocol LACP with interchanger and consults The link established afterwards.
In the present embodiment, it is the information obtained from interchanger to far-end server that PXE, which starts information, and PXE starts letter Breath includes the IP address of server veneer and carries out the file needed for PXE startups.Processor pass through network interface card and interchanger first Aggregation port sends solicited message to interchanger, which is sent to far-end server, far-end server root by interchanger IP address is distributed for server veneer according to solicited message, and the IP address distributed for server veneer and progress PXE are opened It moves required file and is sent to interchanger, interchanger transmits these information to network interface card by the first aggregation port, and network interface card will Information is sent to processor.Wherein, far-end server is specifically as follows dynamic host configuration protocol (Dynamic Host Configuration Protocol, abbreviation DHCP) and Simple File Transfer Protocol (Trivial File Transfer Protocol, abbreviation TFTP) server, it is mainly used for providing DHCP and TFFP services when PXE starts for server veneer, far End server is directly docked with interchanger.
Also, in the present embodiment, after BMC detects server board resetting, BMC carries out static state LACP with interchanger Consult, establish the first aggregation port of opening interchanger corresponding with BMC after the first link, as shown in Figure 1, the first polymerization end The aggregation port that mouth is specially formed after port 3 and port 4 polymerize.The first aggregation port for opening interchanger refers to pass through foundation First link causes the first aggregation port of interchanger to be in normal (selected) state, and processor can pass through the first polymerization Port communicates with interchanger, wherein, selected is based on the undefined state of static state LACP agreements.
In the present embodiment, BMC can support LACP agreements (this is easily met in a practical situation), BMC and interchanger The process that static state LACP consults is carried out to specifically include:After BMC detects processor reset, at least two network interfaces of oneself are arranged to The information of first network interface is sent to interchanger by (Bond) pattern of binding to form the first network interface by network interface card, so as to exchange Machine selects aggregation port corresponding with the first network interface according to the information of the first network interface from the aggregation port of oneself, wherein, first The information of network interface includes system priority, system MAC Address, network interface priority, network interface number and operation key (Key) of network interface etc. Information;The information for the aggregation port that BMC is sent by network interface card desampler, and establish according to the first network interface and aggregation port One link, to open the first aggregation port of interchanger.
Specifically, by taking Fig. 1 as an example, the implementation method of the present embodiment is described in detail, BMC15 detects that server 14 resets Afterwards, network interface 3 and network interface 4 are arranged to Bond patterns to form the first network interface, and by the system priority of the first network interface, system The information such as MAC Address, network interface priority, network interface number and operation key (Key) are sent to by the port 1 and port 2 of network interface card 17 Interchanger 12, for interchanger 12 by these information compared with the information of each aggregation port of itself, selection can be with the first network interface The aggregation port to communicate is sent to BMC as the first aggregation port, and by the information of the first aggregation port, and BMC is received After the information of first aggregation port, determine to carry out static state LACP protocol negotiations successfully with interchanger, i.e. the first link establishment into Work(, in the present embodiment, the network interface 3 and network interface 4 of BMC15 form the first network interface after carrying out Bond pattern configurations, interchanger 12 Port 3 and port 4 form the first aggregation port, after BMC15 and interchanger 12 carry out static LACP negotiations, in the first network interface and the The first link is established between one aggregation port.Network interface card 17 is sended over BMC15 by NCSI19 by port 1 and port 2 The message that message and processor 16 are sended over by PCIe standard interface 18 is all forwarded to 12 side of interchanger, and can will exchange The message that machine 12 is brought is transmitted to BMC15 or processor according to (Media Access Control, abbreviation MAC) address matching 16。
It should be noted that in the present embodiment, BMC15 not merely includes network interface 3 and network interface 4 the two network interfaces, may be used also To include other network interfaces, also, the network interface quantity of BMC and processor can be set according to the port number of interchanger, for example, When the port number of interchanger is 3,3 network interfaces on BMC are set, equally, are also provided with 3 network interfaces on a processor, alternatively, When the port number of interchanger is 4,4 network interfaces on BMC are set, equally, are also provided with 4 network interfaces, this hair on a processor It is not limited thereto in bright.
Step 102, processor start information start-up operation system according to PXE.
In the present embodiment, processor receives the PXE that interchanger sent by the first aggregation port by network interface card and starts After information, started according to PXE in information and start required file for PXE, come the operation system of guide service processing module System is started.For example, Service Processing Module can be considered as to " simplification " computer without hard disk, in the computer The required configuration file of start-up operation system is not stored, after computer reset, it is necessary to during start-up operation system, computer It first passes through interchanger and the required configuration file of start-up operation system is downloaded from far-end server, configuration file is saved in meter In the memory space of calculation machine, the startup of operating system is carried out according to configuration file.
Optionally, in the present embodiment, processor by the first aggregation port of network interface card and interchanger to interchanger Before connected remote server obtains PXE startup information, processor sends delay message to BMC, so that BMC receives delay and disappears The binding Bond patterns of the first network interface are closed after postponing time delay after breath.Wherein, the first network interface is detecting processor for BMC After reset, corresponding at least two network interfaces of the MII of oneself are configured to the network interface formed after Bond patterns;Time delay includes place Reason device obtains PXE to the remote server being connected with interchanger by the first aggregation port of network interface card and interchanger and starts information And the information start-up operation system required time is started according to PXE, this time delay can be obtained by test.Delay Message is specifically as follows starting device list message, wherein, starting device list message is an existing message, need not be again It is additional to form, the complexity of design can be reduced.
Optionally, in the present embodiment, after processor starts information start-up operation system according to PXE, and work as and detect After BMC closes the Bond patterns of the first network interface, at least two network interfaces of oneself are configured to Bond patterns to form the by processor Two network interfaces;Processor establishes after the second link the second aggregation port for opening interchanger with interchanger;Wherein, the second link is place The link that reason device with interchanger establish after static state LACP consults.
The present embodiment is statically configured aggregation port for the multiple ports of interchanger, the application scenarios that can not be changed, After server board resetting, BMC is allowed to carry out static state LACP with interchanger and is consulted, it is corresponding with BMC to open to establish the first link Interchanger the first aggregation port so that processor can be communicated by network interface card and the first aggregation port with interchanger, And obtain PXE from far-end server and start information, then start the startup of the operating system of information completion server according to PXE, So as to complete entire PXE start-up courses.After os starting, since operating system can all support LACP agreements, place Reason device after the first link-down can carry out LACP negotiations with interchanger and establish the second link to communicate again.Due to this Inventive embodiments simultaneously need not change processor BIOS or network interface card, it is only necessary to carry out upper layer software (applications) to processor and BMC Modification is realized simply, reduces design cost.
Embodiment two
Referring to Fig. 3, based on embodiment one, an embodiment of the present invention provides a kind of method that PXE starts, for opening PXE Dynamic to be described in more detail, this method comprises the following steps:
The port of oneself is configured to aggregation port by step 201, interchanger.
In the present embodiment, before static state LACP negotiations are carried out with BMC, the port of oneself first is configured to gather by interchanger Port is closed, for example, in Fig. 1, aggregation port is formed after the port 3 of interchanger and port 4 are polymerize.
After step 202, BMC detect processor reset, corresponding at least two network interfaces of the MII of oneself are configured to Bond Then pattern carries out static state LACP with interchanger and consults, establishes the first aggregation port of opening interchanger after the first link.
In the present embodiment, as shown in Figure 1, after BMC detects processor reset, network interface 3 and network interface 4 are arranged to Bond Pattern, for example, Bond mode can be arranged to 4 under Linux environment, so as to which at least two network interfaces of BMC are bound One network interface uses, and the network interface of the binding corresponds to the NCSI of network interface card, and when network interface 3 breaks down, network interface 4 can work on, To ensure that the network interface of the binding is continuously available.The first aggregation port for opening interchanger refers to allow the first aggregation port of interchanger In selected states, i.e., the aggregation port that the port 3 of interchanger and port 4 are formed is in normal condition, can forward use Family message.
Step 203, processor pass through intelligent platform management interface (Intelligent Platform Management Interface, IPMI) passage to BMC send delay message.
In the present embodiment, which is specifically as follows starting device list message, starting device list message bag It includes PXE and starts mark, BMC starts mark according to PXE and knows that processor needs to carry out PXE startups, and then judges to carry out PXE startups The required time.
Step 204, processor are by the first aggregation port of network interface card and interchanger to the long-range clothes being connected with interchanger Business device obtains PXE and starts information, and starts information start-up operation system according to PXE.Wherein, the first aggregation port exists for interchanger With BMC establish first link after the aggregation port opened, after the first link detects processor reset for BMC, with interchanger into The link that row static link convergence control protocol LACP is established after consulting.
In the present embodiment, processor sends PXE startup solicited messages to network interface card, which is started solicited message by network interface card Interchanger is sent to by the first aggregation port of interchanger, after interchanger receives PXE startup solicited messages, which is started Solicited message be transmitted to PXE start solicited message in the corresponding far-end server of target MAC (Media Access Control) address, far-end server according to PXE start solicited message for processor distribute IP address and PXE start needed for file generated PXE start information, and by PXE Start information and be sent to interchanger, interchanger is sent to network interface card by the first aggregation port again, which is started information and sent out by network interface card Processor is given, processor starts information start-up operation system according to PXE.
Step 205, BMC receive the delay message that processor is sent, and in one section of delay of delay after receiving delay message Between after close the first network interface binding Bond patterns.
In the present embodiment, time delay include processor by the first aggregation port of network interface card and interchanger to friendship The remote server of changing planes connected obtain PXE start information and according to PXE start information start-up operation system it is required when Between, delay message is specifically as follows starting device list message.While step 203 is performed, BMC passes through IPMI channel receptions After the starting device list message sended over to processor, the PXE in list of devices message starts mark and knows processing Device is currently carrying out PXE startups, then BMC judges that carrying out PXE starts the required time, and PXE starts required time tool Since body finger processor completed the os starting required time, place obtaining PXE and starting to information is started according to PXE After managing device completion PXE startups, BMC closes the Bond patterns of the first network interface, is restored to normal double network interface states so that this two A network interface can complete other functions, for example, PXE next time start or perform miscellaneous equipment startup item when use or Person is used for other information exchanges.The Bond patterns for closing the first network interface are to release the Bond patterns of the first network interface, are equivalent to First link is removed, the first aggregation port of interchanger corresponding with BMC also returns to standby states, then interchanger First aggregation port cannot forward user's message.
It should be noted that the network interface 3 and network interface 4 in the present embodiment are the visible concept of software, it is the logic work(of BMC The network interface of energy module, is not actual physical port.The NCSI of network interface card is the visible concept of physics, is the physics end of network interface card Mouthful.
After step 206, processor detect that BMC closes the Bond patterns of the first network interface, by least two network interfaces of oneself Bond patterns are configured to form the second network interface;Processor is opened the second of interchanger after establishing the second link with interchanger and is polymerize Port;Wherein, the link that the second link with interchanger establish after static state LACP consults for processor.
In the present embodiment, as shown in Figure 1, after PXE completes, the first network interface that BMC forms network interface 3 and network interface 4 Bond mode releases, then processor oneself network interface 1 and network interface are configured to by the second network interface of Bond pattern formations by network interface card, locate The information of second network interface is sent to interchanger by reason device, and interchanger is by the information of the second network interface and the information of the aggregation port of oneself Compare, determine that the second aggregation port that port 3 and port 4 are formed can communicate with the second network interface, then polymerize end by second The information of mouth is sent to processor, after processor receives the information of the second aggregation port, determines to consult successfully, to establish second Link, then processor can be communicated by the second aggregation port of interchanger with interchanger.
The method that PXE provided in this embodiment starts, since BMC supports LACP agreements, set in server veneer A BMC is put, after server board resetting, static state LACP is carried out by BMC and interchanger and is consulted, to establish the first link, with Open the first aggregation port of interchanger corresponding with BMC so that processor can be by network interface card and the first aggregation port with handing over It changes planes and communicates, and obtain PXE from far-end server and start information, then start the behaviour of information completion server according to PXE Make the startup of system, so as to complete entire PXE start-up courses.Due to the embodiment of the present invention and need not change processor BIOS or Person's network interface card, it is only necessary to the modification of upper layer software (applications) is carried out to processor and BMC, realizes simply, reduces design cost.In addition, Before PXE startups are carried out, processor sends delay message by IPMI passages to BMC, so that BMC judges according to delay message Time delay, and the Bond patterns of the first network interface are closed after the time delay is reached, network interface resource is timely released, is improved The utilization rate of network interface resource;And after the Bond patterns of the first network interface are closed, processor is by least two network interfaces of oneself Bond patterns are configured to form the second network interface, and carries out static state LACP with interchanger and consults, establish the second link, to open and Second aggregation port of the corresponding interchanger of processor so that processor can carry out positive normal open with interchanger by aggregation port Letter.
Embodiment three
Based on various embodiments above, the embodiment of the present invention three provides the device that a kind of PXE starts.As shown in figure 4, the dress It puts including acquisition module 21 and starting module 22.Wherein, acquisition module 21 is used for the first polymerization by network interface card and interchanger Port obtains PXE to the remote server being connected with interchanger and starts information;Wherein, the first aggregation port for interchanger with BMC establishes the aggregation port opened after the first link, after the first link detects processor reset for BMC, is carried out with interchanger The link that static LACP is established after consulting.The PXE that starting module 22 is used to be obtained according to acquisition module starts information start-up operation System.
The device of the present embodiment can be used for the technical solution for performing embodiment of the method shown in Fig. 2, realization principle and skill Art effect is similar, and details are not described herein again.
Example IV
Based on various embodiments above, the embodiment of the present invention four provides the device that a kind of PXE starts.Shown in above-mentioned Fig. 4 On the basis of embodiment, as shown in figure 5, the device further includes sending module 23, for sending delay message to BMC, so that BMC The Bond patterns of the first network interface are closed after one section of time delay is postponed after receiving delay message;Wherein, the first network interface exists for BMC After detecting processor reset, corresponding at least two network interfaces of the medium independent interface MII of oneself are configured to binding Bond moulds The network interface formed after formula;Time delay include acquisition module by the first aggregation port of network interface card and interchanger to interchanger Connected remote server obtains PXE and starts information and starting module according to required for PXE starts information start-up operation system Time.Wherein, delay message is specifically as follows starting device list message.
As shown in figure 5, in the present embodiment, which can also include establishing module 24, detect that BMC is closed for working as After the Bond patterns of first network interface, at least two network interfaces of oneself are configured to Bond patterns to form the second network interface;And with friendship It changes planes the second aggregation port established after the second link and open interchanger;Wherein, the second link for establish module with interchanger into The link that row static state LACP is established after consulting.
The device of the present embodiment can be used for the technical solution for performing embodiment of the method shown in Fig. 2 or Fig. 3, realize former Reason is similar with technique effect, and details are not described herein again.
Embodiment five
Based on various embodiments above, the embodiment of the present invention five provides a kind of PXE starting devices.As shown in fig. 6, the PXE Starting device includes processor 31 and memory 32.Wherein, memory 32 executes instruction for storing, when PXE starting devices are transported During row, communicate between processor 31 and memory 32,31 call executive instruction of processor, for performing following operation:
Processor 31 is obtained by the first aggregation port of network interface card and interchanger to the remote server being connected with interchanger PXE is taken to start information;Wherein, the first aggregation port for interchanger with BMC establish first link after the aggregation port opened, the After one link detects processor reset for BMC, with interchanger establish after static link convergence control protocol LACP consults Link;Processor 31 starts information start-up operation system according to PXE.
The device of the present embodiment can be used for the technical solution for performing embodiment of the method shown in Fig. 2, realization principle and skill Art effect is similar, and details are not described herein again.
Embodiment six
Based on various embodiments above, the embodiment of the present invention six provides a kind of server veneer.As shown in fig. 7, the service Device veneer includes BMC41, processor 42 and network interface card 43.Processor 42 is used for the first polymerization by network interface card 43 and interchanger Port obtains PXE to the remote server being connected with interchanger and starts information;Wherein, the first aggregation port for interchanger with BMC41 establishes the aggregation port opened after the first link, after the first link detects processor reset for BMC41, with interchanger Carry out the link established after static state LACP consults;Processor 42 is additionally operable to start information start-up operation system according to PXE.
Optionally, BMC41 is additionally operable to after detecting that processor 42 resets, and the medium independent interface MII of oneself is corresponded to At least two network interfaces be configured to binding Bond patterns to form the first network interface.
Optionally, processor 42 is additionally operable to send delay message to BMC;BMC41 is additionally operable to prolong after delay message is received The Bond patterns of the first network interface are closed after slow one section of time delay;Wherein, time delay include processor 42 by network interface card 43 with And the first aggregation port of interchanger obtains PXE startup information to the remote server being connected with interchanger and is opened according to PXE The dynamic information start-up operation system required time.Wherein, delay message is specifically as follows starting device list message.
Optionally, processor 42 is additionally operable to after detecting that BMC41 closes the Bond patterns of the first network interface, by oneself extremely Few two network interfaces are configured to Bond patterns to form the second network interface, and establish after the second link with interchanger and to open the of interchanger Dimerization port;Wherein, the link that the second link with interchanger establish after static state LACP consults for processor 42.
The server veneer of the present embodiment can be used for performing above-mentioned Fig. 2 or the pretrigger of embodiment illustrated in fig. 3 offer held The technical solution for the method that row environment PXE starts, implementing principle and technical effect are similar, and details are not described herein again.
Embodiment seven
Based on various embodiments above, the embodiment of the present invention seven provides a kind of server.As shown in figure 8, the server bag A kind of server is included, including the server veneer 51 shown in one or more Fig. 7 embodiments, heat-sink unit 52, power supply unit 53; Heat-sink unit 52 is used to radiate for one or more server veneers 51, and power supply unit 53 is used for as one or more server lists Plate is powered.Two server veneers are illustrated only in Fig. 8, but are not limited thereto.
In the present embodiment, server veneer include PXE starting devices and BMC, the PXE starting devices include processor and Memory.Wherein, memory executes instruction for storing, and when PXE starting devices are run, leads between processor and memory Letter, processor call executive instruction, for performing following operation:
Processor is obtained by the first aggregation port of network interface card and interchanger to the remote server being connected with interchanger PXE starts information;Wherein, the first aggregation port for interchanger with BMC establish first link after the aggregation port opened, first After link detects processor reset for BMC, carry out what is established after static link convergence control protocol LACP consults with interchanger Link;Processor starts information start-up operation system according to PXE.
Optionally, which can also include receiver and transmitter, transmitter and receiver respectively with processing Device connects.Transmitter is used to send delay message to BMC, so that BMC is in one section of delay of delay after receiving the delay message Between after close the first network interface binding Bond patterns;Wherein, the first network interface for BMC after processor reset is detected, by oneself Corresponding at least two network interfaces of medium independent interface MII be configured to the network interface that is formed after binding Bond patterns;Time delay wraps It includes processor and PXE startups is obtained to the remote server being connected with interchanger by the first aggregation port of network interface card and interchanger Information and according to PXE start the information start-up operation system required time.Wherein, delay message is specifically as follows startup and sets Standby list message.
In the present embodiment, also use is after detecting that BMC closes the Bond patterns of the first network interface for processor, by oneself extremely Few two network interfaces are configured to Bond patterns to form the second network interface;And it is established with interchanger after the second link and opens the of interchanger Dimerization port;Wherein, the link that the second link with interchanger establish after static state LACP consults for processor.
The server veneer of the present embodiment can be used for performing above-mentioned Fig. 2 or the pretrigger of embodiment illustrated in fig. 3 offer held The technical solution for the method that row environment PXE starts, implementing principle and technical effect are similar, and details are not described herein again.
One of ordinary skill in the art will appreciate that:Realizing all or part of step of above-mentioned each method embodiment can lead to The relevant hardware of program instruction is crossed to complete.Foregoing program can be stored in a computer read/write memory medium.The journey Sequence upon execution, execution the step of including above-mentioned each method embodiment;And foregoing storage medium includes:Read-only memory (Read-Only Memory, abbreviation ROM), random access memory (random access memory, abbreviation RAM), magnetic disc Or the various media that can store program code such as CD.
Finally it should be noted that:The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;To the greatest extent Pipe is described in detail the present invention with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to Can so modify to the technical solution recorded in foregoing embodiments either to which part or all technical characteristic into Row equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is not made to depart from various embodiments of the present invention technology The scope of scheme.

Claims (12)

1. a kind of method that Pre-boot Execution Environment PXE starts, applied to server veneer, the server veneer includes substrate Management Controller BMC, processor and network interface card, the processor are communicated by network interface card with interchanger, and the BMC passes through net Card communicates with the interchanger, which is characterized in that the described method includes:
The processor is remote to being connected with the interchanger by the first aggregation port of the network interface card and the interchanger Journey server obtains PXE and starts information;Wherein, first aggregation port is establishing first for the interchanger with the BMC The aggregation port opened after link, after first link detects the processor reset for the BMC, with the interchanger Carry out the link established after static link convergence control protocol LACP consults;
The processor starts information start-up operation system according to the PXE.
2. according to the method described in claim 1, it is characterized in that, the method further includes:The processor passes through the net First aggregation port of card and the interchanger to the remote server that is connected with the interchanger obtain PXE start information it Before,
The processor sends delay message to the BMC, so that the BMC one section of delays after the delay message is received are prolonged The binding Bond patterns of the first network interface are closed after the slow time;Wherein, first network interface is detecting the processing for the BMC After device resets, corresponding at least two network interfaces of the medium independent interface MII of oneself are configured to what is formed after binding Bond patterns Network interface;The time delay include the processor by the first aggregation port of the network interface card and the interchanger to institute The remote server that interchanger is connected is stated to obtain PXE startup information and start information start-up operation system institute according to the PXE The time needed.
3. according to the method described in claim 2, it is characterized in that, the delay message is starting device list message.
4. according to the method in claim 2 or 3, which is characterized in that the method further includes:The processor is according to After PXE starts information start-up operation system,
And after detecting that the BMC closes the Bond patterns of first network interface, the processor is by oneself at least two Network interface is configured to the Bond patterns to form the second network interface;
The processor establishes after the second link the second aggregation port for opening the interchanger with the interchanger;Wherein, institute State the link that the second link with the interchanger establish after the static state LACP consults for the processor.
5. a kind of device that Pre-boot Execution Environment PXE starts, which is characterized in that including:
Acquisition module, for passing through the first aggregation port of network interface card and interchanger to the remote service being connected with the interchanger Device obtains PXE and starts information;Wherein, first aggregation port is opened for the interchanger after the first link is established with BMC Aggregation port, after first link detects processor reset for the BMC, static link remittance is carried out with the interchanger The link that poly- control protocol LACP is established after consulting;
Starting module, the PXE for being obtained according to the acquisition module start information start-up operation system.
6. device according to claim 5, which is characterized in that described device further includes sending module, for the BMC Delay message is sent, so that the BMC closes the first network interface after one section of time delay is postponed after receiving the delay message Bond patterns;Wherein, first network interface is the BMC after the processor reset is detected, oneself medium is independent Corresponding at least two network interfaces of interface MII are configured to the network interface formed after binding Bond patterns;The time delay includes described Acquisition module is by the first aggregation port of the network interface card and the interchanger to the remote service being connected with the interchanger Device obtains PXE and starts information and the starting module according to the PXE startup information start-up operation system required times.
7. device according to claim 6, which is characterized in that the delay message is starting device list message.
8. the device according to claim 6 or 7, which is characterized in that described device, which further includes, establishes module, for when detection After the Bond patterns of first network interface are closed to the BMC, at least two network interfaces of oneself are configured to the Bond patterns To form the second network interface;And second aggregation port of opening the interchanger is established with the interchanger after the second link;Wherein, Second link is the link established module and with the interchanger establish after the static state LACP consults.
9. a kind of server veneer, which is characterized in that including:Baseboard management controller BMC, processor and network interface card;
The processor is used for remote to being connected with the interchanger by the first aggregation port of the network interface card and interchanger Journey server obtains PXE and starts information;Wherein, first aggregation port is establishing first for the interchanger with the BMC The aggregation port opened after link, after first link detects the processor reset for the BMC, with the interchanger Carry out the link established after static link convergence control protocol LACP consults;
The processor is additionally operable to start information start-up operation system according to the PXE.
10. server veneer according to claim 9, which is characterized in that the BMC is additionally operable to detecting the processing After device resets, corresponding at least two network interfaces of the medium independent interface MII of oneself are configured to binding Bond patterns to form the One network interface;
The processor is additionally operable to send delay message to the BMC;
The BMC is additionally operable to close the Bond of first network interface after one section of time delay is postponed after receiving the delay message Pattern;Wherein, the time delay passes through the network interface card and the first aggregation port of the interchanger including the processor PXE, which is obtained, to the remote server being connected with the interchanger starts information and according to PXE startup information start-up operations The system required time.
11. server veneer according to claim 10, which is characterized in that the delay message disappears for starting device list Breath.
12. the server veneer according to claim 10 or 11, which is characterized in that the processor is additionally operable to work as and detect After the BMC closes the Bond patterns of first network interface, by least two network interfaces of oneself be configured to the Bond patterns with The second network interface is formed, and the second aggregation port for opening the interchanger is established after the second link with the interchanger;Wherein, institute State the link that the second link with the interchanger establish after the static state LACP consults for the processor.
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 CN104735176A (en) 2015-06-24
CN104735176B true 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)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106201541B (en) * 2016-07-20 2019-10-01 浪潮电子信息产业股份有限公司 A method of network interface card start-up mode is adjusted using Baseboard Management Controller
CN107547274B (en) * 2017-08-22 2021-03-30 新华三大数据技术有限公司 Multi-network-port aggregation method and device
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
CN111698343B (en) * 2020-04-30 2022-07-12 新华三技术有限公司 PXE equipment positioning method and device
CN113411212B (en) * 2021-06-16 2023-02-03 英业达科技有限公司 BIOS control system of intelligent network card and BIOS control method of intelligent network card
CN114070636B (en) * 2021-11-22 2023-08-11 迈普通信技术股份有限公司 Security control method and device, switch, server and network system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7930425B2 (en) * 2006-12-11 2011-04-19 International Business Machines Corporation Method of effectively establishing and maintaining communication linkages with a network interface controller

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN104735176A (en) 2015-06-24

Similar Documents

Publication Publication Date Title
CN104735176B (en) The method, apparatus and server veneer that PXE starts
CN103608794B (en) The method and apparatus serviced by pipe USB are remotely delivered by mobile computing device
CN105681081B (en) Physical machine management method and device
CN103368768B (en) The method of the auto zoom network coverage, device and equipment in mixed cloud environment
CN104978261B (en) The test method of application program, apparatus and system
CN108243106A (en) Control method, forwarding unit, control device and the communication system of network slice
CN104486234B (en) A kind of method and server that service switch is unloaded to physical network card
CN107493310A (en) A kind of cloud resource processing method and cloud management platform
CN111049686B (en) Safety protection virtual laboratory of power monitoring system and construction method thereof
JP2016507100A (en) Master Automation Service
CN106383736B (en) Ports-Extending method and apparatus
CN111064649B (en) Method and device for realizing binding of layered ports, control equipment and storage medium
CN103631652B (en) The realization method and system of virtual machine (vm) migration
CN103473117A (en) Cloud-mode virtualization method
JP2015517765A5 (en)
CN103441935B (en) Automatically method and the device of the syntople of identified server and access switch
CN109067877A (en) A kind of control method, server and the storage medium of cloud computing platform deployment
CN108713309A (en) SD-WAN system, use method of SD-WAN system and related device
CN103729234B (en) A kind of cluster virtual machine management method and device
US10992526B1 (en) Hyper-converged infrastructure networking configuration system
CN102790777A (en) Network interface adapter register method as well as drive equipment and server
CN106201769B (en) Server system, non-provisional computer-readable recording mediums and the method to enhance the memory fault-tolerant rate in server system
CN104410527B (en) A kind of topology detection method, interchanger and hot pile system
CN104468389B (en) Processing method, server and the server system of message
CN106878204A (en) The creation method and device of a kind of virtual machine

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