Connect public, paid and private patent data with Google Patents Public Datasets

Method and device for implementing load balancing and load balancing service system

Info

Publication number
WO2015192563A1
Authority
WO
Grant status
Application
Patent type
Prior art keywords
load
balancing
virtual
network
module
Prior art date
Application number
PCT/CN2014/088970
Other languages
French (fr)
Chinese (zh)
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

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L29/00Arrangements, apparatus, circuits or systems, not covered by a single one of groups H04L1/00 - H04L27/00 contains provisionally no documents
    • H04L29/02Communication control; Communication processing contains provisionally no documents
    • H04L29/06Communication control; Communication processing contains provisionally no documents characterised by a protocol
    • H04L29/08Transmission control procedure, e.g. data link level control procedure

Abstract

Provided are a method and device for implementing load balancing and load balancing service system, solving the problem of low performance of load balancing service. The method comprises: creating a virtual network system and a load balancing module according to a creation request, and connecting the created load balancing module to the virtual network system, the created virtual network system comprising at least one virtual machine; storing in the load balancing module the network information of the virtual machine in different network segments with the load balancing module; when a received data packet requiring load balancing is present in a virtual load balancing processing network, forwarding the data packet to the virtual machine by the load balancing module for processing. The solution of the present application can solve the problem of low performance of load balancing service.

Description

一种实现负载均衡的方法、装置及负载均衡服务系统 A method of load balancing, load balancing service system and apparatus 技术领域 FIELD

本发明涉及云计算领域,尤其涉及一种实现负载均衡的方法、装置及负载均衡服务系统。 The present invention relates to the cloud, and in particular, to a method of load balancing, load balancing services apparatus and system implementation.

背景技术 Background technique

随着互联网的发展,云计算的使用范围越来越广泛,云计算是一种基于互联网的计算方式,通过这种方式,可以实现将软硬件资源以及网络信息按计算机或者其他设备的需求进行共享。 With the development of the Internet, the use of cloud computing more widely, cloud computing is a way of Internet-based computing, in this way, can realize the hardware and software resources and network information needs to be shared by computers or other devices .

现有云计算中有三种服务模式: There are three existing cloud computing service models:

软件即服务(Software-as-a-Service,简称为SaaS):消费者使用应用程序,但并不掌控操作系统、硬件或运作的网络基础架构。 Software as a service (Software-as-a-Service, referred to as SaaS): Consumers use the application, but does not control the network infrastructure operating system, hardware or operations. 是一种服务观念的基础,软件服务供应商,以租赁的概念提供客户服务,而非购买,比较常见的模式是提供一组账号密码。 Is the basis for the concept of a service, software service providers to lease the concept of customer service, rather than buy, the more common pattern is to provide a set of account and password.

平台即服务(Platform-as-a-Service,简称为PaaS):消费者使用主机操作应用程序。 Platform as a Service (Platform-as-a-Service, referred to as PaaS): the consumer using the host operating application. 消费者掌控运作应用程序的环境(也拥有主机部分掌控权),但并不掌控操作系统、硬件或运作的网络基础架构。 Consumers control the operation of the application environment (also has control over host part), but does not control the network infrastructure operating system, hardware or operations. 平台通常是应用程序基础架构。 Platform is usually application infrastructure.

基础架构即服务(Infrastructure-as-a-Service,简称为IaaS):提供给消费者的服务是对所有设施的利用,包括处理、存储、网络和其它基本的计算资源,用户能够部署和运行任意软件,包括操作系统和应用程序。 Infrastructure as a service (Infrastructure-as-a-Service, referred to as IaaS): The service is available to consumers for the use of all facilities, including processing, storage, networks and other fundamental computing resources, users can deploy and run arbitrary software, including operating systems and applications. 消费者不管理或控制任何云计算基础设施,但能控制操作系统的选择、储存空间、部署的应用,也有可能获得有限制的网络组件(例如,防火墙,负载均衡器等)的控制。 The consumer does not manage or control any cloud computing infrastructure, but it can control the selection of the operating system, storage, deployed applications, it is also possible to obtain a restricted network components (eg, firewalls, load balancers, etc.) control.

图1是现有常见的一种云计算架构模式,在该模式中,用户通过控制台创建自己的云环境,例如可以创建虚机、创建网络、创建镜像模板等等;在现有技术中,云计算还扩充了其他的服务,比如负载均衡服务、防火墙、VPN(Virtual Private Network,虚拟专用网络)等等。 FIG 1 is a common type of conventional cloud computing architecture mode, in this mode, the user console to create their own cloud environment, for example, create a virtual machine, create the network, creating the template image and the like; in the prior art, cloud computing also expanded to other services, such as load balancing services, firewall, VPN (virtual private network, virtual private network), and so on.

在上述扩充的服务中,其中负载均衡服务是一种常见的网络设备,主要作用在于提供一种有效透明的方法扩展网络设备和服务器的带宽、增加吞吐量、加强网络数据处理能力、提高网络的灵活性和可用性等。 In the expanded service, wherein the load balancing service is a common network device, the main role is to provide an effective and transparent method to expand the bandwidth of the network devices and servers, increase throughput, enhance network data processing capabilities, improve the network flexibility and availability. 目前,云计算中的负载均衡服务通常设置 在用户的一个虚拟网络中,也即与用户的一个虚拟网络属于同一个二层网络,当负载均衡服务于该虚机网络中的网络设备时,直接就可以进行数据的转发,不需要寻址等额外操作;而对于其他与负载均衡服务不属于同一个二层网络的虚拟网络,当负载均衡服务于该虚拟网络中的网络设备时,需要通过路由寻址才可以进行数据的转发,在该情况下,当有大量的云计算服务需要处理时,会对云计算及负载均衡系统构成较大的冲击,所以,降低了负载均衡处理服务的性能。 Currently, the load balancing cloud services are typically provided at a user's virtual network, i.e. a virtual network with the same user belonging to a Layer 2 network, load balancing when the virtual machine network services in a network device, direct additional operations can be performed in the forwarding data, no other address; for other load balancing service does not belong to the same virtual network a Layer 2 network, and when the load balancing service network to the virtual network device need to route when addressing data can be forwarded, in this case, when there are a large number of cloud services need to be addressed, and will have cloud load balancing system including a large impact, thus, reducing the performance of the load balance processing service.

因此,在云计算中如何提高负载均衡服务的服务性能,是需要解决的关键问题。 Therefore, how to improve service performance load balancing services in the cloud, it is the key issue to be resolved.

发明内容 SUMMARY

本发明要解决的技术问题在于,提供一种实现负载均衡的方法、装置及负载均衡服务系统,能够解决负载均衡服务性能低的问题。 The present invention is to solve the technical problem is to provide a method of load balancing, load balancing service system and apparatus capable of addressing the low load balancing service performance issues.

为了将解决上述问题,本申请实施例提供了一种实现负载均衡的方法,包括: In order to solve the above problems, the present embodiment provides a method of load balancing comprising:

根据创建请求分别创建虚拟网络系统和负载均衡模块,并将所述负载均衡模块接入所述虚拟网络系统,所述虚拟网络系统包括至少一个虚拟机; Respectively, and creating a virtual network system according to the load balancing module creation request, and the load equalization system, the virtual network access module, the virtual network system comprising at least one virtual machine;

将与所述负载均衡模块不在同一个网段的虚拟机的网络信息存储在负载均衡模块中,并将所述虚拟机配置为负载均衡模块后端的应用服务节点; The load balancing module is not the same network segment information of virtual machines are stored in the load balancing module and the virtual machine is configured to load the application service node rear balancing module;

需要负载均衡处理的数据包通过所述负载均衡模块转发到所述虚拟机中进行处理。 We need to load balance processing data packets by the load balancing processing module forwards to the virtual machine.

在本发明一实施例中,所述创建虚拟网络系统和负载均衡模块,并将所述负载均衡模块接入所述虚拟网络系统具体为: In an embodiment of the present invention, the system and create a virtual network load balancing module and the load balancing module to access the virtual network system is specifically:

创建虚拟子网,所述虚拟子网包括:一级虚拟子网和/或多级虚拟子网;所述一级虚拟子网包括至少一个通过虚拟交换机接入虚拟网络系统的虚拟机;所述多级虚拟子网包括至少一个通过虚拟交换机接入虚拟网络系统的虚拟机;所述多级虚拟子网中的虚拟交换机通过其他至少一个一级虚拟子网中的虚拟交换机逐级接入虚拟网络系统; Creating virtual subnet, a virtual subnet comprising: a virtual subnet and / or multi-stage virtual subnet; a virtual subnet comprising said at least one virtual network access systems through a virtual machine virtual switch; the multilevel access virtual subnet comprises at least a virtual network system by a virtual machine virtual switch; the multistage virtual subnet virtual switch through one another at least one virtual subnet virtual cascade switch virtual network access system;

创建负载均衡模块,并将所述负载均衡模块直接接入虚拟网络系统。 Create a load balancing module and the load balancing module is directly connected to the virtual network system.

在本发明一实施例中,所述创建虚拟子网具体为:创建至少一个一级虚拟子网,将一级虚拟子网中的虚拟交换机直接接入虚拟网络系统。 In an embodiment of the present invention, the creating virtual subnet is specifically: creating at least one a virtual subnet, will be a virtual subnet directly connected to the virtual switch in the virtual network system.

在本发明一实施例中,所述一级虚拟子网在所述虚拟网络系统中通过以下方式中的任意一种实现网络隔离:虚拟局域网(Virtual Local Area Network,简称为VLAN)、通用路由封装(Generic Routing Encapsulation,简称GRE)、虚拟可扩展局域网(Virtual eXtensible Local Area Network,简称为VXLAN);对应在所述一级虚拟子网中的虚拟机的网络信息为以下信息中的任意一种:VLAN信息、GRE信息、VXLAN信息。 In an embodiment of the present invention, the virtual subnet for implementing a network isolation by any of the following ways in the virtual network systems: the virtual local area network (Virtual Local Area Network, abbreviated as the VLAN), Generic Routing Encapsulation (Generic Routing Encapsulation, referred GRE), scalable virtual local area network (virtual eXtensible Local Area network, abbreviated as VXLAN); network information corresponding to the one virtual subnet virtual machine is any one of the following information: VLAN information, GRE information, VXLAN information.

在本发明一实施例中,所述将与所述负载均衡模块不在同一个网段的虚拟机的网络信息存储在负载均衡模块中具体为: In an embodiment of the present invention, will not be the same network with the network load balancing module information storage virtual machine is load balancing module specifically:

获取至少一个与所述负载均衡模块不在同一个网段的虚拟机的网络信息; Acquiring network information of said at least one load balancing module not on the same segment of the virtual machine;

根据获取的所述虚拟机的网络信息创建对应于各虚拟机的虚拟网络设备或流表信息,并将其保存在负载均衡模块中。 Creating a virtual network device or a flow table corresponding to the virtual machine information according to the network information acquired by the virtual machine, and save it in the load balancing module.

为了解决上述问题,本申请还提供了一种实现负载均衡的装置,包括:创建模块,处理模块和转发模块; To solve the above problems, the present application also provides an apparatus for load balancing, comprising: a creation module, the processing module and the forwarding module;

所述创建模块设置为根据创建请求分别创建虚拟网络系统和负载均衡模块,并将所述负载均衡模块接入所述虚拟网络系统,所述虚拟网络系统包括至少一个虚拟机; The creating module to create a virtual network system is provided and load balancing module according to a request were created, and the load equalization system, the virtual network access module, the virtual network system comprising at least one virtual machine;

所述处理模块设置为将与所述负载均衡模块不在同一个网段的虚拟机的网络信息存储在负载均衡模块中,并将所述虚拟机配置为负载均衡模块后端的应用服务节点; The processing module is arranged to the load balancing module not on the same network segment information of virtual machines are stored in the load balancing module and the virtual machine is configured to load the application service node rear balancing module;

所述转发模块设置为将需要负载均衡处理的数据包通过所述负载均衡模块转发到所述虚拟机中进行处理。 The forwarding module will need to load balance processing packets processed by the equalization module forwards the virtual machine to the load.

在本发明一实施例中,所述创建模块包括子网创建单元和负载均衡创建单元; In an embodiment of the present invention, the creation module comprises a sub-unit and a creating unit creating a load balancing;

所述子网创建单元设置为创建虚拟子网,所述虚拟子网包括:一级虚拟子网和/或多级虚拟子网;所述一级虚拟子网包括至少一个通过虚拟交换机接入虚拟网络系统的虚拟机;所述多级虚拟子网中的虚拟交换机通过其他至少一个一级虚拟子网中的虚拟交换机逐级接入虚拟网络系统; The subnetwork creating unit arranged to create a virtual subnet, a virtual subnet comprising: a virtual subnet and / or multi-stage virtual subnet; a virtual subnet comprising said at least one virtual access via virtual switch virtual machine network system; the multi-level virtual subnet virtual switch through one another at least one virtual subnet virtual cascade switch access the virtual network system;

所述负载均衡创建单元设置为创建负载均衡模块,并将所述负载均衡模块直接接入虚拟网络系统。 The load balancing creating unit arranged to create a load balancing module and the load balancing module is directly connected to the virtual network system.

在本发明一实施例中,所述子网创建单元创建虚拟子网具体为:创建至少一个一级虚拟子网,将一级虚拟子网中的虚拟交换机直接接入虚拟网络系统。 In an embodiment of the present invention, the creating unit creates the subnet virtual subnet is specifically: creating at least one a virtual subnet, will be a virtual subnet directly connected to the virtual switch in the virtual network system.

在本发明一实施例中,所述子网创建单元创建的虚拟子网在所述虚拟网络系统中通过以下方式中的任意一种实现网络隔离:VLAN、GRE、VXLAN;对应在所述一级虚拟子网中的虚拟机的网络信息为以下信息中的任意一种:VLAN信息、GRE信息、VXLAN信息。 In an embodiment of the present invention, the sub-network creating a virtual subnet for network unit created by any isolation in the following manner in the virtual network system: VLAN, GRE, VXLAN; one corresponding to the network information virtual subnet virtual machine is any one of the following information: VLAN information, GRE information, VXLAN information.

在本发明一实施例中,处理模块还包括获取单元和创建单元; In an embodiment of the present invention, the processing module further includes an acquisition unit and a creating unit;

所述获取单元设置为获取至少一个与所述负载均衡模块不在同一个网段的虚拟机的网络信息; The network information acquisition unit arranged to acquire at least one load balancing module is not in the same segment of the virtual machine;

所述创建单元设置为根据获取的所述虚拟机的网络信息创建对应于各虚拟机的虚拟网络设备或者流表信息,并将其保存在负载均衡模块中。 The creating unit is provided, or a virtual network device corresponding to the flow table information created according to each virtual machine to the virtual machine network information is acquired, and save it in the load balancing module.

为了解决上述问题,本申请还提供了一种负载均衡服务系统,包括:虚拟网络系统和负载均衡模块; In order to solve the above problems, the present application also provides a load-balancing service system comprising: a virtual network systems and load balancing module;

所述负载均衡模块接入所述虚拟网络系统,并为所述虚拟网络系统中的至少一个虚拟机提供负载均衡服务; The load balancing system, the virtual network access module, and provides load balancing of the virtual network system serving at least one virtual machine;

所述负载均衡模块设置为存储与其不在同一个网段的虚拟机的网络信息,同时将所述的虚拟机配置为其后端服务节点,以及用于将需要负载均衡处理的数据包通过所述负载均衡模块转发到所述虚拟机中进行处理。 The load balancing module configured to store network information is not the same as their network virtual machine while the virtual machine configuration for the backend services node, and the need for load equalization processing by said data packet load balancing module forwards to the virtual machine for processing.

本发明的有益效果是: Advantageous effects of the invention are:

本发明提供一种实现负载均衡的方法、装置及负载均衡服务系统,解决了负载均衡服务性能低的问题。 The present invention provides a method of load balancing, load balancing service system and apparatus to solve the low load balancing service performance issues. 本发明的内容是根据创建请求创建虚拟网络系统和负载均衡模块,并将创建的负载均衡模块接入虚拟网络系统中,创建的虚拟网络系统中包括至少一个虚拟机;将与负载均衡模块不在同一个网段的虚拟机的网络信息存储在负载均衡模块中;当接收到的需要均衡处理的数据包存在于虚拟负载均衡处理网路中时,将该数据包通过所述负载均衡模块转发到所述虚拟机中进行处理。 The present invention is a system and create a virtual network load balancing module according to a request to create and access a virtual network load balancing module system is created, the virtual network created by the system including at least one virtual machine; the load balancing module is not the same a network segment information of virtual machines are stored in the load balancing module; when the received packets require equalization processing exists in the virtual network the load balancing process, the packet is forwarded by the load balancing module to the said virtual machine processing. 可见,本申请与现有技术相比较,通过将负载均衡模块和虚拟机配置到虚拟负载均衡处理网络中,使得负载均衡模块与任何一个虚拟机之间都处于同一个二层网络环境,当需要进行数据包的转发时,不需要进行路由寻址,直接通过负载均衡模块即可实现数据的直接转发,增强了负载均衡处理数据包的性能。 Be seen, the present application is related to prior art compared by the load balancing module and a virtual machine configured to load balance processing virtual network, so that the same are in a Layer-2 network load balancing between any module and a virtual machine, when it is desired when forwarding packets, and does not require routing and forwarding data can be achieved directly through the direct load balancing module, enhances the performance of the load balancing process of the packet. 因此,采用本身请中的方案,能够解决负载均衡服务性能低的问题。 Therefore, in the program itself, please, can solve the low load-balancing service performance issues.

附图说明 BRIEF DESCRIPTION

图1是本发明提供的现有技术中的一种云计算系统网络架构; FIG. 1 is a prior art cloud the present invention provides a computing system in a network architecture;

图2是本发明第一实施例提供的实现负载均衡的方法流程图; FIG 2 is a load balancing method according to a flowchart of a first embodiment of the present invention;

图3是本发明第一实施例提供的虚拟子网为一级虚拟子网时的虚拟网络系统和负载均衡模块组成的云计算网络架构图; FIG 3 is a schematic diagram of a cloud computing network virtual subnet is provided in a virtual subnet of the virtual network system and load balancing modules of the first embodiment of the present invention;

图4是本发明第二实施例提供的实现负载均衡的装置模块结构示意图; 4 is a schematic block configuration load balancing apparatus of a second embodiment of the present invention provides;

图5是本发明第三实施例中提供的负载均衡服务系统结构示意图; FIG 5 is a schematic diagram of a load balancing service system structure of a third embodiment of the present invention is provided;

图6是本发明第四实施例提供的一种在云计算中实现负载均衡创建的方法流程图。 FIG 6 is a fourth embodiment of the method of the present invention to provide load balancing in cloud created flowchart.

具体实施方式 detailed description

本实施例涉及在云计算中实现负载均衡的方法,进一步地,本实施例实际涉及在云计算中如何提高负载均衡服务性能的方法;应当理解,尽管本实施例公开包括关于云计算中提高负载均衡性能的详细描述,但其中记载的技术方案 The present embodiment relates to a method of load balancing in a cloud, further, the present embodiment actually directed to a method how to improve the load balancing service performance in the cloud; It should be understood that although the present embodiment of the disclosure includes a cloud increase the load balanced properties detailed description, wherein the technical solutions described in

的实现却不限于云计算环境。 Implementation is not limited to a cloud computing environment. 而是本发明的各实施例能够结合现在己知或以后开发的任何其它类型的计算环境也可实现的方案。 But various embodiments of the present invention capable of binding to any other type of computing program environment now known or later developed may also be implemented.

云计算是一种服务交付模式,用于对共享的可配置计算资源池进行方便、按需的网络访问。 Cloud computing is a model of service delivery for the shared pool of computing resources can be configured for convenient, on-demand network access. 可配置计算资源是能够以最小的管理成本或与服务提供者进行最少的交互就能快速部署和释放的资源,例如可以是网络、网络带宽、服务器、处理、内存、存储、应用、虚拟机和服务。 Configurable computing resources that can be minimal interaction with minimal management effort or service provider will be able to quickly deploy and release of resources, for example, be a network, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and service. 这种云模式可以包括至少五个特征、至少三个服务模型(背景技术中已经说明)和至少四个部署模型。 This cloud model may include at least five characteristics, at least three service models (already described in the background art) and at least four deployment models.

特征包括: Features include:

按需自助式服务:云的消费者在无需与服务提供者进行人为交互的情况下能够单方面自动地按需部署诸如服务器时间和网络存储等的计算能力。 Demand self-service: under a cloud consumer without requiring human interaction with the service provider can unilaterally provision computing capabilities, as needed automatically, such as server time and network storage, etc.

广泛的网络接入:计算能力可以通过标准机制在网络上获取,这种标准机制促进了通过不同种类的瘦客户机平台或厚客户机平台(例如移动电话、膝上型电脑、个人数字助理PDA)对云的使用。 Broad network access: capabilities are available over the network through standard mechanisms, such standard mechanisms that promote use by heterogeneous thin or thick client platforms platforms (eg, mobile phones, laptop computers, personal digital assistant (PDA) ) use of the cloud.

资源池:提供者的计算资源被归入资源池并通过多租户(multi-tenant)模式服务于多重消费者,其中按需将不同的实体资源和虚拟资源动态地分配和再分配。 Resource pooling: the provider's computing resources are classified by resource pool and multi-tenant (multi-tenant) mode to serve multiple consumers, which demand different physical and virtual resources dynamically assigned and reassigned. 一般情况下,消费者不能控制或甚至并不知晓所提供的资源的确切位置,但可以在较高抽象程度上指定位置(例如国家、州或数据中心),因此具有位置无关性。 Under normal circumstances, the consumer has no control or knowledge over the exact location of the provided resources, but you can specify the location (eg, country, state, or datacenter) at a higher level of abstraction, it has location independence.

迅速弹性:能够迅速、有弹性地(有时是自动地)部署计算能力,以实现快速扩展,并且能迅速释放来快速缩小。 Rapid elasticity: capabilities can be rapidly and flexibly (in some cases automatically) provision computing capabilities, to quickly scale out and rapidly released to quickly scale. 在消费者看来,用于部署的可用计算能力往往显得是无限的,并能在任意时候都能获取任意数量的计算能力。 To the consumer, the capabilities available for deployment often appear to be unlimited and can be purchased in any number of computing power at any time.

可测量的服务:云系统通过利用适于服务类型(例如存储、处理、带宽和活跃消费者帐号)的某种抽象程度的计量能力,自动地控制和优化资源效用。 Measured service: cloud systems by using a suitable type of service (e.g., storage, processing, bandwidth, and active consumer accounts) of a certain level of abstraction metering capability, automatic control and optimize resource utility. 可以监测、控制和报告资源使用情况,为所用服务的提供者和消费者双方提供透明度。 You can monitor, control and report on resource usage for the providers and consumers with the services of transparency on both sides.

部署模型如下: Deployment Models are as follows:

私有云:云基础架构单独为某个组织运行。 Private cloud: the cloud infrastructure is operated solely for an organization. 云基础架构可以由该组织或第三方管理并且可以存在于该组织内部或外部。 Cloud infrastructure and can be present in the internal or external to the organization by the organization or a third-party management.

共同体云:云基础架构被若干组织共享并支持有共同利害关系(例如任务使命、安全要求、政策和合规考虑)的特定共同体。 Community cloud: the cloud infrastructure is shared by several organizations and supports a specific community that has shared concerns (eg, mission, security requirements, policy, and compliance considerations). 共同体云可以由共同体内的多个组织或第三方管理并且可以存在于该共同体内部或外部。 It may be managed and may be present in the premises or by a plurality of external or third-party management of common tissue in vivo.

公共云:云基础架构向公众或大型产业群提供并由出售云服务的组织拥有。 Public cloud: the cloud infrastructure is made available by an organization selling cloud services have a public or a large industry group.

混合云:云基础架构由两个或更多部署模型的云(私有云、共同体云或公共云)组成,这些云依然是独特的实体,但是通过使数据和应用能够移植的标准化技术或私有技术(例如用于云之间的负载平衡的云突发流量分担技术)绑定在一起。 Hybrid cloud: the cloud infrastructure is two or more cloud deployment model (private cloud, community cloud, or public cloud) composition, that remain unique entities but the data and application portability standardized or proprietary technology (e.g., cloud bursting for load balancing between clouds sharing technology) are bound together.

云计算环境是面向服务的,特点集中在无状态性、低祸合性、模块性和语意的互操作性。 Cloud computing environment is service oriented with a focus on interoperability stateless, low disaster together, modularity, and semantic. 云计算的核心是包含互连节点网络的基础架构。 The core of cloud computing is an infrastructure comprising a network of interconnected nodes.

本实施例中,根据创建请求创建虚拟网络系统和负载均衡模块,并将创建的负载均衡模块接入虚拟网络系统中,创建的虚拟网络系统中包括至少一个虚拟机;将与负载均衡模块不在同一个网段的虚拟机的网络信息存储在负载均衡模块中,并将所述虚拟机配置为负载均衡模块后端的应用服务节点;当接收到的需要均衡处理的数据包时,将该数据包通过负载均衡模块转发到虚拟机中进行处理。 Load balancing module according to the present embodiment, and creating a virtual network system according to the load balancing module creation request, and creating a virtual network access system, the system creates a virtual network comprises at least one virtual machine; the load balancing module is not the same a network segment information of virtual machines are stored in the load balancing module and the virtual machine is configured to load balancing module backend application service node; when the received packets require equalization processing, by the data packet load balancing module forwarded to the virtual machine for processing. 在本发明的一实施例中,创建虚拟网络系统和负载均衡模块的具体方式为:创建虚拟子网,该虚拟子网包括:一级虚拟子网和/或一个多级虚拟子网;该一级虚拟子网包括至少一个通过虚拟交换机接 入虚拟网络的虚拟机;该多级虚拟子网中的虚拟交换机通过其他至少一个一级虚拟子网中的虚拟交换机逐级接入虚拟网络;创建负载均衡模块,并将负载均衡模块直接接入虚拟网络系统;本实施例中,创建的云计算网络架构中,将与负载均衡模块不在同一个网段的虚拟机配置为负载均衡模块后端的应用服务节点,如此构建云计算网络架构的目的在于使得负载均衡模块与任何一个虚拟机即使不处于相同的网段(二层网络),也可不需要经过路由寻址即可进行数据包转发。 DETAILED DESCRIPTION In an embodiment of the present invention, a system and create a virtual network load balancing module for: creating virtual subnet, the virtual subnet comprising: a virtual subnet and / or a multi-level virtual subnets; the a stage comprises at least one virtual subnet virtual network access by a virtual machine virtual switch; the multi-level virtual subnet virtual switch through one another at least one virtual subnet virtual cascade switch access virtual network; creating a load equalization module, and the load balancing module directly connected to the virtual network system; embodiment according to the present embodiment, the cloud computing network architecture created, the load balancing module is not in the same segment of the virtual machine is configured to load balancing module services application backend node, so the purpose of constructing a cloud computing network architecture is that the load balancing module and a virtual machine without any in the same network segment (network Layer), also does not require routing address to transmit the data packet. 采用本实施例中的方案,避免现有技术中当需要服务的虚拟机与负载均衡系统不在同一个网段时,需要进行路由寻址才可进行数据转发的问题,因此,采用本实施例中的方法能够解决负载均衡服务性能低的问题。 Employed in the embodiment of the present embodiment, a virtual machine and to avoid the prior art load balancing system and services are not required when a same network segment, to be routed to address the problem of data forwarding can be conducted, therefore, the present embodiment the method can solve the low load-balancing service performance issues.

为了对本实施例能够更好的理解,下面结合具体的实施例对本申请的内容做进一步说明: In order to better understanding of the embodiment according to the present embodiment, the following embodiments with reference to specific embodiments of the present disclosure will be further described:

在本实施例中,所使用的术语只是为了描述特定实施例,而不对本公开作出限制。 In the present embodiment, the terminology used is for the purpose of describing particular embodiments, and not to limit the present disclosure. 例如使用的,单数形式“一”、“一个”以及“所述”“该”也包括复数形式,除非上下文明确地指出。 For example, the singular forms "a", "an" and "the" and "the" include plural referents unless the context clearly indicates otherwise. 此外,术语“一”、“一个”等等的使用不表示对数量的限制,而是表示被引用的项中的至少一个的存在。 In addition, the terms "a", "an" and the like do not denote a limitation of quantity, but rather denote the presence of at least one of the referenced item. 进一步可以理解,本说明中所使用的术语“包括”表示指定的特点、步骤、操作、元件和/或组件的存在,但是不排除一个或多个其他特点、步骤、操作、元件、组件和/或其组合的存在或添加。 It is further understood that the terms used in this specification, "comprising" indicates that the specified features, steps, operations, elements, and / or components, but do not preclude one or more other features, steps, operations, elements, components, and / or a combination of the presence or addition.

实施例一: Example One:

图2为本实施例提供的一种实现负载均衡的方法流程图,包括: A method of load balancing according to an embodiment of the present flow chart in FIG. 2, comprising:

步骤101:根据创建请求分别创建包含有虚拟机的虚拟网络系统和负载均衡模块; Step 101: create a virtual network system respectively and load balancing module comprises a virtual machine created in accordance with a request;

步骤102:将与负载均衡模块不在同一个网段的虚拟机的网络信息存储在负载均衡模块中,并将所述虚拟机配置为负载均衡模块后端的应用服务节点; Step 102: The network load balancing module stores information on different network segments in the virtual machine load balancing module and the virtual machine is configured to load the application service node rear balancing module;

步骤103:需要转发的数据包通过负载均衡模块转发到需要的虚拟机中进行处理。 Step 103: forward the packet to be forwarded by the load balancing module for processing to the desired virtual machine.

在本实施例中,发起创建请求的主体包括用户,用户通过操控台发起创建请求,系统接收到用户发起的创建请求后,根据创建请求的内容,创建用户所需要的虚拟网络架构,在本实施例中,根据用户发起的虚拟网络系统创建请求创建的虚拟网络系统至少包括:虚拟网络,网关,路由以及虚拟机等,并将创建的网关,路由以及虚拟机加入虚拟网络;根据用户发起的创建负载均衡服务请求创建负载均衡模块,并将创建 的虚拟配置为负载均衡模块后端的应用服务节点。 After the present embodiment, the initiating body creation request includes a user, the user console to initiate creation request, the system receives a request to create a user-initiated, according to the content creation request to create a user desired virtual network architecture, in the present embodiment embodiment, a request to create the virtual network system according to user-initiated to create virtual network system comprising at least: a virtual network, the gateway, the routing and virtual machines and virtual network gateway added created routes and a virtual machine; initiated by the user to create load balancing service requests to create a load balancing module and configured to create a virtual application service module back-end node load balancing. 在本实施例中,创建的该负载均衡模块可以为用户提供更高性能的负载均衡服务。 In the present embodiment, the load balancing module may create higher performance load balancing services for users.

在步骤101中,根据用户请求分别创建虚拟网络系统和负载均衡模块,创建的该虚拟网络系统包括至少一个虚拟机;在本实施例中,当创建的所述虚拟机为两个以上时,所述虚拟机可以属于同一个二层网络,也可属于不同的二层网络。 In step 101 created according to a user request in each of the virtual network system and a load balancing module, the system creates a virtual network comprises at least one virtual machine; In the present embodiment, when the virtual machine is created by two or more, the said virtual machine may belong to the same network Layer, Layer may belong to different networks. 在本实施例中,在创建完成虚拟网络系统和负载均衡模块以后,将创建的负载均衡模块接入创建的虚拟网络系统,保证负载均衡模块可以与虚拟网络系统网络互联。 In the present embodiment, after the completion of creating the virtual network system and a load balancing module, the virtual network system will create a load balancing module to create an access, to ensure the load balance module may be interconnected with the network the virtual network system.

在本实施例中所述虚拟网络系统是指在云计算服务中为用户提供的虚拟3层网络,在该虚拟网络中用户可以创建自己的子网、路由、网关等等网络设备,也可以对不同网络进行互通设置操作,网络的表现和物理网络完全一致。 Embodiment the virtual network system in the present embodiment is a virtual network layer 3 to provide users with services in the cloud, users can create their own subnet routing, gateway, etc. in the virtual network device in the network may also different network interworking setting operation, and performance of the network consistent physical network.

在步骤102中,获取与负载均衡模块不在同一个网段的虚拟机的网络信息(该网络信息是之前已经配置好的网络信息),并将该网络信息存储在负载均衡模块中,同时,并将该虚拟机配置为负载均衡模块后端的应用服务节点。 In step 102, the load balancing module acquires the network information is not the same virtual machine network (the network information is previously configured network information), and the network load balancing information stored in the module, at the same time, and the virtual machine is configured to load balancing module back-end application service node. 在本实施例中,所述的虚拟机与负载均衡模块不在同一个网段优选为虚拟与负载均衡模块不在同一个二层网络。 In the present embodiment, the virtual machine and the load balancing module on different network segments preferably dummy load balancing module not on the same Layer 2 network.

在本实施例中,通过该负载均衡模块可实现直接和虚拟机进行通讯,不需要负载均衡模块一定要和虚拟机在一个网段中。 In the present embodiment, the communication and the virtual machine, need not load balancing module and the virtual machine must be in a subnet directly to the load balancing module may be implemented through.

优选地,在本实施例中,根据创建请求创建负载均衡模块时还包括配置负载均衡模块的负载均衡算法,健康检查和会话保持功能等功能: Preferably, in the present embodiment, the load balancing module according to create a request to create a load balancing algorithm it further includes load balancing module configuration, and session maintaining health check function features:

所述负载均衡算法,包括轮询、比率、优先权、最少连接数、最快响应时间等等通用的负载均衡算法,也包括哈希算法、基于策略的负载均衡、基于数据包的内容分发等等高级算法。 The load balancing algorithm, including polling rate, priority, minimum number of connections, the fastest response time, etc. General load balancing algorithms, including hashing algorithms, based on load balancing strategy, based on the contents of the packet distribution, etc. and other advanced algorithms.

所述健康检查,是指检查服务器开放的各种服务的可用状态。 The health check, refers to check the status of available server and open a variety of services. 负载均衡设备一般会配置各种健康检查方法,例如Ping,传输控制协议(Transfer Control Protocol,简称TCP),用户数据协议(User Date Protocol,简称UDP),超文本传输协议(Hypertext Transfer Protocol,简称HTTP),文件传输协议(File Transfer Protocol,简称FTP),域名系统(Domain Name System,DNS)等。 Load balancing device typically configure a variety of health inspection methods, such as Ping, Transmission Control Protocol (Transfer Control Protocol, referred to as TCP), User Datagram Protocol (User Date Protocol, referred to as UDP), Hypertext Transfer Protocol (Hypertext Transfer Protocol, HTTP for short ), file transfer protocol (file transfer protocol, referred to as FTP), DNS (domain Name system, DNS) and so on. Ping属于第三层的健康检查,用于检查服务器IP的连通性,而TCP/UDP属于第四层的健康检查,用于检查服务端口的UP/DOWN,如果要检查的更准确,就要用到基于7层的健康检查,例如创建一个HTTP健康检查,Get一个页面回来,并且检查页面内容是否包含一个指定的字符串,如果包含,则服 务是UP的,如果不包含或者取不回页面,就认为该服务器的Web服务是不可用(DOWN)的。 Ping belongs to the third layer health checks for server connectivity check IP, and TCP / UDP health check belonging to the fourth floor for inspection service port UP / DOWN, if you want to check more accurately, we must use based on a health check to 7 layers, such as creating a HTTP health check, get back a page, and the page content to check whether a string containing a specified If so, then the service is UP, if not contained, or not get back to the page, It considers the server's Web service is not available (DOWN) of.

所述会话保持,是指保持会话的连续性和一致性,由于服务器之间很难做到实时同步用户访问信息,这就要求把用户的前后访问会话保持到一台服务器上来处理。 Holding the session, it refers to maintaining session continuity and consistency, since it is difficult to achieve real-time synchronization information between a user access server, which requires access to the user before and after the session to a server holding up process. 负载均衡设备一般会默认配置一些会话保持的选项,例如源地址的会话保持,Cookie会话保持等,基于不同的应用要配置不同的会话保持,否则会引起负载的不均衡甚至访问异常。 Load balancing device will generally default configuration session to keep some options, such as source address of a session to maintain, Cookie session hold, etc., depending on the application you want to configure different session remain, otherwise it will cause uneven load even access exception.

在步骤103中,当接收到需要进行负载均衡处理的数据包时,优选地将该数据包根据负载均衡模块中的网络信息将接收到的数据包转发到虚拟机进行处理。 In step 103, upon receiving the packet load balancing process is required, preferably forwarding the data packet according to the network load balancing module information in the received packet to the virtual machine process.

优选地,在本实施例中,创建的该负载均衡模块提供的负载均衡服务可以通过硬件实现,也可以通过软件实现,具体实现方式在本实施例中不做限制。 Preferably, in the present embodiment, the load balancing service is created to provide load balancing module may be implemented by hardware, may be realized by software, a particular implementation of the present embodiment is not limited to the embodiment.

在本实施例中,优选该负载均衡模块为进行负载均衡处理的数据包提供对外地址,其中,该对外地址可以为用户自己创建的虚拟网络的地址,也可以直接为对外服务的公网地址,在本实施例中不做进一步限定。 In the present embodiment, it is preferred that the load balancing module provides the external address for data packet load balancing process, wherein the external address may be the address of the virtual network user-created or directly to the external services public network address, It is not further defined in the present embodiment.

进一步地,在本实施例中,根据创建请求创建虚拟网络以及负载均衡模块的具体方式包括: Further, in the present embodiment, and creating a virtual network load balancing module according DETAILED creation request comprises:

创建虚拟子网,创建的该虚拟子网包括一级虚拟子网和/或多级虚拟子网;优选地,在本实施例中,创建的该虚拟子网还包括创建虚拟机,网关,或者路由中的至少一项。 Creating virtual subnet, create the virtual subnet comprising a virtual subnet and / or multi-stage virtual subnet; Preferably, the virtual subnet in the present embodiment, the creating further comprises creating virtual machines, gateways, or at least one route.

创建负载均衡模块,并将创建的负载均衡模块直接接入虚拟网络系统。 Create a load balancing module and load balancing module creates direct access to virtual network system.

在本实施例中,所述的一级虚拟子网包括至少一个通过虚拟交换机接入虚拟网络系统的虚拟机,可理解为,该一级虚拟子网中只有第一级虚拟交换机控制至少一个虚拟机;具体的当负载均衡模块转发接收到的数据包时,由第一级虚拟交换机将接收到的数据包转发给虚拟机;该多级虚拟子网包括至少一个通过虚拟交换机接入虚拟网络系统的虚拟机;该多级虚拟子网中的虚拟交换机通过其他至少一个一级虚拟子网中的虚拟交换机逐级接入虚拟网络系统,也即可理解为该多级虚拟子网是通过至少两个虚拟交换机对虚拟机进行的逐级控制,该逐级控制可以理解为第一级虚拟交换机控制至少一个虚拟机和至少一个第二级虚拟交换机,该第二级虚拟交换机同时又控制多个虚拟机;当然还可包括更多级的虚拟交换机以及虚拟机;具体的当负载均衡模块转发数据包 In the present embodiment, the virtual subnet comprises at least one of a virtual network system access by a virtual machine virtual switch, it is understood that a virtual subnet only the first stage at least one virtual control virtual switch machine; when a specific load balancing module forwards the received data packet, virtual switch by the first stage of the received data packet to the virtual machine; the multistage virtual subnet virtual network comprises at least one access system via the virtual switch virtual machine; the multi-level virtual subnet virtual switch through one another at least one virtual subnet virtual cascade switch access the virtual network system, it can be appreciated that a multi-stage by at least two virtual subnet step control virtual switch is a virtual machine, the control will be appreciated that the control stepwise least one virtual machine and the virtual switch at least a second stage the first stage virtual switch, the virtual switch of the second stage while controlling the plurality of virtual machine; of course also include more stages of the virtual machine and the virtual switch; particularly when the load balancing module to forward the packet ,先通过第一级虚拟交换机将数据转发,如果在该级转发中没有找到需要的虚 拟机,则再通过第二级虚拟交换机将数据转发到需要的虚拟交换机中进行处理,当然还可包括更多级的虚拟交换机以及虚拟机。 , The first stage by a first virtual switch data forwarding, if desired virtual machine not found in the forwarding stage, the second stage through the virtual switch forwards the processed data to the virtual switch in need, of course also comprise more multi-level virtual switches and virtual machines.

在本实施例中,优选创建的虚拟子网为至少一个一级虚拟子网,将创建的该至少一个一级虚拟子网通过虚拟交换机直接接入虚拟网络系统;在本实施例中,优选所述的一级虚拟子网是指该网络中包括一个控制或者连接至少一个虚拟机的虚拟交换机,由该虚拟交换机和控制或连接的至少一个虚拟机构成了一个一级虚拟子网;将虚拟机接入虚拟网络系统也可以理解为构建虚拟机与虚拟网络之间的数据转发的网络互通关系。 In the present embodiment, the virtual subnet is created preferably at least one primary virtual subnet, will create at least one virtual subnets a virtual switch directly access the virtual network system; in the present embodiment, preferably the a virtual subnet that said means comprises a control network connected to a virtual switch or the at least one virtual machine by the virtual switch and control means or at least one virtual connection into a one virtual subnet; virtual machine access can also be appreciated that the virtual network system for constructing a data network interworking relationship between virtual machines and virtual networks forwarding.

为了对本实施例进一步说明,图3是本实施例中当创建的虚拟子网为一级虚拟子网时,虚拟网络系统和负载均衡模块构成的云计算网络架构图;上述图3是对本实施例的具体说明,优选该虚拟子网中的虚拟机与负载均衡模块不在同一个网段,当然在一个虚拟网络系统中也可以同时包括一级虚拟子网和多级虚拟子网。 For further explanation of the embodiment, FIG. 3 is a schematic diagram of a cloud computing network when creating virtual subnet embodiment of the present embodiment is a virtual subnet, the virtual network system configuration and load balancing module; FIG. 3 is the above-described embodiment of the present the detailed description, preferably the virtual machine and the virtual subnet load balancing module is not in the same network segment, of course, a virtual network system may also comprise a virtual subnet and a virtual subnet multistage simultaneously.

当有数据包进入时,图3的云计算网络架构处理数据包的具体方式为: When a packet enters the cloud computing network architecture of FIG. 3 DETAILED packet processing is:

在图3中,优选网关接收到需要负载均衡处理的数据包以后,将该数据包发送到负载均衡模块中,例如,该需要负载均衡服务的数据包需要在MAC和IP地址分别为A和B的虚拟机上进行处理,负载均衡模块根据数据包的内容可根据之前存储的网络信息或者当前实时获取的对应于各虚拟机的网络信息,查找MAC和IP地址分别为A和B的对应的虚拟机,将该数据包先直接转发给虚拟子网中的虚拟交换机,然后由虚拟交换机选择将该数据包转发给MAC和IP地址分别为A和B的虚拟机进行处理。 Later in FIG. 3, preferably the gateway receives a data packet needs to load balance processing, and transmits the packet to the load balancing module, for example, the need to service load balancing in a data packet needs MAC and IP addresses are A and B processes on a virtual machine, load balancing module according to the previous contents of the packet according to the network information stored or corresponding to each virtual machine's network information currently acquired in real time, to find MAC and IP addresses are virtual corresponding a and B machine, directly forwards the data packet to the first virtual subnet virtual switch, and then forwards the packet to select the MAC and IP addresses are processed by the virtual switch is a virtual machine a and B. 由图3可以看到,在本实施例中,对数据实现负载均衡,不需要经过路由寻址,仅需根据获取的网络信息即可实现数据的跨网段传输。 It can be seen from FIG. 3, in the present embodiment, the data load balancing, does not require routing and inter-network can be achieved only data transmission network according to the acquired information.

在本实施例中,优选地,图3中负载均衡模块将数据包转发给虚拟机进行处理之前,不仅需要根据之前存储的或者当前获取的对应于各虚拟机的网络信息,同时优选还需结合负载均衡算法等将该数据包转发到虚拟机进行处理。 Prior to the present embodiment, preferably, the load balancing module of FIG. 3 forwards the packet to the virtual machine process, not only the network information corresponding to each virtual machine in accordance with previously stored or currently acquired, while preferably the need to combine the load balancing algorithm forwards the packet to the virtual machine process.

进一步地,在本实施例中,将与所述负载均衡模块不在同一个网段的虚拟机的网络信息存储在负载均衡模块中具体为: Further, in the present embodiment, the load balancing module is not the same network segment information of virtual machines are stored in the load balancing module is specifically:

获取至少一个与负载均衡模块不在同一个网段的虚拟机的网络信息;在本实施例中,优选地,获取网络信息可以是在接收到需要负载均衡服务数据之前获取,也可以是在接收到需要负载均衡服务数据之后,根据需求实时获取,在本实施例中,优选在接收到负载均衡服务数据之前获取。 Obtaining at least one load balancing module is not in the same network segment information of virtual machines; in the present embodiment, preferably, the acquiring network information may be required before receiving the acquired service load balancing data may be received in the after the required data service load balancing, real-time access on demand, preferably acquired prior to receiving the service data load balancing in the present embodiment.

获取网络信息之后,根据获取到的网络信息生成但不限于对应于各虚拟机的虚拟网络设备或者流表信息并将其存储在负载均衡模块中,在本实施例中,优选地,生成的该虚拟网络设备或者流表信息为对应于各虚拟机的地址列表信息,在本实施例中,还可以是其他的信息列表,只要通过该信息列表,能够不需要通过寻址直接就可将数据包发送到对应的虚拟机实现负载均衡的实施方式,都属于本申请请求保护的范围。 After acquiring the network information, the acquired network information generation according but not limited to corresponding to the virtual machine's virtual network device or a stream information table and stored in the load balancing module, in the present embodiment, preferably, the generated virtual network device or a stream information table corresponding to each of the virtual machine address list information, in the present embodiment, but may be other information list, the packet can be directly through the information list as long as possible without going through the address sent to the embodiment corresponds to a virtual machine load balancing fall within the scope of the present application claims.

进一步地,在本实施例中,优选虚拟网络系统通过以下方式中的任意一种实现虚拟机的网络隔离:VLAN,GRE和VXLAN;当然,还可以是其他的可能的网络隔离方式;上述隔离方式中的GRE和VXLAN是对隔离方式VLAN的扩展,因为随着云计算的发展,VLAN隔离方式中的VLAN ID有限,不能满足更大范围的云计算,因此,在VLAN的基础上进行了扩展,而GRE或VXLAN两种隔离方式是扩展后的隔离方式中的一种; Further, in the present embodiment, the virtual network system preferably by any of the following ways for implementing network virtual machine isolation: VLAN, GRE and VXLAN; of course, may also be another possible way network isolation; isolation method described above the extension to the GRE and VXLAN isolated VLAN mode, because as the cloud development, in a limited manner isolated VLAN its VLAN ID, can satisfy a wider range of the cloud, thus, it is extended on the basis of the VLAN, GRE or two kinds of the isolation VXLAN the extended mode is a mode in isolation;

在本实施例中,获取到的网络信息为对虚拟机进行隔离的地址隔离信息,在本实施例中,获取虚拟机的网络信息为以下信息中的任意一种:VLAN信息、GRE信息、VXLAN信息,其中,VLAN信息至少包括VLAN ID信息,具体的包括虚拟机的物理地址信息或者网络地址信息;GRE信息也至少包括虚拟机的物理地址信息和/或网络地址信息;VXLAN信息需要物理机的网络地址信息,虚拟机的物理地址信息以及网络地址信息中的至少一种。 In the present embodiment, the acquired network address information of the virtual machine isolation for isolating information, in the present embodiment, access to network information of the virtual machine is any one of the following information: VLAN information, GRE information VXLAN information, wherein, VLAN information comprises the VLAN ID, a specific physical address information or network address information includes virtual machine at least; the GRE information also comprises at least physical address information of the virtual machine and / or network address information; VXLAN information required physical machine network address information, physical address information, and at least one of the network address information of the virtual machine.

本实施例中,通过在构建的云计算网络结构中获取与负载均衡模块不在同一个网段的虚拟机的网络信息,根据该网络信息生成对应的虚拟网络设备或者流表信息,并将其存储在负载均衡模块中,这样做的目的在于将与负载均衡模块不在同一个网段的虚拟机配置为该负载均衡模块后端的服务节点;当数据需要负载均衡处理时,只需要根据该获取的网络信息或者是存储的虚拟网络设备或者流表信息,负载均衡模块就可直接卡网段且无需路由寻址直接将数据包转发到对应的虚拟机服务节点,所以,在加快了数据包负载均衡服务效率的同时,也提高了负载均衡服务的性能。 In this embodiment, the load balancing module acquires the network information is not the same segment of the virtual machine in a cloud computing network structure constructed of, or generating a virtual network device corresponding to the flow table information according to the network information, and stores in the load balancing module, the purpose of this is to load the service node will not block the rear end of the balancing and load balancing module configured for the same segment of the virtual machine; when data needs to load balance processing, only it needs to acquire the network according to or information stored virtual network device or a stream information table, the load balancing module and the network card can be directly addressed directly without routing the data packet to a corresponding virtual machine service node, so accelerating the packet load balancing service efficiency, but also improves the performance of load balancing services.

实施例二: Example II:

图4为本实施例提供的一种实现负载均衡的装置结构示意图,该装置包括:创建模块401,处理模块402和转发模块403; FIG 4 is a schematic structure of a load balancing apparatus according to the present embodiment provided, the apparatus comprising: a creation module 401, a processing module 402 and a forwarding module 403;

创建模块401根据用户请求分别创建虚拟网络系统和负载均衡模块,创建的该虚拟网络系统包括至少一个虚拟机;在本实施例中,当创建的所述虚拟机为两个以上时,所述虚拟机可以属于同一个二层网络,也可属于不同的二层网络。 Creation module 401 creates the virtual network system and a load balancing module according to a user request, respectively, to create the virtual network system comprising at least one virtual machine; In the present embodiment, when creating the virtual machine is two or more, the virtual can belong to the same network Layer, Layer may belong to different networks. 在本实施例中,在 创建完成虚拟网络系统和负载均衡模块以后,将创建的负载均衡模块接入创建的虚拟网络系统,保证负载均衡模块可以与虚拟网络系统网络互联。 In the present embodiment, after the completion of creating the virtual network system and a load balancing module, the virtual network system will create a load balancing module to create an access, to ensure the load balance module may be interconnected with the network the virtual network system.

在本实施例中所述虚拟网络系统是指在云计算服务中为用户提供的虚拟3层网络,在该虚拟网络中用户可以创建自己的子网、路由、网关等等网络设备,也可以对不同网络进行互通设置操作,网络的表现和物理网络完全一致。 Embodiment the virtual network system in the present embodiment is a virtual network layer 3 to provide users with services in the cloud, users can create their own subnet routing, gateway, etc. in the virtual network device in the network may also different network interworking setting operation, and performance of the network consistent physical network.

处理模块402设置为获取与负载均衡模块不在同一个网段的虚拟机的网络信息,并将该网络信息存储在负载均衡模块中,同时,将所述虚拟机配置为负载均衡模块后端的服务节点,在本实施例中,所述的虚拟机与负载均衡模块不在同一个网段优选为虚拟与负载均衡模块不在同一个二层网络。 The processing module 402 is provided with the load balancing module to acquire a network not in the same virtual machine network information and the network information stored in the load balancing module, while the rear end of the virtual machine module configured to load balancing service node in the present embodiment, the virtual machine and the load balancing module on different network segments preferably dummy load balancing module not on the same Layer 2 network.

在本实施例中,通过该负载均衡模块可实现直接和虚拟机进行通讯,不需要负载均衡模块一定要和虚拟机在一个网段中。 In the present embodiment, the communication and the virtual machine, need not load balancing module and the virtual machine must be in a subnet directly to the load balancing module may be implemented through.

优选地,在本实施例中,根据创建请求创建负载均衡模块时还包括配置负载均衡模块提供负载均衡算法,健康检查和会话保持功能等功能: Preferably, in the present embodiment, the load balancing module according to create creation request it further includes a load balancing module configured to provide load balancing algorithm and session maintaining health check function features:

转发模块403设置为当接收到需要进行负载均衡处理的数据包时,将该数据包根据负载均衡模块中的网络信息将接收到的数据包转发到虚拟机进行处理。 Forwarding module 403 to receive the data packet when the need for load balancing processing, the packet forwarding information according to the network load balancing module will received packet to the virtual machine process.

优选地,在本实施例中,创建的该负载均衡模块提供的负载均衡服务可以通过硬件实现,也可以通过软件实现,具体实现方式在本实施例中不做限制。 Preferably, in the present embodiment, the load balancing service is created to provide load balancing module may be implemented by hardware, may be realized by software, a particular implementation of the present embodiment is not limited to the embodiment.

在本实施例中,优选该负载均衡模块为需要进行负载均衡处理的数据包提供对外地址,其中,该对外地址可以为用户自己创建的虚拟网络的地址,也可以直接为对外服务的公网地址,在本实施例中不做进一步限定。 In the present embodiment, it is preferred that the load balancing module provides the external address to the packet needs to be load balancing process, wherein the external address may be the address of the virtual network user-created or directly to a public network address of external services , not further defined in the present embodiment.

进一步地,在本实施例中,创建模块401包括子网创建单元4011和负载均衡创建单元4012; Further, in the present embodiment, the creation module 401 includes creating sub-unit 4011 and the creation unit 4012 load balancing;

子网创建单元4011设置为创建虚拟子网,在本实施例中,创建的该虚拟子网还包括创建虚拟机,网关,或者路由中的至少一项。 Subnet creating unit 4011 to create a virtual subnets in the present embodiment, the created virtual subnet further comprising creating a virtual machine, the gateway, or at least one route.

所述创建的虚拟子网包括:一级虚拟子网和/或多级虚拟子网;所述的一级虚拟子网包括至少一个通过虚拟交换机接入虚拟网络的虚拟机,可理解为,该一级虚拟子网中只有第一级虚拟交换机控制至少一个虚拟机;该多级虚拟子网包括至少一个虚拟交换机通过其他至少一个一级虚拟子网中的虚拟交换机逐级接入虚拟网络,也即可理解 为该多级虚拟子网是通过至少两个虚拟交换机对虚拟机进行的逐级控制,该逐级控制可以理解为第一级虚拟交换机控制至少一个虚拟机和至少一个第二级虚拟交换机,该第二级虚拟交换机同时又控制多个虚拟机。 The created virtual subnet comprising: a virtual subnet and / or multi-stage virtual subnet; according to a virtual subnet comprises at least one virtual network access by a virtual machine virtual switch, it is understood that the a first stage only the virtual subnet virtual switch control at least one virtual machine; the multistage virtual subnet comprises at least one virtual switch through one another at least one virtual subnet virtual cascade switch virtual network access, but also can be understood that the multi-level virtual subnet by stepwise controlling the at least two virtual machine virtual switches, which may be understood as a first step control virtual switch control at least one stage VM and the at least one second-level virtual switch, the virtual switch of the second stage while controlling the plurality of virtual machines.

负载均衡创建单元4012设置为创建负载均衡模块,并将创建的负载均衡模块直接接入虚拟网络系统。 Load balancing creating unit 4012 to create a load balancing module, and the load balancing module creating direct access to the virtual network system.

进一步地,在本实施例中,处理模块402包括获取单元4021;该获取单元4021设置为获取至少一个与负载均衡模块不在同一个网段的虚拟机的网络信息,该网络信息为对虚拟机进行网络隔离的信息,在本实施例中,优选获取单元4021可以是在接收到需要负载均衡服务的数据之前获取网络信息,也可以是在接收到需要负载均衡处理的数据之后,根据数据内容实时获取网络信息。 Further, in the present embodiment, the processing module 402 includes an acquisition unit 4021; The obtaining unit 4021 is provided at least one of network information is not a virtual machine is load balancing module acquires the same network segment, the network information for the virtual machine after the network isolation of information in the present embodiment, it is preferable acquiring unit 4021 may be the receipt of the data requirements of a load balancing service before acquiring network information may be received the data requirements of a load balancing process, the data content acquired in real time Internet Information.

优选地,在本实施例中,子网创建单元4011创建的虚拟子网在虚拟网络系统中优选但不限于通过以下方式中的任意一种对虚拟子网中的虚拟机实现网络隔离:VLAN,GRE和VXLAN;对应虚拟子网中的虚拟机的网络信息包括以下信息中的任意一种:VLAN信息、GRE信息、VXLAN信息;上述隔离方式中的GRE和VXLAN是对隔离方式VLAN的扩展,因为VLAN隔离方式中的VLAN ID有限,不能满足更大范围的云计算,因此,在VLAN的基础上进行了扩展,而GRE或VXLAN两种隔离方式是扩展后的隔离方式中的一种; Preferably, in the present embodiment, the virtual subnet Subnet creating unit 4011 creates a preferred but not limited to an implementation of any of these ways virtual subnet virtual machine network in the virtual network system isolation: VLAN, GRE and VXLAN; network information corresponding to the virtual subnet virtual machine comprising any one of the following information: information VLAN, GRE information, information VXLAN; embodiment of the separator and VXLAN GRE is an extension to the VLAN isolated manner, because finite isolated VLAN mode its VLAN ID, can satisfy a wider range of the cloud, thus, is extended on the basis of the VLAN, GRE, or the two kinds of spacer VXLAN the extended mode is a mode in isolation;

在本实施例中,优选获取单元4021获取的网络信息中:VLAN信息至少包括VLAN ID信息,具体的包括虚拟机的物理地址信息和/或网络地址信息;GRE信息也至少包括虚拟机的物理地址信息和/或网络地址信息;VXLAN信息需要物理机的网络地址信息,虚拟机的物理地址信息和网络地址信息中的至少一种。 Network information in the present embodiment, preferably the acquisition unit 4021 acquires in: VLAN information at least includes the VLAN ID, specifically includes the physical address information of the virtual machine and / or network address information; the GRE information including at least a physical address of the virtual machine information and / or network address information; VXLAN required information network address information of the physical machine, at least one physical address information and the network address information of the virtual machine.

在本实施例中,处理模块402还包括信息创建单元4022; In the present embodiment, the processing module 402 further includes an information creation unit 4022;

信息创建单元4022根据获取单元4021获取到的网络信息创建对应于各虚拟机的虚拟网络设备或者流表信息,并将其保存在所述负载均衡模块中。 Information creating unit 4022 creates a virtual network device or a stream table information corresponding to the network according to the virtual machine information acquiring unit 4021 acquires and saves it in the load balancing module. 在本实施例中,信息创建单元4022创建的虚拟网络设备或者流表信息为与各虚拟机对应的地址信息,该地址信息使得负载均衡模块可以不需要通过理由寻址就可实现跨网段的数据传输。 In the present embodiment, the information creating virtual network devices, or the flow information table unit 4022 is created for each virtual machine address information corresponding to the address information such that the module may not need to load balancing can be achieved by inter-network addressing reasons data transmission.

在本实施例中,当子网创建单元4011创建了一级虚拟子网,获取单元4021和信息创建单元4022根据获取的网络信息已经在负载均衡模块中创建了虚拟网络设备或者流表信息,该虚拟网络设备或者流表信息中包含获取单元4021获取的VLAN信息,GRE信息或VXLAN信息;在接收到需要负载均衡处理的数据包以后,将该数据包发 送到负载均衡模块中,负载均衡模块根据数据包的内容确定该数据包需要在其后端哪个服务节点(虚拟机)上进行处理,然后在虚拟网络设备或者流表信息中查找该服务节点对应地址,最后将该数据包通过虚拟交换机传输到对应的虚拟机进行处理。 In the present embodiment, when the sub-network creating unit 4011 creates a virtual subnet information acquiring unit 4021 and the creation unit 4022 according to the acquired network information has created a virtual network device or a stream table information in the load balancing module, which virtual network device or a stream table information includes VLAN information acquired by acquiring unit 4021, GRE VXLAN information or information; after receiving the data packets need to load balance processing, and transmits the packet to the load balancing module, the load balancing module according to contents of the packet to determine the packet needs to be processed at its rear which service node (VM), then find the service node address corresponding to a virtual network device in the flow or the table information, the packet is finally transmitted through virtual switch corresponding to the virtual machine process.

采用本实施例中的实现负载均衡的装置,能够使得负载均衡模块仅根据获取到的网络信息(虚拟网络设备或者流表信息中的地址信息)就可在无需寻址的条件下实现跨网段的数据传输,提高的负载均衡的服务性能。 In the present embodiment the load balancing apparatus embodiment, it is possible that the load balancing module can be realized only in accordance with inter-segment (or the address information of the virtual network device in the flow table information) acquired network information without addressing at data transfer, improved load balancing service performance.

实施例三: Example III:

本实施例中,提供了一种负载均衡服务系统,参见图5,该系统包括虚拟网络系统501和负载均衡模块502; In this embodiment, there is provided a load balancing service system, see Figure 5, the system includes a virtual network system 501 and the load balancing module 502;

负载均衡模块502接入虚拟网络系统,并为虚拟网络系统中的至少一个虚拟机提供负载均衡服务。 Load balancing module 502 access to the virtual network system, and provides load balancing services for a virtual network system at least one virtual machine.

在本实施例中,该负载均衡模块502中存储有与其不在同一个网段的虚拟机的网络信息,存储该网络信息的目的在于将所述的虚拟机配置为其后端的服务节点。 In the present embodiment, the load balancing module 502 is not stored in its information network with a network of virtual machines, storing the network information is provided to the virtual machine configuration for the back end service node. 该网络信息在本实施例中优选为对虚拟机进行网络隔离的隔离方式中的相关信息。 The network information in this embodiment is a preferred example embodiment of the isolation isolated virtual machines in the network information. 例如,当中采用的是VLAN方式对虚拟机进行网络隔离时,获取的网络信息包括VLAN ID;当采用GRE的方式对虚拟机网络进行隔离时,获取的网络信息包括Tag ID。 For example, which is used when the VLAN mode virtual machine network isolation, the acquired network information includes VLAN ID; GRE When manner isolated virtual machine network, obtain network information comprises a Tag ID.

当然,采用的隔离方式不限于本实施例中说列举的两种,还可以是VXLAN隔离方式,对应获取的网络信息包括VXLAN信息,包括物理机的网络地址信息,虚拟机的物理地址信息和网络地址信息。 Of course, the use of isolation is not limited embodiment, it said two recited in the present embodiment, and may be isolated VXLAN embodiment, corresponding to the acquired network information includes VXLAN information and network address information including the physical network address information of the physical machine, the virtual machine Address information. 同时,在本实施例中,获取的网络信息不限于本实施例中所列举的几种,还包括其他可能且相关的地址信息或者标识信息。 Meanwhile, in the present embodiment, the network information acquired is not limited to the present embodiment in the several embodiments recited, and may also include other relevant address information or the identification information.

在本实施例中,在负载均衡模块502中有需要转发的数据包时,负载均衡模块502根据存储的网络信息将需要转发的数据包直接转发给其后端的服务节点(虚拟机)进行处理。 In the present embodiment, a packet is to be forwarded in the load balancing module 502, the load balancing module 502 is directly transmitted to the rear end of the service node (VM) is processed according to network information stored will be forwarded packets. 本实施例中的负载均衡服务系统,将与其不在同一个网段的虚拟机的网络信息进行存储,将所述的虚拟机配置为其后端的服务节点,这样在接收到需要负载均衡服务的数据包后,仅需根据存储的网络信息将该数据包进行对应后端服务节点(虚拟机)的处理即可,无需寻址。 Load balancing service system in the present embodiment, the network information is not the same as their network virtual machine storage, the virtual machine configuration for the back end service node, so that the received data need to load balancing and services after coating, only in accordance with the network information stored in the data packets corresponding to the back-end service node (virtual machine) can be treated without addressing. 因此,提高了负载均衡服务的性能。 Therefore, improving the performance of load balancing services.

实施例四: Example IV:

为了对本申请有进一步说明,本实施例中提出了一种在云计算中实现负载均衡创建的方法,参见图6,包括: In order to have the present application further described, the present embodiment proposes a method of load balancing in cloud created, see Figure 6, comprising:

步骤601:用户通过控制台登录; Step 601: user login through the console;

步骤602:通过控制台先创建虚拟机; Step 602: create a virtual machine from the console;

步骤603:通过控制台创建虚拟网络; Step 603: create a virtual network through the console;

步骤604:将步骤602中创建的虚拟机加入步骤603创建的虚拟网络中; Step 604: Step 602 created in step 603 is added to create the virtual machine virtual network;

步骤605:创建负载均衡模块(创建的过程中加入虚拟网络系统); Step 605: Create load balancing module (the process of creating added virtual network system);

步骤606:采用VLAN方式隔离虚拟机时,负载均衡模块获取VLAN信息。 Step 606: When using the virtual machine isolation VLAN mode, load balancing module acquires the VLAN information.

步骤607:根据获取到的VLAN信息创建流表信息,并将其存储在负载均衡模块中。 Step 607: according to the obtained information to create a flow table VLAN information and stored in the load balancing module.

在步骤607中,负载均衡根据获取到的VLAN信息创建流表信息,将所述的虚拟机配置为其后端的服务节点,该流表信息可以保证和虚拟机直接通讯,这样,在负载均衡模块接收到数据包进行转发时就可以直接将包转发给对应的虚拟机,而不需要因为虚拟机处于多个网络设备而导致的必须路由转发才能到达。 In step 607, the load balancing create a stream table according to the obtained information of VLAN information, the virtual machine configuration for the back end service nodes, the stream information table and the virtual machine can ensure direct communication, so that, in the load balancing module receiving the data packet can be directly forwarded to the corresponding packet forwarding virtual machine without requiring the virtual machine must be routed because a plurality of network devices is caused to reach forward.

通过上述的负载均衡创建的方法,可在用户创建负载均衡后同时完成各种虚拟网络的配置,实现从负载均衡模块节点到用户虚机节点数据链路连接,从而提高了负载均衡服务及整个云计算网络的性能,增强了用户的体验。 By load balancing methods described above created the same time to complete the configuration of the various virtual networks created after the user load balancing to achieve load balancing module to a node user from the dummy data link connection nodes, thereby improving the entire cloud Load Balancing Service and performance computing network, enhance the user experience.

以上内容是结合具体的实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。 The above is described in further detail with reference to specific embodiments of the present invention is made, it can not be considered that the specific embodiments of the present invention is only limited to these descriptions. 对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。 Those of ordinary skill in the art for the present invention, without departing from the spirit of the present invention, can make various simple deduction or replacement, should be deemed to belong to the scope of the present invention.

工业实用性 Industrial Applicability

基于本发明实施例提供的上述技术方案,根据创建请求创建虚拟网络系统和负载均衡模块,并将创建的负载均衡模块接入虚拟网络系统中,创建的虚拟网络系统中包括至少一个虚拟机;将与负载均衡模块不在同一个网段的虚拟机的网络信息存储在负载均衡模块中;当接收到的需要均衡处理的数据包存在于虚拟负载均衡处理网路中时,将该数据包通过所述负载均衡模块转发到所述虚拟机中进行处理。 Based on the above technical solution provided in the embodiment of the present invention, a system and create a virtual network load balancing module according to a request to create and access a virtual network load balancing module system is created, the virtual network created by the system includes at least one virtual machine; and and a load balancing module not on the same network segment information of virtual machines are stored in the load balancing module; when the received packets require equalization processing exists in the virtual network the load balancing process, the data packets through the load balancing module forwards to the virtual machine for processing. 可见,本申请与现有技术相比较,通过将负载均衡模块和虚拟机配置到虚拟负载均衡处理网络中,使得负载均衡模块与任何一个虚拟机之间都处于同一个二层网络环境,当需要进行数据包的转 发时,不需要进行路由寻址,直接通过负载均衡模块即可实现数据的直接转发,增强了负载均衡处理数据包的性能,能够解决负载均衡服务性能低的问题。 Be seen, the present application is related to prior art compared by the load balancing module and a virtual machine configured to load balance processing virtual network, so that the same are in a Layer-2 network load balancing between any module and a virtual machine, when it is desired when forwarding packets, and does not require routing and load balancing can be achieved directly through the module relay data directly enhance the performance of packet processing load balancing can solve the low load-balancing service performance issues.

Claims (11)

  1. 一种实现负载均衡的方法,包括: A method for implementing load balancing, including:
    根据创建请求分别创建虚拟网络系统和负载均衡模块,并将所述负载均衡模块接入所述虚拟网络系统,所述虚拟网络系统包括至少一个虚拟机; Respectively, and creating a virtual network system according to the load balancing module creation request, and the load equalization system, the virtual network access module, the virtual network system comprising at least one virtual machine;
    将与所述负载均衡模块不在同一个网段的虚拟机的网络信息存储在负载均衡模块中,并将所述虚拟机配置为负载均衡模块后端的应用服务节点; The load balancing module is not the same network segment information of virtual machines are stored in the load balancing module and the virtual machine is configured to load the application service node rear balancing module;
    需要负载均衡处理的数据包通过所述负载均衡模块转发到所述虚拟机中进行处理。 We need to load balance processing data packets by the load balancing processing module forwards to the virtual machine.
  2. 如权利要求1所述的实现负载均衡的方法,其中,所述创建虚拟网络系统和负载均衡模块,并将所述负载均衡模块接入所述虚拟网络系统具体为: A method of load balancing according to claim 1, wherein said creating the virtual network system and a load balancing module and the virtual network access system of the load balancing module specifically comprises:
    创建虚拟子网,所述虚拟子网包括:一级虚拟子网和/或多级虚拟子网;所述一级虚拟子网包括至少一个通过虚拟交换机接入虚拟网络系统的虚拟机;所述多级虚拟子网包括至少一个通过虚拟交换机接入虚拟网络系统的虚拟机;所述多级虚拟子网中的虚拟交换机通过其他至少一个一级虚拟子网中的虚拟交换机逐级接入虚拟网络系统; Creating virtual subnet, a virtual subnet comprising: a virtual subnet and / or multi-stage virtual subnet; a virtual subnet comprising said at least one virtual network access systems through a virtual machine virtual switch; the multilevel access virtual subnet comprises at least a virtual network system by a virtual machine virtual switch; the multistage virtual subnet virtual switch through one another at least one virtual subnet virtual cascade switch virtual network access system;
    创建负载均衡模块,并将所述负载均衡模块直接接入虚拟网络系统。 Create a load balancing module and the load balancing module is directly connected to the virtual network system.
  3. 如权利要求2所述的实现负载均衡的方法,其中,所述创建虚拟子网具体为:创建至少一个一级虚拟子网,将一级虚拟子网中的虚拟交换机直接接入虚拟网络系统。 The load balancing method as claimed in claim 2, implemented, wherein the creating virtual subnet is specifically: creating at least one a virtual subnet, will be a virtual subnet directly connected to the virtual switch in the virtual network system.
  4. 如权利要求3所述的实现负载均衡的方法,其中,所述一级虚拟子网在所述虚拟网络系统中通过以下方式中的任意一种实现网络隔离:虚拟局域网VLAN、通用路由封装GRE、虚拟可扩展局域网VXLAN;对应在所述一级虚拟子网中的虚拟机的网络信息为以下信息中的任意一种:VLAN信息、GRE信息、VXLAN信息。 3, the load balancing method as claimed in claim, wherein said virtual subnet for implementing a network isolation by any of the following ways in the virtual network systems: the VLAN virtual local area network, Generic Routing Encapsulation GRE, virtual LANs may be extended VXLAN; network information corresponding to the one virtual subnet virtual machine is any one of the following information: VLAN information, GRE information, VXLAN information.
  5. 如权利要求1-4任一项所述的实现负载均衡的方法,其中,所述将与所述负载均衡模块不在同一个网段的虚拟机的网络信息存储在负载均衡模块中具体为: The method according to any one of load balancing as claimed in claim 1-4, wherein the load balancing module is not the same network segment information of virtual machines are stored in the load balancing module is specifically:
    获取至少一个与所述负载均衡模块不在同一个网段的虚拟机的网络信息; Acquiring network information of said at least one load balancing module not on the same segment of the virtual machine;
    根据获取的所述虚拟机的网络信息创建对应于各虚拟机的虚拟网络设备或流表信息,并将其保存在负载均衡模块中。 Creating a virtual network device or a flow table corresponding to the virtual machine information according to the network information acquired by the virtual machine, and save it in the load balancing module.
  6. 一种实现负载均衡的装置,包括:创建模块,处理模块和转发模块; A load balancing apparatus implemented, comprising: a creation module, the processing module and the forwarding module;
    所述创建模块设置为根据创建请求分别创建虚拟网络系统和负载均衡模块,并将所述负载均衡模块接入所述虚拟网络系统,所述虚拟网络系统包括至少一个虚拟机; The creating module to create a virtual network system is provided and load balancing module according to a request were created, and the load equalization system, the virtual network access module, the virtual network system comprising at least one virtual machine;
    所述处理模块设置为将与所述负载均衡模块不在同一个网段的虚拟机的网络信息存储在负载均衡模块中,并将所述虚拟机配置为负载均衡模块后端的应用服务节点; The processing module is arranged to the load balancing module not on the same network segment information of virtual machines are stored in the load balancing module and the virtual machine is configured to load the application service node rear balancing module;
    所述转发模块设置为将需要负载均衡处理的数据包通过所述负载均衡模块转发到所述虚拟机中进行处理。 The forwarding module will need to load balance processing packets processed by the equalization module forwards the virtual machine to the load.
  7. 如权利要求6所述的实现负载均衡的装置,其中,所述创建模块包括子网创建单元和负载均衡创建单元; 6, the load balancing apparatus as claimed in claim, wherein the creation module comprises a sub-unit and a creating unit creating a load balancing;
    所述子网创建单元设置为创建虚拟子网,所述虚拟子网包括:一级虚拟子网和/或多级虚拟子网;所述一级虚拟子网包括至少一个通过虚拟交换机接入虚拟网络系统的虚拟机;所述多级虚拟子网中的虚拟交换机通过其他至少一个一级虚拟子网中的虚拟交换机逐级接入虚拟网络系统; The subnetwork creating unit arranged to create a virtual subnet, a virtual subnet comprising: a virtual subnet and / or multi-stage virtual subnet; a virtual subnet comprising said at least one virtual access via virtual switch virtual machine network system; the multi-level virtual subnet virtual switch through one another at least one virtual subnet virtual cascade switch access the virtual network system;
    所述负载均衡创建单元设置为创建负载均衡模块,并将所述负载均衡模块直接接入虚拟网络系统。 The load balancing creating unit arranged to create a load balancing module and the load balancing module is directly connected to the virtual network system.
  8. 如权利要求7所述的实现负载均衡的装置,其中,所述子网创建单元创建虚拟子网具体为:创建至少一个一级虚拟子网,将一级虚拟子网中的虚拟交换机直接接入虚拟网络系统。 Load balancing apparatus according to claim 7, wherein the creating unit creates the subnet virtual subnet is specifically: creating at least one a virtual subnet, a virtual subnet directly connected to the virtual switch in the virtual network system.
  9. 如权利要求8所述的实现负载均衡的装置,其中,所述子网创建单元创建的虚拟子网在所述虚拟网络系统中通过以下方式中的任意一种实现网络隔离:VLAN、GRE、虚拟可扩展局域网VXLAN;对应在所述一级虚拟子网中的虚拟机的网络信息为以下信息中的任意一种:VLAN信息、GRE信息、VXLAN信息。 Implement the load balancing apparatus as claimed in claim 8, wherein said virtual subnet Subnet creating unit creates a network isolation achieved by any of the following ways in the virtual network system: VLAN, GRE, virtual scalable LAN VXLAN; network information corresponding to the one virtual subnet virtual machine is any one of the following information: VLAN information, GRE information, VXLAN information.
  10. 如权利要求6-9任一项所述的实现负载均衡的装置,其中,处理模块还包括获取单元和创建单元; The load balancing apparatus according to any one of claims 6-9, wherein the processing module further includes an acquisition unit and a creating unit;
    所述获取单元设置为获取至少一个与所述负载均衡模块不在同一个网段的虚拟机的网络信息; The network information acquisition unit arranged to acquire at least one load balancing module is not in the same segment of the virtual machine;
    所述创建单元设置为根据获取的所述虚拟机的网络信息创建对应于各虚拟机的虚拟网络设备或者流表信息,并将其保存在负载均衡模块中。 The creating unit is provided, or a virtual network device corresponding to the flow table information created according to each virtual machine to the virtual machine network information is acquired, and save it in the load balancing module.
  11. 一种负载均衡服务系统,包括:虚拟网络系统和负载均衡模块; A load balancing service system comprising: a virtual network systems and load balancing module;
    所述负载均衡模块接入所述虚拟网络系统,并为所述虚拟网络系统中的至少一个虚拟机提供负载均衡服务; The load balancing system, the virtual network access module, and provides load balancing of the virtual network system serving at least one virtual machine;
    所述负载均衡模块设置为存储与其不在同一个网段的虚拟机的网络信息,同时将所述的虚拟机配置为其后端服务节点,以及用于将需要负载均衡处理的数据包通过所述负载均衡模块转发到所述虚拟机中进行处理。 The load balancing module configured to store network information is not the same as their network virtual machine while the virtual machine configuration for the backend services node, and the need for load equalization processing by said data packet load balancing module forwards to the virtual machine for processing.
PCT/CN2014/088970 2014-06-16 2014-10-20 Method and device for implementing load balancing and load balancing service system WO2015192563A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN 201410267566 CN105208053A (en) 2014-06-16 2014-06-16 Method for realizing load balance, device and load balance service system
CN201410267566.0 2014-06-16

Publications (1)

Publication Number Publication Date
WO2015192563A1 true true WO2015192563A1 (en) 2015-12-23

Family

ID=54934791

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/088970 WO2015192563A1 (en) 2014-06-16 2014-10-20 Method and device for implementing load balancing and load balancing service system

Country Status (2)

Country Link
CN (1) CN105208053A (en)
WO (1) WO2015192563A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090300210A1 (en) * 2008-05-28 2009-12-03 James Michael Ferris Methods and systems for load balancing in cloud-based networks
CN102427475A (en) * 2011-12-08 2012-04-25 曙光信息产业(北京)有限公司 Load balance scheduling system in cloud computing environment
CN102710503A (en) * 2012-05-15 2012-10-03 浪潮电子信息产业股份有限公司 Network load balancing method based on cloud sea OS (operation system)
CN102833355A (en) * 2012-09-22 2012-12-19 广东电子工业研究院有限公司 Load balance system and cloud computing oriented mechanism
CN103533063A (en) * 2013-10-18 2014-01-22 北京华胜天成科技股份有限公司 Method and device capable of realizing dynamic expansion of WEB (World Wide Web) application resource

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090300210A1 (en) * 2008-05-28 2009-12-03 James Michael Ferris Methods and systems for load balancing in cloud-based networks
CN102427475A (en) * 2011-12-08 2012-04-25 曙光信息产业(北京)有限公司 Load balance scheduling system in cloud computing environment
CN102710503A (en) * 2012-05-15 2012-10-03 浪潮电子信息产业股份有限公司 Network load balancing method based on cloud sea OS (operation system)
CN102833355A (en) * 2012-09-22 2012-12-19 广东电子工业研究院有限公司 Load balance system and cloud computing oriented mechanism
CN103533063A (en) * 2013-10-18 2014-01-22 北京华胜天成科技股份有限公司 Method and device capable of realizing dynamic expansion of WEB (World Wide Web) application resource

Also Published As

Publication number Publication date Type
CN105208053A (en) 2015-12-30 application

Similar Documents

Publication Publication Date Title
Jain et al. Network virtualization and software defined networking for cloud computing: a survey
US20110299537A1 (en) Method and system of scaling a cloud computing network
US20110158113A1 (en) Driven multicast traffic distribution on link-aggregate-group
US20130223442A1 (en) System and Method for Managing Unknown Flows in a Flow-Based Switching Device
US20110113142A1 (en) Smart client routing
US20120246637A1 (en) Distributed load balancer in a virtual machine environment
Patel et al. Ananta: Cloud scale load balancing
US20140254603A1 (en) Interoperability for distributed overlay virtual environments
US20120084419A1 (en) System and method to balance servers based on server load status
US8683023B1 (en) Managing communications involving external nodes of provided computer networks
US20140169168A1 (en) Configuration of a virtual service network
US20140164617A1 (en) Forwarding policies on a virtual service network
WO2013070391A1 (en) Methods to combine stateless and stateful server load balancing
US20070214265A1 (en) Scalable captive portal redirect
US20130179593A1 (en) Cloud computing controlled gateway for communication networks
US20130291088A1 (en) Cooperative network security inspection
US20150124823A1 (en) Tenant dhcp in an overlay network
US20150026345A1 (en) Managing link aggregation traffic in a virtual environment
US20160182378A1 (en) Method and system for load balancing in a software-defined networking (sdn) system upon server reconfiguration
US20130173797A1 (en) Cloud based customer premises equipment
CN102148767A (en) Network address translation (NAT)-based data routing method and device
US20130227672A1 (en) Next generation secure gateway
CN102255932A (en) Load balancing method and load equalizer
US20120240184A1 (en) System and method for on the fly protocol conversion in obtaining policy enforcement information
Abujoda et al. MIDAS: Middlebox discovery and selection for on-path flow processing

Legal Events

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

Ref document number: 14895196

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase in:

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14895196

Country of ref document: EP

Kind code of ref document: A1