CN109450788A - Initial method, device and the electronic equipment of virtual server - Google Patents
Initial method, device and the electronic equipment of virtual server Download PDFInfo
- Publication number
- CN109450788A CN109450788A CN201811294004.XA CN201811294004A CN109450788A CN 109450788 A CN109450788 A CN 109450788A CN 201811294004 A CN201811294004 A CN 201811294004A CN 109450788 A CN109450788 A CN 109450788A
- Authority
- CN
- China
- Prior art keywords
- server
- interchanger
- lacp
- virtual server
- port
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/24—Multipath
- H04L45/245—Link aggregation, e.g. trunking
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Abstract
The present invention provides a kind of initial methods of virtual server, are applied to virtual server, comprising: the first physical port of virtualized server enables LACP before initialization, and first physical port is management net port;LACP negotiation is carried out by first physical port and interchanger;If LACP negotiates successfully, under the control of server admin platform, communicated by dynamic aggregation mode with interchanger foundation;If LACP fails to consultations, communicated by single-link mode with interchanger foundation, solving can not communicate to influence the technical issues of virtual server operates normally between virtual server existing in the prior art and interchanger.
Description
Technical field
The present invention relates to field of communication technology, more particularly, to a kind of initial method of virtual server, device and
Electronic equipment.
Background technique
Currently, virtual switch can connecting virtual machine network, realize major part function possessed by physical switches
Can, link aggregation is one of them.In practical applications, Host Administration net can access Physical Network by virtual switch
Network.
For example, the service that one end of virtual switch connect with virtual server, and connect with the virtual switch other end
Device management platform is just capable of the network of initialization of virtual server, including checks whether the network can pass to and fast initialization is matched
Set the network etc. of virtual server.
But the interchanger (i.e. virtual switch) connecting with virtual server is if be configured with dynamic aggregation, and it is general
Virtual server do not configure dynamic aggregation, then polymerize between virtual server and interchanger negotiate it is obstructed, it is therefore, virtual to take
It can not be communicated between business device and interchanger, to just affect the normal operation of virtual server.
Summary of the invention
In view of this, the purpose of the present invention is to provide a kind of initial method of virtual server, device and electronics
Equipment, to solve not communicating between virtual server existing in the prior art and interchanger influencing virtual server just
Often the technical issues of operation.
In a first aspect, being applied to Virtual Service the embodiment of the invention provides a kind of initial method of virtual server
Device, comprising:
First physical port of virtualized server enables link aggregate control protocol (Link before initialization
Aggregation Control Protocol, abbreviation LACP), first physical port is management net port;
LACP negotiation is carried out by first physical port and interchanger (switch, abbreviation SW);
If LACP negotiates successfully, under the control of server admin platform, exchanged by dynamic aggregation mode with described
Machine establishes communication;
If LACP fails to consultations, communicated by single-link mode with interchanger foundation.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein institute
Enabled LACP is stated, specifically:
LACP is enabled by a connectivity port.
With reference to first aspect, the embodiment of the invention provides second of possible embodiments of first aspect, wherein institute
It states and is communicated by dynamic aggregation mode with interchanger foundation, comprising:
Negotiate successful information according to LACP and obtains the configuration result of LACP dynamic aggregation mode;
It will by the initialization of the server admin platform based on the configuration result of the LACP dynamic aggregation mode
The connection type of the virtual server and the interchanger is set as the dynamic aggregation mode of multiple links;
It is communicated by the dynamic aggregation mode of the multiple link with interchanger foundation;
Wherein, the server admin platform is connect with the virtual server by the interchanger.
With reference to first aspect, the embodiment of the invention provides the third possible embodiments of first aspect, wherein if
LACP fails to consultations, the method also includes:
Enabled LACP is removed by the server admin platform.
With reference to first aspect, the embodiment of the invention provides the 4th kind of possible embodiments of first aspect, wherein institute
If stating LACP to fail to consultations, communicated by single-link mode with interchanger foundation, comprising:
If within a preset time, being not received by the LACP feedback information that the interchanger is sent, then pass through single-link
Mode is communicated with interchanger foundation.
With reference to first aspect, the embodiment of the invention provides the 5th kind of possible embodiments of first aspect, wherein institute
It states and is communicated by single-link mode with interchanger foundation, comprising:
By the initialization of the server admin platform, by the connection type of the virtual server and the interchanger
It is set as single-link mode;
It is communicated by the single-link mode with interchanger foundation;
Wherein, the server admin platform is connect with the virtual server by the interchanger.
With reference to first aspect, the embodiment of the invention provides the 6th kind of possible embodiments of first aspect, wherein institute
It states and is communicated by single-link mode with interchanger foundation, further includes:
By the initialization of the server admin platform, matching about the LACP in the virtual server is removed
It sets.
Second aspect, the embodiment of the present invention also provide a kind of apparatus for initializing of virtual server, are applied to Virtual Service
Device, comprising:
First physical port of virtualized server, for enabling LACP before initialization, first physical port is
Management net port;
Negotiation module, for carrying out LACP negotiation by first physical port and interchanger;
Communication module under the control of server admin platform, is led to if negotiating successfully for the negotiation module LACP
Dynamic aggregation mode is crossed to communicate with interchanger foundation;If the negotiation module LACP fails to consultations, pass through single-link
Mode is communicated with interchanger foundation.
The third aspect, the embodiment of the present invention also provide a kind of electronic equipment, including memory, processor, the memory
In be stored with the computer program that can be run on the processor, the processor is realized when executing the computer program
The step of stating method as described in relation to the first aspect.
Fourth aspect, the embodiment of the present invention also provide a kind of meter of non-volatile program code that can be performed with processor
Calculation machine readable medium, said program code make the method for the processor execution as described in relation to the first aspect.
Technical solution provided in an embodiment of the present invention brings following the utility model has the advantages that virtual clothes provided in an embodiment of the present invention
Initial method, device and the electronic equipment of business device, comprising: the first physical port of virtualized server makes before initialization
Energy LACP, wherein the first physical port is management net port, then, passes through the first physical port and interchanger progress LACP association
Quotient under the control of server admin platform, is established logical if LACP negotiates successfully by dynamic aggregation mode and interchanger
Letter is communicated by single-link mode with interchanger foundation if LACP fails to consultations.Therefore, by netting port in management
Just LACP is enabled before initialization, so that the port and interchanger is carried out LACP negotiation, when the interchanger is configured with dynamic aggregation
LACP negotiation will succeed, and virtual server will pass through dynamic aggregation mode and communicate with interchanger foundation;Do not have in the interchanger
LACP negotiation will fail when having configuration dynamic aggregation, and virtual server will pass through single-link mode and the interchanger is established and led to
Letter is set to realize and no matter whether match dynamic aggregation on the interchanger of virtual server connection, can guarantee virtually to take
Normal communication is established between business device and interchanger, to solve between virtual server and interchanger existing in the prior art
It can not communicate to influence the technical issues of virtual server operates normally.
Other features and advantages of the present invention will illustrate in the following description, also, partly become from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention are in specification and attached drawing
Specifically noted structure is achieved and obtained.
To enable the above objects, features and advantages of the present invention to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor
It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 shows interchanger attachment structure schematic diagram provided in the background technique of the specific embodiment of the invention;
Fig. 2 shows the flow charts of the initial method of virtual server provided by the embodiment of the present invention one;
Fig. 3 shows the flow chart of the initial method of virtual server provided by the embodiment of the present invention two;
Fig. 4 shows a kind of structural representation of the apparatus for initializing of virtual server provided by the embodiment of the present invention three
Figure;
Fig. 5 shows the structural schematic diagram of a kind of electronic equipment provided by the embodiment of the present invention four.
Icon: the apparatus for initializing of 3- virtual server;First physical port of 31- virtualized server;32- negotiates mould
Block;33- communication module;4- electronic equipment;41- memory;42- processor;43- bus;44- communication interface.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Currently, in computer field, various hardware resources, including CPU, network, memory and storage, it can be by soft
Part is realized and is managed.Operating system is mounted in one group of virtual resource by virtualization technology, forms the " virtual of usual program
Machine ", relative to original physical host, also referred to as " fictitious host computer ".Virtual machine is not directly dependent on hardware resource, also not by hardware
The limitation of physical location, therefore, virtual machine are different from original physical host, and the function that virtual machine has is can to move to difference
Physical machine on run, reach the purpose of high reliability, smooth upgrade.
Virtual switch can connecting virtual machine network, realize major part function possessed by physical switches, chain
Road polymerization is one of them.Wherein, open vswitch (open virtual switch standard) is that function is stronger and presently most used
A realization virtual machine interchanger open source software.It manages network virtual machine interchanger, and it is virtual that this is crossed by Host Administration Netcom
Interchanger accesses physical network.For example, management net is empty as shown in Figure 1, default eth0 is the port for managing net virtual switch
Quasi- interchanger is connected to physical network by the port.
It, can be based on certain between management net virtual switch (hereinafter referred to as interchanger) and the port of virtual server
The link aggregate control protocol (Link Aggregation Control Protocol abbreviation LACP) of standard carries out dynamic aggregation
The linking communications of mode, wherein LACP is a kind of agreement that can be realized the convergence of link dynamic with solution convergence, and LACP passes through link
Converge control protocol data cell (Link Aggregation Control Protocol Data Unit, LACPDU) with it is right
Hold interactive information.After configuring the agreement of LACP of certain port, which will notice oneself to opposite end by sending LACPDU
System priority, system MAC, port priority, port numbers and Operational Key.After opposite end receives these information, by these information
Compared with the information that other ports are saved, to select the port that can converge, thus enable both sides so that port to be added or
It exits some dynamic convergence group and reaches an agreement.In practical applications, by the agreement of LACP, negotiate aggregation port in aggregation group
Aggregation scheme, as dynamic aggregation.Multiple port trunkings are formed a convergence group by link aggregation together, are shared respectively with realizing
Load in member port, while higher connection reliability is also provided, therefore, dynamic aggregation mode is led in computer network
It is used widely in domain.
In practical applications, it has installed network when virtual server dispatches from the factory and has completed a kind of mgr-vswitch (management
The management net of virtual server) configuration, as shown in Figure 1, up going port of the default eth0 as mgr-vswitch.Server admin
Platform is capable of the network of initialization of virtual server, specifically, server admin platform has and checks whether the network can lead to, fastly
The function of fast initial configuration virtual server network.The substantially process that its function is realized is as follows:
The first step, server admin platform are connected to interchanger, power on and start server admin platform, correct configuration with
The network connected between interchanger, so that subsequent server admin platform goes scanning discovery new by customized two layer message
Online virtual server.
Other virtual servers are connected to interchanger by second step, user, and first mouth is connected to interchanger, and (user thinks
Configuration management net is single port), or first mouth and one or more other mouth be connected to interchanger together (user thinks
Configuration management net polymerization).If user thinks that configuration management net polymerize, need first pre-planned on virtual server
Mouth and the interchanger mouth of other management network port opposite ends configure inside the same dynamic aggregation group.It should be noted that system is silent
Recognizing mgr-vswitch is management net (Open Virtual Switch Analyzer, the abbreviation for managing open virtual server
OVS), first port is management mouth, and general eth0 is management mouth.
Step 3: virtual server powers on, and enter system.Server admin platform sends customized two layers of scanning report
Text after virtual server receives the message, receives two layers of scanning message to the reply of server admin platform.
Step 4: after server admin platform receives the reply message of new online virtual server, with customized
Two-layer protocol message removes to reset the management net network of simultaneously management virtual rack.
But above scheme, there are some problems, some users want that the management net after initialization is allowed to be single port, and some are thought
Use management net polymerization.But the system of the virtual server of factory is pre-installed, and will not distinguish.If user is starting
It is configured with dynamic aggregation on the interchanger of virtual server connection before virtual server, then due to the pipe of virtual server
The two layer message of the typically no configuration dynamic aggregation of reason net, server admin platform and virtual server is with regard to obstructed (server pipe
Platform needs to go the new online virtual server of scanning discovery by customized two layer message), then the of above-mentioned process
Three steps and later the step of just can not all carry out.Or user can only configured in advance virtual server management net connection pair
End switch is single port, that is, abandons carrying out dynamic aggregation, and the 4th step is initialized as polymerizeing, therefore also needs to be reconfigured manually again
Interchanger is dynamic aggregation.
For example, up going port of the current many virtual server factory default eth0 as the management net OVS of virtual server,
And the side management net OVS does not do dynamic aggregation configuration, at this moment if having done dynamic aggregation configuration on peer switches, due to virtual
Network is negotiated obstructed between server and peer switches, and server admin platform is just scanned less than new online Virtual Service
Device, can not initialize the connection between management net OVS and peer switches is dynamic aggregation mode, to need manpower is dynamic to go to add
Add, therefore will cause the consumption waste of manpower.
Under normal circumstances, it is carried out in the initialization procedure to virtual server in server admin platform, if connection
Peer switches are configured with dynamic aggregation, since virtual server side does not configure dynamic aggregation, then virtual server with exchange
Polymerization is negotiated obstructed to be that can not communicate between machine, causes server admin platform that can not scan virtual server, is unable to complete
Initialization to the management net OVS of virtual server, so that the normal operation of virtual server will be influenced.
Based on this, a kind of initial method of virtual server, device and electronic equipment provided in an embodiment of the present invention,
Can solve can not communicate between virtual server existing in the prior art and interchanger to which to influence virtual server normal
The technical issues of operation.
For convenient for understanding the present embodiment, first to a kind of virtual server disclosed in the embodiment of the present invention just
Beginningization method, apparatus and electronic equipment describe in detail.
Embodiment one:
A kind of initial method of virtual server provided in an embodiment of the present invention is applied to virtual server, such as Fig. 2 institute
Show, this method comprises:
S11: the first physical port of virtualized server enables LACP before initialization, and the first physical port is management net
Port.
As the preferred embodiment of the present embodiment, the first physical port of virtualized server first makes before initialization
It can link aggregate control protocol (LACP), i.e. unlatching LACP function.
It should be noted that needing on virtualized server is the end for enabling LACP at least provided with a physical port
Mouthful, in the present embodiment, which is the first physical port, i.e. the management net port of virtualized server.
S12: carrying out LACP negotiation by the first physical port and interchanger, and judges whether LACP negotiation succeeds.If
It is then to carry out step S13.If it is not, then carrying out step S14.
In practical applications, by transmission link convergence control protocol data cell (LACPDU) make the first physical port with
Interchanger carries out LACP negotiation, realizes virtualized server and opposite end interactive information.
It should be noted that virtual server management net port enable LACP after, the port by send LACPDU to
Peer switches notice the system priority of oneself, system MAC, port priority, port numbers and Operational Key etc., after realizing
Continuous aggregation scheme.
Then, the LACP feedback information sent by judging whether to receive interchanger according to LACPDU, to judge LACP
Negotiate whether to succeed.
S13: it under the control of server admin platform, is communicated by dynamic aggregation mode with interchanger foundation.
In this step, if virtual server receives the LACP feedback information of peer switches transmission, i.e. LACP negotiates
Success, then under the control of server admin platform, virtualized server is communicated by dynamic aggregation mode with interchanger foundation.
It should be noted that receiving the carrying link aggregate control protocol (LACP) of Virtual Service transmission in interchanger
After link aggregate control protocol data cell (LACPDU), if it is poly- to be configured with dynamic on the interchanger connecting with virtual server
It closes, it will be by these information compared with the information that other ports of interchanger are saved, to select the port that can be converged, exchange
Machine is held consultation by sending LACP feedback information to virtual server with virtual server, to make both sides' corresponding ports can
To reach an agreement for being added or exiting some dynamic convergence group, and then LACP negotiates successfully.Therefore, it just can be realized and pass through
The aggregation scheme of aggregation port in the protocol negotiation aggregation group of LACP, it is poly- to form the dynamic between virtual server and interchanger
It closes, communicates virtual server with interchanger foundation by dynamic aggregation mode.
When the first physical port of virtual server and the LACP of peer switches are negotiated successfully, server admin platform
Just (a kind of broadcasting packet) can be swept by specifically scanning message and retouches virtual server, and passes through scanning initialization of virtual clothes
Dynamic aggregation connection between the port and peer switches of business device.Wherein, dynamic aggregation connection can be any for any link
The dynamic aggregation of quantity.
S14: it is communicated by single-link mode with interchanger foundation.
In this step, if virtual server is not received by the LACP feedback information of peer switches transmission, i.e. LACP
It fails to consultations, is then communicated by single-link mode with interchanger foundation.
Specifically, if without configuration dynamic aggregation on the interchanger being connect with virtual server, even if the interchanger connects
Receive the link aggregate control protocol data cell of the carrying link aggregate control protocol (LACP) of virtual server transmission
(LACPDU), the negotiation of dynamic aggregation will not be carried out with virtual server, so it is anti-to send LACP to virtual server
Feedforward information is negotiated to fail so as to cause LACP.By configuring in advance, make virtual server (i.e. Virtual Service in this case
The case where device and peer switches LACP negotiate failure), it is communicated automatically by single-link mode with peer switches foundation.
Therefore, the initial method of the virtual server provided through this embodiment realizes and virtual server
Dynamic aggregation configuration whether has been done on the interchanger of connection, can be established and be communicated between interchanger and virtual server.Exist
In the case that interchanger is configured with dynamic aggregation, virtual server can be established logical by dynamic aggregation mode and the interchanger
Letter;In the case where interchanger does not configure dynamic aggregation, virtual server can also pass through single-link mode and the interchanger
Establish communication.To ensure that the normal communication between virtual server and interchanger.
Embodiment two:
A kind of initial method of virtual server provided in an embodiment of the present invention is applied to virtual server, such as Fig. 3 institute
Show, this method comprises:
S21: the first physical port of virtualized server enables LACP before initialization, and the first physical port is management net
Port.
In this step, for the first physical port of virtualized server before initialization, virtualized server first passes through one
Connectivity port (i.e. the first physical port) enables link aggregate control protocol (LACP), that is, allows to feed LACP signal.
S22: carrying out LACP negotiation by the first physical port and interchanger, and judges whether LACP negotiation succeeds.If
It is then to carry out step S23.If it is not, then carrying out step S26.
Specifically, virtual server is negotiated by sending LACPDU to interchanger and realizing with the LACP of interchanger.In reality
In, the first physical port of virtual server sends LACPDU to interchanger.
In the present embodiment, the management net mgr-vswitch of virtual server is configured in the port for being connected to interchanger,
Just LACPDU can be sent to interchanger by a connectivity port.Therefore, virtualized server only passes through a connectivity port
Just LACPDU can be sent to interchanger.
For example, as shown in Figure 1, eth0 factory in port is just configured with LACP, then in the physics of virtual server and interchanger
When mouth connection, port eth0 just can send the LACPDU for carrying link aggregate control protocol (LACP) to interchanger.
Then, virtual server can be by judging whether that receive interchanger feeds back according to the LACP that LACPDU is sent
Information, to judge whether LACP negotiation succeeds.Specifically, if virtual server receives the LACP feedback letter of interchanger transmission
Breath, thens follow the steps S23 to step S25;If within a preset time, virtual server is not received by interchanger transmission
LACP feedback information thens follow the steps S26 to step S28.
S23: matched based on server admin platform by the dynamic aggregation that the first physical port sends virtualized server
It sets, aggregation group is added in several ports in virtual server.
If sending that virtual server connectivity port (a connectivity port eth0 in such as step S22) of LACPDU
The LACP feedback information of interchanger transmission is had received, i.e. LACP negotiates successfully, then illustrates that dynamic is configured on the interchanger gathers
It closes, server admin platform will find this virtualized server newly accessed automatically, and server admin platform passes through the again
One physical port assigns configuration to virtualized server, wherein the configuration content is that other ports are also added to aggregation group
Dynamic aggregation configuration.The sequence for example, port of virtualized server side is by eth0, eth1, eth2 ... is numbered,
If server admin platform will configure two mouth polymerizations, server admin platform just assigns eth0+ to virtualized server
The dynamic aggregation of eth1 configures.Likewise, three mouth polymerizations or even four mouth polymerizations are also similarly, if server admin platform
Four mouth polymerizations are configured, then server admin platform just assigns the dynamic of eth0+eth1+eth2+eth3 to virtualized server
State aggregation configuration.
Then, virtualized server just can pass through the first physical port to virtualization services based on server admin platform
The dynamic aggregation configuration that device sends (assigning) will be virtual that is, by initialization of the server admin platform to virtual server
Aggregation group is added in several ports in server.It wherein, include the first physical port in several ports.Wherein, server
It manages and is connected between platform and virtual server by interchanger.
It should be noted that being by server admin platform by the first physical port, to virtual clothes after negotiating successfully
Certain other ports in addition to the first physical port in business device are configured, so that these other ports are also all added to
Aggregation group, so that multiple ports including the first physical port in virtual server form an aggregation group.Specifically,
Server admin platform can find automatically the virtualized server newly accessed by specifically scanning message (a kind of broadcasting packet),
After server admin platform scanner finds that new server is online, server admin platform passes through again under the first physical port
Configuration is to virtualized server, so that other ports are added to aggregation group.
S24: it is arranged between virtualized server and interchanger based on aggregation group and is connected with the dynamic aggregation mode of multiple links
It connects.
In this step, based on the aggregation group in step S23, set more for the connection type of virtual server and interchanger
The dynamic aggregation mode of a link.
The present embodiment is illustrated by taking the port eth0 (i.e. the first physical port) in step S22 as an example, if virtual clothes
Port eth1 on business device does not send the LACPDU for carrying link aggregate control protocol (LACP), then the agreement shape of port eth1
State is down (closing), just will not be with the peer switches port communication that is connect;If the port eth0 on virtual server
The LACPDU for carrying link aggregate control protocol (LACP) is had sent, is i.e. has run LACP agreement on eth0, will have been exchanged with opposite end
Machine carries out LACP negotiation, and negotiation result is port eth0 protocol status UP (unlatching), the then opposite end being connect with virtual server
The port of interchanger can lead to, next, if being configured with dynamic aggregation on interchanger, the management net of virtual server
Mgr-vswitch, which carries out LACP negotiation with peer switches, to succeed.As shown in Figure 1, server admin platform just can at this time
It is enough scanned by interchanger to virtual server, and is handed over by the mgr-vswitch and opposite end of scanning initialization of virtual server
It changes planes as dynamic aggregation connection.
Wherein, dynamic aggregation connection can be the dynamic aggregation of eth0+eth1, or eth0+eth1+eth2+
Eth3+ ... waits the dynamic aggregation of more multilink, i.e. dynamic aggregation connection can be poly- for any amount of dynamic of any link
It closes.
It is specific for the process of server admin platform scanner: when LACP negotiates successfully, server admin platform hair
Sending customized two layers of scanning message, (server admin platform needs to go scanning discovery new online by customized two layer message
Virtual server), after virtual server receives the message, two layers of scanning message are received to the reply of server admin platform.Service
After device management platform receives the reply message of virtual server, with customized two-layer protocol message, goes to be arranged and manage void
The management net network of quasi- server, so that initialization of virtual server, be added other ports of virtual server can also poly-
It closes, realizes that the connection between virtual server and peer switches is the dynamic aggregation mode of multiple links.
Therefore, it may be implemented by step S24: when the interchanger of virtual server opposite end is configured with dynamic aggregation, clothes
The management net of business device management platform initialization virtual server and the connection mode of peer switches are dynamic aggregation mode.
S25: it is communicated by the dynamic aggregation mode of multiple links with interchanger foundation.
Then, virtual server is communicated by the dynamic aggregation mode of multiple links in step S24 with interchanger foundation.
S26: by the control of server admin platform, enabled LACP is carried out to the first physical port.
As the another embodiment of the present embodiment, if within a preset time, sending that virtual clothes of LACPDU
Business device connectivity port (a connectivity port eth0 in such as step S22) is not received by the LACP feedback letter of interchanger transmission
Breath illustrates that LACP negotiates failure, then carries out this step, i.e. step S26: by the initialization of server admin platform, removing empty
Configuration in quasi- server about LACP.For example, making server by being configured with " lacp passive " on virtual server
It, can be again by " lacp " of network interface and " lacp- after managing the network that platform passes through two layer message initialization of virtual server
Fallback-ab " etc. is purged configuration related with LACP.Therefore, it before single-link pattern communication, needs by servicing
Device manages the LACP function that platform closes the first physical port.
S27: the configuration by server admin platform to virtualized server, it will be between virtual server and interchanger
Connection type is set as single-link mode, wherein the connectivity port of single-link mode is the first physical port.
If within a preset time, sending that virtual server connectivity port (one in such as step S22 of LACPDU
Connectivity port eth0) it is not received by the LACP feedback information of interchanger transmission, illustrate that LACP negotiates failure, then in step S26
Later, carry out this step: virtual server receives the configuration of server admin platform, by itself connection side between interchanger
Formula is set as single-link mode.It should be noted that the server admin platform in this step is the server pipe in step S23
Platform.
Specifically, if the scene of single network interface management wet end administration can be entered without configuration dynamic aggregation on interchanger.Example
Such as, port eth0 has sent the LACPDU for carrying link aggregate control protocol (LACP), i.e. LACP agreement has been run on eth0, but even
Without configuration dynamic aggregation on the interchanger being connected to, virtual server will not receive the LACP feedback of interchanger transmission naturally
Information, i.e. LACP negotiate failure, then virtual server (will be configured due to configuration setting in advance into single-link mode
Virtual server is in the case where LACP negotiates to fail, into single-link mode), just initialization of virtual takes server admin platform
The management net of business device and the connection mode of peer switches are single-link mode.Therefore, if the friendship of virtual server and opposite end
Dynamic aggregation between changing planes negotiates failure, then connection mode can be switched to single-link mode by dynamic aggregation automatically.
Therefore, in practical applications, while LACP is configured on virtual server, it is also configured with " lacp-fallback-
Ab=true ", i.e., when being not received by the LACP feedback information of opposite end, just by port (such as port eth0) as common network interface
(i.e. without LACP network interface) uses, is just also able to achieve server admin platform so sensible to the two layer message of virtual server
(transmission of two layer message is carried out by the common network interface of single-link mode).Therefore, it may be implemented by this step: virtual
When on the interchanger of server opposite end without configuration dynamic aggregation, the management net of server admin platform initialization virtual server
Connection mode with peer switches is single-link mode.
S28: it is communicated by single-link mode with interchanger foundation.
Then, virtual server just can be communicated by the single-link mode being arranged in step S27 with interchanger foundation, i.e.,
Virtual server is communicated using single-link mode with interchanger foundation.Therefore, in practical applications, if within a preset time,
Virtual server be not received by peer switches transmission LACP feedback information, then virtual server by single-link mode with
Interchanger establishes communication.
Therefore, the initial method of the virtual server provided through this embodiment realizes and virtual server
Whether the peer switches interface of connection is configured with dynamic aggregation, can all realize server admin platform to the pipe of virtual server
Manage the initialization of net network.I.e. when peer switches are configured with dynamic aggregation, server admin platform initialization virtual server
Management net and peer switches connection be dynamic aggregation mode;When peer switches do not configure polymerization, server admin
The connection of the management net and peer switches of platform initialization virtual server is single-link mode.
For the prior art, server admin platform needs to complete the initialization to virtual server, if virtually
It is configured with dynamic aggregation on the peer switches of server connection, due to the typically no configuration dynamic in existing virtual server side
Polymerization, then polymerize negotiate it is just obstructed, cause server admin platform that can not scan virtual server, to be unable to complete to void
The initialization of the management net of quasi- server.
It (is i.e. first passed through in step S22 by the agreement for running LACP using single network interface such as the first physical port or port eth0
One connectivity port sends LACPDU to interchanger), it can be realized the network of smoothing initialization virtual server.Specifically, empty
The management net of quasi- server end supports single-link to run LACP agreement, and the management net of virtual server is made to be connected to the one of interchanger
When a port, it will be able to LACP is used, by sending LACP, further according to whether receiving LACP feedback information and judge and hold
The connection mode of Mobile state polymerization or the connection mode of single-link.Therefore, no matter whether the interchanger of virtual server connection matches
Dynamic aggregation is set, server admin platform is capable of the management net network of initialization of virtual server.
Embodiment three:
A kind of apparatus for initializing of virtual server provided in an embodiment of the present invention is applied to virtual server, such as Fig. 4 institute
Show, the apparatus for initializing 3 of virtual server includes: the first physical port 31 of virtualized server, negotiation module 32 and logical
Believe module 33.
First physical port of virtualized server is used to enable LACP before initialization, and the first physical port is management net
Port.Negotiation module is used to carry out LACP negotiation by the first physical port and interchanger.
If communication module is negotiated successfully for negotiation module LACP, under the control of server admin platform, by dynamic
State aggregation scheme is communicated with interchanger foundation;If negotiation module LACP fails to consultations, pass through single-link mode and interchanger
Establish communication.
Further, communication unit includes: polymerization setup module and aggregation communication module.If polymerizeing setup module to be used for
Negotiation module LACP negotiates successfully, then is sent by the first physical port to virtualized server based on server admin platform
Several ports in virtual server are added aggregation group, and virtualization services are arranged based on aggregation group by dynamic aggregation configuration
It is connected between device and interchanger with the dynamic aggregation mode of multiple links, wherein include the first physical port in several ports.
Aggregation communication module is used to communicate by the dynamic aggregation mode of multiple links with interchanger foundation.Wherein, server admin is flat
Platform is connect with virtual server by interchanger.
Communication unit includes: enabled module, single-link setup module and single link communications module.Enabled module is gone to use
If being not received by the LACP feedback information of interchanger transmission within a preset time, then pass through the control of server admin platform
System carries out enabled LACP to the first physical port.Single-link setup module is used for through server admin platform to virtualization
The configuration of server sets single-link mode for the connection type between virtual server and interchanger, wherein single-link mould
The connectivity port of formula is the first physical port.Single link communications module is used to communicate by single-link mode with interchanger foundation.
Wherein, server admin platform is connect with virtual server by interchanger.
The apparatus for initializing of virtual server provided in an embodiment of the present invention, with virtual server provided by the above embodiment
Initial method technical characteristic having the same reach identical technical effect so also can solve identical technical problem.
Example IV:
A kind of electronic equipment provided in an embodiment of the present invention, as shown in figure 5, electronic equipment 4 includes memory 41, processor
42, the computer program that can be run on the processor is stored in the memory, the processor executes the calculating
The step of method that above-described embodiment one or embodiment two provide is realized when machine program.
Referring to Fig. 5, electronic equipment further include: bus 43 and communication interface 44, processor 42, communication interface 44 and memory
41 are connected by bus 43;Processor 42 is for executing the executable module stored in memory 41, such as computer program.
Wherein, memory 41 may include high-speed random access memory (RAM, Random AccessMemory), can also
It can further include nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.Pass through at least one
A communication interface 44 (can be wired or wireless) realizes the communication link between the system network element and at least one other network element
It connects, internet, wide area network, local network, Metropolitan Area Network (MAN) etc. can be used.
Bus 43 can be isa bus, pci bus or eisa bus etc..The bus can be divided into address bus, data
Bus, control bus etc..Only to be indicated with a four-headed arrow convenient for indicating, in Fig. 5, it is not intended that an only bus or
A type of bus.
Wherein, memory 41 is for storing program, and the processor 42 executes the journey after receiving and executing instruction
Sequence, method performed by the device that the stream process that aforementioned any embodiment of the embodiment of the present invention discloses defines can be applied to handle
In device 42, or realized by processor 42.
Processor 42 may be a kind of IC chip, the processing capacity with signal.During realization, above-mentioned side
Each step of method can be completed by the integrated logic circuit of the hardware in processor 42 or the instruction of software form.Above-mentioned
Processor 42 can be general processor, including central processing unit (Central Processing Unit, abbreviation CPU), network
Processor (Network Processor, abbreviation NP) etc.;It can also be digital signal processor (Digital Signal
Processing, abbreviation DSP), specific integrated circuit (Application Specific Integrated Circuit, referred to as
ASIC), ready-made programmable gate array (Field-Programmable Gate Array, abbreviation FPGA) or other are programmable
Logical device, discrete gate or transistor logic, discrete hardware components.It may be implemented or execute in the embodiment of the present invention
Disclosed each method, step and logic diagram.General processor can be microprocessor or the processor is also possible to appoint
What conventional processor etc..The step of method in conjunction with disclosed in the embodiment of the present invention, can be embodied directly in hardware decoding processing
Device executes completion, or in decoding processor hardware and software module combination execute completion.Software module can be located at
Machine memory, flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register etc. are originally
In the storage medium of field maturation.The storage medium is located at memory 41, and processor 42 reads the information in memory 41, in conjunction with
Its hardware completes the step of above method.
Embodiment five:
It is provided in an embodiment of the present invention it is a kind of with processor can be performed non-volatile program code it is computer-readable
Medium, said program code make the method that the processor executes above-described embodiment one or embodiment two provides.
Unless specifically stated otherwise, the opposite step of the component and step that otherwise illustrate in these embodiments, digital table
It is not limit the scope of the invention up to formula and numerical value.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description
It with the specific work process of device, can refer to corresponding processes in the foregoing method embodiment, details are not described herein.
In all examples being illustrated and described herein, any occurrence should be construed as merely illustratively, without
It is as limitation, therefore, other examples of exemplary embodiment can have different values.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi
It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
The flow chart and block diagram in the drawings show the system of multiple embodiments according to the present invention, method and computer journeys
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, section or code of table, a part of the module, section or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two continuous boxes can actually base
Originally it is performed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.It is also noted that
It is the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, can uses and execute rule
The dedicated hardware based system of fixed function or movement is realized, or can use the group of specialized hardware and computer instruction
It closes to realize.
The embodiment of the present invention provides the computer-readable medium for the non-volatile program code that there is processor can be performed, with
Initial method, device and the electronic equipment technical characteristic having the same of virtual server provided by the above embodiment, institute
Also can solve identical technical problem, reach identical technical effect.
In addition, in the description of the embodiment of the present invention unless specifically defined or limited otherwise, term " installation ", " phase
Even ", " connection " shall be understood in a broad sense, for example, it may be being fixedly connected, may be a detachable connection, or be integrally connected;It can
To be mechanical connection, it is also possible to be electrically connected;It can be directly connected, can also can be indirectly connected through an intermediary
Connection inside two elements.For the ordinary skill in the art, above-mentioned term can be understood at this with concrete condition
Concrete meaning in invention.
In addition, term " first ", " second ", " third " are used for description purposes only, it is not understood to indicate or imply phase
To importance.
The computer program product of the initial method of virtual server is carried out provided by the embodiment of the present invention, including is deposited
The computer readable storage medium of the executable non-volatile program code of processor, the instruction that said program code includes are stored up
It can be used for executing previous methods method as described in the examples, specific implementation can be found in embodiment of the method, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.The apparatus embodiments described above are merely exemplary, for example, the division of the unit,
Only a kind of logical function partition, there may be another division manner in actual implementation, in another example, multiple units or components can
To combine or be desirably integrated into another system, or some features can be ignored or not executed.Another point, it is shown or beg for
The mutual coupling, direct-coupling or communication connection of opinion can be through some communication interfaces, device or unit it is indirect
Coupling or communication connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
It, can be with if the function is realized in the form of SFU software functional unit and when sold or used as an independent product
It is stored in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially in other words
The part of the part that contributes to existing technology or the technical solution can be embodied in the form of software products, the meter
Calculation machine software product is stored in a storage medium, including some instructions are used so that a computer equipment (can be a
People's computer, server or network equipment etc.) it performs all or part of the steps of the method described in the various embodiments of the present invention.
And storage medium above-mentioned includes: that USB flash disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), arbitrary access are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic or disk.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention
Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair
It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art
In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light
It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make
The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention
Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (8)
1. a kind of initial method of virtual server is applied to virtual server characterized by comprising
First physical port of virtualized server enables link aggregate control protocol LACP, first physics before initialization
Port is management net port;
LACP negotiation is carried out by first physical port and interchanger;
If LACP negotiates successfully, under the control of server admin platform, built by dynamic aggregation mode and the interchanger
Vertical communication;
If LACP fails to consultations, communicated by single-link mode with interchanger foundation.
2. the initial method of virtual server according to claim 1, which is characterized in that described to pass through dynamic aggregation mould
Formula is communicated with interchanger foundation, comprising:
The dynamic sent by first physical port to the virtualized server based on the server admin platform is poly-
Configuration is closed, aggregation group is added in several ports in the virtual server, and described virtual based on aggregation group setting
Change and connected between server and the interchanger with the dynamic aggregation mode of multiple links, wherein several ports Zhong Bao
Include first physical port;
It is communicated by the dynamic aggregation mode of the multiple link with interchanger foundation;
Wherein, the server admin platform is connect with the virtual server by the interchanger.
3. the initial method of virtual server according to claim 1, which is characterized in that if the LACP fails to consultations
Function is then communicated by single-link mode with interchanger foundation, comprising:
If within a preset time, being not received by the LACP feedback information that the interchanger is sent, then following movement is executed:
By the control of the server admin platform, enabled LACP is carried out to first physical port;
Configuration by the server admin platform to the virtualized server exchanges the virtual server with described
Connection type between machine is set as single-link mode, wherein the connectivity port of the single-link mode is first physics
Port;
It is communicated by the single-link mode with interchanger foundation;
Wherein, the server admin platform is connect with the virtual server by the interchanger.
4. a kind of apparatus for initializing of virtual server is applied to virtual server characterized by comprising
First physical port of virtualized server, for enabling LACP before initialization, first physical port is management
Net port;
Negotiation element, for carrying out LACP negotiation by first physical port and interchanger;
Communication unit, if negotiating successfully for the negotiation module LACP, under the control of server admin platform, by dynamic
State aggregation scheme is communicated with interchanger foundation;If the negotiation module LACP fails to consultations, pass through single-link mode
It is communicated with interchanger foundation.
5. the apparatus for initializing of virtual server according to claim 4, which is characterized in that the communication unit includes:
It polymerize setup module, if negotiating successfully, to pass through based on the server admin platform for the negotiation module LACP
First physical port configures the dynamic aggregation that the virtualized server is sent, will be several in the virtual server
Aggregation group is added in a port, and is arranged between the virtualized server and the interchanger based on the aggregation group with multiple chains
The dynamic aggregation mode on road connects, wherein includes first physical port in several described ports;
Aggregation communication module is communicated for the dynamic aggregation mode by the multiple link with interchanger foundation;
Wherein, the server admin platform is connect with the virtual server by the interchanger.
6. the apparatus for initializing of virtual server according to claim 4, which is characterized in that the communication unit includes:
Enabled module is gone, if the LACP feedback information sent within a preset time, being not received by the interchanger, then lead to
The control for crossing the server admin platform carries out enabled LACP to first physical port;
Single-link setup module will be described for the configuration by the server admin platform to the virtualized server
Connection type between virtual server and the interchanger is set as single-link mode, wherein the company of the single-link mode
Connecing port is first physical port;
Single link communications module, for being communicated by the single-link mode with interchanger foundation;
Wherein, the server admin platform is connect with the virtual server by the interchanger.
7. a kind of electronic equipment, including memory, processor, be stored in the memory to run on the processor
Computer program, which is characterized in that the processor realizes that the claims 1 to 3 are any when executing the computer program
The step of method described in item.
8. a kind of computer-readable medium for the non-volatile program code that can be performed with processor, which is characterized in that described
Program code makes the processor execute described any the method for claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811294004.XA CN109450788B (en) | 2018-10-31 | 2018-10-31 | Virtual server initialization method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811294004.XA CN109450788B (en) | 2018-10-31 | 2018-10-31 | Virtual server initialization method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109450788A true CN109450788A (en) | 2019-03-08 |
CN109450788B CN109450788B (en) | 2021-08-06 |
Family
ID=65549979
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811294004.XA Active CN109450788B (en) | 2018-10-31 | 2018-10-31 | Virtual server initialization method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109450788B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090109998A1 (en) * | 2007-10-29 | 2009-04-30 | Alcatel Lucent | Facilitating self configuring link aggregation using link aggregation control protocol |
CN103401707A (en) * | 2013-07-26 | 2013-11-20 | 杭州华三通信技术有限公司 | Link aggregation method and access equipment |
CN104320333A (en) * | 2014-10-31 | 2015-01-28 | 杭州华三通信技术有限公司 | Method and equipment for detecting asymmetric static aggregation |
CN104735176A (en) * | 2015-03-27 | 2015-06-24 | 华为技术有限公司 | PXE booting method and device and server single board |
CN105323139A (en) * | 2015-04-29 | 2016-02-10 | 上海博达数据通信有限公司 | Virtual link negotiation method used for virtual switch system |
EP3217607A1 (en) * | 2016-03-11 | 2017-09-13 | Aruba Networks, Inc. | Configuration of communication interfaces for link aggregation |
CN107948063A (en) * | 2017-12-07 | 2018-04-20 | 锐捷网络股份有限公司 | A kind of method and access device for establishing aggregated links |
-
2018
- 2018-10-31 CN CN201811294004.XA patent/CN109450788B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090109998A1 (en) * | 2007-10-29 | 2009-04-30 | Alcatel Lucent | Facilitating self configuring link aggregation using link aggregation control protocol |
CN103401707A (en) * | 2013-07-26 | 2013-11-20 | 杭州华三通信技术有限公司 | Link aggregation method and access equipment |
CN104320333A (en) * | 2014-10-31 | 2015-01-28 | 杭州华三通信技术有限公司 | Method and equipment for detecting asymmetric static aggregation |
CN104735176A (en) * | 2015-03-27 | 2015-06-24 | 华为技术有限公司 | PXE booting method and device and server single board |
CN105323139A (en) * | 2015-04-29 | 2016-02-10 | 上海博达数据通信有限公司 | Virtual link negotiation method used for virtual switch system |
EP3217607A1 (en) * | 2016-03-11 | 2017-09-13 | Aruba Networks, Inc. | Configuration of communication interfaces for link aggregation |
CN107948063A (en) * | 2017-12-07 | 2018-04-20 | 锐捷网络股份有限公司 | A kind of method and access device for establishing aggregated links |
Non-Patent Citations (1)
Title |
---|
金星亮: "基于MSTP的链路聚合的研究与实现", 《中国优秀硕士学位论文全文数据库(电子期刊) 信息科技辑》 * |
Also Published As
Publication number | Publication date |
---|---|
CN109450788B (en) | 2021-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104734931B (en) | Link establishing method and device between a kind of virtual network function | |
US9794370B2 (en) | Systems and methods for distributed network-aware service placement | |
CN104636184A (en) | Deploying method, device and equipment of instances of virtual machine | |
Xia et al. | Optical service chaining for network function virtualization | |
WO2019127418A1 (en) | Network service management method, related device and system | |
CN105049419B (en) | Based on the multifarious mimicry network of isomery switching route system step by step | |
CN104954466A (en) | Smart service system of Internet of things based on software definition | |
CN108667638A (en) | A kind of network service configuration method and network management device | |
CN107800743A (en) | Cloud desktop system, cloud management system and relevant device | |
CN109274603A (en) | Interconnecting method and device between heterogeneous protocol data based on software definition | |
CN106790759A (en) | IPv4/IPv6 converting systems and method based on SDN | |
CN103580909B (en) | A kind of hardware resource method for customizing and device | |
US20220239583A1 (en) | Systems and methods for implementing multi-part virtual network functions | |
CN106161603A (en) | A kind of method of networking, equipment and framework | |
CN108512779B (en) | Control information transmission method, server and system | |
CN113162785A (en) | Method, device and system for establishing network interface | |
CN109413227A (en) | IPv4 user based on more IPv6 networks accesses IPv6 network interworking device and equipment | |
CN109450788A (en) | Initial method, device and the electronic equipment of virtual server | |
CN100531053C (en) | A method and system for device management | |
CN110830598B (en) | Method and network equipment for establishing and transmitting interface address and alias in BGP (Border gateway protocol) session | |
CN107528788A (en) | Realize the method and apparatus stacked automatically between the network equipment | |
CN110086676A (en) | A kind of configuration method and relevant device of distribution router | |
CN110324186A (en) | Network collocating method, device, server and computer readable storage medium | |
CN114124714B (en) | Multi-level network deployment method, device, equipment and storage medium | |
CN109729102A (en) | A method of realizing heterogeneous protocol auto-negotiation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |