CN103338117B - The management method of a kind of virtual switch, equipment and system - Google Patents

The management method of a kind of virtual switch, equipment and system Download PDF

Info

Publication number
CN103338117B
CN103338117B CN201310209652.1A CN201310209652A CN103338117B CN 103338117 B CN103338117 B CN 103338117B CN 201310209652 A CN201310209652 A CN 201310209652A CN 103338117 B CN103338117 B CN 103338117B
Authority
CN
China
Prior art keywords
virtual switch
root
interface
service server
switch
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.)
Expired - Fee Related
Application number
CN201310209652.1A
Other languages
Chinese (zh)
Other versions
CN103338117A (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 CN201310209652.1A priority Critical patent/CN103338117B/en
Publication of CN103338117A publication Critical patent/CN103338117A/en
Application granted granted Critical
Publication of CN103338117B publication Critical patent/CN103338117B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses the management method of a kind of virtual switch, including: management center server receives the first identity configuration information of the Root virtual switch that the first virtual switch disposed on the service server that service server sends comprises and the second identity configuration information of the interface of the first virtual switch;Management center server is according to the first identity configuration information configuration the 2nd Root virtual switch, and the interface according to the second identity configuration information configuration the 2nd Root virtual switch;Management center server sets up the first mapping relations between a Leaf virtual switch and the 2nd Root virtual switch that the first virtual switch comprises, and sets up the second mapping relations between the interface and the interface of a Leaf virtual switch of the 2nd Root virtual switch.The embodiment of the invention also discloses relevant system and equipment.The embodiment of the present invention can improve the efficiency of management virtual switch.

Description

The management method of a kind of virtual switch, equipment and system
Technical field
The present invention relates to the communications field, particularly relate to the management method of a kind of virtual switch, equipment and system.
Background technology
Along with appearance and the development of virtual technology, an equipment can exist multiple virtual machine, and this equipment In can there is virtual switch, the virtual machine in this equipment can be connected to this virtual switch by network interface card On, and when this virtual switch is connected with physical network, between these virtual machines, can be carried out communication.As When really this physical network is connected to external network, these virtual machines just can enter with the physical equipment of external network Row communication.In actual applications, a cluster exists hundreds of thousands of equipment, and each equipment is deposited One or more virtual switch, the most how these virtual switches of high-efficiency management become one great Problem.
Solve the problems referred to above the most by the following method:
Equipment creates virtual criterion switch (Virtual Standard Switch, VSS), this virtual mark Between quasi-switch virtual machine in individual equipment, and the virtual machine correspondence with foreign country for this equipment. When this equipment needs to add cluster or administrative center, administrative center's equipment creates and covers the said equipment The virtual distributed switch (Virtual Distributed Switch, VDS) of virtual machine, and set above-mentioned Standby one proxy switch of middle generation (Proxy Switch), this Proxy Switch is used for performing data exchange, So user just can pass through administrative center equipment control VDS, and the operation of management VDS can transmit Proxy Switch, this Proxy Switch perform corresponding operation.And there is VSS in the said equipment, when user need right When it is managed, need by administrative center's equipment Telnet to the said equipment, just can be to VSS It is managed, i.e. performs local operation.
In technique scheme, owing to there is VSS and VDS, and both virtual switches can be supported to hold Row different operating, such user needs to judge that the operation that user currently wishes to carry out is corresponding to be before operation Which virtual switch, and the operation that currently wishes to carry out as user corresponding for VSS, user also needs to By the equipment at this VSS place of administrative center's equipment Telnet, so can be with this VSS of operation management.From And can show that the efficiency of existing management virtual switch is the lowest.
Summary of the invention
Embodiments provide the management method of a kind of virtual switch, equipment and system, can improve The efficiency of management virtual switch.
First aspect, the management method of a kind of virtual switch that the embodiment of the present invention provides, virtual switch Comprising root (Root) virtual switch and leaf (Leaf) virtual switch, described method includes:
It is virtual that management center server receives first disposed on the described service server that service server sends First identity configuration information of the Root virtual switch that switch comprises and described first virtual switch The second identity configuration information of interface, the pattern of described first virtual switch is follower mode, described The state of one Root virtual switch is non-enabled state;Wherein, described follower mode is used for forbidding receiving using The operation that family inputs on described service server;
Described management center server is according to described first identity configuration information configuration the 2nd Root virtual switch Machine, and the interface of described 2nd Root virtual switch is configured according to described second identity configuration information, its Described in the 2nd Root virtual switch be the mirror image of a described Root virtual switch;
The Leaf virtual switch that described management center server comprises at described first virtual switch with The first mapping relations are set up between described 2nd Root virtual switch, and in described 2nd Root virtual switch The second mapping relations are set up between interface and the interface of a described Leaf virtual switch of machine, so that institute State the 2nd Root that a Leaf virtual switch function response user configures on described management center server The operation of input on virtual switch, wherein, the interface of described first virtual switch includes that a Leaf is empty Intend interface and the interface of a Root virtual switch of switch.
In the first possible implementation of first aspect, described first identity configuration information comprises described The identification information of the oneth Root virtual switch and configuration information, described second identity configuration information includes described The identification information of the interface of the first virtual switch and configuration information;
Described management center server is according to described first identity configuration information configuration the 2nd Root virtual switch Machine, and the step of the interface of described 2nd Root virtual switch is configured according to described second identity configuration information Suddenly, including:
Described management center server is believed according to identification information and the configuration of a described Root virtual switch Breath, configuration identifier is identical with the mark of a described Root virtual switch, and configuration parameter and described first The 2nd Root virtual switch that the configuration parameter of Root virtual switch is identical;
Described management center server is believed according to identification information and the configuration of the interface of described first virtual switch Breath, configuration identifier is identical with the mark of the interface of described first virtual switch, and configuration parameter and described the The interface of the 2nd Root virtual switch that the configuration parameter of the interface of one virtual switch is identical.
In conjunction with any of the above-described implementation of first aspect, the implementation that the second in first aspect is possible In, it is virtual that management center server receives first disposed on the described service server that service server sends First identity configuration information of the Root virtual switch that switch comprises and described first virtual switch Interface the second identity configuration information step before, described method also includes:
Described management center server receives the request that is used for of user's input and is added by described service server described Management center server carries out the request message of centre management, and described request message comprises described service server Identification information;
Described management center server is sent out to described service server according to the identification information of described service server Send the order that for request, the described service server described management center server of addition is carried out centre management, So that described service server returns described first identity configuration information and described to described management center server Second identity configuration information.
In conjunction with the first possible implementation of first aspect or first aspect, in the 3rd of first aspect In kind possible implementation, described management center server comprise at described first virtual switch first The first mapping relations are set up between Leaf virtual switch and described 2nd Root virtual switch, and described Set up second between interface and the interface of a described Leaf virtual switch of the 2nd Root virtual switch to reflect After penetrating the step of relation, described method also includes:
Delete described first mapping relations and described second mapping relations, and send use to described service server In described service server is removed management center server centre management remove order, so that described industry The state of a described Root virtual switch is switched to enabled state, described first virtual friendship by business server The pattern changed planes switches to aggressive mode;Described aggressive mode is used for allowing to receive user in described business service The operation of input on device.
Second aspect, the embodiment of the present invention provides the management method of a kind of virtual switch, virtual switch bag Containing Root virtual switch and Leaf virtual switch, described method includes:
The Root that the first virtual switch disposed on described service server is comprised by service server is empty The state intending switch switches to non-enabled state, and the pattern of described first virtual switch is switched to from Dynamic model formula;Wherein, described follower mode is for forbidding the behaviour that reception user inputs on described service server Make;
Described service server sends the first body of a described Root virtual switch to management center server Second identity configuration information of the interface of part configuration information and described first virtual switch, so that described management Central server configures the 2nd Root virtual switch according to described first identity configuration information, and according to institute State the second identity configuration information and configure the interface of described 2nd Root virtual switch, wherein said 2nd Root Virtual switch is the mirror image of a described Root virtual switch;And comprise at described first virtual switch A Leaf virtual switch and described 2nd Root virtual switch between set up the first mapping relations, and Set up between the interface and the interface of a described Leaf virtual switch of described 2nd Root virtual switch Second mapping relations, so that a described Leaf virtual switch function response user takes in described administrative center The operation of input on 2nd Root virtual switch of configuration on business device, wherein, described first virtual switch Interface include interface and the interface of a Root virtual switch of a Leaf virtual switch.
In the first possible implementation of second aspect, described first identity configuration information comprises described The identification information of the Root virtual switch that the first virtual switch comprises and configuration information, described second Identity configuration information includes identification information and the configuration information of the interface of described first virtual switch;Described The mark of two Root virtual switches is identical with the mark of a described Root virtual switch, and described second The configuration parameter of Root virtual switch is identical with the configuration parameter of a described Root virtual switch;Described The mark of the interface of the 2nd Root virtual switch is identical with the mark of the interface of described first virtual switch, And the interface of the configuration parameter of the interface of described 2nd Root virtual switch and described first virtual switch Configuration parameter is identical.
In conjunction with any of the above-described implementation of second aspect, the implementation that the second in second aspect is possible In, described service server sends the first body of a described Root virtual switch to management center server Before the step of the second identity configuration information of the interface of part configuration information and described first virtual switch, institute Method of stating also includes:
What the described service server described management center server of reception sent is used for request by described business service Device adds described management center server and carries out the order of centre management;Or
Described service server receives the request that is used for of user's input and described service server is added described management Central server carries out the request message of centre management.
In conjunction with the first possible implementation of second aspect, in the third possible realization of second aspect In mode, described order also comprises the authentication information for described service server certification, or request message Also comprise the authentication information for described service server certification;
Described service server sends the first body of a described Root virtual switch to management center server Second identity configuration information of the interface of part configuration information and described first virtual switch, including:
Described service server uses described authentication information to be authenticated;
When described service server certification is passed through, described service server sends institute to management center server State the of the first identity configuration information of a Root virtual switch and the interface of described first virtual switch Two identity configuration informations.
In conjunction with the first possible implementation of second aspect or second aspect, in the 4th of second aspect Planting in possible implementation, it is empty that described service server sends a described Root to management center server Intend the second identity configuration letter of the first identity configuration information of switch and the interface of described first virtual switch After the step of breath, described method also includes:
What the described service server described management center server of reception sent is used for moving described service server Except management center server centre management remove order;Described service server is by empty for a described Root The state intending switch switches to enabled state, and the pattern of described first virtual switch is switched to actively Pattern;Or,
What described service server reception user inputted is used for described service server removes administrative center's service The centre management of device remove order;Described service server is by the state of a described Root virtual switch Switch to enabled state, and the pattern of described first virtual switch is switched to aggressive mode;
Wherein, the operation that described aggressive mode inputs on described service server for allowing reception user.
The third aspect, the embodiment of the present invention provides a kind of management center server, is used for managing virtual switch, Described virtual switch comprises Root virtual switch and Leaf virtual switch, described management center server Including: first receives unit, dispensing unit and sets up unit, wherein:
Described first receives unit, for receiving deployment on the described service server that service server sends First identity configuration information of the Root virtual switch that the first virtual switch comprises and described first void Intending the second identity configuration information of the interface of switch, the pattern of described first virtual switch is follower mode, The state of a described Root virtual switch is non-enabled state;Wherein, described follower mode is used for forbidding Receive the operation that user inputs on described service server;
Described dispensing unit, for configuring the 2nd Root virtual switch according to described first identity configuration information, And the interface according to the described second identity configuration information described 2nd Root virtual switch of configuration, Qi Zhongsuo State the mirror image that the 2nd Root virtual switch is a described Root virtual switch;
Described set up unit, for the Leaf virtual switch that comprises at described first virtual switch with The first mapping relations are set up between described 2nd Root virtual switch, and in described 2nd Root virtual switch The second mapping relations are set up between interface and the interface of a described Leaf virtual switch of machine, so that institute State the 2nd Root that a Leaf virtual switch function response user configures on described management center server The operation of input on virtual switch, wherein, the interface of described first virtual switch includes that a Leaf is empty Intend interface and the interface of a Root virtual switch of switch.
In the first possible implementation of the third aspect, described first identity configuration information comprises described The identification information of the oneth Root virtual switch and configuration information, described second identity configuration information includes described The identification information of the interface of the first virtual switch and configuration information;
Described dispensing unit is specifically for the identification information according to a described Root virtual switch and configuration letter Breath, configuration identifier is identical with the mark of a described Root virtual switch, and configuration parameter and described first The 2nd Root virtual switch that the configuration parameter of Root virtual switch is identical;And it is empty according to described first Intending identification information and the configuration information of the interface of switch, configuration identifier connects with described first virtual switch Mouthful mark identical, and configuration parameter identical with the configuration parameter of the interface of described first virtual switch the The interface of two Root virtual switches.
In conjunction with any of the above-described implementation of the third aspect, the implementation that the second in the third aspect is possible In, described management center server also includes:
Second receives unit, adds described for request by described service server for receive user's input Management center server carries out the request message of centre management, and described request message comprises described service server Identification information;
Transmitting element, sends use for the identification information according to described service server to described service server In request, the described service server described management center server of addition is carried out the order of centre management, so that Described service server returns described first identity configuration information and described second to described management center server Identity configuration information.
In conjunction with the implementation that the second of the third aspect is possible, in the third possible realization of the third aspect In mode, described second receives unit is used for request by described business service specifically for what reception user inputted Device adds described management center server and carries out the request message of centre management, and described request message comprises described The identification information of service server and the authentication information for described service server certification;
Described transmitting element specifically for the identification information according to described service server to described service server Send the life that for request, the described service server described management center server of addition is carried out centre management Order, described order also comprises described authentication information, so that described service server uses described authentication information to enter Row certification, when described service server certification is passed through, is taken to described administrative center by described service server Business device returns described first identity configuration information and described second identity configuration information.
In conjunction with the first possible implementation of the third aspect or the third aspect, in the second of fourth aspect Planting in possible implementation, described management center server also includes:
Delete unit, be used for deleting described first mapping relations and described second mapping relations, and described first The state of Root virtual switch is enabled state, described first virtual switch for aggressive mode;Described The operation that aggressive mode inputs on described service server for allowing reception user.
Fourth aspect, the embodiment of the present invention provides a kind of service server, described service server is deployed with First virtual switch, described first virtual switch comprises a Root virtual switch and a Leaf Virtual switch, described service server includes: switch unit and transmitting element, wherein:
Described switch unit, for setting the first virtual switch of upper deployment by the management of described virtual switch The state of the Root virtual switch comprised switches to non-enabled state, and by described first virtual switch The pattern of machine switches to follower mode;Wherein, described follower mode is used for forbidding receiving user in described business The operation of input on server;
Described transmitting element, for sending the of a described Root virtual switch to management center server Second identity configuration information of the interface of one identity configuration information and described first virtual switch, so that described Management center server is according to described first identity configuration information configuration the 2nd Root virtual switch, Yi Jigen According to described second identity configuration information configure described 2nd Root virtual switch interface, wherein said second Root virtual switch is the mirror image of a described Root virtual switch;And at described first virtual switch Set up the first mapping between the Leaf virtual switch and the described 2nd Root virtual switch that comprise to close System, and described 2nd Root virtual switch interface and a described Leaf virtual switch interface it Between set up the second mapping relations so that described oneth Leaf virtual switch function response user in described management The operation of input on 2nd Root virtual switch of configuration on central server, wherein, described first virtual The interface of switch includes interface and the interface of a Root virtual switch of a Leaf virtual switch.
In the first possible implementation of fourth aspect, described transmitting element is specifically in management Central server sends the first identity configuration information of a described Root virtual switch and described first virtual friendship Second identity configuration information of the interface changed planes, it is empty that wherein said first identity configuration information comprises described first Intending identification information and the configuration information of the Root virtual switch that switch comprises, described second identity is joined Confidence breath includes identification information and the configuration information of the interface of described first virtual switch;So that described management Central server according to the identification information of a described Root virtual switch and configuration information, configuration identifier with The mark of a described Root virtual switch is identical, and configuration parameter and a described Root virtual switch Identical the 2nd Root virtual switch of configuration parameter;And the interface according to described first virtual switch Identification information and the identification information of configuration information and configuration information, configuration identifier and described first virtual switch The identification information of the interface of machine is identical with the mark of configuration information, and configuration parameter and described first virtual switch Connecing of the 2nd Root virtual switch that the identification information of the interface of machine is identical with the configuration parameter of configuration information Mouthful;And the Leaf virtual switch that comprises at described first virtual switch is virtual with described 2nd Root The first mapping relations are set up between switch, and at the interface and described the of described 2nd Root virtual switch The second mapping relations are set up between the interface of one Leaf virtual switch, so that a described virtual friendship of Leaf Change planes and can respond input on the 2nd Root virtual switch that user configures on described management center server Operation.
In conjunction with any of the above-described implementation of fourth aspect, the implementation that the second in fourth aspect is possible In, described service server also includes:
Receive unit, for receive described management center server send for request by described business service Device adds described management center server and carries out the order of centre management;Or, for receiving user's input For request, the request that the described service server described management center server of addition carries out centre management is disappeared Breath.
In conjunction with the implementation that the second of fourth aspect is possible, in the third possible realization of fourth aspect In mode, described order also comprises the authentication information for described service server certification, or request message Also comprise the authentication information for described service server certification;
Described transmitting element is specifically for using described authentication information to be authenticated, when described certification is passed through, The first identity configuration information and described the of a described Root virtual switch is sent to management center server Second identity configuration information of the interface of one virtual switch, so that described management center server is according to described First identity configuration information configuration the 2nd Root virtual switch, and according to described second identity configuration information Configuring the interface of described 2nd Root virtual switch, wherein said 2nd Root virtual switch is described The mirror image of one Root virtual switch;And the Leaf virtual switch comprised at described first virtual switch The first mapping relations are set up between machine and described 2nd Root virtual switch, and virtual at described 2nd Root The second mapping relations are set up between interface and the interface of a described Leaf virtual switch of switch, so that Described oneth Leaf virtual switch function response user configure on described management center server second The operation of input on Root virtual switch.
In conjunction with the first possible implementation of fourth aspect or fourth aspect, in the 4th of fourth aspect Planting in possible implementation, described service server also includes:
Remove unit, for receiving the central canal for described service server being removed management center server That manages removes order;The state of a described Root virtual switch is switched to enabled state, and by described The pattern of the first virtual switch switches to aggressive mode;Or, for receive user input for by institute State service server remove management center server centre management remove order;By empty for a described Root The state intending switch switches to enabled state, and the pattern of described first virtual switch is switched to actively Pattern;
Wherein, the operation that described aggressive mode inputs on described service server for allowing reception user.
Switch unit is additionally operable to switch to the state of a described Root virtual switch enabled state, and will The pattern of described first virtual switch switches to aggressive mode;
Wherein, the operation that described aggressive mode inputs on described service server for allowing reception user.
5th aspect, the embodiment of the present invention provides the management system of a kind of virtual switch, and described system includes: Service server and management center server, described service server is deployed with the first virtual switch, institute State the first virtual switch and include a Leaf virtual switch and a Root virtual switch, described management Central server is deployed with the second virtual switch, wherein:
Described service server, for switching to non-enable shape by the state of a described Root virtual switch State, and the pattern of described first virtual switch is switched to follower mode;And in described management Central server sends the first identity configuration information of a described Root virtual switch and described first virtual friendship Second identity configuration information of the interface changed planes;Wherein, described follower mode is used for forbidding receiving user in institute Stating the operation of input on service server, the interface of described first virtual switch includes a virtual friendship of Leaf The interface changed planes and the interface of a Root virtual switch;
Described management center server, for virtual according to described first identity configuration information configuration the 2nd Root Switch, and the interface of described 2nd Root virtual switch is configured according to described second identity configuration information, Wherein said 2nd Root virtual switch is the mirror image of a described Root virtual switch;And be used for The first mapping relations are set up between a described Leaf virtual switch and described 2nd Root virtual switch, And build between the interface and the interface of a described Leaf virtual switch of described 2nd Root virtual switch Vertical second mapping relations, so that a described Leaf virtual switch function response user is in described administrative center The operation of input on the described 2nd Root virtual switch of configuration on server, wherein, described second virtual Switch includes described 2nd Root virtual switch.
In the first possible implementation of the 5th aspect, described management center server is additionally operable to delete Described first mapping relations and described second mapping relations;
Described service server is additionally operable to the state of a described Root virtual switch is switched to enable shape State, and the pattern of described first virtual switch is switched to aggressive mode;
Wherein, the operation that described aggressive mode inputs on described service server for allowing reception user.
In technique scheme, management center server receives the described service server that service server sends First identity configuration information of the Root virtual switch that the first virtual switch of upper deployment comprises and institute Stating the second identity configuration information of the interface of the first virtual switch, the pattern of described first virtual switch is Follower mode, the state of a described Root virtual switch is non-enabled state;Wherein, described from dynamic model Formula is for forbidding the operation that reception user inputs on described service server;Described management center server root According to described first identity configuration information configuration the 2nd Root virtual switch, and join according to described second identity Putting the interface of the 2nd Root virtual switch described in information configuration, wherein said 2nd Root virtual switch is The mirror image of a described Root virtual switch;Described management center server is at described first virtual switch Set up the first mapping between the Leaf virtual switch and the described 2nd Root virtual switch that comprise to close System, and described 2nd Root virtual switch interface and a described Leaf virtual switch interface it Between set up the second mapping relations so that described oneth Leaf virtual switch function response user in described management The operation of input on 2nd Root virtual switch of configuration on central server, wherein, described first virtual The interface of switch includes interface and the interface of a Root virtual switch of a Leaf virtual switch. Need to distinguish VSS and VDS in compared to existing technology, and VSS and VDS carried out the management of different modes, Embodiment of the present invention user has only to manage the 2nd Root virtual switch on management center server, so that it may To realize the management to the virtual switch on service server, such as: the operation of user can be by second Root virtual switch is transferred on service server the Leaf virtual switch disposed, by a Leaf Virtual switch performs this operation.Thus the embodiment of the present invention can improve the efficiency of management virtual switch.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to enforcement In example or description of the prior art, the required accompanying drawing used is briefly described, it should be apparent that, describe below In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying On the premise of going out creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of the management method of a kind of virtual switch that the embodiment of the present invention provides
Fig. 2 is the schematic flow sheet of the management method of the another kind of virtual switch that the embodiment of the present invention provides;
Fig. 3 is the optional mapping relations schematic diagram that the embodiment of the present invention provides;
Fig. 4 is the schematic flow sheet of the management method of the another kind of virtual switch that the embodiment of the present invention provides;
Fig. 5 is the schematic flow sheet of the management method of the another kind of virtual switch that the embodiment of the present invention provides;
Fig. 6 is the schematic flow sheet of the management method of the another kind of virtual switch that the embodiment of the present invention provides;
Fig. 7 is the schematic diagram of the management method of the another kind of virtual switch that the embodiment of the present invention provides;
Fig. 8 is the schematic diagram of the management method of the another kind of virtual switch that the embodiment of the present invention provides;
Fig. 9 is the schematic diagram of the management method of the another kind of virtual switch that the embodiment of the present invention provides;
Figure 10 is the structural representation of a kind of management center server that the embodiment of the present invention provides;
Figure 11 is the structural representation of the another kind of management center server that the embodiment of the present invention provides;
Figure 12 is the structural representation of the another kind of service server that the embodiment of the present invention provides;
Figure 13 is the structural representation of the another kind of service server that the embodiment of the present invention provides;
Figure 14 is the structural representation of the management system of a kind of virtual switch that the embodiment of the present invention provides;
Figure 15 is the structural representation of the another kind of management center server that the embodiment of the present invention provides;
Figure 16 is the structural representation of the another kind of service server that the embodiment of the present invention provides;
Figure 17 is the structural representation of the management system of a kind of virtual switch that the embodiment of the present invention provides.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu, be fully described by, it is clear that described embodiment be only a part of embodiment of the present invention rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation The every other embodiment obtained under property work premise, broadly falls into the scope of protection of the invention.
In embodiments of the present invention, virtual switch can be any type of virtual switch in communication system, And virtual switch can include Root virtual switch and Leaf virtual switch, wherein, Root is virtual Switch can respond the operation that user directly inputs, and such as, Root virtual switch is arranged on administrative center On server, i.e. management center server is configured with Root virtual switch, and this Root virtual switch just may be used The operation for operating this Root virtual switch inputted at management center server with response user.Wherein, Leaf virtual switch can forbid responding the operation that user directly inputs, and such as, Leaf virtual switch is pacified Be contained on service server, i.e. service server is configured with Leaf virtual switch, this Leaf virtual switch Cannot respond to the operation for operating this Leaf virtual switch that user inputs at service server, or should Leaf virtual switch is invisible to user, i.e. Leaf virtual switch cannot be operated by user.Or The operation that Root virtual switch is only transmitted by Leaf virtual switch responds.It addition, virtual switch Pattern can be follower mode (such as: Slave pattern), specifically can be permissible with the pattern of virtual switch For follower mode, follower mode is forbidden receiving the operation that user directly inputs, the virtual friendship on service server When the pattern changed planes is follower mode, virtual switch is forbidden receiving the behaviour that user inputs on service server Make;The pattern of virtual switch can be aggressive mode (such as: Master pattern), can be specifically virtual The pattern of the finger daemon of switch can be aggressive mode, and aggressive mode receives the operation that user directly inputs, When the pattern of the virtual switch on service server is follower mode, virtual switch can receive user and exist The operation of input on service server.
In embodiments of the present invention, service server can be any type of communication equipment in communication system, Such as: personal computer (Personal Computer, PC), high-performance computer, mainframe computer, The communication equipments such as server (such as: X86 server).Management center server can be in communication system Any type of communication equipment in addition to above-mentioned service server, such as: personal computer (Personal Computer, PC), high-performance computer, mainframe computer, server (such as: X86 server) etc. Deng communication equipment.
In embodiments of the present invention, the state of Root virtual switch be non-enabled state can be that Root is virtual Switch is isolated or hides, i.e. Root virtual switch forbids receiving any instruction or Root is virtual Switch cannot receive any instruction, or Root virtual switch cannot respond to any instruction, and Root is virtual The state of switch is that non-enabled state can also is that Root virtual switch is removed.Root virtual switch State be enabled state can be that Root virtual switch state switches to normal condition or master control (Master) state, such as, recovers from the state being isolated or hide, or newly created Root is empty Intend switch, i.e. Root virtual switch can receive any instruction for operating Root virtual switch, And it is responded, i.e. user can operate on service server, manage this Root virtual switch.
Fig. 1 is the schematic flow sheet of the management method of a kind of virtual switch that the embodiment of the present invention provides, as Shown in Fig. 1, including:
101, management center server receives first disposed on the described service server that service server sends First identity configuration information of the Root virtual switch that virtual switch comprises and described first virtual friendship Second identity configuration information of the interface changed planes, the pattern of described first virtual switch is follower mode, institute The state stating a Root virtual switch is non-enabled state;Wherein, described follower mode is used for forbidding connecing Receive the operation that user inputs on described service server.
It should be appreciated that the first virtual switch here is to refer to the virtual friendship disposed on service server Change planes;Comparatively speaking, the second virtual switch is to refer to the virtual switch disposed on management center server. It should be noted that the embodiment of the present invention describe employed in first, second saying, do not limit suitable The meaning of sequence, only for convenience of distinguishing.
Wherein, above-mentioned first identity configuration information specifically could be for configuration and described first virtual switch The information of a mark Root virtual switch identical with configuration parameter, the first identity configuration information also may be used Being for configuring first virtual switch identical with configuration parameter with the mark of described first virtual switch Information, i.e. this information includes for configuration and the mark of described first virtual switch and configuration parameter phase The information of a same Root virtual switch, such as: the mark of described first virtual switch can be comprised Information and configuration information, or comprise identification information and the configuration information of a described Root virtual switch; Above-mentioned second identity configuration information could be for the mark of configuration and the interface of described first virtual switch with The information of the interface that configuration parameter is identical, such as: the identification information of the interface of described first virtual switch and Configuration information.The interface of described first virtual switch and the Leaf virtual switch of described first virtual switch The interface of machine is same interface, and the interface of the most described first virtual switch can be understood as described first virtual The interface of the Leaf virtual switch of switch.
102, management center server is according to described first identity configuration information configuration the 2nd Root virtual switch Machine, and the interface of described 2nd Root virtual switch is configured according to described second identity configuration information, its Described in the 2nd Root virtual switch be the mirror image of a described Root virtual switch;
Owing to the 2nd Root virtual switch is according to described first identity configuration information configuration, this sample is sent out In bright embodiment, only present a virtual switch to user, so that user manages simpler.
103, the Leaf virtual switch that management center server comprises at described first virtual switch with The first mapping relations are set up between described 2nd Root virtual switch, and in described 2nd Root virtual switch The second mapping relations are set up between interface and the interface of a described Leaf virtual switch of machine, so that institute State the 2nd Root that a Leaf virtual switch function response user configures on described management center server The operation of input on virtual switch, wherein, the interface of described first virtual switch includes that a Leaf is empty Intend interface and the interface of a Root virtual switch of switch.
Wherein, the interface that the interface of described first virtual switch comprises a Leaf virtual switch can be The interface of the first virtual switch is it can be understood that be the interface of a Leaf virtual switch.
Optionally, step 103 is set up mapping relations and can be stored in management center server, when user needs When being managed above-mentioned first virtual switch, user can input on management center server and be used for Managing the administration order of above-mentioned first virtual switch, this administration order is transmitted extremely by management center server again Above-mentioned 2nd Root virtual switch, the 2nd Root virtual switch is further according to above-mentioned first mapping relations and Two mapping relations, by this administration order by the interface transmission of the 2nd Root virtual switch to described first The interface of Leaf virtual switch, then transmitted to above-mentioned first by the interface of a described Leaf virtual switch Leaf virtual switch, is performed this administration order by an above-mentioned Leaf virtual switch, and an above-mentioned Leaf Virtual switch is a part for above-mentioned first virtual switch, and the most above-mentioned Leaf virtual switch connects Business be exactly above-mentioned first virtual switch connect business, the most above-mentioned oneth Leaf virtual switch perform should Operational order is equal to above-mentioned first virtual switch and performs this operational order, thus realizes user and have only to 2nd Root virtual switch is managed by management center server just can virtual with on finishing service server The management of switch.
Optionally, above-mentioned first virtual switch can be one or more virtual switch, when above-mentioned When one virtual switch is multiple virtual switch, in this enforcement, the 2nd Root virtual switch can be with multiple The Leaf virtual switch of virtual switch sets up the first mapping relations, meanwhile, the 2nd Root virtual switch Configure multiple interface, then the interface of the Leaf virtual switch these interfaces and multiple virtual switches comprised Set up mapping relations.
In technique scheme, management center server receives the described service server that service server sends First identity configuration information of the Root virtual switch that the first virtual switch of upper deployment comprises and institute Stating the second identity configuration information of the interface of the first virtual switch, the pattern of described first virtual switch is Follower mode, the state of a described Root virtual switch is non-enabled state;Wherein, described from dynamic model Formula is for forbidding the operation that reception user inputs on described service server;Described management center server root According to described first identity configuration information configuration the 2nd Root virtual switch, and join according to described second identity Putting the interface of the 2nd Root virtual switch described in information configuration, wherein said 2nd Root virtual switch is The mirror image of a described Root virtual switch;Described management center server is at described first virtual switch Set up the first mapping between the Leaf virtual switch and the described 2nd Root virtual switch that comprise to close System, and described 2nd Root virtual switch interface and a described Leaf virtual switch interface it Between set up the second mapping relations so that described oneth Leaf virtual switch function response user in described management The operation of input on 2nd Root virtual switch of configuration on central server, wherein, described first virtual The interface of switch includes interface and the interface of a Root virtual switch of a Leaf virtual switch. Need to distinguish VSS and VDS in compared to existing technology, and VSS and VDS carried out the management of different modes, The present embodiment user has only to manage the 2nd Root virtual switch on management center server, it is possible to real The now management to the first virtual switch disposed on service server, such as: the operation of user can be passed through 2nd Root virtual switch is transferred on service server the Leaf virtual switch disposed, by this One Leaf virtual switch performs this operation.Thus the present embodiment can improve the efficiency of management virtual switch.
Fig. 2 is the schematic flow sheet of the management method of the another kind of virtual switch that the embodiment of the present invention provides, As in figure 2 it is shown, include:
201, management center server receives first disposed on the described service server that service server sends First identity configuration information of the Root virtual switch that virtual switch comprises and described first virtual friendship Second identity configuration information of the interface changed planes, the pattern of described first virtual switch is follower mode, institute The state stating a Root virtual switch is non-enabled state;Wherein, described follower mode is used for forbidding connecing Receive the operation that user inputs on described service server.
Wherein, described first identity configuration information comprise a described Root virtual switch identification information and Configuration information, described second identity configuration information includes the identification information of the interface of described first virtual switch And configuration information.
Optionally, the identification information of an above-mentioned Root virtual switch can include following at least one:
Whole world unique identifier (Universally Unique Identifier, UUID), identity number (Identity, ID) and title, wherein, this identification information is for uniquely identifying virtual switch.
Optionally, the configuration information of an above-mentioned Root virtual switch may include that
MTU (Maximum Transmission Unit, MTU) information.This configuration information is used Second can be configured according to this configuration information in configuration the 2nd Root virtual switch, i.e. management center server Root virtual switch.
Optionally, the identification information of above-mentioned interface can include following at least one:
UUID, ID and title, wherein, this identification information is for uniquely identifying interface.
Optionally, the configuration information of above-mentioned interface can include following at least one:
VLAN (Virtual Local Area Network, VLAN) information, service quality (Quality Of Service, QoS) information and access control list (Access Control List, ACL) information, this is joined Confidence breath is used for configuring interface, i.e. management center server can configure interface according to this configuration information.
202, management center server is believed according to identification information and the configuration of a described Root virtual switch Breath, configuration identifier is identical with the mark of a described Root virtual switch, and configuration parameter and described first The 2nd Root virtual switch that the configuration parameter of Root virtual switch is identical.
Owing to the 2nd Root virtual switch is identical with the mark of a described Root virtual switch, and configuration Parameter is identical with the configuration parameter of a described Root virtual switch, in such embodiment of the present invention, and Xiang Yong Family only presents a virtual switch, so that user manages simpler.
Owing to this step is the identification information according to a described Root virtual switch and configuration information configuration 2nd Root virtual switch, thus can ensure that mark and a Root of the 2nd Root virtual switch The mark of virtual switch is identical, can also ensure the configuration parameter of the 2nd Root virtual switch simultaneously It is identical with the parameter of a Root virtual switch, i.e. can be understood as the first of virtual switch Root virtual switch copies to or moves in management center server.When above-mentioned first virtual switch During for multiple virtual switch, the 2nd Root virtual switch can possess the mark of multiple virtual switch.
203, management center server is believed according to identification information and the configuration of the interface of described first virtual switch Breath, configuration identifier is identical with the mark of the interface of described first virtual switch, and configuration parameter and described the The interface of the 2nd Root virtual switch that the configuration parameter of the interface of one virtual switch is identical.
Owing to this step is identification information and the configuration information configuration of the interface according to described first virtual switch The interface of the 2nd Root virtual switch, thus can ensure that the interface of the 2nd Root virtual switch Mark is identical with the mark of the interface of described first virtual switch, can also ensure the 2nd Root simultaneously The configuration parameter of the interface of virtual switch is identical with the parameter of the interface of described first virtual switch, It can be appreciated that interface is copied in management center server.
204, the Leaf virtual switch that management center server comprises at described first virtual switch with The first mapping relations are set up between described 2nd Root virtual switch, and in described 2nd Root virtual switch The second mapping relations are set up between interface and the interface of a described Leaf virtual switch of machine, so that institute State the 2nd Root that a Leaf virtual switch function response user configures on described management center server The operation of input on virtual switch, wherein, the interface of described first virtual switch includes that a Leaf is empty Intend interface and the interface of a Root virtual switch of switch.
At interface and the interface of described first virtual switch of described 2nd Root virtual switch in this step Between set up the second mapping relations it is to be understood that by the interface of described 2nd Root virtual switch with described The interface mappings of the oneth Leaf virtual switch becomes coupling right, when user needs to manage virtual switch, and pipe Described 2nd Root virtual switch just can be connect outgoing management order by reason central server, transmits to institute State the interface of a Leaf virtual switch, then transmitted to the by the interface of a described Leaf virtual switch One Leaf virtual switch.Or the interface of described 2nd Root virtual switch is connect by this step with described Mouth set up mapping relations it is also understood that into, by the interface and described first of described 2nd Root virtual switch The interface of Leaf virtual switch sets up communication connection, when user needs to manage the first virtual switch, and pipe Administration order just can be transmitted to institute by reason central server by the interface of described 2nd Root virtual switch State the interface of a Leaf virtual switch, then transmitted to the by the interface of a described Leaf virtual switch One Leaf virtual switch.
2nd Root virtual switch is set up to map with an above-mentioned Leaf virtual switch by this step and closes System, these mapping relations can be understood as the 2nd Root virtual switch and an above-mentioned Leaf virtual switch Being mapped as a coupling right, the 2nd Root virtual switch is further according to the 2nd Root virtual switch described above The management of the 2nd Root virtual switch is ordered by the mapping relations of the interface of interface and described first virtual switch Make through the interface of described 2nd Root virtual switch and the interface transmission of described first virtual switch supreme State a Leaf virtual switch.
In another embodiment, as it is shown on figure 3, Fig. 3-1 represents that service server request adds administrative center, But before service server adds administrative center, Fig. 3-2 represents that service server request adds administrative center After, wherein, the dotted line in Fig. 3-2 represent described 2nd Root virtual switch interface (i.e. in Fig. 3 with The Port that Root EVS connects) with the interface of a described Leaf virtual switch (i.e. with Leaf EVS in Fig. 3 The Port connected) mapping relations, the thick line in Fig. 3-2 represents the 2nd Root virtual switch and above-mentioned the The mapping relations of one Leaf virtual switch.Fig. 3-3 represents that the 2nd Root virtual switch (is i.e. managed in Fig. 3 The Root EVS at reason center) with the Leaf virtual switch of single service server (i.e. business service in Fig. 3 The Leaf EVS of device) mapping relations, and represent and comprise the 2nd Root virtual switch and multiple business The mapping relations of the Leaf virtual switch of server.I.e. can be by virtual for the 2nd Root in the embodiment of the present invention The mapping relations of the Leaf virtual switch of switch and multiple service servers are it is to be understood that the 2nd Root Virtual switch is distributed virtual switch, i.e. this distributed virtual switch can cover multiple business clothes Business device.Wherein, above-mentioned administrative center can be understood as above-mentioned management center server, i.e. administrative center's service Device manages the virtual switch on multiple service servers.
In another embodiment, after step 204, described method can also include:
Delete described first mapping relations and described second mapping relations, and send use to described service server In described service server is removed management center server centre management remove order, so that described industry The state of a described Root virtual switch is switched to enabled state, described first virtual friendship by business server The pattern changed planes switches to aggressive mode;Described aggressive mode is used for allowing to receive user in described business service The operation of input on device.
When user needs to manage described first virtual switch on service server, it is possible to perform this step Suddenly, wherein, this step specifically may include that
What management center server reception user inputted is used for described service server removes administrative center's service The request message of the centre management of device, request message comprises the identification information of service server;
Management center server deletes described first mapping relations and described second mapping relations, and takes to business What business device sent the centre management for described service server removes management center server removes order, So that the state of a described Root virtual switch is switched to enabled state by described service server, described The pattern of the first virtual switch switches to aggressive mode;Described aggressive mode is used for allowing to receive user in institute State the operation of input on service server.
This step specifically can also include:
What management center server reception service server sent is used for removing in management described service server The request message of the centre management of central server;
Management center server deletes described first mapping relations and described second mapping relations.
Wherein, at service server before or after management center server sends above-mentioned request message, The state of a described Root virtual switch can be switched to enabled state by service server, and described first The pattern of virtual switch switches to aggressive mode;Described aggressive mode is used for allowing to receive user in described industry The operation of input on business server.
Management center server can also remove above-mentioned 2nd Root virtual switch and deletion the 2nd Root is virtual The interface of switch.
So can realize from administrative center, remove management center server.
In technique scheme, management center server receives the described service server that service server sends First identity configuration information of the Root virtual switch that the first virtual switch of upper deployment comprises and institute Stating the second identity configuration information of the interface of the first virtual switch, the pattern of described first virtual switch is Follower mode, the state of a described Root virtual switch is non-enabled state;Management center server root According to identification information and the configuration information of a described Root virtual switch, configuration identifier and a described Root The mark of virtual switch is identical, and the configuration parameter phase of configuration parameter and a described Root virtual switch The 2nd same Root virtual switch;Described management center server connects according to described first virtual switch Mouthful identification information and the identification information of configuration information and configuration information, configuration identifier and described first virtual friendship The identification information of the interface changed planes is identical with the mark of configuration information, and configuration parameter and described first virtual friendship Connecing of the 2nd Root virtual switch that the identification information of the interface changed planes is identical with the configuration parameter of configuration information Mouthful;The Leaf virtual switch that management center server comprises at described first virtual switch is with described The first mapping relations are set up between 2nd Root virtual switch, and at described 2nd Root virtual switch The second mapping relations are set up between the interface of interface and a described Leaf virtual switch, so that described The 2nd virtual friendship of Root that one Leaf virtual switch function response user configures on described management center server Change planes the operation of upper input.Need in compared to existing technology to distinguish VSS and VDS, and to VSS and VDS Carrying out the management of different modes, the present embodiment is due to the 2nd Root virtual switch and the void on service business device The mark intending switch is identical, and the virtual switch only one of which i.e. presented to user, such user has only to Management center server manages the 2nd Root virtual switch, it is possible to realize service server top The management of the first virtual switch of administration, such as: the operation of user can pass through the 2nd Root virtual switch It is transferred on service server the Leaf virtual switch disposed, a Leaf virtual switch holds This operation of row.Thus the present embodiment can improve the efficiency of management virtual switch.
Fig. 4 is the schematic flow sheet of the management method of the another kind of virtual switch that the embodiment of the present invention provides, As shown in Figure 4, including:
What 301, management center server reception user inputted is used for request by described in the addition of described service server Management center server carries out the request message of centre management, and described request message comprises described service server Identification information.
The identification information of service server may include that
The information such as ID, UUID, title, this identification information is used for unique identification service server.
302, management center server is sent out to described service server according to the identification information of described service server Send the order that for request, the described service server described management center server of addition is carried out centre management, So that described service server returns described first identity configuration information and described to described management center server Second identity configuration information.
When service server receives mentioned order, service server just can be sent out to management center server Send the first identity configuration information and the interface of described first virtual switch of a described Root virtual switch The second identity configuration information.
Above-mentioned request message could be included for the authentication information of described service server certification;Described order Described authentication information can also be comprised, so that described service server uses described authentication information to be authenticated, When described service server certification is passed through, described service server return to described management center server Described first identity configuration information and described second identity configuration information.I.e. service server receives this order Time, it is possible to it is authenticated by this authentication information, such as: judge whether service server has been added to it Its administrative center, if so, authentification failure, if it is not, then certification is passed through;Or, it is judged that administrative center services Whether device has permission adds administrative center by service server, is if so, passed through by certification, if it is not, then certification Failure;Certainly can also judge whether service server has been added to administrative center, if otherwise judging in management Whether central server has permission adds administrative center by service server, when the two judges all to pass through, then Represent that certification is passed through.
303, management center server receives first disposed on the described service server that service server sends First identity configuration information of the Root virtual switch that virtual switch comprises and described first virtual friendship Second identity configuration information of the interface changed planes, the pattern of described first virtual switch is follower mode, institute The state stating a Root virtual switch is non-enabled state;Wherein, described follower mode is used for forbidding connecing Receive the operation that user inputs on described service server.
This step can also receive the authentication result that service server sends, when this authentication result is that certification is led to Out-of-date, step 303 receives the first identity configuration information of virtual switch that service server sends and described Second identity configuration information of the interface of the first virtual switch;When authentication result is that certification is obstructed out-of-date, step Rapid 303 receive only this authentication result, and do not receive above-mentioned configuration information.
304, management center server is according to described first identity configuration information configuration the 2nd Root virtual switch Machine, and the interface of described 2nd Root virtual switch is configured according to described second identity configuration information, its Described in the 2nd Root virtual switch be the mirror image of a described Root virtual switch.
305, the Leaf virtual switch that management center server comprises at described first virtual switch with The first mapping relations are set up between described 2nd Root virtual switch, and in described 2nd Root virtual switch The second mapping relations are set up between interface and the interface of a described Leaf virtual switch of machine, so that institute State the 2nd Root that a Leaf virtual switch function response user configures on described management center server The operation of input on virtual switch, wherein, the interface of described first virtual switch includes that a Leaf is empty Intend interface and the interface of a Root virtual switch of switch.
In another embodiment, after step 305, described method can also include:
Management center server deletes described first mapping relations and described second mapping relations, and to described industry What business server sent the centre management for described service server removes management center server removes life Order, so that the state of a described Root virtual switch is switched to enabled state by described service server, The pattern of described first virtual switch switches to aggressive mode;Described aggressive mode is used for allowing to receive user The operation of input on described service server.
When user needs to manage described virtual switch on service server, it is possible to perform this step, Wherein, this step specifically may include that
What management center server reception user inputted is used for described service server removes administrative center's service The request message of the centre management of device, request message comprises the identification information of service server;
Management center server deletes described first mapping relations and described second mapping relations, and takes to business What business device sent the centre management for described service server removes management center server removes order, So that the state of a described Root virtual switch is switched to enabled state by described service server, described The pattern of the first virtual switch switches to aggressive mode;Described aggressive mode is used for allowing to receive user in institute State the operation of input on service server.
This step specifically can also include:
What management center server reception service server sent is used for removing in management described service server The request message of the centre management of central server;
Management center server deletes described first mapping relations and described second mapping relations.
Wherein, at service server before or after management center server sends above-mentioned request message, The state of a described Root virtual switch can be switched to enabled state by service server, and described first The pattern of virtual switch switches to aggressive mode;Described aggressive mode is used for allowing to receive user in described industry The operation of input on business server.
Management center server can also remove above-mentioned 2nd Root virtual switch and deletion the 2nd Root is virtual The interface of switch.
So can realize from administrative center, remove management center server.
In technique scheme, management center server receives described business being taken for request of user's input Business device adds described management center server and carries out the request message of centre management, and described request message comprises institute State the identification information of service server;Management center server according to the identification information of described service server to Described service server sends and is carried out by the described service server described management center server of addition for request The order of centre management;Management center server receives the described service server top that service server sends The first identity configuration information of a Root virtual switch that first virtual switch of administration comprises and described the Second identity configuration information of the interface of one virtual switch, the pattern of described first virtual switch is driven Pattern, the state of a described Root virtual switch is non-enabled state;Management center server is according to institute State the first identity configuration information configuration the 2nd Root virtual switch, and according to described second identity configuration letter Breath configures the interface of described 2nd Root virtual switch, and wherein said 2nd Root virtual switch is described The mirror image of the oneth Root virtual switch;Described management center server comprises at described first virtual switch A Leaf virtual switch and described 2nd Root virtual switch between set up the first mapping relations, and Set up between the interface and the interface of a described Leaf virtual switch of described 2nd Root virtual switch Second mapping relations, so that a described Leaf virtual switch function response user takes in described administrative center The operation of input on 2nd Root virtual switch of configuration on business device.It is achieved in that and is led to by user's active request Cross management center server management service server virtual switch, compared to existing technology in need distinguish VSS and VDS, and VSS and VDS is carried out the management of different modes, the present embodiment is due to the 2nd Root Virtual switch is identical with the mark of the virtual switch on service business device, the virtual friendship i.e. presented to user Changing planes only one of which, such user has only to manage the 2nd Root virtual switch on management center server, Just can realize the management to the first virtual switch disposed on service server, such as: the operation of user A Leaf virtual switch of deployment can be transferred on service server by the 2nd Root virtual switch Machine, is performed this by a Leaf virtual switch and operates.Thus the present embodiment can improve the virtual friendship of management The efficiency changed planes.
Fig. 5 is the schematic flow sheet of the management method of the another kind of virtual switch that the embodiment of the present invention provides, As it is shown in figure 5, include:
401, service server by described service server dispose the first virtual switch comprise first The state of Root virtual switch switches to non-enabled state, and the pattern of described first virtual switch is cut It is changed to follower mode;Wherein, described follower mode is used for forbidding that reception user is defeated on described service server The operation entered.
402, service server sends the first of a described Root virtual switch to management center server Second identity configuration information of the interface of identity configuration information and described first virtual switch, so that described pipe Reason central server according to described first identity configuration information configuration the 2nd Root virtual switch, and according to The interface of the described second identity configuration information described 2nd Root virtual switch of configuration, wherein said second Root virtual switch is the mirror image of a described Root virtual switch;And at described first virtual switch Set up the first mapping between the Leaf virtual switch and the described 2nd Root virtual switch that comprise to close System, and described 2nd Root virtual switch interface and a described Leaf virtual switch interface it Between set up the second mapping relations so that described oneth Leaf virtual switch function response user in described management The operation of input on 2nd Root virtual switch of configuration on central server, wherein, described first virtual The interface of switch includes interface and the interface of a Root virtual switch of a Leaf virtual switch.
When user needs to be managed above-mentioned first virtual switch, user can service in administrative center On device, input is for managing the administration order of above-mentioned first virtual switch, and management center server is again by this pipe Reason order transmission is to above-mentioned 2nd Root virtual switch, and the 2nd Root virtual switch is further according to above-mentioned first Mapping relations and the second mapping relations, transmitted this administration order by the interface of the 2nd Root virtual switch To the interface of a described Leaf virtual switch, then transmitted by the interface of a described Leaf virtual switch To an above-mentioned Leaf virtual switch, an above-mentioned Leaf virtual switch perform this administration order, and An above-mentioned Leaf virtual switch is a part for above-mentioned first virtual switch, and the most above-mentioned Leaf is empty The business intending switch connection is exactly that above-mentioned first virtual switch connects business, and the most above-mentioned Leaf performs this behaviour It is equal to above-mentioned first virtual switch as order and performs this operational order, thus user completes above-mentioned first The management of virtual switch.
Optionally, above-mentioned first virtual switch can be one or more virtual switch, when above-mentioned When one virtual switch is multiple virtual switch, in this enforcement, the 2nd Root virtual switch can be with multiple The Leaf virtual switch of virtual switch sets up the first mapping relations, meanwhile, the 2nd Root virtual switch Configure multiple interface, then the interface of these interfaces Yu multiple virtual switches is set up mapping relations.
In another embodiment, described first identity configuration information comprises described first virtual switch and comprises The identification information of a Root virtual switch and configuration information, described second identity configuration information includes institute State identification information and the configuration information of the interface of the first virtual switch;Described 2nd Root virtual switch Identify identical with the mark of a described Root virtual switch, and the joining of described 2nd Root virtual switch Put parameter identical with the configuration parameter of a described Root virtual switch;Described 2nd Root virtual switch The mark of interface identical with the mark of the interface of described first virtual switch, and described 2nd Root is virtual The configuration parameter of the interface of switch is identical with the configuration parameter of the interface of described first virtual switch.
In technique scheme, the first virtual switch that service server will be disposed on described service server The state of the Root virtual switch comprised switches to non-enabled state, and by described first virtual switch The pattern of machine switches to follower mode;Wherein, described follower mode is used for forbidding receiving user in described business The operation of input on server;Service server sends a described virtual friendship of Root to management center server The the first identity configuration information changed planes and the second identity configuration information of the interface of described first virtual switch, So that described management center server is according to described first identity configuration information configuration the 2nd Root virtual switch Machine, and the interface of described 2nd Root virtual switch is configured according to described second identity configuration information, its Described in the 2nd Root virtual switch be the mirror image of a described Root virtual switch;And described first Is set up between a Leaf virtual switch and described 2nd Root virtual switch that virtual switch comprises One mapping relations, and at interface and a described Leaf virtual switch of described 2nd Root virtual switch Interface between set up the second mapping relations so that described oneth Leaf virtual switch function response user exist The operation of input on 2nd Root virtual switch of configuration on described management center server.Compare existing skill Needing to distinguish VSS and VDS in art, and VSS and VDS carries out the management of different modes, the present invention is real Execute example user and have only to manage the 2nd Root virtual switch on management center server, it is possible to it is right to realize The management of the first virtual switch disposed on service server, such as: the operation of user can be by second Root virtual switch be transferred on service server dispose a Leaf virtual switch, by this first Leaf virtual switch performs this operation.Thus the present embodiment can improve the efficiency of management virtual switch.
Fig. 6 is the schematic flow sheet of the management method of the another kind of virtual switch that the embodiment of the present invention provides, As shown in Figure 6, including:
501, service server receives, for request, described service server is added described management center server Carry out the request of centre management.
Wherein, above-mentioned request can be that management center server sends, it is also possible to receives the behaviour of user's input Work generates.
502, service server by described service server dispose the first virtual switch comprise first The state of Root virtual switch switches to non-enabled state, and the pattern of described first virtual switch is cut It is changed to follower mode;Wherein, described follower mode is used for forbidding that reception user is defeated on described service server The operation entered.
503, service server sends the first of a described Root virtual switch to management center server Second identity configuration information of the interface of identity configuration information and described first virtual switch, so that described pipe Reason central server according to described first identity configuration information configuration the 2nd Root virtual switch, and according to The interface of the described second identity configuration information described 2nd Root virtual switch of configuration, wherein said second Root virtual switch is the mirror image of a described Root virtual switch;And at described first virtual switch Set up the first mapping between the Leaf virtual switch and the described 2nd Root virtual switch that comprise to close System, and described 2nd Root virtual switch interface and a described Leaf virtual switch interface it Between set up the second mapping relations so that described oneth Leaf virtual switch function response user in described management The operation of input on 2nd Root virtual switch of configuration on central server, wherein, described first virtual The interface of switch includes interface and the interface of a Root virtual switch of a Leaf virtual switch.
In another embodiment, step 501 specifically may include that
Service server receives being added by described service server for request of described management center server transmission Enter described management center server and carry out the order of centre management;Or
Described service server receives the request that is used for of user's input and described service server is added described management Central server carries out the request message of centre management.
Wherein, described order can also comprise the authentication information for described service server certification, or please Ask message can also comprise the authentication information for described service server certification.
Above-mentioned authentication information can be any can the information of certification, such as: proof of identity code.
Step 502 may include that
Service server uses described authentication information to be authenticated;
When described service server certification is passed through, described service server sends institute to management center server State the of the first identity configuration information of a Root virtual switch and the interface of described first virtual switch Two identity configuration informations.
When service server receives mentioned order or asks message constantly, and service server just can pass through This authentication information is authenticated, such as: judge whether service server has been added to other administrative center, if It is, authentification failure, if it is not, then certification is passed through;Or, it is judged that management center server whether have permission by Service server adds administrative center, is if so, passed through by certification, if it is not, then authentification failure;Certainly also may be used To judge whether service server has been added to administrative center, if otherwise judging whether management center server has Service server is added administrative center by authority, when the two judges all to pass through, then it represents that certification is passed through.
In another embodiment, after the step 503, described method can also include:
Service server receives the centre management for described service server removes management center server Remove order service server removes order, the state of a described Root virtual switch is switched to and makes Energy state, and the pattern of described first virtual switch is switched to aggressive mode, particularly, by described The finger daemon of the first virtual switch switches to aggressive mode;
Wherein, the operation that described aggressive mode inputs on described service server for allowing reception user.
Described service server receives the central canal for described service server removes management center server Reason remove order service server remove order, may include that
What described service server reception user inputted is used for described service server removes administrative center's service The centre management of device remove order;Or
What the described service server described management center server of reception sent is used for moving described service server Except management center server centre management remove order.
The state of a described Root virtual switch is switched to enabled state by service server, and by described The pattern of the first virtual switch switches to aggressive mode (particularly, by described first virtual switch Finger daemon switches to aggressive mode) after, service server can also return to management center server and use Enabled state, the mould of described first virtual switch is switched in the state representing described Root virtual switch Formula switches to the operation result information of aggressive mode.
It should be noted that the state of Root virtual switch is non-enabled state can be Root virtual switch Machine is isolated or hides, i.e. Root virtual switch is forbidden receiving any instruction or Root virtual switch Machine cannot receive any instruction, or Root virtual switch cannot respond to any instruction, Root virtual switch The state of machine is that non-enabled state can also is that Root virtual switch is removed.The shape of Root virtual switch State be enabled state can be that Root virtual switch state switches to positive status, such as, from being isolated or The state hidden is recovered, or newly created Root virtual switch, i.e. Root virtual switch receives any For operating the instruction of Root virtual switch and it being responded.
The pattern of virtual switch can be follower mode (such as: Slave pattern), and follower mode is forbidden connecing Receive the operation that user directly inputs, when the pattern of the virtual switch on service server is follower mode, empty Intend switch to forbid receiving the operation that user inputs on service server;The pattern of virtual switch can be Aggressive mode (such as: Master pattern), aggressive mode receives the operation that user directly inputs, business service When the pattern of the first virtual switch on device is follower mode, virtual switch can receive user and take in business The operation of input on business device.
When the state of Root virtual switch switches to enabled state, and described virtual switch is switched to master During dynamic model formula, user just directly can manage virtual switch on service server, or user can be led to Cross management center server Telnet service server, then on management center server, manage virtual switch Machine.
In technique scheme, service server receives, for request, described service server is added described pipe Reason central server carries out the request of centre management;Service server will dispose on described service server the The state of the Root virtual switch that one virtual switch comprises switches to non-enabled state, and by described The pattern of the first virtual switch switches to follower mode;Wherein, described follower mode is used for forbidding receiving using The operation that family inputs on described service server;Service server sends described the to management center server First identity configuration information of one Root virtual switch and the second body of the interface of described first virtual switch Part configuration information, so that described management center server is according to described first identity configuration information configuration second Root virtual switch, and configure described 2nd Root virtual switch according to described second identity configuration information The interface of machine, wherein said 2nd Root virtual switch is the mirror image of a described Root virtual switch; And the Leaf virtual switch that comprises at described first virtual switch and described 2nd Root virtual switch The first mapping relations are set up between machine, and at the interface and described first of described 2nd Root virtual switch The second mapping relations are set up between the interface of Leaf virtual switch, so that a described Leaf virtual switch The behaviour of input on the 2nd Root virtual switch that function response user configures on described management center server Make.The present embodiment adds service server on the basis of above example and receives described industry for request Business server adds the step that described management center server carries out the request of centre management.Compared to existing technology In need to distinguish VSS and VDS, and VSS and VDS is carried out the management of different modes, the present invention implements Example user has only to manage the 2nd Root virtual switch on management center server, it is possible to realize industry The management of the first virtual switch disposed on business server, such as: the operation of user can pass through the 2nd Root Virtual switch is transferred on service server the Leaf virtual switch disposed, empty by a Leaf Intend switch and perform this operation.Thus the present embodiment can improve the efficiency of management virtual switch.
Fig. 7 is the schematic diagram of the management method of the another kind of virtual switch that the embodiment of the present invention provides, such as Fig. 7 Shown in, including:
601, service server by described service server dispose the first virtual switch comprise first The state of Root virtual switch switches to non-enabled state, and the pattern of described first virtual switch is cut It is changed to follower mode;Wherein, described follower mode is used for forbidding that reception user is defeated on described service server The operation entered;
602, service server sends the first of a described Root virtual switch to management center server Second identity configuration information of the interface of identity configuration information and described first virtual switch;
603, management center server is according to described first identity configuration information configuration the 2nd Root virtual switch Machine, and the interface of described 2nd Root virtual switch is configured according to described second identity configuration information, its Described in the 2nd Root virtual switch be the mirror image of a described Root virtual switch;
604, the Leaf virtual switch that management center server comprises at described first virtual switch with The first mapping relations are set up between described 2nd Root virtual switch, and in described 2nd Root virtual switch The second mapping relations are set up between interface and the interface of a described Leaf virtual switch of machine, so that institute State the 2nd Root that a Leaf virtual switch function response user configures on described management center server The operation of input on virtual switch, wherein, the interface of described first virtual switch includes that a Leaf is empty Intend interface and the interface of a Root virtual switch of switch.
When user needs to be managed above-mentioned first virtual switch, user can service in administrative center On device, input is for managing the administration order of above-mentioned first virtual switch, and management center server is again by this pipe Reason order transmission is to above-mentioned 2nd Root virtual switch, and the 2nd Root virtual switch is further according to above-mentioned first Mapping relations and the second mapping relations, transmitted this administration order by the interface of the 2nd Root virtual switch To the interface of a described Leaf virtual switch, then transmitted by the interface of a described Leaf virtual switch To an above-mentioned Leaf virtual switch, an above-mentioned Leaf virtual switch perform this administration order, and An above-mentioned Leaf virtual switch is a part for above-mentioned first virtual switch, and the most above-mentioned Leaf is empty The business intending switch connection is exactly that above-mentioned first virtual switch connects business, and the most above-mentioned Leaf performs this behaviour It is equal to above-mentioned first virtual switch as order and performs this operational order, thus realize user and have only at pipe 2nd Root virtual switch is managed by reason central server just can be with the virtual friendship on finishing service server The management changed planes.
Optionally, above-mentioned first virtual switch can be one or more virtual switch, when above-mentioned When one virtual switch is multiple virtual switch, in this enforcement, the 2nd Root virtual switch can be with multiple The Leaf virtual switch of virtual switch sets up the first mapping relations, meanwhile, the 2nd Root virtual switch Configure multiple interface, then the interface of these interfaces Yu multiple virtual switches is set up mapping relations.
In technique scheme, the first virtual switch that service server will be disposed on described service server The state of the Root virtual switch comprised switches to non-enabled state, and by described first virtual switch The pattern of machine switches to follower mode;Wherein, described follower mode is used for forbidding receiving user in described business The operation of input on server;Service server sends a described virtual friendship of Root to management center server The the first identity configuration information changed planes and the second identity configuration information of the interface of described first virtual switch; Management center server is according to described first identity configuration information configuration the 2nd Root virtual switch, Yi Jigen According to described second identity configuration information configure described 2nd Root virtual switch interface, wherein said second Root virtual switch is the mirror image of a described Root virtual switch;Management center server is described Set up between a Leaf virtual switch and described 2nd Root virtual switch that one virtual switch comprises First mapping relations, and in interface and a described Leaf virtual switch of described 2nd Root virtual switch The second mapping relations are set up between the interface of machine, so that a described Leaf virtual switch function response user The operation of input on the 2nd Root virtual switch of configuration on described management center server.Compare existing Technology needs to distinguish VSS and VDS, and VSS and VDS is carried out the management of different modes, this enforcement Example user has only to manage the 2nd Root virtual switch on management center server, it is possible to realize industry The management of the first virtual switch disposed on business server, such as: the operation of user can pass through the 2nd Root Virtual switch is transferred on service server the Leaf virtual switch disposed, empty by a Leaf Intend switch and perform this operation.Thus the present embodiment can improve the efficiency of management virtual switch.
Fig. 8 is the schematic diagram of the management method of the another kind of virtual switch that the embodiment of the present invention provides, such as Fig. 8 Shown in, including:
701, service server is added administrative center by the request that is used for of management center server reception user input Server carries out the request message of centre management, and request message comprises the relevant information of service server, such as Identification information, authentication information etc.;
702, after management center server receives above-mentioned request, confirm that this service server is not added into this Management center server, if this business main frame is not added into this administrative center, performs step 703, if this business Main frame adds this management center server, then flow process terminates;
703, management center server sends the order adding administrative center to service server, wraps in this order Identification information containing management center server, the identification information of service server and authentication information;
704, after service server virtual connection receives mentioned order, confirm whether this administrative center has permission industry Business server adds administrative center, the most then perform step 705, if it is not, then return mistake to administrative center Information, informs that administrative center's operation is not allowed to.
705, service server determines that this service server is not yet added into other administrative center any service Device, the most then perform step 706, if it is not, then return error message to management center server, inform pipe Reason central server operation is not allowed to.
Wherein, the execution sequence that step 704 and step 705 two judge can be not construed as limiting, i.e. can be first Determine that this service server is not yet added into other management center server any, the most then confirm this pipe Whether reason center has permission adds management center server by service server, if by performing step 706.
706, service server collects the information of all virtual switches on service server, and this information includes void Intend identity beacon information (such as: include UUID, ID, title etc.) and this virtual switch of switch Configuration information, this configuration information includes MTU etc.;And collect the identity mark of the interface of each virtual switch Know (such as: include UUID, ID, Name etc.) and the configuration information of this interface, this configuration information bag Include the information such as VLAN, QoS, ACL;
707, the pattern of the finger daemon of service server virtual switch is switched to Slave by service server Pattern (such as, the follower mode of above-described embodiment), and be Leaf by the role switching of virtual switch object Virtual switch (such as: the state of the Root virtual switch of virtual switch is switched to non-all-round state), But do not change any attribute of virtual switch.Wherein, the finger daemon of the virtual switch of Slave pattern Not accepting the operation of user's direct instruction, Leaf virtual switch is invisible to user simultaneously, and user also cannot be right This Leaf virtual switch operates.All operations can only be completed by administrative center.
708, service server by all information reportings of operating result and collection to management center server; This operating result is the authentication result information of above-mentioned certification.
709, management center server information based on the virtual switch collected, creates Root virtual Switch, and by the Leaf virtual switch of this Root virtual switch with the virtual switch on service server Mapping relations set up by machine.Wherein, the identity of this Root virtual switch indicates and configuration information takes with in business Virtual switch original in business device is identical.
Wherein, this Root virtual switch has distributed all functions, can cover multiple business clothes Business device;This Root virtual switch i.e. can be virtual with the Leaf of the virtual switch on multiple service servers Switch sets up mapping relations.
710, management center server is based on the information collected, in the Root virtual switch of above-mentioned establishment Create on machine and the upper identical interface of the virtual switch on service server, where like refer to identity mark Know identical with configuration etc..Then by the Leaf virtual switch on these Port and service server Port sets up mapping relations.
711, during service server is joined the Host Administration list of administrative center by management center server;
712, the finger daemon of the virtual switch of management center server returns operating result to user;This behaviour Make result and can represent that service server adds management center server.
So can realize all virtual switches in service server to be collected into administrative center and present, and Generate the virtual switch object of reality, above-mentioned Root virtual switch.User is on service server When virtual switch is managed without distinguish these virtual switches be administrative center create Root virtual The switch still virtual switch on service server, Root virtual switch creates with in administrative center Distributed virtual switch identical.And the business on service server will not be impacted.
In another embodiment, step 707 can perform before step 701, i.e. service server can In advance the pattern of the finger daemon of service server virtual switch is cut by the finger daemon of virtual switch It is changed to Slave pattern, and is Leaf virtual switch by the role switching of virtual switch object.
In technique scheme, what management center server reception user inputted is used for request by service server Add management center server and carry out the request message of centre management;Management center server confirms that this business takes Business device is not added into this management center server;Management center server sends to service server and adds management The order at center;Service server confirms that this administrative center has permission and service server is added administrative center; Service server determines that this service server is not yet added into other management center server any;Business takes The information of all virtual switches on service server collected by business device;Service server is virtual by service server The pattern of the finger daemon of switch switches to Slave pattern, and by the role switching of virtual switch object is Leaf virtual switch;Service server by all information reportings of operating result and collection to administrative center Server;, management center server information based on the virtual switch collected, create Root virtual Switch, and by the Leaf virtual switch of this Root virtual switch with the virtual switch on service server Mapping relations set up by machine;Management center server is based on the information collected, empty at the Root of above-mentioned establishment Intend creating on switch the upper identical interface with the virtual switch on service server, where like refer to Identity is identical with configuration etc..Then by these Port and the Leaf virtual switch on service server Port on machine sets up mapping relations.Service server is joined the master of administrative center by management center server In machine managing listings;The finger daemon of the virtual switch of management center server returns operating result to user; This operating result can represent that service server adds management center server.District is needed in compared to existing technology Point VSS and VDS, and VSS and VDS is carried out the management of different modes, the present embodiment user have only to Management center server manages the 2nd Root virtual switch, it is possible to realize service server top The management of the first virtual switch of administration, such as: the operation of user can pass through the 2nd Root virtual switch It is transferred on service server the Leaf virtual switch disposed, a Leaf virtual switch holds This operation of row.Thus the present embodiment can improve the efficiency of management virtual switch.
Fig. 9 is the schematic diagram of the management method of the another kind of virtual switch that the embodiment of the present invention provides, such as Fig. 9 Shown in, including:
801, service server is removed by the request of management center server reception user input from administrative center Request message, this request message comprises service server relevant information, such as: UUID, ID and title.
802, management center server judges whether this service server has been added to administrative center, if so, Then perform step 803, if it is not, then show error message;
803, administrative center issues to server service server and removes order;
804, whether service server judging service server has been added to this management center server, if so, Then perform step 805, if otherwise returning error message to management center server;
805, service server the finger daemon pattern of virtual switch is switched to Master pattern (such as: The aggressive mode of above-described embodiment), and be Root virtual switch by all virtual switch object role switchings Machine (such as: the state of the Root virtual switch of virtual switch is switched to enabled state).So this User can manage the virtual switch in this service server by Telnet mode;
806, service server returns operating result to management center server, and this operating result can represent industry The finger daemon pattern of virtual switch is switched to Master pattern, all virtual switches pair by business server Image angle color switches to Root virtual switch.
807, management center server traversal virtual switch list lookup and Leaf in above-mentioned service server Virtual switch sets up the Root virtual switch of mapping relations;
808, with Leaf in above-mentioned service server during management center server deletes above-mentioned Root virtual switch Virtual Switch Interface sets up the total interface of mapping relations;
809, management center server releases above-mentioned Root virtual switch and Leaf in above-mentioned service server The mapping relations of virtual switch;
810, service server is removed from the Host Administration list of administrative center by management center server;
811, management center server display operating result, this operating result can represent that service server is from pipe The Host Administration list at reason center removes.
This service server no longer acceptor center management server after step 801.Simultaneously on this service server Virtual switch also can only by remote access or local terminal access by the way of manage.
In another embodiment, user can also input on service server request by service server from The request message that management center server removes, when service server confirms that this service server adds in management After central server, service server sends to management center server and removes order, when administrative center receives After this removes order, it is possible to perform above-mentioned steps 806-step 810.Afterwards, service server just can be held Row above-mentioned steps 804, and show operating result, this operating result can represent that service server is from administrative center Host Administration list in remove.
It should be noted that this embodiment can perform, such as together with the embodiment shown in above-mentioned Fig. 8: Step 801 performs after step 712.
In technique scheme, specifically describe management center server and move the management to service server, This embodiment can realize together in conjunction with the embodiment shown in Fig. 8, the most compared to existing technology in need distinguish VSS and VDS, and VSS and VDS is carried out the management of different modes, the embodiment of the present invention user only need Management center server to manage the 2nd Root virtual switch, it is possible to realize on service server The management of the first virtual switch disposed, such as: the operation of user can pass through the 2nd Root virtual switch Machine is transferred on service server the Leaf virtual switch disposed, by a Leaf virtual switch Perform this operation.Thus the present embodiment can improve the efficiency of management virtual switch.
It is below the application scenarios explanation of the embodiment of the present invention:
There is a virtual switch cluster, wherein the administrative center in this cluster is management center server; There is a single service server, the virtual switch object in service server is all that unit is empty simultaneously Intend switch;
Now, user needs to join in cluster this service server to be managed collectively;
All virtual switch objects in service server are collected administrative center's clothes by management center server Business device, management center server configures above-mentioned 2nd Root virtual switch, the 2nd Root virtual switch Be automatically changeb to a distributed virtual switch, now user can directly at management center server to this Virtual switch operates, and is not required to Telnet or independent passage;
2nd Root virtual switch all properties EVS attribute original with service server is identical, and not Original business on this service server can be affected;
In addition this distributed virtual switch is also provided with the function of extension, and this distributed virtual can be allowed to exchange Machine covers other service server;
One service server is removed by user from management center server;
Administrative center can travel through all virtual switches and find the virtual switch covering this service server;
Leaf virtual switch machine information on this service server is moved from the 2nd Root virtual switch Go out, but have no effect on the 2nd Root virtual switch business on other service servers;
Root virtual switch in service server switches to active state simultaneously, and user can individually manage Reason.
Being apparatus of the present invention embodiment below, apparatus of the present invention embodiment is used for performing the inventive method embodiment One to eight method realized, for convenience of description, illustrate only the part relevant to the embodiment of the present invention, tool Body technique details does not discloses, and refer to the embodiment of the present invention one, embodiment two, embodiment three, embodiment Four, embodiment five, embodiment six, embodiment seven and embodiment eight.
Figure 10 is the structural representation of a kind of management center server that the embodiment of the present invention provides, administrative center Server is used for managing virtual switch, in this embodiment virtual switch comprise Root virtual switch and Leaf virtual switch, as shown in Figure 10, described management center server includes: the first reception unit 11, Dispensing unit 12 and set up unit 13, wherein:
First receives unit 11, for receiving the disposed on the described service server that service server sends First identity configuration information of the Root virtual switch that one virtual switch comprises and described first virtual Second identity configuration information of the interface of switch, the pattern of described first virtual switch is follower mode, The state of a described Root virtual switch is non-enabled state;Wherein, described follower mode is used for forbidding Receive the operation that user inputs on described service server.
Dispensing unit 12, for configuring the 2nd Root virtual switch according to described first identity configuration information, And the interface according to the described second identity configuration information described 2nd Root virtual switch of configuration, Qi Zhongsuo State the mirror image that the 2nd Root virtual switch is a described Root virtual switch;
Set up unit 13, for the Leaf virtual switch comprised at described first virtual switch and institute State and between the 2nd Root virtual switch, set up the first mapping relations, and at described 2nd Root virtual switch Interface and the interface of a described Leaf virtual switch between set up the second mapping relations, so that described The 2nd Root that oneth Leaf virtual switch function response user configures on described management center server is virtual The operation of input on switch, wherein, the interface of described first virtual switch includes a virtual friendship of Leaf The interface changed planes and the interface of a Root virtual switch.
Optionally, set up unit 13 and set up mapping relations and can be stored in described management center server, when When user needs to be managed above-mentioned first virtual switch, user can be defeated on management center server Entering the administration order for managing above-mentioned first virtual switch, management center server is again by this administration order Transmission is to above-mentioned 2nd Root virtual switch, and the 2nd Root virtual switch maps further according to above-mentioned first and closes System and the second mapping relations, by this administration order by the interface transmission of the 2nd Root virtual switch to described The interface of the oneth Leaf virtual switch, then transmitted to above-mentioned by the interface of a described Leaf virtual switch Oneth Leaf virtual switch, is performed this administration order by an above-mentioned Leaf virtual switch, and above-mentioned One Leaf virtual switch is a part for above-mentioned first virtual switch, the most above-mentioned Leaf virtual switch The business that machine connects is exactly that above-mentioned first virtual switch connects business, and the most above-mentioned Leaf performs this operational order It is equal to above-mentioned first virtual switch and performs this operational order, thus realize user and have only in administrative center 2nd Root virtual switch is managed by server just can be with the virtual switch on finishing service server Management.
Optionally, above-mentioned first virtual switch can be one or more virtual switch, when above-mentioned When one virtual switch is multiple virtual switch, in this enforcement, the 2nd Root virtual switch can be with multiple The Leaf virtual switch of virtual switch sets up the first mapping relations, meanwhile, the 2nd Root virtual switch Configure multiple interface, then the interface of these interfaces Yu multiple virtual switches is set up mapping relations.
In another embodiment, described first identity configuration information can comprise described first virtual switch Identification information and configuration information, described second identity configuration information can include described first virtual switch The identification information of interface and configuration information;
Optionally, the identification information of above-mentioned first virtual switch can include following at least one:
UUID, ID and title, wherein, this identification information is for uniquely identifying virtual switch.
Optionally, the configuration information of above-mentioned first virtual switch may include that
MTU information.This configuration information is for configuration the 2nd Root virtual switch, i.e. management center server The 2nd Root virtual switch can be configured according to this configuration information.
Optionally, the identification information of above-mentioned interface can include following at least one:
UUID, ID and title, wherein, this identification information is for uniquely identifying interface.
Optionally, the configuration information of above-mentioned interface can include following at least one:
Vlan information, QoS information and ACL information, this configuration information is used for configuring interface, i.e. in management Central server can configure interface according to this configuration information.
Described first identity configuration information comprises identification information and the configuration letter of a described Root virtual switch Breath, described second identity configuration information includes identification information and the configuration of the interface of described first virtual switch Information;Dispensing unit 12 specifically can be also used for the identification information according to a described Root virtual switch And configuration information, configuration identifier is identical with the mark of a described Root virtual switch, and configuration parameter with The 2nd Root virtual switch that the configuration parameter of a described Root virtual switch is identical;And according to institute State identification information and the configuration information of the interface of the first virtual switch, configuration identifier and described first virtual friendship The mark of the interface changed planes is identical, and the configuration parameter of the interface of configuration parameter and described first virtual switch The interface of the 2nd identical Root virtual switch.
Optionally, above-mentioned management center server can be the management center server that above example describes.
In technique scheme, management center server receives the described service server that service server sends First identity configuration information of the Root virtual switch that the first virtual switch of upper deployment comprises and institute Stating the second identity configuration information of the interface of the first virtual switch, the pattern of described first virtual switch is Follower mode, the state of a described Root virtual switch is non-enabled state;Wherein, described from dynamic model Formula is for forbidding the operation that reception user inputs on described service server;Management center server is according to institute State the first identity configuration information configuration the 2nd Root virtual switch, and according to described second identity configuration letter Breath configures the interface of described 2nd Root virtual switch, and wherein said 2nd Root virtual switch is described The mirror image of the oneth Root virtual switch;Management center server comprise at described first virtual switch The first mapping relations are set up between one Leaf virtual switch and described 2nd Root virtual switch, and in institute State and set up second between the interface of the 2nd Root virtual switch and the interface of a described Leaf virtual switch Mapping relations, so that a described Leaf virtual switch function response user is at described management center server The operation of input on 2nd Root virtual switch of upper configuration.Need in compared to existing technology distinguish VSS and VDS, and VSS and VDS is carried out the management of different modes, the present embodiment user have only in administrative center The 2nd Root virtual switch is managed, it is possible to realize the virtual switch on service server on server Management, such as: the operation of user can be transferred on service server by the 2nd Root virtual switch A Leaf virtual switch, a Leaf virtual switch perform this and operate.Thus the present embodiment The efficiency of management virtual switch can be improved.
Figure 11 is the structural representation of the another kind of management center server that the embodiment of the present invention provides, this enforcement In example, virtual switch comprises Root virtual switch and Leaf virtual switch, as shown in figure 11, this pipe Reason central server includes: second receives unit 21, transmitting element the 22, first reception unit 23, configuration list Unit 24 and set up unit 25, wherein:
Second receive unit 21, for receive user input for request by described service server add institute Stating management center server and carry out the request message of centre management, described request message comprises described business service The identification information of device.
The identification information of service server may include that
The information such as ID, UUID, title, this identification information is used for unique identification service server.
Transmitting element 22, for sending to described service server according to the identification information of described service server For request, the described service server described management center server of addition is carried out the order of centre management, with Described service server is made to return described first identity configuration information and described the to described management center server Two identity configuration informations.
When service server receives mentioned order, service server just can be sent out to management center server Send the of the first identity configuration information of described first virtual switch and the interface of described first virtual switch Two identity configuration informations.
Second receive unit 21 specifically may be used for receive user input for request by described service server Adding described management center server and carry out the request message of centre management, described request message comprises described industry The identification information of business server and for the authentication information of described service server certification;
Transmitting element 22 specifically may be used for the identification information according to described service server to described business service Device sends the life that the described service server described management center server of addition carries out centre management for request Order, described order also comprises described authentication information, so that described service server uses described authentication information to enter Row certification, when described service server certification is passed through, is taken to described administrative center by described service server Business device returns described first identity configuration information and described second identity configuration information.I.e. service server receives During to this order, it is possible to be authenticated by this authentication information, such as: judge that service server is the most Through adding other administrative center, if so, authentification failure, if it is not, then certification is passed through;Or, it is judged that communication Whether equipment has permission adds administrative center by service server, is if so, passed through by certification, if it is not, then recognize Demonstrate,prove unsuccessfully;Certainly can also judge whether service server has been added to administrative center, if otherwise judging communication Whether equipment has permission adds administrative center by service server, when the two judges all to pass through, then it represents that Certification is passed through.
First receives unit 23, for receiving the disposed on the described service server that service server sends First identity configuration information of the Root virtual switch that one virtual switch comprises and described first virtual Second identity configuration information of the interface of switch, the pattern of described first virtual switch is follower mode, The state of a described Root virtual switch is non-enabled state;Wherein, described follower mode is used for forbidding Receive the operation that user inputs on described service server.
First receives unit 23 can also receive the authentication result that service server sends, when this authentication result is When certification is passed through, first receives unit 23 receives deployment on the described service server that service server sends First identity configuration information of the Root virtual switch that the first virtual switch comprises and described first void Intend the second identity configuration information of the interface of switch;When authentication result is that certification is obstructed out-of-date, first receives Unit 23 receives only this authentication result, and does not receives above-mentioned configuration information.
Dispensing unit 24, for configuring the 2nd Root virtual switch according to described first identity configuration information, And the interface according to the described second identity configuration information described 2nd Root virtual switch of configuration, Qi Zhongsuo State the mirror port that the 2nd Root virtual switch is a described Root virtual switch.
Set up unit 25, for the Leaf virtual switch comprised at described first virtual switch and institute State and between the 2nd Root virtual switch, set up the first mapping relations, and at described 2nd Root virtual switch Interface and the interface of a described Leaf virtual switch between set up the second mapping relations, so that described The 2nd Root that oneth Leaf virtual switch function response user configures on described management center server is virtual The operation of input on switch, wherein, the interface of described first virtual switch includes a virtual friendship of Leaf The interface changed planes and the interface of a Root virtual switch.
In another embodiment, described management center server can also include:
Delete unit (being not drawn in accompanying drawing), be used for deleting described first mapping relations and described second and map pass System, and send for described service server is removed in management center server to described service server What the heart managed removes order, so that the state of a described Root virtual switch is cut by described service server Being changed to enabled state, the pattern of described first virtual switch switches to aggressive mode;Described aggressive mode is used In the operation allowing reception user to input on described service server.
Delete unit (accompanying drawing is not drawn into) specifically may be used for receive user input for by described business Server removes the request message of the centre management of management center server, and request message comprises service server Identification information;Delete described first mapping relations and described second mapping relations, and to described business service What device sent the centre management for described service server removes management center server removes order, with Make described service server that the state of a described Root virtual switch to switch to enabled state, described The pattern of one virtual switch switches to aggressive mode;Described aggressive mode is used for allowing to receive user described The operation of input on service server..Or
Delete unit (accompanying drawing is not drawn into) specifically may be used for receive service server send for by institute State the request message that service server removes the centre management of management center server;And delete described first Mapping relations and described second mapping relations.
Can be also used in the enforcement shown in Figure 10 it should be noted that delete unit (being not drawn in accompanying drawing) In example, i.e. when the embodiment shown in Figure 11 does not comprise the second reception unit 21 and transmitting element 22, this Embodiment can also realize.
Management center server sends for described service server removes administrative center's clothes to service server Business device centre management remove order, so that described service server is by a described Root virtual switch State switch to enabled state, the pattern of described first virtual switch to switch to aggressive mode;Described master The operation that dynamic model formula inputs on described service server for allowing reception user.
Management center server can also remove above-mentioned 2nd Root virtual switch and deletion the 2nd Root is virtual The interface of switch.
So can realize from administrative center, remove management center server.
In technique scheme, management center server receives described business being taken for request of user's input Business device adds described management center server and carries out the request message of centre management, and described request message comprises institute State the identification information of service server;Management center server according to the identification information of described service server to Described service server sends and is carried out by the described service server described management center server of addition for request The order of centre management;Management center server receives the described service server that service server sends First identity configuration information of the Root virtual switch that the first virtual switch of upper deployment comprises and institute State the second identity configuration information of the interface of the first virtual switch;Management center server is according to described first Identity configuration information configuration the 2nd Root virtual switch, and according to described second identity configuration information configuration The interface of described 2nd Root virtual switch.Management center server comprises at described first virtual switch A Leaf virtual switch and described 2nd Root virtual switch between set up the first mapping relations, and Set up between the interface and the interface of a described Leaf virtual switch of described 2nd Root virtual switch Second mapping relations, so that a described Leaf virtual switch function response user takes in described administrative center The operation of input on 2nd Root virtual switch of configuration on business device.It is achieved in that and is led to by user's active request Cross management center server management service server virtual switch, compared to existing technology in need distinguish VSS and VDS, and VSS and VDS is carried out the management of different modes, the present embodiment is due to the 2nd Root Virtual switch is identical with the mark of the virtual switch on service business device, the virtual friendship i.e. presented to user Changing planes only one of which, such user has only to manage the 2nd Root virtual switch on management center server, Just can realize the management to the virtual switch on service server, such as: the operation of user can be passed through 2nd Root virtual switch transmits the Leaf virtual switch to service server, by this Leaf Virtual switch performs this operation.Thus the embodiment of the present invention can improve the efficiency of management virtual switch.
Figure 12 is the structural representation of a kind of service server that the embodiment of the present invention provides, this service server On be deployed with the first virtual switch, this first virtual switch comprises first Root virtual switch and One leaf Leaf virtual switch, as shown in figure 12, this service server includes: switch unit 31 and sending out Send unit 32, wherein:
Switch unit 31, is used for first comprised by the first virtual switch disposed on described service server The state of Root virtual switch switches to non-enabled state, and the pattern of described first virtual switch is cut It is changed to follower mode;Wherein, described follower mode is used for forbidding that reception user is defeated on described service server The operation entered;
Transmitting element 32, for sending the first of a described Root virtual switch to management center server Second identity configuration information of the interface of identity configuration information and described first virtual switch, so that described pipe Reason central server according to described first identity configuration information configuration the 2nd Root virtual switch, and according to The interface of the described second identity configuration information described 2nd Root virtual switch of configuration, wherein said second Root virtual switch is the mirror image of a described Root virtual switch;And at described first virtual switch Set up the first mapping between the Leaf virtual switch and the described 2nd Root virtual switch that comprise to close System, and described 2nd Root virtual switch interface and a described Leaf virtual switch interface it Between set up the second mapping relations so that described oneth Leaf virtual switch function response user in described management The operation of input on 2nd Root virtual switch of configuration on central server, wherein, described first virtual The interface of switch includes interface and the interface of a Root virtual switch of a Leaf virtual switch.
When user needs to be managed above-mentioned first virtual switch, user can service in administrative center On device, input is for managing the administration order of above-mentioned first virtual switch, and management center server is again by this pipe Reason order transmission is to above-mentioned 2nd Root virtual switch, and the 2nd Root virtual switch is further according to above-mentioned first Mapping relations and the second mapping relations, transmitted this administration order by the interface of the 2nd Root virtual switch To the interface of a described Leaf virtual switch, then transmitted by the interface of a described Leaf virtual switch To an above-mentioned Leaf virtual switch, an above-mentioned Leaf virtual switch perform this administration order, and An above-mentioned Leaf virtual switch is a part for above-mentioned first virtual switch, and the most above-mentioned Leaf is empty The business intending switch connection is exactly that above-mentioned first virtual switch connects business, and the most above-mentioned Leaf performs this behaviour It is equal to above-mentioned first virtual switch as order and performs this operational order, thus user completes above-mentioned first The management of virtual switch.
Optionally, above-mentioned first virtual switch can be one or more virtual switch, when above-mentioned When one virtual switch is multiple virtual switch, in this enforcement, the 2nd Root virtual switch can be with multiple The Leaf virtual switch of virtual switch sets up the first mapping relations, meanwhile, the 2nd Root virtual switch Configure multiple interface, then the interface of these interfaces Yu multiple virtual switches is set up mapping relations.
In another embodiment, transmitting element 32 specifically may be used for management center server transmission described First identity configuration information of the oneth Root virtual switch and the second of the interface of described first virtual switch Identity configuration information, wherein said first identity configuration information comprises that described first virtual switch comprises The identification information of one Root virtual switch and configuration information, described second identity configuration information includes described The identification information of the interface of one virtual switch and configuration information;So that described management center server is according to institute Stating identification information and the configuration information of a Root virtual switch, configuration identifier is virtual with a described Root The mark of switch is identical, and configuration parameter is identical with the configuration parameter of a described Root virtual switch 2nd Root virtual switch;And according to the identification information of the interface of described first virtual switch and configuration Information, configuration identifier is identical with the mark of the interface of described first virtual switch, and configuration parameter is with described The interface of the 2nd Root virtual switch that the configuration parameter of the interface of the first virtual switch is identical;And institute State between a Leaf virtual switch and the described 2nd Root virtual switch that the first virtual switch comprises Set up the first mapping relations, and virtual with a described Leaf at the interface of described 2nd Root virtual switch The second mapping relations are set up between the interface of switch, so that a described Leaf virtual switch function response The operation of input on the 2nd Root virtual switch that user configures on described management center server.
Optionally, above-mentioned service server can be the service server that above example describes.
In technique scheme, the management of described virtual switch is set the first void of upper deployment by service server The state intending the Root virtual switch that switch comprises switches to non-enabled state, and by described first The pattern of virtual switch switches to follower mode;Wherein, described follower mode is used for forbidding that receiving user exists The operation of input on described service server;Service server sends described first to management center server First identity configuration information of Root virtual switch and the second identity of the interface of described first virtual switch Configuration information, so that described management center server is according to described first identity configuration information configuration the 2nd Root Virtual switch, and configure described 2nd Root virtual switch according to described second identity configuration information Interface, wherein said 2nd Root virtual switch is the mirror image of a described Root virtual switch;And The Leaf virtual switch that described first virtual switch comprises and described 2nd Root virtual switch it Between set up the first mapping relations, and at the interface of described 2nd Root virtual switch and a described Leaf The second mapping relations are set up between the interface of virtual switch, so that a described Leaf virtual switch function The operation of input on the 2nd Root virtual switch that response user configures on described management center server. Need to distinguish VSS and VDS in compared to existing technology, and VSS and VDS carried out the management of different modes, Embodiment of the present invention user has only to manage the 2nd Root virtual switch on management center server, so that it may To realize the management to the virtual switch on service server, such as: the operation of user can be by second The Leaf virtual switch that Root virtual switch is transferred on service server, by the virtual friendship of this Leaf Change planes and perform this operation.Thus the present embodiment can improve the efficiency of management virtual switch.
Figure 13 is the structural representation of the another kind of service server that the embodiment of the present invention provides, this business service Be deployed with the first virtual switch on device, this first virtual switch comprise first Root virtual switch and First leaf Leaf virtual switch, as shown in figure 13, this business service includes: receives unit 41, cut Change unit 42 and transmitting element 43, wherein:
Receive unit 41, for receiving for asking to add described service server the service of described administrative center Device carries out the request of centre management.
Wherein, above-mentioned request can be that management center server sends, it is also possible to receives the behaviour of user's input Work generates.
Switch unit 42, for setting the first virtual switch bag of upper deployment by the management of described virtual switch The state of the Root virtual switch contained switches to non-enabled state, and by described first virtual switch Pattern switch to follower mode;Wherein, described follower mode is used for forbidding that receiving user takes in described business The operation of input on business device.
Transmitting element 43, for sending the first of a described Root virtual switch to management center server Second identity configuration information of the interface of identity configuration information and described first virtual switch, so that described pipe Reason central server according to described first identity configuration information configuration the 2nd Root virtual switch, and according to The interface of the described second identity configuration information described 2nd Root virtual switch of configuration, wherein said second Root virtual switch is the mirror image of a described Root virtual switch;And at described first virtual switch Set up the first mapping between the Leaf virtual switch and the described 2nd Root virtual switch that comprise to close System, and described 2nd Root virtual switch interface and a described Leaf virtual switch interface it Between set up the second mapping relations so that described oneth Leaf virtual switch function response user in described management The operation of input on 2nd Root virtual switch of configuration on central server, wherein, described first virtual The interface of switch includes interface and the interface of a Root virtual switch of a Leaf virtual switch.
In another embodiment, receive unit 41 specifically to may be used for receiving described management center server and send out The life that for request, the described service server described management center server of addition is carried out centre management sent Order;Or
Receive unit 41 specifically to may be used for receiving being added by described service server for request of user's input Described management center server carries out the request message of centre management.
Wherein, described order can also comprise the authentication information for described service server certification, or please Ask message can also comprise the authentication information for described service server certification.
Above-mentioned authentication information can be any can the information of certification, such as: proof of identity code.
Transmitting element 42 specifically can be also used for using described authentication information to be authenticated, when described certification is passed through Time, the first identity configuration information and the institute of a described Root virtual switch is sent to management center server State the second identity configuration information of the interface of the first virtual switch so that described management center server according to Described first identity configuration information configuration the 2nd Root virtual switch, and according to described second identity configuration The interface of the 2nd Root virtual switch described in information configuration, wherein said 2nd Root virtual switch is institute State the mirror image of a Root virtual switch;And the Leaf that comprises at described first virtual switch is virtual The first mapping relations are set up between switch and described 2nd Root virtual switch, and at described 2nd Root The second mapping relations are set up between interface and the interface of a described Leaf virtual switch of virtual switch, So that a described Leaf virtual switch function response user configure on described management center server the The operation of input on two Root virtual switches.
Receiving mentioned order when receiving unit 41 or ask message constantly, transmitting element 42 just can lead to Cross this authentication information to be authenticated, such as: judge whether service server has been added to other administrative center, If so, authentification failure, if it is not, then certification is passed through;Or, it is judged that whether management center server has permission Service server is added administrative center, is if so, passed through by certification, if it is not, then authentification failure;The most also May determine that whether service server has been added to administrative center, if otherwise whether judging management center server Have permission and service server is added administrative center, when the two judges all to pass through, then it represents that certification is passed through.
In another embodiment, described management center server can also include:
Remove unit 44, for receiving the center for described service server being removed management center server Manage removes order;The state of a described Root virtual switch is switched to enabled state, and by institute The pattern stating the first virtual switch switches to aggressive mode;Or, for receive user input for will What described service server removed the centre management of management center server removes order;By a described Root The state of virtual switch switches to enabled state, and the pattern of described first virtual switch is switched to master Dynamic model formula;
Wherein, the operation that described aggressive mode inputs on described service server for allowing reception user.
Remove unit 44 specifically may be used for receive user input for described service server is removed management The centre management of central server remove order;Or
Remove unit 44 and specifically may be used for receiving that described management center server sends for by described business What server removed the centre management of management center server removes order.
The state of a described Root virtual switch is switched to enabled state by service server, and by described After the pattern of the first virtual switch switches to aggressive mode, service server can also take to administrative center Business device returns for representing that the state of described Root virtual switch switches to enabled state, described first virtual The pattern of switch switches to the operation result information of aggressive mode.
It should be noted that the state of Root virtual switch is non-enabled state can be Root virtual switch Machine is isolated or hides, i.e. Root virtual switch is forbidden receiving any instruction or Root virtual switch Machine cannot receive any instruction, or Root virtual switch cannot respond to any instruction, Root virtual switch The state of machine is that non-enabled state can also is that Root virtual switch is removed.The shape of Root virtual switch State be enabled state can be that Root virtual switch state switches to positive status, such as, from being isolated or The state hidden is recovered, or newly created Root virtual switch, i.e. Root virtual switch receives any For operating the instruction of Root virtual switch and it being responded.
The pattern of virtual switch can be follower mode (such as: Slave pattern), and follower mode is forbidden connecing Receive the operation that user directly inputs, when the pattern of the virtual switch on service server is follower mode, empty Intend switch to forbid receiving the operation that user inputs on service server;The pattern of virtual switch can be Aggressive mode (such as: Master pattern), aggressive mode receives the operation that user directly inputs, business service When the pattern of the first virtual switch on device is follower mode, virtual switch can receive user and take in business The operation of input on business device.
When the state of Root virtual switch switches to enabled state, and described virtual switch is switched to master During dynamic model formula, user just directly can manage virtual switch on service server, or user can be led to Cross management center server Telnet service server, then on management center server, manage virtual switch Machine.
In technique scheme, service server receives, for request, described service server is added described pipe Reason central server carries out the request of centre management;The management of described virtual switch is set by service server The state of the Root virtual switch that the first virtual switch disposed comprises switches to non-enabled state, And the pattern of described first virtual switch is switched to follower mode;Service server services to administrative center Device sends the first identity configuration information of a described Root virtual switch and described first virtual switch Second identity configuration information of interface, so that described management center server is according to described first identity configuration letter Breath configuration the 2nd Root virtual switch, and according to described second identity configuration information configuration described second The interface of Root virtual switch, wherein said 2nd Root virtual switch is that a described Root is virtual The mirror image of switch;And the Leaf virtual switch comprised at described first virtual switch and described the The first mapping relations, and connecing at described 2nd Root virtual switch is set up between two Root virtual switches The second mapping relations are set up between mouth and the interface of a described Leaf virtual switch, so that described first The 2nd Root virtual switch that Leaf virtual switch function response user configures on described management center server The operation of input on machine.The present embodiment add on the basis of above example service server receive for Ask to carry out described service server addition described management center server the step of the request of centre management. Need to distinguish VSS and VDS in compared to existing technology, and VSS and VDS carried out the management of different modes, Embodiment of the present invention user has only to manage the 2nd Root virtual switch on management center server, so that it may To realize the management to the virtual switch on service server, such as: the operation of user can be by second Root virtual switch transmits the Leaf virtual switch to service server, by the virtual friendship of this Leaf Change planes and perform this operation.Thus the present embodiment can improve the efficiency of management virtual switch.
Figure 14 is the structural representation of the management system of a kind of virtual switch that the embodiment of the present invention provides, as Shown in Figure 14, including: at least one service server 51 and management center server 52, service server Be deployed with the first virtual switch on 51, described first virtual switch include a Leaf virtual switch and Oneth Root virtual switch, described management center server 52 is deployed with the second virtual switch, wherein:
Service server 51, for the state of a described Root virtual switch is switched to non-enabled state, And the pattern of described first virtual switch is switched to follower mode;And for taking to described administrative center Business device 52 sends the first identity configuration information of a described Root virtual switch and described first virtual friendship Second identity configuration information of the interface changed planes;Wherein, described follower mode is used for forbidding receiving user in institute Stating the operation of input on service server, the interface of described first virtual switch includes a virtual friendship of Leaf The interface changed planes and the interface of a Root virtual switch;
Management center server 52, for according to described first identity configuration information configuration the 2nd virtual friendship of Root Change planes, and configure the interface of described 2nd Root virtual switch according to described second identity configuration information, Wherein said 2nd Root virtual switch is the mirror image of a described Root virtual switch;And be used for The first mapping relations are set up between a described Leaf virtual switch and described 2nd Root virtual switch, And build between the interface and the interface of a described Leaf virtual switch of described 2nd Root virtual switch Vertical second mapping relations, so that a described Leaf virtual switch function response user is in described administrative center The operation of input on the described 2nd Root virtual switch of configuration on server 52, wherein, described second Virtual switch includes described 2nd Root virtual switch.
In another embodiment, management center server 52 can be also used for deleting described first mapping relations With described second mapping relations;
Service server 51 can be also used for the state of a described Root virtual switch is switched to enable State, and the pattern of described first virtual switch is switched to aggressive mode;
Wherein, the operation that described aggressive mode inputs on described service server 51 for allowing reception user. The process of movement and scene are referred to process and the scene that preceding embodiment describes, and are not repeated explanation herein.
Service server 51 can be with arbitrary enforcement in the embodiment shown in Figure 12-Figure 13 in another embodiment The service server of mode, management center server 52 can be with arbitrary reality in the embodiment shown in Figure 10-Figure 11 Execute the management center server of mode.
In technique scheme, the state of a described Root virtual switch is switched to non-by service server Enabled state, and the pattern of described first virtual switch is switched to follower mode;And for described Management center server 52 sends the first identity configuration information of a described Root virtual switch and described Second identity configuration information of the interface of the first virtual switch;Wherein, described follower mode is used for forbidding connecing Receiving the operation that user inputs on described service server, the interface of described first virtual switch includes first The interface of Leaf virtual switch and the interface of a Root virtual switch;Management center server is according to institute State the first identity configuration information configuration the 2nd Root virtual switch, and according to described second identity configuration letter Breath configures the interface of described 2nd Root virtual switch, and wherein said 2nd Root virtual switch is described The mirror image of the oneth Root virtual switch;And at a described Leaf virtual switch and described second The first mapping relations are set up between Root virtual switch, and at the interface of described 2nd Root virtual switch And set up the second mapping relations between the interface of a described Leaf virtual switch, so that described first Described 2nd Root that Leaf virtual switch function response user configures on described management center server 52 The operation of input on virtual switch.Need in compared to existing technology to distinguish VSS and VDS, and to VSS With the management that VDS carries out different modes, the present embodiment user has only on management center server management the Two Root virtual switches, it is possible to realize the management to the virtual switch on service server, such as: The Leaf that the operation of user can be transferred on service server by the 2nd Root virtual switch is virtual Switch, is performed this by a Leaf virtual switch and operates.Thus the present embodiment can improve management void Intend the efficiency of switch.
Figure 15 is the structural representation of the another kind of management center server that the embodiment of the present invention provides, and is used for holding The management method of virtual switch disclosed in the row embodiment of the present invention.As shown in figure 15, this administrative center service Device 60 includes: at least one processor 61, such as CPU, at least one network interface 64 or other use Family interface 63, memorizer 65, at least one communication bus 62.Communication bus 62 is used for realizing these assemblies Between connection communication.Wherein, user interface 63 optionally can include USB interface and other standards Interface, wireline interface.Network interface 64 optionally can include Wi-Fi interface and other wave points. Memorizer 65 may comprise high-speed RAM memorizer, it is also possible to also includes non-labile memorizer (non-volatile memory), for example, at least one disk memory.Memorizer 65 optionally can comprise At least one is located remotely from the storage device of aforementioned processor 61.
In some embodiments, memorizer 65 stores following element, executable module or data knot Structure, or their subset, or their superset:
Operating system 651, comprises various system program, is used for realizing various basic business and processing based on firmly The task of part;
Application module 652, comprises equipment and controls the various application programs such as service routine, device identification service program, For realizing various applied business.
Specifically, processor 61 operation below calling the program of storage in memorizer 65, performing:
Receive that the first virtual switch disposed on the described service server that service server sends comprises the First identity configuration information of one Root virtual switch and the second body of the interface of described first virtual switch Part configuration information, the pattern of described first virtual switch is follower mode, a described Root virtual switch The state of machine is non-enabled state;Wherein, described follower mode is used for forbidding that receiving user takes in described business The operation of input on business device;
According to described first identity configuration information configuration the 2nd Root virtual switch, and according to described second Identity configuration information configures the interface of described 2nd Root virtual switch, wherein said 2nd Root virtual switch Machine is the mirror image of a described Root virtual switch;
The Leaf virtual switch comprised at described first virtual switch and the described 2nd virtual friendship of Root The first mapping relations are set up between changing planes, and at the interface and described first of described 2nd Root virtual switch The second mapping relations are set up between the interface of Leaf virtual switch, so that a described Leaf virtual switch The behaviour of input on the 2nd Root virtual switch that user configures on described management center server 60 can be responded Making, wherein, the interface of described first virtual switch includes the interface and first of a Leaf virtual switch The interface of Root virtual switch.
Optionally, above-mentioned first virtual switch can be one or more virtual switch, when above-mentioned When one virtual switch is multiple virtual switch, in this enforcement, the 2nd Root virtual switch can be with multiple The Leaf virtual switch of virtual switch sets up the first mapping relations, meanwhile, the 2nd Root virtual switch Configure multiple interface, then the interface of these interfaces Yu multiple virtual switches is set up mapping relations.
In one embodiment, described first identity configuration information comprises the mark of a described Root virtual switch Knowledge information and configuration information, described second identity configuration information includes the interface of described first virtual switch Identification information and configuration information;What processor 61 performed configures second according to described first identity configuration information Root virtual switch, and configure described 2nd Root virtual switch according to described second identity configuration information The operation of interface, it is also possible to including:
Identification information according to a described Root virtual switch and configuration information, configuration identifier and described the The mark of one Root virtual switch is identical, and the configuration of configuration parameter and a described Root virtual switch The 2nd Root virtual switch that parameter is identical;
The identification information of the interface according to described first virtual switch and configuration information, configuration identifier is with described The mark of the interface of the first virtual switch is identical, and the interface of configuration parameter and described first virtual switch The interface of identical the 2nd Root virtual switch of configuration parameter.
Optionally, the identification information of above-mentioned first virtual switch can include following at least one:
UUID, ID and title, wherein, this identification information is for uniquely identifying virtual switch.
Optionally, the configuration information of above-mentioned first virtual switch may include that
MTU information.This configuration information is for configuration the 2nd Root virtual switch, i.e. management center server 60 can configure the 2nd Root virtual switch according to this configuration information.
Optionally, the identification information of above-mentioned interface can include following at least one:
UUID, ID and title, wherein, this identification information is for uniquely identifying interface.
Optionally, the configuration information of above-mentioned interface can include following at least one:
Vlan information, QoS information and ACL information, this configuration information is used for configuring interface, i.e. in management Central server 60 can configure interface according to this configuration information.
In one embodiment, processor 61 receives deployment on the described service server that service server sends First identity configuration information of the Root virtual switch that the first virtual switch comprises and described first void Before second identity configuration information of the interface intending switch, the also following operation of execution:
Receive being entered by the described service server described management center server 60 of addition for request of user's input The request message of row centre management, described request message comprises the identification information of described service server;
Identification information according to described service server sends described industry for request to described service server Business server adds described management center server 60 and carries out the order of centre management, so that described business service Device returns described first identity configuration information and described second identity configuration letter to described management center server 60 Breath.
Above-mentioned request message could be included for the authentication information of described service server certification;Described order Described authentication information can also be comprised, so that described service server uses described authentication information to be authenticated, When described service server certification is passed through, described service server return to described management center server 60 Return described first identity configuration information and described second identity configuration information.I.e. service server receives this life When making, it is possible to be authenticated by this authentication information, such as: judge whether service server has been added to Other administrative center, if so, authentification failure, if it is not, then certification is passed through;Or, it is judged that administrative center takes Whether business device 60 has permission and service server is added administrative center, is if so, passed through by certification, if it is not, then Authentification failure;Certainly can also judge whether service server has been added to administrative center, if otherwise judging pipe Whether reason central server 60 has permission and service server is added administrative center, when the two judges all to pass through Time, then it represents that certification is passed through.
In one embodiment, the Leaf that processor 61 performs to comprise at described first virtual switch is virtual The first mapping relations are set up between switch and described 2nd Root virtual switch, and at described 2nd Root The second mapping relations are set up between interface and the interface of a described Leaf virtual switch of virtual switch After operation, it is also possible to perform to operate as follows:
Delete described first mapping relations and described second mapping relations, and send use to described service server In described service server is removed management center server 60 centre management remove order, so that described The state of a described Root virtual switch is switched to enabled state by service server, described first virtual The pattern of switch switches to aggressive mode;Described aggressive mode is used for allowing to receive user and takes in described business The operation of input on business device.
This operation specifically may include that
Receive the centre management for described service server being removed management center server 60 of user's input Request message, request message comprises the identification information of service server;
The central canal for described service server being removed management center server 60 is sent to service server That manages removes order, so that the state of a described Root virtual switch is switched to by described service server Enabled state, the pattern of described first virtual switch switches to aggressive mode;Described aggressive mode is used for permitting Permitted to receive the operation that user inputs on described service server.
This operation specifically can also include:
What reception service server sent is used for removing in management center server 60 described service server The request message of heart management;
Delete described first mapping relations and described second mapping relations.
Wherein, at service server before or after management center server 60 sends above-mentioned request message, The state of a described Root virtual switch can be switched to enabled state by service server, and described first The pattern of virtual switch switches to aggressive mode;Described aggressive mode is used for allowing to receive user in described industry The operation of input on business server.
Management center server 60 can also remove above-mentioned 2nd Root virtual switch and delete the 2nd Root The interface of virtual switch.
So can realize from administrative center, remove service server.
Receiving the request message for described service server removes administrative center of user's input, request disappears Breath comprises the identification information of service server;
Send to service server and remove order, so that the state of a described Root virtual switch is switched For enabled state, and the pattern of described first virtual switch is switched to aggressive mode;Wherein, described master The operation that dynamic model formula inputs on described service server for allowing reception user.
Above-mentioned second mapping relations are released, or removes above-mentioned 2nd Root virtual switch;
Delete above-mentioned interface.
So can realize from administrative center, remove service server.
In technique scheme, management center server receives the described service server that service server sends First identity configuration information of the Root virtual switch that the first virtual switch of upper deployment comprises and institute Stating the second identity configuration information of the interface of the first virtual switch, the pattern of described first virtual switch is Follower mode, the state of a described Root virtual switch is non-enabled state;Wherein, described from dynamic model Formula is for forbidding the operation that reception user inputs on described service server;Management center server is according to institute State the first identity configuration information configuration the 2nd Root virtual switch, and according to described second identity configuration letter Breath configures the interface of described 2nd Root virtual switch, and wherein said 2nd Root virtual switch is described The mirror image of the oneth Root virtual switch;Management center server comprise at described first virtual switch The first mapping relations are set up between one Leaf virtual switch and described 2nd Root virtual switch, and in institute State and set up second between the interface of the 2nd Root virtual switch and the interface of a described Leaf virtual switch Mapping relations, so that a described Leaf virtual switch function response user is at described management center server The operation of input on 2nd Root virtual switch of upper configuration.Need in compared to existing technology distinguish VSS and VDS, and VSS and VDS is carried out the management of different modes, the present embodiment user have only in administrative center The 2nd Root virtual switch is managed, it is possible to realize the virtual switch on service server on server Management, such as: the operation of user can be by the 2nd Root virtual switch transmission on service server A Leaf virtual switch, a Leaf virtual switch perform this and operate.Thus the present embodiment The efficiency of management virtual switch can be improved.
Figure 16 is the structural representation of the another kind of service server that the embodiment of the present invention provides, and is used for performing basis The management method of virtual switch disclosed in inventive embodiments.As shown in figure 16, this service server 70 wraps Include: at least one processor 71, such as CPU, at least one network interface 74 or other user interfaces 73, memorizer 75, at least one communication bus 72.Communication bus 72 is for realizing between these assemblies Connect communication.Wherein, user interface 73 optionally can include USB interface and other standards interface, Wireline interface.Network interface 74 optionally can include Wi-Fi interface and other wave points.Memorizer 75 may comprise high-speed RAM memorizer, it is also possible to also include non-labile memorizer (non-volatile Memory), for example, at least one disk memory.Memorizer 75 optionally can comprise at least one and be positioned at Storage device away from aforementioned processor 71.
In some embodiments, memorizer 75 stores following element, executable module or data knot Structure, or their subset, or their superset:
Operating system 751, comprises various system program, is used for realizing various basic business and processing based on firmly The task of part;
Application module 752, comprises equipment and controls the various application programs such as service routine, device identification service program, For realizing various applied business.
Specifically, processor 71 operation below calling the program of storage in memorizer 65, performing:
The Root virtual switch that the first virtual switch disposed on described service server 70 is comprised The state of machine switches to non-enabled state, and the pattern of described first virtual switch is switched to follower mode; Wherein, described follower mode is for forbidding the operation that reception user inputs on described service server 70;
The first identity configuration information and the institute of a described Root virtual switch is sent to management center server State the second identity configuration information of the interface of the first virtual switch so that described management center server according to Described first identity configuration information configuration the 2nd Root virtual switch, and according to described second identity configuration The interface of the 2nd Root virtual switch described in information configuration, wherein said 2nd Root virtual switch is institute State the mirror image of a Root virtual switch;And the Leaf that comprises at described first virtual switch is virtual The first mapping relations are set up between switch and described 2nd Root virtual switch, and at described 2nd Root The second mapping relations are set up between interface and the interface of a described Leaf virtual switch of virtual switch, So that a described Leaf virtual switch function response user configure on described management center server the The operation of input on two Root virtual switches, wherein, the interface of described first virtual switch includes first The interface of Leaf virtual switch and the interface of a Root virtual switch.
When user needs to be managed above-mentioned first virtual switch, user can service in administrative center On device, input is for managing the administration order of above-mentioned first virtual switch, and management center server is again by this pipe Reason order transmission is to above-mentioned 2nd Root virtual switch, and the 2nd Root virtual switch is further according to above-mentioned first Mapping relations and the second mapping relations, transmitted this administration order by the interface of the 2nd Root virtual switch To the interface of a described Leaf virtual switch, then transmitted by the interface of a described Leaf virtual switch To an above-mentioned Leaf virtual switch, an above-mentioned Leaf virtual switch perform this administration order, and An above-mentioned Leaf virtual switch is a part for above-mentioned first virtual switch, and the most above-mentioned Leaf is empty The business intending switch connection is exactly that above-mentioned first virtual switch connects business, and the most above-mentioned Leaf performs this behaviour It is equal to above-mentioned first virtual switch as order and performs this operational order, thus user completes above-mentioned first The management of virtual switch.
Optionally, above-mentioned first virtual switch can be one or more virtual switch, when above-mentioned When one virtual switch is multiple virtual switch, in this enforcement, the 2nd Root virtual switch can be with multiple The Leaf virtual switch of virtual switch sets up the first mapping relations, meanwhile, the 2nd Root virtual switch Configure multiple interface, then the interface of these interfaces Yu multiple virtual switches is set up mapping relations.
In one embodiment, described first identity configuration information comprises what described first virtual switch comprised The identification information of the oneth Root virtual switch and configuration information, described second identity configuration information includes described The identification information of the interface of the first virtual switch and configuration information;The mark of described 2nd Root virtual switch Know identical with the mark of a described Root virtual switch, and the configuration of described 2nd Root virtual switch Parameter is identical with the configuration parameter of a described Root virtual switch;Described 2nd Root virtual switch The mark of interface is identical with the mark of the interface of described first virtual switch, and the described 2nd virtual friendship of Root The configuration parameter of the interface changed planes is identical with the configuration parameter of the interface of described first virtual switch.
In one embodiment, processor 71 sends a described virtual friendship of Root to management center server The first identity configuration information of changing planes and the second identity configuration information of the interface of described first virtual switch Before operation, it is also possible to be used for performing to operate as follows:
Described service server 70 is added described management center server for request and carries out centre management by reception Request.
Wherein, above-mentioned request can be that management center server sends, it is also possible to receives the behaviour of user's input Work generates.
Described service server 70 is added described administrative center for request and takes by the reception that processor 712 performs The operation of the request that business device carries out centre management specifically may include that
Receive the transmission of described management center server adds described pipe for request by described service server 70 Reason central server carries out the order of centre management;Or
Receive described service server 70 is added described management center server the entering of user's input for request The request message of row centre management.
Wherein, described order can also comprise the authentication information for the certification of described service server 70, or Request message can also comprise the authentication information for the certification of described service server 70.
What processor 712 performed sends the first of a described Root virtual switch to management center server The operation of the second identity configuration information of the interface of identity configuration information and described first virtual switch specifically may be used To include:
Described authentication information is used to be authenticated;
When the certification of described service server 70 is passed through, send a described Root to management center server First identity configuration information of virtual switch and the second identity configuration of the interface of described first virtual switch Information.
In one embodiment, what processor 71 performed sends a described Root to management center server First identity configuration information of virtual switch and the second identity configuration of the interface of described first virtual switch After the operation of information, it is also possible to be used for performing to operate as follows:
Receive the centre management for described service server 70 removes management center server removes order Service server 70 remove order, the state of a described Root virtual switch is switched to enable shape State, and the pattern of described first virtual switch is switched to aggressive mode;
Wherein, the operation that described aggressive mode inputs on described service server 70 for allowing reception user.
What processor 71 performed receives for being removed in management center server by described service server 70 The operation removing order removing order service server 70 of heart management is concrete, may include that
Receive the centre management for described service server 70 being removed management center server of user's input Remove order;Or
Receive described management center server send for described service server 70 is removed administrative center clothes Business device centre management remove order.
The state of a described Root virtual switch is switched to enabled state, and by described virtual switch After switching to aggressive mode, service server 70 can also return to management center server and be used for representing institute The state stating Root virtual switch switches to enabled state, described virtual switch to switch to aggressive mode Operation result information.
In technique scheme, the first virtual switch that service server will be disposed on described service server The state of the Root virtual switch comprised switches to non-enabled state, and by described first virtual switch The pattern of machine switches to follower mode;Wherein, described follower mode is used for forbidding receiving user in described business The operation of input on server;Service server sends a described virtual friendship of Root to management center server The the first identity configuration information changed planes and the second identity configuration information of the interface of described first virtual switch, So that described management center server is according to described first identity configuration information configuration the 2nd Root virtual switch Machine, and the interface of described 2nd Root virtual switch is configured according to described second identity configuration information, its Described in the 2nd Root virtual switch be the mirror image of a described Root virtual switch;And described first Is set up between a Leaf virtual switch and described 2nd Root virtual switch that virtual switch comprises One mapping relations, and at interface and a described Leaf virtual switch of described 2nd Root virtual switch Interface between set up the second mapping relations so that described oneth Leaf virtual switch function response user exist On described management center server, the operation of input on the 2nd Root virtual switch of configuration, wherein, described The interface of the first virtual switch includes interface and a Root virtual switch of a Leaf virtual switch Interface.Need in compared to existing technology to distinguish VSS and VDS, and VSS and VDS is carried out not Tongfang The management of formula, embodiment of the present invention user has only to manage the 2nd virtual friendship of Root on management center server Change planes, it is possible to realize the management to the virtual switch on service server, such as: the operation of user can With by the Leaf virtual switch in the 2nd Root virtual switch transmission to service server, by this Leaf virtual switch performs this operation.Thus the present embodiment can improve the efficiency of management virtual switch.
Figure 17 is the structural representation of the management system of a kind of virtual switch that the embodiment of the present invention provides, as Shown in Figure 17, including: at least one service server 81 and management center server 82, wherein:
Service server 81 can be the service server of any embodiment in the embodiment shown in Figure 16, Management center server 82 can be administrative center's service of any embodiment in the embodiment shown in Figure 15 Device.
In technique scheme, the first virtual switch that service server will be disposed on described service server The state of the Root virtual switch comprised switches to non-enabled state, and by described first virtual switch The pattern of machine switches to follower mode;Wherein, described follower mode is used for forbidding receiving user in described business The operation of input on server;Service server sends a described virtual friendship of Root to management center server The the first identity configuration information changed planes and the second identity configuration information of the interface of described first virtual switch, Described management center server configures the 2nd Root virtual switch according to described first identity configuration information, with And the interface according to the described second identity configuration information described 2nd Root virtual switch of configuration, wherein said 2nd Root virtual switch is the mirror image of a described Root virtual switch;And in described first virtual friendship Change planes and set up the first mapping between the Leaf virtual switch and described 2nd Root virtual switch comprised Relation, and the interface of interface and the described Leaf virtual switch at described 2nd Root virtual switch Between set up the second mapping relations so that described oneth Leaf virtual switch function response user at described pipe The operation of input on 2nd Root virtual switch of configuration on reason central server.Need in compared to existing technology VSS and VDS to be distinguished, and VSS and VDS is carried out the management of different modes, the embodiment of the present invention is used Family has only to manage the 2nd Root virtual switch on management center server, it is possible to realize taking business The management of the first virtual switch disposed on business device, such as: the operation of user can be empty by the 2nd Root Intend the Leaf virtual switch that switch is transferred on service server dispose, virtual by a Leaf Switch performs this operation.Thus the present embodiment can improve the efficiency of management virtual switch.
Other realize details reference previous embodiment, repeat no more here.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, Can be by computer program and complete to instruct relevant hardware, described program can be stored in a calculating In machine read/write memory medium, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method. Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, Or random access memory (Random Access Memory, be called for short RAM) etc. ROM).
Above disclosed be only present pre-ferred embodiments, certainly can not with this limit the present invention it Interest field, the equivalent variations therefore made according to the claims in the present invention, still belong to the scope that the present invention is contained.

Claims (22)

1. the management method of a virtual switch, it is characterised in that described virtual switch includes root Root Virtual switch and leaf Leaf virtual switch, described method includes:
It is virtual that management center server receives first disposed on the described service server that service server sends First identity configuration information of the Root virtual switch that switch comprises and described first virtual switch The second identity configuration information of interface, the pattern of described first virtual switch is follower mode, described The state of one Root virtual switch is non-enabled state;Wherein, described follower mode is used for forbidding receiving using The operation that family inputs on described service server;
Described management center server is according to described first identity configuration information configuration the 2nd Root virtual switch Machine, and the interface of described 2nd Root virtual switch is configured according to described second identity configuration information, its Described in the 2nd Root virtual switch be the mirror image of a described Root virtual switch;
The Leaf virtual switch that described management center server comprises at described first virtual switch with The first mapping relations are set up between described 2nd Root virtual switch, and in described 2nd Root virtual switch The second mapping relations are set up between interface and the interface of a described Leaf virtual switch of machine, so that institute State the 2nd Root that a Leaf virtual switch function response user configures on described management center server The operation of input on virtual switch, wherein, the interface of described first virtual switch includes that a Leaf is empty Intend interface and the interface of a Root virtual switch of switch.
2. the method for claim 1, it is characterised in that described first identity configuration information comprises institute Stating identification information and the configuration information of a Root virtual switch, described second identity configuration information includes institute State identification information and the configuration information of the interface of the first virtual switch;
Described management center server is according to described first identity configuration information configuration the 2nd Root virtual switch Machine, and the step of the interface of described 2nd Root virtual switch is configured according to described second identity configuration information Suddenly, including:
Described management center server is believed according to identification information and the configuration of a described Root virtual switch Breath, is configured to the mark of described 2nd Root virtual switch and the mark of a described Root virtual switch Sensible same, and the configuration parameter of described 2nd Root virtual switch is configured to virtual with a described Root The configuration parameter of switch is identical;
Described management center server is believed according to identification information and the configuration of the interface of described first virtual switch Breath, is configured to the mark of the interface of described 2nd Root virtual switch and described first virtual switch The mark of interface is identical, and is configured to and institute by the configuration parameter of the interface of described 2nd Root virtual switch The configuration parameter of the interface stating the first virtual switch is identical.
3. method as claimed in claim 1 or 2, it is characterised in that described management center server receives The Root that the first virtual switch disposed on the described service server that service server sends comprises is empty Intend the second identity configuration letter of the first identity configuration information of switch and the interface of described first virtual switch Before the step of breath, described method also includes:
Described management center server receives the request that is used for of user's input and is added by described service server described Management center server carries out the request message of centre management, and described request message comprises described service server Identification information;
Described management center server is sent out to described service server according to the identification information of described service server Send the order that for request, the described service server described management center server of addition is carried out centre management, So that described service server returns described first identity configuration information and described to described management center server Second identity configuration information.
4. method as claimed in claim 3, it is characterised in that described request message also comprises for described The authentication information of service server certification;
Described order also comprises described authentication information, so that described service server uses described authentication information to enter Row certification, when described service server certification is passed through, is taken to described administrative center by described service server Business device returns described first identity configuration information and described second identity configuration information.
5. method as claimed in claim 1 or 2, it is characterised in that described management center server is in institute State between a Leaf virtual switch and the described 2nd Root virtual switch that the first virtual switch comprises Set up the first mapping relations, and virtual with a described Leaf at the interface of described 2nd Root virtual switch After setting up the step of the second mapping relations between the interface of switch, described method also includes:
Delete described first mapping relations and described second mapping relations, and send use to described service server In described service server is removed management center server centre management remove order, so that described industry The state of a described Root virtual switch is switched to enabled state, described first virtual friendship by business server The pattern changed planes switches to aggressive mode;Described aggressive mode is used for allowing to receive user in described business service The operation of input on device.
6. the management method of a virtual switch, it is characterised in that described virtual switch comprises root Root Virtual switch and leaf Leaf virtual switch, described method includes:
The Root that the first virtual switch disposed on described service server is comprised by service server is empty The state intending switch switches to non-enabled state, and the pattern of described first virtual switch is switched to from Dynamic model formula;Wherein, described follower mode is for forbidding the behaviour that reception user inputs on described service server Make;
Described service server sends the first body of a described Root virtual switch to management center server Second identity configuration information of the interface of part configuration information and described first virtual switch, so that described management Central server configures the 2nd Root virtual switch according to described first identity configuration information, and according to institute State the second identity configuration information and configure the interface of described 2nd Root virtual switch, wherein said 2nd Root Virtual switch is the mirror image of a described Root virtual switch;And comprise at described first virtual switch A Leaf virtual switch and described 2nd Root virtual switch between set up the first mapping relations, and Set up between the interface and the interface of a described Leaf virtual switch of described 2nd Root virtual switch Second mapping relations, so that a described Leaf virtual switch function response user takes in described administrative center The operation of input on 2nd Root virtual switch of configuration on business device, wherein, described first virtual switch Interface include interface and the interface of a Root virtual switch of a Leaf virtual switch.
7. method as claimed in claim 6, it is characterised in that described first identity configuration information comprises institute Stating identification information and the configuration information of a Root virtual switch, described second identity configuration information includes institute State identification information and the configuration information of the interface of the first virtual switch;Described 2nd Root virtual switch Identify identical with the mark of a described Root virtual switch, and the joining of described 2nd Root virtual switch Put parameter identical with the configuration parameter of a described Root virtual switch;Described 2nd Root virtual switch The mark of interface identical with the mark of the interface of described first virtual switch, and described 2nd Root is virtual The configuration parameter of the interface of switch is identical with the configuration parameter of the interface of described first virtual switch.
Method the most as claimed in claims 6 or 7, it is characterised in that described service server is in management Central server sends the first identity configuration information of a described Root virtual switch and described first virtual friendship Before the step of the second identity configuration information of the interface changed planes, described method also includes:
What the described service server described management center server of reception sent is used for request by described business service Device adds described management center server and carries out the order of centre management;Or
Described service server receives the request that is used for of user's input and described service server is added described management Central server carries out the request message of centre management.
9. method as claimed in claim 8, it is characterised in that described order also comprises for described business The authentication information of server authentication, or ask message also to comprise the certification for described service server certification Information;
Described service server sends the first body of a described Root virtual switch to management center server The step of the second identity configuration information of the interface of part configuration information and described first virtual switch, including:
Described service server uses described authentication information to be authenticated;
When described service server certification is passed through, described service server sends institute to management center server State the of the first identity configuration information of a Root virtual switch and the interface of described first virtual switch Two identity configuration informations.
Method the most as claimed in claims 6 or 7, it is characterised in that described service server is to management Central server sends the first identity configuration information of a described Root virtual switch and described first virtual After the step of the second identity configuration information of the interface of switch, described method also includes:
What the described service server described management center server of reception sent is used for moving described service server Except management center server centre management remove order;Described service server is by empty for a described Root The state intending switch switches to enabled state, and the pattern of described first virtual switch is switched to actively Pattern;Or,
What described service server reception user inputted is used for described service server removes administrative center's service The centre management of device remove order;Described service server is by the state of a described Root virtual switch Switch to enabled state, and the pattern of described first virtual switch is switched to aggressive mode;
Wherein, the operation that described aggressive mode inputs on described service server for allowing reception user.
11. 1 kinds of management center servers, are used for managing virtual switch, it is characterised in that described virtual Switch comprises root Root virtual switch and leaf Leaf virtual switch, described management center server bag Include: first receives unit, dispensing unit and set up unit, wherein:
Described first receives unit, for receiving deployment on the described service server that service server sends First identity configuration information of the Root virtual switch that the first virtual switch comprises and described first void Intending the second identity configuration information of the interface of switch, the pattern of described first virtual switch is follower mode, The state of a described Root virtual switch is non-enabled state;Wherein, described follower mode is used for forbidding Receive the operation that user inputs on described service server;
Described dispensing unit, for configuring the 2nd Root virtual switch according to described first identity configuration information, And the interface according to the described second identity configuration information described 2nd Root virtual switch of configuration, Qi Zhongsuo State the mirror image that the 2nd Root virtual switch is a described Root virtual switch;
Described set up unit, for the Leaf virtual switch that comprises at described first virtual switch with The first mapping relations are set up between described 2nd Root virtual switch, and in described 2nd Root virtual switch The second mapping relations are set up between interface and the interface of a described Leaf virtual switch of machine, so that institute State the 2nd Root that a Leaf virtual switch function response user configures on described management center server The operation of input on virtual switch, wherein, the interface of described first virtual switch includes that a Leaf is empty Intend interface and the interface of a Root virtual switch of switch.
12. management center servers as claimed in claim 11, it is characterised in that described first identity is joined Confidence breath comprises identification information and the configuration information of a described Root virtual switch, and described second identity is joined Confidence breath includes identification information and the configuration information of the interface of described first virtual switch;
Described dispensing unit is specifically for the identification information according to a described Root virtual switch and configuration letter Breath, is configured to the mark of described 2nd Root virtual switch and the mark of a described Root virtual switch Sensible same, and the configuration parameter of described 2nd Root virtual switch is configured to virtual with a described Root The configuration parameter of switch is identical;And according to the identification information of the interface of described first virtual switch with join Confidence ceases, by described 2nd Root virtual switch the mark of interface be configured to and described first virtual friendship The mark of the interface changed planes is identical, and by described 2nd Root virtual switch the configuration parameter of interface join It is set to identical with the configuration parameter of the interface of described first virtual switch.
13. management center servers as described in claim 11 or 12, it is characterised in that described management Central server also includes:
Second receives unit, adds described for request by described service server for receive user's input Management center server carries out the request message of centre management, and described request message comprises described service server Identification information;
Transmitting element, sends use for the identification information according to described service server to described service server In request, the described service server described management center server of addition is carried out the order of centre management, so that Described service server returns described first identity configuration information and described second to described management center server Identity configuration information.
14. management center servers as claimed in claim 13, it is characterised in that
Described second receives unit specifically for receiving being added by described service server for request of user's input Entering described management center server and carry out the request message of centre management, described request message comprises described business The identification information of server and the authentication information for described service server certification;
Described transmitting element specifically for the identification information according to described service server to described service server Send the life that for request, the described service server described management center server of addition is carried out centre management Order, described order also comprises described authentication information, so that described service server uses described authentication information to enter Row certification, when described service server certification is passed through, returns described first to described management center server Identity configuration information and described second identity configuration information.
15. management center servers as described in claim 11 or 12, it is characterised in that described management Central server also includes:
Delete unit, be used for deleting described first mapping relations and described second mapping relations, and described first The state of Root virtual switch is enabled state, described first virtual switch for aggressive mode;Described The operation that aggressive mode inputs on described service server for allowing reception user.
16. 1 kinds of service servers, it is characterised in that be deployed with the first virtual friendship on described service server Changing planes, described first virtual switch comprises first Root virtual switch and the first virtual friendship of leaf Leaf Changing planes, described service server includes: switch unit and transmitting element, wherein:
Described switch unit, for the first virtual switch disposed on described service server is comprised the The state of one Root virtual switch switches to non-enabled state, and by the pattern of described first virtual switch Switch to follower mode;Wherein, described follower mode is used for forbidding receiving user at described service server The operation of input;
Described transmitting element, for sending the of a described Root virtual switch to management center server Second identity configuration information of the interface of one identity configuration information and described first virtual switch, so that described Management center server is according to described first identity configuration information configuration the 2nd Root virtual switch, Yi Jigen According to described second identity configuration information configure described 2nd Root virtual switch interface, wherein said second Root virtual switch is the mirror image of a described Root virtual switch;And at described first virtual switch Set up the first mapping between the Leaf virtual switch and the described 2nd Root virtual switch that comprise to close System, and described 2nd Root virtual switch interface and a described Leaf virtual switch interface it Between set up the second mapping relations so that described oneth Leaf virtual switch function response user in described management The operation of input on 2nd Root virtual switch of configuration on central server, wherein, described first virtual The interface of switch includes interface and the interface of a Root virtual switch of a Leaf virtual switch.
17. service servers as claimed in claim 16, it is characterised in that described transmitting element is specifically used In sending the first identity configuration information of a described Root virtual switch and described to management center server Second identity configuration information of the interface of the first virtual switch, wherein said first identity configuration information comprises The identification information of a described Root virtual switch and configuration information, described second identity configuration information includes The identification information of the interface of described first virtual switch and configuration information;So that described management center server Identification information according to a described Root virtual switch and configuration information, by the described 2nd virtual friendship of Root The mark changed planes is configured to identical with the mark of a described Root virtual switch, and by described 2nd Root The configuration parameter of virtual switch is configured to identical with the configuration parameter of a described Root virtual switch Two Root virtual switches;And believe with configuration according to the identification information of the interface of described first virtual switch Breath, is configured to the interface identifier of described 2nd Root virtual switch and the connecing of described first virtual switch The mark of mouth is identical, and is configured to the configuration parameter of the interface of described 2nd Root virtual switch with described The interface of the 2nd Root virtual switch that the configuration parameter of the interface of the first virtual switch is identical;And institute State between a Leaf virtual switch and the described 2nd Root virtual switch that the first virtual switch comprises Set up the first mapping relations, and virtual with a described Leaf at the interface of described 2nd Root virtual switch The second mapping relations are set up between the interface of switch, so that a described Leaf virtual switch function response The operation of input on the 2nd Root virtual switch that user configures on described management center server.
18. service servers as described in claim 16 or 17, it is characterised in that described business service Device also includes:
Receive unit, for receive described management center server send for request by described business service Device adds described management center server and carries out the order of centre management;Or, for receiving user's input For request, the request that the described service server described management center server of addition carries out centre management is disappeared Breath.
19. service servers as claimed in claim 18, it is characterised in that described order also comprise for The authentication information of described service server certification, or request message also comprises and recognizes for described service server The authentication information of card;
Described transmitting element is specifically for using described authentication information to be authenticated, when described certification is passed through, The first identity configuration information and described the of a described Root virtual switch is sent to management center server Second identity configuration information of the interface of one virtual switch, so that described management center server is according to described First identity configuration information configuration the 2nd Root virtual switch, and according to described second identity configuration information Configuring the interface of described 2nd Root virtual switch, wherein said 2nd Root virtual switch is described The mirror image of one Root virtual switch;And the Leaf virtual switch comprised at described first virtual switch The first mapping relations are set up between machine and described 2nd Root virtual switch, and virtual at described 2nd Root The second mapping relations are set up between interface and the interface of a described Leaf virtual switch of switch, so that Described oneth Leaf virtual switch function response user configure on described management center server second The operation of input on Root virtual switch.
20. service servers as described in claim 16 or 17, it is characterised in that described business service Device also includes:
Remove unit, for receiving the central canal for described service server being removed management center server That manages removes order;The state of a described Root virtual switch is switched to enabled state, and by described The pattern of the first virtual switch switches to aggressive mode;Or, for receive user input for by institute State service server remove management center server centre management remove order;By empty for a described Root The state intending switch switches to enabled state, and the pattern of described first virtual switch is switched to actively Pattern;
Wherein, the operation that described aggressive mode inputs on described service server for allowing reception user;
Switch unit is additionally operable to switch to the state of a described Root virtual switch enabled state, and will The pattern of described first virtual switch switches to aggressive mode;
Wherein, the operation that described aggressive mode inputs on described service server for allowing reception user.
The management system of 21. 1 kinds of virtual switches, it is characterised in that described system includes: business service Device and management center server, described service server is deployed with the first virtual switch, and described first is empty Intending switch and include a Leaf virtual switch and a Root virtual switch, described administrative center services Device is deployed with the second virtual switch, wherein:
Described service server, for switching to non-enable shape by the state of a described Root virtual switch State, and the pattern of described first virtual switch is switched to follower mode;And in described management Central server sends the first identity configuration information of a described Root virtual switch and described first virtual friendship Second identity configuration information of the interface changed planes;Wherein, described follower mode is used for forbidding receiving user in institute Stating the operation of input on service server, the interface of described first virtual switch includes a virtual friendship of Leaf The interface changed planes and the interface of a Root virtual switch;
Described management center server, for virtual according to described first identity configuration information configuration the 2nd Root Switch, and the interface of described 2nd Root virtual switch is configured according to described second identity configuration information, Wherein said 2nd Root virtual switch is the mirror image of a described Root virtual switch;And be used for The first mapping relations are set up between a described Leaf virtual switch and described 2nd Root virtual switch, And build between the interface and the interface of a described Leaf virtual switch of described 2nd Root virtual switch Vertical second mapping relations, so that a described Leaf virtual switch function response user is in described administrative center The operation of input on the described 2nd Root virtual switch of configuration on server, wherein, described second virtual Switch includes described 2nd Root virtual switch.
22. systems as claimed in claim 21, it is characterised in that described management center server is additionally operable to Delete described first mapping relations and described second mapping relations;
Described service server is additionally operable to the state of a described Root virtual switch is switched to enable shape State, and the pattern of described first virtual switch is switched to aggressive mode;
Wherein, the operation that described aggressive mode inputs on described service server for allowing reception user.
CN201310209652.1A 2013-05-30 2013-05-30 The management method of a kind of virtual switch, equipment and system Expired - Fee Related CN103338117B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310209652.1A CN103338117B (en) 2013-05-30 2013-05-30 The management method of a kind of virtual switch, equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310209652.1A CN103338117B (en) 2013-05-30 2013-05-30 The management method of a kind of virtual switch, equipment and system

Publications (2)

Publication Number Publication Date
CN103338117A CN103338117A (en) 2013-10-02
CN103338117B true CN103338117B (en) 2016-12-28

Family

ID=49246221

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310209652.1A Expired - Fee Related CN103338117B (en) 2013-05-30 2013-05-30 The management method of a kind of virtual switch, equipment and system

Country Status (1)

Country Link
CN (1) CN103338117B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106464596B (en) * 2014-06-03 2019-08-20 华为技术有限公司 Open flows communication means, system, controller and Service Gateway
CN113923118A (en) * 2021-09-06 2022-01-11 锐捷网络股份有限公司 Virtual switch batch deployment method, server, switch and data center

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1826769A (en) * 2003-09-18 2006-08-30 思科技术公司 Virtual network device
CN101848052A (en) * 2009-03-27 2010-09-29 中国电信股份有限公司 Service mapping configuration method and system of multi-domain network
CN102103518A (en) * 2011-02-23 2011-06-22 运软网络科技(上海)有限公司 System for managing resources in virtual environment and implementation method thereof
CN102316043A (en) * 2011-09-29 2012-01-11 中国联合网络通信集团有限公司 Port virtualization method, switch and communication system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5074274B2 (en) * 2008-04-16 2012-11-14 株式会社日立製作所 Computer system and communication path monitoring method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1826769A (en) * 2003-09-18 2006-08-30 思科技术公司 Virtual network device
CN101848052A (en) * 2009-03-27 2010-09-29 中国电信股份有限公司 Service mapping configuration method and system of multi-domain network
CN102103518A (en) * 2011-02-23 2011-06-22 运软网络科技(上海)有限公司 System for managing resources in virtual environment and implementation method thereof
CN102316043A (en) * 2011-09-29 2012-01-11 中国联合网络通信集团有限公司 Port virtualization method, switch and communication system

Also Published As

Publication number Publication date
CN103338117A (en) 2013-10-02

Similar Documents

Publication Publication Date Title
CN103621046B (en) Network communication method and device
CN107153565B (en) Method for configuring resource and network equipment thereof
CN104753697B (en) A kind of method, equipment and system controlling the automatic beginning of the network equipment
CN102684970B (en) Thin-client environment providing system, server and thin-client environmental management technique
CN103026660A (en) Network policy configuration method, management device and network management centre device
CN104639372A (en) Correlation method and system for overlay network based on SDN (Software Defined Network) and physical network
CN109768892B (en) Micro-service network security experiment system
CN106383736B (en) Ports-Extending method and apparatus
CN110572439B (en) Cloud monitoring method based on metadata service and virtual forwarding network bridge
EP3031174A1 (en) Hybrid network management
CN102316043B (en) Port virtualization method, switch and communication system
CN108713309A (en) SD-WAN system, use method of SD-WAN system and related device
CN105337750B (en) Fibre channel sans configuration method and device
CN105763356A (en) Resource virtualization processing method, device and controller
CN109714206A (en) Electric power monitoring system Generating Network Topology Map, network bus topological diagram
CN107800743A (en) Cloud desktop system, cloud management system and relevant device
CN102098309A (en) Device and method for realizing multiuser access to USB equipment
US11283804B2 (en) Group zoning and access control over a network
CN111835820A (en) System and method for realizing cloud management
CN103684861A (en) Method and device for processing network configuration and communication system
CN103338117B (en) The management method of a kind of virtual switch, equipment and system
CN115348126A (en) Network target range entity equipment access method, device and implementation system
CN110764987A (en) Hardware equipment access method in network simulation test system based on virtualization technology
CN103207801A (en) Method, device and system for migrating virtual machine and fiber channel switch
CN114650223A (en) Network configuration method and device of Kubernetes cluster and electronic equipment

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20161228

Termination date: 20180530

CF01 Termination of patent right due to non-payment of annual fee