CN102412978A - Method for carrying out network configuration for VM and system thereof - Google Patents

Method for carrying out network configuration for VM and system thereof Download PDF

Info

Publication number
CN102412978A
CN102412978A CN 201010290503 CN201010290503A CN102412978A CN 102412978 A CN102412978 A CN 102412978A CN 201010290503 CN201010290503 CN 201010290503 CN 201010290503 A CN201010290503 A CN 201010290503A CN 102412978 A CN102412978 A CN 102412978A
Authority
CN
Grant status
Application
Patent type
Prior art keywords
network configuration
vm
manager
vnet
vswitch
Prior art date
Application number
CN 201010290503
Other languages
Chinese (zh)
Other versions
CN102412978B (en )
Inventor
符斌
Original Assignee
杭州华三通信技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date

Links

Abstract

The invention provides a method for carrying out network configuration for a VM and a system thereof. Before the VM is created or migrated, a VNet manager generates network configuration information aiming at the VM and sends an identification of the network configuration information to a Vm manager. During creating or migrating the VM, the Vm manager issues to a vSwitch in which the created and migrated VM is located. The vSwitch binds the identification of the network configuration information with a port which the VM is accessed to on the vSwitch. And the identification of the network configuration information is notified to an edge switch which is connected with the vSwitch. The edge switch binds the identification of the network configuration information with the port which receives the identification of the network configuration information. The vSwitch and the edge switch uses the identification of the network configuration information to acquire the corresponding network configuration information from the VNet manager and configure to the bound port.

Description

一种针对虚拟主机进行网络配置的方法和系统 A method of network configuration for virtual hosting and systems

技术领域 FIELD

[0001] 本发明涉及网络通信技术领域,特别涉及一种针对虚拟主机进行网络配置的方法和系统。 [0001] The present invention relates to network communication technology field, and particularly relates to a method and system for network configuration for the virtual host.

背景技术 Background technique

[0002] 虚拟化技术通过软件或固件管理程序构成虚拟化层并对其进行管理,把物理资源映射为虚拟资源,来达到充分共享物理资源的目的,目前一般所指的就是服务器虚拟化技术,即可以在同一台物理服务器上运行多个独立的操作系统及相互独立的应用。 [0002] virtualization technology virtualization layer composed by software or firmware management program and manage to map the physical resources to virtual resources to achieve full sharing of physical resources, the general referred to is the server virtualization technology, which can run multiple independent operating systems and application independent on the same physical server. 虚拟化技术的核心是虚拟交换机(vSwitch)以及连接在vSwitch上的虚拟主机(VM)。 The core virtualization technology is virtual switch (vSwitch) and virtual host (VM) is connected to the vSwitch.

[0003] 图1为一种典型的虚拟化网络示意图,其中,vSwitch是使用虚拟化软件的二层交换机,位于物理服务器中,vSwitch创建虚拟的网络接口(vPort)连接VM,并使用物理网卡连接外部的边缘交换机(Edge Switch) 0 vSwitch上的vPort可以组合成端口组,主要用于划分虚拟局域网(VLAN),对二层VM网络进行VLAN隔离。 [0003] FIG. 1 is a typical schematic diagram of a virtualized network, wherein, the vSwitch using virtualization software switcher, located in physical servers, the vSwitch create virtual network interfaces (vPort) connected to the VM, and is connected physical NIC the outer edge switch (edge ​​switch) vPort on port 0 vSwitch can be combined into groups, for dividing the main virtual local area network (VLAN), Layer 2 network VLAN VM isolation. 虚拟机管理中心(VM Manager)负责虚拟化软件以及VM的管理。 Virtual Machine Manager (VM Manager) is responsible for virtualization software and VM management. 虚拟网络管理中心(VNet Manager)负责物理网络和Edge Switch的管理,相比较传统的网关,额外具备了对vSwitch和动态迁移(vMotion)的适配能力。 Virtual Network Management Center (VNet Manager) responsible for the physical and Edge Switch network management compared to traditional gateway has the additional ability to adapt vSwitch and live migration (vMotion) of.

[0004] 在虚拟化网络中,允许一个活动的VM动态地从一台物理主机迁移到另一台物理主机上,且不需要中止分区中正在运行地应用,这种迁移就是vMotion。 [0004] In the virtual network, allowing a dynamically active VM migrated from one physical host to another physical host, and the application partition is running, this migration is not required vMotion aborted. 如图1中所示,VMl 从物理主机1上迁移到物理主机2上。 As shown in FIG. 1, VMl migrate from the physical host 1 to the physical host 2. VM manager提供了对VM的创建和vMotion等管理, 但在VM创建或vMotion时,除了在服务器上的资源合理调度之外,网络连接的合理调度也是必须的。 VM manager provides vMotion the VM creation and management and so on, but when the VM is created or vMotion, in addition to the resources on the server scheduling reasonable, rational management network connection is necessary. 例如,当VMl从物理主机1上迁移到物理主机2上后,从原来vSwitchl的某个vPort 接入至Ij Edge Switchl,变成由vSwitch2 的某个vPort 接入至Ij Edge Switch2。 For example, when the physical host 1 2 VMl on the migration from the physical host, the access from an original vSwitchl vPort to Ij Edge Switchl, into a vPort vSwitch2 in the access to the Ij Edge Switch2. 在VM 创建或迁移过程中,需要同步调整相关的网络配置,否则VM可能无法正常使用。 In the VM creation or migration, require synchronization adjustment related to network configuration, otherwise VM may not work properly. 例如,原先对VMl的访问设置了ACL以屏蔽非法访问,或者设置了QoS保证业务运行带宽,在VMl发生迁移后,迁移后接入位置上的网络配置可能无法满足原先对VM的配置要求。 For example, access to the original ACL VMl set up to shield unauthorized access to, or set up business operations to ensure QoS bandwidth occurs after VMl migration, post-migration network configuration on the access location may not meet the original configuration requirements for VM.

[0005] 现有技术中,对VM的创建或迁移进行网络配置的方式如图2所示,包括:VM manager在确定创建VM或VM发生迁移后,将VM的信息携带在迁移事件消息中通知给VNet manager, VNet manager根据VM的信息(例如VM的IP地址或MAC地址等)对VM进行定位,确定VM在创建或迁移后的接入位置,该接入位置包括:在Edge Switch上的接入位置和在vSwitch上的接入位置;将预先配置的网络配置片断集下发到定位得到的接入位置。 [0005] In the prior art, the way to create the VM migration or network configuration shown in Figure 2, comprising: VM manager after determining created VM or VM migration occurs, the information carried in the VM migration event notification message to VNet manager, VNet manager according to a VM (e.g. IP address or MAC address of the VM, etc.) is positioned on the VM, the VM access location determined or created after the migration, the access position comprises: a contact with the Edge Switch into position and the access position on the vSwitch; lower segment set network configuration is pre-configured to send an access position location obtained.

[0006] 然而,上述现有的方式中,VNet manager需要在VM创建或迁移之后对VM进行定位,往往会造成很大的延迟,无法保证动态迁移的连续性。 [0006] However, the conventional way, VNet manager need to be positioned after the VM or VM creation migration, often cause great delays, can not guarantee the continuity of live migration. 另外,定位时往往采用拓扑发现的方式,其在准确性上有一定局限性,可能会导致网络配置的位置不准确,从而导致VM创建或迁移失败。 In addition, often using the positioning mode topology discovery, it has some limitations in accuracy, it may result in inaccurate location network configuration, leading to VM to create or failure.

发明内容[0007] 本发明提供了一种针对VM进行网络配置的方法和系统,以便于减少VM创建或迁移过程的延迟,提高网络配置的位置准确性。 SUMMARY OF THE INVENTION [0007] The present invention provides a method and system for VM network configuration in order to create a delay or reduction in VM migration process, improve the positional accuracy of the network configuration.

[0008] 一种针对虚拟主机VM进行网络配置的方法,该方法包括: [0008] A method for network configuration for the virtual host VM, the method comprising:

[0009] A、在VM创建或迁移前,VNet Manager针对所述VM生成网络配置信息,并将该网络配置信息的标识发送给VM Manager,由VM manager在VM创建或迁移过程中将网络配置信息的标识下发给所述VM创建或迁移后所在的vSwitch ; [0009] A, VM creation or before migration, VNet Manager VM generated for the network configuration information, network configuration and the identification information to the VM Manager, or created in the network configuration information from the VM migration process in the VM Manager issued to the VM to create or vSwitch is located under the rear of identity;

[0010] B、所述vSwitch将所述网络配置信息的标识与该vSwitch上所述VM接入的端口绑定,并将所述网络配置信息的标识通告给与该vSwitch连接的Edge Switch ; [0010] B, the network configuration vSwitch the identification information on the vSwitch binding the VM access port, and the network configuration information of the advertisement identification of the Edge Switch vSwitch given connection;

[0011] C、所述Edge Switch将所述网络配置信息的标识与接收所述网络配置信息的标识的端口绑定; [0011] C, the Edge Switch network configuration identifier with the received configuration information of the network identification of port binding information;

[0012] D、所述vSwitch和所述Edge Switch利用所述网络配置信息的标识从所述VNet Manager获取对应的网络配置信息并配置到所述网络配置信息的标识所绑定的端口。 [0012] D, the vSwitch and the Edge Switch configuration with the network identification information corresponding to the acquired network configuration information and configure the network configuration to the port identification information from the binding VNet Manager.

[0013] 一种针对虚拟主机VM进行网络配置的系统,该系统包括:VNet Ma nager、VM Manager、vSwitch 禾口Edge Switch ; [0013] A network configuration for the virtual machines VM system, the system comprising: VNet Ma nager, VM Manager, vSwitch Wo port Edge Switch;

[0014] 所述VNet Manager,用于在VM创建或迁移前,针对所述VM生成网络配置信息,并将该网络配置信息的标识发送给所述VM Manager ; [0014] The VNet Manager, for VM creation or before the migration, the VM generator configuration information for the network, and the network configuration information to the identification of the VM Manager;

[0015] 所述VM Manager,用于在VM创建或迁移过程中将所述网络配置信息的标识下发给所述VM创建或迁移后所在的vSwitch ; [0015] The VM Manager, or to create a network configuration in the migration process under the issued identification information to create or vSwitch VM resides in the VM;

[0016] 所述vSwitch,用于将所述网络配置信息的标识与该vSwitch上所述VM接入的端口绑定,并将所述网络配置信息的标识通告给该vSwitch连接的Edge Switch ;利用所述网络配置信息的标识从所述VM Manager获取对应的网络配置信息并配置到所述标识所绑定的端口; [0016] The vSwitch, for configuring the network binding the VM access port on the vSwitch identification information, and identification information of the network configuration of the advertisement to the Edge Switch vSwitch connection; using the network configuration corresponding to the identification information acquired network configuration information and to configure the port identifier from the bound VM Manager;

[0017] 所述Edge Switch,用于将所述网络配置信息的标识与接收所述网络配置信息的标识的端口绑定;利用所述网络配置信息的标识从所述VM Manager获取对应的网络配置信息并配置到所述标识所绑定的端口。 [0017] The Edge Switch, the network configuration for receiving the network identifier and configure port binding information identification information; using the identifier acquired network configuration information from the network configuration corresponding to VM Manager and to configure the port information identifying the bound.

[0018] 由以上技术方案可以看出,本发明中VNet Manager仅需要维护为创建或迁移的VM生成的网络配置信息,通过将网络配置信息的标识经由vSwitch发送给vSwitch和Edge Switch,使得vSwitch和Edge Switch能够将该标识与VM接入位置的端口绑定,并再从VNet Manager获取到网络配置信息后,配置到与对应标识绑定的端口。 [0018] As can be seen from the above technical solutions, the present invention VNet Manager only need to maintain network configuration information to create or migrated VM generated by the identification information to the network configuration and the Edge Switch vSwitch vSwitch via, and such that vSwitch Edge Switch port binding can be identified and the access location of the VM, and then to obtain from VNet Manager network configuration information, the configuration corresponding to the port identification binding. 也就是说,无需VNet Manager对VM进行定位以确定VM在vSwitch和Edge Switch上的接入位置,从而避免了定位带来的延迟,也避免了因定位位置不准确所导致的VM创建或迁移失败。 That is, without VNet Manager to access VM positioning to determine the position of vSwitch and VM on the Edge Switch, thus avoiding the delays caused by the positioning, but also to avoid VM position due to positioning inaccuracies caused by the failure to create or migrate .

附图说明 BRIEF DESCRIPTION

[0019] 图1为一种典型的虚拟化网络示意图; [0019] FIG. 1 is a typical schematic diagram of a virtual network;

[0020] 图2为现有技术中针对VM进行网络配置的方法示意图; [0020] FIG. 2 is a prior art method for network configuration schematic VM;

[0021] 图3为本发明提供的主要方法流程图; [0021] FIG. 3 is mainly a flowchart of a method of the present invention;

[0022] 图4为本发明实施例一提供的方法流程图; [0022] FIG 4 is a flowchart of a method according to a first embodiment of the present invention;

[0023] 图5为本发明实施例二提供的方法流程图; [0023] FIG 5 is a flowchart of a method according to a second embodiment of the present invention;

[0024] 图6为本发明提供的系统结构示意图。 [0024] Figure 6 provides a schematic view of a system configuration of the present invention. 具体实施方式 detailed description

[0025] 为了使本发明的目的、技术方案和优点更加清楚,下面结合附图和具体实施例对本发明进行详细描述。 [0025] To make the objectives, technical solutions, and advantages of the invention more apparent, the accompanying drawings and specific embodiments of the present invention will be described in detail with.

[0026] 图3为本发明提供的主要方法流程图,如图3所示,本发明提供的方法主要包括以下步骤: [0026] FIG. 3 is mainly present invention provides a method flowchart shown in Figure 3, the present invention provides the method includes the following steps:

[0027] 步骤301 :在VM创建或迁移前,VNet Manager针对VM生成网络配置信息,并将该网络配置信息的标识发送给VM Manager,由VM Manager在VM创建或迁移过程中下发给VM 创建或迁移后所在的vSwitch。 [0027] Step 301: VM creation or before migration, VNet Manager VM generator for network configuration information, network configuration and the identification information to the VM Manager, created or sent to the VM migration process created by the VM VM Manager or after migration vSwitch is located.

[0028] 步骤302 =VSwitch将该网络配置信息的标识与该vSwitch上VM接入的端口绑定, 并将该网络配置信息的标识通告给连接的Edge Switch。 [0028] Step 302 = VSwitch the network configuration identifier to the vSwitch VM access port binding information, network configuration and the identification information to notify the Edge Switch connection.

[0029] 步骤303 =Edge Switch将接收到的网络配置信息的标识与接收该网络配置信息的标识的端口绑定。 [0029] Step 303 = Edge Switch network configuration received identification information with the received identification of the network configuration port binding information.

[0030] 步骤304:Edge Switch和vSwitch利用该网络配置信息的标识从VNet Manager 获取对应的网络配置信息并配置到该网络配置信息的标识所绑定的端口。 [0030] Step 304: Edge Switch and vSwitch configuration using the network identification information corresponding to the acquired network configuration information and configure the network configuration to the port identification information from the bound VNet Manager.

[0031] 下面通过两个具体的实施例对上述方法进行详细描述。 [0031] The following detailed description of the two methods described above specific embodiments.

[0032] 实施例一、针对用户管理界面配置在VM Manager上的情况,或者非用户手工方式引起VM迁移的情况。 [0032] one embodiment, for the case of a user management interface disposed on the VM Manager or VM migration causes the case of non-users manually. 在这两种情况下,只有VM Manager能够获知VM要发生创建和迁移, 例如通过VM Manager的管理界面,创建VM或者手工配置VM迁移。 In both cases, only the VM Manager VM can learn to create and migration occurs, for example, by VM Manager management interface, create a VM or VM migration manually configured.

[0033] 图4为本发明实施例一提供的方法流程图,如图4所示,该方法可以具体包括以下步骤: [0033] FIG 4 is a flowchart of a method according to a first embodiment of the present invention, shown in Figure 4, the method may comprises the following steps:

[0034] 步骤401 :预先在VNet Manager上针对不同类型的VM配置静态的虚拟网络配置模板(vNetConf Template),该虚拟网络配置模板可以包含=EdgeSwitch的虚拟网络配置模板和vSwitch的虚拟网络配置模板。 [0034] Step 401: Pre-configure a static virtual network configuration template (vNetConf Template) for different types of VM on VNet Manager, the virtual network configuration template may comprise = EdgeSwitch virtual network configuration template and vSwitch virtual network configuration template.

[0035] 上述虚拟网络配置模板中包含VM类型对应的网络配置参数。 [0035] The virtual network configuration template containing the VM corresponding to the type of network configuration parameters. 例如,针对Web Server类型的VM,可以定义虚拟网络配置模板中包含ACL参数和QoS参数等。 For example, for the type of Web Server VM, you can define a virtual network configuration parameters contained in the template ACL and QoS parameters.

[0036] 步骤402 =VM Manager确定VM要发生创建或迁移时,根据VM的类型选择VNet Manager上的虚拟网络配置模板,并将该VM创建或迁移后对应的配置参数值返回给VNet Manager0 [0036] Step 402 = VM Manager is determined to occur when the VM to create or select a virtual network configuration template according to the type VNet Manager on the VM, and to create or after the corresponding configuration parameter value is returned to the VM VNet Manager0

[0037] VM Manager能够通过与VNet Manager的接口选择虚拟网络配置模板,以及发送具体参数的值。 [0037] VM Manager configuration template can be selected by a virtual network interface VNet Manager, and the specific value of the transmission parameter.

[0038] 其中,虚拟网络配置模板的选择可以是:VM通过请求消息将模板标识和模板参数发送给VNet Manager ;或者,VM Manager将VM的类型信息发送给VNet Manager, VNet Manager确定与该VM类型对应的虚拟网络配置模板。 [0038] wherein selecting the virtual network configuration template may be: VM sends the template ID and the template parameters to VNet Manager by requesting message; Alternatively, VM Manager sends VM type information to VNet Manager, VNet Manager determines the type of the VM corresponding virtual network configuration template. 上述VM的类型信息以及参数的值可以通过VM Manager与VNet Manager之间的接口协议报文发送,也可以通过VM创建或迁移事件消息发送。 The value of the type of information and the parameters of the VM can send a message through the interface protocol between the VM Manager and VNet Manager, you can create or migrate event messages sent via VM.

[0039] 由于VM Manager对VM创建和迁移的管理功能,因此能够为VM创建后或迁移确定具体的配置参数值,该具体的配置参数值的确定可以是初始化值,也可以是用户在对设备进行管理时通过管理界面输入的值。 [0039] Since the VM Manager of VM creation and migration management function, it is possible to determine the specific configuration parameter values ​​after the VM creation or migration, the identification of specific configuration parameter values ​​may be initialized value may be a user equipment value inputted through the management interface management. [0040] 步骤403:VNet Manager利用接收到的配置参数值为VM Manager选择的虚拟网络配置模板中的参数赋值,创建网络配置实例,并将该网络配置实例的实例号下发给VM Manager0 [0040] Step 403: VNet Manager using the received configuration parameters selected parameter value VM Manager virtual network assignment configuration template, create a network configuration example, the instance number and configurations to the example of the network VM Manager0

[0041] 在本步骤中,VNet Manager实际上利用接收到的各参数的值对VM Manager选择的虚拟网络配置模板中的各参数进行赋值,得到创建的网络配置实例,该网络配置实例实际上包含了VM创建或迁移后对应的网络配置信息(Profile),该ftOfi Ie的标识在该实施例中可以采用实例号(vNetConf Instance)的方式,将vNetConf hstance下发给VM Manager0 [0041] In this step, VNet Manager actually using the value of each parameter for each received network configuration parameters of the virtual template VM Manager in the selected assignment, to obtain the network configuration example of creating, in fact, the network configuration instance comprising after the VM creates a corresponding network configuration information or migration (Profile <br>), the identification of ftOfi Ie in this embodiment by way of example number (vNetConf instance) may be employed, under the vNetConf hstance distributed VM Manager0

[0042] 这样,在VNet Manager中仅需要维护各网络配置实例及其实例号,无需维护具体的VM信息,有助于保持VNet Manager和VM Manager功能和数据的独立性。 [0042] Thus, in VNet Manager only requires maintenance of the network configuration instance and instance number, maintenance information specific VM, and helps to maintain the independence VNet Manager VM Manager functions and data.

[0043] 步骤404 =VM Manager在VM创建或迁移过程中将VM对应的网络配置实例的实例号发送给VM创建或迁移后所在的vSwitch。 [0043] Step 404 = VM Manager will create a VM or VM migration process corresponding to a network configuration example to a number of examples where vSwitch VM creation or after migration.

[0044] 在VM Manager上可以仅管理VM对应的实例号,并不维护具体的网络配置实例,具体的网络配置实例在VNet Manager上维护。 [0044] On the VM VM Manager to manage only the corresponding number of instances, do not maintain the specific network configuration examples, specific examples of network configuration is maintained on VNet Manager.

[0045] 步骤405 =VSwitch将VM对应的网络配置实例的实例号与该vSwitch上VM接入的端口绑定,并将该网络配置实例的实例号通告给连接的Edge Switch。 [0045] Step 405 = VSwitch the VM network configuration example corresponding to the example numbers bound vSwitch VM access port, the network configuration instance and instance number to the connected advertisement Edge Switch.

[0046] 该vSwitch上VM接入的端口可以是vPort,也可以是端口组(portGroup),或其它形式的端口。 [0046] The access port on the vSwitch VM may be vPort, may be a port group (portGroup), or other form of port.

[0047] 在将网络配置实例的实例号通知给Edge Switch时,可以通过私有协议实现,例如扩展的链路层发现协议(LLDP)。 [0047] When the example of the network configuration example No. notifies Edge Switch, a private protocol may be implemented by, for example, an extended link layer discovery protocol (LLDP).

[0048] 步骤406 =Edge Switch将接收到的网络配置实例的实例号与接收该实例号的端口进行绑定。 [0048] Step 406 = Edge Switch the received network configuration example Example port number for receiving the bound instance number.

[0049] Edge Switch接收到网络配置实例的实例号的端口实际上就是VM在Edge Switch 上的接入位置,因此,Edge Switch将接收到的网络配置实例的实例号与接收该实例号的Edge端口进行绑定即可。 [0049] Edge Switch instance number received network configuration example of the access port location is actually in VM Edge Switch, and therefore, the Edge Switch received network configuration example of the instance number and the reception port instance number Edge to bind to.

[0050] 步骤407 =Edge Switch和vSwitch利用接收到的网络配置实例的实例号从VNet Manager获取该实例号对应的网络配置实例,并配置到实例号所绑定的端口。 [0050] Step 407 = Edge Switch vSwitch and using the received network configuration example of the instance number to obtain the number corresponding to the example network configuration example, and to configure the port number of the bound instance from VNet Manager.

[0051] 本步骤的触发方式可以包括但不限于以下两种: [0051] This step may trigger include but are not limited to the following two:

[0052] 第一种方式:由vSwitch的认证过程触发本步骤的执行。 [0052] The first embodiment: the step of triggering the execution of this authentication procedure by the vSwitch.

[0053] 当vSwitch作为认证客户端进行认证时,将上述实例号携带在认证报文中发送给认证服务器,认证服务器将VNet Manager的地址信息携带在认证响应报文中发送给vSwitch, vSwitch 将获取的VNet Manager 的地址信息发送给Edge Swtich ;然后vSwitch 和Edge Swtich可以利用诸如文件传输协议(FTP)等动态方式从VNet Manager中获取实例号对应的网络配置实例,并配置到实例号所绑定的端口。 [0053] When vSwitch authentication as the authentication client, the above example number carried to the authentication server in the authentication message, the authentication server VNet address information Manager carries to a vSwitch authentication response message, vSwitch acquired VNet Manager address information is sent to the Edge Swtich; vSwitch and Edge Swtich then be utilized in a dynamic manner, such as file transfer protocol (FTP) and the like to obtain an instance number from a corresponding network configuration example VNet Manager and configure the instance number is bound port.

[0054] 或者,VNet Manager在生成网络配置实例后,就将网络配置实例下发到所有的vSwitch和Edge Switch上,当vSwitch作为认证客户端进行认证时,触发自身和Edge Switch将接收到的实例号对应的网络配置实例配置到实例号所绑定的端口。 [0054] Alternatively, VNet Manager after generating the network configuration example, will be sent to all of the Edge Switch vSwitch and the network configuration example, when vSwitch authentication as the authentication client, and the Edge Switch instances themselves trigger received network configuration number corresponding to the example of the configuration port number is bound instance.

[0055] 第二种方式:接收到实例号就触发本步骤的执行。 [0055] The second way: the received instance ID is triggered to perform this step.

[0056]预先在 vSwitch 和Edge Swtich 配置VNet Manager 的地址,vSwitch 一旦接收到VM Manager发送来的实例号就从VNet Manager中获取实例号对应的网络配置实例,并配置到实例号所绑定的端口;Edge Switch 一旦接收到vSwitch通告来的实例号就从VNet Manager中获取实例号对应的网络配置实例。 [0056] pre-configured in VNet Manager vSwitch Edge Swtich address and, upon receiving vSwitch VM Manager instance number transmitted on access number corresponding to the example network configuration from VNet Manager instance, and to configure the port number of the bound instance ; Edge Switch vSwitch upon receiving the advertisement to the instance number to obtain the number of instances a corresponding network configuration example of the VNet Manager.

[0057] vSwitch从VNet Manager 获取的是vSwitch 的网络配置实例(vSwitch profile), Edge Swtich 从VNet Manager 获取的是Edge Switch 的网络配置实例(Edge Switch profile)。 [0057] vSwitch VNet Manager is acquired from the network configuration example vSwitch (vSwitch profile), Edge Swtich VNet Manager is acquired from the Edge Switch network configuration example (Edge Switch profile).

[0058] 实施例二、针对用户管理界面配置在VNet Manager上,发生VM创建或用户手工方式引起VM迁移的情况。 [0058] Example II management interface for the user arranged on VNet Manager, the user manually create or cause the situation occurs VM VM migration. 在这种情况下,VNet Manager能够直接获知VM发生了创建和迁移。 In this case, VNet Manager can be directly informed of the occurrence of the VM creation and migration.

[0059] 图5为本发明实施例二提供的方法流程图,如图5所示,该方法可以具体包括以下步骤: [0059] FIG 5 is a flowchart of a method according to the second, embodiment of the invention shown in Figure 5, the method may comprises the following steps:

[0060] 步骤501同步骤401。 [0060] Step 501 with step 401.

[0061] 步骤502:VNet Manager确定VM要发生创建或迁移时,确定VM的类型对应的VNet Manager上的虚拟网络配置模板,然后利用该VM创建或迁移后的配置参数值为虚拟网络配置模板赋值,创建网络配置实例。 [0061] Step 502: VNet Manager determines to occur to create or VM, determining the virtual network configuration template corresponding to the type of VM VNet Manager, and then use the configuration parameter values ​​to create or VM virtual network configuration template assignment , create a network configuration examples.

[0062] 在本实施例中,VM创建或迁移都是用户通过在VNet Manager上的管理界面手工实现的,因此,VNet Manager能够获知发生创建或迁移事件的VM类型,且VM创建或迁移后对应的配置参数值也是用户通过管理界面手工配置的。 After [0062] In the present embodiment, it is the VM creation or migrate through the user management interface in VNet Manager manually implemented, and therefore, can be known VM type VNet Manager to create or events occurring, and the VM corresponding to create or the configuration parameter values ​​are user manually configured through the management interface. VM Manager则提供被调用接口,供VNet Manager 调用。 VM Manager provides an interface to be called, for VNet Manager calls.

[0063] 步骤503 =VM Manager将该网络配置实例的实例号发送给VM Manager,由VM Manager在VM创建或迁移过程中下发给VM创建或迁移后所在的vSwitch。 [0063] Step 503 = VM Manager The network configuration example to a VM Manager instance number, created or issued to the migration process to migrate the VM creation or vSwitch by VM Manager resides in the VM.

[0064] 由于VM Manager具备VM创建和迁移的管理功能,因此,VM Manager能够获知VM 创建或迁移后所在的vSwitch,这是VM Manager的已有功能。 Where the [0064] Since the VM with VM Manager to create and migration management, therefore, be able to learn VM VM Manager to create or migrate vSwitch, which is already functional VM Manager.

[0065] 步骤504至步骤506同步骤405至407。 [0065] Step 504 to step 506 with steps 405-407.

[0066] 可以看出,上述实施例一中,VM Manager作为VM创建和迁移过程的控制者,完成网络配置信息的动态调度,而VNet Manager仅负责网络配置实例的维护。 [0066] As can be seen, in one embodiment the above-described embodiment, as a VM VM Manager to create and control by the migration process, complete dynamic scheduling network configuration information, and network configuration VNet Manager is responsible for maintaining only an example. 而实施例二中, VNet Manager不仅负责网络配置实例的维护,同时也作为VM创建和迁移过程的控制者,完成网络配置信息的动态调度,VM Manager则作为网络配置实例的下发接口,以及负责VM信息的静态维护。 And Example II, VNet Manager is not only responsible for network configuration maintenance instance, also serves as the VM creation and control by the migration process, complete network configuration dynamic scheduling information, VM Manager is a network configuration issued interface instance, and is responsible for VM static maintenance information. 然而,无论是实施例一还是实施例二,VNet Manager均不需要关心VM的创建或迁移后的接入位置。 However, neither the first embodiment or the second embodiment, VNet Manager not need to worry about access locations after the VM creation or migration.

[0067] 在上述实施例中,Edge Switch和vSwitch均需要支持基于I^rofile的配置和解析处理功能,但对于这种功能的支持已是常规技术,不会产生设备的差异性问题。 [0067] In the above embodiments, Edge Switch and require vSwitch supports I ^ rofile analysis processing configuration and function, but this function are supported by conventional techniques, no differences in equipment problems.

[0068] 下面对本发明所提供的系统进行详细描述,如图6所示,该系统可以包括:VNet Manager、VM Manager、vSwitch 禾口Edge Switch。 [0068] Next, the present invention provides a system is described in detail, as shown in FIG. 6, the system may include: VNet Manager, VM Manager, vSwitch Wo port Edge Switch.

[0069] VNet Manager,用于在VM创建或迁移前,针对VM生成网络配置信息,并将该网络配置信息的标识发送给VM Manager。 [0069] VNet Manager, for VM creation or before the migration, the VM generator configuration information for the network, and the network configuration information to the identified VM Manager.

[0070] VM Manager,用于在VM创建或迁移过程中将网络配置信息的标识下发给VM创建或迁移后所在的vSwitch。 [0070] VM Manager, or for creating a distributed network configuration in the migration process under the VM identification information to create or vSwitch located after VM.

[0071] vSwitch,用于将网络配置信息的标识与该vSwitch上VM接入的端口绑定,并将网络配置信息的标识通告给该vSwitch连接的Edge Switch ;利用网络配置信息的标识从VMManager获取对应的网络配置信息并配置到该标识所绑定的端口。 [0071] vSwitch, port bindings for the network configuration on the identification information access the VM vSwitch, and network configuration identification information notified to the Edge Switch vSwitch connection; using the network configuration information acquired from the identifier VMManager and the corresponding network configuration information to configure the port identifier bound.

[0072] Edge Switch,用于将网络配置信息的标识与接收网络配置信息的标识的端口绑定;利用网络配置信息的标识从VM Manager获取对应的网络配置信息并配置到该标识所绑定的端口。 [0072] Edge Switch, the network configuration for the network identifier and the received identification information of the configuration port binding information; using the network configuration information corresponding to the identifier acquired network configuration information and to configure the identification of the bound from the VM Manager port.

[0073] 较优地,上述VNet Manager上预先静态地配置有针对不同的VM类型的虚拟网络配置模板。 [0073] Jiaoyou, the said VNet Manager pre-configured with statically configured templates for different types of VM virtual networks.

[0074] 此时,网络配置信息为:VNet Manager为创建或迁移的VM对应的虚拟网络配置模板中的参数赋值后生成的网络配置实例。 [0074] In this case, the network configuration information: VNet Manager is created or migrated VM corresponding to the virtual network configuration template parameter assignment generated after the network configuration example. 对应的网络配置信息的标识为:网络配置实例的实例号。 Corresponding to the identifier for the network configuration information: Network configuration example of a number of examples.

[0075] 该系统中,针对网络配置实例的生成方式可以采用以下两种结构(图6中所示的是第一种结构): [0075] The system, for example of a network arranged to generate the following two structures may be employed (the first configuration is shown in FIG. 6):

[0076] 第一种结构:VM Manager,还用于确定VM要发生创建或迁移时,根据VM的类型选择VNet Manager上的虚拟网络配置模板,并将VM创建或迁移后对应的配置参数值发送给VNet Manager。 [0076] A first structure: VM Manager, also used to determine or create a VM migration to occur, select the virtual network configuration template according to the type VNet Manager on the VM, and the VM to create or transmit the corresponding configuration parameter values to VNet Manager.

[0077] 相应地,VNet Manager利用接收到的配置参数值为VM Manager选择的虚拟网络配置模板中的参数赋值,创建网络配置实例。 [0077] Accordingly, VNet Manager using the received configuration parameters selected parameter value VM Manager virtual network assignment configuration template, create a network configuration example.

[0078] 第二种结构:VM Manager确定VM要发生创建或迁移时,确定VM的类型对应的虚拟网络配置模板,并利用VM创建或迁移后对应的配置参数值为确定的虚拟网络配置模板中的参数赋值,创建网络配置实例。 [0078] A second structure: VM Manager VM is determined to occur when creating or migration, the VM corresponding to the type determined virtual network configuration template, and using the VM to create or configure a virtual network configuration parameter template corresponding to the determined value of parameter assignment, create a network configuration examples.

[0079] 另外,上述系统中,vSwitch和Edge Switch获取网络配置信息并配置到对应端口的方式,存在以下几种(图1中所示的是第一种方式): [0079] Further, the above-described system, and the vSwitch Edge Switch acquired network configuration information and configure the corresponding port to the embodiment, there are several (in FIG. 1 is shown in the first embodiment):

[0080] 第一种方式:该系统还可以包括:认证服务器。 [0080] The first way: The system may further comprise: an authentication server.

[0081] vSwitch作为认证客户端进行认证时,将网络配置信息的标识携带在认证报文中发送给认证服务器;获取认证服务器发送来的VNet Manager的地址信息,并将VNet Manager的地址信息发送给Edge Switch ;利用获取的VNet Manager的地址信息从VNet [0081] When vSwitch authentication as the authentication client, the network configuration identification information carried in the authentication message to the authentication server; VNet Manager obtaining address information transmitted authentication server, and sends the address information of the Manager VNet Edge Switch; address information using the acquired VNet Manager from VNet

Manager获取标识对应的网络配置信息,并将获取的网络配置信息配置到标识所绑定的端□。 Manager acquires network configuration information corresponding to the ID, and the acquired network configuration information to identify the end of the binding □.

[0082] 认证服务器,用于将VNet Manager的地址信息携带在认证响应报文中发送给vSwitch。 [0082] authentication server, address information for carrying VNet Manager vSwitch sent to the authentication response message.

[0083] Edge Switch,根据vSwitch 发送来的VNet Manager 的地址信息从VNet Manager 获取标识对应的网络配置信息,并将获取的网络配置信息配置到标识所绑定的端口。 [0083] Edge Switch, according to address information transmitted vSwitch VNet Manager corresponding to the identifier acquired from VNet Manager network configuration information, and the acquired network configuration information to the port identifier bound.

[0084] 第二种方式:VNet Manager,还可以用于在生成网络配置信息后,将网络配置信息下发到所有vSwitch和Edge Switch上。 [0084] The second way: VNet Manager, may also be used after generating the network configuration information, network configuration information is sent to all vSwitch and Edge Switch.

[0085] 当vSwitch作为认证客户端进行认证时,触发自身和Edge Switch将接收到的标识对应的网络配置信息配置到标识所绑定的端口。 [0085] When vSwitch authentication as the authentication client, the Trigger Edge Switch itself and corresponding to the identifier of the received network configuration information to the port identifier bound.

[0086] 第三种方式=VSwitch接收到VM Manager发送来的网络配置信息的标识后,利用预先配置在vSwitch上的VNet Manager的地址信息从VNet Manager中获取标识对应的网络配置信息并配置到标识所绑定的端口。 After [0086] A third embodiment = VSwitch VM Manager receives the transmitted network configuration identification information, the use of pre-configured address information on the vSwitch VNet Manager corresponding to the identifier acquired network configuration information from VNet Manager to identify and configure bound port.

[0087] Edge Switch接收到vSwitch通告来的网络配置信息的标识后,利用预先配置在 After [0087] Edge Switch vSwitch advertisement received identification information to the network configuration, using preconfigured

1Edge Switch上的VNet Manager的地址信息从VNet Manager中获取标识对应的网络配置信息并配置到标识所绑定的端口。 VNet Manager address information on 1Edge Switch network corresponding to the identifier acquired from VNet Manager and configuration information to configure the port identifier bound.

[0088] 由以上描述可以看出,本发明提供的方法和系统可以具备以下优点: [0088] As can be seen from the above description, the present invention provides a method and system may have the following advantages:

[0089] 1)本发明中VNet Manager仅需要维护为创建或迁移的VM生成的网络配置信息, 通过将网络配置信息的标识经由vSwitch发送给vSwitch和Edge Switch,使得vSwitch和Edge Switch能够将该标识与VM接入位置的端口绑定,并再从VNet Manager获取到网络配置信息后,配置到与对应标识绑定的端口。 [0089] 1) The present invention only requires maintenance VNet Manager to create or generate a VM network configuration information, network configuration by the identification information to the Edge Switch and via vSwitch vSwitch, such vSwitch and the Edge Switch can be identified after, and then acquires the position of the access port binding VM from VNet Manager network configuration information to configure the port and the corresponding identified binding. 也就是说,无需VNet Manager对VM进行定位以确定VM在vSwitch和Edge Switch上的接入位置,从而避免了定位带来的延迟,也避免了因定位位置不准确所导致的VM创建或迁移失败。 That is, without VNet Manager to access VM positioning to determine the position of vSwitch and VM on the Edge Switch, thus avoiding the delays caused by the positioning, but also to avoid VM position due to positioning inaccuracies caused by the failure to create or migrate .

[0090] 2)现有技术中,VNet Manager在定位后,下发的是配置片断集,网络设备的型号不同可能会导致所支持的配置片断集不同,从而很难保证网络兼容性,如果针对不同型号的网络设备配置不同的配置片断集,则会造成VNet Manager上管理复杂度的增加。 [0090] 2) the prior art, VNet Manager after positioning, issued fragment is set configuration, different models of network devices supported may lead to different sets of fragments configuration, making it difficult to ensure the compatibility of the network, if for different types of network equipment different configuration set pieces, it will cause an increase in the complexity of managing the VNet Manager. 本发明中采用预先设定网络配置模板,根据VM的类型生成网络配置实例并将网络配置实例下发至vSwitch 和Edge Switch,这种方式下,vSwitch 和Edge Switch 设备只要统一支持Profile 文件即可,避免了兼容性问题,也降低了VNet Manager上的管理复杂度。 The present invention uses a preset network configuration template, and generate a network configuration example of a network configuration example to vSwitch issued Edge Switch and depending on the type of VM, in this way, as long as the devices vSwitch Edge Switch and unified file to support Profile, avoid compatibility issues, but also reduces management complexity on VNet Manager.

[0091] 以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明保护的范围之内。 [0091] The foregoing is only preferred embodiments of the present invention but are not intended to limit the present invention, all within the spirit and principle of the present invention, any changes made, equivalent substitutions and improvements should be included within the scope of protection of the present invention.

Claims (12)

  1. 1. 一种针对虚拟主机VM进行网络配置的方法,其特征在于,该方法包括:A、在VM创建或迁移前,虚拟网络管理中心VNet Manager针对所述VM生成网络配置信息,并将该网络配置信息的标识发送给虚拟机管理中心VM Manager,由VM manager在VM 创建或迁移过程中将网络配置信息的标识下发给所述VM创建或迁移后所在的虚拟交换机vSwitch ;B、所述vSwitch将所述网络配置信息的标识与该vSwitch上所述VM接入的端口绑定, 并将所述网络配置信息的标识通告给与该vSwitch连接的边缘交换机Edge Switch ;C、所述Edge Switch将所述网络配置信息的标识与接收所述网络配置信息的标识的端口绑定;D、所述vSwitch和所述Edge Swi tch利用所述网络配置信息的标识从所述VNet Manager获取对应的网络配置信息并配置到所述网络配置信息的标识所绑定的端口。 1. A method for network configuration for the virtual VM host, wherein the method comprises: A, before the VM creation or migration, the virtual network management center VNet Manager generates configuration information for the VM network, and the network identifying configuration information to the management center virtual machine VM Manager, or to create a network configuration in the migration process identification information sent to the virtual switch vSwitch located or created after the VM migrated from the VM Manager VM; B, the vSwitch the identification information on the network configuration to the VM vSwitch bound to the access port and the network configuration information of the advertisement identification given vSwitch edge switch connected to the edge switch; C, to the edge switch receiving the network configuration of the network identifier and configure port binding information identification information; D, the vSwitch and the Edge Swi tch identification with the network configuration information acquired from the network configuration corresponding to said VNet Manager and the network configuration information to the configuration port identification information is bound.
  2. 2.根据权利要求1所述的方法,其特征在于,该方法还包括:预先在所述VNet Manager 上针对不同的VM类型配置静态的虚拟网络配置模板;所述网络配置信息为:为创建或迁移的所述VM对应的虚拟网络配置模板中的参数赋值后生成的网络配置实例;所述网络配置信息的标识为:所述网络配置实例的实例号。 2. The method according to claim 1, wherein the method further comprises: pre-configured static virtual network configurations templates for different types on the VM VNet Manager; the network configuration information to: create or after generating the VM corresponding to the virtual network configuration template migrated parameter assignment network configuration example; the identification information for the network configuration: the network configuration example of a number of examples.
  3. 3.根据权利要求2所述的方法,其特征在于,所述VNet Manager针对所述VM生成网络配置信息包括:所述VM Manager确定所述VM要发生创建或迁移时,根据VM的类型选择所述VNet Manager上的虚拟网络配置模板,并将所述VM创建或迁移后对应的配置参数值发送给所述VNet Manager,所述VNet Manager利用接收到的配置参数值为所述VM Manager选择的虚拟网络配置模板中的参数赋值,创建网络配置实例;或者,所述VNet Manager确定所述VM要发生创建或迁移时,确定所述VM的类型对应的虚拟网络配置模板,并利用所述VM创建或迁移后对应的配置参数值为确定的虚拟网络配置模板中的参数赋值,创建网络配置实例。 3. The method according to claim 2, wherein said VNet Manager configuration information for the VM generator network comprising: determining when the VM Manager to create the VM or migration to occur, depending on the type selected by the VM virtual network configuration template on said VNet Manager, and migration of the VM is created or after the corresponding configuration parameter value is sent to the VNet Manager, the VNet Manager using the received configuration parameters is the selected virtual VM Manager network configuration template parameter assignment, network configuration is created instance; or the VNet Manager determines the occurrence of the VM to create or determine the type of the corresponding VM virtual network configuration template, and using the VM creation or virtual network configuration template migration corresponding configuration parameters to determine the value of the parameter assignment, create a network configuration examples.
  4. 4.根据权利要求1、2或3所述的方法,其特征在于,所述步骤D具体包括:所述vSwitch作为认证客户端进行认证时,将所述网络配置信息的标识携带在认证报文中发送给认证服务器,认证服务器将所述VNet Manager的地址信息携带在认证响应报文中发送给所述vSwitch ;所述vSwitch将获取的VNet Manager的地址信息发送给所述Edge Switch ;所述vSwitch和所述Edge Switch根据所述VNet Manager的地址信息从所述VNet Manager获取所述标识对应的网络配置信息,并将获取的网络配置信息配置到所述标识所绑定的端口;或者,所述VNet Manager在生成网络配置信息后,将所述网络配置信息下发到所有vSwitch 和Edge Switch上;当vSwitch作为认证客户端进行认证时,触发自身和Edge Switch将接收到的标识对应的网络配置信息配置到所述标识所绑定的端口。 4. The method of claim 2 or claim 3, wherein the step D comprises: said vSwitch authentication as the authentication client, the network configuration identification information carried in the authentication message sent to the authentication server, the authentication server address information VNet Manager carries vSwitch transmitted to the authentication response packet; transmitting address information of the acquired vSwitch VNet Manager to the Edge Switch; the vSwitch Edge Switch configuration information and the address information of the VNet Manager acquires the network corresponding to the identifier from the VNet Manager according to the acquired network configuration information to the port identification bound; or the VNet Manager after generating the network configuration information, the network configuration information sent to the Edge Switch and all vSwitch; vSwitch when authentication as the authentication client, the trigger corresponding to the Edge Switch itself and the received network configuration information configured to identify said port bound.
  5. 5.根据权利要求1、2或3所述的方法,其特征在于,所述步骤D具体包括:所述vSwitch接收到所述VM Manager发送来的网络配置信息的标识后,利用预先配置在所述vSwitch上的VNet Manager的地址信息从VNet Manager中获取所述标识对应的网络配置信息并配置到所述标识所绑定的端口;所述Edge Switch接收到所述vSwitch通告来的网络配置信息的标识后,利用预先配置在所述Edge Switch上的VNet Manager的地址信息从VNet Manager中获取所述标识对应的网络配置信息并配置到所述标识所绑定的端□。 5. The method of claim 2 or claim 3, wherein the step D comprises: receiving identification vSwitch the network configuration information sent by the VM Manager after using the pre-configured said address information on vSwitch VNet Manager acquires the network configuration information corresponding to the identifier and the port identifier to configure bound from VNet Manager; and the Edge Switch vSwitch receives the advertisement to the network configuration information address identification information, the use of pre-arranged on the Edge Switch VNet Manager acquires the network configuration information corresponding to the identifier and configured to identify the end □ bound from the VNet Manager.
  6. 6. 一种针对虚拟主机VM进行网络配置的系统,其特征在于,该系统包括:虚拟网络管理中心VNet Manager、虚拟机管理中心VM Manager、虚拟交换机vSwitch和边缘交换机Edge Switch ;所述VNet Manager,用于在VM创建或迁移前,针对所述VM生成网络配置信息,并将该网络配置信息的标识发送给所述VM Manager ;所述VM Manager,用于在VM创建或迁移过程中将所述网络配置信息的标识下发给所述VM创建或迁移后所在的vSwitch ;所述vSwitch,用于将所述网络配置信息的标识与该vSwitch上所述VM接入的端口绑定,并将所述网络配置信息的标识通告给该vSwitch连接的Edge Switch ;利用所述网络配置信息的标识从所述VM Manager获取对应的网络配置信息并配置到所述标识所绑定的端Π ;所述Edge Switch,用于将所述网络配置信息的标识与接收所述网络配置信息的标识的端口绑定;利用所述网络配置信 A network configuration system for the VM virtual server, wherein, the system comprising: a virtual network management center VNet Manager, the virtual machine management center VM Manager, virtual switches and edge switches vSwitch Edge Switch; the VNet Manager, for VM creation or before migration, the VM generator for network configuration information, network configuration and the identification information transmitted to the VM Manager; the VM Manager, VM creation or for the migration process will where vSwitch issued after the migration of the VM creation or identification of network configuration information; the vSwitch, for configuring the network binding the VM access port on the vSwitch identification information, and the said network configuration identification information notified to the Edge Switch vSwitch connection; using the network configuration information corresponding to the identifier acquired network configuration information and to configure the terminal identification Π bound from the VM Manager; the Edge Switch, the network receives configuration information identifying the network identity for configuring the port binding information; using the network configuration channel 息的标识从所述VM Manager获取对应的网络配置信息并配置到所述标识所绑定的端口。 Identification information corresponding to the acquired network configuration information and to configure the port identifier from the bound VM Manager.
  7. 7.根据权利要求6所述的系统,其特征在于,所述VNet Manager上预先静态地配置有针对不同的VM类型的虚拟网络配置模板;所述网络配置信息为:所述VNet Manager为创建或迁移的所述VM对应的虚拟网络配置模板中的参数赋值后生成的网络配置实例;所述网络配置信息的标识为:所述网络配置实例的实例号。 7. The system according to claim 6, wherein the statically pre VNet Manager arranged VM configuration templates for different types of virtual networks; the network configuration information to: create the VNet Manager or after generating the VM corresponding to the virtual network configuration template migrated parameter assignment network configuration example; the identification information for the network configuration: the network configuration example of a number of examples.
  8. 8.根据权利要求7所述的系统,其特征在于,所述VM Manager,还用于确定所述VM要发生创建或迁移时,根据VM的类型选择所述VNet Manager上的虚拟网络配置模板,并将所述VM创建或迁移后对应的配置参数值发送给所述VNet Manager ;所述VNet Manager利用接收到的配置参数值为所述VM Manager选择的虚拟网络配置模板中的参数赋值,创建网络配置实例。 8. The system according to claim 7, wherein the VM Manager, further configured to determine when the VM to occur to create or select a virtual network configuration template according to the type of the VM VNet Manager, and after the migration of VM creation or the corresponding configuration parameter value is sent to the VNet Manager; VNet Manager using the received configuration parameter value of the selected VM Manager virtual network configuration template parameter assignment, to create network configuration examples.
  9. 9.根据权利要求7所述的系统,其特征在于,所述VNet Manager确定所述要发生VM创建或迁移时,确定所述VM的类型对应的虚拟网络配置模板,并利用所述VM创建或迁移后对应的配置参数值为确定的虚拟网络配置模板中的参数赋值,创建网络配置实例。 9. The system according to claim 7, wherein said determining said VNet Manager to create or to occur VM, the VM corresponding to the type determined virtual network configuration template, and using the VM creation or virtual network configuration template migration corresponding configuration parameters to determine the value of the parameter assignment, create a network configuration examples.
  10. 10.根据权利要求6至9任一权项所述的系统,其特征在于,该系统还包括:认证服务器;所述vSwitch作为认证客户端进行认证时,将所述网络配置信息的标识携带在认证报文中发送给所述认证服务器;获取所述认证服务器发送来的所述VNet Manager的地址信息,并将VNet Manager的地址信息发送给所述Edge Switch ;利用获取的VNet Manager的地址信息从所述VNet Manager获取所述标识对应的网络配置信息,并将获取的网络配置信息配置到所述标识所绑定的端口;认证服务器,用于将所述VNet Manager的地址信息携带在认证响应报文中发送给所述vSwitch ;所述Edge Switch,根据所述vSwitch发送来的VNet Manager的地址信息从所述VNet Manager获取所述标识对应的网络配置信息,并将获取的网络配置信息配置到所述标识所绑定的端口。 Item 10. The system according to any one of a weight according to claim 6-9, characterized in that the system further comprises: an authentication server; vSwitch said authentication as the authentication client, the network identification information carried in the configuration sending the authentication message to the authentication server; obtaining address information of the authentication server sends to the Manager VNet, and sent to the Edge Switch VNet Manager's address information; address information using the acquired Manager from VNet VNet Manager acquires the network configuration information corresponding to the identifier, and the acquired network configuration information to the port identification bound; authentication server, address information of the VNet Manager for carrying authentication response packet messages to be sent to the vSwitch; network configuration information of the Edge Switch, the network configuration information acquired from the identifier corresponding to the address information of the VNet Manager vSwitch transmitted VNet Manager, and to obtain the said port identification is bound.
  11. 11.根据权利要求6至9任一权项所述的系统,其特征在于,所述VNet Manager,还用于在生成所述网络配置信息后,将所述网络配置信息下发到所有vSwitch和Edge Switch 上;当vSwitch作为认证客户端进行认证时,触发自身和Edge Switch将接收到的标识对应的网络配置信息配置到所述标识所绑定的端口。 11. The system according to any one of the preceding Claims 6 to 9, characterized in that said VNet Manager, generating further configured to, after the network configuration information, the network configuration information about all vSwitch and on Edge Switch; vSwitch when authentication as the authentication client, the trigger Edge Switch itself and corresponding to the identifier of the received network configuration information to the port identification is bound.
  12. 12.根据权利要求6至9任一权项所述的系统,其特征在于,所述vSwitch接收到所述VM Manager发送来的网络配置信息的标识后,利用预先配置在所述vSwitch上的VNet Manager的地址信息从VNet Manager中获取所述标识对应的网络配置信息并配置到所述标识所绑定的端口;所述Edge Switch接收到所述vSwitch通告来的网络配置信息的标识后,利用预先配置在所述Edge Switch上的VNet Manager的地址信息从VNet Manager中获取所述标识对应的网络配置信息并配置到所述标识所绑定的端口。 VNet 12. The system according to item a weight according to any one of claims 6-9, characterized in that, after receiving the vSwitch VM Manager sent the network configuration identification information, by using the pre-configured on the vSwitch Manager acquires the address information corresponding to the identifier of the network configuration information from VNet Manager and configured to identify said port bound; after receiving the Edge Switch vSwitch advertisement to the network configuration identification information, using a predetermined the address information disposed on the Edge Switch VNet Manager acquires the network configuration information corresponding to the identifier and the port identifier to configure the bound from the VNet Manager.
CN 201010290503 2010-09-21 2010-09-21 Method for carrying out network configuration for VM and system thereof CN102412978B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010290503 CN102412978B (en) 2010-09-21 2010-09-21 Method for carrying out network configuration for VM and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010290503 CN102412978B (en) 2010-09-21 2010-09-21 Method for carrying out network configuration for VM and system thereof

Publications (2)

Publication Number Publication Date
CN102412978A true true CN102412978A (en) 2012-04-11
CN102412978B CN102412978B (en) 2014-04-16

Family

ID=45914842

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010290503 CN102412978B (en) 2010-09-21 2010-09-21 Method for carrying out network configuration for VM and system thereof

Country Status (1)

Country Link
CN (1) CN102412978B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102664758A (en) * 2012-04-28 2012-09-12 沈阳通用软件有限公司 Method for binding and automatically recovering network configuration
CN102724080A (en) * 2012-06-29 2012-10-10 杭州华三通信技术有限公司 Network management system and network management method
CN102752215A (en) * 2012-07-16 2012-10-24 杭州华三通信技术有限公司 Processing method for VDP (vertical data processing) request messages and edge switch
CN102801636A (en) * 2012-09-05 2012-11-28 成都国腾实业集团有限公司 Method for limiting bandwidth of cloud hosting network of cloud computing platform
CN102821023A (en) * 2012-08-07 2012-12-12 杭州华三通信技术有限公司 Method and device for dynamically migrating VLAN (virtual local area network) configuration
CN103516628A (en) * 2012-06-25 2014-01-15 华为技术有限公司 Method, device and system of updating network strategy
WO2014071637A1 (en) * 2012-11-12 2014-05-15 华为技术有限公司 Method and device for performing network configuration on virtual machine
CN104683478A (en) * 2015-03-17 2015-06-03 成都艺辰德迅科技有限公司 Online migration method for cloud computing
CN104954461A (en) * 2015-06-10 2015-09-30 浪潮电子信息产业股份有限公司 Dependable computing pool application method, dependable computing pool application system, host machine and cloud management platform
WO2015180068A1 (en) * 2014-05-28 2015-12-03 华为技术有限公司 Method, apparatus and system for virtualizing network management system
WO2015196774A1 (en) * 2014-06-24 2015-12-30 华为技术有限公司 Virtual machine migration method and device
CN105262685A (en) * 2014-07-14 2016-01-20 杭州华三通信技术有限公司 Message processing method and message processing device
CN105450430A (en) * 2014-07-17 2016-03-30 华为技术有限公司 Information transmission method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1357997A (en) * 2000-12-15 2002-07-10 华为技术有限公司 Virtual local area network access method in Ethernet access network
US20030131182A1 (en) * 2002-01-09 2003-07-10 Andiamo Systems Methods and apparatus for implementing virtualization of storage within a storage area network through a virtual enclosure
US20080089247A1 (en) * 2006-10-16 2008-04-17 Cisco Technology, Inc., A California Corporation Multi-chassis emulated switch
CN101702664A (en) * 2009-11-13 2010-05-05 华为技术有限公司 Data transmission method, device and system of virtual local area network
CN102316001A (en) * 2011-10-13 2012-01-11 杭州华三通信技术有限公司 Virtual network connection configuration realizing method and network equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1357997A (en) * 2000-12-15 2002-07-10 华为技术有限公司 Virtual local area network access method in Ethernet access network
US20030131182A1 (en) * 2002-01-09 2003-07-10 Andiamo Systems Methods and apparatus for implementing virtualization of storage within a storage area network through a virtual enclosure
US20080089247A1 (en) * 2006-10-16 2008-04-17 Cisco Technology, Inc., A California Corporation Multi-chassis emulated switch
CN101702664A (en) * 2009-11-13 2010-05-05 华为技术有限公司 Data transmission method, device and system of virtual local area network
CN102316001A (en) * 2011-10-13 2012-01-11 杭州华三通信技术有限公司 Virtual network connection configuration realizing method and network equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《每周电脑报》 20080519 冬炎 戴尔虚拟化方案走向端到端 两款戴尔服务器担任虚拟平台顶梁柱 , 第16期 *
冬炎: "戴尔虚拟化方案走向端到端 两款戴尔服务器担任虚拟平台顶梁柱", 《每周电脑报》, no. 16, 19 May 2008 (2008-05-19) *

Cited By (27)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102664758B (en) * 2012-04-28 2015-03-25 沈阳通用软件有限公司 Method for binding and automatically recovering network configuration
CN102664758A (en) * 2012-04-28 2012-09-12 沈阳通用软件有限公司 Method for binding and automatically recovering network configuration
CN103516628A (en) * 2012-06-25 2014-01-15 华为技术有限公司 Method, device and system of updating network strategy
CN103516628B (en) * 2012-06-25 2016-12-21 华为技术有限公司 A method for implementing network policy updates, device and system
CN102724080A (en) * 2012-06-29 2012-10-10 杭州华三通信技术有限公司 Network management system and network management method
CN102724080B (en) * 2012-06-29 2015-01-14 杭州华三通信技术有限公司 Network management system and network management method
CN102752215B (en) * 2012-07-16 2015-03-11 杭州华三通信技术有限公司 Processing method for VDP (vertical data processing) request messages and edge switch
WO2014012435A1 (en) * 2012-07-16 2014-01-23 Hangzhou H3C Technologies Co., Ltd. Vdp request packet processing
CN102752215A (en) * 2012-07-16 2012-10-24 杭州华三通信技术有限公司 Processing method for VDP (vertical data processing) request messages and edge switch
GB2512790A (en) * 2012-07-16 2014-10-08 Hangzhou H3C Tech Co Ltd VDP request packet processing
GB2512790B (en) * 2012-07-16 2015-09-02 Hangzhou H3C Tech Co Ltd VDP request packet processing
CN102821023A (en) * 2012-08-07 2012-12-12 杭州华三通信技术有限公司 Method and device for dynamically migrating VLAN (virtual local area network) configuration
CN102821023B (en) * 2012-08-07 2016-12-21 杭州华三通信技术有限公司 Vlan arranged one kind of method and apparatus for dynamic migration
CN102801636A (en) * 2012-09-05 2012-11-28 成都国腾实业集团有限公司 Method for limiting bandwidth of cloud hosting network of cloud computing platform
CN102801636B (en) * 2012-09-05 2015-07-29 成都国腾实业集团有限公司 The method limits the network bandwidth internet cloud host cloud
WO2014071637A1 (en) * 2012-11-12 2014-05-15 华为技术有限公司 Method and device for performing network configuration on virtual machine
CN104040950B (en) * 2012-11-12 2017-09-29 华为技术有限公司 A kind of a virtual machine network configuration method and apparatus
CN105359459A (en) * 2014-05-28 2016-02-24 华为技术有限公司 Method, apparatus and system for virtualizing network management system
WO2015180068A1 (en) * 2014-05-28 2015-12-03 华为技术有限公司 Method, apparatus and system for virtualizing network management system
RU2646336C1 (en) * 2014-05-28 2018-03-02 Хуавэй Текнолоджиз Ко., Лтд. Method, device and system for implementation of virtualized network management
WO2015196774A1 (en) * 2014-06-24 2015-12-30 华为技术有限公司 Virtual machine migration method and device
CN105262604A (en) * 2014-06-24 2016-01-20 华为技术有限公司 Virtual machine migration method and equipment
CN105262685A (en) * 2014-07-14 2016-01-20 杭州华三通信技术有限公司 Message processing method and message processing device
WO2016008394A1 (en) * 2014-07-14 2016-01-21 Hangzhou H3C Technologies Co., Ltd. Packets processing
CN105450430A (en) * 2014-07-17 2016-03-30 华为技术有限公司 Information transmission method and device
CN104683478A (en) * 2015-03-17 2015-06-03 成都艺辰德迅科技有限公司 Online migration method for cloud computing
CN104954461A (en) * 2015-06-10 2015-09-30 浪潮电子信息产业股份有限公司 Dependable computing pool application method, dependable computing pool application system, host machine and cloud management platform

Also Published As

Publication number Publication date Type
CN102412978B (en) 2014-04-16 grant

Similar Documents

Publication Publication Date Title
Wood et al. CloudNet: dynamic pooling of cloud resources by live WAN migration of virtual machines
US8224931B1 (en) Managing use of intermediate destination computing nodes for provided computer networks
US8683023B1 (en) Managing communications involving external nodes of provided computer networks
US20140115578A1 (en) Providing a virtual security appliance architecture to a virtual cloud infrastructure
US20120250682A1 (en) Frameworks and interfaces for offload device-based packet processing
US20120250686A1 (en) Offload device-based stateless packet processing
US20090063706A1 (en) Combined Layer 2 Virtual MAC Address with Layer 3 IP Address Routing
US8194680B1 (en) Managing communications for modified computer networks
US20130058346A1 (en) Distributed Routing Domains in Multi-Tenant Datacenter Virtual Networks
US20100169467A1 (en) Method and apparatus for determining a network topology during network provisioning
US8396946B1 (en) Managing integration of external nodes into provided computer networks
US8155146B1 (en) Stateless packet segmentation and processing
US20090150529A1 (en) Method and system for enforcing resource constraints for virtual machines across migration
US8565118B2 (en) Methods and apparatus for distributed dynamic network provisioning
US20100165877A1 (en) Methods and apparatus for distributed dynamic network provisioning
US20090327392A1 (en) Method and system for creating a virtual router in a blade chassis to maintain connectivity
US20110134793A1 (en) Preventing loops on network topologies built with virtual switches and vms
US20120291028A1 (en) Securing a virtualized computing environment using a physical network switch
US20130086298A1 (en) Live Logical Partition Migration with Stateful Offload Connections Using Context Extraction and Insertion
US20140201735A1 (en) Master automation service
US20100246443A1 (en) Providing logical networking functionality for managed computer networks
US8619771B2 (en) Private allocated networks over shared communications infrastructure
US20140059544A1 (en) Framework for networking and security services in virtual networks
US8892706B1 (en) Private ethernet overlay networks over a shared ethernet in a virtual environment
US8300641B1 (en) Leveraging physical network interface functionality for packet processing

Legal Events

Date Code Title Description
C06 Publication
C10 Entry into substantive examination
C14 Grant of patent or utility model
CP03