CN103220235B - The management method of the distributed virtual switch and relevant apparatus and system - Google Patents

The management method of the distributed virtual switch and relevant apparatus and system Download PDF

Info

Publication number
CN103220235B
CN103220235B CN201310150066.4A CN201310150066A CN103220235B CN 103220235 B CN103220235 B CN 103220235B CN 201310150066 A CN201310150066 A CN 201310150066A CN 103220235 B CN103220235 B CN 103220235B
Authority
CN
China
Prior art keywords
main frame
server
bag
virtual switch
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.)
Active
Application number
CN201310150066.4A
Other languages
Chinese (zh)
Other versions
CN103220235A (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 CN201310150066.4A priority Critical patent/CN103220235B/en
Publication of CN103220235A publication Critical patent/CN103220235A/en
Application granted granted Critical
Publication of CN103220235B publication Critical patent/CN103220235B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of management method of the distributed virtual switch and relevant apparatus and system, for improving the efficiency for adding main frame in the distributed virtual switch, it is not necessary to manually add.In a method of the embodiment of the present invention, when main frame is connected on the port of server, request is sent to server and adds bag, if server receives request on the port of oneself and adds bag, response bag is received and sent to main frame, the main frame sends to the server after receiving response bag and adds bag, server generates mapped port according to the port for adding the virtual switch being arranged in the main frame carried in bag, send to main frame after most and be successfully joined bag, to represent that the main frame has been successfully joined in the distributed virtual switch.

Description

The management method of the distributed virtual switch and relevant apparatus and system
Technical field
The present invention relates to field of computer technology, more particularly to a kind of management method of the distributed virtual switch and correlation Apparatus and system.
Background technology
With the development of Intel Virtualization Technology, multiple virtual machines(VM, Virtual Machine)It is present in a main frame, For the proper communication between a virtual machine and another virtual machine, generally in main frame, switching equipment is disposed, the equipment Function realized by software, with the function phase of switch with therefore referred to as virtual switch.As shown in Fig. 1-a, in a master There are three VM in machine(Respectively VM1, VM2, VM3), this three VM are while be connected to same virtual friendship by Microsoft Loopback Adapter On changing planes, another physical network is also connected on the virtual switch.Now three VM in the main frame just can be mutual Communicate, and if the physical network in main frame is connected to external network(Such as physical switches), then this three VM are just Can communicate with the virtual switch in the physical computer in external network or other servers.
Also, there are hundreds even thousands of main frames in a cluster in the development with cluster and administrative center, and There is one or more virtual switch in each main frame, in order to efficiently manage these virtual switches, it is proposed that point , as shown in Fig. 1-b, in main frame 1, there are three VM in the concept of cloth virtual switch(Respectively VM1, VM2, VM3), in main frame 2 There is also three VM(Respectively VM4, VM5, VM6), the distributed virtual switch, can be compared with single virtual switch simultaneously Multiple host is covered, can achieve efficiently to manage, it is to avoid user manages the problem of single virtual switch respectively.
There is a kind of vDS in prior art(Virtual Distributed Switch, virtual distributed switch), when When main frame is added to cluster or administrative center by user, a vDS can be created in administrative center and cover above-mentioned master Machine.As shown in fig 1-c, management center server has managed two main frames simultaneously.User creates one in management center server After individual vDS, the two main frames are then manually added in vDS, will generate an agency respectively and exchange in each main frame Machine(PS, Proxy Switch), the proxy switch is carried out the real object of data exchange.Now user in administrative center just The vDS can be managed, the operation can pass to corresponding proxy switch by data channel and execute corresponding operation.
But the present inventor is had found during the present invention is realized, when the pipe for new main frame being included vDS During reason, what needs were manual knocks in order or the addition by control program interface one by one, with the expansion of cluster scale, host number Amount is also constantly increasing, and this fully relying on manually adds the mode of new main frame to reduce the efficiency for adding main frame in vDS.And And in the running of vDS, if having new main frame to be added to management center server, vDS by manual type again The new main frame cannot be detected, also just the new main frame management of oneself cannot be included, causes the vDS cannot timely to this New main frame is managed.
Content of the invention
A kind of management method of the distributed virtual switch and relevant apparatus and system is embodiments provided, is used for Improve the efficiency for adding main frame in the distributed virtual switch, it is not necessary to manually add.
For solving above-mentioned technical problem, the embodiment of the present invention provides technical scheme below:
In a first aspect, the embodiment of the present invention provides a kind of management method of the distributed virtual switch, distributed virtual is handed over Setting change planes in the server, including:
Server judges that whether receiving request on the port of the server adds bag, the request to add bag to include Request adds the address of the main frame of the distributed virtual switch;
Bag, the server is added to send response to the main frame if receiving request on the port of the server Bag, the response bag include the address of the distributed virtual switch;
The server receives the addition bag that the main frame sends on the port of the server, and the addition bag includes The physical network card address of the main frame, MTU MTU of the main frame and the virtual switch being arranged in the main frame The port of machine, the addition bag are sent to the service after being received the response bag that the server sends by the main frame Device;
The server generates mapped port according to the port of the virtual switch being arranged in the main frame, described Mapped port is used for the distributed virtual switch and manages the virtual switch;
The server sends to the main frame and is successfully joined bag, and the bag that is successfully joined is used for having represented the main frame It is successfully joined in the distributed virtual switch.
In conjunction with a first aspect, in the first possible implementation of first aspect, described server is judged in institute Whether state also includes:
The server judges to add whether service opens automatically, if so, then triggers the server execution and judges in institute State.
In conjunction with the first possible implementation of first aspect or first aspect, second in first aspect is possible In implementation, described server is also wrapped after receiving the addition bag that the main frame sends on the port of the server Include:
The operational mode of the server is obtained, the operational mode is the pattern that is automatically added to and prompting user's affirmation mode In one of which;
If the operational mode is automatically added to pattern for described, trigger the server execution and institute is arranged on according to described The port for stating the virtual switch in main frame generates mapped port;
If the operational mode is that whether prompting user's affirmation mode, the server is prompted the user with the master Machine adds the distributed virtual switch, if the user confirms to add the distributed virtual to exchange the mainframe host computer Machine, then trigger the server and execute according to the port of the virtual switch being arranged in main frame generation mapping end Mouthful.
In conjunction with the first possible or second possible implementation of first aspect or first aspect, in first aspect In the third possible implementation, the port of described server according to the virtual switch being arranged in the main frame Also include after generating mapped port:
The server is added to the address of the main frame in host address list.
The first possible or second possible or the third possible implementation in conjunction with first aspect or first aspect, In the 4th kind of possible implementation of first aspect, methods described also includes:
Bag, the server is added to be added in bag according to the request if receiving request on the port of the server The address of the main frame of carrying judges whether the main frame has been added to the distributed virtual switch, if it is not, then triggering the service Device is executed to the main frame and sends response bag.
Second aspect, the embodiment of the present invention also provide the management method of another kind of the distributed virtual switch, distributed void Intend switch configuration in the server, including:
When main frame is connected on the port of server, main frame sends request to the server and adds bag, the request Adding includes the address of the main frame;
The main frame receives the response bag of the server feedback, and the response bag includes the distributed virtual switch Address, the response bag by the server receive described request add bag after be sent to the main frame;
The main frame to the server send add bag, described add include the main frame physical network card address, MTU MTU of the main frame and the port of the virtual switch being arranged in the main frame;
The main frame receives the bag that is successfully joined of the server feedback, and the bag that is successfully joined is used for representing the main frame It has been successfully joined in the distributed virtual switch, described being successfully joined is wrapped by the server according to being arranged on The port of the virtual switch in main frame is sent to the main frame after generating mapped port.
In conjunction with second aspect, in the first possible implementation of second aspect, described main frame is to the service Device is sent before request adds bag also to be included:
The main frame judges to add whether service opens automatically, if so, then triggers the main frame and executes to the server Send request and add bag.
In conjunction with the first possible implementation of second aspect or second aspect, second in second aspect is possible In implementation, described main frame sends request to the server and adds bag to include:
The main frame periodically sends request to the server and adds bag, until the main frame receives the service Till the response bag of device feedback.
In conjunction with the first possible or second possible implementation of second aspect or second aspect, in second aspect In the third possible implementation, described main frame sends request to the server and adds bag to include:
The main frame by way of broadcast or multicast sends request to the server and adds bag.
The third aspect, the embodiment of the present invention also provide a kind of server, and the distributed virtual switch is arranged on the server In, including:
Judge module, for judging that whether receiving request on the port of the server adds bag, the request to add Enter the address of the main frame for including asking to add the distributed virtual switch;
Sending module, for when request addition bag is received on the port of the server, sending to the main frame Response bag, the response bag include the address of the distributed virtual switch;
Receiver module, for receiving the addition bag that the main frame sends, the addition bag on the port of the server Physical network card address, MTU MTU of the main frame and the virtuality being arranged in the main frame including the main frame The port of switch, the addition bag are sent to the clothes after being received the response bag that the server sends by the main frame Business device;
Mapping block, for generating mapped port according to the port of the virtual switch being arranged in the main frame, The mapped port is used for the distributed virtual switch and manages the virtual switch;
The sending module, is successfully joined bag for sending to the main frame, and the bag that is successfully joined is used for representing described Main frame has been successfully joined in the distributed virtual switch.
In conjunction with the third aspect, in the first possible implementation of the third aspect, the judge module is additionally operable to sentence Disconnected add whether service opens automatically, if so, then trigger the judge module and execute judge on the port of the server be No receiving asks to add bag.
In conjunction with the first possible implementation of the third aspect or the third aspect, second in the third aspect is possible In implementation, the server also includes:Acquisition module and reminding module, wherein,
The acquisition module, for obtaining the operational mode of the server, the operational mode is to be automatically added to pattern With the one of which in prompting user's affirmation mode;
The acquisition module, be additionally operable to when the operational mode for described be automatically added to pattern when, then trigger the mapping Module is executed and generates mapped port according to the port of the virtual switch being arranged in the main frame;
The reminding module, for when the operational mode is prompting user's affirmation mode, prompting the user with is No the main frame is added the distributed virtual switch;
The reminding module, is additionally operable to confirm to add the distributed virtual to exchange the mainframe host computer as the user During machine, then trigger the mapping block and execute according to the generation mapping of the port of the virtual switch being arranged in the main frame Port.
In conjunction with the first possible or second possible implementation of the third aspect or the third aspect, in the third aspect In the third possible implementation, the server also includes:List management module, adds for the address by the main frame To in host address list.
The first possible or second possible or the third possible implementation in conjunction with the third aspect or the third aspect, In the 4th kind of possible implementation of the third aspect, the judge module is additionally operable to when on the port of the server When receiving request addition bag, the address of the main frame of carrying in bag is added to judge whether the main frame has added according to the request Enter the distributed virtual switch, response bag is sent if it is not, then triggering the sending module and executing to the main frame.
Fourth aspect, the embodiment of the present invention also provide a kind of main frame, including:
Sending module, for when main frame is connected on the port of server, sending request to the server and adding bag, The request adds the address for including the main frame, is provided with the distributed virtual switch in the server;
Receiver module, for receiving the response bag of the server feedback, the response bag includes the distributed virtual The address of switch, the response bag are received after the request adds bag by the server and are sent to the main frame;
The sending module, is additionally operable to send to add to the server wrap, and the addition includes the thing of the main frame The port of reason NIC address, MTU MTU of the main frame and the virtual switch being arranged in the main frame;
The receiver module, is additionally operable to the bag that is successfully joined for receiving the server feedback, and the bag that is successfully joined is used for Represent that the main frame has been successfully joined in the distributed virtual switch, the bag that is successfully joined is by the server root The main frame is sent to after mapped port is generated according to the port of the virtual switch being arranged in the main frame.
In conjunction with fourth aspect, in the first possible implementation of fourth aspect, the main frame also includes:Judge mould Block, wherein,
The judge module, for judging to add whether service opens automatically, if so, then triggers the sending module and executes Request is sent to the server and adds bag.
In conjunction with the first possible implementation of fourth aspect or fourth aspect, second in fourth aspect is possible In implementation, the sending module adds bag specifically for periodically sending request to the server, until the master Till machine receives the response bag of the server feedback.
In conjunction with the first possible or second possible implementation of fourth aspect or fourth aspect, in fourth aspect In the third possible implementation, the sending module, specifically for by broadcast or multicast by way of to the service Device sends request and adds bag.
In terms of 5th, the embodiment of the present invention also provides a kind of management system of the distributed virtual switch, the system bag Include:Server as any one of the front third aspect and the main frame as any one of fourth aspect, the server Communicatively connect with the main frame.
As can be seen from the above technical solutions, the embodiment of the present invention has advantages below:
Therefore, when main frame is connected on the port of server, request is sent to server and add bag, if server Request being received on the port of oneself and adding bag, receive and send response bag to main frame, the main frame receives the backward clothes of response bag Business device sends and adds bag, and server is generated according to the port for adding the virtual switch being arranged in the main frame carried in bag and reflected Penetrate port, most after to main frame send be successfully joined bag, to represent that the main frame has been successfully joined in the distributed virtual switch. Request can be sent to server when being connected on the port of server due to main frame adds bag, server just respond the master The request of machine, and server according to main frame send add bag can will according to add bag in carry be arranged in the main frame The port of virtual switch generates mapped port, so as to automatically the main frame is added in the distributed virtual switch, and not Interpolation manually is needed, therefore the efficiency for adding main frame in the distributed virtual switch can be improved.And existed due to main frame The mode being added in the distributed virtual switch is to send request to add bag, therefore server can add bag in time according to request The new main frame for adding of discovery, such that it is able to the main frame for newly adding timely to be included the management of the distributed virtual switch.
Description of the drawings
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, below will be to making needed for embodiment description Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those skilled in the art, can be with according to these other accompanying drawings of accompanying drawings acquisition.
Use schematic diagram of a scenario of Fig. 1-a for virtual switch;
Use schematic diagram of a scenario of Fig. 1-b for the distributed virtual switch;
Fig. 1-c be add main frame present in prior art in a kind of vDS realize process schematic;
Fig. 2 is that a kind of system architecture of the management system of the distributed virtual switch provided in an embodiment of the present invention is illustrated Figure;
Fig. 3 is that a kind of process blocks of the management method of the distributed virtual switch provided in an embodiment of the present invention are illustrated Figure;
Fig. 4 is that the process blocks of the management method of another kind of the distributed virtual switch provided in an embodiment of the present invention are illustrated Figure;
Fig. 5 is that the system architecture of the management system of another kind of the distributed virtual switch provided in an embodiment of the present invention is illustrated Figure;
Fig. 6 is automatic discovering server provided in an embodiment of the present invention the flow chart for adding main frame;
Fig. 7 is that main frame provided in an embodiment of the present invention automatically initiates the flow chart for being added to the distributed virtual switch;
Fig. 8 is that the implementation of the distributed virtual switch interpolation main frame in cluster network provided in an embodiment of the present invention is shown It is intended to;
Fig. 9-a are a kind of composition structural representation of server provided in an embodiment of the present invention;
Fig. 9-b are the composition structural representation of another kind of server provided in an embodiment of the present invention;
Figure 10-a are a kind of composition structural representation of main frame provided in an embodiment of the present invention;
Figure 10-b are the composition structural representation of another kind of main frame provided in an embodiment of the present invention;
Figure 11 is the composition structural representation of the management system of the distributed virtual switch provided in an embodiment of the present invention;
Figure 12 is the composition structural representation of another kind of server provided in an embodiment of the present invention;
Figure 13 is the composition structural representation of another kind of main frame provided in an embodiment of the present invention.
Specific embodiment
A kind of management method of the distributed virtual switch and relevant apparatus and system is embodiments provided, is used for Improve the efficiency for adding main frame in the distributed virtual switch, it is not necessary to manually add.
For enabling the goal of the invention of the present invention, feature, advantage more obvious and understandable, below in conjunction with the present invention Accompanying drawing in embodiment, to the embodiment of the present invention in technical scheme be clearly and completely described, it is clear that disclosed below Embodiment be only a part of embodiment of the invention, and not all embodiments.Embodiment in based on the present invention, this area The every other embodiment obtained by technical staff, belongs to the scope of protection of the invention.
It is described in detail individually below.
Refer to as shown in Fig. 2 the management system of the distributed virtual switch provided in an embodiment of the present invention, can wrap Include:Server, one or more main frames having added in the distributed virtual switch, un-added main frame, wherein, point Cloth virtual switch is arranged in the server, and each main frame is connected respectively in a port of server, each main frame point Communicatively do not connect with server.Un-added main frame and service are described mainly in subsequent embodiment of the present invention Interaction between device, so as to realize that un-added main frame is automatically added in the distributed virtual switch, so as to avoid Interpolation manually, it is possible to achieve add automatically service, improve the efficiency for adding main frame.
One embodiment of the management method of the distributed virtual switch of the present invention, can be applicable to the distributed virtual switch Scene in the server is set, wherein, is primarily based on server-side and is illustrated, the method can include:Server is sentenced Breaking and request addition bag whether being received on the port of the server, the request is added includes the request addition distribution The address of the main frame of formula virtual switch;If receive on the port of the server request add bag, the server to The main frame sends response bag, and the response bag includes the address of the distributed virtual switch;The server is described Receive the addition bag that the main frame sends on the port of server, the addition bag include the main frame physical network card address, MTU MTU of the main frame and the port of the virtual switch being arranged in the main frame, the addition bag is by institute State after main frame receives the response bag that the server sends and be sent to the server;The server is according to the setting The port of the virtual switch in the main frame generates mapped port, and the mapped port is exchanged for the distributed virtual Machine manages the virtual switch;The server sends to the main frame and is successfully joined bag, and the bag that is successfully joined is for table Show that the main frame has been successfully joined in the distributed virtual switch.
Refer to shown in Fig. 3, the management method of the distributed virtual switch that one embodiment of the invention is provided is distributed Virtual switch is arranged in the server, it may include:
301st, server judges that whether receiving request on the port of server adds bag.
Wherein, above-mentioned request adds the address of the main frame for including asking to add the distributed virtual switch.
Server first determines whether that whether receiving request on the port of server adds bag, in some enforcements of the present invention In example, server can monitor the multiple fixed ports of oneself constantly, detect Being sent to, being sent to if request being detected with by these fixed ports and being added to, the main frame for adding carrying in bag in request is described The request for adding the distributed virtual switch initiated by main frame corresponding to address.Among these, server is to multiple fixed ports Monitoring be a lasting process.
In addition, whether server judges to receive on the port of server before request adds bag, server can be with Judge to add whether service opens automatically, if the automatic interpolation service has been switched on, execute in triggering step 301, if this is automatic Interpolation service is closed, then terminate whole adding procedure automatically.Server can be determined according to the specific environment of oneself Fixed whether execute the mode for adding automatically main frame, can the more preferable existing at present manual addition manner of compatibility.Additionally, server Control of authority function can also be set when deciding whether and executing the mode for adding automatically main frame, ability when only possessing specified permission Can open and add automatically service, improve the security performance of server.
Bag, server is added to send response bag to above-mentioned main frame if 302 receive request on the port of server.
Wherein, above-mentioned response bag includes the address of above-mentioned the distributed virtual switch.
After server receives the request addition bag of main frame transmission on oneself port, give a response to the main frame, can To send a response bag to main frame, to represent that server have received the addition request of the main frame, this interaction both sides holds Mobile phone system can ensure that main frame knows that server have received addition request.
If in addition, receiving request on the port of above-mentioned server adds bag, server can be with according to above-mentioned request The address of the main frame carried in bag is added to judge whether the main frame has been added to the distributed virtual switch, if it is not, triggering step 302 execute.If the main frame has been had been added in the distributed virtual switch, server can report an error to the main frame, and pointing out should Main frame has been had been added in the distributed virtual switch, so as to repeat to initiate to add request.
303rd, server receives the addition bag that above-mentioned main frame sends on the port of server.
Wherein, above-mentioned addition bag includes the physical network card address of above-mentioned main frame, the MTU of above-mentioned main frame(MTU, Maximum Transmission Unit), the port of virtual switch that is arranged in above-mentioned main frame.It is pointed out that on After stating the response bag for adding bag that server transmission is received by main frame be sent to server.
In addition, after the server addition bag that Receiving Host sends on the port of server, server can also be obtained The operational mode of the server, interim, operational mode is the one of which in the pattern that is automatically added to and prompting user's affirmation mode;
If for being automatically added to pattern, server can trigger step 304 and execute above-mentioned operational mode;
If above-mentioned operational mode is that prompting user's affirmation mode, server can be prompted the user with and whether added above-mentioned main frame Enter above-mentioned the distributed virtual switch, if above-mentioned user confirms for above-mentioned mainframe host computer to add above-mentioned the distributed virtual switch, Server can trigger step 304 and execute.If above-mentioned main frame is added above-mentioned the distributed virtual switch by above-mentioned user's refusal, No longer execution step 304 and subsequent step, but return to step 301, server continue to monitor the port of oneself.From there through For the selection of the operational mode of server settings, main frame can be added automatically, it is also possible to user is given by power to make decision, in server Detect when main frame needs to be added in the distributed virtual switch to reporting of user, decided whether to add by user, taken Business device is executed according to the decision of user and adds main frame or refusal main frame addition such that it is able to further realize that distributed virtual is handed over The intellectual management that changes planes.
304th, server generates mapped port according to the port of the virtual switch being arranged in above-mentioned main frame.
Wherein, above-mentioned mapped port is used for the above-mentioned virtual switch of above-mentioned the distributed virtual switch management.Distributed void Intend the virtual switch during switch is handed over for managing main frame, it is necessary to generate mapped port, exchanged by operating distributed virtual The mapped port of machine, is equivalent to the port for operating the virtual switch on main frame.
In addition, after server generates mapped port according to the port of the virtual switch being arranged in the main frame, clothes Business device can also be added to the address of above-mentioned main frame in host address list.I.e. server is provided with one for the ease of management Individual host address list, for the All hosts for having added to the distributed virtual switch, all adds its address to main frame Address list, can be easy to the management of server by way of setting host address list.
305th, server sends to above-mentioned main frame and is successfully joined bag.
Wherein, the above-mentioned bag that is successfully joined is used for representing that above-mentioned main frame has been successfully joined above-mentioned the distributed virtual switch In.When server has got the network configuration information of the address of main frame, main frame(Network configuration information includes the physics of main frame The port of NIC address, the MTU of main frame and the virtual switch being arranged in main frame), and after completing port mapping, service Device sends to main frame and is successfully joined bag, and this is successfully joined bag is used for informing that main frame is had been added in the distributed virtual switch ?.
Therefore, when main frame is connected on the port of server, request is sent to server and add bag, if server Request being received on the port of oneself and adding bag, receive and send response bag to main frame, the main frame receives the backward clothes of response bag Business device sends and adds bag, and server is generated according to the port for adding the virtual switch being arranged in the main frame carried in bag and reflected Penetrate port, most after to main frame send be successfully joined bag, to represent that the main frame has been successfully joined in the distributed virtual switch. Request can be sent to server when being connected on the port of server due to main frame adds bag, server just respond the master The request of machine, and server according to main frame send add bag can will according to add bag in carry be arranged in the main frame The port of virtual switch generates mapped port, so as to automatically the main frame is added in the distributed virtual switch, and not Interpolation manually is needed, therefore the efficiency for adding main frame in the distributed virtual switch can be improved.And existed due to main frame The mode being added in the distributed virtual switch is to send request to add bag, therefore server can add bag in time according to request The new main frame for adding of discovery, such that it is able to the main frame for newly adding timely to be included the management of the distributed virtual switch.
Another embodiment of the management method of the distributed virtual switch of the present invention, can be applicable to distributed virtual exchange Machine arranges scene in the server, wherein, is carried out based on a main frame side being not added in the distributed virtual switch Illustrate, including herein below:When main frame is connected on the port of server, main frame sends request to the server and adds Bag, the request add the address for including the main frame;The main frame receives the response bag of the server feedback, the sound The request should be received by the server and add bag including the address of the distributed virtual switch, the response bag The main frame is sent to afterwards;The main frame sends to the server and adds bag, and the addition includes the thing of the main frame The port of reason NIC address, MTU MTU of the main frame and the virtual switch being arranged in the main frame;Described Main frame receives the bag that is successfully joined of the server feedback, and the bag that is successfully joined is used for representing that the main frame has been successfully joined To in the distributed virtual switch, described being successfully joined is wrapped by the server according to the virtuality being arranged in the main frame The port of switch is sent to the main frame after generating mapped port.
Refer to shown in Fig. 4, the management method of the distributed virtual switch that another embodiment of the present invention is provided can be wrapped Include:
401st, when main frame is connected on the port of server, main frame sends request to the server and adds bag.
Wherein, above-mentioned request adds the address for including above-mentioned main frame.
When a main frame is connected on the port of server, the main frame sends request to server and adds bag, to represent The host request is added in the distributed virtual switch.
In some embodiments of the invention, above-mentioned main frame periodically can send request to above-mentioned server and add Bag, i.e., above-mentioned main frame can timing send request to above-mentioned server and add bag, when timing is reached automatic upwards State server and send request addition bag.For example, above-mentioned main frame sends request with regard to timing to above-mentioned server every 10s and adds Bag, till above-mentioned main frame receives the response bag of server feedback.In other embodiments of the present invention, above-mentioned main frame Request can also be sent to above-mentioned server by way of broadcast or multicast and add bag.For example, above-mentioned main frame can pass through UDP(User Datagram Protocol, UDP)Or other agreements are to above-mentioned server broadcast or multicast Request adds bag.
In addition, when main frame is connected on the port of server, before main frame sends request addition bag to the server, Main frame can also judge to add whether service opens automatically, if the automatic interpolation service has been switched on, hold in triggering step 401 OK, if the automatic interpolation service is closed, terminate whole adding procedure automatically.Main frame can be according to the concrete of oneself Environment, can the more preferable existing at present manual addition manner of compatibility deciding whether to execute the mode for adding automatically main frame.This Outward, main frame can also set control of authority function when deciding whether and executing the mode for adding automatically main frame, only possess specific Service of add automatically could be opened during authority, improve the security performance of main frame.
402nd, main frame receives the response bag of above-mentioned server feedback.
Wherein, above-mentioned response bag includes the address of above-mentioned the distributed virtual switch, and above-mentioned response bag is by above-mentioned server Receive after above-mentioned request adds bag and be sent to above-mentioned main frame.
After server receives the request addition bag of main frame transmission on oneself port, give a response to the main frame, can To send a response bag to main frame, to represent that server have received the addition request of the main frame, this interaction both sides holds Mobile phone system can ensure that main frame knows that server have received addition request.
403rd, main frame sends to above-mentioned server and adds bag.
Wherein, above-mentioned addition bag include the physical network card address of above-mentioned main frame, MTU MTU of above-mentioned main frame and The port of the virtual switch being arranged in above-mentioned main frame.
After the response bag for receiving server feedback, host acknowledgement server have received addition request to main frame, Just the network configuration information of oneself addition bag be can be packaged into and server, wherein the network configuration information bag of main frame are sent to Include:The port of the physical network card address, the MTU of main frame and the virtual switch being arranged in main frame of main frame.
What the 404th, main frame received above-mentioned server feedback is successfully joined bag.
Wherein, the above-mentioned bag that is successfully joined is used for representing that above-mentioned main frame has been successfully joined above-mentioned the distributed virtual switch In.It is pointed out that above-mentioned be successfully joined bag by above-mentioned server according to the virtual switch being arranged in above-mentioned main frame Port is sent to above-mentioned main frame after generating mapped port.
Therefore, when main frame is connected on the port of server, request is sent to server and add bag, if server Request being received on the port of oneself and adding bag, receive and send response bag to main frame, the main frame receives the backward clothes of response bag Business device sends and adds bag, and server is generated according to the port for adding the virtual switch being arranged in the main frame carried in bag and reflected Penetrate port, most after to main frame send be successfully joined bag, to represent that the main frame has been successfully joined in the distributed virtual switch. Request can be sent to server when being connected on the port of server due to main frame adds bag, server just respond the master The request of machine, and server according to main frame send add bag can will according to add bag in carry be arranged in the main frame The port of virtual switch generates mapped port, so as to automatically the main frame is added in the distributed virtual switch, and not Interpolation manually is needed, therefore the efficiency for adding main frame in the distributed virtual switch can be improved.And existed due to main frame The mode being added in the distributed virtual switch is to send request to add bag, therefore server can add bag in time according to request The new main frame for adding of discovery, such that it is able to the main frame for newly adding timely to be included the management of the distributed virtual switch.
For ease of being better understood from and implementing the such scheme of the embodiment of the present invention, several application scenarios of illustrating below are entering Row is illustrated.
Below mainly by taking the management system framework based on the distributed virtual switch as shown in Figure 2 as an example.
Under a kind of application scenarios, illustrate so that a main frame is automatically added in server as an example.Refer to such as Fig. 5 Shown, it is a kind of concrete system architecture schematic diagram of the management system of the distributed virtual switch.
Separately below in introducing system framework modules effect, mainly include main frame and server, wherein, main frame bag Include:Network packet processing module, interactive module, configuration module, memory module.Server is included:Network packet processing module, friendship Mutual module, configuration module, memory module.In order to describe the difference that each functions of modules is realized in main frame and server in detail, The detailed functions possessed when being separately positioned on to modules in main frame and server are illustrated.
First, configuration module
The configuration information that configuration module in main frame can mainly be arranged has four:
1), beat opening/closing and add automatically service switch;
2), play opening/closing control of authority;
3), timing send request add bag time interval be how many;
4), the concrete network configuration information of the distributed virtual switch will be added, the physical network card ground, MTU including main frame Port with the virtual switch being arranged in main frame.
The configuration information that configuration module in server can mainly be arranged has three:
1), beat opening/closing and add automatically service switch;
2), play opening/closing control of authority;
3), operational mode selection, be specially automatically added to pattern and still point out user's affirmation mode.
2nd, interactive module
Interactive module in main frame is mainly supplied to the function that user is configured to configuration module.
Interactive module in server is mainly supplied to the function that user is configured to configuration module;In addition, in prompting Under user's affirmation mode, it is found that main frame is automatically added to ask, interactive module is needed to user pointing out, user is allowed choosing whether Agree to that the main frame adds the distributed virtual switch.
3rd, memory module
The main storage content of memory module in main frame is mainly:
1), the distributed virtual switch address that adds of the main frame(If not adding, this content is sky);
2), the main frame network configuration information of oneself.
The main storage content of memory module in server has three below:
1), add the All hosts address list of the distributed virtual switch;
2), network configuration information corresponding with each host address;
3), the configuration information that arranges in configuration module.
4th, network packet processing module, is the nucleus module of server and main frame.
Network packet processing module in main frame, can give out a contract for a project time timing with multicast or broadcast according to the timing in configuration module Form send in network request add bag, if interacted without server, then the action will be continuously carried out.Such as Fruit has server to respond the bag, then will add main frame to distributed virtual through a series of interaction so as to be automatically performed The process of switch.
Network packet processing module in server, can always monitor fixed port, when receive from main frame send request Bag is added, will be interacted, so as to complete the process that main frame is added the distributed virtual switch.
In order to describe automatic discovering server in detail and add the process of main frame, refer to server as shown in Figure 6 from The dynamic flow chart for finding and adding main frame.
In figure 6, if " adding automatically service " is to open, server is monitored fixed port always and is confirmed whether there is master " request adds bag " that machine sends.If it find that there is the bag, the address of main frame is taken out from bag, is then looked into from memory module again Look for whether the address had been added to this distributed virtual switch.If had been added in, report an error, and send " error bag " Give main frame;If do not added, one " response bag " is sent to main frame.If then the normal transmission of main frame continuation is various comprising it " adding bag " of local information, if the operational mode of server is to be automatically added to pattern, automatically by the host address and letter Breath is stored in memory module, generates mapped port, sends " being successfully joined bag " to main frame;If prompting user's affirmation mode, then Interactive module is then notified that the user of the distributed virtual switch console has the request that main frame requirement is added, if agree to add Enter, the host address and network configuration information are stored in memory module if the user adheres to, generate mapped port, send out " being successfully joined bag " is sent to main frame, " error bag " is otherwise sent to main frame.
The process of addition is automatically initiated to describe main frame in detail, is referred to main frame as shown in Figure 7 and is automatically initiated addition Flow chart to the distributed virtual switch.
In the figure 7, if " adding automatically service " is to open, and main frame does not add any the distributed virtual switch, " request add bag " is sent according to the time of giving out a contract for a project of the timing in configuration module, if not receiving the " response of server transmission Bag ", will regularly send " request adds bag " always;If receiving " response bag " of server transmission, take out from " response bag " The address of server, that is, the address of the distributed virtual switch, then take out network configuration information, so from memory module Afterwards network configuration information is packaged into " adding bag ", and " the adding bag " is sent to server, if having successfully received server sent out The server address is stored in memory module by " being successfully joined bag " that send.
The management method of the distributed virtual switch of the present invention is described with the example of a cluster network below, is referred to As shown in figure 8, giving a cluster network in Fig. 8.In fig. 8, the distributed virtual switch console runs on center master Machine(IP address is 192.168.0.1)On, certainly, server end is also run in central host, in the cluster, in need plus The main frame 1 for entering the distributed virtual switch management arrives main frame 100, and IP address is respectively 192.168.0.100 and arrives 192.168.0.200, " adding automatically service " is all deployed when main frame is initialized thereon.Below with main frame 1 (192.168.0.100)As a example by, how explanation in detail is automatically added to the distributed virtual switch.Key step is as follows:
" adding automatically service " on S01, main frame 1 is opened, and main frame 1 does not add any the distributed virtual switch, main Machine 1 can be given out a contract for a project the time according to the timing in configuration module, it is assumed here that be 5 seconds, that is, once be sent out within 5 seconds " asking to add Enter bag ", specifically can be by way of multicast or broadcast.
Whether S02, " the adding automatically service " of server also have been switched on, monitoring always " request adds bag ", when which receives the bag, will take out host address from bag(The address for taking out main frame 1 herein is 192.168.0.100), then search whether the address had been added to this distributed virtual switch from memory module again , it is assumed herein that not having, then " response bag " will be sent to 192.168.0.100.
After S03, main frame 1 receive " response bag ", then take out the address of server from " response bag "(Referred to herein as 192.168.0.1), then from memory module, network configuration information is taken out, then carries out package, " adding bag " is sent to service Device.
Now pattern is to be automatically added to pattern for S04, hypothesis server, then believe 1 address of main frame and network configuration automatically Breath is stored in memory module, generates mapped port, then sends " being successfully joined bag " to main frame 1(192.168.0.1).
S05, main frame 1 have successfully received " being successfully joined bag " of server transmission, and server address is stored in memory module.
By the description of such as upper type, main frame 1 successfully adds the distributed virtual switch.
Therefore, when main frame is connected on the port of server, request is sent to server and add bag, if server Request being received on the port of oneself and adding bag, receive and send response bag to main frame, the main frame receives the backward clothes of response bag Business device sends and adds bag, and server is generated according to the port for adding the virtual switch being arranged in the main frame carried in bag and reflected Penetrate port, most after to main frame send be successfully joined bag, to represent that the main frame has been successfully joined in the distributed virtual switch. Request can be sent to server when being connected on the port of server due to main frame adds bag, server just respond the master The request of machine, and server according to main frame send add bag can will according to add bag in carry be arranged in the main frame The port of virtual switch generates mapped port, so as to automatically the main frame is added in the distributed virtual switch, and not Interpolation manually is needed, therefore the efficiency for adding main frame in the distributed virtual switch can be improved.And existed due to main frame The mode being added in the distributed virtual switch is to send request to add bag, therefore server can add bag in time according to request The new main frame for adding of discovery, such that it is able to the main frame for newly adding timely to be included the management of the distributed virtual switch.
It should be noted that for aforesaid each method embodiment, in order to be briefly described, therefore which is all expressed as a series of Combination of actions, but those skilled in the art should know, the present invention do not limited by described sequence of movement because According to the present invention, some steps can be carried out using other orders or simultaneously.Secondly, those skilled in the art should also know Know, embodiment described in this description belongs to preferred embodiment, involved action and module are not necessarily of the invention Necessary.
For ease of preferably implementing the such scheme of the embodiment of the present invention, it is also provided below for implementing the phase of such scheme Close device.
Refer to as shown in Fig. 9-a, a kind of server 900 provided in an embodiment of the present invention, the distributed virtual switch sets Put in the server 900, including:Judge module 901, sending module 902, receiver module 903, mapping block 904, wherein,
Judge module 901, for judging that whether receiving request on the port of the server adds bag, the request Add the address of the main frame for including asking to add the distributed virtual switch;
Sending module 902, is to receive to ask on the port of the server for working as the result that judge module 901 judges When seeking addition bag, response bag is sent to the main frame, the response bag includes the address of the distributed virtual switch;
Receiver module 903, for receiving the addition bag that the main frame sends, the addition on the port of the server Include physical network card address, MTU MTU of the main frame and the void being arranged in the main frame of the main frame Intend the port of switch, the addition bag is sent to described after the response bag that the server sends is received by the main frame Server;
Mapping block 904, after receiving addition bag for receiver module 903, is arranged in the main frame according to described The port of virtual switch generate mapped port, the mapped port is used for the distributed virtual switch and manages the void Intend switch;
The sending module 902, after completing mapping for mapping block 904, sends to the main frame and is successfully joined bag, The bag that is successfully joined is used for representing that the main frame has been successfully joined in the distributed virtual switch.
In some embodiments of the invention, judge module 901 can be also used for judging to add whether service opens automatically, If so, then triggering the judge module 901 and executing judge that request whether is received on the port of the server adds bag.
In other embodiments of the present invention, judge module 901 is can be also used for when on the port of the server When receiving request addition bag, the address of the main frame of carrying in bag is added to judge whether the main frame has added according to the request Enter the distributed virtual switch, response bag is sent if it is not, then triggering the sending module and executing to the main frame.
Refer to shown in Fig. 9-b, in some embodiments of the invention, server 900 can also include:Acquisition module 905 and reminding module 906, wherein,
The acquisition module 905, for obtaining the operational mode of the server, the operational mode is to be automatically added to mould One of which in formula and prompting user's affirmation mode;
The acquisition module 905, be additionally operable to when the operational mode for described be automatically added to pattern when, then triggering described in reflect Penetrate module to execute according to the port of the virtual switch being arranged in main frame generation mapped port;
The reminding module 906, for when the operational mode is prompting user's affirmation mode, prompting the user with Whether the main frame is added the distributed virtual switch;
The reminding module 906, is additionally operable to confirm for the mainframe host computer to add the distributed virtual as the user During switch, then trigger the mapping block and execute according to the generation of the port of the virtual switch being arranged in the main frame Mapped port.
Refer to shown in Fig. 9-b, in some embodiments of the invention, server 900 can also include:List management mould Block 907, wherein,
List management module 907, for the address of the main frame is added in host address list.
Refer to as shown in Figure 10-a, a kind of main frame 1000 provided in an embodiment of the present invention can include:Sending module 1001st, receiver module 1002, wherein,
Sending module 1001, for when main frame is connected on the port of server, sending request to the server and adding Enter bag, the request adds the address for including the main frame, the distributed virtual switch is provided with the server;
Receiver module 1002, for receiving the response bag of the server feedback, the response bag includes described distributed The address of virtual switch, the response bag are received after the request adds bag by the server and are sent to the master Machine;
The sending module 1001, after being additionally operable to the response bag that receiver module 1002 receives server feedback, to institute State server and send addition bag, the addition includes physical network card address, the maximum transmitted list of the main frame of the main frame First MTU and the port of the virtual switch being arranged in the main frame;
The receiver module 1002, is additionally operable to the bag that is successfully joined for receiving the server feedback, described is successfully joined bag For representing that the main frame has been successfully joined in the distributed virtual switch, the bag that is successfully joined is by the service Device is sent to the main frame after generating mapped port according to the port of the virtual switch being arranged in the main frame.
In some embodiments of the invention, sending module 1001, specifically can be used for periodically to the server Send request and add bag, till the main frame receives the response bag of the server feedback.
In other embodiments of the present invention, sending module 1001 specifically can be used for by broadcast or multicast Mode sends request to the server and adds bag.
Refer to as shown in Figure 10-b, a kind of main frame 1000 provided in an embodiment of the present invention can also include:Judge module 1003, wherein,
The judge module 1003, for judging to add whether service opens automatically, if so, then triggers the sending module Execute to the server and send request addition bag.
Refer to as shown in figure 11, a kind of management system of the distributed virtual switch provided in an embodiment of the present invention 1100, can include:
Server 900 as shown in Fig. 9-a, 9-b, the main frame 1000 as shown in Figure 10-a, 10-b, wherein, server 900 Communicatively connect with main frame 1000.
To sum up, when main frame is connected on the port of server, request is sent to server and add bag, if server is certainly Request being received on oneself port and adding bag, receive and send response bag to main frame, the main frame receives the backward server of response bag Send and add bag, server generates mapping end according to the port for adding the virtual switch being arranged in the main frame carried in bag Mouthful, most after to main frame send be successfully joined bag, to represent that the main frame has been successfully joined in the distributed virtual switch.Due to Main frame can send request to server when being connected on the port of server and add bag, server just respond the main frame Request, and server can be by according to the virtuality being arranged in the main frame for adding carrying in bag according to main frame transmission addition bag The port of switch generates mapped port, so as to automatically the main frame is added in the distributed virtual switch, without Interpolation manually, therefore the efficiency for adding main frame in the distributed virtual switch can be improved.And as main frame is in interpolation Mode in the distributed virtual switch is to send request to add bag, therefore server can add bag timely to send out according to request The main frame for now newly adding, such that it is able to the main frame for newly adding timely to be included the management of the distributed virtual switch.
The embodiment of the present invention also provides a kind of computer-readable storage medium, and wherein, the computer-readable storage medium has program stored therein, The program performing includes the part or all of arrangement described in said method embodiment.
Next another kind of server provided in an embodiment of the present invention is introduced, is referred to shown in Figure 12, server 1200 is wrapped Include:
Input unit 1201, output device 1202, processor 1203 and memory 1204 are (wherein in positioner 1200 The quantity of processor 1203 can be with one or more, in Figure 12 by taking a processor as an example).In some embodiments of the present invention In, input unit 1201, output device 1202, processor 1203 and memory 1204 can pass through bus or alternate manner connects, Wherein, in Figure 12 as a example by being connected by bus.
Wherein, processor 1203, for executing following steps:Judge whether to receive on the port of the server and ask Addition bag, the request is asked to add the address of the main frame for including asking to add the distributed virtual switch;If described Request is received on the port of server and adds bag, generate response bag, send response bag from output device 1202 to the main frame, The response bag includes the address of the distributed virtual switch;Adding for the main frame transmission, is received by input unit 1201 After entering bag, mapped port is generated according to the port of the virtual switch being arranged in the main frame, the mapped port is used The virtual switch is managed in the distributed virtual switch, the addition bag includes the physical network card ground of the main frame The port of location, MTU MTU of the main frame and the virtual switch being arranged in the main frame, the addition bag by The main frame is sent to the server after receiving the response bag that the server sends;Generation is successfully joined bag, by defeated Go out device 1202 to send to the main frame, the bag that is successfully joined is used for representing that the main frame has been successfully joined the distribution In formula virtual switch.
In some embodiments of the invention, processor 1203 is additionally operable to execute following steps:Judge to add automatically service Whether open, if so, then trigger the server execution and judge that request whether is received on the port of the server to be added Bag.
In some embodiments of the invention, processor 1203 is additionally operable to execute following steps:Obtain the server Operational mode, the operational mode are the one of which in the pattern that is automatically added to and prompting user's affirmation mode;If the operation Pattern is automatically added to pattern for described, then trigger the server and execute according to the virtual switch being arranged in the main frame The port of machine generates mapped port;If the operational mode is prompting user's affirmation mode, whether prompt the user with institute State main frame and add the distributed virtual switch, if the user confirms for the mainframe host computer to add the distributed virtual Switch, then trigger the server and execute according to the generation mapping of the port of the virtual switch being arranged in the main frame Port.
Next another kind of main frame provided in an embodiment of the present invention is introduced, is referred to shown in Figure 13, main frame 1300 includes:
Input unit 1301, output device 1302, processor 1303 and memory 1304 are (wherein in positioner 1300 The quantity of processor 1303 can be with one or more, in Figure 13 by taking a processor as an example).In some embodiments of the present invention In, input unit 1301, output device 1302, processor 1303 and memory 1304 can pass through bus or alternate manner connects, Wherein, in Figure 13 as a example by being connected by bus.
Wherein, processor 1303, for executing following steps:When main frame is connected on the port of server, generating please Addition bag is sought, is sent to server from output device 1302, the request adds the address for including the main frame;Filled by input Put after receiving the response bag of the server feedback, generate and add bag, the response bag includes that the distributed virtual is exchanged The address of machine, the response bag are received after the request adds bag by the server and are sent to the main frame, described plus Enter to include the physical network card address of the main frame, MTU MTU of the main frame and be arranged in the main frame The port of virtual switch;Bag is successfully joined by what input unit 1301 received the server feedback, by described successfully plus Enter the bag acquisition main frame to be successfully joined in the distributed virtual switch, the bag that is successfully joined is by the service Device is sent to the main frame after generating mapped port according to the port of the virtual switch being arranged in the main frame.
In some embodiments of the invention, processor 1303 is additionally operable to execute following steps:The main frame judges automatically Add whether service opens, if so, then trigger the main frame and execute to server transmission request addition bag.
In some embodiments of the invention, processor 1303 is additionally operable to execute following steps:The main frame is periodic Request is sent to the server and adds bag, till the main frame receives the response bag of the server feedback.
To sum up, when main frame is connected on the port of server, request is sent to server and add bag, if server is certainly Request being received on oneself port and adding bag, receive and send response bag to main frame, the main frame receives the backward server of response bag Send and add bag, server generates mapping end according to the port for adding the virtual switch being arranged in the main frame carried in bag Mouthful, most after to main frame send be successfully joined bag, to represent that the main frame has been successfully joined in the distributed virtual switch.Due to Main frame can send request to server when being connected on the port of server and add bag, server just respond the main frame Request, and server can be by according to the virtuality being arranged in the main frame for adding carrying in bag according to main frame transmission addition bag The port of switch generates mapped port, so as to automatically the main frame is added in the distributed virtual switch, without Interpolation manually, therefore the efficiency for adding main frame in the distributed virtual switch can be improved.And as main frame is in interpolation Mode in the distributed virtual switch is to send request to add bag, therefore server can add bag timely to send out according to request The main frame for now newly adding, such that it is able to the main frame for newly adding timely to be included the management of the distributed virtual switch.
One of ordinary skill in the art will appreciate that realize that all or part of step in above-described embodiment method is can be with The hardware for being instructed correlation by program is completed, and described program can be stored in a kind of computer-readable recording medium, on It can be read-only storage, disk or CD etc. to state the storage medium that mentions.
Above a kind of management method of the distributed virtual switch provided by the present invention and relevant apparatus and system are entered Gone and be discussed in detail, for one of ordinary skill in the art, according to the thought of the embodiment of the present invention, in specific embodiment and Will change in range of application, in sum, this specification content should not be construed as limiting the invention.

Claims (29)

1. a kind of management method of the distributed virtual switch, it is characterised in that the distributed virtual switch is arranged on server In, including:
Server judges that whether receiving request on the port of the server adds bag, the request to add and include request Add the address of the main frame of the distributed virtual switch;
Bag, the server is added to send response bag, institute to the main frame if receiving request on the port of the server Stating response bag includes the address of the distributed virtual switch;
The server receives the addition bag that the main frame sends on the port of the server, and the addition bag includes described The physical network card address of main frame, MTU MTU of the main frame and the virtual switch that is arranged in the main frame Port, the addition bag are sent to the server after being received the response bag that the server sends by the main frame;
The server generates mapped port, the mapping according to the port of the virtual switch being arranged in the main frame Port is used for the distributed virtual switch and manages the virtual switch;
The server sends to the main frame and is successfully joined bag, and the bag that is successfully joined is used for representing the main frame success It is added in the distributed virtual switch.
2. method according to claim 1, it is characterised in that described server is judged on the port of the server Whether receive before request adds bag also includes:
The server judges to add whether service opens automatically, if so, then triggers the server execution and judges in the clothes Request whether is received on the port of business device and adds bag.
3. method according to claim 1 and 2, it is characterised in that described server is on the port of the server Also include after receiving the addition bag that the main frame sends:
The operational mode of the server is obtained, the operational mode is in the pattern that is automatically added to and prompting user's affirmation mode One of which;
If the operational mode is automatically added to pattern for described, trigger the server execution and the master is arranged on according to described The port of the virtual switch in machine generates mapped port;
If the operational mode is that prompting user's affirmation mode, the server are prompted the user with and whether added the main frame Enter the distributed virtual switch, if the user confirms for the main frame to add the distributed virtual switch, touch Send out server described and execute and mapped port is generated according to the port of the virtual switch being arranged in the main frame.
4. method according to claim 1 and 2, it is characterised in that described server is arranged on the master according to described The port of the virtual switch in machine also includes after generating mapped port:
The server is added to the address of the main frame in host address list.
5. method according to claim 3, it is characterised in that described server is arranged in the main frame according to described Virtual switch port generate mapped port after also include:
The server is added to the address of the main frame in host address list.
6. method according to claim 1 and 2, it is characterised in that methods described also includes:
Bag, the server is added to be added in bag according to the request and carried if receiving request on the port of the server The address of main frame judge whether the main frame has been added to the distributed virtual switch, if it is not, then trigger the server holding Row sends response bag to the main frame.
7. method according to claim 3, it is characterised in that methods described also includes:
Bag, the server is added to be added in bag according to the request and carried if receiving request on the port of the server The address of main frame judge whether the main frame has been added to the distributed virtual switch, if it is not, then trigger the server holding Row sends response bag to the main frame.
8. method according to claim 4, it is characterised in that methods described also includes:
Bag, the server is added to be added in bag according to the request and carried if receiving request on the port of the server The address of main frame judge whether the main frame has been added to the distributed virtual switch, if it is not, then trigger the server holding Row sends response bag to the main frame.
9. method according to claim 5, it is characterised in that methods described also includes:
Bag, the server is added to be added in bag according to the request and carried if receiving request on the port of the server The address of main frame judge whether the main frame has been added to the distributed virtual switch, if it is not, then trigger the server holding Row sends response bag to the main frame.
10. a kind of management method of the distributed virtual switch, it is characterised in that the distributed virtual switch is arranged on server In, including:
When main frame is connected on the port of server, main frame sends request to the server and adds bag, the request to add Include the address of the main frame;
The main frame receives the response bag of the server feedback, and the response bag includes the ground of the distributed virtual switch Location, the response bag are received after the request adds bag by the server and are sent to the main frame;
The main frame sends to the server and adds bag, described adds the physical network card address, described for including the main frame MTU MTU of main frame and the port of the virtual switch being arranged in the main frame;
The main frame receives the bag that is successfully joined of the server feedback, and the bag that is successfully joined is used for having represented the main frame Be successfully joined in the distributed virtual switch, described bag is successfully joined by the server according to being arranged on the main frame In virtual switch port generate mapped port after be sent to the main frame.
11. methods according to claim 10, it is characterised in that described main frame sends request to the server and adds Also include before bag:
The main frame judges to add whether service opens automatically, if so, then triggers the main frame and executes to server transmission Request adds bag.
12. methods according to claim 10 or 11, it is characterised in that described main frame sends request to the server Bag is added to include:
The main frame periodically sends request to the server and adds bag, and until the main frame, to receive the server anti- Till the response bag of feedback.
13. methods according to claim 10 or 11, it is characterised in that described main frame sends request to the server Bag is added to include:
The main frame by way of broadcast or multicast sends request to the server and adds bag.
14. methods according to claim 12, it is characterised in that described main frame sends request to the server and adds Bag includes:
The main frame by way of broadcast or multicast sends request to the server and adds bag.
15. a kind of servers, it is characterised in that the distributed virtual switch is arranged in the server, including:
Judge module, for judging that whether receiving request on the port of the server adds bag, the request to add bag The address of the main frame of the distributed virtual switch is added including request;
Sending module, for when request addition bag is received on the port of the server, sending response to the main frame Bag, the response bag include the address of the distributed virtual switch;
Receiver module, for receiving the addition bag that the main frame sends on the port of the server, the addition bag includes The physical network card address of the main frame, MTU MTU of the main frame and the virtual switch being arranged in the main frame The port of machine, the addition bag are sent to the service after being received the response bag that the server sends by the main frame Device;
Mapping block, for generating mapped port according to the port of the virtual switch being arranged in the main frame, described Mapped port is used for the distributed virtual switch and manages the virtual switch;
The sending module, is successfully joined bag for sending to the main frame, and the bag that is successfully joined is used for representing the main frame It has been successfully joined in the distributed virtual switch.
16. servers according to claim 15, it is characterised in that the judge module is additionally operable to judge to add automatically clothes Whether business opens, and if so, then triggers the judge module execution and judges whether receive request on the port of the server Add bag.
17. servers according to claim 15 or 16, it is characterised in that the server also includes:Acquisition module and Reminding module, wherein,
The acquisition module, for obtaining the operational mode of the server, the operational mode is to be automatically added to pattern and carry Show the one of which in user's affirmation mode;
The acquisition module, be additionally operable to when the operational mode for described be automatically added to pattern when, then trigger the mapping block Execute and mapped port is generated according to the port of the virtual switch being arranged in the main frame;
Whether the reminding module, for when the operational mode is prompting user's affirmation mode, will prompt the user with The main frame adds the distributed virtual switch;
The reminding module, is additionally operable to when the user confirms for the main frame to add the distributed virtual switch, then Trigger the mapping block to execute according to the port of the virtual switch being arranged in main frame generation mapped port.
18. servers according to claim 15 or 16, it is characterised in that the server also includes:List management mould Block, for the address of the main frame is added in host address list.
19. servers according to claim 17, it is characterised in that the server also includes:List management module, uses In the address of the main frame is added in host address list.
20. servers according to claim 15, it is characterised in that the judge module, are additionally operable to when in the service When receiving request addition bag on the port of device, the address of the main frame of carrying in bag is added to judge the main frame according to the request Whether the distributed virtual switch is had been added to, response bag is sent if it is not, then triggering the sending module and executing to the main frame.
21. servers according to claim 17, it is characterised in that the judge module, are additionally operable to when in the service When receiving request addition bag on the port of device, the address of the main frame of carrying in bag is added to judge the main frame according to the request Whether the distributed virtual switch is had been added to, response bag is sent if it is not, then triggering the sending module and executing to the main frame.
22. servers according to claim 18, it is characterised in that the judge module, are additionally operable to when in the service When receiving request addition bag on the port of device, the address of the main frame of carrying in bag is added to judge the main frame according to the request Whether the distributed virtual switch is had been added to, response bag is sent if it is not, then triggering the sending module and executing to the main frame.
23. servers according to claim 19, it is characterised in that the judge module, are additionally operable to when in the service When receiving request addition bag on the port of device, the address of the main frame of carrying in bag is added to judge the main frame according to the request Whether the distributed virtual switch is had been added to, response bag is sent if it is not, then triggering the sending module and executing to the main frame.
24. a kind of main frames, it is characterised in that include:
Sending module, for when main frame is connected on the port of server, sending request to the server and adding bag, described Request adds the address for including the main frame, is provided with the distributed virtual switch in the server;
Receiver module, for receiving the response bag of the server feedback, the response bag includes that the distributed virtual is exchanged The address of machine, the response bag are received after the request adds bag by the server and are sent to the main frame;
The sending module, is additionally operable to send to add to the server wrap, and the addition includes the Physical Network of the main frame The port of card address, MTU MTU of the main frame and the virtual switch being arranged in the main frame;
The receiver module, is additionally operable to the bag that is successfully joined for receiving the server feedback, and the bag that is successfully joined is used for representing The main frame has been successfully joined in the distributed virtual switch, described is successfully joined bag by the server according to setting Put the main frame is sent to after the port of the virtual switch in the main frame generates mapped port.
25. main frames according to claim 24, it is characterised in that the main frame also includes:Judge module, wherein,
The judge module, for judging to add whether service opens automatically, if so, then triggers the sending module and executes to institute State server and send request addition bag.
26. main frames according to claim 24 or 25, it is characterised in that the sending module, specifically for periodic Request is sent to the server and adds bag, till the main frame receives the response bag of the server feedback.
27. main frames according to claim 24 or 25, it is characterised in that the sending module, specifically for by broadcast Or the mode of multicast sends request to the server and adds bag.
28. main frames according to claim 26, it is characterised in that the sending module, specifically for by broadcast or The mode of multicast sends request to the server and adds bag.
29. a kind of management systems of the distributed virtual switch, it is characterised in that the system includes:As claim 15 to Server any one of 23 and the main frame as any one of claim 24 to 28, the server and the master Machine communicatively connects.
CN201310150066.4A 2013-04-26 2013-04-26 The management method of the distributed virtual switch and relevant apparatus and system Active CN103220235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310150066.4A CN103220235B (en) 2013-04-26 2013-04-26 The management method of the distributed virtual switch and relevant apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310150066.4A CN103220235B (en) 2013-04-26 2013-04-26 The management method of the distributed virtual switch and relevant apparatus and system

Publications (2)

Publication Number Publication Date
CN103220235A CN103220235A (en) 2013-07-24
CN103220235B true CN103220235B (en) 2017-03-15

Family

ID=48817713

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310150066.4A Active CN103220235B (en) 2013-04-26 2013-04-26 The management method of the distributed virtual switch and relevant apparatus and system

Country Status (1)

Country Link
CN (1) CN103220235B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104734877B (en) * 2013-12-24 2018-12-14 杭州华为数字技术有限公司 A kind of method, apparatus and system obtaining configuration server information
CN106789168B (en) * 2016-11-28 2020-03-20 华为技术有限公司 Deployment method of data center server management network and rack top type switch
CN106790411B (en) * 2016-11-30 2019-10-25 武汉噢易云计算股份有限公司 The non-polymeric port cascade system and method for virtual switch and physical switches

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101378341A (en) * 2007-08-31 2009-03-04 海尔集团公司 Protocol converter and household network system
CN102055667A (en) * 2009-11-04 2011-05-11 丛林网络公司 Methods and apparatus for configuring a virtual network switch
CN102067533A (en) * 2009-05-15 2011-05-18 思科技术公司 Port grouping for association with virtual interfaces
CN102316124A (en) * 2011-10-28 2012-01-11 杭州华三通信技术有限公司 Registration method and equipment for terminal equipment
CN102549983A (en) * 2009-02-23 2012-07-04 思科技术公司 Distributed data center access switch
CN102884761A (en) * 2010-04-27 2013-01-16 思科技术公司 Virtual switching overlay for cloud computing
CN102970204A (en) * 2012-10-24 2013-03-13 曙光信息产业(北京)有限公司 Distributed switch system based on xen virtualization platform and achieving method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101378341A (en) * 2007-08-31 2009-03-04 海尔集团公司 Protocol converter and household network system
CN102549983A (en) * 2009-02-23 2012-07-04 思科技术公司 Distributed data center access switch
CN102067533A (en) * 2009-05-15 2011-05-18 思科技术公司 Port grouping for association with virtual interfaces
CN102055667A (en) * 2009-11-04 2011-05-11 丛林网络公司 Methods and apparatus for configuring a virtual network switch
CN102884761A (en) * 2010-04-27 2013-01-16 思科技术公司 Virtual switching overlay for cloud computing
CN102316124A (en) * 2011-10-28 2012-01-11 杭州华三通信技术有限公司 Registration method and equipment for terminal equipment
CN102970204A (en) * 2012-10-24 2013-03-13 曙光信息产业(北京)有限公司 Distributed switch system based on xen virtualization platform and achieving method thereof

Also Published As

Publication number Publication date
CN103220235A (en) 2013-07-24

Similar Documents

Publication Publication Date Title
JP6474926B1 (en) Field device management method and apparatus based on cloud server
US20180210752A1 (en) Accelerator virtualization method and apparatus, and centralized resource manager
WO2017162089A1 (en) Service configuration method and device for network service
Bhatia et al. A framework for generating realistic traffic for Distributed Denial-of-Service attacks and Flash Events
CN102298536B (en) Remote control method, device and system
CN111625496B (en) Deployment method, device and equipment of distributed file system in virtual machine environment
KR102155262B1 (en) Elastic honeynet system and method for managing the same
Basta et al. Towards a dynamic SDN virtualization layer: Control path migration protocol
CN110351271A (en) Network-combination yarn experimental system building method, system, device and storage medium
JP2015231138A (en) Cyber attack practice system, practice environment providing method, and, practice environment providing program
CN109617816A (en) A kind of transmission method and device of data message
CN103220235B (en) The management method of the distributed virtual switch and relevant apparatus and system
US20210312472A1 (en) Method and system for prediction of smart contract violation using dynamic state space creation
CN108536484A (en) Parameter amending method, device, terminal device and storage medium
Schoonover et al. Galaxy: a network emulation framework for cybersecurity
JP7056740B2 (en) Blockchain system, blockchain management device, network control device, method and program
CN114500351A (en) Network performance test method, device, equipment and storage medium
CN103634290B (en) Network (WSN) emulation system
CN105763661B (en) A kind of acquisition methods and communication equipment of network protocol IP address
CN110493210A (en) A kind of configurable network security experimental system based on SDN
CN109818772A (en) A kind of network performance support method and device
Autefage et al. NEmu: A distributed testbed for the virtualization of dynamic, fixed and mobile networks
Matos et al. Distributed Applications and Interoperable Systems
JP2012080378A (en) Protocol test device, protocol test method, and protocol test program
Autefage et al. Virtualization toolset for emulating mobile devices and networks

Legal Events

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