WO2015149253A1 - 数据中心的虚拟网络管理方法及数据中心系统 - Google Patents

数据中心的虚拟网络管理方法及数据中心系统 Download PDF

Info

Publication number
WO2015149253A1
WO2015149253A1 PCT/CN2014/074475 CN2014074475W WO2015149253A1 WO 2015149253 A1 WO2015149253 A1 WO 2015149253A1 CN 2014074475 W CN2014074475 W CN 2014074475W WO 2015149253 A1 WO2015149253 A1 WO 2015149253A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual
physical
physical server
tenant
switch
Prior art date
Application number
PCT/CN2014/074475
Other languages
English (en)
French (fr)
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
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201480000195.8A priority Critical patent/CN105284080B/zh
Priority to PCT/CN2014/074475 priority patent/WO2015149253A1/zh
Publication of WO2015149253A1 publication Critical patent/WO2015149253A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/64Hybrid switching systems
    • H04L12/6418Hybrid transport

Definitions

  • the present invention relates to the field of data center networks and, more particularly, to a virtual network management method and a data center system for a data center. Background technique
  • the data center's service model also moves from a simple model of infrastructure and infrastructure as a service (IAAS) that provides infrastructure, such as energy, physical servers, and network connectivity.
  • IAAS infrastructure-based infrastructure
  • Service model shift At the core of cloud computing is the virtualization of computing power. Through virtualization, the computing power scattered across physical servers is integrated to provide services to all users in a unified resource pool. The virtualization of computing power drives the virtualization of other resources in the data center.
  • the objects to be connected in the data center network evolve from relatively fixed servers and storage to ever-changing virtual machines and storage devices. This is the traditional network technology band. Many new challenges have come.
  • VXLAN uses a network identifier called VXLAN.
  • the (VNI) 24-bit identifier which groups the VLANs associated with the application into a single fragment to separate the application data, enabling the long-distance split support required for multi-tenant cloud networks.
  • the embodiment of the invention provides a virtual network management method and a data center system of a data center, which can configure a data packet transmission strategy of the virtual machine on a switch accessed by the virtual machine based on the virtual network identifier and the local virtual local area network identifier, thereby The switch can identify the virtual machines of different tenants and complete the encapsulation and decapsulation of the VXLAN of the packets corresponding to different tenant virtual machines. .
  • the first aspect provides a virtual network management method for a data center, where the method includes: determining, according to the service information of the tenant and the resource occupation information of the data center, the first physical server, the first switch, and the first virtual network.
  • the first physical server is a physical server used to create the first virtual machine VM of the tenant in the plurality of physical servers in the data center, where the first VM is used to deploy the service of the tenant, and the first switch is a physical switch that is accessed by the first physical server, where the first virtual network is a virtual network to which the tenant's VM belongs, and one tenant corresponds to one virtual network; determining the first according to the local virtual local area network identifier occupation information of the first switch a local virtual local area network identifier of the VM; creating the first VM on the first physical server according to the local virtual local area network identifier of the first VM; according to the local virtual local area network identifier of the first VM and the virtual network of the virtual network to which the tenant belongs Identifying, configuring
  • determining, by the service information of the tenant and the resource occupation information of the data center, the first physical server is specifically implemented by: the resource management node of the data center according to the service information of the tenant, And the resource occupation information of the plurality of physical servers in the data center determines the first physical server.
  • determining, according to the service information of the tenant and the resource occupation information of the data center, the first virtual network is specifically implemented as: the resource management node of the data center selects the virtual of the data center.
  • the virtual network corresponding to the tenant in the network is the first virtual network; or the resource management node of the data center allocates a new virtual network to the tenant as the first virtual network.
  • determining, by using the local virtual local area network identifier occupation information of the first switch, the local virtual local area network identifier of the first VM is specifically implemented by: the resource management node of the data center according to the The local virtual local area network identifier occupation information of the first switch allocates an unoccupied local virtual local area network identifier to the first VM; or, the first switch allocates a request according to a local virtual local area network identifier of the resource management node of the data center, and the first The local virtual local area network of the switch identifies the occupation information, and the first VM is allocated an unoccupied local virtual local area network identifier.
  • the creating the first VM on the first physical server according to the local virtual local area network identifier of the first VM is specifically implemented by: the resource management node of the data center
  • the host on the first physical server sends the local virtual local area network identifier of the first VM;
  • the host on the first physical server creates the first VM on the first physical server according to the local virtual local area network identifier of the first VM And configuring the virtual network interface of the first VM.
  • the host on the first physical server configures the first physical server according to the local virtual local area network identifier of the first VM
  • the virtual network interface of the first VM is implemented by: the host on the first physical server, according to the physical resource information of the first physical server and the service information of the tenant, the virtual network interface of the first VM and the first The virtual function VF port on the physical network card of the physical server is bound; or the host on the first physical server virtualizes the first VM according to the physical resource information of the first physical server and the service information of the tenant
  • the network interface is configured to the virtual switch vswitch of the host on the first physical server.
  • the data packet transmission policy configured on the first switch on the first switch is implemented as follows: the resource management node of the data center sends the data management node to the first switch The local virtual local area network identifier of the first VM and the virtual network identifier of the virtual network to which the tenant belongs; the first switch establishes the first virtual switch according to the local virtual local area network identifier of the first VM and the virtual network identifier of the virtual network to which the tenant belongs A local virtual local area network identifier of the VM, a virtual network identifier of the virtual network to which the tenant belongs, and a mapping relationship table of the first VM, and configuring a data packet transmission policy of the first VM based on the mapping relationship table.
  • a data center system in a second aspect, includes: a resource management node, a plurality of physical servers, and multiple physical switches, wherein the physical switch can access at least one physical server, where
  • the resource management node is configured to determine, according to the service information of the tenant and the resource occupation information of the data center, the first physical server, the first switch, and the first virtual network, where the first physical server is used in the multiple physical servers Creating a physical server of the first virtual machine VM of the tenant, where the first VM is used to deploy the service of the tenant, and the first switch is a physical switch that is accessed by the first physical server of the multiple physical switches,
  • the first virtual network is a virtual network to which the tenant's VM belongs, and one tenant corresponds to one virtual network; the resource management node is further configured to allocate the first VM according to the local virtual local area network identifier occupation information of the first switch.
  • the local virtual local area network identifier of the first VM Occupying the local virtual local area network identifier, and sending the local virtual local area network identifier of the first VM to the host on the first physical server, so that the host on the first physical server creates the first VM, and at the first After the VM is created, the local virtual local area network identifier of the first VM and the virtual network identifier of the virtual network to which the tenant belongs are sent to the first switch; the host is deployed on the first physical server, and is configured to send according to the resource management node.
  • the local virtual local area network identifier of the first VM creates the first VM and configures a virtual network interface of the first VM; the first switch is configured to feed back the local virtual local area network identifier of the first switch to the resource management node in real time.
  • Information and according to the local virtual local area network identifier of the first VM sent by the resource management node and the tenant Virtual network identifier of the virtual network, the configuration of the first packet transmission
  • the host device in a process for configuring a virtual network interface of the first VM on the first physical server according to the local virtual local area network identifier of the first VM, on the first physical server
  • the host device is specifically configured to: bind the virtual network interface of the first VM and the virtual function VF port on the physical network card of the first physical server according to the physical resource information of the first physical server and the service information of the tenant.
  • the virtual network interface of the first VM is configured to the virtual switch vswitch of the host on the first physical server according to the physical resource information of the first physical server and the service information of the tenant.
  • a data center system includes: a resource management node, a plurality of physical servers, and multiple physical switches, wherein the physical switch can access at least one physical server, where
  • the resource management node is configured to determine, according to the service information of the tenant and the resource occupation information of the data center, the first physical server, the first switch, and the first virtual network, where the first physical server is used in the multiple physical servers Creating a physical server of the first virtual machine VM of the tenant, where the first VM is used to deploy the service of the tenant, and the first switch is a physical switch that is accessed by the first physical server of the multiple physical switches, where the A virtual network is a virtual network to which the tenant's VM belongs, and a tenant corresponds to a virtual network; the resource management node is further configured to request the first switch to allocate a local virtual local area network identifier of the first VM, and obtain the first a VM's local virtual local area network identifies the host to the first physical server Sending
  • the host device in a process for configuring a virtual network interface of the first VM on the first physical server according to the local virtual local area network identifier of the first VM, on the first physical server
  • the host device is specifically configured to: bind the virtual network interface of the first VM and the virtual function VF port on the physical network card of the first physical server according to the physical resource information of the first physical server and the service information of the tenant.
  • the virtual network interface of the first VM is configured to the virtual switch vswitch of the host on the first physical server according to the physical resource information of the first physical server and the service information of the tenant.
  • a virtual network management method and a data center system for a data center by determining a virtual network where a virtual machine of a tenant is located and a local virtual local area network identifier of the virtual machine on the physical switch, and based on the virtual network identifier and the local virtual local area network
  • the packet transmission policy of the virtual machine is configured on the switch connected to the virtual machine, so that the switch can identify the virtual machines of different tenants and complete the encapsulation and decapsulation of the VXLAN of the data packets of different tenant virtual machines.
  • FIG. 1 is a schematic diagram of a network structure of a VXLAN according to an embodiment of the present invention.
  • FIG. 2 is a schematic diagram of another network structure of a VXLAN according to an embodiment of the present invention.
  • FIG. 3 is a flow chart of a virtual network management method of a data center according to an embodiment of the present invention.
  • FIG. 4 is an interaction flowchart of a data center providing a service service to a tenant according to an embodiment of the present invention.
  • FIG. 5 is another interaction flowchart of a data center providing a service service to a tenant according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a data center signaling system according to an embodiment of the present invention.
  • FIG. ⁇ is another schematic structural diagram of a data center signaling system according to an embodiment of the present invention. detailed description
  • VM Virtual Machine
  • Virtual machine software can simulate one or more virtual computers on a single physical computer. These virtual machines work like real computers. The virtual machine can install operating systems and applications. The virtual machine can also be used. Access network resources. For an application running in a virtual machine, the virtual machine is like working on a real computer.
  • the hardware layer may include various hardware.
  • the hardware layer of a computing node may include a CPU and a memory, and may also include a high-speed/low-speed input/output (I/O) device such as a network card and a memory.
  • I/O input/output
  • the Host may be a Virtual Machine Monitor (VMM); or, sometimes, the VMM and a privileged virtual machine work together to form a Host.
  • the virtual hardware platform provides various hardware resources for each virtual machine running on it, such as providing virtual CPU, memory, virtual disk, virtual network card, and the like.
  • the virtual disk can correspond to a file of the Host or a logical block device.
  • the virtual machine runs on the virtual hardware platform that Host prepares for it, and one or more virtual machines are running on the Host.
  • Overlay network A layer of virtual network topology above the physical network. Each virtual network instance is implemented by overlaying, and the original frames are encapsulated on the Network Virtualization Edge (NVE).
  • NVE Network Virtualization Edge
  • the encapsulation identifier identifies the encapsulated device before sending the frame to the terminal. The device will decapsulate the frame to obtain the original message.
  • the edge node of the virtual network can be a traditional switch, a router, or a virtual switch in the Host.
  • the virtual network identifier (VNID) can be encapsulated into the overlay header to identify the virtual network to which the data frame belongs.
  • VXLAN Virtual Extensible Local Area Network
  • VXLAN is a virtual Ethernet built on a physical IP overlay network. It uses UDP to encapsulate the complete inner layer Ethernet packet overlay network technology, and uses IP multicast to encapsulate broadcast and multicast packets across the physical layer.
  • the network uses Equal-Cost Multi-Path Routing (ECMP) to use different UDP source ports, 24-bit VXLAN network identifiers for different data streams, and supports up to 16,000,000 logical networks.
  • ECMP Equal-Cost Multi-Path Routing
  • VXLAN introduces a new forwarding entity virtual extension local network tunnel termination point (VEPLAN Tunnel End Point, VTEP) and a new address encapsulation virtual extension local network identifier (VNI), all virtual machine traffic before entering VTEP Being tagged with a new VNI and encapsulated in a UDP packet for transmission across Layer 3 gateways is equivalent to building an Overlay tunnel on an existing network.
  • VTPLAN Tunnel End Point VTPLAN Tunnel End Point
  • VNI virtual extension local network identifier
  • FIG. 1 is a schematic diagram of a network structure of a VXLAN according to an embodiment of the present invention.
  • a complete VXLAN network can include L3 networks, VTEPs, and tenants (TES).
  • TES tenants
  • TES1-TES4 represents the tenant terminal system.
  • VTEP1 and VTEP2 represent the switching nodes of TES and L3 networks. They are responsible for the encapsulation and decapsulation of VXLAN data packets. They can be run in separate devices and implemented in software or hardware.
  • VXLAN uses a TES1 to initiate a unicast process to TES4 as an example for a brief description.
  • VXLAN encapsulation is performed on VTEP1, which encapsulates a VXLAN header, an outer UDP header, an outer IP header and an outer Ethernet header.
  • the outer IP header encapsulates the source/destination PA address of the VXLAN Tunnel obtained through the destination address in the user packet.
  • the encapsulated message is transmitted to the destination VTEP VTEP2 on the physical network according to the information in the outer header.
  • VTEP2 can determine the VXLAN packet according to the destination port number of the UDP, and then decapsulate and restore the original packet, and forward the packet to the real message receiver TES4.
  • FIG. 2 is a schematic diagram of another network structure of a VXLAN according to an embodiment of the present invention.
  • the VTEP node is implemented by a separate hardware device, which is embodied as a physical switch.
  • TORI and TOR2 have VXLAN VTEP node functions.
  • the TES is implemented by a virtual machine and deployed through a host on a physical server.
  • the virtual machine VM1 is deployed through the host 1.
  • the physical switch and the virtual machine can exchange data through the virtual switch on the host.
  • the VM1 can exchange data with the physical switch TORI through the virtual switch 1 on the host 1.
  • the virtual machine on the host can also exchange data with the physical switch through other virtual network interfaces, which is not limited herein.
  • FIG. 3 is a flow chart of a virtual network management method of a data center according to an embodiment of the present invention. This method is performed by the data center system. The method can include:
  • the first physical server is a physical server used to create a first virtual machine VM of the tenant in the plurality of physical servers in the data center, where the first VM is used to provide services for the tenant's service, the first switch For the physical switch that the first physical server accesses, the first virtual network is a virtual network to which the tenant's VM belongs, and one tenant corresponds to one virtual network.
  • the data center can determine the first physical server capable of hosting the tenant service among the plurality of servers in the data center according to the resource information required by the tenant's business and the resource occupancy information of the data center. After determining the first physical server, the first switch accessed by the first physical server can be determined at the same time.
  • the data center can determine the first virtual network to which the tenant belongs according to the service information of the tenant, in other words, the first virtual network to which the first VM to be created belongs.
  • the virtual network may be determined by a virtual network identifier, or the virtual network may be determined by other identifying information.
  • a virtual network identifier can be used to uniquely identify a virtual network.
  • the first switch may be connected to one or more physical servers, and one or more virtual machines may be deployed on each physical server, or the virtual machines may not be deployed.
  • VLAN The original purpose of VLAN is to isolate the local area network, logically divide the LAN device into network segments, so as to realize different logical networks in the same local area network composed of multiple switches. In order to achieve the effect of isolating different server groups, you need to configure different server groups.
  • the same VLAN tag, the VLAN tag is globally unique in a local area network composed of multiple switches.
  • the local VLAN used in the present invention is only used for identifying VM traffic between the server NIC and the switch port under the same switch, and the VLAN tags between different switches are independent of each other and can be reused.
  • the virtual local area network identifier is used for isolation of the local area network.
  • different logical networks are implemented in the same local area network composed of multiple switches.
  • different server groups need to be configured with different virtual local area network identifiers, which are globally unique in a local area network composed of multiple switches.
  • the local virtual local area network identifier can uniquely identify all virtual machines on all physical servers accessing the switch.
  • the local virtual local area network identifier is used to distinguish different virtual machines under the same switch.
  • the local virtual local area network identifiers between different switches can be reused. That is to say, different local virtual local area network identifiers can exist under different switches, and the virtual machines represented by them are different. .
  • a different local virtual local area network identifier is assigned to each VM, and a data packet transmission policy of the virtual machine is configured on the switch accessed by the virtual machine based on the virtual network identifier and the local virtual local area network identifier, thereby
  • the switch can identify the virtual machines of different tenants and complete the encapsulation and decapsulation of the VXLAN of the packets corresponding to different tenant virtual machines.
  • the method of the embodiment of the present invention is implemented based on the existing VXLAN specification, and does not require major changes to existing network devices.
  • the data transmission policy of the virtual machine is configured on the physical switch, so that the hardware performance of the data center can be improved by performing hardware acceleration on the physical switch.
  • the physical server may access multiple physical switches.
  • the virtual machine When a virtual machine is created on the physical server, the virtual machine has a local virtual local area network identifier in each physical switch that is accessed by the physical server, and a corresponding data packet transmission policy is configured on each physical switch.
  • the method of the embodiment of the present invention is described by taking a physical server to access a physical switch as an example, but in actual applications, it can be extended to a physical service.
  • the application is connected to multiple switches.
  • step 301 determining, according to the service information of the tenant and the resource occupation information of the data center, that the first physical server is specifically implemented as: the resource management node of the data center is based on the service information of the tenant, and the data center has more The resource occupancy information of the physical servers determines the first physical server.
  • determining, according to the service information of the tenant and the resource occupation information of the data center, the first virtual network may be implemented as: the resource management node of the data center selects the tenant in the virtual network of the data center.
  • the corresponding virtual network is the first virtual network; or the resource management node of the data center allocates a new virtual network to the tenant as the first virtual network.
  • the step 302 is specifically implemented as: the resource management node of the data center allocates an unoccupied local virtual local area network identifier to the first VM according to the local virtual local area network identifier occupation information of the first switch.
  • the step 302 is specifically implemented as follows: the first switch according to the local virtual local area network identifier allocation request of the resource management node of the data center, and the local virtual local area network identifier occupation information of the first switch, An unoccupied local virtual office i or network identity is assigned to the first VM.
  • the step 303 is specifically implemented by: the resource management node of the data center sending the local virtual local area network identifier of the first VM to the host on the first physical server; the host device on the first physical server The first VM is created on the first physical server according to the local virtual local area network identifier of the first VM, and the virtual network interface of the first VM is configured.
  • the virtual network interface configured by the host on the first physical server to configure the first VM on the first physical server according to the local virtual local area network identifier of the first VM may be implemented as: The host binds the virtual network interface of the first VM and the virtual function VF port on the physical network card of the first physical server according to the physical resource information of the first physical server and the service information of the tenant.
  • the virtual machine interface configured on the first physical server by the host on the first physical server according to the local virtual local area network identifier of the first VM may also be implemented as: a sink on the first physical server
  • the host configures the virtual network interface of the first VM to the virtual switch vswitch of the host on the first physical server according to the physical resource information of the first physical server and the service information of the tenant.
  • the step 304 is specifically implemented by: the resource management node of the data center sending, to the first switch, a local virtual local area network identifier of the first VM and a virtual network identifier of the virtual network to which the tenant belongs; the first switch is configured according to Establishing a local virtual local area network identifier of the first VM and a virtual network identifier of the virtual network to which the tenant belongs, establishing a local virtual local area network identifier of the first VM, a virtual network identifier of the virtual network to which the tenant belongs, and a mapping relationship of the first VM a table, and configuring a data packet transmission policy of the first VM based on the mapping relationship table.
  • FIG. 4 is an interaction flowchart of a data center providing a service service to a tenant according to an embodiment of the present invention.
  • the data center may include a resource management node, a first physical server, and a host deployed on the first physical server, and a first switch accessed by the first physical server.
  • the data center may include multiple physical servers and multiple physical switches.
  • the multiple physical servers can form a unified resource pool to provide resources for the data center.
  • Each physical server accesses the physical switch, and each physical switch can access multiple physical servers.
  • a host is deployed on each physical server.
  • the resource management node determines, according to the service information of the tenant and the resource occupation information of the data center, a first physical server of the first virtual machine used to establish the tenant and a first virtual network of the tenant.
  • the resource management node of the data center When the data center needs to provide services for the tenant, you can use the resource management node of the data center to create a virtual machine for the tenant to provide services. You can name the virtual machine to be created by the tenant as the first VM. The tenant can deploy business services on the first VM according to the requirements of the business.
  • the resource management node of the data center is used to manage the resources of the data center.
  • the resource management node may be a centralized management node of the data center or one of the multiple resource management nodes of the data center, which is not limited herein.
  • the service information of the tenant may include the type of service of the tenant and the resource information required by the tenant's business.
  • the resource management node of the data center can determine the virtual network to which the tenant belongs, that is, determine the virtual network to which the first VM belongs, and may be named as the first virtual network.
  • the resource occupation information of the data center mainly refers to the physical server resource occupation information of the data center.
  • the physical server resources of the data center may be classified according to the actual use, or classified according to performance indicators. At this time, the resource occupation information may also be displayed according to the classification result of the physical server.
  • the resource management node can determine the service information of the tenant and the resource occupation information of the data center.
  • a first physical server for establishing a first VM may determine that the plurality of physical servers in the data center can carry the tenant service according to the resource information that the tenant needs to occupy, the type of the tenant's service, and the resource occupation information of the physical server in the data center.
  • the first physical server may also determine the first physical server by combining factors such as a data center balancing policy and performance indicators of various physical servers.
  • the first switch After determining the first physical server, the first switch can be determined.
  • the switch that the first physical server accesses is the first switch.
  • the resource management node requests the first switch accessed by the first physical server to allocate a local virtual local area network identifier of the first virtual machine.
  • the first switch accessed by the first physical server may request to allocate a local virtual local area network identifier.
  • a physical switch can connect to one or more physical servers, and one or more virtual machines can be created on each physical server.
  • the physical switch can store the local virtual local area network identifier of all virtual machines under the physical server to which it is connected.
  • Each local virtual local area network identifier corresponds to a virtual machine under the physical server connected to the physical switch, and can be used to uniquely identify the virtual switch under the physical switch. machine.
  • the first switch can allocate a local virtual local area network identifier to the first VM according to the occupation information of the local virtual local area network identifier.
  • the local virtual local area network identifier is 12 bits long, and one physical switch can manage up to 4096 different virtual machines.
  • the first switch determines a local virtual local area network identifier of the first virtual machine according to the local virtual local area network identifier occupation information of the first switch.
  • the first switch feeds back, to the resource management node, a local virtual local area network identifier of the first virtual machine.
  • the local virtual local area network identifier of the first virtual machine may be fed back to the resource management node.
  • the resource management node sends the local virtual local area network identifier of the first virtual machine and the service information of the tenant to the host on the first physical server.
  • the resource management node may send the local virtual machine local area network identifier of the first virtual machine and the tenant's service information to the host (Host) on the first physical server.
  • the host of the first physical server creates a first virtual machine according to the local virtual local area network identifier of the first virtual machine and the service information of the tenant, and configures a virtual network interface of the first virtual machine.
  • the Host on the first physical server can create the first virtual machine according to the local virtual local area network identifier of the first virtual machine.
  • the host on the first physical server can configure the virtual network interface of the first virtual machine according to the physical resource information of the first physical server and the service information of the tenant.
  • the host may bind the virtual network interface of the first virtual machine to a VF of the SR-I0V network card according to the physical resource information of the first physical server and the service type of the tenant.
  • the host can set the local virtual local area network identifier of the first virtual machine for the VF port, so that the first virtual machine can bring the local virtual local area network identifier of the first virtual machine when sending data through the VF.
  • the host may bind the virtual network interface of the first virtual machine to the virtual switch (vSwtich) of the host according to the physical resource information of the first physical server and the service type of the tenant.
  • vSwtich performs data forwarding.
  • the local virtual local area network identifier of the first virtual machine may be inserted in the data packet.
  • the resource management node sends the local virtual local area network identifier of the first virtual machine and the identifier of the tenant's virtual network to the first switch.
  • the resource management node may send the local virtual local area network identifier of the first virtual machine and the identifier of the tenant's virtual network to the first switch.
  • the first switch determines a data packet transmission policy of the virtual machine according to the local virtual local area network identifier of the first virtual machine and the identifier of the virtual network of the tenant.
  • the first switch receives the local virtual local area network identifier of the first virtual machine and the identifier of the tenant's virtual network, and determines the data packet transmission of the first virtual machine according to the local virtual local area network identifier of the first virtual machine and the identifier of the tenant's virtual network.
  • the first switch may establish a mapping relationship between the local virtual office i or the network identifier, the virtual network identifier, and the virtual machine according to the local virtual local area network identifier of the first virtual machine and the identifier of the tenant's virtual network.
  • the first switch When the first switch receives the data packet with the local virtual local area network identifier sent by the virtual machine through the downlink port, the first switch can identify the mapping between the local virtual local area network identifier, the virtual network identifier, and the virtual machine. Information about the virtual machine to which the packet belongs and virtual network information. The first switch may remove the local virtual local area network identifier in the data packet, and then perform corresponding VXLAN encapsulation processing according to the virtual network identifier of the virtual network to which the data packet belongs. First hand The switch performs forwarding learning on the original IP address and virtual network identification information received from the downlink port.
  • the virtual network identifier is obtained after the data packet is decapsulated by VXLAN.
  • the first switch may be forwarded to the virtual machine pointed to by the destination IP in the virtual network corresponding to the virtual network identifier according to the virtual network identifier and the destination IP information.
  • VM 1 and VM 3 belong to the same virtual network
  • the physical switch TORI configures the corresponding transmission policy according to the virtual network identifier of VM1 and the local virtual local area network identifier.
  • the physical switch TOR2 is based on the virtual network identifier of VM3 and The local virtual local area network identifier configures the corresponding transmission policy.
  • a process for VM1 to send a data packet to VM3 can be as follows: (1) VM1 sends an ARP broadcast frame requesting to query the MAC address corresponding to the IP address of VM3. In the ARP broadcast frame sent by VM1, carry the local virtual local area network identifier of VM1.
  • the TORI can identify the virtual machine VM1 corresponding to the VLAN 1 from the ARP broadcast frame according to the corresponding relationship between the local virtual local area network identifier and the VM, and query the corresponding relationship between the VM1 and the virtual network identifier to obtain the virtual network identifier corresponding to the VM1.
  • TORI queries the correspondence between the VNI1 and the multicast group to obtain the IP address of the multicast group.
  • TORI constructs IP multicast messages.
  • TOR2 receives the IP multicast packet, extracts the VNI1 and the original MAC frame, and broadcasts the MAC frame in the VXLAN. At the same time, TOR2 can record the mapping between the MAC address of VM1 and the IP address of TOR2.
  • VM3 uses IP unicast to send a standard ARP reply frame, which contains the MAC address of VM1 and the MAC address information of VM3, and the local virtual local area network identifier VLAN3 of VM3.
  • TOR2 After receiving the ARP response frame of VM3, TOR2 can identify that it is sent by VM3 according to VLAN3, and then obtain the virtual network identifier VNI1 corresponding to VM3 according to the corresponding relationship between VM3 and the virtual network identifier, and in the ARP response frame.
  • the VNI1 is encapsulated in the medium, and then the ARP response is sent to the TORI according to the mapping relationship between the MAC address of the VM1 and the IP address of the TOR2.
  • the TORI is decapsulated and sent to the VMl o. At the same time, the TORI records the mapping relationship between the MAC address of the VM3 and the IP address of the TORI.
  • the switch can perform data transmission according to the learned mapping relationship.
  • the virtual machine carries the local virtual local area network identifier when sending the data packet.
  • the physical switch determines the virtual machine that sends the data packet according to the virtual local area network identifier and encapsulates the virtual network identifier, and then transmits and receives on the VXLAN.
  • the data packet may be transmitted to the corresponding IP address (or MAC address) in the virtual network represented by the virtual network identifier according to the virtual network identifier.
  • IP address or MAC address
  • FIG. 5 is an interaction flowchart of a data center providing a service service to a tenant according to an embodiment of the present invention.
  • the data center may include a resource management node, a first physical server, and a host deployed on the first physical server, and the first switch accessed by the first physical server.
  • the data center may include multiple physical servers and multiple physical switches.
  • the multiple physical servers can form a unified resource pool to provide resources for the data center.
  • Each physical server accesses the physical switch, and each physical switch can access multiple physical servers.
  • a host is deployed on each physical server.
  • the resource management node determines, according to the service information of the tenant and the resource occupation information of the data center, the first physical server of the first virtual machine for establishing the tenant and the first virtual network of the tenant.
  • the resource management node of the data center may determine the first physical network of the first virtual machine for establishing the tenant and the first virtual network of the tenant according to the service information of the tenant and the resource occupation information of the data center.
  • the embodiment of the present invention will not be described herein.
  • the first switch can be determined.
  • the switch that the first physical server accesses is the first switch.
  • the first switch sends the local virtual local area network identifier occupation information of the first switch to the resource management node.
  • a physical switch can connect to one or more physical servers, and one or more virtual machines can be created on each physical server.
  • the physical switch can store the local virtual local area network identifier of all virtual machines under the physical server to which it is connected.
  • Each local virtual local area network identifier corresponds to a virtual machine under the physical server connected to the physical switch, and can be used to uniquely identify the virtual switch under the physical switch. machine.
  • the first switch may periodically send the local virtual local area network identifier occupation information of the first switch to the resource management node, or the local virtual local area network identifier occupation information of the first switch changes.
  • the local virtual local area network identifier occupation information of the first switch is sent to the resource management node.
  • the first switch may only send the unused local virtual local area network identifier, or only send the used local virtual local area network identifier, or send the changed local virtual local area network identifier, and the like.
  • step 502 is a step of timing or triggering execution that is not affected by other steps in time.
  • the resource management node determines a local virtual local area network identifier of the first virtual machine according to the local virtual local area network identifier occupation information of the first switch.
  • the resource management node may allocate a local virtual office i or network identifier to the first VM according to the occupation information of the local virtual local area network identifier.
  • the local virtual local area network identifier is 12 bits long, and one physical switch can manage up to 4096 different virtual machines.
  • the length of the local virtual local area network identifier may be longer, so that one physical switch can manage data transmission of more virtual machines, which is not limited herein.
  • step 503 the local virtual local area network identification occupancy information required in step 503 is from step 502. If step 502 has not been performed, it can be considered that the local virtual local area network identifier is unoccupied.
  • the resource management node sends the local virtual local area network identifier of the first virtual machine and the service information of the tenant to the host on the first physical server.
  • step 504 is similar to the step 405 of FIG. 4, and the embodiments of the present invention are not described herein.
  • the host on the physical server creates a first virtual machine according to the local virtual local area network identifier of the virtual machine and the service information of the tenant, and configures a virtual network interface of the first virtual machine.
  • step 505 is similar to the step 406 of FIG. 4, and the embodiments of the present invention are not described herein.
  • the resource management node sends the local virtual local area network identifier of the first virtual machine and the identifier of the tenant's virtual network to the first switch.
  • step 506 is similar to the step 407 of FIG. 4, and the embodiments of the present invention are not described herein.
  • the first switch determines a data packet transmission policy of the first virtual machine according to the local virtual local area network identifier of the first virtual machine and the identifier of the virtual network of the tenant.
  • FIG. 6 is a schematic structural diagram of a data center signaling system 600 according to an embodiment of the present invention.
  • the data center system can include a resource management node 601, a plurality of physical servers 602, and a plurality of physical switches 603.
  • One physical switch 603 can access at least one physical server 602.
  • the resource management node 601 is configured to determine, according to the service information of the tenant and the resource occupation information of the data center system, the first physical server, the first switch, and the first virtual network, where the first physical server is the multiple physical servers 602. a physical server 602 for creating a first virtual machine VM of the tenant, the first VM is configured to deploy the service of the tenant, and the first switch is a physical medium accessed by the first physical server of the plurality of physical switches 603
  • the switch 603 is a virtual network to which the tenant's VM belongs, and one tenant corresponds to one virtual network.
  • the resource management node 601 is further configured to allocate an unoccupied local virtual local area network identifier to the first VM according to the local virtual local area network identifier occupation information of the first switch, and send the first virtual host local area network identifier to the first physical server.
  • a local virtual local area network identifier of a VM such that the host on the first physical server creates the first VM, and after the first VM is created, sends the local virtual local area network identifier of the first VM to the first switch and the The virtual network ID of the virtual network to which the tenant belongs.
  • a host is deployed on the first physical server, and the first VM is created according to the local virtual local area network identifier of the first VM sent by the resource management node 601, and the virtual network interface of the first VM is configured.
  • the first switch is configured to feed back the local virtual local area network identifier occupation information of the first switch to the resource management node 601 in real time, and according to the local virtual local area network identifier of the first VM sent by the resource management node 601 and the virtual network of the virtual network to which the tenant belongs.
  • Network identifier configuring a packet transmission policy of the first VM.
  • the data center system 600 determines the virtual network where the virtual machine of the tenant is located and the local virtual local area network identifier of the virtual machine on the physical switch, and is accessed by the virtual machine based on the virtual network identifier and the local virtual local area network identifier.
  • the packet transmission policy of the virtual machine is configured on the switch, so that the switch can identify the virtual machines of different tenants and complete the encapsulation and decapsulation of the VXLAN of the data packets of different tenant virtual machines.
  • the method of the embodiment of the present invention is implemented based on the existing VXLAN specification, and does not require major changes to existing network devices.
  • the data transmission policy of the virtual machine is configured on the physical switch, so that the hardware performance of the data center can be improved by performing hardware acceleration on the physical switch.
  • the physical server may access multiple physical switches.
  • the virtual machine has a local virtual local area network identifier in each physical switch that is accessed by the physical server, and a corresponding data packet transmission policy is configured on each physical switch.
  • the method of the embodiment of the present invention is described by taking a physical server as a physical switch as an example. However, in an actual application, the method can be extended to an application scenario in which a physical server accesses multiple switches.
  • the host on the first physical server is specifically used to And binding the virtual network interface of the first VM to the virtual function VF port on the physical network card of the first physical server according to the physical resource information of the first physical server and the service information of the tenant.
  • the host on the first physical server is specifically used to And configuring the virtual network interface of the first VM to the virtual switch vswitch of the host on the first physical server according to the physical resource information of the first physical server and the service information of the tenant.
  • the data center system can also perform the method of FIG. 3 and implement the specific functions of the data center system in the embodiment shown in FIG. 3 and FIG. 4, and details are not described herein again.
  • FIG. ⁇ is a schematic structural diagram of a data center signaling system 700 according to an embodiment of the present invention.
  • the data center system can include a resource management node 701, a plurality of physical servers 702, and a plurality of physical switches 703.
  • One physical switch 703 can access at least one physical server 702.
  • the resource management node 701 is configured to determine, according to the service information of the tenant and the resource occupation information of the data center system, the first physical server, the first switch, and the first virtual network, where the first physical server is the multiple physical servers 702 a physical server 702 for creating a first virtual machine VM of the tenant, the first VM is configured to deploy the service of the tenant, and the first switch is a physical medium accessed by the first physical server of the plurality of physical switches 703
  • the switch 703, the first virtual network is a virtual network to which the tenant's VM belongs, and one tenant corresponds to one virtual network.
  • the resource management node 701 is further configured to request the first switch to allocate a local virtual local area network identifier of the first VM, and send the local virtual local area network identifier of the first VM to the host on the first physical server. a local virtual local area network identifier of the first VM, so that the host on the first physical server creates the first VM, and after the first VM is created, the first VM is created A switch sends the local virtual local area network identifier of the first VM and the virtual network identifier of the virtual network to which the tenant belongs.
  • a host is deployed on the first physical server, and the first VM is created according to the local virtual local area network identifier of the first VM sent by the resource management node 701, and the virtual network interface of the first VM is configured.
  • the first switch is configured to allocate the local virtual local area network identifier of the first VM to the resource management node 701 according to the local virtual local area network identifier allocation request of the resource management node 701 and the local virtual local area network identifier occupation information of the first switch, and according to resource management.
  • the local virtual office network identifier of the first VM sent by the node 701 and the virtual network identifier of the virtual network to which the tenant belongs are configured to configure a data packet transmission policy of the first VM.
  • the data center system 700 determines the virtual network where the virtual machine of the tenant is located and the local virtual local area network identifier of the virtual machine on the physical switch, and is accessed by the virtual machine based on the virtual network identifier and the local virtual local area network identifier.
  • the packet transmission policy of the virtual machine is configured on the switch, so that the switch can identify the virtual machines of different tenants and complete the encapsulation and decapsulation of the VXLAN of the data packets of different tenant virtual machines.
  • the method of the embodiment of the present invention is implemented based on the existing VXLAN specification, and does not require major changes to existing network devices.
  • the data transmission policy of the virtual machine is configured on the physical switch, so that the hardware performance of the data center can be improved by performing hardware acceleration on the physical switch.
  • the physical server may access multiple physical switches.
  • the virtual machine When a virtual machine is created on the physical server, the virtual machine has a local virtual local area network identifier in each physical switch that is accessed by the physical server, and a corresponding data packet transmission policy is configured on each physical switch.
  • the method of the embodiment of the present invention is described by taking a physical server as a physical switch as an example. However, in an actual application, the method can be extended to an application scenario in which a physical server accesses multiple switches.
  • the host on the first physical server is specifically used to And binding the virtual network interface of the first VM to the virtual function VF port on the physical network card of the first physical server according to the physical resource information of the first physical server and the service information of the tenant.
  • the local virtual local area network identifier is used in the first VM.
  • the host on the first physical server is specifically configured to: virtualize the first VM according to the physical resource information of the first physical server and the service information of the tenant
  • the network interface is configured to the virtual switch vswitch of the host on the first physical server.
  • the data center system can also perform the method of FIG. 3 and implement the specific functions of the data center system in the embodiment shown in FIG. 3 and FIG. 4, and details are not described herein again.
  • the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention.
  • the implementation process constitutes any limitation.
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例提供了数据中心的虚拟网络管理方法及数据中心系统,该方法包括:根据租户的业务信息以及数据中心的资源占用信息确定第一物理服务器、第一交换机及第一虚拟网络,其中,该第一物理服务器为该数据中心的多个物理服务器中用于创建该租户的第一虚拟机VM的物理服务器,该第一交换机为该第一物理服务器接入的物理交换机,该第一虚拟网络为该租户的VM所属的虚拟网络;根据该第一交换机的本地虚拟局域网标识占用信息确定该第一VM的本地虚拟局域网标识;根据该第一VM的本地虚拟局域网标识在该第一物理服务器上创建该第一VM;根据该第一VM的本地虚拟局域网标识和该租户所属的虚拟网络的虚拟网络标识,在该第一交换机上配置该第一VM的数据包传输策略。

Description

数据中心的虚拟网络管理方法及数据中心系统 技术领域
本发明涉及数据中心网络领域, 并且更具体地, 涉及数据中心的虚拟网 络管理方法及数据中心系统。 背景技术
随着虚拟化技术的日益成熟, 数据中心的服务模式也从传统的提供能 源、 物理服务器、 网络连接等基础设施租用与托管的简单模式向基础设施即 服务( Infrastructure as a Service, IaaS )的云服务模式转变。 云计算中的核心 是计算能力的虚拟化, 通过虚拟化, 分散在各个物理服务器中的计算能力被 整合到一起, 以一个统一的资源池的形式向所有用户提供服务。 计算能力的 虚拟化带动着数据中心其他资源的虚拟化,数据中心的网络所要连接的对象 从相对固定的服务器与存储器, 演变为不断变化中的虚拟机与存储设备, 这 为传统的网络技术带来了许多新的挑战。
用户在使用云数据中心服务时, 并不实际的拥有对应的物理服务器等资 源, 而从数据中心租借虚拟机及相关的存储与网络服务获得计算能力, 像使 用物理服务器一样在虛拟机上部署自己的业务, 所以数据中心的用户被称为 租户。 对于一个租户来说, 他们所租赁的虚拟数据中心类似于他们自己私有 的物理数据中心, 由终端设备和网络组成, 具有配套的服务, 如负载均衡和 防火墙等。 但实际上这些资源是来自于对同一组物理设备的虚拟化。 在充分 利用资源的同时, 也给安全方面带来了新的挑战。 每个租户并不希望其他租 户可以感知到自身的存在,租户内部也有将获得的虚拟机资源分组隔离的需 求。
现有的一种解决方案中, VXLAN使用一个名为 VXLAN 网络标识符
(VNI)的 24位标识符,将与应用程序关联的 VLAN分组到一个片段中,来分 离应用程序数据, 从而实现多租户云网络所需要的远距离分割支持。
但是, 现有 VXLAN的规范技术中, 没有明确提供交换机识别不同虚拟 机数据包的解决方案。 发明内容 本发明实施例提供一种数据中心的虚拟网络管理方法及数据中心系统, 能够基于虚拟网络标识和本地虚拟局域网标识在虚拟机所接入的交换机上 配置该虚拟机的数据包传输策略,从而使得交换机能够识别不同租户的虚拟 机并完成不同租户虚拟机对应数据包的 VXLAN的封装和解封装工作。。
第一方面, 提供了一种数据中心的虚拟网络管理方法, 其特征在于, 该 方法包括: 根据租户的业务信息以及数据中心的资源占用信息确定第一物理 服务器、 第一交换机及第一虚拟网络, 其中, 该第一物理服务器为该数据中 心的多个物理服务器中用于创建该租户的第一虚拟机 VM的物理服务器,该 第一 VM用于部署该租户的业务,该第一交换机为该第一物理服务器接入的 物理交换机, 该第一虚拟网络为该租户的 VM所属的虛拟网络, 一个租户对 应于一个虚拟网络; 根据该第一交换机的本地虚拟局域网标识占用信息确定 该第一 VM的本地虚拟局域网标识;根据该第一 VM的本地虚拟局域网标识 在该第一物理服务器上创建该第一 VM; 根据该第一 VM的本地虚拟局域网 标识和该租户所属的虚拟网络的虚拟网络标识,在该第一交换机上配置该第 一 VM的数据包传输策略。
结合第一方面, 在第一种可能的实现方式中, 根据租户的业务信息以及 数据中心的资源占用信息确定第一物理服务器具体实现为: 该数据中心的资 源管理节点根据该租户的业务信息, 以及该数据中心中多个物理服务器的资 源占用信息确定该第一物理服务器。
结合第一方面, 在第二种可能的实现方式中, 根据租户的业务信息以及 该数据中心的资源占用信息确定第一虚拟网络具体实现为: 该数据中心的资 源管理节点选择该数据中心的虚拟网络中该租户所对应的虚拟网络为该第 一虚拟网络; 或者, 该数据中心的资源管理节点为该租户分配新的虚拟网络 作为该第一虚拟网络。
结合第一方面, 在第三种可能的实现方式中, 根据该第一交换机的本地 虚拟局域网标识占用信息确定该第一 VM 的本地虚拟局域网标识具体实现 为: 该数据中心的资源管理节点根据该第一交换机的本地虚拟局域网标识占 用信息为该第一 VM分配未被占用的本地虚拟局域网标识; 或者, 该第一交 换机根据该数据中心的资源管理节点的本地虚拟局域网标识分配请求,以及 该第一交换机的本地虚拟局域网标识占用信息,为该第一 VM分配未被占用 的本地虚拟局域网标识。 结合第一方面,在第四种可能的实现方式中, 根据该第一 VM的本地虚 拟局域网标识在该第一物理服务器上创建该第一 VM具体实现为:该数据中 心的资源管理节点向该第一物理服务器上的宿主机发送该第一 VM 的本地 虛拟局域网标识;该第一物理服务器上的宿主机根据该第一 VM的本地虚拟 局域网标识在该第一物理服务器上创建该第一 VM, 并配置该第一 VM的虚 拟网络接口。
结合第一方面的第四种可能的实现方式, 在第五种可能的实现方式中, 第一物理服务器上的宿主机根据该第一 VM 的本地虚拟局域网标识在该第 一物理服务器上配置该第一 VM的虛拟网络接口具体实现为:该第一物理服 务器上的宿主机根据该第一物理服务器的物理资源信息和该租户的业务信 息,将该第一 VM的虚拟网络接口和该第一物理服务器的物理网卡上的虚拟 功能 VF端口进行绑定; 或者, 该第一物理服务器上的宿主机根据该第一物 理服务器的物理资源信息和该租户的业务信息,将该第一 VM的虛拟网络接 口配置到该第一物理服务器上的宿主机的虚拟交换机 vswitch上。
结合第一方面或第一方面第一种可能的实现方式至第一方面第五种可 能的实现方式中任一种可能的实现方式, 在第六种可能的实现方式中, 根据 该第一 VM 的本地虚拟局域网标识和该租户所属的虚拟网络的虚拟网络标 识, 在该第一交换机上配置该第一 VM的数据包传输策略具体实现为: 该数 据中心的资源管理节点向该第一交换机发送该第一 VM 的本地虚拟局域网 标识和该租户所属的虛拟网络的虛拟网絡标识; 该第一交换机根据该第一 VM的本地虚拟局域网标识和该租户所属的虚拟网络的虚拟网络标识, 建立 该第一 VM的本地虚拟局域网标识、该租户所属的虚拟网络的虚拟网络标识 以及该第一 VM的映射关系表,并基于该映射关系表配置该第一 VM的数据 包传输策略。
第二方面, 提供了一种数据中心系统, 其特征在于, 该数据中心系统包 括: 资源管理节点、 多个物理服务器及多个物理交换机, 一个该物理交换机 能够接入至少一个该物理服务器, 其中, 该资源管理节点用于根据租户的业 务信息以及数据中心的资源占用信息确定第一物理服务器、第一交换机及第 一虚拟网络, 其中, 该第一物理服务器为该多个物理服务器中用于创建该租 户的第一虚拟机 VM的物理服务器,该第一 VM用于部署该租户的业务,该 第一交换机为该多个物理交换机中该第一物理服务器所接入的物理交换机, 该第一虚拟网络为该租户的 VM所属的虚拟网络,一个租户对应于一个虚拟 网络; 该资源管理节点还用于根据该第一交换机的本地虚拟局域网标识占用 信息为该第一 VM分配未被占用的本地虚拟局域网标识,并向该第一物理服 务器上的宿主机发送该第一 VM的本地虚拟局域网标识,以便该第一物理服 务器上的宿主机创建该第一 VM, 并在该第一 VM被创建后向该第一交换机 发送该第一 VM 的本地虚拟局域网标识和该租户所属的虚拟网络的虚拟网 络标识; 该第一物理服务器上部署着宿主机, 用于根据该资源管理节点发送 的该第一 VM的本地虚拟局域网标识创建该第一 VM,并配置该第一 VM的 虚拟网络接口; 该第一交换机用于实时向该资源管理节点反馈该第一交换机 的本地虚拟局域网标识占用信息, 并根据该资源管理节点发送的该第一 VM 的本地虚拟局域网标识和该租户所属的虚拟网络的虚拟网络标识, 配置该第 一 VM的数据包传输策略。
结合第二方面,在第一种可能的实现方式中, 在用于根据第一 VM的本 地虚拟局域网标识在第一物理服务器上配置第一 VM 的虚拟网络接口的过 程中, 第一物理服务器上的宿主机具体用于: 根据所述第一物理服务器的物 理资源信息和所述租户的业务信息,将第一 VM的虚拟网络接口和第一物理 服务器的物理网卡上的虚拟功能 VF端口进行绑定; 或者, 根据第一物理服 务器的物理资源信息和租户的业务信息,将第一 VM的虚拟网络接口配置到 第一物理服务器上的宿主机的虚拟交换机 vswitch上。
第三方面, 提供了一种数据中心系统, 其特征在于, 该数据中心系统包 括: 资源管理节点、 多个物理服务器及多个物理交换机, 一个该物理交换机 能够接入至少一个该物理服务器, 其中, 该资源管理节点用于根据租户的业 务信息以及数据中心的资源占用信息确定第一物理服务器、第一交换机及第 一虚拟网絡, 其中, 该第一物理服务器为该多个物理服务器中用于创建该租 户的第一虚拟机 VM的物理服务器,该第一 VM用于部署该租户的业务,该 第一交换机为该多个物理交换机中该第一物理服务器所接入的物理交换机, 该第一虚拟网络为该租户的 VM所属的虚拟网络,一个租户对应于一个虚拟 网络;该资源管理节点还用于向该第一交换机请求分配该第一 VM的本地虚 拟局域网标识,并在得到该第一 VM的本地虚拟局域网标识后向该第一物理 服务器上的宿主机发送该第一 VM的本地虚拟局域网标识,以便该第一物理 服务器上的宿主机创建该第一 VM, 并在该第一 VM被创建后向该第一交换 机发送该第一 VM 的本地虚拟局域网标识和该租户所属的虚拟网络的虚拟 网络标识; 该第一物理服务器上部署着宿主机, 用于根据该资源管理节点发 送的该第一 VM的本地虚拟局域网标识创建该第一 VM, 并配置该第一 VM 的虚拟网络接口; 该笫一交换机用于根据该资源管理节点的本地虚拟局域网 标识分配请求以及该第一交换机的本地虚拟局域网标识占用信息为该资源 管理节点分配该第一 VM的本地虛拟局域网标识,并 4艮据该资源管理节点发 送的该第一 VM 的本地虚拟局域网标识和该租户所属的虚拟网络的虚拟网 络标识 , 配置该第一 VM的数据包传输策略。
结合第三方面,在第一种可能的实现方式中, 在用于根据第一 VM的本 地虛拟局域网标识在第一物理服务器上配置第一 VM 的虚拟网络接口的过 程中, 第一物理服务器上的宿主机具体用于: 根据所述第一物理服务器的物 理资源信息和所述租户的业务信息,将第一 VM的虚拟网络接口和第一物理 服务器的物理网卡上的虚拟功能 VF端口进行绑定; 或者, 根据第一物理服 务器的物理资源信息和租户的业务信息,将第一 VM的虚拟网络接口配置到 第一物理服务器上的宿主机的虛拟交换机 vswitch上。
根据本发明实施例的数据中心的虚拟网络管理方法及数据中心系统,通 过确定租户的虚拟机所在的虚拟网络及虚拟机在物理交换机上的本地虚拟 局域网标识, 并基于虚拟网络标识和本地虚拟局域网标识在虚拟机所接入的 交换机上配置该虚拟机的数据包传输策略,从而使得交换机能够识别不同租 户的虛拟机并完成不同租户虛拟机对应数据包的 VXLAN的封装和解封装工 作。 附图说明
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例或现有技 术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图 仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造 性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1是本发明实施例 VXLAN的网络结构示意图。
图 2是本发明实施例 VXLAN的另一网络结构示意图。
图 3是本发明实施例数据中心的虚拟网络管理方法流程图。
图 4是本发明实施例数据中心为租户提供业务服务的交互流程图。 图 5是本发明实施例数据中心为租户提供业务服务的另一交互流程图。 图 6是本发明实施例数据中心信系统的结构示意图。
图 Ί是本发明实施例数据中心信系统的另一结构示意图。 具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创 造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
为了方便理解本发明实施例, 首先在此介绍本发明实施例描述中会引入 的几个要素。
虚拟机( Virtual Machine, VM )··
通过虚拟机软件可以在一台物理计算机上模拟出一台或者多台虚拟的 计算机, 而这些虚拟机就像真正的计算机那样进行工作, 虚拟机上可以安装 操作系统和应用程序, 虛拟机还可访问网络资源。 对于在虚拟机中运行的应 用程序而言, 虚拟机就像是在真正的计算机中进行工作。
硬件层:
虚拟化环境运行的硬件平台。 其中, 硬件层可包括多种硬件, 例如某计 算节点的硬件层可包括 CPU和内存, 还可以包括网卡、 存储器等等高速 /低 速输入 /输出 (I/O, Input/Output )设备。
宿主机(Host ):
作为管理层, 用以完成硬件资源的管理、 分配; 为虚拟机呈现虛拟硬件 平台; 实现虚拟机的调度和隔离。 其中, Host可能是虚拟机监控器(Virtual Machine Monitor, VMM ); 或者, 有时 VMM和 1个特权虚拟机配合, 两者 结合组成 Host。其中,虚拟硬件平台对其上运行的各个虛拟机提供各种硬件 资源, 如提供虚拟 CPU、 内存、 虚拟磁盘、 虚拟网卡等等。 其中, 该虚拟磁 盘可对应 Host的一个文件或者一个逻辑块设备。 虛拟机则运行在 Host为其 准备的虚拟硬件平台上, Host上运行一个或多个虚拟机。
叠加网络: 物理网络之上的一层虚拟网络拓朴。 每个虚拟网络实例都是 由叠加来实现的, 原始帧在网络虚拟化边缘节( Network Virtualization Edge, NVE )上进行封装。 该封装标识了解封装的设备, 在将帧发送到终端之前, 该设备将对该帧进行解封装, 得到原始报文。 虚拟网络的边缘节点可以是传 统的交换机、路由器,或者是 Host内的虚拟交换机。虚拟网络标识符( Virtual Network Identity, VNID )可以封装到叠加头中, 用来标识数据帧所属的虚 拟网络。
虚拟可扩展局 ά戈网 ( Virtual extensible Local Area Network, VXLAN ),
VXLAN是建立在物理 IP覆盖( overlay )网络之上的虚拟以太网,使用 UDP 封装完整的内层以太报文的叠加网络技术, 并利用 IP多播封装广播和多播 报文,可跨越物理三层网络,利用等价多路径负载均衡( Equal-Cost Multi-path Routing, ECMP ), 对不同数据流使用不同 UDP源端口, 24位 VXLAN网络 标识符, 最大支持 16,000,000个逻辑网络。 其中, VXLAN引入新的转发实 体虚拟扩展本地网络隧道终结节点 (VXLAN Tunnel End Point, VTEP)和新的 地址封装虚拟扩展本地网络标识符 (VXLAN Network Identifier, VNI ), 所 有虚拟机流量在进入 VTEP之前被打上新的 VNI并封装在 UDP数据包中进 行跨三层网关的传输, 相当于在现有网络上构建起 Overlay隧道。
图 1是本发明实施例 VXLAN的网络结构示意图。 如图 1所示, 一个完 整的 VXLAN网络可包括 L3网络( Network )、 VTEP和租户( TES )。 VXLAN 数据包从 TES经过 VTEP、 L3网络传输到另一个 TES时, VXLAN数据包 在 VTEP处进行封装和解封装。 TES1-TES4表示租户终端系统。 VTEP1和 VTEP2表示 TES与 L3网络( Network ) 的交换节点, 负责 VXLAN数据包 的封装和解封装, 可以运行在单独的设备中, 以软件或硬件的方式实现。
VXLAN的详细技术方案可参考现有技术。 为便于理解本发明的方案, 本发明在此以 TES1向 TES4发起单播流程为例, 作简单的介绍说明。 原始 用户报文到达 VTEP1后, 在 VTEP1上会进行 VXLAN的封装, 会封装上一 个 VXLAN的头, 一个外层 UDP头, 一个外层 IP头和外层以太头。 外层 IP 头里面封装的是通过用户报文中目的地址得到的 VXLAN Tunnel的源 /目的 PA地址。封装后的报文根据外层头中的信息在物理网络上传输到目的 VTEP VTEP2。 VTEP2可根据 UDP的目的端口号确定是 VXLAN报文 , 然后进行 解封装还原原始报文, 并将报文转发到真正的报文接收者 TES4。
但是, VXLAN 的规范只定义了对不同虚拟网络的数据包如何进行 VXLAN协议的封装与解封装, 但是定没有定义如何在接入的物理交换机上 识别不同虚拟机所对应的数据包。 图 2是本发明实施例 VXLAN的另一网络结构示意图。在图 2中, VTEP 节点由单独的硬件设备实现,具体表现为物理交换机,例如在图 2中, TORI 和 TOR2具备 VXLAN的 VTEP节点功能。 另外, TES由虚拟机实现, 通过 物理服务器上的宿主机部署, 例如在图 2中, 虚拟机 VM1通过宿主机 1部 署。 另外, 物理交换机与虚拟机之间可通过宿主机上的虚拟交换机进行数据 交换, 例如在图 2中, VM1可通过宿主机 1上的虛拟交换机 1与物理交换 机 TORI进行数据交换。 当然, 宿主机上的虚拟机还可通过其它虚拟网络接 口与物理交换机进行数据交换, 本发明实施例在此不作限制。
图 3是本发明实施例数据中心的虚拟网络管理方法流程图。该方法由数 据中心系统执行。 该方法可包括:
301 , 根据租户的业务信息以及数据中心的资源占用信息确定第一物理 服务器、 第一交换机及第一虚拟网络。
其中, 该第一物理服务器为该数据中心的多个物理服务器中用于创建该 租户的第一虚拟机 VM的物理服务器,该第一 VM用于为该租户的业务提供 服务, 该第一交换机为该第一物理服务器接入的物理交换机, 该第一虚拟网 络为该租户的 VM所属的虚拟网络, 一个租户对应于一个虚拟网络。
数据中心可 4艮据租户的业务所需要占用的资源信息, 以及数据中心的资 源占用信息,确定数据中心的多个服务器中能够承栽租户业务的第一物理服 务器。 当确定第一物理服务器后, 同时可确定第一物理服务器所接入的第一 交换机。
数据中心可根据租户的业务信息, 确定租户所属的第一虚拟网络, 换句 话说, 也就是确定待创建的第一 VM所属的第一虚拟网络。 具体地, 可通过 虚拟网络标识来确定虚拟网络, 或者通过其它标识信息来确定虚拟网络。 在 VXLAN网络中, 虚拟网络标识可用来唯一地标识一个虚拟网络。
302,根据该第一交换机的本地虛拟局域网标识占用信息确定该第一 VM 的本地虚拟局域网标识。
本发明实施例中, 第一交换机可连接一个或多个物理服务器, 每个物理 服务器上可部署一个或多个虚拟机, 或者也可不部署虚拟机。
VLAN本来的目的是用于局域网络的隔离,将局域网设备从逻辑上划分 成一个个网段,从而实现在多个交换机组成的同一局域网中实现不同的逻辑 网络。 为了达到对不同服务器组隔离的效果, 需要对不同的服务器组配置不 同的 VLAN标签, 该 VLAN标签在由多个交换机组成的局域网中是全局唯 一的。
而本发明的所采用的的本地 VLAN, 只是用于在同一个交换机下, 服 务器网卡到交换机端口之间的 VM流量识别, 不同交换机之间的 VLAN标 签相互独立, 可以重复使用。
现有技术中, 虛拟局域网标识是用于局域网络的隔离, 通过将局域网设 备从逻辑上划分成一个个网段,从而实现在多个交换机组成的同一局域网中 实现不同的逻辑网络。 为了达到对不同服务器组隔离的效果, 需要对不同的 服务器组配置不同的虚拟局域网标识,该虚拟局域网标识在由多个交换机组 成的局域网中是全局唯一的。 本发明实施例中, 本地虚拟局域网标识可以唯 一地标识所有接入到交换机的物理服务器上的所有虚拟机。本地虚拟局域网 标识用于区分同一交换机下的不同虚拟机, 不同交换机之间的本地虛拟局域 网标识可以重用,也就是说不同的交换机下可以存在相同的本地虚拟局域网 标识, 其所表示的虚拟机不同。
303 , 根据该第一 VM的本地虛拟局域网标识在该第一物理服务器上创 建该第一 VM。
304, 根据该第一 VM的本地虚拟局域网标识和该租户所属的虚拟网络 的虛拟网络标识, 在该第一交换机上配置该第一 VM的数据包传输策略。
本发明实施例中, 通过为每个 VM分配不同的本地虚拟局域网标识, 并 基于虛拟网络标识和本地虛拟局域网标识在虛拟机所接入的交换机上配置 该虚拟机的数据包传输策略,从而使得交换机能够识別不同租户的虛拟机并 完成不同租户虚拟机对应数据包的 VXLAN的封装和解封装工作。
另外, 本发明实施例的方法, 基于现有的 VXLAN的规范实现, 不需要 对现有的网络设备做较大的改动。
另外,本发明实施例中,将虚拟机的数据传输策略配置在物理交换机上, 从而能够通过对物理交换机进行硬件加速以提高数据中心的网络性能。
应理解, 本发明实施例中, 物理服务器可能接入多个物理交换机。 当物 理服务器上创建一个虚拟机时,虚拟机在物理服务器接入的多个物理交换机 中分別存在一个本地虛拟局域网标识, 并在每一个物理交换机上配置相应的 数据包传输策略, 本发明中, 以一个物理服务器接入一个物理交换机为例对 本发明实施例的方法进行说明, 但在实际的应用中, 可推广至一个物理服务 器接入多个交换机的应用场景中。
可选地, 步骤 301中, 根据租户的业务信息以及数据中心的资源占用信 息确定第一物理服务器具体可实现为: 该数据中心的资源管理节点根据该租 户的业务信息, 以及该数据中心中多个物理服务器的资源占用信息确定该第 一物理服务器。
可选地, 在步骤 301中, 根据租户的业务信息以及该数据中心的资源占 用信息确定第一虚拟网络具体可实现为: 该数据中心的资源管理节点选择该 数据中心的虚拟网络中该租户所对应的虚拟网络为该第一虚拟网络; 或者, 该数据中心的资源管理节点为该租户分配新的虚拟网络作为该第一虚拟网 络。
可选地, 作为一个实施例, 步骤 302具体可实现为: 该数据中心的资源 管理节点根据该第一交换机的本地虚拟局域网标识占用信息为该第一 VM 分配未被占用的本地虛拟局域网标识。
可选地, 作为另一个实施例, 步骤 302具体可实现为: 该第一交换机根 据该数据中心的资源管理节点的本地虚拟局域网标识分配请求, 以及该第一 交换机的本地虚拟局域网标识占用信息,为该第一 VM分配未被占用的本地 虚拟局 i或网标识。
可选地, 步骤 303具体可实现为: 该数据中心的资源管理节点向该第一 物理服务器上的宿主机发送该第一 VM的本地虚拟局域网标识;该第一物理 服务器上的宿主机 4艮据该笫一 VM 的本地虛拟局域网标识在该第一物理服 务器上创建该第一 VM, 并配置该第一 VM的虚拟网络接口。
进一步地,该第一物理服务器上的宿主机根据该第一 VM的本地虚拟局 域网标识在该第一物理服务器上配置该第一 VM 的虚拟网络接口具体可实 现为: 该第一物理服务器上的宿主机根据该第一物理^ _务器的物理资源信息 和该租户的业务信息,将该第一 VM的虚拟网络接口和该第一物理服务器的 物理网卡上的虚拟功能 VF端口进行绑定。
或者,该第一物理服务器上的宿主机根据该第一 VM的本地虚拟局域网 标识在该第一物理服务器上配置该第一 VM的虚拟网络接口还可实现为:该 第一物理服务器上的宿主机根据该第一物理服务器的物理资源信息和该租 户的业务信息,将该第一 VM的虚拟网络接口配置到该第一物理服务器上的 宿主机的虚拟交换机 vswitch上。 可选地, 步骤 304具体可实现为: 该数据中心的资源管理节点向该第一 交换机发送该第一 VM 的本地虚拟局域网标识和该租户所属的虚拟网络的 虚拟网络标识;该第一交换机根据该第一 VM的本地虚拟局域网标识和该租 户所属的虛拟网络的虚拟网络标识, 建立该第一 VM 的本地虚拟局域网标 识、 该租户所属的虚拟网络的虚拟网络标识以及该第一 VM的映射关系表, 并基于该映射关系表配置该第一 VM的数据包传输策略。
下面将结合具体实施例, 对本发明实施例的方法作进一步的描述。 图 4是本发明实施例数据中心为租户提供业务服务的交互流程图。如图 4所示, 数据中心可包括资源管理节点, 第一物理服务器及部署在第一物理 服务器上的宿主机, 以及第一物理服务器所接入的第一交换机。
应理解, 虽然图 4中只示出了一个物理服务器和一个物理交换机, 但在 实际的应用中, 数据中心可包括多个物理服务器和多个物理交换机。 其中, 多个物理服务器可构成一个统一的资源池为数据中心提供资源,每个物理服 务器都会接入到物理交换机中, 每个物理交换机可以接入多个物理服务器。 另外, 每个物理服务器上部署着宿主机(Host )。
401, 资源管理节点根据租户的业务信息及数据中心的资源占用信息确 定用于建立租户的第一虚拟机的第一物理服务器以及租户的第一虚拟网络。
当数据中心需要为租户提供业务服务时,可通过数据中心的资源管理节 点为租户建立虚拟机来提供服务, 不妨将租户待建立的虚拟机命名为第一 VM。 租户可在第一 VM上根据业务的要求部署业务服务。
数据中心的资源管理节点用于管理数据中心的资源。该资源管理节点可 以是数据中心的集中管理节点, 或者是数据中心的多个资源管理节点中的一 个, 本发明实施例在此不作限制。
租户的业务信息, 可包括租户的业务类型、 租户的业务所需要占用的资 源信息。 根据租户的业务信息, 数据中心的资源管理节点可确定租户所属的 虚拟网络, 也即确定第一 VM所属的虚拟网络, 不妨命名为第一虛拟网络。
数据中心的资源占用信息,主要是指数据中心的物理服务器资源占用信 息。 在具体地应用中, 数据中心的物理服务器资源可能根据实际用途进行分 类, 或者是根据性能指标进行分类, 此时, 资源占用信息也可按照物理服务 器的分类结果显示。
资源管理节点可根据租户的业务信息和数据中心的资源占用信息,确定 用于建立第一 VM的第一物理服务器。 具体地, 资源管理节点可根据租户的 业务所需要占用的资源信息, 租户的业务的类型, 以及数据中心中的物理服 务器的资源占用信息, 来确定数据中心的多个物理服务器中能够承载租户业 务的第一物理服务器。 另外, 资源管理节点还可结合数据中心的均衡策略、 各个物理服务器的性能指标等因素, 来确定该第一物理服务器。
当确定第一物理服务器之后, 即可确定第一交换机。 第一物理服务器所 接入的交换机即为第一交换机。
402, 资源管理节点向第一物理服务器所接入的第一交换机请求分配第 一虚拟机的本地虚拟局域网标识。
资源管理节点确定用于创建第一 VM的第一物理服务器后,可向第一物 理服务器所接入的第一交换机请求分配本地虚拟局域网标识。
物理交换机可连接一个或多个物理服务器,每个物理服务器上可创建一 个或多个虚拟机。物理交换机中可存储其连接的物理服务器下所有虛拟机的 本地虚拟局域网标识,每个本地虚拟局域网标识对应于物理交换机中连接的 物理服务器下的一个虚拟机, 可用于唯一标识物理交换机下的虚拟机。
第一交换机可¾据本地虚拟局域网标识的占用信息,为第一 VM分配一 个本地虚拟局域网标识。 现有技术中, 本地虚拟局域网标识长度为 12位, 一个物理交换机最多可管理 4096个不同的虚拟机。
403, 第一交换机根据第一交换机的本地虚拟局域网标识占用信息确定 第一虛拟机的本地虛拟局域网标识。
404, 第一交换机向资源管理节点反馈第一虚拟机的本地虚拟局域网标 识。
第一交换机确定第一 VM的本地虚拟局域网标识后,可将第一虚拟机的 本地虚拟局域网标识反馈给资源管理节点。
405 , 资源管理节点向第一物理服务器上的宿主机发送第一虛拟机的本 地虚拟局域网标识和租户的业务信息。
资源管理节点在得到第一虛拟机的本地虚拟局域网标识后,可向第一物 理服务器上的宿主机(Host )发送第一虚拟机的本地虎拟局域网标识和租户 的业务信息。
406, 第一物理服务器的宿主机根据第一虚拟机的本地虚拟局域网标识 和租户的业务信息创建第一虛拟机并配置第一虚拟机的虚拟网络接口。 第一物理服务器上的 Host可根据第一虚拟机的本地虚拟局域网标识, 创建第一虚拟机。
另外, 第一物理服务器上的 Host可根据第一物理服务器的物理资源信 息, 以及租户的业务信息, 配置第一虚拟机的虚拟网络接口。
本发明实施例的一种实现方式, Host 可以根据第一物理服务器的物理 资源信息, 以及租户的业务类型, 把第一虚拟机的虛拟网络接口和 SR-I0V 网卡的某个 VF绑定。 Host可为该 VF端口设置第一虚拟机的本地虚拟局域 网标识, 使得第一虚拟机通过该 VF发送数据时能够带上第一虚拟机的本地 虚拟局域网标识。
本发明实施例的另一种实现方式, Host可以根据第一物理服务器的物理 资源信息, 以及租户的业务类型,把第一虚拟机的虛拟网络接口绑定到 Host 的虚拟交换机(vSwtich ), 通过 vSwtich进行数据转发。 vSwtich在为该第一 虚拟机发送数据时, 可在数据包中插入第一虚拟机的本地虚拟局域网标识。
407, 资源管理节点向第一交换机发送第一虚拟机的本地虚拟局域网标 识和租户的虚拟网絡的标识。
在 Host创建第一虚拟机并配置第一虚拟机的虚拟网络接口后, 资源管 理节点可将第一虚拟机的本地虚拟局域网标识和租户的虚拟网络的标识发 送给第一交换机。
408, 第一交换机根据第一虚拟机的本地虚拟局域网标识和租户的虚拟 网络的标识确定笫一虛拟机的数据包传输策略。
第一交换机在接收到第一虚拟机的本地虚拟局域网标识和租户的虚拟 网络的标识,可根据第一虚拟机的本地虚拟局域网标识和租户的虚拟网络的 标识确定第一虚拟机的数据包传输策略。
具体地,第一交换机可根据第一虚拟机的本地虚拟局域网标识和租户的 虛拟网络的标识, 建立本地虚拟局 i或网标识、 虛拟网絡标识和虛拟机之间的 映射关系表。
当第一交换机通过下联端口, 收到虚拟机发送过来的带有本地虛拟局域 网标识的数据包时, 可通过查询本地虚拟局域网标识、 虚拟网络标识和虚拟 机之间的映射关系表,识别出该数据包所归属的虚拟机的信息以及虛拟网络 信息。 第一交换机可去掉该数据包中的本地虚拟局域网标识, 然后根据数据 包所归属的虚拟网络的虚拟网络标识进行相应的 VXLAN封装处理。第一交 换机对从下联端口收到数据包原 IP以及虚拟网络标识信息进行转发学习。 当第一交换机收到其他交换机的下属节点(本发明中, 为虚拟机)发送 过来的 VXLAN数据包后, 把数据包进行 VXLAN解封装后, 可得到虚拟网 络标识。 第一交换机可根据虛拟网络标识以及目的 IP信息, 转发给虚拟网 络标识所对应虚拟网络中该目的 IP所指向的虚拟机。
以图 2为例, 不妨支设 VM 1和 VM3属于同一个虚拟网络,且物理交换 机 TORI根据 VM1的虚拟网络标识和本地虚拟局域网标识配置相应的传输 策略, 物理交换机 TOR2根据 VM3的虚拟网络标识和本地虚拟局域网标识 配置相应的传输策略。此时 VM1向 VM3发送数据包的一种流程可如下所示: ( 1 ) VM1发送 ARP广播帧, 请求查询 VM3的 IP地址所对应的 MAC 地址。 在 VM1发送的 ARP广播帧中, 携带 VM1 的本地虚拟局域网标识 VLANl o
( 2 ) TORI可根据本地虚拟局域网标识与 VM的对应关系, 可从 ARP 广播帧中识别出 VLAN1所对应的虚拟机 VM1, 并查询 VM1与虚拟网络标 识的对应关系, 得到 VM1对应的虚拟网络标识 VNI1, 并对 ARP包封装上 VNI1。
( 3 ) TORI查询 VNI1和多播组的对应关系, 得到多播组 IP地址。 ( 4 ) TORI构造 IP多播报文。
( 5 )TOR2接收 IP组播报文,提取出 VNI1和原始 MAC帧,并在 VXLAN 内广播 MAC帧。 同时, TOR2可记录 VM1的 MAC地址和 TOR2的 IP地址 间的映射关系。
( 6 ) VM3釆用 IP单播发送标准 ARP应答帧, 包含 VM1的 MAC地址 和 VM3的 MAC地址信息, 以及 VM3的本地虚拟局域网标识 VLAN3。
( 7 ) TOR2接收到 VM3的 ARP应答帧后, 可根据 VLAN3识别出是 VM3所发送的, 然后可根据 VM3与虚拟网络标识的对应关系, 得到 VM3 对应的虚拟网络标识 VNI1,并在 ARP应答帧中封装上 VNI1,然后根据 VM1 的 MAC地址和 TOR2的 IP地址间的映射关系, 将 ARP应答桢发给 TORI。
( 8 ) TORI解封装后发给 VMl o 同时, TORI可记录 VM3的 MAC地 址和 TORI的 IP地址间的映射关系。
交换机经过学习得到另一子网的虚拟机的 MAC地址与另一子网的交换 机的 IP地址间的映射关系后, 即可根据学习到的映射关系进行数据传输。 在 VM1和 VM3进行点对点传输的过程中,虚拟机发送数据包时携带本 地虛拟局域网标识,物理交换机根据虚拟局域网标识确定发送数据包的虚拟 机并封装上虚拟网络标识, 然后在 VXLAN上传输, 接收端的物理交换机解 封装后, 可根据虛拟网络标识将数据包传输到该虚拟网络标识所代表的虚拟 网络中对应的 IP地址(或 MAC地址)上, 具体实现可参考前文 VM1发送 ARP广播帧的流程, 本发明实施例在此不再赘述。
虚拟机的数据包在同一子网内传输的方法可参考现有技术,本发明实施 例在此不再赘述。
图 5是本发明实施例数据中心为租户提供业务服务的交互流程图。如图 5所示, 数据中心可包括资源管理节点, 第一物理服务器及部署在第一物理 服务器上的宿主机, 第一物理服务器所接入的第一交换机。
应理解, 虽然图 5中只示出了一个物理服务器和一个物理交换机, 但在 实际的应用中, 数据中心可包括多个物理服务器和多个物理交换机。 其中, 多个物理服务器可构成一个统一的资源池为数据中心提供资源,每个物理服 务器接入到物理交换机中,每个物理交换机可以接入多个物理服务器。另外, 每个物理服务器上部署着宿主机(Host )。
501, 资源管理节点根据租户的业务信息及数据中心的资源占用信息确 定用于建立租户的第一虛拟机的第一物理服务器以及租户的第一虚拟网络。
数据中心的资源管理节点可根据租户的业务信息及数据中心的资源占 用信息确定用于建立租户的第一虛拟机的笫一物理服务器以及租户的第一 虚拟网络,其具体过程可参考图 4的步骤 401,本发明实施例在此不再赘述。
另外, 与步骤 401类似, 当确定第一物理服务器之后, 即可确定第一交 换机。 第一物理服务器所接入的交换机即为第一交换机。
502, 第一交换机向资源管理节点发送第一交换机的本地虚拟局域网标 识占用信息。
物理交换机可连接一个或多个物理服务器,每个物理服务器上可创建一 个或多个虚拟机。物理交换机中可存储其连接的物理服务器下所有虛拟机的 本地虚拟局域网标识,每个本地虚拟局域网标识对应于物理交换机中连接的 物理服务器下的一个虛拟机, 可用于唯一标识物理交换机下的虚拟机。
第一交换机可定时地向资源管理节点发送第一交换机的本地虚拟局域 网标识占用信息,或者在第一交换机的本地虚拟局域网标识占用信息发生变 动时向资源管理节点发送第一交换机的本地虚拟局域网标识占用信息。
第一交换机在发送本地虚拟局域网标识占用信息时,可只发送未使用的 本地虚拟局域网标识, 或者只发送发生已使用的本地虚拟局域网标识, 或者 发送发生变化的本地虛拟局域网标识, 等等。
另外, 应理解, 步骤 502是个定时或触发性执行的步骤, 在时间上不受 其它步骤的影响。
503, 资源管理节点根据第一交换机的本地虚拟局域网标识占用信息确 定第一虚拟机的本地虚拟局域网标识。
资源管理节点可根据本地虚拟局域网标识的占用信息,为第一 VM分配 一个本地虚拟局 i或网标识。 现有技术中, 本地虚拟局域网标识长度为 12位, 一个物理交换机最多可管理 4096个不同的虚拟机。 当然, 也可规定本地虚 拟局域网标识长度为更长的长度, 以便一个物理交换机能够管理更多虚拟机 的数据传输, 本发明实施例在此不作限制。
应理解,步骤 503中所需的本地虚拟局域网标识占用信息来自步骤 502。 如果步骤 502未执行过, 可视为本地虚拟局域网标识都未被占用。
504, 资源管理节点向第一物理服务器上的宿主机发送第一虚拟机的本 地虚拟局域网标识和租户的业务信息。
步骤 504的具体实现与图 4的步骤 405类似,本发明实施例在此不再赘 述。
505, 笫一物理服务器上的宿主机根据笫一虛拟机的本地虛拟局域网标 识和租户的业务信息创建第一虚拟机并配置第一虚拟机的虚拟网络接口。
步骤 505的具体实现与图 4的步骤 406类似,本发明实施例在此不再赘 述。
506, 资源管理节点向第一交换机发送第一虚拟机的本地虚拟局域网标 识和租户的虚拟网络的标识。
步骤 506的具体实现与图 4的步骤 407类似,本发明实施例在此不再赘 述。
507, 第一交换机根据第一虚拟机的本地虚拟局域网标识和租户的虚拟 网络的标识确定第一虛拟机的数据包传输策略。
步驟 507的具体实现与图 4的步骤 408类似,本发明实施例在此不再赘 述。 图 6是本发明实施例数据中心信系统 600的结构示意图。数据中心系统 可包括资源管理节点 601、 多个物理服务器 602以及多个物理交换机 603。 其中, 一个物理交换机 603能够接入至少一个物理服务器 602。
资源管理节点 601 , 用于根据租户的业务信息以及数据中心系统的资源 占用信息确定第一物理服务器、 第一交换机及第一虛拟网絡, 其中, 该第一 物理服务器为该多个物理服务器 602中用于创建该租户的第一虚拟机 VM的 物理服务器 602, 该第一 VM用于部署该租户的业务, 该第一交换机为该多 个物理交换机 603中该第一物理服务器所接入的物理交换机 603, 该第一虚 拟网络为该租户的 VM所属的虚拟网络, 一个租户对应于一个虚拟网络。
另外, 资源管理节点 601还用于根据该第一交换机的本地虛拟局域网标 识占用信息为该第一 VM分配未被占用的本地虚拟局域网标识,并向该第一 物理服务器上的宿主机发送该第一 VM的本地虚拟局域网标识,以便该第一 物理服务器上的宿主机创建该第一 VM, 并在该第一 VM被创建后向该第一 交换机发送该第一 VM 的本地虚拟局域网标识和该租户所属的虚拟网络的 虛拟网络标识。
第一物理服务器上部署着宿主机,用于根据资源管理节点 601发送的该 第一 VM的本地虚拟局域网标识创建该第一 VM,并配置该第一 VM的虚拟 网络接口。
第一交换机用于实时向资源管理节点 601反馈该第一交换机的本地虚拟 局域网标识占用信息,并根据资源管理节点 601发送的该第一 VM的本地虛 拟局域网标识和该租户所属的虚拟网络的虚拟网络标识,配置该第一 VM的 数据包传输策略。
本发明实施例中,数据中心系统 600通过确定租户的虚拟机所在的虚拟 网络及虚拟机在物理交换机上的本地虚拟局域网标识, 并基于虚拟网络标识 和本地虚拟局域网标识在虛拟机所接入的交换机上配置该虛拟机的数据包 传输策略,从而使得交换机能够识别不同租户的虚拟机并完成不同租户虚拟 机对应数据包的 VXLAN的封装和解封装工作。
另外, 本发明实施例的方法, 基于现有的 VXLAN的规范实现, 不需要 对现有的网络设备做较大的改动。
另外,本发明实施例中,将虚拟机的数据传输策略配置在物理交换机上 , 从而能够通过对物理交换机进行硬件加速以提高数据中心的网络性能。 应理解, 本发明实施例中, 物理服务器可能接入多个物理交换机。 当物 理服务器上创建一个虚拟机时,虚拟机在物理服务器接入的多个物理交换机 中分别存在一个本地虚拟局域网标识, 并在每一个物理交换机上配置相应的 数据包传输策略, 本发明中, 以一个物理服务器接入一个物理交换机为例对 本发明实施例的方法进行说明, 但在实际的应用中, 可推广至一个物理服务 器接入多个交换机的应用场景中。
可选地,作为一个实施例, 在用于根据第一 VM的本地虚拟局域网标识 在第一物理服务器上配置第一 VM的虚拟网络接口的过程中,第一物理服务 器上的宿主机具体用于根据所述第一物理服务器的物理资源信息和所述租 户的业务信息,将第一 VM的虚拟网络接口和第一物理服务器的物理网卡上 的虚拟功能 VF端口进行绑定。
可选地,作为一个实施例, 在用于根据第一 VM的本地虚拟局域网标识 在第一物理服务器上配置第一 VM的虚拟网络接口的过程中,第一物理服务 器上的宿主机具体用于根据第一物理服务器的物理资源信息和租户的业务 信息,将第一 VM的虚拟网络接口配置到第一物理服务器上的宿主机的虛拟 交换机 vswitch上。
另夕卜,数据中心系统还可执行图 3的方法, 并实现数据中心系统在图 3、 图 4所示实施例的具体功能, 本发明实施例在此不再赘述。
图 Ί是本发明实施例数据中心信系统 700的结构示意图。数据中心系统 可包括资源管理节点 701、 多个物理服务器 702以及多个物理交换机 703。 其中, 一个物理交换机 703能够接入至少一个物理服务器 702。
资源管理节点 701 , 用于根据租户的业务信息以及数据中心系统的资源 占用信息确定第一物理服务器、 第一交换机及第一虚拟网络, 其中, 该第一 物理服务器为该多个物理服务器 702中用于创建该租户的第一虚拟机 VM的 物理服务器 702, 该第一 VM用于部署该租户的业务, 该第一交换机为该多 个物理交换机 703中该第一物理服务器所接入的物理交换机 703, 该第一虚 拟网络为该租户的 VM所属的虚拟网络, 一个租户对应于一个虚拟网络。
另外,资源管理节点 701还用于向该第一交换机请求分配该第一 VM的 本地虚拟局域网标识,并在得到该第一 VM的本地虚拟局域网标识后向该第 一物理服务器上的宿主机发送该第一 VM的本地虚拟局域网标识,以便该第 一物理服务器上的宿主机创建该第一 VM , 并在该第一 VM被创建后向该第 一交换机发送该第一 VM 的本地虚拟局域网标识和该租户所属的虚拟网络 的虛拟网络标识。
第一物理服务器上部署着宿主机,用于根据资源管理节点 701发送的该 第一 VM的本地虚拟局域网标识创建该第一 VM,并配置该第一 VM的虚拟 网络接口。
第一交换机用于根据资源管理节点 701的本地虚拟局域网标识分配请求 以及该第一交换机的本地虚拟局域网标识占用信息为资源管理节点 701分配 该第一 VM的本地虚拟局域网标识,, 并根据资源管理节点 701发送的该第 一 VM的本地虚拟局戈网标识和该租户所属的虚拟网络的虚拟网络标识,配 置该第一 VM的数据包传输策略。
本发明实施例中,数据中心系统 700通过确定租户的虚拟机所在的虚拟 网络及虚拟机在物理交换机上的本地虚拟局域网标识, 并基于虚拟网络标识 和本地虚拟局域网标识在虚拟机所接入的交换机上配置该虚拟机的数据包 传输策略,从而使得交换机能够识别不同租户的虚拟机并完成不同租户虚拟 机对应数据包的 VXLAN的封装和解封装工作。
另外, 本发明实施例的方法, 基于现有的 VXLAN的规范实现, 不需要 对现有的网络设备做较大的改动。
另外,本发明实施例中,将虚拟机的数据传输策略配置在物理交换机上, 从而能够通过对物理交换机进行硬件加速以提高数据中心的网络性能。
应理解, 本发明实施例中, 物理服务器可能接入多个物理交换机。 当物 理服务器上创建一个虚拟机时,虚拟机在物理服务器接入的多个物理交换机 中分别存在一个本地虚拟局域网标识, 并在每一个物理交换机上配置相应的 数据包传输策略, 本发明中, 以一个物理服务器接入一个物理交换机为例对 本发明实施例的方法进行说明, 但在实际的应用中, 可推广至一个物理服务 器接入多个交换机的应用场景中。
可选地,作为一个实施例, 在用于根据第一 VM的本地虚拟局域网标识 在第一物理服务器上配置第一 VM的虚拟网络接口的过程中,第一物理服务 器上的宿主机具体用于根据所述第一物理服务器的物理资源信息和所述租 户的业务信息,将第一 VM的虚拟网络接口和第一物理服务器的物理网卡上 的虚拟功能 VF端口进行绑定。
可选地,作为一个实施例, 在用于才艮据第一 VM的本地虚拟局域网标识 在第一物理服务器上配置第一 VM的虚拟网络接口的过程中,第一物理服务 器上的宿主机具体用于根据第一物理服务器的物理资源信息和租户的业务 信息,将第一 VM的虚拟网络接口配置到第一物理服务器上的宿主机的虚拟 交换机 vswitch上。
另夕卜,数据中心系统还可执行图 3的方法, 并实现数据中心系统在图 3、 图 4所示实施例的具体功能, 本发明实施例在此不再赘述。
应理解, 在本发明的各种实施例中, 上述各过程的序号的大小并不意味 着执行顺序的先后, 各过程的执行顺序应以其功能和内在逻辑确定, 而不应 对本发明实施例的实施过程构成任何限定。
本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的各 示例的单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结 合来实现。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特 定应用和设计约束条件。 专业技术人员可以对每个特定的应用来使用不同方 法来实现所描述的功能, 但是这种实现不应认为超出本发明的范围。
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描 述的系统、 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应 过程, 在此不再赘述。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示 意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可 以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个 系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间 的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合 或通信连接, 可以是电性, 机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作 为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或 者全部单元来实现本实施例方案的目的。
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元 中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一 个单元中。 所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使 用时, 可以存储在一个计算机可读取存储介盾中。 基于这样的理解, 本发明 的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部 分可以以软件产品的形式体现出来, 该计算机软件产品存储在一个存储介质 中, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。 而前 述的存储介质包括: U盘、移动硬盘、只读存储器( ROM, Read-Only Memory ), 随机存取存储器(RAM, Random Access Memory )、 磁碟或者光盘等各种可 以存储程序代码的介质。
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应以所述权利要求的保护范围为准。

Claims

权利要求
1、 一种数据中心的虚拟网络管理方法, 其特征在于, 包括:
根据租户的业务信息以及数据中心的资源占用信息确定第一物理服务 器、 第一交换机及第一虚拟网络, 其中, 所述第一物理服务器为所述数据中 心的多个物理服务器中用于创建所述租户的第一虚拟机 VM的物理服务器, 所述第一 VM用于为所述租户的业务提供服务,所述第一交换机为所述第一 物理服务器接入的物理交换机,所述第一虚拟网络为所述租户的 VM所属的 虚拟网络, 一个租户对应于一个虚拟网络;
根据所述第一交换机的本地虛拟局域网标识占用信息确定所述第一 VM 的本地虚拟局域网标识;
根据所述第一 VM 的本地虚拟局域网标识在所述第一物理服务器上创 建所述第一 VM;
根据所述第一 VM 的本地虚拟局域网标识和所述租户所属的虚拟网络 的虛拟网絡标识, 在所述第一交换机上配置所述第一 VM 的数据包传输策 略。
2、 如权利要求 1所述的方法, 其特征在于, 所述根据租户的业务信息 以及数据中心的资源占用信息确定第一物理服务器包括:
所述数据中心的资源管理节点根据所述租户的业务信息, 以及所述数据 中心中多个物理服务器的资源占用信息确定所述第一物理服务器。
3、 如权利要求 1所述的方法, 其特征在于, 所述根据租户的业务信息 以及所述数据中心的资源占用信息确定第一虚拟网络包括:
所述数据中心的资源管理节点选择所述数据中心的虚拟网络中所述租 户所对应的虚拟网络为所述第一虚拟网络; 或者
所述数据中心的资源管理节点为所述租户分配新的虛拟网络作为所述 第一虚拟网络。
4、 如权利要求 1所述的方法, 其特征在于, 所述根据所述第一交换机 的本地虚拟局域网标识占用信息确定所述第一 VM 的本地虚拟局域网标识 包括:
所述数据中心的资源管理节点根据所述第一交换机的本地虚拟局域网 标识占用信息为所述第一 VM分配未被占用的本地虚拟局域网标识; 或者 所述第一交换机根据所述数据中心的资源管理节点的本地虚拟局域网 标识分配请求, 以及所述第一交换机的本地虚拟局域网标识占用信息, 为所 述第一 VM分配未被占用的本地虚拟局域网标识。
5、 如权利要求 1所述的方法, 其特征在于, 所述根据所述笫一 VM的 本地虚拟局域网标识在所述第一物理服务器上创建所述第一 VM包括: 所述数据中心的资源管理节点向所述第一物理服务器上的宿主机发送 所述第一 VM的本地虚拟局域网标识;
所述第一物理服务器上的宿主机根据所述第一 VM 的本地虚拟局域网 标识在所述第一物理服务器上创建所述第一 VM, 并配置所述第一 VM的虚 拟网络接口。
6、 如权利要求 5所述的方法, 其特征在于,
所述第一物理服务器上的宿主机根据所述第一 VM 的本地虚拟局域网 标识在所述第一物理服务器上配置所述第一 VM的虚拟网络接口包括: 所述第一物理服务器上的宿主机根据所述第一物理服务器的物理资源 信息和所述租户的业务信息,将所述第一 VM的虚拟网络接口和所述第一物 理服务器的物理网卡上的虚拟功能 VF端口进行绑定; 或者
所述第一物理服务器上的宿主机根据所述第一物理服务器的物理资源 信息和所述租户的业务信息,将所述第一 VM的虚拟网络接口配置到所述第 一物理服务器上的宿主机的虚拟交换机 vswitch上。
7、 如权利要求 1至 6任一项所述的方法, 其特征在于, 所述根据所述 第一 VM 的本地虚拟局域网标识和所述租户所属的虚拟网络的虚拟网络标 识, 在所述第一交换机上配置所述第一 VM的数据包传输策略包括:
所述数据中心的资源管理节点向所述第一交换机发送所述第一 VM 的 本地虚拟局域网标识和所述租户所属的虚拟网络的虚拟网络标识;
所述第一交换机根据所述第一 VM 的本地虚拟局域网标识和所述租户 所属的虚拟网络的虚拟网络标识, 建立所述第一 VM 的本地虚拟局域网标 识、所述租户所属的虚拟网络的虚拟网络标识以及所述第一 VM的映射关系 表, 并基于所述映射关系表配置所述第一 VM的数据包传输策略。
8、 一种数据中心系统, 其特征在于, 包括资源管理节点、 多个物理服 务器及多个物理交换机,一个所述物理交换机能够接入至少一个所述物理服 务器, 其中, 所述资源管理节点用于根据租户的业务信息以及数据中心的资源占用 信息确定第一物理服务器、 第一交换机及第一虚拟网络, 其中, 所述第一物 理服务器为所述多个物理服务器中用于创建所述租户的第一虚拟机 VM 的 物理服务器, 所述第一 VM用于部署所述租户的业务, 所述第一交换机为所 述多个物理交换机中所述第一物理服务器所接入的物理交换机, 所述第一虚 拟网络为所述租户的 VM所属的虛拟网络, 一个租户对应于一个虛拟网络; 所述资源管理节点还用于根据所述第一交换机的本地虚拟局域网标识 占用信息为所述第一 VM分配未被占用的本地虚拟局域网标识,并向所述第 一物理服务器上的虛拟机监控者宿主机发送所述第一 VM 的本地虚拟局域 网标识, 以便所述第一物理服务器上的宿主机创建所述第一 VM, 并在所述 第一 VM被创建后向所述第一交换机发送所述第一 VM的本地虚拟局域网标 识和所述租户所属的虚拟网络的虚拟网络标识;
所述第一物理服务器上部署着宿主机,用于根据所述资源管理节点发送 的所述第一 VM的本地虚拟局域网标识创建所述第一 VM, 并配置所述第一 VM的虚拟网絡接口;
所述第一交换机用于实时向所述资源管理节点反馈所述第一交换机的 本地虚拟局域网标识占用信息, 并根据所述资源管理节点发送的所述第一 VM的本地虚拟局域网标识和所述租户所属的虛拟网络的虚拟网络标识, 配 置所述第一 VM的数据包传输策略。
9、 如权利要求 8所述的数据中心系统, 其特征在于, 在用于根据所述 第一 VM的本地虚拟局域网标识在所述第一物理服务器上配置所述第一 VM 的虚拟网络接口的过程中, 所述第一物理服务器上的宿主机根据所述第一物 理服务器的物理资源信息和所述租户的业务信息,将所述第一 VM的虚拟网 络接口和所述第一物理服务器的物理网卡上的虚拟功能 VF端口进行绑定; 或者, 所述第一物理服务器上的宿主机根据所述第一物理服务器的物理资源 信息和所述租户的业务信息,将所述第一 VM的虚拟网络接口配置到所述第 一物理服务器上的宿主机的虚拟交换机 vswitch上。
10、 一种数据中心系统, 其特征在于, 包括资源管理节点、 多个物理服 务器及多个物理交换机,一个所述物理交换机能够接入至少一个所述物理服 务器, 其中,
所述资源管理节点用于根据租户的业务信息以及数据中心的资源占用 信息确定第一物理服务器、 第一交换机及第一虚拟网络, 其中, 所述第一物 理服务器为所述多个物理服务器中用于创建所述租户的第一虚拟机 VM 的 物理服务器, 所述第一 VM用于部署所述租户的业务, 所述第一交换机为所 述多个物理交换机中所述第一物理服务器所接入的物理交换机, 所述第一虚 拟网络为所述租户的 VM所属的虚拟网络, 一个租户对应于一个虚拟网络; 所述资源管理节点还用于向所述第一交换机请求分配所述第一 VM 的 本地虚拟局域网标识,并在得到所述第一 VM的本地虚拟局域网标识后向所 述第一物理服务器上的虚拟机监控者宿主机发送所述第一 VM 的本地虚拟 局域网标识, 以便所述第一物理服务器上的宿主机创建所述第一 VM, 并在 所述第一 VM被创建后向所述第一交换机发送所述第一 VM的本地虛拟局域 网标识和所述租户所属的虚拟网络的虛拟网络标识;
所述第一物理服务器上部署着宿主机,用于根据所述资源管理节点发送 的所述第一 VM的本地虚拟局域网标识创建所述第一 VM, 并配置所述第一 VM的虚拟网络接口;
所述第一交换机用于根据所述资源管理节点的本地虚拟局域网标识分 配请求以及所述第一交换机的本地虚拟局域网标识占用信息为所述资源管 理节点分配所述第一 VM的本地虚拟局域网标识,, 并根据所述资源管理节 点发送的所述第一 VM 的本地虛拟局域网标识和所述租户所属的虛拟网络 的虚拟网络标识, 配置所述第一 VM的数据包传输策略。
11、 如权利要求 10所述的数据中心系统, 其特征在于, 在用于根据所 述第一 VM 的本地虚拟局域网标识在所述第一物理服务器上配置所述第一 VM的虚拟网络接口的过程中, 所述第一物理服务器上的宿主机根据所述第 一物理服务器的物理资源信息和所述租户的业务信息,将所述第一 VM的虚 拟网络接口和所述第一物理服务器的物理网卡上的虚拟功能 VF端口进行绑 定; 或者, 所述第一物理服务器上的宿主机根据所述第一物理服务器的物理 资源信息和所述租户的业务信息 ,将所述第一 VM的虚拟网络接口配置到所 述第一物理服务器上的宿主机的虚拟交换机 vswitch上。
PCT/CN2014/074475 2014-03-31 2014-03-31 数据中心的虚拟网络管理方法及数据中心系统 WO2015149253A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201480000195.8A CN105284080B (zh) 2014-03-31 2014-03-31 数据中心的虚拟网络管理方法及数据中心系统
PCT/CN2014/074475 WO2015149253A1 (zh) 2014-03-31 2014-03-31 数据中心的虚拟网络管理方法及数据中心系统

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/074475 WO2015149253A1 (zh) 2014-03-31 2014-03-31 数据中心的虚拟网络管理方法及数据中心系统

Publications (1)

Publication Number Publication Date
WO2015149253A1 true WO2015149253A1 (zh) 2015-10-08

Family

ID=54239243

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/074475 WO2015149253A1 (zh) 2014-03-31 2014-03-31 数据中心的虚拟网络管理方法及数据中心系统

Country Status (2)

Country Link
CN (1) CN105284080B (zh)
WO (1) WO2015149253A1 (zh)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106603550A (zh) * 2016-12-28 2017-04-26 中国银联股份有限公司 一种网络隔离方法及装置
CN107592208A (zh) * 2016-07-08 2018-01-16 中兴通讯股份有限公司 流量管理方法及装置
CN108809793A (zh) * 2017-04-27 2018-11-13 华为技术有限公司 一种数据传输方法、装置及系统
EP3499799A4 (en) * 2016-08-11 2019-07-03 New H3C Technologies Co., Ltd. CONFIGURATION OF FORWARDING GUIDELINES

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106209445B (zh) * 2016-07-05 2019-08-06 天津卓朗科技发展有限公司 一种通过网络部署的虚拟化数据中心
CN106354544A (zh) * 2016-08-24 2017-01-25 华为技术有限公司 虚拟机创建方法、系统以及主机
US11128490B2 (en) * 2019-04-26 2021-09-21 Microsoft Technology Licensing, Llc Enabling access to dedicated resources in a virtual network using top of rack switches
CN110581800B (zh) * 2019-08-23 2021-07-02 苏州浪潮智能科技有限公司 一种创建虚拟路由器接口的方法及装置、存储介质和设备
CN112702252B (zh) * 2019-10-23 2024-02-02 华为云计算技术有限公司 一种报文处理方法、系统及相关设备
CN111064649B (zh) * 2019-12-11 2022-02-15 锐捷网络股份有限公司 一种分层端口绑定实现方法、装置、控制设备及存储介质
CN112988320A (zh) * 2019-12-12 2021-06-18 华为技术有限公司 创建虚拟机的方法及装置
US20210271506A1 (en) * 2020-02-28 2021-09-02 Cisco Technology, Inc. Centralized management, provisioning and monitoring of cloud infrastructure
CN111447103B (zh) * 2020-03-09 2022-01-28 杭州海康威视系统技术有限公司 虚拟设备的管理系统及方法、电子设备及介质
CN111865749B (zh) * 2020-06-30 2023-04-18 新华三信息安全技术有限公司 一种端口绑定方法及装置
CN114070755B (zh) * 2020-07-29 2023-08-01 中移(苏州)软件技术有限公司 虚拟机网络流量确定方法、装置、电子设备和存储介质
CN112653608B (zh) * 2020-12-14 2023-01-20 聚好看科技股份有限公司 一种显示设备、移动终端及跨网数据传输的方法
CN112910790B (zh) * 2021-02-08 2023-06-30 网宿科技股份有限公司 导流系统及其方法
CN113407306B (zh) * 2021-06-10 2024-08-27 北京金山云网络技术有限公司 一种资源管理系统、方法、装置、设备及介质
CN113709017B (zh) * 2021-08-17 2022-10-04 中盈优创资讯科技有限公司 虚拟化流量的采集方法及装置
CN114615079A (zh) * 2022-03-31 2022-06-10 深信服科技股份有限公司 一种数据处理方法、装置、设备及可读存储介质
CN118509314A (zh) * 2023-02-09 2024-08-16 华为云计算技术有限公司 一种基于云管理平台的网络控制方法及云管理平台

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102255903A (zh) * 2011-07-07 2011-11-23 广州杰赛科技股份有限公司 一种云计算虚拟网络与物理网络隔离安全方法
CN102549977A (zh) * 2009-09-24 2012-07-04 日本电气株式会社 虚拟服务器间通信识别系统和虚拟服务器间通信识别方法
CN102938721A (zh) * 2004-02-13 2013-02-20 英特尔公司 用于动态地可扩展的虚拟交换机的装置和方法

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011198299A (ja) * 2010-03-23 2011-10-06 Fujitsu Ltd プログラム、コンピュータ、通信装置および通信制御システム
US20140006585A1 (en) * 2012-06-29 2014-01-02 Futurewei Technologies, Inc. Providing Mobility in Overlay Networks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102938721A (zh) * 2004-02-13 2013-02-20 英特尔公司 用于动态地可扩展的虚拟交换机的装置和方法
CN102549977A (zh) * 2009-09-24 2012-07-04 日本电气株式会社 虚拟服务器间通信识别系统和虚拟服务器间通信识别方法
CN102255903A (zh) * 2011-07-07 2011-11-23 广州杰赛科技股份有限公司 一种云计算虚拟网络与物理网络隔离安全方法

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107592208A (zh) * 2016-07-08 2018-01-16 中兴通讯股份有限公司 流量管理方法及装置
CN107592208B (zh) * 2016-07-08 2022-07-29 中兴通讯股份有限公司 流量管理方法及装置
EP3499799A4 (en) * 2016-08-11 2019-07-03 New H3C Technologies Co., Ltd. CONFIGURATION OF FORWARDING GUIDELINES
US11086653B2 (en) 2016-08-11 2021-08-10 New H3C Technologies Co., Ltd. Forwarding policy configuration
CN106603550A (zh) * 2016-12-28 2017-04-26 中国银联股份有限公司 一种网络隔离方法及装置
CN106603550B (zh) * 2016-12-28 2019-08-13 中国银联股份有限公司 一种网络隔离方法及装置
CN108809793A (zh) * 2017-04-27 2018-11-13 华为技术有限公司 一种数据传输方法、装置及系统

Also Published As

Publication number Publication date
CN105284080B (zh) 2018-12-07
CN105284080A (zh) 2016-01-27

Similar Documents

Publication Publication Date Title
WO2015149253A1 (zh) 数据中心的虚拟网络管理方法及数据中心系统
US11463279B2 (en) Method and apparatus for implementing a flexible virtual local area network
CN109660443B (zh) 基于sdn的物理设备与虚拟网络通信方法和系统
US11190375B2 (en) Data packet processing method, host, and system
JP6605713B2 (ja) クラウドコンピューティングシステムにおけるパケット処理方法、ホスト及びシステム
US10476699B2 (en) VLAN to VXLAN translation using VLAN-aware virtual machines
US9178828B2 (en) Architecture for agentless service insertion
EP2905930B1 (en) Processing method, apparatus and system for multicast
EP3091696B1 (en) Method and device for implementing virtual machine communication
US8670450B2 (en) Efficient software-based private VLAN solution for distributed virtual switches
CN107276783B (zh) 一种实现虚拟机统一管理及互通的方法、装置和系统
WO2018137369A1 (zh) 混合云管理方法、装置和计算设备
EP3197107B1 (en) Message transmission method and apparatus
WO2015172574A1 (zh) 一种发送报文的方法及设备
WO2018103043A1 (zh) 云计算系统中的报文处理方法及设备
US20150103692A1 (en) Host Traffic Driven Network Orchestration within Data Center Fabric
EP3125504B1 (en) Resource allocation method, packet communication method and device
WO2014134919A1 (zh) 同一租户内服务器间的通信控制方法及网络设备
CN105264837B (zh) 一种数据报文的传输系统、传输方法和设备
CN113647065B (zh) 虚拟网络拓扑

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201480000195.8

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14887764

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14887764

Country of ref document: EP

Kind code of ref document: A1