














技术领域technical field
本发明涉及通信领域,尤其涉及一种虚拟交换机的管理方法、设备及系统。The present invention relates to the communication field, in particular to a management method, device and system of a virtual switch.
背景技术Background technique
随着虚拟技术的出现与发展,一个设备中可以存在多个虚拟机,且该设备中可以存在虚拟交换机,该设备中的虚拟机可以通过网卡连接在该虚拟交换机上,且该虚拟交换机与物理网络连接时,这些虚拟机之间就可以进行通信。如果该物理网络连接了外部网络时,这些虚拟机就可以与外部网络的物理设备进行通信。在实际应用中,一个集群中存在数百上千台设备,而每个设备中又存一个或者多个虚拟交换机,因此如何高效管理这些虚拟交换机成为一个重大的问题。With the emergence and development of virtual technology, there can be multiple virtual machines in one device, and there can be a virtual switch in the device, and the virtual machines in the device can be connected to the virtual switch through a network card, and the virtual switch is connected to the physical Communication between these virtual machines is possible when the network is connected. If the physical network is connected to an external network, these virtual machines can communicate with physical devices on the external network. In practical applications, there are hundreds or even thousands of devices in a cluster, and each device has one or more virtual switches, so how to efficiently manage these virtual switches becomes a major problem.
目前主要通过如下方法解决上述问题:At present, the above problems are mainly solved by the following methods:
在设备上创建虚拟标准交换机(Virtual Standard Switch,VSS),该虚拟标准交换机用于单个设备中的虚拟机之间,以及用于该设备的虚拟机对外通信。当该设备需要加入集群或者管理中心时,在管理中心设备上创建覆盖上述设备的虚拟机的虚拟分布式交换机(Virtual Distributed Switch,VDS),并在上述设备中生成一个代理交换机(Proxy Switch),该Proxy Switch用于执行数据交换,这样用户就可以通过管理中心设备管理VDS,且管理VDS的操作会传递ProxySwitch,该Proxy Switch执行相应的操作。而上述设备存在VSS,当用户需要对其进行管理时,需要通过管理中心设备远程登录至上述设备上,才可以对VSS进行管理,即执行本地操作。Create a virtual standard switch (Virtual Standard Switch, VSS) on the device. The virtual standard switch is used between virtual machines in a single device and for external communication of virtual machines on the device. When the device needs to join the cluster or management center, create a virtual distributed switch (Virtual Distributed Switch, VDS) covering the virtual machine of the above device on the management center device, and generate a proxy switch (Proxy Switch) in the above device, The Proxy Switch is used to perform data exchange, so that the user can manage the VDS through the management center device, and the operation of managing the VDS will be passed to the Proxy Switch, and the Proxy Switch will perform the corresponding operation. However, there is a VSS in the above-mentioned device. When the user needs to manage it, he needs to remotely log in to the above-mentioned device through the management center device to manage the VSS, that is, perform local operations.
上述技术方案中,由于存在VSS和VDS,而这两种虚拟交换机能够支持执行不同操作,这样用户在操作前需要判断用户当前想要执行的操作是对应的是哪一个虚拟交换机,且当用户当前想要执行的操作对应的为VSS,用户还需要通过管理中心设备远程登录该VSS所在的设备,这样可以操作管理该VSS。从而可以得出现有的管理虚拟交换机的效率很低。In the above technical solution, due to the existence of VSS and VDS, these two virtual switches can support the execution of different operations, so the user needs to determine which virtual switch corresponds to the operation the user wants to perform before the operation, and when the user currently The operation you want to perform corresponds to the VSS, and the user also needs to remotely log in to the device where the VSS is located through the management center device, so that the VSS can be operated and managed. Therefore, it can be concluded that the efficiency of the existing management virtual switch is very low.
发明内容Contents of the invention
本发明实施例提供了一种虚拟交换机的管理方法、设备及系统,可以提高管理虚拟交换机的效率。Embodiments of the present invention provide a management method, device and system for a virtual switch, which can improve the efficiency of managing the virtual switch.
第一方面,本发明实施例提供的一种虚拟交换机的管理方法,虚拟交换机包含根(Root)虚拟交换机和叶子(Leaf)虚拟交换机,所述方法包括:In the first aspect, a method for managing a virtual switch provided by an embodiment of the present invention, the virtual switch includes a root (Root) virtual switch and a leaf (Leaf) virtual switch, and the method includes:
管理中心服务器接收业务服务器发送的所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,所述第一虚拟交换机的模式为从动模式,所述第一Root虚拟交换机的状态为非使能状态;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作;The management center server receives the first identity configuration information of the first Root virtual switch included in the first virtual switch deployed on the service server and the second identity configuration information of the interface of the first virtual switch sent by the service server, and the The mode of the first virtual switch is a slave mode, and the state of the first Root virtual switch is a non-enabled state; wherein, the slave mode is used to prohibit receiving operations input by users on the service server;
所述管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;The management center server configures a second root virtual switch according to the first identity configuration information, and configures an interface of the second root virtual switch according to the second identity configuration information, wherein the second root virtual switch is the Describe the image of the first Root virtual switch;
所述管理中心服务器在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作,其中,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口。The management center server establishes a first mapping relationship between the first Leaf virtual switch contained in the first virtual switch and the second Root virtual switch, and establishes a first mapping relationship between the interface of the second Root virtual switch and the second Root virtual switch. A second mapping relationship is established between interfaces of a Leaf virtual switch, so that the first Leaf virtual switch can respond to an operation input by a user on the second Root virtual switch configured on the management center server, wherein the first An interface of a virtual switch includes an interface of the first Leaf virtual switch and an interface of the first Root virtual switch.
在第一方面的第一种可能的实现方式中,所述第一身份配置信息包含所述第一Root虚拟交换机的标识信息和配置信息,所述第二身份配置信息包括所述第一虚拟交换机的接口的标识信息和配置信息;In a first possible implementation manner of the first aspect, the first identity configuration information includes the identification information and configuration information of the first Root virtual switch, and the second identity configuration information includes the first virtual switch The identification information and configuration information of the interface;
所述管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口的步骤,包括:The management center server configures the second Root virtual switch according to the first identity configuration information, and configures the interface of the second Root virtual switch according to the second identity configuration information, including:
所述管理中心服务器根据所述第一Root虚拟交换机的标识信息和配置信息,配置标识与所述第一Root虚拟交换机的标识相同,且配置参数与所述第一Root虚拟交换机的配置参数相同的第二Root虚拟交换机;The management center server, according to the identification information and configuration information of the first Root virtual switch, configures the identification to be the same as the identification of the first Root virtual switch, and the configuration parameters are the same as the configuration parameters of the first Root virtual switch The second Root virtual switch;
所述管理中心服务器根据所述第一虚拟交换机的接口的标识信息和配置信息的标识信息和配置信息,配置标识与所述第一虚拟交换机的接口的标识信息和配置信息的标识相同,且配置参数与所述第一虚拟交换机的接口的标识信息和配置信息的配置参数相同的第二Root虚拟交换机的接口。According to the identification information of the interface of the first virtual switch and the identification information of the configuration information and the configuration information of the management center server, the configuration identification is the same as the identification information of the interface of the first virtual switch and the identification of the configuration information, and the configuration The interface of the second Root virtual switch whose parameters are the same as the identification information of the interface of the first virtual switch and configuration parameters of the configuration information.
结合第一方面的上述任一实现方式,在第一方面的第二种可能的实现方式中,管理中心服务器接收业务服务器发送的所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息的步骤之前,所述方法还包括:With reference to any of the above implementation manners of the first aspect, in the second possible implementation manner of the first aspect, the management center server receives the first Root virtual Before the steps of the first identity configuration information of the switch and the second identity configuration information of the interface of the first virtual switch, the method further includes:
所述管理中心服务器接收用户输入的用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的请求消息,所述请求消息包含所述业务服务器的标识信息;The management center server receives a request message input by a user for requesting that the service server be added to the management center server for central management, and the request message includes identification information of the service server;
所述管理中心服务器根据所述业务服务器的标识信息向所述业务服务器发送用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的命令,以使所述业务服务器向所述管理中心服务器返回所述第一身份配置信息和所述第二身份配置信息。The management center server sends to the service server a command for requesting to add the service server to the management center server for central management according to the identification information of the service server, so that the service server sends a request to the management center The server returns the first identity configuration information and the second identity configuration information.
结合第一方面或者第一方面的第一种可能的实现方式,在第一方面的第三种可能的实现方式中,所述管理中心服务器在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系的步骤之后,所述方法还包括:With reference to the first aspect or the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the management center server, on the first Leaf virtual switch included in the first virtual switch After the step of establishing a first mapping relationship with the second Root virtual switch, and establishing a second mapping relationship between the interface of the second Root virtual switch and the interface of the first Leaf virtual switch, the Methods also include:
删除所述第一映射关系和所述第二映射关系,并向所述业务服务器发送用于将所述业务服务器移除管理中心服务器的中心管理的移除命令,以使所述业务服务器将所述第一Root虚拟交换机的状态切换为使能状态,所述第一虚拟交换机的模式切换为主动模式;所述主动模式用于允许接收用户在所述业务服务器上输入的操作。deleting the first mapping relationship and the second mapping relationship, and sending a remove command for removing the service server from the central management of the management center server to the service server, so that the service server removes the The state of the first Root virtual switch is switched to an enabled state, and the mode of the first virtual switch is switched to an active mode; the active mode is used to allow receiving operations input by users on the service server.
第二方面,本发明实施例提供一种虚拟交换机的管理方法,虚拟交换机包含Root虚拟交换机和Leaf虚拟交换机,所述方法包括:In a second aspect, an embodiment of the present invention provides a method for managing a virtual switch, where the virtual switch includes a Root virtual switch and a Leaf virtual switch, and the method includes:
业务服务器将所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的状态切换为非使能状态,并将所述第一虚拟交换机的模式切换为从动模式;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作;The service server switches the state of the first Root virtual switch included in the first virtual switch deployed on the service server to a non-enabled state, and switches the mode of the first virtual switch to a slave mode; wherein, the The slave mode is used to prohibit receiving operations input by users on said business server;
所述业务服务器向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,以使所述管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;并在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作,其中,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口。The service server sends the first identity configuration information of the first Root virtual switch and the second identity configuration information of the interface of the first virtual switch to the management center server, so that the management center server The identity configuration information configures a second Root virtual switch, and configures an interface of the second Root virtual switch according to the second identity configuration information, wherein the second Root virtual switch is a mirror image of the first Root virtual switch; and Establish a first mapping relationship between the first Leaf virtual switch contained in the first virtual switch and the second Root virtual switch, and establish a first mapping relationship between the interface of the second Root virtual switch and the first Leaf virtual switch A second mapping relationship is established between the interfaces, so that the first Leaf virtual switch can respond to an operation input by the user on the second Root virtual switch configured on the management center server, wherein the interface of the first virtual switch Including the interface of the first Leaf virtual switch and the interface of the first Root virtual switch.
在第二方面的第一种可能的实现方式中,所述第一身份配置信息包含所述第一虚拟交换机包含的第一Root虚拟交换机的标识信息和配置信息,所述第二身份配置信息包括所述第一虚拟交换机的接口的标识信息和配置信息;所述第二Root虚拟交换机的标识与所述第一Root虚拟交换机的标识相同,且所述第二Root虚拟交换机的配置参数与所述第一Root虚拟交换机的配置参数相同;所述第二Root虚拟交换机的接口的标识与所述第一虚拟交换机的接口的标识相同,且所述第二Root虚拟交换机的接口的配置参数与所述第一虚拟交换机的接口的配置参数相同。In a first possible implementation manner of the second aspect, the first identity configuration information includes identification information and configuration information of the first Root virtual switch included in the first virtual switch, and the second identity configuration information includes The identification information and configuration information of the interface of the first virtual switch; the identification of the second Root virtual switch is the same as the identification of the first Root virtual switch, and the configuration parameters of the second Root virtual switch are the same as the The configuration parameters of the first Root virtual switch are the same; the identifier of the interface of the second Root virtual switch is the same as the identifier of the interface of the first virtual switch, and the configuration parameters of the interface of the second Root virtual switch are the same as those of the interface of the first virtual switch. The configuration parameters of the interfaces of the first virtual switch are the same.
结合第二方面的上述任一实现方式,在第二方面的第二种可能的实现方式中,所述业务服务器向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息的步骤之前,所述方法还包括:With reference to any of the above implementation manners of the second aspect, in a second possible implementation manner of the second aspect, the service server sends the first identity configuration information of the first Root virtual switch and the Before the step of configuring the second identity information of the interface of the first virtual switch, the method further includes:
所述业务服务器接收所述管理中心服务器发送的用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的命令;或者The service server receives a command sent by the management center server to request that the service server be added to the management center server for central management; or
所述业务服务器接收用户输入的用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的请求消息。The service server receives a request message input by a user for requesting that the service server be added to the management center server for central management.
结合第二方面的第一种可能的实现方式,在第二方面的第三种可能的实现方式中,所述命令还包含用于所述业务服务器认证的认证信息,或者请求消息还包含用于所述业务服务器认证的认证信息;With reference to the first possible implementation of the second aspect, in a third possible implementation of the second aspect, the command further includes authentication information used for authentication of the service server, or the request message further includes Authentication information of the service server authentication;
所述业务服务器向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,包括:The service server sends the first identity configuration information of the first Root virtual switch and the second identity configuration information of the interface of the first virtual switch to the management center server, including:
所述业务服务器使用所述认证信息进行认证;The service server performs authentication using the authentication information;
当所述业务服务器认证通过时,所述业务服务器向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息。When the service server passes the authentication, the service server sends the first identity configuration information of the first Root virtual switch and the second identity configuration information of the interface of the first virtual switch to the management center server.
结合第二方面或者第二方面的第一种可能的实现方式,在第二方面的第四种可能的实现方式中,所述业务服务器向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息的步骤之后,所述方法还包括:With reference to the second aspect or the first possible implementation of the second aspect, in a fourth possible implementation of the second aspect, the service server sends the first After the steps of the identity configuration information and the second identity configuration information of the interface of the first virtual switch, the method further includes:
所述业务服务器接收所述管理中心服务器发送的用于将所述业务服务器移除管理中心服务器的中心管理的移除命令;所述业务服务器将所述第一Root虚拟交换机的状态切换为使能状态,并将所述第一虚拟交换机的模式切换为主动模式;或者,The service server receives a removal command for removing the service server from the central management of the management center server sent by the management center server; the service server switches the state of the first Root virtual switch to enable state, and switch the mode of the first virtual switch to active mode; or,
所述业务服务器接收用户输入的用于将所述业务服务器移除管理中心服务器的中心管理的移除命令;所述业务服务器将所述第一Root虚拟交换机的状态切换为使能状态,并将所述第一虚拟交换机的模式切换为主动模式;The service server receives a removal command input by the user for removing the service server from the central management of the management center server; the service server switches the state of the first Root virtual switch to an enabled state, and The mode of the first virtual switch is switched to an active mode;
其中,所述主动模式用于允许接收用户在所述业务服务器上输入的操作。Wherein, the active mode is used to allow receiving operations input by users on the service server.
第三方面,本发明实施例提供一种管理中心服务器,用于管理虚拟交换机,所述虚拟交换机包含Root虚拟交换机和Leaf虚拟交换机,所述设备包括:第一接收单元、配置单元和建立单元,其中:In a third aspect, an embodiment of the present invention provides a management center server for managing a virtual switch, the virtual switch includes a Root virtual switch and a Leaf virtual switch, and the device includes: a first receiving unit, a configuration unit, and an establishment unit, in:
所述第一接收单元,用于接收业务服务器发送的所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,所述第一虚拟交换机的模式为从动模式,所述第一Root虚拟交换机的状态为非使能状态;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作;The first receiving unit is configured to receive the first identity configuration information of the first Root virtual switch contained in the first virtual switch deployed on the service server and the second identity configuration information of the interface of the first virtual switch sent by the service server. Identity configuration information, the mode of the first virtual switch is a slave mode, and the state of the first Root virtual switch is a non-enabled state; wherein, the slave mode is used to prohibit receiving users from input operation;
所述配置单元,用于根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;The configuration unit is configured to configure a second Root virtual switch according to the first identity configuration information, and configure an interface of the second Root virtual switch according to the second identity configuration information, wherein the second Root virtual switch Be the image of the first Root virtual switch;
所述建立单元,用于在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作,其中,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口。The establishing unit is configured to establish a first mapping relationship between the first Leaf virtual switch included in the first virtual switch and the second Root virtual switch, and connect the interface of the second Root virtual switch with the A second mapping relationship is established between the interfaces of the first Leaf virtual switch, so that the first Leaf virtual switch can respond to the operation input by the user on the second Root virtual switch configured on the management center server, wherein the The interface of the first virtual switch includes an interface of the first Leaf virtual switch and an interface of the first Root virtual switch.
在第三方面的第一种可能的实现方式中,所述第一身份配置信息包含所述第一Root虚拟交换机的标识信息和配置信息,所述第二身份配置信息包括所述第一虚拟交换机的接口的标识信息和配置信息;In a first possible implementation manner of the third aspect, the first identity configuration information includes the identification information and configuration information of the first Root virtual switch, and the second identity configuration information includes the first virtual switch The identification information and configuration information of the interface;
所述配置单元具体用于根据所述第一Root虚拟交换机的标识信息和配置信息,配置标识与所述第一Root虚拟交换机的标识相同,且配置参数与所述第一Root虚拟交换机的配置参数相同的第二Root虚拟交换机;以及根据所述第一虚拟交换机的接口的标识信息和配置信息的标识信息和配置信息,配置标识与所述第一虚拟交换机的接口的标识信息和配置信息的标识相同,且配置参数与所述第一虚拟交换机的接口的标识信息和配置信息的配置参数相同的第二Root虚拟交换机的接口。The configuration unit is specifically configured to, according to the identification information and configuration information of the first Root virtual switch, configure the identification to be the same as the identification of the first Root virtual switch, and configure parameters to be the same as those of the first Root virtual switch The same second Root virtual switch; and according to the identification information of the interface of the first virtual switch and the identification information of the configuration information and the configuration information, configure the identification information and the configuration information of the interface identifying the first virtual switch The interface of the second Root virtual switch that is the same, and whose configuration parameters are the same as the identification information and configuration parameters of the configuration information of the interface of the first virtual switch.
结合第三方面的上述任一实现方式,在第三方面的第二种可能的实现方式中,所述设备还包括:In combination with any of the foregoing implementation manners of the third aspect, in a second possible implementation manner of the third aspect, the device further includes:
第二接收单元,用于接收用户输入的用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的请求消息,所述请求消息包含所述业务服务器的标识信息;The second receiving unit is configured to receive a request message input by a user for requesting that the service server be added to the management center server for central management, where the request message includes identification information of the service server;
发送单元,用于根据所述业务服务器的标识信息向所述业务服务器发送用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的命令,以使所述业务服务器向所述管理中心服务器返回所述第一身份配置信息和所述第二身份配置信息。A sending unit, configured to send to the service server a command for requesting that the service server be added to the management center server for central management according to the identification information of the service server, so that the service server sends a request to the management center The server returns the first identity configuration information and the second identity configuration information.
结合第三方面的第二种可能的实现方式,在第三方面的第三种可能的实现方式中,所述第二接收单元具体用于接收用户输入的用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的请求消息,所述请求消息包含所述业务服务器的标识信息和用于所述业务服务器认证的认证信息;With reference to the second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the second receiving unit is specifically configured to receive a user-input request for adding the service server to the A request message for the management center server to perform central management, the request message including the identification information of the service server and the authentication information used for authentication of the service server;
所述发送单元具体用于根据所述业务服务器的标识信息向所述业务服务器发送用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的命令,所述命令还包含所述认证信息,以使所述业务服务器使用所述认证信息进行认证,当所述业务服务器认证通过时,由所述业务服务器向所述管理中心服务器返回所述第一身份配置信息和所述第二身份配置信息。The sending unit is specifically configured to send a command for requesting to add the business server to the management center server for central management to the business server according to the identification information of the business server, and the command also includes the authentication information so that the service server uses the authentication information for authentication, and when the service server passes the authentication, the service server returns the first identity configuration information and the second identity configuration information to the management center server information.
结合第三方面或者第三方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,所述设备还包括:With reference to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner of the fourth aspect, the device further includes:
删除单元,用于删除所述第一映射关系和所述第二映射关系,且所述第一Root虚拟交换机的状态为使能状态,所述第一虚拟交换机的为主动模式;所述主动模式用于允许接收用户在所述业务服务器上输入的操作。A deletion unit, configured to delete the first mapping relationship and the second mapping relationship, and the state of the first Root virtual switch is an enabled state, and the state of the first virtual switch is an active mode; the active mode It is used to allow receiving operations input by users on the service server.
第四方面,本发明实施例提供一种业务服务器,所述业务服务器上部署有第一虚拟交换机,所述第一虚拟交换机包含第一Root虚拟交换机和第一Leaf虚拟交换机,所述设备包括:切换单元和发送单元,其中:In a fourth aspect, an embodiment of the present invention provides a service server, where a first virtual switch is deployed on the service server, the first virtual switch includes a first Root virtual switch and a first Leaf virtual switch, and the device includes: Switching unit and sending unit, wherein:
所述切换单元,用于将所述虚拟交换机的管理设上部署的第一虚拟交换机包含的第一Root虚拟交换机的状态切换为非使能状态,并将所述第一虚拟交换机的模式切换为从动模式;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作;The switching unit is configured to switch the state of the first Root virtual switch included in the first virtual switch deployed on the management device of the virtual switch to a non-enabled state, and switch the mode of the first virtual switch to Slave mode; wherein, the slave mode is used to prohibit receiving operations input by users on the service server;
所述发送单元,用于向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,以使所述管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;并在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作,其中,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口。The sending unit is configured to send the first identity configuration information of the first Root virtual switch and the second identity configuration information of the interface of the first virtual switch to the management center server, so that the management center server according to the The first identity configuration information configures the second Root virtual switch, and configures the interface of the second Root virtual switch according to the second identity configuration information, wherein the second Root virtual switch is the first Root virtual switch mirroring; and establish a first mapping relationship between the first Leaf virtual switch contained in the first virtual switch and the second Root virtual switch, and establish a first mapping relationship between the interface of the second Root virtual switch and the first Leaf virtual switch A second mapping relationship is established between interfaces of the virtual switches, so that the first Leaf virtual switch can respond to an operation input by a user on the second Root virtual switch configured on the management center server, wherein the first virtual The interfaces of the switches include the interfaces of the first Leaf virtual switch and the interfaces of the first Root virtual switch.
在第四方面的第一种可能的实现方式中,所述发送单元具体用于向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,其中所述第一身份配置信息包含所述第一虚拟交换机包含的第一Root虚拟交换机的标识信息和配置信息,所述第二身份配置信息包括所述第一虚拟交换机的接口的标识信息和配置信息;以使所述管理中心服务器根据所述第一Root虚拟交换机的标识信息和配置信息,配置标识与所述第一Root虚拟交换机的标识相同,且配置参数与所述第一Root虚拟交换机的配置参数相同的第二Root虚拟交换机;以及根据所述第一虚拟交换机的接口的标识信息和配置信息的标识信息和配置信息,配置标识与所述第一虚拟交换机的接口的标识信息和配置信息的标识相同,且配置参数与所述第一虚拟交换机的接口的标识信息和配置信息的配置参数相同的第二Root虚拟交换机的接口;并在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作。In a first possible implementation manner of the fourth aspect, the sending unit is specifically configured to send the first identity configuration information of the first Root virtual switch and the first identity configuration information of the interface of the first virtual switch to the management center server. Two identity configuration information, wherein the first identity configuration information includes identification information and configuration information of the first Root virtual switch included in the first virtual switch, and the second identity configuration information includes an interface of the first virtual switch identification information and configuration information; so that the management center server, according to the identification information and configuration information of the first Root virtual switch, configures the identification to be the same as the identification of the first Root virtual switch, and the configuration parameters are the same as the first Root virtual switch A second Root virtual switch with the same configuration parameters of the Root virtual switch; and according to the identification information and configuration information of the interface identification information and configuration information of the first virtual switch, configure the identification and the interface of the first virtual switch The identification information and the configuration information have the same identification, and the configuration parameters are the same as the interface identification information of the first virtual switch and the configuration parameters of the configuration information of the second Root virtual switch interface; and included in the first virtual switch Establishing a first mapping relationship between the first Leaf virtual switch and the second Root virtual switch, and establishing a second mapping relationship between the interface of the second Root virtual switch and the interface of the first Leaf virtual switch, So that the first Leaf virtual switch can respond to the operation input by the user on the second Root virtual switch configured on the management center server.
结合第四方面的上述任一实现方式,在第四方面的第二种可能的实现方式中,所述设备还包括:With reference to any of the foregoing implementation manners of the fourth aspect, in a second possible implementation manner of the fourth aspect, the device further includes:
接收单元,用于接收所述管理中心服务器发送的用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的命令;或者,用于接收用户输入的用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的请求消息。A receiving unit, configured to receive a command sent by the management center server for requesting to add the business server to the management center server for central management; or to receive a command input by a user for requesting to add the business server to the A request message for the central management server to perform central management.
结合第四方面的第二种可能的实现方式,在第四方面的第三种可能的实现方式中,所述命令还包含用于所述业务服务器认证的认证信息,或者请求消息还包含用于所述业务服务器认证的认证信息;With reference to the second possible implementation of the fourth aspect, in a third possible implementation of the fourth aspect, the command further includes authentication information used for authentication of the service server, or the request message further includes Authentication information of the service server authentication;
所述发送单元具体用于使用所述认证信息进行认证,当所述认证通过时,向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,以使所述管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;并在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作。The sending unit is specifically configured to use the authentication information to perform authentication, and when the authentication passes, send the first identity configuration information of the first Root virtual switch and the configuration information of the interface of the first virtual switch to the management center server. Second identity configuration information, so that the management center server configures a second Root virtual switch according to the first identity configuration information, and configures an interface of the second Root virtual switch according to the second identity configuration information, wherein the The second Root virtual switch is a mirror image of the first Root virtual switch; and a first mapping relationship is established between the first Leaf virtual switch included in the first virtual switch and the second Root virtual switch, and A second mapping relationship is established between the interface of the second Root virtual switch and the interface of the first Leaf virtual switch, so that the first Leaf virtual switch can respond to the second mapping relationship configured by the user on the management center server. Operations entered on the Root virtual switch.
结合第四方面或者第四方面的第一种可能的实现方式,在第四方面的第四种可能的实现方式中,所述设备还包括:With reference to the fourth aspect or the first possible implementation manner of the fourth aspect, in a fourth possible implementation manner of the fourth aspect, the device further includes:
移除单元,用于接收用于将所述业务服务器移除管理中心服务器的中心管理的移除命令;将所述第一Root虚拟交换机的状态切换为使能状态,并将所述第一虚拟交换机的模式切换为主动模式;或者,用于接收用户输入的用于将所述业务服务器移除管理中心服务器的中心管理的移除命令;将所述第一Root虚拟交换机的状态切换为使能状态,并将所述第一虚拟交换机的模式切换为主动模式;The removal unit is configured to receive a removal command for removing the service server from the central management of the management center server; switch the state of the first Root virtual switch to an enabled state, and transfer the first virtual switch to an enabled state. The mode of the switch is switched to active mode; or, it is used to receive a removal command input by the user for removing the service server from the central management of the management center server; switch the state of the first Root virtual switch to enable state, and switch the mode of the first virtual switch to active mode;
其中,所述主动模式用于允许接收用户在所述业务服务器上输入的操作。Wherein, the active mode is used to allow receiving operations input by users on the service server.
切换单元还用于将所述第一Root虚拟交换机的状态切换为使能状态,并将所述第一虚拟交换机的模式切换为主动模式;The switching unit is also used to switch the state of the first Root virtual switch to an enabled state, and switch the mode of the first virtual switch to an active mode;
其中,所述主动模式用于允许接收用户在所述业务服务器上输入的操作。Wherein, the active mode is used to allow receiving operations input by users on the service server.
第五方面,本发明实施例提供一种虚拟交换机的管理系统,所述系统包括:业务服务器和管理中心服务器,所述业务服务器上部署有第一虚拟交换机,所述第一虚拟交换机包括第一Leaf虚拟交换机和第一Root虚拟交换机,所述管理中心服务器部署有第二虚拟交换机,其中:In a fifth aspect, an embodiment of the present invention provides a virtual switch management system, the system includes: a service server and a management center server, a first virtual switch is deployed on the service server, and the first virtual switch includes a first Leaf virtual switch and the first Root virtual switch, the management center server is deployed with a second virtual switch, wherein:
所述业务服务器,用于将所述第一Root虚拟交换机的状态切换为非使能状态,并将所述第一虚拟交换机的模式切换为从动模式;以及用于向所述管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口;The service server is configured to switch the state of the first Root virtual switch to a non-enabled state, and switch the mode of the first virtual switch to a slave mode; and is used to send to the management center server The first identity configuration information of the first Root virtual switch and the second identity configuration information of the interface of the first virtual switch; wherein, the slave mode is used to prohibit receiving operations input by users on the service server , the interface of the first virtual switch includes an interface of the first Leaf virtual switch and an interface of the first Root virtual switch;
所述管理中心服务器,用于根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;以及用于在所述第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的所述第二Root虚拟交换机上输入的操作,其中,所述第二虚拟交换机包括所述第二Root虚拟交换机。The management center server is configured to configure a second Root virtual switch according to the first identity configuration information, and configure an interface of the second Root virtual switch according to the second identity configuration information, wherein the second Root virtual switch The switch is a mirror image of the first Root virtual switch; and is used to establish a first mapping relationship between the first Leaf virtual switch and the second Root virtual switch, and to establish a first mapping relationship between the interface of the second Root virtual switch Establishing a second mapping relationship with the interface of the first Leaf virtual switch, so that the first Leaf virtual switch can respond to the operation input by the user on the second Root virtual switch configured on the management center server , wherein the second virtual switch includes the second Root virtual switch.
在第五方面的第一种可能的实现方式中,所述管理中心服务器还用于删除所述第一映射关系和所述第二映射关系;In a first possible implementation manner of the fifth aspect, the management center server is further configured to delete the first mapping relationship and the second mapping relationship;
所述业务服务器还用于将所述第一Root虚拟交换机的状态切换为使能状态,并将所述第一虚拟交换机的模式切换为主动模式;The service server is also configured to switch the state of the first Root virtual switch to an enabled state, and switch the mode of the first virtual switch to an active mode;
其中,所述主动模式用于允许接收用户在所述业务服务器上输入的操作。Wherein, the active mode is used to allow receiving operations input by users on the service server.
上述技术方案中,管理中心服务器接收业务服务器发送的所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,所述第一虚拟交换机的模式为从动模式,所述第一Root虚拟交换机的状态为非使能状态;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作;所述管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;所述管理中心服务器在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作,其中,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口。相比现有技术中需要区分VSS和VDS,且对VSS和VDS进行不同方式的管理,本发明实施例用户只需要在管理中心服务器上管理第二Root虚拟交换机,就可以实现对业务服务器上的虚拟交换机的管理,例如:用户的操作可以通过第二Root虚拟交换机传递至业务服务器上部署的第一Leaf虚拟交换机,由第一Leaf虚拟交换机执行该操作。从而本发明实施例可以提高管理虚拟交换机的效率。In the above technical solution, the management center server receives the first identity configuration information of the first Root virtual switch contained in the first virtual switch deployed on the business server and the second identity of the interface of the first virtual switch sent by the business server. Configuration information, the mode of the first virtual switch is a slave mode, and the state of the first Root virtual switch is a non-enabled state; wherein, the slave mode is used to prohibit receiving user input on the service server The operation; the management center server configures the second Root virtual switch according to the first identity configuration information, and configures the interface of the second Root virtual switch according to the second identity configuration information, wherein the second Root virtual switch The switch is a mirror image of the first Root virtual switch; the management center server establishes a first mapping relationship between the first Leaf virtual switch contained in the first virtual switch and the second Root virtual switch, and A second mapping relationship is established between the interface of the second Root virtual switch and the interface of the first Leaf virtual switch, so that the first Leaf virtual switch can respond to the second Root virtual switch configured by the user on the management center server. An operation input on a virtual switch, wherein the interface of the first virtual switch includes an interface of the first Leaf virtual switch and an interface of the first Root virtual switch. Compared with the need to distinguish VSS and VDS in the prior art, and to manage VSS and VDS in different ways, in the embodiment of the present invention, the user only needs to manage the second Root virtual switch on the management center server to realize the management of the service server. The management of the virtual switch, for example: the user's operation can be transmitted to the first Leaf virtual switch deployed on the service server through the second Root virtual switch, and the operation is performed by the first Leaf virtual switch. Therefore, the embodiments of the present invention can improve the efficiency of managing virtual switches.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some embodiments of the present invention. Those skilled in the art can also obtain other drawings based on these drawings without creative work.
图1是本发明实施例提供的一种虚拟交换机的管理方法的流程示意图Fig. 1 is a schematic flowchart of a method for managing a virtual switch provided by an embodiment of the present invention
图2是本发明实施例提供的另一种虚拟交换机的管理方法的流程示意图;FIG. 2 is a schematic flowchart of another method for managing a virtual switch provided by an embodiment of the present invention;
图3是本发明实施例提供的可选的映射关系示意图;FIG. 3 is a schematic diagram of an optional mapping relationship provided by an embodiment of the present invention;
图4是本发明实施例提供的另一种虚拟交换机的管理方法的流程示意图;FIG. 4 is a schematic flowchart of another method for managing a virtual switch provided by an embodiment of the present invention;
图5是本发明实施例提供的另一种虚拟交换机的管理方法的流程示意图;FIG. 5 is a schematic flowchart of another method for managing a virtual switch provided by an embodiment of the present invention;
图6是本发明实施例提供的另一种虚拟交换机的管理方法的流程示意图;FIG. 6 is a schematic flowchart of another method for managing a virtual switch provided by an embodiment of the present invention;
图7是本发明实施例提供的另一种虚拟交换机的管理方法的示意图;FIG. 7 is a schematic diagram of another virtual switch management method provided by an embodiment of the present invention;
图8是本发明实施例提供的另一种虚拟交换机的管理方法的示意图;FIG. 8 is a schematic diagram of another virtual switch management method provided by an embodiment of the present invention;
图9是本发明实施例提供的另一种虚拟交换机的管理方法的示意图;FIG. 9 is a schematic diagram of another virtual switch management method provided by an embodiment of the present invention;
图10是本发明实施例提供的一种管理中心服务器的结构示意图;Fig. 10 is a schematic structural diagram of a management center server provided by an embodiment of the present invention;
图11是本发明实施例提供的另一种管理中心服务器的结构示意图;Fig. 11 is a schematic structural diagram of another management center server provided by an embodiment of the present invention;
图12是本发明实施例提供的另一种业务服务器的结构示意图;Fig. 12 is a schematic structural diagram of another service server provided by an embodiment of the present invention;
图13是本发明实施例提供的另一种业务服务器的结构示意图;Fig. 13 is a schematic structural diagram of another service server provided by an embodiment of the present invention;
图14是本发明实施例提供的一种虚拟交换机的管理系统的结构示意图;FIG. 14 is a schematic structural diagram of a virtual switch management system provided by an embodiment of the present invention;
图15是本发明实施例提供的另一种管理中心服务器的结构示意图;Fig. 15 is a schematic structural diagram of another management center server provided by an embodiment of the present invention;
图16是本发明实施例提供的另一种业务服务器的结构示意图;Fig. 16 is a schematic structural diagram of another service server provided by an embodiment of the present invention;
图17是本发明实施例提供的一种虚拟交换机的管理系统的结构示意图。FIG. 17 is a schematic structural diagram of a virtual switch management system provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
在本发明实施例中,虚拟交换机可以是通信系统中任何形式的虚拟交换机,且虚拟交换机可以包括Root虚拟交换机和Leaf虚拟交换机,其中,Root虚拟交换机可以响应用户直接输入的操作,例如,Root虚拟交换机安装在管理中心服务器上,即管理中心服务器配置有Root虚拟交换机,该Root虚拟交换机就可以响应用户在管理中心服务器输入的用于操作该Root虚拟交换机的操作。其中,Leaf虚拟交换机可以禁止响应用户直接输入的操作,例如,Leaf虚拟交换机安装在业务服务器上,即业务服务器配置有Leaf虚拟交换机,该Leaf虚拟交换机无法响应用户在业务服务器输入的用于操作该Leaf虚拟交换机的操作,或者该Leaf虚拟交换机对用户不可见,即用户无法对Leaf虚拟交换机进行操作。或者Leaf虚拟交换机只对Root虚拟交换机传输的操作作出响应。另外,虚拟交换机的模式可以为从动模式(例如:Slave模式),具体可以虚拟交换机的模式可以为从动模式,从动模式禁止接收用户直接输入的操作,业务服务器上的虚拟交换机的模式为从动模式时,虚拟交换机禁止接收用户在业务服务器上输入的操作;虚拟交换机的模式可以为主动模式(例如:Master模式),具体可以是虚拟交换机的守护进程的模式可以为主动模式,主动模式接收用户直接输入的操作,业务服务器上的虚拟交换机的模式为从动模式时,虚拟交换机可以接收用户在业务服务器上输入的操作。In the embodiment of the present invention, the virtual switch can be any form of virtual switch in the communication system, and the virtual switch can include a Root virtual switch and a Leaf virtual switch, wherein the Root virtual switch can respond to the operation directly input by the user, for example, the Root virtual switch The switch is installed on the management center server, that is, the management center server is configured with a root virtual switch, and the root virtual switch can respond to operations input by users on the management center server for operating the root virtual switch. Among them, the Leaf virtual switch can prohibit responding to the operation directly input by the user. For example, the Leaf virtual switch is installed on the service server, that is, the service server is configured with the Leaf virtual switch, and the Leaf virtual switch cannot respond to the user input on the service server. The operation of the leaf virtual switch, or the leaf virtual switch is invisible to the user, that is, the user cannot operate the leaf virtual switch. Or the Leaf virtual switch only responds to the operations transmitted by the Root virtual switch. In addition, the mode of the virtual switch can be a slave mode (for example: Slave mode). Specifically, the mode of the virtual switch can be a slave mode. The slave mode prohibits receiving operations directly input by the user. The mode of the virtual switch on the business server is In slave mode, the virtual switch is prohibited from receiving operations input by users on the business server; the mode of the virtual switch can be active mode (for example: Master mode), specifically the mode of the daemon process of the virtual switch can be active mode, active mode Receive operations directly input by the user. When the mode of the virtual switch on the service server is the slave mode, the virtual switch can receive operations input by the user on the service server.
在本发明实施例中,业务服务器可以是通信系统中任何形式的通信设备,例如:个人计算机(Personal Computer,PC),高性能计算机、大型计算机、服务器(例如:X86服务器)等通信设备。管理中心服务器可以是通信系统中除上述业务服务器之外的任何形式的通信设备,例如:个人计算机(PersonalComputer,PC),高性能计算机、大型计算机、服务器(例如:X86服务器)等等通信设备。In the embodiment of the present invention, the service server can be any form of communication equipment in the communication system, for example: personal computer (Personal Computer, PC), high-performance computer, mainframe computer, server (for example: X86 server) and other communication equipment. The management center server can be any form of communication equipment in the communication system except the above-mentioned business server, such as: personal computer (PersonalComputer, PC), high-performance computer, mainframe computer, server (eg: X86 server) and other communication equipment.
在本发明实施例中,Root虚拟交换机的状态为非使能状态可以是Root虚拟交换机被隔离或者隐藏,即Root虚拟交换机禁止接收任何指令、或者Root虚拟交换机无法接收任何指令,或者Root虚拟交换机无法响应任何指令,Root虚拟交换机的状态为非使能状态还可以是Root虚拟交换机被移除。Root虚拟交换机的状态为使能状态可以是Root虚拟交换机状态切换为正常状态或者主控(Master)状态,例如,从被隔离或者隐藏的状态中恢复,或者新创建Root虚拟交换机,即Root虚拟交换机可以接收任何用于操作Root虚拟交换机的指令、并对其作出响应,即用户可以在业务服务器上操作、管理该Root虚拟交换机。In the embodiment of the present invention, the state of the Root virtual switch as a non-enabled state may be that the Root virtual switch is isolated or hidden, that is, the Root virtual switch is prohibited from receiving any instructions, or the Root virtual switch cannot receive any instructions, or the Root virtual switch cannot In response to any instruction, the state of the Root virtual switch is disabled or the Root virtual switch is removed. The state of the Root virtual switch is enabled. The state of the Root virtual switch can be switched to the normal state or the master (Master) state, for example, recovering from the isolated or hidden state, or creating a new Root virtual switch, that is, the Root virtual switch. Any instruction for operating the Root virtual switch can be received and responded to, that is, the user can operate and manage the Root virtual switch on the service server.
图1是本发明实施例提供的一种虚拟交换机的管理方法的流程示意图,如图1所示,包括:Fig. 1 is a schematic flowchart of a method for managing a virtual switch provided by an embodiment of the present invention, as shown in Fig. 1 , including:
101、管理中心服务器接收业务服务器发送的所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,所述第一虚拟交换机的模式为从动模式,所述第一Root虚拟交换机的状态为非使能状态;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作。101. The management center server receives the first identity configuration information of the first Root virtual switch included in the first virtual switch deployed on the service server and the second identity configuration information of the interface of the first virtual switch sent by the service server, The mode of the first virtual switch is a slave mode, and the state of the first Root virtual switch is a disabled state; wherein, the slave mode is used to prohibit receiving operations input by users on the service server.
应当理解的是,这里的第一虚拟交换机是泛指业务服务器上部署的虚拟交换机;相对而言,第二虚拟交换机是泛指管理中心服务器上部署的虚拟交换机。需要说明的是,本发明实施例描述中所采用的第一、第二的说法,没有限定顺序的意思,仅为方便区分而已。It should be understood that the first virtual switch here generally refers to the virtual switch deployed on the service server; relatively speaking, the second virtual switch generally refers to the virtual switch deployed on the management center server. It should be noted that the terms first and second used in the description of the embodiments of the present invention do not mean to limit the sequence, but are only for convenience of distinction.
其中,上述第一身份配置信息具体可以是用于配置与所述第一虚拟交换机的标识与配置参数相同的第一Root虚拟交换机的信息,第一身份配置信息还可以是用于配置与所述第一虚拟交换机的标识与配置参数相同的第一虚拟交换机的信息,即该信息中包括用于配置与所述第一虚拟交换机的标识与配置参数相同的第一Root虚拟交换机的信息,例如:可以包含所述第一虚拟交换机的标识信息和配置信息,或者包含所述第一Root虚拟交换机的标识信息和配置信息;上述第二身份配置信息可以是用于配置与所述第一虚拟交换机的接口的标识与配置参数相同的接口的信息,例如:所述第一虚拟交换机的接口的标识信息和配置信息。所述第一虚拟交换机的接口与所述第一虚拟交换机的Leaf虚拟交换机的接口为同一接口,即所述第一虚拟交换机的接口可以理解为所述第一虚拟交换机的Leaf虚拟交换机的接口。Wherein, the above-mentioned first identity configuration information may specifically be information used to configure the first Root virtual switch with the same identifier and configuration parameters as the first virtual switch, and the first identity configuration information may also be information used to configure the same identity as the first virtual switch. The identifier of the first virtual switch is the same as the information of the first virtual switch with the configuration parameters, that is, the information includes information for configuring the first Root virtual switch with the same identifier and configuration parameters as the first virtual switch, for example: may include the identification information and configuration information of the first virtual switch, or include the identification information and configuration information of the first Root virtual switch; the above-mentioned second identity configuration information may be used to configure the first virtual switch The interface identifier is the same as the configuration parameter information of the interface, for example: the identifier information and configuration information of the interface of the first virtual switch. The interface of the first virtual switch is the same interface as the interface of the leaf virtual switch of the first virtual switch, that is, the interface of the first virtual switch can be understood as the interface of the leaf virtual switch of the first virtual switch.
102、管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;102. The management center server configures a second root virtual switch according to the first identity configuration information, and configures an interface of the second root virtual switch according to the second identity configuration information, where the second root virtual switch is the Describe the image of the first Root virtual switch;
由于第二Root虚拟交换机是根据所述第一身份配置信息配置的,这样本发明实施例中,向用户只呈现一个虚拟交换机,从而使用户管理更加简单。Since the second Root virtual switch is configured according to the first identity configuration information, in this embodiment of the present invention, only one virtual switch is presented to the user, thereby simplifying user management.
103、管理中心服务器在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作,其中,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口。103. The management center server establishes a first mapping relationship between the first Leaf virtual switch contained in the first virtual switch and the second Root virtual switch, and establishes a mapping relationship between the interface of the second Root virtual switch and the second Root virtual switch. A second mapping relationship is established between interfaces of a Leaf virtual switch, so that the first Leaf virtual switch can respond to an operation input by a user on the second Root virtual switch configured on the management center server, wherein the first An interface of a virtual switch includes an interface of the first Leaf virtual switch and an interface of the first Root virtual switch.
其中,所述第一虚拟交换机的接口包含第一Leaf虚拟交换机的接口可以是第一虚拟交换机的接口就可以理解为第一Leaf虚拟交换机的接口。Wherein, the interface of the first virtual switch includes the interface of the first leaf virtual switch, which may be the interface of the first virtual switch, which can be understood as the interface of the first leaf virtual switch.
可选的,步骤103建立映射关系可以存储在管理中心服务器中,当用户需要对上述第一虚拟交换机进行管理时,用户可以在管理中心服务器上输入用于管理上述第一虚拟交换机的管理命令,管理中心服务器再将该管理命令传输至上述第二Root虚拟交换机,第二Root虚拟交换机再根据上述第一映射关系和第二映射关系,将该管理命令通过第二Root虚拟交换机的接口传输至所述第一Leaf虚拟交换机的接口,再由所述第一Leaf虚拟交换机的接口传输至上述第一Leaf虚拟交换机,由上述第一Leaf虚拟交换机执行该管理命令,而上述第一Leaf虚拟交换机为上述第一虚拟交换机的一部分,即上述第一Leaf虚拟交换机连接的业务就是上述第一虚拟交换机连接业务,即上述第一Leaf虚拟交换机执行该操作命令等同于上述第一虚拟交换机执行该操作命令,从而实现用户只需要在管理中心服务器对第二Root虚拟交换机的管理就可以完成业务服务器上的虚拟交换机的管理。Optionally, the mapping relationship established in
可选的,上述第一虚拟交换机可以是一个或者多个虚拟交换机,当上述第一虚拟交换机为多个虚拟交换机时,本实施中第二Root虚拟交换机可以与多个虚拟交换机的Leaf虚拟交换机建立第一映射关系,同时,第二Root虚拟交换机配置多个接口,再将这些接口与多个虚拟交换机包含的Leaf虚拟交换机的接口建立映射关系。Optionally, the above-mentioned first virtual switch may be one or more virtual switches. When the above-mentioned first virtual switch is a plurality of virtual switches, in this implementation, the second Root virtual switch may be established with the Leaf virtual switches of the multiple virtual switches. In the first mapping relationship, at the same time, the second Root virtual switch configures multiple interfaces, and then establishes a mapping relationship between these interfaces and the interfaces of the Leaf virtual switches included in the multiple virtual switches.
上述技术方案中,管理中心服务器接收业务服务器发送的所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,所述第一虚拟交换机的模式为从动模式,所述第一Root虚拟交换机的状态为非使能状态;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作;所述管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;所述管理中心服务器在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作,其中,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口。相比现有技术中需要区分VSS和VDS,且对VSS和VDS进行不同方式的管理,本实施例用户只需要在管理中心服务器上管理第二Root虚拟交换机,就可以实现对业务服务器上部署的第一虚拟交换机的管理,例如:用户的操作可以通过第二Root虚拟交换机传递至业务服务器上部署的第一Leaf虚拟交换机,由该第一Leaf虚拟交换机执行该操作。从而本实施例可以提高管理虚拟交换机的效率。In the above technical solution, the management center server receives the first identity configuration information of the first Root virtual switch contained in the first virtual switch deployed on the business server and the second identity of the interface of the first virtual switch sent by the business server. Configuration information, the mode of the first virtual switch is a slave mode, and the state of the first Root virtual switch is a non-enabled state; wherein, the slave mode is used to prohibit receiving user input on the service server The operation; the management center server configures the second Root virtual switch according to the first identity configuration information, and configures the interface of the second Root virtual switch according to the second identity configuration information, wherein the second Root virtual switch The switch is a mirror image of the first Root virtual switch; the management center server establishes a first mapping relationship between the first Leaf virtual switch included in the first virtual switch and the second Root virtual switch, and A second mapping relationship is established between the interface of the second Root virtual switch and the interface of the first Leaf virtual switch, so that the first Leaf virtual switch can respond to the second Root virtual switch configured by the user on the management center server. An operation input on a virtual switch, wherein the interface of the first virtual switch includes an interface of the first Leaf virtual switch and an interface of the first Root virtual switch. Compared with the prior art, it is necessary to distinguish between VSS and VDS, and to manage VSS and VDS in different ways. In this embodiment, users only need to manage the second Root virtual switch on the management center server to realize the deployment on the service server. The management of the first virtual switch, for example, the user's operation may be transmitted to the first leaf virtual switch deployed on the service server through the second root virtual switch, and the first leaf virtual switch executes the operation. Therefore, this embodiment can improve the efficiency of managing virtual switches.
图2是本发明实施例提供的另一种虚拟交换机的管理方法的流程示意图,如图2所示,包括:Fig. 2 is a schematic flowchart of another virtual switch management method provided by an embodiment of the present invention, as shown in Fig. 2 , including:
201、管理中心服务器接收业务服务器发送的所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,所述第一虚拟交换机的模式为从动模式,所述第一Root虚拟交换机的状态为非使能状态;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作。201. The management center server receives the first identity configuration information of the first Root virtual switch contained in the first virtual switch deployed on the service server and the second identity configuration information of the interface of the first virtual switch sent by the service server, The mode of the first virtual switch is a slave mode, and the state of the first Root virtual switch is a disabled state; wherein, the slave mode is used to prohibit receiving operations input by users on the service server.
其中,所述第一身份配置信息包含所述第一Root虚拟交换机的标识信息和配置信息,所述第二身份配置信息包括所述第一虚拟交换机的接口的标识信息和配置信息。Wherein, the first identity configuration information includes identification information and configuration information of the first Root virtual switch, and the second identity configuration information includes identification information and configuration information of an interface of the first virtual switch.
可选的,上述第一Root虚拟交换机的标识信息可以包括如下至少一项:Optionally, the identification information of the first Root virtual switch may include at least one of the following:
全球唯一标示符(Universally Unique Identifier,UUID)、身份标识号码(Identity,ID)和名称,其中,该标识信息用于唯一标识虚拟交换机。Universally Unique Identifier (UUID), identity number (Identity, ID) and name, where the identification information is used to uniquely identify the virtual switch.
可选的,上述第一Root虚拟交换机的配置信息可以包括:Optionally, the configuration information of the above-mentioned first Root virtual switch may include:
最大传输单元(Maximum Transmission Unit,MTU)信息。该配置信息用于配置第二Root虚拟交换机,即管理中心服务器可以根据该配置信息配置第二Root虚拟交换机。Maximum Transmission Unit (MTU) information. The configuration information is used to configure the second Root virtual switch, that is, the management center server can configure the second Root virtual switch according to the configuration information.
可选的,上述接口的标识信息可以包括如下至少一项:Optionally, the identification information of the above interface may include at least one of the following:
UUID、ID和名称,其中,该标识信息用于唯一标识接口。UUID, ID and name, where the identification information is used to uniquely identify the interface.
可选的,上述接口的配置信息可以包括如下至少一项:Optionally, the configuration information of the above interface may include at least one of the following:
虚拟局域网(Virtual Local Area Network,VLAN)信息、服务质量(Qualityof Service,QoS)信息和访问控制列表(Access Control List,ACL)信息,该配置信息用于配置接口,即管理中心服务器可以根据该配置信息配置接口。Virtual local area network (Virtual Local Area Network, VLAN) information, quality of service (Quality of Service, QoS) information and access control list (Access Control List, ACL) information, the configuration information is used to configure the interface, that is, the management center server can Information configuration interface.
202、管理中心服务器根据所述第一Root虚拟交换机的标识信息和配置信息,配置标识与所述第一Root虚拟交换机的标识相同,且配置参数与所述第一Root虚拟交换机的配置参数相同的第二Root虚拟交换机。202. The management center server, according to the identification information and configuration information of the first Root virtual switch, configures the configuration ID that is the same as the ID of the first Root virtual switch, and the configuration parameters are the same as the configuration parameters of the first Root virtual switch The second Root virtual switch.
由于第二Root虚拟交换机与所述第一Root虚拟交换机的标识相同,且配置参数与所述第一Root虚拟交换机的配置参数相同,这样本发明实施例中,向用户只呈现一个虚拟交换机,从而使用户管理更加简单。Since the identity of the second Root virtual switch is the same as that of the first Root virtual switch, and the configuration parameters are the same as those of the first Root virtual switch, in this embodiment of the present invention, only one virtual switch is presented to the user, so that Make user management easier.
由于该步骤是根据所述第一Root虚拟交换机的标识信息和配置信息配置的第二Root虚拟交换机,这样就可以保证第二Root虚拟交换机的标识与第一Root虚拟交换机的标识是相同的,同时还可以保证第二Root虚拟交换机的配置参数与第一Root虚拟交换机的参数是相同的,即可以理解为将虚拟交换机的第一Root虚拟交换机复制到或者迁移到管理中心服务器中。当上述第一虚拟交换机为多个虚拟交换机时,第二Root虚拟交换机可以具备多个虚拟交换机的标识。Since this step is the second Root virtual switch configured according to the identification information and configuration information of the first Root virtual switch, it can be ensured that the identification of the second Root virtual switch is the same as the identification of the first Root virtual switch, and at the same time It can also be ensured that the configuration parameters of the second Root virtual switch are the same as those of the first Root virtual switch, that is, it can be understood as copying or migrating the first Root virtual switch of the virtual switch to the management center server. When the above-mentioned first virtual switch is multiple virtual switches, the second Root virtual switch may have identifiers of multiple virtual switches.
203、管理中心服务器根据所述第一虚拟交换机的接口的标识信息和配置信息的标识信息和配置信息,配置标识与所述第一虚拟交换机的接口的标识信息和配置信息的标识相同,且配置参数与所述第一虚拟交换机的接口的标识信息和配置信息的配置参数相同的第二Root虚拟交换机的接口。203. According to the identification information of the interface of the first virtual switch and the identification information and configuration information of the configuration information, the management center server determines that the configuration identification is the same as the identification information of the interface of the first virtual switch and the identification of the configuration information, and configure The interface of the second Root virtual switch whose parameters are the same as the identification information of the interface of the first virtual switch and configuration parameters of the configuration information.
由于该步骤是根据所述第一虚拟交换机的接口的标识信息和配置信息配置的第二Root虚拟交换机的接口,这样就可以保证第二Root虚拟交换机的接口的标识与所述第一虚拟交换机的接口的标识是相同的,同时还可以保证第二Root虚拟交换机的接口的配置参数与所述虚拟交换机的接口的参数是相同的,也可以理解为将接口复制到管理中心服务器中。Because this step is the interface of the second Root virtual switch configured according to the identification information and configuration information of the interface of the first virtual switch, it can be ensured that the identification of the interface of the second Root virtual switch is consistent with that of the first virtual switch. The identifiers of the interfaces are the same, and it can also ensure that the configuration parameters of the interface of the second Root virtual switch are the same as the parameters of the interface of the virtual switch, which can also be understood as copying the interface to the management center server.
204、管理中心服务器在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作,其中,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口。204. The management center server establishes a first mapping relationship between the first Leaf virtual switch contained in the first virtual switch and the second Root virtual switch, and establishes a mapping relationship between the interface of the second Root virtual switch and the second Root virtual switch. A second mapping relationship is established between interfaces of a Leaf virtual switch, so that the first Leaf virtual switch can respond to an operation input by a user on the second Root virtual switch configured on the management center server, wherein the first An interface of a virtual switch includes an interface of the first Leaf virtual switch and an interface of the first Root virtual switch.
该步骤中在所述第二Root虚拟交换机的接口与所述第一虚拟交换机的接口之间建立第二映射关系可以理解为,将所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口映射成匹配对,当用户需要管理虚拟交换机时,管理中心服务器就可以将所述第二Root虚拟交换机的接输出管理命令,传输至所述第一Leaf虚拟交换机的接口,再由所述第一Leaf虚拟交换机的接口传输至第一Leaf虚拟交换机。或者该步骤中将所述第二Root虚拟交换机的接口与所述接口建立映射关系还可以理解为,将所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口建立通信连接,当用户需要管理第一虚拟交换机时,管理中心服务器就可以通过所述第二Root虚拟交换机的接口将管理命令传输至所述第一Leaf虚拟交换机的接口,再由所述第一Leaf虚拟交换机的接口传输至第一Leaf虚拟交换机。In this step, establishing a second mapping relationship between the interface of the second Root virtual switch and the interface of the first virtual switch can be understood as: connecting the interface of the second Root virtual switch to the interface of the first Leaf virtual switch The interface of the switch is mapped into a matching pair. When the user needs to manage the virtual switch, the management center server can transmit the connection output management command of the second Root virtual switch to the interface of the first Leaf virtual switch. The interface of the first Leaf virtual switch is transmitted to the first Leaf virtual switch. Or establishing a mapping relationship between the interface of the second Root virtual switch and the interface in this step can also be understood as establishing a communication connection between the interface of the second Root virtual switch and the interface of the first Leaf virtual switch, When the user needs to manage the first virtual switch, the management center server can transmit the management command to the interface of the first Leaf virtual switch through the interface of the second Root virtual switch, and then the management command can be transmitted by the interface of the first Leaf virtual switch. The interface is transmitted to the first Leaf virtual switch.
该步骤中将第二Root虚拟交换机与上述第一Leaf虚拟交换机建立映射关系,该映射关系可以理解为将第二Root虚拟交换机与上述第一Leaf虚拟交换机映射为一匹配对,第二Root虚拟交换机再根据上述所述第二Root虚拟交换机的接口与所述第一虚拟交换机的接口的映射关系将第二Root虚拟交换机的管理命令经过所述第二Root虚拟交换机的接口和所述第一虚拟交换机的接口传输至上述第一Leaf虚拟交换机。In this step, a mapping relationship is established between the second Root virtual switch and the above-mentioned first Leaf virtual switch. The mapping relationship can be understood as mapping the second Root virtual switch and the above-mentioned first Leaf virtual switch into a matching pair, and the second Root virtual switch Then according to the mapping relationship between the interface of the second Root virtual switch and the interface of the first virtual switch, the management command of the second Root virtual switch is passed through the interface of the second Root virtual switch and the first virtual switch interface to the above-mentioned first Leaf virtual switch.
在另一个实施例中,如图3所示,图3-1表示业务服务器请求加入管理中心,但在业务服务器加入管理中心之前,图3-2表示业务服务器请求加入管理中心后,其中,图3-2中的虚线表示所述第二Root虚拟交换机的接口(即图3中与Root EVS连接的Port)与所述第一Leaf虚拟交换机的接口(即图3中与Leaf EVS连接的Port)的映射关系,图3-2中的粗线表示第二Root虚拟交换机与上述第一Leaf虚拟交换机的映射关系。图3-3表示第二Root虚拟交换机(即图3中管理中心的Root EVS)与单个业务服务器的Leaf虚拟交换机(即图3中业务服务器的Leaf EVS)的映射关系,以及表示包含第二Root虚拟交换机与多个业务服务器的Leaf虚拟交换机的映射关系。即本发明实施例中可以将第二Root虚拟交换机与多个业务服务器的Leaf虚拟交换机的映射关系可以理解为,第二Root虚拟交换机为分布式虚拟交换机,即该分布式虚拟交换机可以覆盖多个业务服务器。其中,上述管理中心可以理解为上述管理中心服务器,即管理中心服务器管理多个业务服务器上的虚拟交换机。In another embodiment, as shown in FIG. 3, FIG. 3-1 shows that the service server requests to join the management center, but before the service server joins the management center, FIG. 3-2 shows that after the service server requests to join the management center, wherein, FIG. The dotted line in 3-2 indicates the interface of the second Root virtual switch (that is, the Port connected to the Root EVS in Figure 3) and the interface of the first Leaf virtual switch (that is, the Port connected to the Leaf EVS in Figure 3) The thick line in Figure 3-2 indicates the mapping relationship between the second Root virtual switch and the first Leaf virtual switch. Figure 3-3 shows the mapping relationship between the second Root virtual switch (that is, the Root EVS of the management center in Figure 3) and the Leaf virtual switch of a single service server (that is, the Leaf EVS of the service server in Figure 3), and indicates that the second Root Mapping relationship between a virtual switch and leaf virtual switches of multiple service servers. That is, in the embodiment of the present invention, the mapping relationship between the second Root virtual switch and the Leaf virtual switches of multiple service servers can be understood as that the second Root virtual switch is a distributed virtual switch, that is, the distributed virtual switch can cover multiple business server. Wherein, the above-mentioned management center can be understood as the above-mentioned management center server, that is, the management center server manages virtual switches on multiple service servers.
在另一个实施例中,在步骤204之后,所述方法还可以包括:In another embodiment, after
删除所述第一映射关系和所述第二映射关系,并向所述业务服务器发送用于将所述业务服务器移除管理中心服务器的中心管理的移除命令,以使所述业务服务器将所述第一Root虚拟交换机的状态切换为使能状态,所述第一虚拟交换机的模式切换为主动模式;所述主动模式用于允许接收用户在所述业务服务器上输入的操作。deleting the first mapping relationship and the second mapping relationship, and sending a remove command for removing the service server from the central management of the management center server to the service server, so that the service server removes the The state of the first Root virtual switch is switched to an enabled state, and the mode of the first virtual switch is switched to an active mode; the active mode is used to allow receiving operations input by users on the service server.
当用户需要在业务服务器上管理所述第一虚拟交换机时,就可以执行该步骤,其中,该步骤具体可以包括:When the user needs to manage the first virtual switch on the service server, this step can be performed, wherein this step can specifically include:
管理中心服务器接收用户输入的用于将所述业务服务器移除管理中心服务器的中心管理的请求消息,请求消息包含业务服务器的标识信息;The management center server receives a request message input by the user for removing the business server from the central management of the management center server, and the request message includes the identification information of the business server;
管理中心服务器删除所述第一映射关系和所述第二映射关系,并向业务服务器发送用于将所述业务服务器移除管理中心服务器的中心管理的移除命令,以使所述业务服务器将所述第一Root虚拟交换机的状态切换为使能状态,所述第一虚拟交换机的模式切换为主动模式;所述主动模式用于允许接收用户在所述业务服务器上输入的操作。The management center server deletes the first mapping relationship and the second mapping relationship, and sends a removal command for removing the service server from the central management of the management center server to the service server, so that the service server will The state of the first Root virtual switch is switched to an enabled state, and the mode of the first virtual switch is switched to an active mode; the active mode is used to allow receiving operations input by users on the service server.
该步骤具体还可以包括:This step may specifically include:
管理中心服务器接收业务服务器发送的用于将所述业务服务器移除管理中心服务器的中心管理的请求消息;The management center server receives the request message sent by the business server for removing the business server from the central management of the management center server;
管理中心服务器删除所述第一映射关系和所述第二映射关系。The management center server deletes the first mapping relationship and the second mapping relationship.
其中,在业务服务器向管理中心服务器发送上述请求消息之前或者之后,业务服务器可以将所述第一Root虚拟交换机的状态切换为使能状态,所述第一虚拟交换机的模式切换为主动模式;所述主动模式用于允许接收用户在所述业务服务器上输入的操作。Wherein, before or after the service server sends the above request message to the management center server, the service server may switch the state of the first Root virtual switch to an enabled state, and switch the mode of the first virtual switch to an active mode; The active mode is used to allow receiving operations input by users on the service server.
管理中心服务器还可以移除上述第二Root虚拟交换机和删除第二Root虚拟交换机的接口。The management center server may also remove the second Root virtual switch and delete the interface of the second Root virtual switch.
这样可以实现将管理中心服务器从管理中心中移除。This enables the management center server to be removed from the management center.
上述技术方案中,管理中心服务器接收业务服务器发送的所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,所述第一虚拟交换机的模式为从动模式,所述第一Root虚拟交换机的状态为非使能状态;管理中心服务器根据所述第一Root虚拟交换机的标识信息和配置信息,配置标识与所述第一Root虚拟交换机的标识相同,且配置参数与所述第一Root虚拟交换机的配置参数相同的第二Root虚拟交换机;所述管理中心服务器根据所述第一虚拟交换机的接口的标识信息和配置信息的标识信息和配置信息,配置标识与所述第一虚拟交换机的接口的标识信息和配置信息的标识相同,且配置参数与所述第一虚拟交换机的接口的标识信息和配置信息的配置参数相同的第二Root虚拟交换机的接口;管理中心服务器在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作。相比现有技术中需要区分VSS和VDS,且对VSS和VDS进行不同方式的管理,本实施例由于第二Root虚拟交换机与服务业务器上的虚拟交换机的标识相同,即给用户呈现的虚拟交换机只有一个,这样用户只需要在管理中心服务器上管理第二Root虚拟交换机,就可以实现对业务服务器上部署的第一虚拟交换机的管理,例如:用户的操作可以通过第二Root虚拟交换机传递至业务服务器上部署的第一Leaf虚拟交换机,由该第一Leaf虚拟交换机执行该操作。从而本实施例可以提高管理虚拟交换机的效率。In the above technical solution, the management center server receives the first identity configuration information of the first Root virtual switch contained in the first virtual switch deployed on the business server and the second identity of the interface of the first virtual switch sent by the business server. Configuration information, the mode of the first virtual switch is a slave mode, and the state of the first Root virtual switch is a non-enabled state; the management center server configures according to the identification information and configuration information of the first Root virtual switch A second Root virtual switch whose identifier is the same as that of the first Root virtual switch and whose configuration parameters are identical to those of the first Root virtual switch; The identification information and configuration information of identification information and configuration information, the configuration identification is the same as the identification information and configuration information identification of the interface of the first virtual switch, and the configuration parameters are the same as the identification information and configuration information of the interface of the first virtual switch The interface of the second Root virtual switch with the same configuration parameters of the information; the management center server establishes a first mapping relationship between the first Leaf virtual switch contained in the first virtual switch and the second Root virtual switch, and A second mapping relationship is established between the interface of the second Root virtual switch and the interface of the first Leaf virtual switch, so that the first Leaf virtual switch can respond to the second Root virtual switch configured by the user on the management center server. Actions entered on the virtual switch. Compared with the prior art, it is necessary to distinguish between VSS and VDS, and to manage VSS and VDS in different ways. In this embodiment, since the identity of the second Root virtual switch is the same as that of the virtual switch on the service server, that is, the virtual switch presented to the user There is only one switch, so users only need to manage the second Root virtual switch on the management center server to manage the first virtual switch deployed on the service server. For example, user operations can be transmitted to The first Leaf virtual switch deployed on the service server performs this operation. Therefore, this embodiment can improve the efficiency of managing virtual switches.
图4是本发明实施例提供的另一种虚拟交换机的管理方法的流程示意图,如图4所示,包括:Fig. 4 is a schematic flowchart of another virtual switch management method provided by an embodiment of the present invention, as shown in Fig. 4 , including:
301、管理中心服务器接收用户输入的用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的请求消息,所述请求消息包含所述业务服务器的标识信息。301. The management center server receives a request message input by a user for requesting that the service server be added to the management center server for central management, where the request message includes identification information of the service server.
业务服务器的标识信息可以包括:The identification information of the service server may include:
ID、UUID、名称等信息,该标识信息用于唯一标识业务服务器。ID, UUID, name and other information, the identification information is used to uniquely identify the business server.
302、管理中心服务器根据所述业务服务器的标识信息向所述业务服务器发送用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的命令,以使所述业务服务器向所述管理中心服务器返回所述第一身份配置信息和所述第二身份配置信息。302. The management center server sends a command to the service server according to the identification information of the service server, requesting that the service server be added to the management center server for central management, so that the service server sends a request to the management center The server returns the first identity configuration information and the second identity configuration information.
当业务服务器接收到上述命令时,业务服务器就可以向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息。When the service server receives the above command, the service server may send the first identity configuration information of the first Root virtual switch and the second identity configuration information of the interface of the first virtual switch to the management center server.
上述请求消息还可以包括用于所述业务服务器认证的认证信息;所述命令还可以包含所述认证信息,以使所述业务服务器使用所述认证信息进行认证,当所述业务服务器认证通过时,由所述业务服务器向所述管理中心服务器返回所述第一身份配置信息和所述第二身份配置信息。即业务服务器接收到该命令时,就可以通过该认证信息进行认证,例如:判断业务服务器是否已经加入其它管理中心,若是,认证失败,若否,则认证通过;或者,判断管理中心服务器是否有权限将业务服务器加入管理中心,若是,由认证通过,若否,则认证失败;当然还可以判断业务服务器是否已经加入管理中心,若否则判断管理中心服务器是否有权限将业务服务器加入管理中心,当这两个判断都通过时,则表示认证通过。The above request message may also include authentication information used for authentication of the service server; the command may also include the authentication information, so that the service server uses the authentication information for authentication, and when the authentication of the service server passes , the service server returns the first identity configuration information and the second identity configuration information to the management center server. That is, when the business server receives the command, it can authenticate through the authentication information, for example: to judge whether the business server has joined other management centers, if so, the authentication fails, if not, then the authentication passes; or, to judge whether the management center server has Authorization to add the business server to the management center. If yes, the authentication will pass. If not, the authentication will fail. Of course, it can also judge whether the business server has joined the management center. When both judgments pass, it means that the authentication is passed.
303、管理中心服务器接收业务服务器发送的所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,所述第一虚拟交换机的模式为从动模式,所述第一Root虚拟交换机的状态为非使能状态;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作。303. The management center server receives the first identity configuration information of the first Root virtual switch contained in the first virtual switch deployed on the service server and the second identity configuration information of the interface of the first virtual switch sent by the service server, The mode of the first virtual switch is a slave mode, and the state of the first Root virtual switch is a disabled state; wherein, the slave mode is used to prohibit receiving operations input by users on the service server.
该步骤中还可以接收业务服务器发送的认证结果,当该认证结果为认证通过时,步骤303接收业务服务器发送的虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息;当认证结果为认证不通过时,步骤303只接收到该认证结果,而接收不到上述配置信息。In this step, the authentication result sent by the service server may also be received, and when the authentication result is that the authentication is passed,
304、管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像。304. The management center server configures a second root virtual switch according to the first identity configuration information, and configures an interface of the second root virtual switch according to the second identity configuration information, where the second root virtual switch is the Describe the image of the first Root virtual switch.
305、管理中心服务器在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作,其中,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口。305. The management center server establishes a first mapping relationship between the first Leaf virtual switch contained in the first virtual switch and the second Root virtual switch, and establishes a mapping relationship between the interface of the second Root virtual switch and the first virtual switch. A second mapping relationship is established between interfaces of a Leaf virtual switch, so that the first Leaf virtual switch can respond to an operation input by a user on the second Root virtual switch configured on the management center server, wherein the first An interface of a virtual switch includes an interface of the first Leaf virtual switch and an interface of the first Root virtual switch.
在另一个实施例中,在步骤305之后,所述方法还可以包括:In another embodiment, after
管理中心服务器删除所述第一映射关系和所述第二映射关系,并向所述业务服务器发送用于将所述业务服务器移除管理中心服务器的中心管理的移除命令,以使所述业务服务器将所述第一Root虚拟交换机的状态切换为使能状态,所述第一虚拟交换机的模式切换为主动模式;所述主动模式用于允许接收用户在所述业务服务器上输入的操作。The management center server deletes the first mapping relationship and the second mapping relationship, and sends a removal command for removing the service server from the central management of the management center server to the service server, so that the service The server switches the state of the first Root virtual switch to an enabled state, and switches the mode of the first virtual switch to an active mode; the active mode is used to allow receiving operations input by users on the service server.
当用户需要在业务服务器上管理所述虚拟交换机时,就可以执行该步骤,其中,该步骤具体可以包括:When the user needs to manage the virtual switch on the service server, this step can be performed, wherein this step can specifically include:
管理中心服务器接收用户输入的用于将所述业务服务器移除管理中心服务器的中心管理的请求消息,请求消息包含业务服务器的标识信息;The management center server receives a request message input by the user for removing the business server from the central management of the management center server, and the request message includes the identification information of the business server;
管理中心服务器删除所述第一映射关系和所述第二映射关系,并向业务服务器发送用于将所述业务服务器移除管理中心服务器的中心管理的移除命令,以使所述业务服务器将所述第一Root虚拟交换机的状态切换为使能状态,所述第一虚拟交换机的模式切换为主动模式;所述主动模式用于允许接收用户在所述业务服务器上输入的操作。The management center server deletes the first mapping relationship and the second mapping relationship, and sends a removal command for removing the service server from the central management of the management center server to the service server, so that the service server will The state of the first Root virtual switch is switched to an enabled state, and the mode of the first virtual switch is switched to an active mode; the active mode is used to allow receiving operations input by users on the service server.
该步骤具体还可以包括:This step may specifically include:
管理中心服务器接收业务服务器发送的用于将所述业务服务器移除管理中心服务器的中心管理的请求消息;The management center server receives the request message sent by the business server for removing the business server from the central management of the management center server;
管理中心服务器删除所述第一映射关系和所述第二映射关系。The management center server deletes the first mapping relationship and the second mapping relationship.
其中,在业务服务器向管理中心服务器发送上述请求消息之前或者之后,业务服务器可以将所述第一Root虚拟交换机的状态切换为使能状态,所述第一虚拟交换机的模式切换为主动模式;所述主动模式用于允许接收用户在所述业务服务器上输入的操作。Wherein, before or after the service server sends the above request message to the management center server, the service server may switch the state of the first Root virtual switch to an enabled state, and switch the mode of the first virtual switch to an active mode; The active mode is used to allow receiving operations input by users on the service server.
管理中心服务器还可以移除上述第二Root虚拟交换机和删除第二Root虚拟交换机的接口。The management center server may also remove the second Root virtual switch and delete the interface of the second Root virtual switch.
这样可以实现将管理中心服务器从管理中心中移除。This enables the management center server to be removed from the management center.
上述技术方案中,管理中心服务器接收用户输入的用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的请求消息,所述请求消息包含所述业务服务器的标识信息;管理中心服务器根据所述业务服务器的标识信息向所述业务服务器发送用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的命令;管理中心服务器接收业务服务器发送的所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,所述第一虚拟交换机的模式为从动模式,所述第一Root虚拟交换机的状态为非使能状态;管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;所述管理中心服务器在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作。这样实现由用户主动请求通过管理中心服务器管理业务服务器的虚拟交换机,相比现有技术中需要区分VSS和VDS,且对VSS和VDS进行不同方式的管理,本实施例由于第二Root虚拟交换机与服务业务器上的虚拟交换机的标识相同,即给用户呈现的虚拟交换机只有一个,这样用户只需要在管理中心服务器上管理第二Root虚拟交换机,就可以实现对业务服务器上部署的第一虚拟交换机的管理,例如:用户的操作可以通过第二Root虚拟交换机传递至业务服务器上部署的第一Leaf虚拟交换机,由该第一Leaf虚拟交换机执行该操作。从而本实施例可以提高管理虚拟交换机的效率。In the above technical solution, the management center server receives a request message input by the user for requesting that the business server be added to the management center server for central management, and the request message includes the identification information of the business server; the management center server according to The identification information of the service server sends to the service server a command for requesting that the service server be added to the management center server for central management; the management center server receives the first The virtual switch includes the first identity configuration information of the first Root virtual switch and the second identity configuration information of the interface of the first virtual switch, the mode of the first virtual switch is slave mode, and the first Root virtual switch The state of the switch is disabled; the management center server configures the second Root virtual switch according to the first identity configuration information, and configures the interface of the second Root virtual switch according to the second identity configuration information, wherein the The second Root virtual switch is a mirror image of the first Root virtual switch; the management center server establishes a first mapping relationship between the first Leaf virtual switch contained in the first virtual switch and the second Root virtual switch , and establish a second mapping relationship between the interface of the second Root virtual switch and the interface of the first Leaf virtual switch, so that the first Leaf virtual switch can respond to the user's configuration on the management center server Enter the operation on the second root virtual switch. In this way, the user actively requests to manage the virtual switch of the service server through the management center server. Compared with the prior art, VSS and VDS need to be distinguished, and VSS and VDS are managed in different ways. In this embodiment, because the second Root virtual switch and The IDs of the virtual switches on the service server are the same, that is, there is only one virtual switch presented to the user. In this way, the user only needs to manage the second Root virtual switch on the management center server to implement the first virtual switch deployed on the service server. For example, user operations can be transmitted to the first Leaf virtual switch deployed on the service server through the second Root virtual switch, and the first Leaf virtual switch executes the operation. Therefore, this embodiment can improve the efficiency of managing virtual switches.
图5是本发明实施例提供的另一种虚拟交换机的管理方法的流程示意图,如图5所示,包括:Fig. 5 is a schematic flowchart of another virtual switch management method provided by an embodiment of the present invention, as shown in Fig. 5 , including:
401、业务服务器将所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的状态切换为非使能状态,并将所述第一虚拟交换机的模式切换为从动模式;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作。401. The service server switches the state of the first Root virtual switch included in the first virtual switch deployed on the service server to a disabled state, and switches the mode of the first virtual switch to a slave mode; wherein, The slave mode is used to prohibit receiving operations input by users on the service server.
402、业务服务器向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,以使所述管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;并在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作,其中,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口。402. The service server sends the first identity configuration information of the first Root virtual switch and the second identity configuration information of the interface of the first virtual switch to the management center server, so that the management center server The identity configuration information configures a second Root virtual switch, and configures an interface of the second Root virtual switch according to the second identity configuration information, wherein the second Root virtual switch is a mirror image of the first Root virtual switch; and Establish a first mapping relationship between the first Leaf virtual switch contained in the first virtual switch and the second Root virtual switch, and establish a first mapping relationship between the interface of the second Root virtual switch and the first Leaf virtual switch A second mapping relationship is established between the interfaces, so that the first Leaf virtual switch can respond to an operation input by the user on the second Root virtual switch configured on the management center server, wherein the interface of the first virtual switch Including the interface of the first Leaf virtual switch and the interface of the first Root virtual switch.
当用户需要对上述第一虚拟交换机进行管理时,用户可以在管理中心服务器上输入用于管理上述第一虚拟交换机的管理命令,管理中心服务器再将该管理命令传输至上述第二Root虚拟交换机,第二Root虚拟交换机再根据上述第一映射关系和第二映射关系,将该管理命令通过第二Root虚拟交换机的接口传输至所述第一Leaf虚拟交换机的接口,再由所述第一Leaf虚拟交换机的接口传输至上述第一Leaf虚拟交换机,由上述第一Leaf虚拟交换机执行该管理命令,而上述第一Leaf虚拟交换机为上述第一虚拟交换机的一部分,即上述第一Leaf虚拟交换机连接的业务就是上述第一虚拟交换机连接业务,即上述Leaf执行该操作命令等同于上述第一虚拟交换机执行该操作命令,从而用户完成对上述第一虚拟交换机的管理。When the user needs to manage the above-mentioned first virtual switch, the user can input a management command for managing the above-mentioned first virtual switch on the management center server, and the management center server transmits the management command to the above-mentioned second Root virtual switch, The second Root virtual switch transmits the management command to the interface of the first Leaf virtual switch through the interface of the second Root virtual switch according to the above-mentioned first mapping relationship and the second mapping relationship, and then the first Leaf virtual switch The interface of the switch is transmitted to the above-mentioned first Leaf virtual switch, and the above-mentioned first Leaf virtual switch executes the management command, and the above-mentioned first Leaf virtual switch is a part of the above-mentioned first virtual switch, that is, the business connected to the above-mentioned first Leaf virtual switch It is the above-mentioned first virtual switch connection service, that is, the execution of the operation command by the above-mentioned Leaf is equivalent to the execution of the operation command by the above-mentioned first virtual switch, so that the user completes the management of the above-mentioned first virtual switch.
可选的,上述第一虚拟交换机可以是一个或者多个虚拟交换机,当上述第一虚拟交换机为多个虚拟交换机时,本实施中第二Root虚拟交换机可以与多个虚拟交换机的Leaf虚拟交换机建立第一映射关系,同时,第二Root虚拟交换机配置多个接口,再将这些接口与多个虚拟交换机的接口建立映射关系。Optionally, the above-mentioned first virtual switch may be one or more virtual switches. When the above-mentioned first virtual switch is a plurality of virtual switches, in this implementation, the second Root virtual switch may be established with the Leaf virtual switches of the multiple virtual switches. In the first mapping relationship, at the same time, the second Root virtual switch configures multiple interfaces, and then establishes a mapping relationship between these interfaces and interfaces of multiple virtual switches.
在另一个实施例中,,所述第一身份配置信息包含所述第一虚拟交换机包含的第一Root虚拟交换机的标识信息和配置信息,所述第二身份配置信息包括所述第一虚拟交换机的接口的标识信息和配置信息;所述第二Root虚拟交换机的标识与所述第一Root虚拟交换机的标识相同,且所述第二Root虚拟交换机的配置参数与所述第一Root虚拟交换机的配置参数相同;所述第二Root虚拟交换机的接口的标识与所述第一虚拟交换机的接口的标识相同,且所述第二Root虚拟交换机的接口的配置参数与所述第一虚拟交换机的接口的配置参数相同。In another embodiment, the first identity configuration information includes the identification information and configuration information of the first Root virtual switch included in the first virtual switch, and the second identity configuration information includes the first virtual switch The identification information and configuration information of the interface; the identification of the second Root virtual switch is the same as the identification of the first Root virtual switch, and the configuration parameters of the second Root virtual switch are the same as those of the first Root virtual switch The configuration parameters are the same; the identifier of the interface of the second Root virtual switch is the same as the identifier of the interface of the first virtual switch, and the configuration parameters of the interface of the second Root virtual switch are the same as those of the interface of the first virtual switch The configuration parameters are the same.
上述技术方案中,业务服务器将所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的状态切换为非使能状态,并将所述第一虚拟交换机的模式切换为从动模式;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作;业务服务器向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,以使所述管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;并在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作。相比现有技术中需要区分VSS和VDS,且对VSS和VDS进行不同方式的管理,本发明实施例用户只需要在管理中心服务器上管理第二Root虚拟交换机,就可以实现对业务服务器上部署的第一虚拟交换机的管理,例如:用户的操作可以通过第二Root虚拟交换机传递至业务服务器上部署的第一Leaf虚拟交换机,由该第一Leaf虚拟交换机执行该操作。从而本实施例可以提高管理虚拟交换机的效率。In the above technical solution, the service server switches the state of the first Root virtual switch included in the first virtual switch deployed on the service server to a disabled state, and switches the mode of the first virtual switch to a slave mode ; Wherein, the slave mode is used to prohibit receiving operations input by users on the service server; the service server sends the first identity configuration information of the first Root virtual switch and the first virtual switch to the management center server The second identity configuration information of the interface, so that the management center server configures the second Root virtual switch according to the first identity configuration information, and configures the interface of the second Root virtual switch according to the second identity configuration information , wherein the second Root virtual switch is a mirror image of the first Root virtual switch; and a first mapping relationship is established between the first Leaf virtual switch included in the first virtual switch and the second Root virtual switch , and establish a second mapping relationship between the interface of the second Root virtual switch and the interface of the first Leaf virtual switch, so that the first Leaf virtual switch can respond to the user's configuration on the management center server Enter the operation on the second root virtual switch. Compared with the prior art, it is necessary to distinguish between VSS and VDS, and to manage VSS and VDS in different ways. In the embodiment of the present invention, users only need to manage the second Root virtual switch on the management center server to implement deployment on the service server. The management of the first virtual switch, for example: user operations can be transmitted to the first Leaf virtual switch deployed on the service server through the second Root virtual switch, and the first Leaf virtual switch executes the operation. Therefore, this embodiment can improve the efficiency of managing virtual switches.
图6是本发明实施例提供的另一种虚拟交换机的管理方法的流程示意图,如图6所示,包括:Fig. 6 is a schematic flowchart of another virtual switch management method provided by an embodiment of the present invention, as shown in Fig. 6 , including:
501、业务服务器接收用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的请求。501. The service server receives a request for requesting to add the service server to the management center server for central management.
其中,上述请求可以是管理中心服务器发送的,还可以接收用户输入的操作生成的。Wherein, the above request may be sent by the management center server, and may also be generated by receiving an operation input by the user.
502、业务服务器将所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的状态切换为非使能状态,并将所述第一虚拟交换机的模式切换为从动模式;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作。502. The service server switches the state of the first Root virtual switch included in the first virtual switch deployed on the service server to a disabled state, and switches the mode of the first virtual switch to a slave mode; wherein, The slave mode is used to prohibit receiving operations input by users on the service server.
503、业务服务器向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,以使所述管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;并在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作,其中,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口。503. The service server sends the first identity configuration information of the first Root virtual switch and the second identity configuration information of the interface of the first virtual switch to the management center server, so that the management center server The identity configuration information configures a second Root virtual switch, and configures an interface of the second Root virtual switch according to the second identity configuration information, wherein the second Root virtual switch is a mirror image of the first Root virtual switch; and Establish a first mapping relationship between the first Leaf virtual switch contained in the first virtual switch and the second Root virtual switch, and establish a first mapping relationship between the interface of the second Root virtual switch and the first Leaf virtual switch A second mapping relationship is established between the interfaces, so that the first Leaf virtual switch can respond to an operation input by the user on the second Root virtual switch configured on the management center server, wherein the interface of the first virtual switch Including the interface of the first Leaf virtual switch and the interface of the first Root virtual switch.
在另一个实施例中,步骤501具体可以包括:In another embodiment, step 501 may specifically include:
业务服务器接收所述管理中心服务器发送的用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的命令;或者The business server receives the command sent by the management center server for requesting to add the business server to the management center server for central management; or
所述业务服务器接收用户输入的用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的请求消息。The service server receives a request message input by a user for requesting that the service server be added to the management center server for central management.
其中,所述命令还可以包含用于所述业务服务器认证的认证信息,或者请求消息还可以包含用于所述业务服务器认证的认证信息。Wherein, the command may also include authentication information for authentication of the service server, or the request message may also include authentication information for authentication of the service server.
上述认证信息可以是任何可认证的信息,例如:身份校验码。The above authentication information may be any certifiable information, for example: identity verification code.
步骤502可以包括:Step 502 may include:
业务服务器使用所述认证信息进行认证;The service server performs authentication using the authentication information;
当所述业务服务器认证通过时,所述业务服务器向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息。When the service server passes the authentication, the service server sends the first identity configuration information of the first Root virtual switch and the second identity configuration information of the interface of the first virtual switch to the management center server.
当业务服务器接收到上述命令或者请求消息时时,业务服务器就可以通过该认证信息进行认证,例如:判断业务服务器是否已经加入其它管理中心,若是,认证失败,若否,则认证通过;或者,判断管理中心服务器是否有权限将业务服务器加入管理中心,若是,由认证通过,若否,则认证失败;当然还可以判断业务服务器是否已经加入管理中心,若否则判断管理中心服务器是否有权限将业务服务器加入管理中心,当这两个判断都通过时,则表示认证通过。When the business server receives the above command or request message, the business server can authenticate through the authentication information, for example: judge whether the business server has joined other management centers, if so, the authentication fails, if not, then the authentication passes; or, judge Whether the management center server has the right to add the business server to the management center, if yes, the authentication will pass, if not, the authentication will fail; of course, it can also judge whether the business server has joined the management center, if not, judge whether the management center server has the right to add the business server Join the management center, when the two judgments are passed, it means that the authentication is passed.
在另一个实施例中,在步骤503之后,所述方法还可以包括:In another embodiment, after
业务服务器接收用于将所述业务服务器移除管理中心服务器的中心管理的移除命令业务服务器的移除命令,将所述第一Root虚拟交换机的状态切换为使能状态,并将所述第一虚拟交换机的模式切换为主动模式,具体的是,将所述第一虚拟交换机的守护进程切换为主动模式;The service server receives a removal command for removing the service server from the central management of the management center server, switches the state of the first Root virtual switch to an enabled state, and switches the state of the second Switching the mode of a virtual switch to an active mode, specifically, switching the daemon process of the first virtual switch to an active mode;
其中,所述主动模式用于允许接收用户在所述业务服务器上输入的操作。Wherein, the active mode is used to allow receiving operations input by users on the service server.
所述业务服务器接收用于将所述业务服务器移除管理中心服务器的中心管理的移除命令业务服务器的移除命令,可以包括:The business server receives a removal command for removing the business server from the central management of the management center server. The removal command of the business server may include:
所述业务服务器接收用户输入的用于将所述业务服务器移除管理中心服务器的中心管理的移除命令;或者The service server receives a removal command input by the user for removing the service server from the central management of the management center server; or
所述业务服务器接收所述管理中心服务器发送的用于将所述业务服务器移除管理中心服务器的中心管理的移除命令。The service server receives a removal command sent by the management center server for removing the service server from the central management of the management center server.
业务服务器将所述第一Root虚拟交换机的状态切换为使能状态,并将所述第一虚拟交换机的模式切换为主动模式(具体的是,将所述第一虚拟交换机的守护进程切换为主动模式)之后,业务服务器还可以向管理中心服务器返回用于表示所述Root虚拟交换机的状态切换为使能状态,所述第一虚拟交换机的模式切换为主动模式的操作结果信息。The service server switches the state of the first Root virtual switch to an enabled state, and switches the mode of the first virtual switch to an active mode (specifically, switches the daemon process of the first virtual switch to active mode), the service server may also return operation result information indicating that the state of the Root virtual switch is switched to the enabled state and the mode of the first virtual switch is switched to the active mode to the management center server.
需要说明的是,Root虚拟交换机的状态为非使能状态可以是Root虚拟交换机被隔离或者隐藏,即Root虚拟交换机禁止接收任何指令、或者Root虚拟交换机无法接收任何指令,或者Root虚拟交换机无法响应任何指令,Root虚拟交换机的状态为非使能状态还可以是Root虚拟交换机被移除。Root虚拟交换机的状态为使能状态可以是Root虚拟交换机状态切换为正状态,例如,从被隔离或者隐藏的状态中恢复,或者新创建Root虚拟交换机,即Root虚拟交换机接收任何用于操作Root虚拟交换机的指令、并对其作出响应。It should be noted that the state of the Root virtual switch being disabled may mean that the Root virtual switch is isolated or hidden, that is, the Root virtual switch is prohibited from receiving any commands, or the Root virtual switch cannot receive any commands, or the Root virtual switch cannot respond to any commands. Instruction, the state of the Root virtual switch is disabled or the Root virtual switch is removed. The state of the Root virtual switch is enabled. The state of the Root virtual switch can be switched to a positive state, for example, recovering from an isolated or hidden state, or a new Root virtual switch is created, that is, the Root virtual switch Switch commands and respond to them.
虚拟交换机的模式可以为从动模式(例如:Slave模式),从动模式禁止接收用户直接输入的操作,业务服务器上的虚拟交换机的模式为从动模式时,虚拟交换机禁止接收用户在业务服务器上输入的操作;虚拟交换机的模式可以为主动模式(例如:Master模式),主动模式接收用户直接输入的操作,业务服务器上的第一虚拟交换的模式为从动模式时,虚拟交换机可以接收用户在业务服务器上输入的操作。The mode of the virtual switch can be slave mode (for example: Slave mode). The slave mode prohibits receiving operations directly input by users. When the mode of the virtual switch on the business server is slave mode, the virtual switch prohibits receiving Input operation; the mode of the virtual switch can be the active mode (for example: Master mode), the active mode receives the operation directly input by the user, when the mode of the first virtual switch on the service server is the slave mode, the virtual switch can receive the user's Actions entered on the business server.
当Root虚拟交换机的状态切换为使能状态,并将所述虚拟交换机切换为主动模式时,用户就可以直接在业务服务器上管理虚拟交换机,或者用户可以通过管理中心服务器远程登录业务服务器,再在管理中心服务器上管理虚拟交换机。When the state of the Root virtual switch is switched to the enabled state, and the virtual switch is switched to the active mode, the user can directly manage the virtual switch on the service server, or the user can remotely log in to the service server through the management center server, and then Manage virtual switches on the management center server.
上述技术方案中,业务服务器接收用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的请求;业务服务器将所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的状态切换为非使能状态,并将所述第一虚拟交换机的模式切换为从动模式;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作;业务服务器向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,以使所述管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;并在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作。本实施例在上面实施例的基础上增加了业务服务器接收用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的请求的步骤。相比现有技术中需要区分VSS和VDS,且对VSS和VDS进行不同方式的管理,本发明实施例用户只需要在管理中心服务器上管理第二Root虚拟交换机,就可以实现对业务服务器上部署的第一虚拟交换机的管理,例如:用户的操作可以通过第二Root虚拟交换机传递至业务服务器上部署的第一Leaf虚拟交换机,由该第一Leaf虚拟交换机执行该操作。从而本实施例可以提高管理虚拟交换机的效率。In the above technical solution, the service server receives a request for adding the service server to the management center server for central management; The state is switched to a non-enabled state, and the mode of the first virtual switch is switched to a slave mode; wherein, the slave mode is used to prohibit receiving operations input by users on the service server; the service server reports to the management The central server sends the first identity configuration information of the first Root virtual switch and the second identity configuration information of the interface of the first virtual switch, so that the management center server configures the second identity configuration information according to the first identity configuration information. Root virtual switch, and configure the interface of the second root virtual switch according to the second identity configuration information, wherein the second root virtual switch is a mirror image of the first root virtual switch; and in the first virtual switch Establishing a first mapping relationship between the first Leaf virtual switch included in the switch and the second Root virtual switch, and establishing a second mapping relationship between the interface of the second Root virtual switch and the interface of the first Leaf virtual switch The mapping relationship is such that the first Leaf virtual switch can respond to an operation input by a user on the second Root virtual switch configured on the management center server. In this embodiment, on the basis of the above embodiments, a step is added in which the service server receives a request for adding the service server to the management center server for central management. Compared with the prior art, it is necessary to distinguish between VSS and VDS, and to manage VSS and VDS in different ways. In the embodiment of the present invention, users only need to manage the second Root virtual switch on the management center server to implement deployment on the service server. The management of the first virtual switch, for example: user operations can be transmitted to the first Leaf virtual switch deployed on the service server through the second Root virtual switch, and the first Leaf virtual switch executes the operation. Therefore, this embodiment can improve the efficiency of managing virtual switches.
图7是本发明实施例提供的另一种虚拟交换机的管理方法的示意图,如图7所示,包括:Fig. 7 is a schematic diagram of another virtual switch management method provided by an embodiment of the present invention, as shown in Fig. 7 , including:
601、业务服务器将所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的状态切换为非使能状态,并将所述第一虚拟交换机的模式切换为从动模式;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作;601. The service server switches the state of the first Root virtual switch contained in the first virtual switch deployed on the service server to a disabled state, and switches the mode of the first virtual switch to a slave mode; wherein, The slave mode is used to prohibit receiving operations input by users on the service server;
602、业务服务器向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息;602. The service server sends the first identity configuration information of the first Root virtual switch and the second identity configuration information of the interface of the first virtual switch to the management center server;
603、管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;603. The management center server configures a second root virtual switch according to the first identity configuration information, and configures an interface of the second root virtual switch according to the second identity configuration information, where the second root virtual switch is the Describe the image of the first Root virtual switch;
604、管理中心服务器在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作,其中,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口。604. The management center server establishes a first mapping relationship between the first Leaf virtual switch included in the first virtual switch and the second Root virtual switch, and establishes a mapping relationship between the interface of the second Root virtual switch and the first virtual switch. A second mapping relationship is established between interfaces of a Leaf virtual switch, so that the first Leaf virtual switch can respond to an operation input by a user on the second Root virtual switch configured on the management center server, wherein the first An interface of a virtual switch includes an interface of the first Leaf virtual switch and an interface of the first Root virtual switch.
当用户需要对上述第一虚拟交换机进行管理时,用户可以在管理中心服务器上输入用于管理上述第一虚拟交换机的管理命令,管理中心服务器再将该管理命令传输至上述第二Root虚拟交换机,第二Root虚拟交换机再根据上述第一映射关系和第二映射关系,将该管理命令通过第二Root虚拟交换机的接口传输至所述第一Leaf虚拟交换机的接口,再由所述第一Leaf虚拟交换机的接口传输至上述第一Leaf虚拟交换机,由上述第一Leaf虚拟交换机执行该管理命令,而上述第一Leaf虚拟交换机为上述第一虚拟交换机的一部分,即上述第一Leaf虚拟交换机连接的业务就是上述第一虚拟交换机连接业务,即上述Leaf执行该操作命令等同于上述第一虚拟交换机执行该操作命令,从而实现用户只需要在管理中心服务器对第二Root虚拟交换机的管理就可以完成业务服务器上的虚拟交换机的管理。When the user needs to manage the above-mentioned first virtual switch, the user can input a management command for managing the above-mentioned first virtual switch on the management center server, and the management center server transmits the management command to the above-mentioned second Root virtual switch, The second Root virtual switch transmits the management command to the interface of the first Leaf virtual switch through the interface of the second Root virtual switch according to the above-mentioned first mapping relationship and the second mapping relationship, and then the first Leaf virtual switch The interface of the switch is transmitted to the above-mentioned first Leaf virtual switch, and the above-mentioned first Leaf virtual switch executes the management command, and the above-mentioned first Leaf virtual switch is a part of the above-mentioned first virtual switch, that is, the business connected to the above-mentioned first Leaf virtual switch It is the above-mentioned first virtual switch connection service, that is, the execution of the operation command by the above-mentioned Leaf is equivalent to the execution of the operation command by the above-mentioned first virtual switch, so that the user only needs to manage the second Root virtual switch in the management center server to complete the business server Management of virtual switches on the .
可选的,上述第一虚拟交换机可以是一个或者多个虚拟交换机,当上述第一虚拟交换机为多个虚拟交换机时,本实施中第二Root虚拟交换机可以与多个虚拟交换机的Leaf虚拟交换机建立第一映射关系,同时,第二Root虚拟交换机配置多个接口,再将这些接口与多个虚拟交换机的接口建立映射关系。Optionally, the above-mentioned first virtual switch may be one or more virtual switches. When the above-mentioned first virtual switch is a plurality of virtual switches, in this implementation, the second Root virtual switch may be established with the Leaf virtual switches of the multiple virtual switches. In the first mapping relationship, at the same time, the second Root virtual switch configures multiple interfaces, and then establishes a mapping relationship between these interfaces and interfaces of multiple virtual switches.
上述技术方案中,业务服务器将所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的状态切换为非使能状态,并将所述第一虚拟交换机的模式切换为从动模式;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作;业务服务器向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息;管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;管理中心服务器在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作。相比现有技术中需要区分VSS和VDS,且对VSS和VDS进行不同方式的管理,本实施例用户只需要在管理中心服务器上管理第二Root虚拟交换机,就可以实现对业务服务器上部署的第一虚拟交换机的管理,例如:用户的操作可以通过第二Root虚拟交换机传递至业务服务器上部署的第一Leaf虚拟交换机,由该第一Leaf虚拟交换机执行该操作。从而本实施例可以提高管理虚拟交换机的效率。In the above technical solution, the service server switches the state of the first Root virtual switch included in the first virtual switch deployed on the service server to a disabled state, and switches the mode of the first virtual switch to a slave mode ; Wherein, the slave mode is used to prohibit receiving operations input by users on the service server; the service server sends the first identity configuration information of the first Root virtual switch and the first virtual switch to the management center server The second identity configuration information of the interface; the management center server configures the second Root virtual switch according to the first identity configuration information, and configures the interface of the second Root virtual switch according to the second identity configuration information, wherein the The second Root virtual switch is a mirror image of the first Root virtual switch; the management center server establishes a first mapping relationship between the first Leaf virtual switch contained in the first virtual switch and the second Root virtual switch, and Establish a second mapping relationship between the interface of the second Root virtual switch and the interface of the first Leaf virtual switch, so that the first Leaf virtual switch can respond to the first user configured on the management center server Operations entered on the second Root virtual switch. Compared with the prior art, it is necessary to distinguish between VSS and VDS, and to manage VSS and VDS in different ways. In this embodiment, users only need to manage the second Root virtual switch on the management center server to realize the deployment on the service server. The management of the first virtual switch, for example, the user's operation may be transmitted to the first leaf virtual switch deployed on the service server through the second root virtual switch, and the first leaf virtual switch executes the operation. Therefore, this embodiment can improve the efficiency of managing virtual switches.
图8是本发明实施例提供的另一种虚拟交换机的管理方法的示意图,如图8所示,包括:Fig. 8 is a schematic diagram of another virtual switch management method provided by an embodiment of the present invention, as shown in Fig. 8 , including:
701、管理中心服务器接收用户输入的用于请求将业务服务器加入管理中心服务器进行中心管理的请求消息,请求消息包含业务服务器的相关信息,比如标识信息,认证信息等等;701. The management center server receives a request message input by the user for requesting that the service server be added to the management center server for central management, and the request message includes relevant information of the service server, such as identification information, authentication information, etc.;
702、管理中心服务器接收到上述请求之后,确认该业务服务器未被加入本管理中心服务器,若该业务主机未被加入本管理中心则执行步骤703,若该业务主机加入本管理中心服务器,则流程结束;702. After receiving the above request, the management center server confirms that the business server has not been added to the management center server. If the business host has not been added to the management center, execute
703、管理中心服务器向业务服务器发送加入管理中心的命令,该命令中包含管理中心服务器的标识信息,业务服务器的标识信息以及认证信息;703. The management center server sends a command to join the management center to the business server, and the command includes the identification information of the management center server, the identification information of the business server, and the authentication information;
704、业务服务器虚接收到上述命令之后,确认该管理中心是否有权限将业务服务器加入管理中心,若是,则执行步骤705,若否,则向管理中心返回错误信息,告知管理中心操作不被允许。704. After receiving the above command, the business server confirms whether the management center has the authority to add the business server to the management center. If yes, execute
705、业务服务器确定本业务服务器尚未被加入到任何其它管理中心服务器,若是,则执行步骤706,若否,则向管理中心服务器返回错误信息,告知管理中心服务器操作不被允许。705. The service server determines that the service server has not been added to any other management center server. If yes, execute
其中,步骤704和步骤705两个判断的执行顺序可以不作限定,即可以先确定本业务服务器尚未被加入到任何其它管理中心服务器,若是,则确认该管理中心是否有权限将业务服务器加入管理中心服务器,若是由执行步骤706。Wherein, the execution order of the two judgments of
706、业务服务器收集业务服务器上所有虚拟交换机的信息,该信息包括虚拟交换机的身份标示信息(例如:包括UUID,ID,名称等)以及该虚拟交换机的配置信息,该配置信息包括MTU等;并收集每个虚拟交换机的接口的身份标识(例如:包括UUID,ID,Name等)以及该接口的配置信息,该配置信息包括VLAN,QoS,ACL等信息;706. The service server collects the information of all virtual switches on the service server, the information includes the identification information of the virtual switch (for example: including UUID, ID, name, etc.) and the configuration information of the virtual switch, the configuration information includes MTU, etc.; and Collect the identity of the interface of each virtual switch (for example: including UUID, ID, Name, etc.) and the configuration information of the interface, the configuration information includes VLAN, QoS, ACL and other information;
707、业务服务器将业务服务器虚拟交换机的守护进程的模式切换为Slave模式(例如,上述实施例的从动模式),并将虚拟交换机对象的角色切换为Leaf虚拟交换机(例如:将虚拟交换机的Root虚拟交换机的状态切换为非全能状态),但并不改变虚拟交换机的任何属性。其中,Slave模式的虚拟交换机的守护进程不接受用户直接指令操作,同时Leaf虚拟交换机对用户不可见,用户也无法对该Leaf虚拟交换机操作。所有操作只能通过管理中心来完成。707. The service server switches the mode of the daemon process of the service server virtual switch to Slave mode (for example, the slave mode in the above-mentioned embodiment), and switches the role of the virtual switch object to the Leaf virtual switch (for example: the Root virtual switch of the virtual switch The state of the virtual switch is switched to the non-full state), but it does not change any attributes of the virtual switch. Among them, the daemon process of the virtual switch in slave mode does not accept direct instructions from users to operate, and at the same time, the leaf virtual switch is invisible to the user, and the user cannot operate the leaf virtual switch. All operations can only be done through the management center.
708、业务服务器将操作结果以及收集的所有信息上报给管理中心服务器;该操作结果为上述认证的认证结果信息。708. The service server reports the operation result and all collected information to the management center server; the operation result is the authentication result information of the above-mentioned authentication.
709、管理中心服务器基于收集上来的虚拟交换机的信息,创建Root虚拟交换机,并将该Root虚拟交换机与业务服务器上的虚拟交换机的Leaf虚拟交换机建立映射关系。其中,该Root虚拟交换机的身份标示和配置信息与在业务服务器中原来的虚拟交换机完全相同。709. The management center server creates a Root virtual switch based on the collected virtual switch information, and establishes a mapping relationship between the Root virtual switch and the Leaf virtual switch of the virtual switch on the service server. Wherein, the identity mark and configuration information of the Root virtual switch are exactly the same as the original virtual switch in the service server.
其中,该Root虚拟交换机具有分布式的所有功能,可以覆盖了多个业务服务器;即该Root虚拟交换机可以与多个业务服务器上的虚拟交换机的Leaf虚拟交换机建立映射关系。Wherein, the Root virtual switch has all distributed functions and can cover multiple service servers; that is, the Root virtual switch can establish a mapping relationship with the Leaf virtual switches of the virtual switches on multiple service servers.
710、管理中心服务器基于收集上来的信息,在上述创建的Root虚拟交换机上创建与业务服务器上的虚拟交换机的上相同的接口,此处相同是指身份标识和配置等完全相同。然后将这些Port与业务服务器上的Leaf虚拟交换机上的Port建立映射关系。710. Based on the collected information, the management center server creates the same interface on the root virtual switch created above as that on the virtual switch on the service server, where the same means that the identity and configuration are completely the same. Then establish a mapping relationship between these ports and the ports on the leaf virtual switch on the service server.
711、管理中心服务器将业务服务器加入到管理中心的主机管理列表中;711. The management center server adds the service server to the host management list of the management center;
712、管理中心服务器的虚拟交换机的守护进程向用户返回操作结果;该操作结果可以表示业务服务器加入管理中心服务器。712. The daemon process of the virtual switch of the management center server returns an operation result to the user; the operation result may indicate that the service server joins the management center server.
这样可以实现业务服务器中的所有虚拟交换机被收集到管理中心呈现,并生成了实际的虚拟交换机对象,上述Root虚拟交换机。用户对业务服务器上的虚拟交换机进行管理时无需区分这些虚拟交换机是在管理中心创建的Root虚拟交换机还是在业务服务器上的虚拟交换机,Root虚拟交换机与在管理中心创建的分布式虚拟交换机完全相同。并且不会对业务服务器上的业务造成影响。In this way, all virtual switches in the service server can be collected and presented in the management center, and an actual virtual switch object, the above-mentioned Root virtual switch, is generated. When managing the virtual switches on the service server, the user does not need to distinguish whether these virtual switches are the root virtual switches created in the management center or the virtual switches on the service servers. The root virtual switch is exactly the same as the distributed virtual switch created in the management center. And it will not affect the business on the business server.
在另一个实施例中,步骤707可以在步骤701之前执行,即业务服务器可以预先将虚拟交换机的守护进程将业务服务器虚拟交换机的守护进程的模式切换为Slave模式,并将虚拟交换机对象的角色切换为Leaf虚拟交换机。In another embodiment, step 707 can be performed before
上述技术方案中,管理中心服务器接收用户输入的用于请求将业务服务器加入管理中心服务器进行中心管理的请求消息;管理中心服务器确认该业务服务器未被加入本管理中心服务器;管理中心服务器向业务服务器发送加入管理中心的命令;业务服务器确认该管理中心有权限将业务服务器加入管理中心;业务服务器确定本业务服务器尚未被加入到任何其它管理中心服务器;业务服务器收集业务服务器上所有虚拟交换机的信息;业务服务器将业务服务器虚拟交换机的守护进程的模式切换为Slave模式,并将虚拟交换机对象的角色切换为Leaf虚拟交换机;业务服务器将操作结果以及收集的所有信息上报给管理中心服务器;、管理中心服务器基于收集上来的虚拟交换机的信息,创建Root虚拟交换机,并将该Root虚拟交换机与业务服务器上的虚拟交换机的Leaf虚拟交换机建立映射关系;管理中心服务器基于收集上来的信息,在上述创建的Root虚拟交换机上创建与业务服务器上的虚拟交换机的上相同的接口,此处相同是指身份标识和配置等完全相同。然后将这些Port与业务服务器上的Leaf虚拟交换机上的Port建立映射关系。管理中心服务器将业务服务器加入到管理中心的主机管理列表中;管理中心服务器的虚拟交换机的守护进程向用户返回操作结果;该操作结果可以表示业务服务器加入管理中心服务器。相比现有技术中需要区分VSS和VDS,且对VSS和VDS进行不同方式的管理,本实施例用户只需要在管理中心服务器上管理第二Root虚拟交换机,就可以实现对业务服务器上部署的第一虚拟交换机的管理,例如:用户的操作可以通过第二Root虚拟交换机传递至业务服务器上部署的第一Leaf虚拟交换机,由该第一Leaf虚拟交换机执行该操作。从而本实施例可以提高管理虚拟交换机的效率。In the above technical solution, the management center server receives the request message input by the user for requesting that the business server be added to the management center server for central management; the management center server confirms that the business server has not been added to the management center server; Send a command to join the management center; the business server confirms that the management center has the authority to add the business server to the management center; the business server determines that the business server has not been added to any other management center server; the business server collects information on all virtual switches on the business server; The business server switches the mode of the daemon process of the business server virtual switch to Slave mode, and switches the role of the virtual switch object to the Leaf virtual switch; the business server reports the operation result and all collected information to the management center server; and the management center server Create a Root virtual switch based on the collected virtual switch information, and establish a mapping relationship between the Root virtual switch and the Leaf virtual switch of the virtual switch on the service server; Create the same interface on the switch as that on the virtual switch on the service server. The same here means that the identity and configuration are exactly the same. Then establish a mapping relationship between these ports and the ports on the leaf virtual switch on the service server. The management center server adds the business server to the host management list of the management center; the daemon process of the virtual switch of the management center server returns the operation result to the user; the operation result can indicate that the business server has joined the management center server. Compared with the prior art, it is necessary to distinguish between VSS and VDS, and to manage VSS and VDS in different ways. In this embodiment, users only need to manage the second Root virtual switch on the management center server to realize the deployment on the service server. The management of the first virtual switch, for example, the user's operation may be transmitted to the first leaf virtual switch deployed on the service server through the second root virtual switch, and the first leaf virtual switch executes the operation. Therefore, this embodiment can improve the efficiency of managing virtual switches.
图9是本发明实施例提供的另一种虚拟交换机的管理方法的示意图,如图9所示,包括:Fig. 9 is a schematic diagram of another virtual switch management method provided by an embodiment of the present invention, as shown in Fig. 9 , including:
801、管理中心服务器接收用户输入的请求将业务服务器从管理中心移除的请求消息,该请求消息包含业务服务器相关信息,例如:UUID、ID和名称。801. The management center server receives a request message input by a user requesting to remove the service server from the management center, and the request message includes information related to the service server, such as UUID, ID and name.
802、管理中心服务器判断该业务服务器是否已经加入到管理中心,若是,则执行步骤803,若否,则显示出错信息;802. The management center server judges whether the service server has joined the management center, if yes, execute
803、管理中心向服务器业务服务器下发移除命令;803. The management center issues a removal command to the server business server;
804、业务服务器判断业务服务器是否已经加入到该管理中心服务器,若是,则执行步骤805,若否则返回出错信息给管理中心服务器;804. The business server judges whether the business server has joined the management center server, if yes, executes
805、业务服务器将虚拟交换机的守护进程模式切换为Master模式(例如:上述实施例的主动模式),并将所有虚拟交换机对象角色切换为Root虚拟交换机(例如:将虚拟交换机的Root虚拟交换机的状态切换为使能状态)。这样此用户可以通过远程登录方式管理该业务服务器中的虚拟交换机;805. The service server switches the daemon process mode of the virtual switch to the Master mode (for example: the active mode in the above embodiment), and switches the roles of all virtual switch objects to the Root virtual switch (for example: the state of the Root virtual switch of the virtual switch switch to enable state). In this way, the user can manage the virtual switch in the business server through remote login;
806、业务服务器向管理中心服务器返回操作结果,该操作结果可以表示业务服务器将虚拟交换机的守护进程模式切换为Master模式,所有虚拟交换机对象角色切换为Root虚拟交换机。806. The service server returns an operation result to the management center server. The operation result may indicate that the service server switches the daemon process mode of the virtual switch to the master mode, and switches the roles of all virtual switch objects to the root virtual switch.
807、管理中心服务器遍历虚拟交换机列表查找与上述业务服务器中Leaf虚拟交换机建立映射关系的Root虚拟交换机;807. The management center server traverses the list of virtual switches to find the Root virtual switch that establishes a mapping relationship with the Leaf virtual switch in the above service server;
808、管理中心服务器删除上述Root虚拟交换机中与上述业务服务器中Leaf虚拟交换机接口建立映射关系的所有接口;808. The management center server deletes all the interfaces in the above-mentioned Root virtual switch that have a mapping relationship with the interface of the Leaf virtual switch in the above-mentioned service server;
809、管理中心服务器解除上述Root虚拟交换机与上述业务服务器中Leaf虚拟交换机的映射关系;809. The management center server cancels the mapping relationship between the root virtual switch and the leaf virtual switch in the service server;
810、管理中心服务器将业务服务器从管理中心的主机管理列表中移除;810. The management center server removes the service server from the host management list of the management center;
811、管理中心服务器显示操作结果,该操作结果可以表示业务服务器从管理中心的主机管理列表中移除。811. The management center server displays an operation result, which may indicate that the service server is removed from the host management list of the management center.
步骤801之后该业务服务器不再受中心管理服务器。同时该业务服务器上的虚拟交换机也只能通过远程访问或者本地终端接入的方式管理。After
在另一个实施例中,用户还可以在业务服务器上输入请求将业务服务器从管理中心服务器移除的请求消息,当业务服务器确认该业务服务器加入管理中心服务器后,业务服务器向管理中心服务器发送移除命令,当管理中心接收到该移除命令后,就可以执行上述步骤806-步骤810。之后,业务服务器就可以执行上述步骤804,并显示操作结果,该操作结果可以表示业务服务器从管理中心的主机管理列表中移除。In another embodiment, the user can also input a request message on the service server to request that the service server be removed from the management center server. Remove the command, after the management center receives the remove command, it can execute the above steps 806-810. Afterwards, the service server may execute the
需要说明的是,该实施例可以与上述图8所示的实施例一起执行,例如:It should be noted that this embodiment can be executed together with the embodiment shown in FIG. 8 above, for example:
步骤801在步骤712之后执行。Step 801 is executed after step 712 .
上述技术方案中,具体介绍了管理中心服务器移动对业务服务器的管理,该实施例可以结合图8所示的实施例一起实现,这样相比现有技术中需要区分VSS和VDS,且对VSS和VDS进行不同方式的管理,本发明实施例用户只需要在管理中心服务器上管理第二Root虚拟交换机,就可以实现对业务服务器上部署的第一虚拟交换机的管理,例如:用户的操作可以通过第二Root虚拟交换机传递至业务服务器上部署的第一Leaf虚拟交换机,由该第一Leaf虚拟交换机执行该操作。从而本实施例可以提高管理虚拟交换机的效率。In the above technical solution, the mobile management of the management center server to the management of the service server is specifically introduced. This embodiment can be implemented together with the embodiment shown in FIG. VDS performs management in different ways. In the embodiment of the present invention, users only need to manage the second Root virtual switch on the management center server to manage the first virtual switch deployed on the service server. The second Root virtual switch transmits the information to the first Leaf virtual switch deployed on the service server, and the first Leaf virtual switch performs the operation. Therefore, this embodiment can improve the efficiency of managing virtual switches.
以下为本发明实施例的应用场景说明:The following is a description of the application scenario of the embodiment of the present invention:
已存在一个虚拟交换机集群,其中该集群中的管理中心为管理中心服务器;同时存在一个单独的业务服务器,业务服务器中的虚拟交换机对象都为单机虚拟交换机;A virtual switch cluster already exists, and the management center in the cluster is the management center server; there is also a separate business server, and the virtual switch objects in the business server are all stand-alone virtual switches;
此时,用户需要将该业务服务器加入到集群中统一管理;At this point, the user needs to add the business server to the cluster for unified management;
管理中心服务器将业务服务器中的所有虚拟交换机对象收集到管理中心服务器,管理中心服务器配置上述第二Root虚拟交换机,该第二Root虚拟交换机自动转变为一个分布式虚拟交换机,此时用户可以直接在管理中心服务器对该虚拟交换机进行操作,并不需要远程登录或者独立的通道;The management center server collects all the virtual switch objects in the service server to the management center server, and the management center server configures the above-mentioned second Root virtual switch, and the second Root virtual switch is automatically transformed into a distributed virtual switch. At this time, users can directly The management center server does not need remote login or independent channel to operate the virtual switch;
第二Root虚拟交换机所有属性与业务服务器中原有EVS属性相同,并且不会影响原有在该业务服务器上的业务;All attributes of the second Root virtual switch are the same as the original EVS attributes in the business server, and will not affect the original business on the business server;
此外该分布式虚拟交换机还具有了扩展的功能,可以让该分布式虚拟交换机覆盖其他的业务服务器;In addition, the distributed virtual switch also has extended functions, allowing the distributed virtual switch to cover other business servers;
用户将一个业务服务器从管理中心服务器移除;The user removes a business server from the management center server;
管理中心会遍历所有虚拟交换机找到覆盖了该业务服务器的虚拟交换机;The management center will traverse all virtual switches to find the virtual switch that covers the business server;
将该业务服务器上的Leaf虚拟交换机信息从该第二Root虚拟交换机中移出,但并不影响该第二Root虚拟交换机在其他业务服务器上的业务;Moving the Leaf virtual switch information on the service server from the second Root virtual switch without affecting the services of the second Root virtual switch on other service servers;
同时业务服务器中的Root虚拟交换机切换为主动状态,用户可单独进行管理。At the same time, the Root virtual switch in the service server is switched to the active state, and the user can manage it independently.
下面为本发明装置实施例,本发明装置实施例用于执行本发明方法实施例一至八实现的方法,为了便于说明,仅示出了与本发明实施例相关的部分,具体技术细节未揭示的,请参照本发明实施例一、实施例二、实施例三、实施例四、实施例五、实施例六、实施例七和实施例八。The following are device embodiments of the present invention. The device embodiments of the present invention are used to execute the methods realized by the
图10是本发明实施例提供的一种管理中心服务器的结构示意图,管理中心服务器用于管理虚拟交换机,该实施例中虚拟交换机包含Root虚拟交换机和Leaf虚拟交换机,如图10所示,所述设备包括:第一接收单元11、配置单元12和建立单元13,其中:FIG. 10 is a schematic structural diagram of a management center server provided by an embodiment of the present invention. The management center server is used to manage a virtual switch. In this embodiment, the virtual switch includes a Root virtual switch and a Leaf virtual switch, as shown in FIG. 10 , the The device includes: a
第一接收单元11,用于接收业务服务器发送的所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,所述第一虚拟交换机的模式为从动模式,所述第一Root虚拟交换机的状态为非使能状态;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作。The
配置单元12,用于根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;The
建立单元13,用于在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作,其中,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口。The
可选的,建立单元13建立映射关系可以存储在所述设备中,当用户需要对上述第一虚拟交换机进行管理时,用户可以在管理中心服务器上输入用于管理上述第一虚拟交换机的管理命令,管理中心服务器再将该管理命令传输至上述第二Root虚拟交换机,第二Root虚拟交换机再根据上述第一映射关系和第二映射关系,将该管理命令通过第二Root虚拟交换机的接口传输至所述第一Leaf虚拟交换机的接口,再由所述第一Leaf虚拟交换机的接口传输至上述第一Leaf虚拟交换机,由上述第一Leaf虚拟交换机执行该管理命令,而上述第一Leaf虚拟交换机为上述第一虚拟交换机的一部分,即上述第一Leaf虚拟交换机连接的业务就是上述第一虚拟交换机连接业务,即上述Leaf执行该操作命令等同于上述第一虚拟交换机执行该操作命令,从而实现用户只需要在管理中心服务器对第二Root虚拟交换机的管理就可以完成业务服务器上的虚拟交换机的管理。Optionally, the mapping relationship established by the
可选的,上述第一虚拟交换机可以是一个或者多个虚拟交换机,当上述第一虚拟交换机为多个虚拟交换机时,本实施中第二Root虚拟交换机可以与多个虚拟交换机的Leaf虚拟交换机建立第一映射关系,同时,第二Root虚拟交换机配置多个接口,再将这些接口与多个虚拟交换机的接口建立映射关系。Optionally, the above-mentioned first virtual switch may be one or more virtual switches. When the above-mentioned first virtual switch is a plurality of virtual switches, in this implementation, the second Root virtual switch may be established with the Leaf virtual switches of the multiple virtual switches. In the first mapping relationship, at the same time, the second Root virtual switch configures multiple interfaces, and then establishes a mapping relationship between these interfaces and interfaces of multiple virtual switches.
在另一个实施例中,所述第一身份配置信息可以包含所述第一虚拟交换机的标识信息和配置信息,所述第二身份配置信息可以包括所述第一虚拟交换机的接口的标识信息和配置信息;In another embodiment, the first identity configuration information may include the identification information and configuration information of the first virtual switch, and the second identity configuration information may include the identification information and configuration information of the interface of the first virtual switch. configuration information;
可选的,上述第一虚拟交换机的标识信息可以包括如下至少一项:Optionally, the identification information of the first virtual switch may include at least one of the following:
UUID、ID和名称,其中,该标识信息用于唯一标识虚拟交换机。UUID, ID and name, where the identification information is used to uniquely identify the virtual switch.
可选的,上述第一虚拟交换机的配置信息可以包括:Optionally, the configuration information of the first virtual switch may include:
MTU信息。该配置信息用于配置第二Root虚拟交换机,即管理中心服务器可以根据该配置信息配置第二Root虚拟交换机。MTU information. The configuration information is used to configure the second Root virtual switch, that is, the management center server can configure the second Root virtual switch according to the configuration information.
可选的,上述接口的标识信息可以包括如下至少一项:Optionally, the identification information of the above interface may include at least one of the following:
UUID、ID和名称,其中,该标识信息用于唯一标识接口。UUID, ID and name, where the identification information is used to uniquely identify the interface.
可选的,上述接口的配置信息可以包括如下至少一项:Optionally, the configuration information of the above interface may include at least one of the following:
VLAN信息、QoS信息和ACL信息,该配置信息用于配置接口,即管理中心服务器可以根据该配置信息配置接口。VLAN information, QoS information and ACL information, the configuration information is used to configure the interface, that is, the management center server can configure the interface according to the configuration information.
所述第一身份配置信息包含所述第一Root虚拟交换机的标识信息和配置信息,所述第二身份配置信息包括所述第一虚拟交换机的接口的标识信息和配置信息;配置单元12具体还可以用于根据所述第一Root虚拟交换机的标识信息和配置信息,配置标识与所述第一Root虚拟交换机的标识相同,且配置参数与所述第一Root虚拟交换机的配置参数相同的第二Root虚拟交换机;以及根据所述第一虚拟交换机的接口的标识信息和配置信息的标识信息和配置信息,配置标识与所述第一虚拟交换机的接口的标识信息和配置信息的标识相同,且配置参数与所述第一虚拟交换机的接口的标识信息和配置信息的配置参数相同的第二Root虚拟交换机的接口。The first identity configuration information includes identification information and configuration information of the first Root virtual switch, and the second identity configuration information includes identification information and configuration information of interfaces of the first virtual switch; the
可选的,上述管理中心服务器可以是上面实施例描述的管理中心服务器。Optionally, the above-mentioned management center server may be the management center server described in the above embodiments.
上述技术方案中,管理中心服务器接收业务服务器发送的所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,所述第一虚拟交换机的模式为从动模式,所述第一Root虚拟交换机的状态为非使能状态;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作;管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;管理中心服务器在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作。相比现有技术中需要区分VSS和VDS,且对VSS和VDS进行不同方式的管理,本实施例用户只需要在管理中心服务器上管理第二Root虚拟交换机,就可以实现对业务服务器上的虚拟交换机的管理,例如:用户的操作可以通过第二Root虚拟交换机传递至业务服务器上的第一Leaf虚拟交换机,由该第一Leaf虚拟交换机执行该操作。从而本实施例可以提高管理虚拟交换机的效率。In the above technical solution, the management center server receives the first identity configuration information of the first Root virtual switch contained in the first virtual switch deployed on the business server and the second identity of the interface of the first virtual switch sent by the business server. Configuration information, the mode of the first virtual switch is a slave mode, and the state of the first Root virtual switch is a non-enabled state; wherein, the slave mode is used to prohibit receiving user input on the service server The operation; the management center server configures the second Root virtual switch according to the first identity configuration information, and configures the interface of the second Root virtual switch according to the second identity configuration information, wherein the second Root virtual switch is The image of the first Root virtual switch; the management center server establishes a first mapping relationship between the first Leaf virtual switch contained in the first virtual switch and the second Root virtual switch, and A second mapping relationship is established between the interface of the virtual switch and the interface of the first Leaf virtual switch, so that the first Leaf virtual switch can respond to user input on the second Root virtual switch configured on the management center server. operation. Compared with the prior art, it is necessary to distinguish between VSS and VDS, and to manage VSS and VDS in different ways. In this embodiment, users only need to manage the second Root virtual switch on the management center server to realize the virtualization on the service server. Management of switches, for example: user operations may be transmitted to the first Leaf virtual switch on the service server through the second Root virtual switch, and the first Leaf virtual switch executes the operation. Therefore, this embodiment can improve the efficiency of managing virtual switches.
图11是本发明实施例提供的另一种管理中心服务器的结构示意图,本实施例中虚拟交换机包含Root虚拟交换机和Leaf虚拟交换机,如图11所示,该设备包括:第二接收单元21、发送单元22、第一接收单元23、配置单元24和建立单元25,其中:FIG. 11 is a schematic structural diagram of another management center server provided by an embodiment of the present invention. In this embodiment, the virtual switch includes a Root virtual switch and a Leaf virtual switch. As shown in FIG. 11 , the device includes: a second receiving unit 21, The sending unit 22, the first receiving unit 23, the configuring unit 24 and the establishing unit 25, wherein:
第二接收单元21,用于接收用户输入的用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的请求消息,所述请求消息包含所述业务服务器的标识信息。The second receiving unit 21 is configured to receive a request message input by a user for requesting the service server to be added to the management center server for central management, where the request message includes identification information of the service server.
业务服务器的标识信息可以包括:The identification information of the service server may include:
ID、UUID、名称等信息,该标识信息用于唯一标识业务服务器。ID, UUID, name and other information, the identification information is used to uniquely identify the business server.
发送单元22,用于根据所述业务服务器的标识信息向所述业务服务器发送用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的命令,以使所述业务服务器向所述管理中心服务器返回所述第一身份配置信息和所述第二身份配置信息。The sending unit 22 is configured to send to the service server a command for requesting to add the service server to the management center server for central management according to the identification information of the service server, so that the service server can send the service server to the management center server. The central server returns the first identity configuration information and the second identity configuration information.
当业务服务器接收到上述命令时,业务服务器就可以向管理中心服务器发送所述第一虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息。When the service server receives the above command, the service server may send the first identity configuration information of the first virtual switch and the second identity configuration information of the interface of the first virtual switch to the management center server.
第二接收单元21具体可以用于接收用户输入的用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的请求消息,所述请求消息包含所述业务服务器的标识信息和用于所述业务服务器认证的认证信息;The second receiving unit 21 may be specifically configured to receive a request message input by a user for requesting that the service server be added to the management center server for central management, the request message including the identification information of the service server and the The authentication information of the business server authentication;
发送单元22具体可以用于根据所述业务服务器的标识信息向所述业务服务器发送用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的命令,所述命令还包含所述认证信息,以使所述业务服务器使用所述认证信息进行认证,当所述业务服务器认证通过时,由所述业务服务器向所述管理中心服务器返回所述第一身份配置信息和所述第二身份配置信息。即业务服务器接收到该命令时,就可以通过该认证信息进行认证,例如:判断业务服务器是否已经加入其它管理中心,若是,认证失败,若否,则认证通过;或者,判断通信设备是否有权限将业务服务器加入管理中心,若是,由认证通过,若否,则认证失败;当然还可以判断业务服务器是否已经加入管理中心,若否则判断通信设备是否有权限将业务服务器加入管理中心,当这两个判断都通过时,则表示认证通过。The sending unit 22 can specifically be configured to send a command for requesting to add the business server to the management center server for central management to the business server according to the identification information of the business server, and the command also includes the authentication information so that the service server uses the authentication information for authentication, and when the service server passes the authentication, the service server returns the first identity configuration information and the second identity configuration information to the management center server information. That is, when the business server receives the command, it can authenticate through the authentication information, for example: to determine whether the business server has joined other management centers, if so, the authentication fails, if not, then the authentication passes; or, to determine whether the communication device has authority Add the business server to the management center, if yes, pass the authentication, if not, then the authentication fails; of course, you can also judge whether the business server has joined the management center, if not, judge whether the communication device has the authority to add the business server to the management center, when the two When all the judgments are passed, it means that the authentication is passed.
第一接收单元23,用于接收业务服务器发送的所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,所述第一虚拟交换机的模式为从动模式,所述第一Root虚拟交换机的状态为非使能状态;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作。The first receiving unit 23 is configured to receive the first identity configuration information of the first Root virtual switch included in the first virtual switch deployed on the service server and the second identity of the interface of the first virtual switch sent by the service server Configuration information, the mode of the first virtual switch is a slave mode, and the state of the first Root virtual switch is a non-enabled state; wherein, the slave mode is used to prohibit receiving user input on the service server operation.
第一接收单元23还可以接收业务服务器发送的认证结果,当该认证结果为认证通过时,第一接收单元23接收业务服务器发送的所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息;当认证结果为认证不通过时,第一接收单元23只接收到该认证结果,而接收不到上述配置信息。The first receiving unit 23 may also receive the authentication result sent by the service server. When the authentication result is that the authentication is passed, the first receiving unit 23 receives the first Root that is contained in the first virtual switch deployed on the service server and sent by the service server. The first identity configuration information of the virtual switch and the second identity configuration information of the interface of the first virtual switch; when the authentication result is that the authentication fails, the first receiving unit 23 only receives the authentication result, but does not receive the above-mentioned configuration information.
配置单元24,用于根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像口。The configuration unit 24 is configured to configure a second Root virtual switch according to the first identity configuration information, and configure an interface of the second Root virtual switch according to the second identity configuration information, wherein the second Root virtual switch is A mirror port of the first Root virtual switch.
建立单元25,用于在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作,其中,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口。The establishment unit 25 is configured to establish a first mapping relationship between the first Leaf virtual switch contained in the first virtual switch and the second Root virtual switch, and establish a first mapping relationship between the interface of the second Root virtual switch and the A second mapping relationship is established between interfaces of the first Leaf virtual switch, so that the first Leaf virtual switch can respond to an operation input by a user on the second Root virtual switch configured on the management center server, wherein the The interface of the first virtual switch includes an interface of the first Leaf virtual switch and an interface of the first Root virtual switch.
在另一个实施例中,所述设备还可以包括:In another embodiment, the device may also include:
删除单元(附图中未画出),用于删除所述第一映射关系和所述第二映射关系,并向所述业务服务器发送用于将所述业务服务器移除管理中心服务器的中心管理的移除命令,以使所述业务服务器将所述第一Root虚拟交换机的状态切换为使能状态,所述第一虚拟交换机的模式切换为主动模式;所述主动模式用于允许接收用户在所述业务服务器上输入的操作。A deletion unit (not shown in the drawings), configured to delete the first mapping relationship and the second mapping relationship, and send a central management message for removing the business server from the management center server to the service server. remove command, so that the service server switches the state of the first Root virtual switch to an enabled state, and switches the mode of the first virtual switch to an active mode; the active mode is used to allow the receiving user to The operation entered on the business server.
删除单元(附图中未画出)具体可以用于接收用户输入的用于将所述业务服务器移除管理中心服务器的中心管理的请求消息,请求消息包含业务服务器的标识信息;删除所述第一映射关系和所述第二映射关系,并向所述业务服务器发送用于将所述业务服务器移除管理中心服务器的中心管理的移除命令,以使所述业务服务器将所述第一Root虚拟交换机的状态切换为使能状态,所述第一虚拟交换机的模式切换为主动模式;所述主动模式用于允许接收用户在所述业务服务器上输入的操作。。或者The deletion unit (not shown in the drawings) may be specifically configured to receive a request message input by the user for removing the service server from the central management of the management center server, the request message includes the identification information of the service server; delete the first a mapping relationship and the second mapping relationship, and send to the service server a removal command for removing the service server from the central management of the management center server, so that the service server will remove the first Root The state of the virtual switch is switched to an enabled state, and the mode of the first virtual switch is switched to an active mode; the active mode is used to allow receiving operations input by users on the service server. . or
删除单元(附图中未画出)具体可以用于接收业务服务器发送的用于将所述业务服务器移除管理中心服务器的中心管理的请求消息;以及删除所述第一映射关系和所述第二映射关系。The deletion unit (not shown in the drawings) can be specifically configured to receive a request message sent by the service server for removing the service server from the central management of the management center server; and delete the first mapping relationship and the second mapping relationship. Two mapping relationships.
需要说明的是,删除单元(附图中未画出)还可以用于在图10所示的实施例中,即当图11所示的实施例中不包含第二接收单元21和发送单元22时,本实施例也可以实现。It should be noted that the deletion unit (not shown in the drawings) can also be used in the embodiment shown in FIG. 10 , that is, when the second receiving unit 21 and the sending unit 22 are not included in the embodiment shown in FIG. , this embodiment can also be implemented.
管理中心服务器向业务服务器发送用于将所述业务服务器移除管理中心服务器的中心管理的移除命令,以使所述业务服务器将所述第一Root虚拟交换机的状态切换为使能状态,所述第一虚拟交换机的模式切换为主动模式;所述主动模式用于允许接收用户在所述业务服务器上输入的操作。The management center server sends a removal command for removing the service server from the central management of the management center server to the service server, so that the service server switches the state of the first Root virtual switch to an enabled state, so The mode of the first virtual switch is switched to an active mode; the active mode is used to allow operations input by users on the service server to be received.
管理中心服务器还可以移除上述第二Root虚拟交换机和删除第二Root虚拟交换机的接口。The management center server may also remove the second Root virtual switch and delete the interface of the second Root virtual switch.
这样可以实现将管理中心服务器从管理中心中移除。This enables the management center server to be removed from the management center.
上述技术方案中,管理中心服务器接收用户输入的用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的请求消息,所述请求消息包含所述业务服务器的标识信息;管理中心服务器根据所述业务服务器的标识信息向所述业务服务器发送用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的命令;管理中心服务器接收接收业务服务器发送的所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息;管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口。管理中心服务器在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作。这样实现由用户主动请求通过管理中心服务器管理业务服务器的虚拟交换机,相比现有技术中需要区分VSS和VDS,且对VSS和VDS进行不同方式的管理,本实施例由于第二Root虚拟交换机与服务业务器上的虚拟交换机的标识相同,即给用户呈现的虚拟交换机只有一个,这样用户只需要在管理中心服务器上管理第二Root虚拟交换机,就可以实现对业务服务器上的虚拟交换机的管理,例如:用户的操作可以通过第二Root虚拟交换机传输至业务服务器上的第一Leaf虚拟交换机,由该Leaf虚拟交换机执行该操作。从而本发明实施例可以提高管理虚拟交换机的效率。In the above technical solution, the management center server receives a request message input by the user for requesting that the business server be added to the management center server for central management, and the request message includes the identification information of the business server; the management center server according to The identification information of the service server sends to the service server a command for requesting that the service server be added to the management center server for central management; A virtual switch includes the first identity configuration information of the first Root virtual switch and the second identity configuration information of the interface of the first virtual switch; the management center server configures the second Root virtual switch according to the first identity configuration information, and configure the interface of the second Root virtual switch according to the second identity configuration information. The management center server establishes a first mapping relationship between the first Leaf virtual switch contained in the first virtual switch and the second Root virtual switch, and establishes a first mapping relationship between the interface of the second Root virtual switch and the first Leaf virtual switch. A second mapping relationship is established between interfaces of the virtual switches, so that the first Leaf virtual switch can respond to an operation input by a user on the second Root virtual switch configured on the management center server. In this way, the user actively requests to manage the virtual switch of the service server through the management center server. Compared with the prior art, VSS and VDS need to be distinguished, and VSS and VDS are managed in different ways. In this embodiment, because the second Root virtual switch and The IDs of the virtual switches on the service server are the same, that is, there is only one virtual switch presented to the user. In this way, the user only needs to manage the second Root virtual switch on the management center server to realize the management of the virtual switch on the service server. For example, user operations may be transmitted to the first Leaf virtual switch on the service server through the second Root virtual switch, and the Leaf virtual switch executes the operation. Therefore, the embodiments of the present invention can improve the efficiency of managing virtual switches.
图12是本发明实施例提供的一种业务服务器的结构示意图,该业务服务器上部署有第一虚拟交换机,该第一虚拟交换机包含第一根Root虚拟交换机和第一叶子Leaf虚拟交换机,如图12所示,该业务服务器包括:切换单元31和发送单元32,其中:FIG. 12 is a schematic structural diagram of a service server provided by an embodiment of the present invention. A first virtual switch is deployed on the service server. The first virtual switch includes a first root virtual switch and a first leaf virtual switch, as shown in FIG. 12, the service server includes: a switching
切换单元31,用于将所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的状态切换为非使能状态,并将所述第一虚拟交换机的模式切换为从动模式;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作;A switching
发送单元32,用于向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,以使所述管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;并在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作,其中,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口。The sending
当用户需要对上述第一虚拟交换机进行管理时,用户可以在管理中心服务器上输入用于管理上述第一虚拟交换机的管理命令,管理中心服务器再将该管理命令传输至上述第二Root虚拟交换机,第二Root虚拟交换机再根据上述第一映射关系和第二映射关系,将该管理命令通过第二Root虚拟交换机的接口传输至所述第一Leaf虚拟交换机的接口,再由所述第一Leaf虚拟交换机的接口传输至上述第一Leaf虚拟交换机,由上述第一Leaf虚拟交换机执行该管理命令,而上述第一Leaf虚拟交换机为上述第一虚拟交换机的一部分,即上述第一Leaf虚拟交换机连接的业务就是上述第一虚拟交换机连接业务,即上述Leaf执行该操作命令等同于上述第一虚拟交换机执行该操作命令,从而用户完成对上述第一虚拟交换机的管理。When the user needs to manage the above-mentioned first virtual switch, the user can input a management command for managing the above-mentioned first virtual switch on the management center server, and the management center server transmits the management command to the above-mentioned second Root virtual switch, The second Root virtual switch transmits the management command to the interface of the first Leaf virtual switch through the interface of the second Root virtual switch according to the above-mentioned first mapping relationship and the second mapping relationship, and then the first Leaf virtual switch The interface of the switch is transmitted to the above-mentioned first Leaf virtual switch, and the above-mentioned first Leaf virtual switch executes the management command, and the above-mentioned first Leaf virtual switch is a part of the above-mentioned first virtual switch, that is, the business connected to the above-mentioned first Leaf virtual switch It is the above-mentioned first virtual switch connection service, that is, the execution of the operation command by the above-mentioned Leaf is equivalent to the execution of the operation command by the above-mentioned first virtual switch, so that the user completes the management of the above-mentioned first virtual switch.
可选的,上述第一虚拟交换机可以是一个或者多个虚拟交换机,当上述第一虚拟交换机为多个虚拟交换机时,本实施中第二Root虚拟交换机可以与多个虚拟交换机的Leaf虚拟交换机建立第一映射关系,同时,第二Root虚拟交换机配置多个接口,再将这些接口与多个虚拟交换机的接口建立映射关系。Optionally, the above-mentioned first virtual switch may be one or more virtual switches. When the above-mentioned first virtual switch is a plurality of virtual switches, in this implementation, the second Root virtual switch may be established with the Leaf virtual switches of the multiple virtual switches. In the first mapping relationship, at the same time, the second Root virtual switch configures multiple interfaces, and then establishes a mapping relationship between these interfaces and interfaces of multiple virtual switches.
在另一个实施例中,发送单元32具体可以用于向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,其中所述第一身份配置信息包含所述第一虚拟交换机包含的第一Root虚拟交换机的标识信息和配置信息,所述第二身份配置信息包括所述第一虚拟交换机的接口的标识信息和配置信息;以使所述管理中心服务器根据所述第一Root虚拟交换机的标识信息和配置信息,配置标识与所述第一Root虚拟交换机的标识相同,且配置参数与所述第一Root虚拟交换机的配置参数相同的第二Root虚拟交换机;以及根据所述第一虚拟交换机的接口的标识信息和配置信息的标识信息和配置信息,配置标识与所述第一虚拟交换机的接口的标识信息和配置信息的标识相同,且配置参数与所述第一虚拟交换机的接口的标识信息和配置信息的配置参数相同的第二Root虚拟交换机的接口;并在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作。In another embodiment, the sending unit 32 may be specifically configured to send the first identity configuration information of the first Root virtual switch and the second identity configuration information of the interface of the first virtual switch to the management center server, wherein the The first identity configuration information includes identification information and configuration information of the first Root virtual switch included in the first virtual switch, and the second identity configuration information includes identification information and configuration information of an interface of the first virtual switch; In order to make the management center server configure the identifier to be the same as the identifier of the first Root virtual switch according to the identification information and configuration information of the first Root virtual switch, and configure the configuration parameters to be the same as the configuration parameters of the first Root virtual switch The same second Root virtual switch; and according to the identification information of the interface of the first virtual switch and the identification information of the configuration information and the configuration information, configure the identification information and the configuration information of the interface identifying the first virtual switch The interface of the second Root virtual switch with the same configuration parameters and the configuration parameters of the interface identification information and configuration information of the first virtual switch; and the first Leaf virtual switch included in the first virtual switch and the first virtual switch Establish a first mapping relationship between the second Root virtual switch, and establish a second mapping relationship between the interface of the second Root virtual switch and the interface of the first Leaf virtual switch, so that the first Leaf The virtual switch can respond to the operation input by the user on the second Root virtual switch configured on the management center server.
可选的,上述业务服务器可以是上面实施例描述的业务服务器。Optionally, the foregoing service server may be the service server described in the foregoing embodiments.
上述技术方案中,业务服务器将所述虚拟交换机的管理设上部署的第一虚拟交换机包含的第一Root虚拟交换机的状态切换为非使能状态,并将所述第一虚拟交换机的模式切换为从动模式;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作;业务服务器向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,以使所述管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;并在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作。相比现有技术中需要区分VSS和VDS,且对VSS和VDS进行不同方式的管理,本发明实施例用户只需要在管理中心服务器上管理第二Root虚拟交换机,就可以实现对业务服务器上的虚拟交换机的管理,例如:用户的操作可以通过第二Root虚拟交换机传递至业务服务器上的第一Leaf虚拟交换机,由该Leaf虚拟交换机执行该操作。从而本实施例可以提高管理虚拟交换机的效率。In the above technical solution, the service server switches the state of the first Root virtual switch included in the first virtual switch deployed on the management device of the virtual switch to a non-enabled state, and switches the mode of the first virtual switch to Slave mode; wherein, the slave mode is used to prohibit receiving operations input by users on the service server; the service server sends the first identity configuration information of the first Root virtual switch and the first identity configuration information of the first Root virtual switch to the management center server The second identity configuration information of the interface of a virtual switch, so that the management center server configures the second Root virtual switch according to the first identity configuration information, and configures the second Root virtual switch according to the second identity configuration information. An interface of a switch, wherein the second Root virtual switch is a mirror image of the first Root virtual switch; and a second root virtual switch is established between the first Leaf virtual switch included in the first virtual switch and the second Root virtual switch A mapping relationship, and establish a second mapping relationship between the interface of the second Root virtual switch and the interface of the first Leaf virtual switch, so that the first Leaf virtual switch can respond to the Operations entered on the second root virtual switch configured on the server. Compared with the need to distinguish VSS and VDS in the prior art, and to manage VSS and VDS in different ways, in the embodiment of the present invention, the user only needs to manage the second Root virtual switch on the management center server to realize the management of the service server. The management of the virtual switch, for example, the operation of the user may be transmitted to the first Leaf virtual switch on the service server through the second Root virtual switch, and the operation is performed by the Leaf virtual switch. Therefore, this embodiment can improve the efficiency of managing virtual switches.
图13是本发明实施例提供的另一种业务服务器的结构示意图,该业务服务器上部署有第一虚拟交换机,该第一虚拟交换机包含第一根Root虚拟交换机和第一叶子Leaf虚拟交换机,如图13所示,该业务服务包括:接收单元41、切换单元42和发送单元43,其中:FIG. 13 is a schematic structural diagram of another service server provided by an embodiment of the present invention. A first virtual switch is deployed on the service server. The first virtual switch includes a first root virtual switch and a first leaf virtual switch, such as As shown in Figure 13, the business service includes: a receiving unit 41, a switching unit 42 and a sending unit 43, wherein:
接收单元41,用于接收用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的请求。The receiving unit 41 is configured to receive a request for adding the service server to the management center server for central management.
其中,上述请求可以是管理中心服务器发送的,还可以接收用户输入的操作生成的。Wherein, the above request may be sent by the management center server, and may also be generated by receiving an operation input by the user.
切换单元42,用于将所述虚拟交换机的管理设上部署的第一虚拟交换机包含的第一Root虚拟交换机的状态切换为非使能状态,并将所述第一虚拟交换机的模式切换为从动模式;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作。The switching unit 42 is configured to switch the state of the first Root virtual switch contained in the first virtual switch deployed on the management device of the virtual switch to a non-enabled state, and switch the mode of the first virtual switch to slave A passive mode; wherein, the slave mode is used to prohibit receiving operations input by users on the service server.
发送单元43,用于向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,以使所述管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;并在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作,其中,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口。The sending unit 43 is configured to send the first identity configuration information of the first Root virtual switch and the second identity configuration information of the interface of the first virtual switch to the management center server, so that the management center server according to the The first identity configuration information configures a second Root virtual switch, and configures an interface of the second Root virtual switch according to the second identity configuration information, wherein the second Root virtual switch is a mirror image of the first Root virtual switch ; and establish a first mapping relationship between the first Leaf virtual switch contained in the first virtual switch and the second Root virtual switch, and establish a first mapping relationship between the interface of the second Root virtual switch and the first Leaf virtual switch A second mapping relationship is established between the interfaces of the switches, so that the first Leaf virtual switch can respond to an operation input by the user on the second Root virtual switch configured on the management center server, wherein the first virtual switch The interfaces include the interface of the first Leaf virtual switch and the interface of the first Root virtual switch.
在另一个实施例中,接收单元41具体可以用于接收所述管理中心服务器发送的用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的命令;或者In another embodiment, the receiving unit 41 may be specifically configured to receive a command sent by the management center server for requesting to add the business server to the management center server for central management; or
接收单元41具体可以用于接收用户输入的用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的请求消息。The receiving unit 41 may be specifically configured to receive a request message input by a user for requesting that the service server be added to the management center server for central management.
其中,所述命令还可以包含用于所述业务服务器认证的认证信息,或者请求消息还可以包含用于所述业务服务器认证的认证信息。Wherein, the command may also include authentication information for authentication of the service server, or the request message may also include authentication information for authentication of the service server.
上述认证信息可以是任何可认证的信息,例如:身份校验码。The above authentication information may be any certifiable information, for example: identity verification code.
发送单元42具体还可以用于使用所述认证信息进行认证,当所述认证通过时,向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,以使所述管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;并在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作。The sending unit 42 can also be specifically configured to use the authentication information to perform authentication, and when the authentication is passed, send the first identity configuration information of the first Root virtual switch and the interface of the first virtual switch to the management center server the second identity configuration information, so that the management center server configures the second Root virtual switch according to the first identity configuration information, and configures the interface of the second Root virtual switch according to the second identity configuration information, wherein The second Root virtual switch is a mirror image of the first Root virtual switch; and a first mapping relationship is established between the first Leaf virtual switch contained in the first virtual switch and the second Root virtual switch, and Establish a second mapping relationship between the interface of the second Root virtual switch and the interface of the first Leaf virtual switch, so that the first Leaf virtual switch can respond to the first user configured on the management center server Operations entered on the second Root virtual switch.
当接收单元41接收到上述命令或者请求消息时时,发送单元42就可以通过该认证信息进行认证,例如:判断业务服务器是否已经加入其它管理中心,若是,认证失败,若否,则认证通过;或者,判断管理中心服务器是否有权限将业务服务器加入管理中心,若是,由认证通过,若否,则认证失败;当然还可以判断业务服务器是否已经加入管理中心,若否则判断管理中心服务器是否有权限将业务服务器加入管理中心,当这两个判断都通过时,则表示认证通过。When receiving unit 41 receives above-mentioned order or request message, sending unit 42 just can carry out authentication through this authentication information, for example: judge whether business server has joined other management centers, if so, authentication fails, if not, then authentication passes; Or , to determine whether the management center server has the authority to add the business server to the management center. If yes, the authentication will pass; if not, the authentication will fail; The business server joins the management center, and when the two judgments pass, it means that the authentication is passed.
在另一个实施例中,所述设备还可以包括:In another embodiment, the device may also include:
移除单元44,用于接收用于将所述业务服务器移除管理中心服务器的中心管理的移除命令;将所述第一Root虚拟交换机的状态切换为使能状态,并将所述第一虚拟交换机的模式切换为主动模式;或者,用于接收用户输入的用于将所述业务服务器移除管理中心服务器的中心管理的移除命令;将所述第一Root虚拟交换机的状态切换为使能状态,并将所述第一虚拟交换机的模式切换为主动模式;The removal unit 44 is configured to receive a removal command for removing the service server from the central management of the management center server; switch the state of the first Root virtual switch to an enabled state, and transfer the first The mode of the virtual switch is switched to the active mode; or, it is used to receive the removal command input by the user for removing the service server from the central management of the management center server; the state of the first Root virtual switch is switched to enable state, and switch the mode of the first virtual switch to an active mode;
其中,所述主动模式用于允许接收用户在所述业务服务器上输入的操作。Wherein, the active mode is used to allow receiving operations input by users on the service server.
移除单元44具体可以用于接收用户输入的用于将所述业务服务器移除管理中心服务器的中心管理的移除命令;或者The removal unit 44 may be specifically configured to receive a removal command input by the user for removing the service server from the central management of the management center server; or
移除单元44具体可以用于接收所述管理中心服务器发送的用于将所述业务服务器移除管理中心服务器的中心管理的移除命令。The removing unit 44 may be specifically configured to receive a removal command sent by the management center server for removing the service server from the central management of the management center server.
业务服务器将所述第一Root虚拟交换机的状态切换为使能状态,并将所述第一虚拟交换机的模式切换为主动模式之后,业务服务器还可以向管理中心服务器返回用于表示所述Root虚拟交换机的状态切换为使能状态,所述第一虚拟交换机的模式切换为主动模式的操作结果信息。After the service server switches the state of the first Root virtual switch to the enabled state, and switches the mode of the first virtual switch to the active mode, the service server may also return a message indicating that the Root virtual switch to the management center server. Operation result information that the state of the switch is switched to an enabled state, and the mode of the first virtual switch is switched to an active mode.
需要说明的是,Root虚拟交换机的状态为非使能状态可以是Root虚拟交换机被隔离或者隐藏,即Root虚拟交换机禁止接收任何指令、或者Root虚拟交换机无法接收任何指令,或者Root虚拟交换机无法响应任何指令,Root虚拟交换机的状态为非使能状态还可以是Root虚拟交换机被移除。Root虚拟交换机的状态为使能状态可以是Root虚拟交换机状态切换为正状态,例如,从被隔离或者隐藏的状态中恢复,或者新创建Root虚拟交换机,即Root虚拟交换机接收任何用于操作Root虚拟交换机的指令、并对其作出响应。It should be noted that the state of the Root virtual switch being disabled may mean that the Root virtual switch is isolated or hidden, that is, the Root virtual switch is prohibited from receiving any commands, or the Root virtual switch cannot receive any commands, or the Root virtual switch cannot respond to any commands. Instruction, the state of the Root virtual switch is disabled or the Root virtual switch is removed. The state of the Root virtual switch is enabled. The state of the Root virtual switch can be switched to a positive state, for example, recovering from an isolated or hidden state, or a new Root virtual switch is created, that is, the Root virtual switch Switch commands and respond to them.
虚拟交换机的模式可以为从动模式(例如:Slave模式),从动模式禁止接收用户直接输入的操作,业务服务器上的虚拟交换机的模式为从动模式时,虚拟交换机禁止接收用户在业务服务器上输入的操作;虚拟交换机的模式可以为主动模式(例如:Master模式),主动模式接收用户直接输入的操作,业务服务器上的第一虚拟交换的模式为从动模式时,虚拟交换机可以接收用户在业务服务器上输入的操作。The mode of the virtual switch can be slave mode (for example: Slave mode). The slave mode prohibits receiving operations directly input by users. When the mode of the virtual switch on the business server is slave mode, the virtual switch prohibits receiving Input operation; the mode of the virtual switch can be the active mode (for example: Master mode), the active mode receives the operation directly input by the user, when the mode of the first virtual switch on the service server is the slave mode, the virtual switch can receive the user's Actions entered on the business server.
当Root虚拟交换机的状态切换为使能状态,并将所述虚拟交换机切换为主动模式时,用户就可以直接在业务服务器上管理虚拟交换机,或者用户可以通过管理中心服务器远程登录业务服务器,再在管理中心服务器上管理虚拟交换机。When the state of the Root virtual switch is switched to the enabled state, and the virtual switch is switched to the active mode, the user can directly manage the virtual switch on the service server, or the user can remotely log in to the service server through the management center server, and then Manage virtual switches on the management center server.
上述技术方案中,业务服务器接收用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的请求;业务服务器将所述虚拟交换机的管理设上部署的第一虚拟交换机包含的第一Root虚拟交换机的状态切换为非使能状态,并将所述第一虚拟交换机的模式切换为从动模式;业务服务器向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,以使所述管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;并在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作。本实施例在上面实施例的基础上增加了业务服务器接收用于请求将所述业务服务器加入所述管理中心服务器进行中心管理的请求的步骤。相比现有技术中需要区分VSS和VDS,且对VSS和VDS进行不同方式的管理,本发明实施例用户只需要在管理中心服务器上管理第二Root虚拟交换机,就可以实现对业务服务器上的虚拟交换机的管理,例如:用户的操作可以通过第二Root虚拟交换机传输至业务服务器上的第一Leaf虚拟交换机,由该Leaf虚拟交换机执行该操作。从而本实施例可以提高管理虚拟交换机的效率。In the above technical solution, the service server receives a request for adding the service server to the management center server for central management; the service server sets the management of the virtual switch to the first Root included in the deployed first virtual switch. The state of the virtual switch is switched to a non-enabled state, and the mode of the first virtual switch is switched to a slave mode; the service server sends the first identity configuration information and the first Root virtual switch to the management center server. The second identity configuration information of the interface of the first virtual switch, so that the management center server configures the second Root virtual switch according to the first identity configuration information, and configures the second Root virtual switch according to the second identity configuration information An interface of a virtual switch, wherein the second Root virtual switch is a mirror image of the first Root virtual switch; and is established between the first Leaf virtual switch included in the first virtual switch and the second Root virtual switch The first mapping relationship, and establish a second mapping relationship between the interface of the second Root virtual switch and the interface of the first Leaf virtual switch, so that the first Leaf virtual switch can respond to the user in the management Operations entered on the second Root virtual switch configured on the central server. In this embodiment, on the basis of the above embodiments, a step is added in which the service server receives a request for adding the service server to the management center server for central management. Compared with the need to distinguish VSS and VDS in the prior art, and to manage VSS and VDS in different ways, in the embodiment of the present invention, the user only needs to manage the second Root virtual switch on the management center server to realize the management of the service server. The management of the virtual switch, for example, the user's operation can be transmitted to the first Leaf virtual switch on the service server through the second Root virtual switch, and the operation is performed by the Leaf virtual switch. Therefore, this embodiment can improve the efficiency of managing virtual switches.
图14是本发明实施例提供的一种虚拟交换机的管理系统的结构示意图,如图14所示,包括:至少一个业务服务器51和管理中心服务器52,业务服务器51上部署有第一虚拟交换机,所述第一虚拟交换机包括第一Leaf虚拟交换机和第一Root虚拟交换机,所述管理中心服务器52部署有第二虚拟交换机,其中:FIG. 14 is a schematic structural diagram of a virtual switch management system provided by an embodiment of the present invention. As shown in FIG. 14 , it includes: at least one
业务服务器51,用于将所述第一Root虚拟交换机的状态切换为非使能状态,并将所述第一虚拟交换机的模式切换为从动模式;以及用于向所述管理中心服务器52发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口;The
管理中心服务器52,用于根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;以及用于在所述第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器52上配置的所述第二Root虚拟交换机上输入的操作,其中,所述第二虚拟交换机包括所述第二Root虚拟交换机。The
在另一个实施例中,管理中心服务器52还可以用于删除所述第一映射关系和所述第二映射关系;In another embodiment, the
业务服务器51还可以用于将所述第一Root虚拟交换机的状态切换为使能状态,并将所述第一虚拟交换机的模式切换为主动模式;The
其中,所述主动模式用于允许接收用户在所述业务服务器51上输入的操作。移动的过程和场景可以参考前面实施例描述的过程和场景,此处不作重复说明。Wherein, the active mode is used to allow receiving operations input by users on the
在另一个实施例中业务服务器51可以图12-图13所示的实施例中任一实施方式的业务服务器,管理中心服务器52可以图10-图11所示的实施例中任一实施方式的管理中心服务器。In another embodiment, the
上述技术方案中,业务服务器将所述第一Root虚拟交换机的状态切换为非使能状态,并将所述第一虚拟交换机的模式切换为从动模式;以及用于向所述管理中心服务器52发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口;管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;以及用于在所述第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器52上配置的所述第二Root虚拟交换机上输入的操作。相比现有技术中需要区分VSS和VDS,且对VSS和VDS进行不同方式的管理,本实施例用户只需要在管理中心服务器上管理第二Root虚拟交换机,就可以实现对业务服务器上的虚拟交换机的管理,例如:用户的操作可以通过第二Root虚拟交换机传递至业务服务器上的第一Leaf虚拟交换机,由该第一Leaf虚拟交换机执行该操作。从而本实施例可以提高管理虚拟交换机的效率。In the above technical solution, the service server switches the state of the first Root virtual switch to a non-enabled state, and switches the mode of the first virtual switch to a slave mode; Sending the first identity configuration information of the first Root virtual switch and the second identity configuration information of the interface of the first virtual switch; wherein, the slave mode is used to prohibit receiving user input on the service server Operation, the interface of the first virtual switch includes the interface of the first Leaf virtual switch and the interface of the first Root virtual switch; the management center server configures the second Root virtual switch according to the first identity configuration information, and according to the first The second identity configuration information configures the interface of the second Root virtual switch, wherein the second Root virtual switch is a mirror image of the first Root virtual switch; and is used to connect the first Leaf virtual switch and the second Establish a first mapping relationship between the Root virtual switches, and establish a second mapping relationship between the interface of the second Root virtual switch and the interface of the first Leaf virtual switch, so that the first Leaf virtual switch can Responding to an operation input by the user on the second Root virtual switch configured on the
图15是本发明实施例提供的另一种管理中心服务器的结构示意图,用于执行本发明实施例公开的虚拟交换机的管理方法。如图15所示,该管理中心服务器60包括:至少一个处理器61,例如CPU,至少一个网络接口64或者其他用户接口63,存储器65,至少一个通信总线62。通信总线62用于实现这些组件之间的连接通信。其中,用户接口63可选的可以包括USB接口以及其他标准接口、有线接口。网络接口64可选的可以包括Wi-Fi接口以及其他无线接口。存储器65可能包含高速RAM存储器,也可能还包括非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器。存储器65可选的可以包含至少一个位于远离前述处理器61的存储装置。FIG. 15 is a schematic structural diagram of another management center server provided by an embodiment of the present invention, which is used to execute the method for managing a virtual switch disclosed in the embodiment of the present invention. As shown in FIG. 15 , the
在一些实施方式中,存储器65存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:In some embodiments, the
操作系统651,包含各种系统程序,用于实现各种基础业务以及处理基于硬件的任务;
应用模块652,包含设备控制服务程序、设备识别服务程序等各种应用程序,用于实现各种应用业务。The
具体地,处理器61用于调用存储器65中存储的程序,执行以下操作:Specifically, the
接收业务服务器发送的所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,所述第一虚拟交换机的模式为从动模式,所述第一Root虚拟交换机的状态为非使能状态;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作;receiving the first identity configuration information of the first Root virtual switch contained in the first virtual switch deployed on the service server and the second identity configuration information of the interface of the first virtual switch sent by the service server, and the first virtual The mode of the switch is a slave mode, and the state of the first Root virtual switch is a non-enabled state; wherein, the slave mode is used to prohibit receiving operations input by users on the service server;
根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;Configure the second Root virtual switch according to the first identity configuration information, and configure the interface of the second Root virtual switch according to the second identity configuration information, wherein the second Root virtual switch is the first Root virtual switch mirroring of the switch;
在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器60上配置的第二Root虚拟交换机上输入的操作,其中,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口。Establish a first mapping relationship between the first Leaf virtual switch contained in the first virtual switch and the second Root virtual switch, and establish a first mapping relationship between the interface of the second Root virtual switch and the first Leaf virtual switch A second mapping relationship is established between the interfaces, so that the first Leaf virtual switch can respond to the operation input by the user on the second Root virtual switch configured on the
可选的,上述第一虚拟交换机可以是一个或者多个虚拟交换机,当上述第一虚拟交换机为多个虚拟交换机时,本实施中第二Root虚拟交换机可以与多个虚拟交换机的Leaf虚拟交换机建立第一映射关系,同时,第二Root虚拟交换机配置多个接口,再将这些接口与多个虚拟交换机的接口建立映射关系。Optionally, the above-mentioned first virtual switch may be one or more virtual switches. When the above-mentioned first virtual switch is a plurality of virtual switches, in this implementation, the second Root virtual switch may be established with the Leaf virtual switches of the multiple virtual switches. In the first mapping relationship, at the same time, the second Root virtual switch configures multiple interfaces, and then establishes a mapping relationship between these interfaces and interfaces of multiple virtual switches.
一个实施例中,所述第一身份配置信息包含所述第一Root虚拟交换机的标识信息和配置信息,所述第二身份配置信息包括所述第一虚拟交换机的接口的标识信息和配置信息;处理器61执行的根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口的操作,还可以包括:In one embodiment, the first identity configuration information includes identification information and configuration information of the first Root virtual switch, and the second identity configuration information includes identification information and configuration information of an interface of the first virtual switch; The operations performed by the
根据所述第一Root虚拟交换机的标识信息和配置信息,配置标识与所述第一Root虚拟交换机的标识相同,且配置参数与所述第一Root虚拟交换机的配置参数相同的第二Root虚拟交换机;According to the identification information and configuration information of the first Root virtual switch, configure a second Root virtual switch whose identifier is the same as that of the first Root virtual switch and whose configuration parameters are the same as those of the first Root virtual switch. ;
根据所述第一虚拟交换机的接口的标识信息和配置信息的标识信息和配置信息,配置标识与所述第一虚拟交换机的接口的标识信息和配置信息的标识相同,且配置参数与所述第一虚拟交换机的接口的标识信息和配置信息的配置参数相同的第二Root虚拟交换机的接口。According to the identification information of the interface of the first virtual switch and the identification information of the configuration information and the configuration information, the configuration identification is the same as the identification information of the interface of the first virtual switch and the identification of the configuration information, and the configuration parameters are the same as those of the first virtual switch. The identification information of the interface of a virtual switch is the same as the configuration parameter of the configuration information of the interface of the second Root virtual switch.
可选的,上述第一虚拟交换机的标识信息可以包括如下至少一项:Optionally, the identification information of the first virtual switch may include at least one of the following:
UUID、ID和名称,其中,该标识信息用于唯一标识虚拟交换机。UUID, ID and name, where the identification information is used to uniquely identify the virtual switch.
可选的,上述第一虚拟交换机的配置信息可以包括:Optionally, the configuration information of the first virtual switch may include:
MTU信息。该配置信息用于配置第二Root虚拟交换机,即管理中心服务器60可以根据该配置信息配置第二Root虚拟交换机。MTU information. The configuration information is used to configure the second Root virtual switch, that is, the
可选的,上述接口的标识信息可以包括如下至少一项:Optionally, the identification information of the above interface may include at least one of the following:
UUID、ID和名称,其中,该标识信息用于唯一标识接口。UUID, ID and name, where the identification information is used to uniquely identify the interface.
可选的,上述接口的配置信息可以包括如下至少一项:Optionally, the configuration information of the above interface may include at least one of the following:
VLAN信息、QoS信息和ACL信息,该配置信息用于配置接口,即管理中心服务器60可以根据该配置信息配置接口。VLAN information, QoS information and ACL information, the configuration information is used to configure the interface, that is, the
一个实施例中,处理器61接收业务服务器发送的所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息之前,还执行以下操作:In one embodiment, the
接收用户输入的用于请求将所述业务服务器加入所述管理中心服务器60进行中心管理的请求消息,所述请求消息包含所述业务服务器的标识信息;receiving a request message input by a user for requesting that the service server be added to the
根据所述业务服务器的标识信息向所述业务服务器发送用于请求将所述业务服务器加入所述管理中心服务器60进行中心管理的命令,以使所述业务服务器向所述管理中心服务器60返回所述第一身份配置信息和所述第二身份配置信息。According to the identification information of the service server, a command for requesting the service server to be added to the
上述请求消息还可以包括用于所述业务服务器认证的认证信息;所述命令还可以包含所述认证信息,以使所述业务服务器使用所述认证信息进行认证,当所述业务服务器认证通过时,由所述业务服务器向所述管理中心服务器60返回所述第一身份配置信息和所述第二身份配置信息。即业务服务器接收到该命令时,就可以通过该认证信息进行认证,例如:判断业务服务器是否已经加入其它管理中心,若是,认证失败,若否,则认证通过;或者,判断管理中心服务器60是否有权限将业务服务器加入管理中心,若是,由认证通过,若否,则认证失败;当然还可以判断业务服务器是否已经加入管理中心,若否则判断管理中心服务器60是否有权限将业务服务器加入管理中心,当这两个判断都通过时,则表示认证通过。The above request message may also include authentication information used for authentication of the service server; the command may also include the authentication information, so that the service server uses the authentication information for authentication, and when the authentication of the service server passes , the service server returns the first identity configuration information and the second identity configuration information to the
在一个实施例中,处理器61执行在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系的操作之后,还可以执行如下操作:In one embodiment, the
删除所述第一映射关系和所述第二映射关系,并向所述业务服务器发送用于将所述业务服务器移除管理中心服务器60的中心管理的移除命令,以使所述业务服务器将所述第一Root虚拟交换机的状态切换为使能状态,所述第一虚拟交换机的模式切换为主动模式;所述主动模式用于允许接收用户在所述业务服务器上输入的操作。deleting the first mapping relationship and the second mapping relationship, and sending a removal command for removing the business server from the central management of the
该操作具体可以包括:This operation can specifically include:
接收用户输入的用于将所述业务服务器移除管理中心服务器60的中心管理的请求消息,请求消息包含业务服务器的标识信息;Receiving a request message input by the user for removing the service server from the central management of the
向业务服务器发送用于将所述业务服务器移除管理中心服务器60的中心管理的移除命令,以使所述业务服务器将所述第一Root虚拟交换机的状态切换为使能状态,所述第一虚拟交换机的模式切换为主动模式;所述主动模式用于允许接收用户在所述业务服务器上输入的操作。Sending a removal command for removing the service server from the central management of the
该操作具体还可以包括:Specifically, the operation may also include:
接收业务服务器发送的用于将所述业务服务器移除管理中心服务器60的中心管理的请求消息;Receiving a request message for removing the service server from the central management of the
删除所述第一映射关系和所述第二映射关系。Delete the first mapping relationship and the second mapping relationship.
其中,在业务服务器向管理中心服务器60发送上述请求消息之前或者之后,业务服务器可以将所述第一Root虚拟交换机的状态切换为使能状态,所述第一虚拟交换机的模式切换为主动模式;所述主动模式用于允许接收用户在所述业务服务器上输入的操作。Wherein, before or after the service server sends the above request message to the
管理中心服务器60还可以移除上述第二Root虚拟交换机和删除第二Root虚拟交换机的接口。The
这样可以实现将业务服务器从管理中心中移除。In this way, the service server can be removed from the management center.
接收用户输入的用于将所述业务服务器移除管理中心的请求消息,请求消息包含业务服务器的标识信息;receiving a request message input by the user for removing the service server from the management center, where the request message includes identification information of the service server;
向业务服务器发送移除命令,以使将所述第一Root虚拟交换机的状态切换为使能状态,并将所述第一虚拟交换机的模式切换为主动模式;其中,所述主动模式用于允许接收用户在所述业务服务器上输入的操作。Send a removal command to the service server, so that the state of the first Root virtual switch is switched to an enabled state, and the mode of the first virtual switch is switched to an active mode; wherein the active mode is used to allow An operation input by the user on the service server is received.
将上述第二映射关系解除,或者移除上述第二Root虚拟交换机;Dissolving the above-mentioned second mapping relationship, or removing the above-mentioned second Root virtual switch;
删除上述接口。Delete the above interface.
这样可以实现将业务服务器从管理中心中移除。In this way, the service server can be removed from the management center.
上述技术方案中,管理中心服务器接收业务服务器发送的所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,所述第一虚拟交换机的模式为从动模式,所述第一Root虚拟交换机的状态为非使能状态;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作;管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;管理中心服务器在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作。相比现有技术中需要区分VSS和VDS,且对VSS和VDS进行不同方式的管理,本实施例用户只需要在管理中心服务器上管理第二Root虚拟交换机,就可以实现对业务服务器上的虚拟交换机的管理,例如:用户的操作可以通过第二Root虚拟交换机传输至业务服务器上的第一Leaf虚拟交换机,由该第一Leaf虚拟交换机执行该操作。从而本实施例可以提高管理虚拟交换机的效率。In the above technical solution, the management center server receives the first identity configuration information of the first Root virtual switch contained in the first virtual switch deployed on the business server and the second identity of the interface of the first virtual switch sent by the business server. Configuration information, the mode of the first virtual switch is a slave mode, and the state of the first Root virtual switch is a non-enabled state; wherein, the slave mode is used to prohibit receiving user input on the service server The operation; the management center server configures the second Root virtual switch according to the first identity configuration information, and configures the interface of the second Root virtual switch according to the second identity configuration information, wherein the second Root virtual switch is The image of the first Root virtual switch; the management center server establishes a first mapping relationship between the first Leaf virtual switch contained in the first virtual switch and the second Root virtual switch, and A second mapping relationship is established between the interface of the virtual switch and the interface of the first Leaf virtual switch, so that the first Leaf virtual switch can respond to user input on the second Root virtual switch configured on the management center server. operation. Compared with the prior art, it is necessary to distinguish between VSS and VDS, and to manage VSS and VDS in different ways. In this embodiment, users only need to manage the second Root virtual switch on the management center server to realize the virtualization on the service server. Management of switches, for example: user operations can be transmitted to the first Leaf virtual switch on the service server through the second Root virtual switch, and the first Leaf virtual switch executes the operation. Therefore, this embodiment can improve the efficiency of managing virtual switches.
图16是本发明实施例提供的另一种业务服务器的结构示意图,用于执行本发明实施例公开的虚拟交换机的管理方法。如图16所示,该业务服务器70包括:至少一个处理器71,例如CPU,至少一个网络接口74或者其他用户接口73,存储器75,至少一个通信总线72。通信总线72用于实现这些组件之间的连接通信。其中,用户接口73可选的可以包括USB接口以及其他标准接口、有线接口。网络接口74可选的可以包括Wi-Fi接口以及其他无线接口。存储器75可能包含高速RAM存储器,也可能还包括非不稳定的存储器(non-volatilememory),例如至少一个磁盘存储器。存储器75可选的可以包含至少一个位于远离前述处理器71的存储装置。Fig. 16 is a schematic structural diagram of another service server provided by an embodiment of the present invention, which is used to execute the method for managing a virtual switch disclosed in the embodiment of the present invention. As shown in FIG. 16 , the
在一些实施方式中,存储器75存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:In some embodiments, the
操作系统751,包含各种系统程序,用于实现各种基础业务以及处理基于硬件的任务;
应用模块752,包含设备控制服务程序、设备识别服务程序等各种应用程序,用于实现各种应用业务。The
具体地,处理器71用于调用存储器65中存储的程序,执行以下操作:Specifically, the
将所述业务服务器70上部署的第一虚拟交换机包含的第一Root虚拟交换机的状态切换为非使能状态,并将所述第一虚拟交换机的模式切换为从动模式;其中,所述从动模式用于禁止接收用户在所述业务服务器70上输入的操作;Switching the state of the first Root virtual switch included in the first virtual switch deployed on the
向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,以使所述管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;并在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作,其中,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口。Sending the first identity configuration information of the first Root virtual switch and the second identity configuration information of the interface of the first virtual switch to the management center server, so that the management center server configures the first identity configuration information according to the first identity configuration information. A second Root virtual switch, and configuring an interface of the second Root virtual switch according to the second identity configuration information, wherein the second Root virtual switch is a mirror image of the first Root virtual switch; and in the second Root virtual switch; A first mapping relationship is established between the first Leaf virtual switch contained in a virtual switch and the second Root virtual switch, and an interface of the second Root virtual switch is established between an interface of the first Leaf virtual switch The second mapping relationship, so that the first Leaf virtual switch can respond to the operation input by the user on the second Root virtual switch configured on the management center server, wherein the interface of the first virtual switch includes the first Leaf The interface of the virtual switch and the interface of the first root virtual switch.
当用户需要对上述第一虚拟交换机进行管理时,用户可以在管理中心服务器上输入用于管理上述第一虚拟交换机的管理命令,管理中心服务器再将该管理命令传输至上述第二Root虚拟交换机,第二Root虚拟交换机再根据上述第一映射关系和第二映射关系,将该管理命令通过第二Root虚拟交换机的接口传输至所述第一Leaf虚拟交换机的接口,再由所述第一Leaf虚拟交换机的接口传输至上述第一Leaf虚拟交换机,由上述第一Leaf虚拟交换机执行该管理命令,而上述第一Leaf虚拟交换机为上述第一虚拟交换机的一部分,即上述第一Leaf虚拟交换机连接的业务就是上述第一虚拟交换机连接业务,即上述Leaf执行该操作命令等同于上述第一虚拟交换机执行该操作命令,从而用户完成对上述第一虚拟交换机的管理。When the user needs to manage the above-mentioned first virtual switch, the user can input a management command for managing the above-mentioned first virtual switch on the management center server, and the management center server transmits the management command to the above-mentioned second Root virtual switch, The second Root virtual switch transmits the management command to the interface of the first Leaf virtual switch through the interface of the second Root virtual switch according to the above-mentioned first mapping relationship and the second mapping relationship, and then the first Leaf virtual switch The interface of the switch is transmitted to the above-mentioned first Leaf virtual switch, and the above-mentioned first Leaf virtual switch executes the management command, and the above-mentioned first Leaf virtual switch is a part of the above-mentioned first virtual switch, that is, the business connected to the above-mentioned first Leaf virtual switch It is the above-mentioned first virtual switch connection service, that is, the execution of the operation command by the above-mentioned Leaf is equivalent to the execution of the operation command by the above-mentioned first virtual switch, so that the user completes the management of the above-mentioned first virtual switch.
可选的,上述第一虚拟交换机可以是一个或者多个虚拟交换机,当上述第一虚拟交换机为多个虚拟交换机时,本实施中第二Root虚拟交换机可以与多个虚拟交换机的Leaf虚拟交换机建立第一映射关系,同时,第二Root虚拟交换机配置多个接口,再将这些接口与多个虚拟交换机的接口建立映射关系。Optionally, the above-mentioned first virtual switch may be one or more virtual switches. When the above-mentioned first virtual switch is a plurality of virtual switches, in this implementation, the second Root virtual switch may be established with the Leaf virtual switches of the multiple virtual switches. In the first mapping relationship, at the same time, the second Root virtual switch configures multiple interfaces, and then establishes a mapping relationship between these interfaces and interfaces of multiple virtual switches.
在一个实施例中,所述第一身份配置信息包含所述第一虚拟交换机包含的第一Root虚拟交换机的标识信息和配置信息,所述第二身份配置信息包括所述第一虚拟交换机的接口的标识信息和配置信息;所述第二Root虚拟交换机的标识与所述第一Root虚拟交换机的标识相同,且所述第二Root虚拟交换机的配置参数与所述第一Root虚拟交换机的配置参数相同;所述第二Root虚拟交换机的接口的标识与所述第一虚拟交换机的接口的标识相同,且所述第二Root虚拟交换机的接口的配置参数与所述第一虚拟交换机的接口的配置参数相同。In one embodiment, the first identity configuration information includes identification information and configuration information of the first Root virtual switch included in the first virtual switch, and the second identity configuration information includes the interface of the first virtual switch identification information and configuration information; the identification of the second Root virtual switch is the same as the identification of the first Root virtual switch, and the configuration parameters of the second Root virtual switch are the same as the configuration parameters of the first Root virtual switch Identical; the identifier of the interface of the second Root virtual switch is the same as the identifier of the interface of the first virtual switch, and the configuration parameters of the interface of the second Root virtual switch are the same as the configuration of the interface of the first virtual switch The parameters are the same.
在一个实施例中,处理器71向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息的操作之前,还可以用于执行如下操作:In one embodiment, before the
接收用于请求将所述业务服务器70加入所述管理中心服务器进行中心管理的请求。A request for requesting to add the
其中,上述请求可以是管理中心服务器发送的,还可以接收用户输入的操作生成的。Wherein, the above request may be sent by the management center server, and may also be generated by receiving an operation input by the user.
处理器712执行的接收用于请求将所述业务服务器70加入所述管理中心服务器进行中心管理的请求的操作具体可以包括:The operation performed by the processor 712 to receive the request for requesting to add the
接收所述管理中心服务器发送的用于请求将所述业务服务器70加入所述管理中心服务器进行中心管理的命令;或者receiving a command sent by the management center server for requesting to add the
接收用户输入的用于请求将所述业务服务器70加入所述管理中心服务器进行中心管理的请求消息。A request message input by a user for requesting that the
其中,所述命令还可以包含用于所述业务服务器70认证的认证信息,或者请求消息还可以包含用于所述业务服务器70认证的认证信息。Wherein, the command may also include authentication information for authentication of the
处理器712执行的向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息的操作具体可以包括:The operation performed by the processor 712 to send the first identity configuration information of the first Root virtual switch and the second identity configuration information of the interface of the first virtual switch to the management center server may specifically include:
使用所述认证信息进行认证;authenticate using said authentication information;
当所述业务服务器70认证通过时,向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息。When the
在一个实施例中,处理器71执行的向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息的操作之后,还可以用于执行如下操作:In an embodiment, after the
接收用于将所述业务服务器70移除管理中心服务器的中心管理的移除命令业务服务器70的移除命令,将所述第一Root虚拟交换机的状态切换为使能状态,并将所述第一虚拟交换机的模式切换为主动模式;Receiving a removal command for removing the
其中,所述主动模式用于允许接收用户在所述业务服务器70上输入的操作。Wherein, the active mode is used to allow receiving operations input by users on the
处理器71执行的接收用于将所述业务服务器70移除管理中心服务器的中心管理的移除命令业务服务器70的移除命令的操作具体,可以包括:The operation performed by the
接收用户输入的用于将所述业务服务器70移除管理中心服务器的中心管理的移除命令;或者Receiving a removal command input by the user for removing the
接收所述管理中心服务器发送的用于将所述业务服务器70移除管理中心服务器的中心管理的移除命令。A removal command for removing the
将所述第一Root虚拟交换机的状态切换为使能状态,并将所述虚拟交换机切换为主动模式之后,业务服务器70还可以向管理中心服务器返回用于表示所述Root虚拟交换机的状态切换为使能状态,所述虚拟交换机切换为主动模式的操作结果信息。After the state of the first Root virtual switch is switched to the enable state, and the virtual switch is switched to the active mode, the
上述技术方案中,业务服务器将所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的状态切换为非使能状态,并将所述第一虚拟交换机的模式切换为从动模式;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作;业务服务器向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,以使所述管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;并在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作,其中,所述第一虚拟交换机的接口包括第一Leaf虚拟交换机的接口和第一Root虚拟交换机的接口。相比现有技术中需要区分VSS和VDS,且对VSS和VDS进行不同方式的管理,本发明实施例用户只需要在管理中心服务器上管理第二Root虚拟交换机,就可以实现对业务服务器上的虚拟交换机的管理,例如:用户的操作可以通过第二Root虚拟交换机传输至业务服务器上的第一Leaf虚拟交换机,由该Leaf虚拟交换机执行该操作。从而本实施例可以提高管理虚拟交换机的效率。In the above technical solution, the service server switches the state of the first Root virtual switch included in the first virtual switch deployed on the service server to a disabled state, and switches the mode of the first virtual switch to a slave mode ; Wherein, the slave mode is used to prohibit receiving operations input by users on the service server; the service server sends the first identity configuration information of the first Root virtual switch and the first virtual switch to the management center server The second identity configuration information of the interface, so that the management center server configures the second Root virtual switch according to the first identity configuration information, and configures the interface of the second Root virtual switch according to the second identity configuration information , wherein the second Root virtual switch is a mirror image of the first Root virtual switch; and a first mapping relationship is established between the first Leaf virtual switch included in the first virtual switch and the second Root virtual switch , and establish a second mapping relationship between the interface of the second Root virtual switch and the interface of the first Leaf virtual switch, so that the first Leaf virtual switch can respond to the user's configuration on the management center server An operation input on the second Root virtual switch, wherein the interface of the first virtual switch includes an interface of the first Leaf virtual switch and an interface of the first Root virtual switch. Compared with the need to distinguish VSS and VDS in the prior art, and to manage VSS and VDS in different ways, in the embodiment of the present invention, the user only needs to manage the second Root virtual switch on the management center server to realize the management of the service server. The management of the virtual switch, for example, the user's operation can be transmitted to the first Leaf virtual switch on the service server through the second Root virtual switch, and the operation is performed by the Leaf virtual switch. Therefore, this embodiment can improve the efficiency of managing virtual switches.
图17是本发明实施例提供的一种虚拟交换机的管理系统的结构示意图,如图17所示,包括:至少一个业务服务器81和管理中心服务器82,其中:FIG. 17 is a schematic structural diagram of a virtual switch management system provided by an embodiment of the present invention. As shown in FIG. 17 , it includes: at least one
业务服务器81可以是图16所示的实施例中任一实施方式的业务服务器,管理中心服务器82可以是图15所示的实施例中任一实施方式的管理中心服务器。The
上述技术方案中,业务服务器将所述业务服务器上部署的第一虚拟交换机包含的第一Root虚拟交换机的状态切换为非使能状态,并将所述第一虚拟交换机的模式切换为从动模式;其中,所述从动模式用于禁止接收用户在所述业务服务器上输入的操作;业务服务器向管理中心服务器发送所述第一Root虚拟交换机的第一身份配置信息和所述第一虚拟交换机的接口的第二身份配置信息,所述管理中心服务器根据所述第一身份配置信息配置第二Root虚拟交换机,以及根据所述第二身份配置信息配置所述第二Root虚拟交换机的接口,其中所述第二Root虚拟交换机为所述第一Root虚拟交换机的镜像;并在所述第一虚拟交换机包含的第一Leaf虚拟交换机与所述第二Root虚拟交换机之间建立第一映射关系,并在所述第二Root虚拟交换机的接口与所述第一Leaf虚拟交换机的接口之间建立第二映射关系,以使得所述第一Leaf虚拟交换机能响应用户在所述管理中心服务器上配置的第二Root虚拟交换机上输入的操作。相比现有技术中需要区分VSS和VDS,且对VSS和VDS进行不同方式的管理,本发明实施例用户只需要在管理中心服务器上管理第二Root虚拟交换机,就可以实现对业务服务器上部署的第一虚拟交换机的管理,例如:用户的操作可以通过第二Root虚拟交换机传递至业务服务器上部署的第一Leaf虚拟交换机,由该第一Leaf虚拟交换机执行该操作。从而本实施例可以提高管理虚拟交换机的效率。In the above technical solution, the service server switches the state of the first Root virtual switch included in the first virtual switch deployed on the service server to a disabled state, and switches the mode of the first virtual switch to a slave mode ; Wherein, the slave mode is used to prohibit receiving operations input by users on the service server; the service server sends the first identity configuration information of the first Root virtual switch and the first virtual switch to the management center server The second identity configuration information of the interface, the management center server configures the second Root virtual switch according to the first identity configuration information, and configures the interface of the second Root virtual switch according to the second identity configuration information, wherein The second Root virtual switch is a mirror image of the first Root virtual switch; and a first mapping relationship is established between the first Leaf virtual switch contained in the first virtual switch and the second Root virtual switch, and Establish a second mapping relationship between the interface of the second Root virtual switch and the interface of the first Leaf virtual switch, so that the first Leaf virtual switch can respond to the first user configured on the management center server Operations entered on the second Root virtual switch. Compared with the prior art, it is necessary to distinguish between VSS and VDS, and to manage VSS and VDS in different ways. In the embodiment of the present invention, users only need to manage the second Root virtual switch on the management center server to implement deployment on the service server. The management of the first virtual switch, for example: user operations can be transmitted to the first Leaf virtual switch deployed on the service server through the second Root virtual switch, and the first Leaf virtual switch executes the operation. Therefore, this embodiment can improve the efficiency of managing virtual switches.
其他实现细节参考前述实施例,这里不再赘述。For other implementation details, refer to the foregoing embodiments, which will not be repeated here.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存取存储器(Random Access Memory,简称RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM for short).
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and certainly cannot limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310209652.1ACN103338117B (en) | 2013-05-30 | 2013-05-30 | The management method of a kind of virtual switch, equipment and system |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310209652.1ACN103338117B (en) | 2013-05-30 | 2013-05-30 | The management method of a kind of virtual switch, equipment and system |
| Publication Number | Publication Date |
|---|---|
| CN103338117Atrue CN103338117A (en) | 2013-10-02 |
| CN103338117B CN103338117B (en) | 2016-12-28 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310209652.1AExpired - Fee RelatedCN103338117B (en) | 2013-05-30 | 2013-05-30 | The management method of a kind of virtual switch, equipment and system |
| Country | Link |
|---|---|
| CN (1) | CN103338117B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106464596A (en)* | 2014-06-03 | 2017-02-22 | 华为技术有限公司 | Openflow communication method, system, controller, and service gateway |
| CN113923118A (en)* | 2021-09-06 | 2022-01-11 | 锐捷网络股份有限公司 | Virtual switch batch deployment method, server, switch and data center |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1826769A (en)* | 2003-09-18 | 2006-08-30 | 思科技术公司 | virtual network device |
| US20090265501A1 (en)* | 2008-04-16 | 2009-10-22 | Hitachi, Ltd. | Computer system and method for monitoring an access path |
| 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 |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1826769A (en)* | 2003-09-18 | 2006-08-30 | 思科技术公司 | virtual network device |
| US20090265501A1 (en)* | 2008-04-16 | 2009-10-22 | Hitachi, Ltd. | Computer system and method for monitoring an access path |
| 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 |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106464596A (en)* | 2014-06-03 | 2017-02-22 | 华为技术有限公司 | Openflow communication method, system, controller, and service gateway |
| CN106464596B (en)* | 2014-06-03 | 2019-08-20 | 华为技术有限公司 | Open flow communication method, system, controller and service gateway |
| CN113923118A (en)* | 2021-09-06 | 2022-01-11 | 锐捷网络股份有限公司 | Virtual switch batch deployment method, server, switch and data center |
| Publication number | Publication date |
|---|---|
| CN103338117B (en) | 2016-12-28 |
| Publication | Publication Date | Title |
|---|---|---|
| CN105122738B (en) | Certificate configuration methods, devices and systems based on network function virtualization | |
| TWI245510B (en) | Secure system and method for san management in a non-trusted server environment | |
| JP5885834B2 (en) | Method and apparatus for remotely delivering a managed USB service via a mobile computing device | |
| CN106790420B (en) | A kind of more session channel method for building up and system | |
| EP3160084B1 (en) | Fibre channel storage area network configuration method and apparatus | |
| CN108667638B (en) | Network service configuration method and network management equipment | |
| EP3249871A1 (en) | Method and device for updating network service descriptor | |
| WO2012109868A1 (en) | Network policy configuration method, management device and network management centre device | |
| CN103647658B (en) | The management method of the network equipment and controller in a kind of software defined network system | |
| CN108900384A (en) | Network flow monitoring method, apparatus and system, computer readable storage medium | |
| WO2018001138A1 (en) | Systems, devices and processes to support mobile device management of multiple containers in virtualization environment | |
| JP5866083B1 (en) | Control method, control apparatus and processor in software definition network | |
| US11283804B2 (en) | Group zoning and access control over a network | |
| WO2016008379A1 (en) | Automatic configuration method and device for storage array, and storage system | |
| CN103634419B (en) | The long-range control method of terminal and terminal | |
| CN102316043A (en) | Port virtualization method, switch and communication system | |
| CN114584974A (en) | Network distribution method, device, equipment and medium for Internet of things equipment | |
| KR20210089113A (en) | A method, an apparatus, an electronic device and a storage medium for communicating between private networks | |
| CN106162387B (en) | Authentication registration method, device and system of optical access module | |
| CN112600744A (en) | Authority control method and device, storage medium and electronic device | |
| US20150372854A1 (en) | Communication control device, communication control program, and communication control method | |
| WO2014000491A1 (en) | Method and device for migrating from physical network to virtual network | |
| CN111884837A (en) | Migration method and device of virtual encryption machine and computer storage medium | |
| CN110869919B (en) | Method for remote node discovery, communication channel confirmation and connection | |
| CN103338117B (en) | The management method of a kind of virtual switch, equipment and system |
| 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 |