[go: up one dir, main page]

CN102404229B - System, device and method for load balancing - Google Patents

System, device and method for load balancing Download PDF

Info

Publication number
CN102404229B
CN102404229B CN2011104181271A CN201110418127A CN102404229B CN 102404229 B CN102404229 B CN 102404229B CN 2011104181271 A CN2011104181271 A CN 2011104181271A CN 201110418127 A CN201110418127 A CN 201110418127A CN 102404229 B CN102404229 B CN 102404229B
Authority
CN
China
Prior art keywords
load balancing
strategy
network switch
server
forwarding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2011104181271A
Other languages
Chinese (zh)
Other versions
CN102404229A (en
Inventor
卢胜文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XFusion Digital Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2011104181271A priority Critical patent/CN102404229B/en
Publication of CN102404229A publication Critical patent/CN102404229A/en
Application granted granted Critical
Publication of CN102404229B publication Critical patent/CN102404229B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses system, device and method for a load balancing, wherein the method comprises the following steps: a network exchanger is used for obtaining the characteristic information in a user data flow; when the characteristic information satisfies a predetermined first load balancing strategy, the received data message in the user data flow is forwarded to a plurality of server units connected with the network exchanger according to the first load balancing strategy, so as to realize a low-layer load balancing; and when the characteristic information satisfies a predetermined second load balancing strategy, the received data message is sent to a piece of load balancing equipment, then the data message is forwarded to the plurality of server units connected with the network exchanger according to a forwarding strategy determined by the load balancing equipment, so as to realize a high-layer load balancing. The system, device and method for a load balancing disclosed by the method are suitable for the field of network management system.

Description

SiteServer LBS, device and method
Technical field
The present invention relates to the network management system field, particularly a kind of SiteServer LBS, device and method.
Background technology
Load balancing (Load Balance, LB), it is a kind of technology of the common disposal ability of activating business, pass through load-balancing device, can be with one group of service processing equipment, a plurality of server units in server for example, aggregate into a service processing equipment that performance is powerful, this equipment externally presents an interface, when receiving user data, according to some characteristic information in the user data (such as IP address, port numbers) user data is distributed to specific a plurality of server unit by certain rule, to realize load balancing.
Load balancing is divided 3-4 layer load balancing and 5-7 layer load balancing usually, here 3-4 layer load balancing refers to realize load balancing according to the 3-4 layer information in the data message, namely according to the information of the network layer in the message (Network Layer) and transport layer (Transport Layer) (such as the IP address, port numbers) realizes load balancing, the 5-7 layer load balancing here refers to realize load balancing according to the 5-7 layer information in the message, namely according to the session layer in the message (Session Layer), the information (such as the particular content of some field) of presentation layer (Presentation Layer) and application layer (Application Layer) realizes load balancing.For convenience of description, the 3-4 layer is called " low layer " herein, the 5-7 layer is called " high level ".
In the existing server system, particularly now increasing blade server, generally all can carry out load balancing.Wherein, blade server comprises a plurality of server units (also claiming " blade "), simultaneously also can the embedded with network switch to realize function of exchange, in order to realize load balancing, need to be on the network switch in the prior art an external load-balancing device, carry out load balancing by load-balancing device, and transmit through the data message after the load-balancing device processing to corresponding server unit, to realize load balancing by the network switch.
Carry out load balancing by load-balancing device in the prior art, Capability Requirement to load-balancing device is higher, especially when the data bandwidth of processing is larger, Capability Requirement to load-balancing device also becomes larger (needing better software and hardware to support), thereby has increased implementation complexity and hardware cost.
Summary of the invention
Embodiments of the invention provide a kind of SiteServer LBS and method, be used for solving higher to the load-balancing device Capability Requirement that prior art exists, thereby the technical problem that implementation complexity and hardware cost are higher, pass through the embodiment of the invention, can be in the inner realization of blade server load balancing, reduced the requirement to the load-balancing device ability, thereby reduced implementation complexity and reduce hardware cost.
The technical scheme that the embodiment of the invention adopts is:
A kind of SiteServer LBS comprises:
The network switch and load-balancing device, the described network switch intercoms mutually with a plurality of server units in described load-balancing device and the blade server;
The described network switch is used for obtaining the characteristic information of customer traffic, when described characteristic information meets the first predetermined load balancing, data message in the customer traffic of receiving is transmitted to a plurality of server units of being connected with the described network switch by described the first load balancing to realize the low layer load balancing, wherein, described the first load balancing has defined the data message forwarding that will have special characteristic information to the strategy of particular server unit;
When described characteristic information meets the second predetermined load balancing, the data message of receiving is sent to described load-balancing device, so that receiving behind the data message according to the high-rise load balancing in the high layer information in the data message and the described load-balancing device, described load-balancing device determines forwarding strategy to the data message that receives, wherein, described the second load balancing has defined the strategy that the data message forwarding that will have special characteristic information is given described load-balancing device;
The described network switch also is used for, and gives a plurality of server units that are connected with the described network switch to realize high-rise load balancing data message forwarding according to the forwarding strategy that described load-balancing device is definite.
A kind of network switch comprises:
Acquiring unit is for the characteristic information that obtains customer traffic;
Retransmission unit, be used for when described characteristic information meets the first predetermined load balancing, data message in the customer traffic of receiving is transmitted to a plurality of server units of being connected with the described network switch by described the first load balancing to realize the low layer load balancing, wherein, described the first load balancing has defined the data message forwarding that will have special characteristic information to the strategy of particular server unit;
Transmitting element, be used for when described characteristic information meets the second predetermined load balancing, the data message of receiving is sent to described load-balancing device, so that receiving behind the data message according to the high-rise load balancing in the high layer information in the data message and the described load-balancing device, described load-balancing device determines forwarding strategy to the data message that receives, wherein, described the second load balancing has defined the strategy that the data message forwarding that will have special characteristic information is given described load-balancing device;
Described retransmission unit also gives a plurality of server units that are connected with the described network switch to realize high-rise load balancing data message forwarding for the forwarding strategy of determining according to described load-balancing device.
A kind of load-balancing method comprises:
Obtain the characteristic information in the customer traffic, when described characteristic information meets the first predetermined load balancing, data message in the customer traffic of receiving is transmitted to a plurality of server units of being connected with the described network switch by described the first load balancing to realize the low layer load balancing, wherein, described the first load balancing has defined the data message forwarding that will have special characteristic information to the strategy of particular server unit;
When described characteristic information meets the second predetermined load balancing, the data message of receiving is sent to described load-balancing device, so that receiving behind the data message according to the high-rise load balancing in the high layer information in the data message and the described load-balancing device, described load-balancing device determines forwarding strategy to the data message that receives, wherein, described the second load balancing has defined the strategy that the data message forwarding that will have special characteristic information is given described load-balancing device;
Give a plurality of server units that are connected with the described network switch to realize high-rise load balancing data message forwarding according to the forwarding strategy that described load-balancing device is definite.
The SiteServer LBS that the embodiment of the invention provides, device and method, so that the network switch also can forward the data to corresponding server unit to realize the low layer load balancing by the configuration corresponding strategy, and load-balancing device is used for realizing high-rise load balancing (specifically finishing by the forwarding definite and network switch of the strategy of equipment itself), thereby the function that a part of load-balancing device is realized is shared realization by the network switch, to reduce the requirement to the load-balancing device ability.Especially considering in a lot of practical applications needs the data of high-rise load balancing can't be a lot of in the large band data, therefore, the low layer load balancing of the network switch can satisfy the requirement of large band data substantially, and the data that allow small part need to carry out high-rise load balancing are realized by load-balancing device, like this, can select disposal ability and not bery strong load-balancing device to realize, thereby greatly reduce load balancing module implementation complexity and hardware cost.
Description of drawings
In order to be illustrated more clearly in the technical scheme in the embodiment of the invention, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The SiteServer LBS structural representation that Fig. 1 provides for the embodiment of the invention;
The structural representation of a kind of network switch that Fig. 2 provides for the embodiment of the invention;
The structural representation of the another kind of network switch that Fig. 3 embodiment of the invention provides;
The load-balancing method flow chart that Fig. 4 provides for the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making all other embodiment that obtain under the creative work prerequisite.
For the advantage that makes technical solution of the present invention is clearer, below in conjunction with drawings and Examples the present invention is elaborated.
Embodiment one
Fig. 1 shows a kind of SiteServer LBS structural representation that the embodiment of the invention one provides, and described system comprises:
The network switch 11, load-balancing device 12, health detection module 13, the described network switch 11 links to each other with a plurality of server units 14 in described load-balancing device 12 and the blade server.
The described network switch 11 is used for obtaining the characteristic information of customer traffic, described characteristic information can comprise one or more in IP address, the port numbers, perhaps also can comprise the information that other can characterize customer traffic and can be identified by the network switch.
Further, when described characteristic information meets the first predetermined load balancing, data message in the customer traffic of receiving is transmitted to a plurality of server units 13 of being connected with the described network switch 11 by described the first load balancing to realize the low layer load balancing, wherein, described the first load balancing has defined the data message forwarding that will have special characteristic information to the strategy of particular server unit.
Particularly, the external interface of a plurality of server units in the described blade server is configured to unified IP address and port, when the described unified IP address of user's request access and port are arranged, Second Characteristic information in the customer traffic that produces when the user is asked is compared with described the first load balancing, when predetermined described the first load balancing of described Second Characteristic information conforms, the data message in the customer traffic is transmitted to a plurality of server units of being connected with the described network switch by described the first load balancing with realization low layer load balancing.
Usually the network switch can source of configuration MAC, purpose MAC, the keyword of the Hash calculation shared as polymerization such as source IP, purpose IP, source TCP/UDP port, purpose TCP/UDP port, protocol type.
For example, 4 server units in the blade server need to carry out load balancing, they are WEB servers, and externally the IP address of service is 60.0.0.1, then in the described blade server that is connected with the network switch on the port of each server the configuration interface address be 60.0.0.1.Described each server corresponding port arrangement on the network switch is become an aggregation group or is configured to an equal-cost route group, share algorithm and select the algorithm shared based on source IP and purpose IP, can guarantee that so same user's access can share on the same server.
For acting on behalf of the type business, server is WEB proxy (webpage agency) server, proxy server address is 10.0.0.1, then in the described blade server that is connected with the network switch on the port of each server the configured port address be 10.0.0.1, each server corresponding port arrangement on the network switch is become an aggregation group or is configured to an equal-cost route group, share algorithm and select the algorithm shared based on source IP and purpose IP, can guarantee that so same user's access can share on the same server.
When described characteristic information meets the second predetermined load balancing, the described network switch 11 sends to described load-balancing device 12 with the data message of receiving, so that receiving behind the data message according to the high-rise load balancing in the high layer information in the data message and the described load-balancing device 12, described load-balancing device 12 determines forwarding strategy to the data message that receives, wherein, described the second load balancing has defined the strategy that the data message forwarding that will have special characteristic information is given described load-balancing device 12.
The described network switch 11 gives a plurality of server units 13 that are connected with the described network switch to realize high-rise load balancing data message forwarding according to described load-balancing device 12 definite forwarding strategies.
In the present embodiment, described the first load balancing comprises: will have the data message forwarding of characteristic information of large bandwidth feature to the particular server unit, described the second load balancing comprises: the data message forwarding that will have the characteristic information of little bandwidth feature is given described load-balancing device 12, described data message with characteristic information of large bandwidth feature is the user data message, and described data message with characteristic information of little bandwidth feature is the control message.Particularly, described control message is for being used for describing the message of user data feature, control user data behavior property etc., and described user data message is all messages except the control message.
Described health detection module 13 is used for sending to described each server unit in real time detecting packet, by judging after each server unit is received described detection packet whether feed back the health status that correct response detects each server unit.
Described health detection module 13 also is used for, and can not feed back the server unit deletion of correct response, data retransmission can not fed back the server unit of correct response.Soon can not feed back the server unit of correct response from port deletion corresponding the network switch.
Particularly, for example, 4 server units in the blade server need to carry out health detection, externally the IP address of service is 60.0.0.1, when the port arrangement of each server correspondence on the network switch becomes an aggregation group, get arbitrarily four IP addresses, for example 10.0.0.1-4 is as carrying out the communication IP address of health detection with corresponding 4 servers.Load-balancing device sends detection messages to the server corresponding with communication IP address respectively by communication IP address, detect the operating state of server, if detect certain server operation irregularity, then the port of server correspondence in aggregation group or in the equal-cost route group is deleted or deexcitation, subsequent packet will can not shared this server more like this, after this server is normal, reactivation or add this port in aggregation group or equal-cost route group.
Especially, for Web server, best detection messages is HTML (Hypertext Markup Language) HTTP request message.
Embodiment two
Referring to Fig. 2, based on above-described embodiment, a kind of load balancing apparatus that present embodiment two provides, described load balancing apparatus entity can be the network switch 20, described device comprises: acquiring unit 21, retransmission unit 22, transmitting element 23.
Acquiring unit 21, for the characteristic information that obtains customer traffic, described characteristic information comprises one or more in IP address, the port numbers.
Retransmission unit 22, be used for when described characteristic information meets the first predetermined load balancing, the data message in the customer traffic of receiving be transmitted to a plurality of server units of being connected with the described network switch by described the first load balancing with realization low layer load balancing.
Wherein, described the first load balancing has defined the data message forwarding that will have special characteristic information to the strategy of particular server unit.
Particularly, the external interface of a plurality of server units in the described blade server is configured to unified IP address and port, when the described unified IP address of user's request access and port are arranged, Second Characteristic information in the customer traffic that produces when the user is asked is compared with described the first load balancing, when predetermined described the first load balancing of described Second Characteristic information conforms, the data message in the customer traffic is transmitted to a plurality of server units of being connected with the described network switch by described the first load balancing with realization low layer load balancing.
Usually the network switch can source of configuration MAC, purpose MAC, the keyword of the Hash calculation shared as polymerization such as source IP, purpose IP, source TCP/UDP port, purpose TCP/UDP port, protocol type.
For example, 4 server units in the blade server need to carry out load balancing, they are WEB servers, and externally the IP address of service is 60.0.0.1, then in the described blade server that is connected with the network switch on the port of each server the configuration interface address be 60.0.0.1.Described each server corresponding port arrangement on the network switch is become an aggregation group or is configured to an equal-cost route group, share algorithm and select the algorithm shared based on source IP and purpose IP, can guarantee that so same user's access can share on the same server.
For acting on behalf of the type business, server is WEB proxy (webpage agency) server, proxy server address is 10.0.0.1, then in the described blade server that is connected with the network switch on the port of each server the configured port address be 10.0.0.1, each server corresponding port arrangement on the network switch is become an aggregation group or is configured to an equal-cost route group, share algorithm and select the algorithm shared based on source IP and purpose IP, can guarantee that so same user's access can share on the same server.
Transmitting element 23, be used for when described characteristic information meets the second predetermined load balancing, the data message of receiving is sent to described load-balancing device, determine forwarding strategy to the data message that receives so that described load-balancing device is received behind the data message according to the high-rise load balancing in the high layer information in the data message and the described load-balancing device.
Wherein, described the second load balancing has defined the strategy that the data message forwarding that will have special characteristic information is given described load-balancing device.
Described retransmission unit 22 also is used for, and gives a plurality of server units that are connected with the described network switch to realize high-rise load balancing data message forwarding according to the forwarding strategy that described load-balancing device is definite.
In the present embodiment, described the first load balancing comprises: will have the data message forwarding of characteristic information of large bandwidth feature to the particular server unit, described the second load balancing comprises: the data message forwarding that will have the characteristic information of little bandwidth feature is given described load-balancing device 12, described data message with characteristic information of large bandwidth feature is the user data message, and described data message with characteristic information of little bandwidth feature is the control message.Particularly, described control message is for being used for describing the message of user data feature, control user data behavior property etc., and described user data message is all messages except the control message.
The described network switch 20 can also comprise health detection unit 24, as shown in Figure 3.
Health detection unit 24 is used for sending to described each server unit in real time detecting packet, by judging after each server unit is received described detection packet whether feed back the health status that correct response detects each server unit.
Described health detection unit 24 also is used for, and can not feed back server unit corresponding port in the network switch of correct response and delete.
Particularly, for example, 4 server units in the blade server need to carry out health detection, externally the IP address of service is 60.0.0.1, when the port arrangement of each server correspondence on the network switch becomes an aggregation group, get arbitrarily four IP addresses, for example 10.0.0.1-4 is as carrying out the communication IP address of health detection with corresponding 4 servers.Load-balancing device sends detection messages to the server corresponding with communication IP address respectively by communication IP address, detect the operating state of server, if detect certain server operation irregularity, then the port of server correspondence in aggregation group or in the equal-cost route group is deleted or deexcitation, subsequent packet will can not shared this server more like this, after this server is normal, reactivation or add this port in aggregation group or equal-cost route group.
Especially, for Web server, best detection messages is HTML (Hypertext Markup Language) HTTP request message.
Embodiment three
Referring to Fig. 4, based on above-described embodiment, present embodiment three provides a kind of load-balancing method, and described method comprises:
301, obtain characteristic information in the customer traffic, described characteristic information comprises one or more in IP address, the port numbers.
302, when described characteristic information meets the first predetermined load balancing, data message in the customer traffic of receiving is transmitted to a plurality of server units of being connected with the described network switch by described the first load balancing to realize the low layer load balancing, wherein, described the first load balancing has defined the data message forwarding that will have special characteristic information to the strategy of particular server unit.
The external interface of a plurality of server units in the described blade server is configured to unified IP address and port particularly, when the described unified IP address of user's request access and port are arranged, Second Characteristic information in the customer traffic that produces when the user is asked is compared with described the first load balancing, when predetermined described the first load balancing of described Second Characteristic information conforms, the data message in the customer traffic is transmitted to a plurality of server units of being connected with the described network switch by described the first load balancing with realization low layer load balancing.
Usually the network switch can source of configuration MAC, purpose MAC, the keyword of the Hash calculation shared as polymerization such as source IP, purpose IP, source TCP/UDP port, purpose TCP/UDP port, protocol type.
For example, 4 server units in the blade server need to carry out load balancing, they are WEB servers, and externally the IP address of service is 60.0.0.1, then in the described blade server that is connected with the network switch on the port of each server the configuration interface address be 60.0.0.1.Described each server corresponding port arrangement on the network switch is become an aggregation group or is configured to an equal-cost route group, share algorithm and select the algorithm shared based on source IP and purpose IP, can guarantee that so same user's access can share on the same server.
For acting on behalf of the type business, server is WEB proxy (webpage agency) server, proxy server address is 10.0.0.1, then in the described blade server that is connected with the network switch on the port of each server the configured port address be 10.0.0.1, each server corresponding port arrangement on the network switch become an aggregation group or be configured to an equal-cost route component load algorithm to select the algorithm shared based on source IP and purpose IP, can guarantee that so same user's access can share on the same server.
303, when described characteristic information meets the second predetermined load balancing, the data message of receiving is sent to described load-balancing device, so that receiving behind the data message according to the high-rise load balancing in the high layer information in the data message and the described load-balancing device, described load-balancing device determines forwarding strategy to the data message that receives, wherein, described the second load balancing has defined the strategy that the data message forwarding that will have special characteristic information is given described load-balancing device.
304, give a plurality of server units that are connected with the described network switch to realize high-rise load balancing data message forwarding according to the definite forwarding strategy of described load-balancing device.
In the present embodiment, described the first load balancing comprises: will have the data message forwarding of characteristic information of large bandwidth feature to the particular server unit, described the second load balancing comprises: the data message forwarding that will have the characteristic information of little bandwidth feature is given described load-balancing device 12, described data message with characteristic information of large bandwidth feature is the user data message, and described data message with characteristic information of little bandwidth feature is the control message.Particularly, described control message is for being used for describing the message of user data feature, control user data behavior property etc., and described user data message is all messages except the control message.
The load-balancing method that present embodiment provides also comprises: send to described each server unit in real time and detect packet, by judging after each server unit is received described detection packet whether feed back the health status that correct response detects each server unit, and the server unit that can not feed back correct response corresponding port deletion in the network switch.
Particularly, for example, 4 server units in the blade server need to carry out health detection, externally the IP address of service is 60.0.0.1, when the port arrangement of each server correspondence on the network switch becomes an aggregation group, get arbitrarily four IP addresses, for example 10.0.0.1-4 is as carrying out the communication IP address of health detection with corresponding 4 servers.Load-balancing device sends detection messages to the server corresponding with communication IP address respectively by communication IP address, detect the operating state of server, if detect certain server operation irregularity, then the port of server correspondence in aggregation group or in the equal-cost route group is deleted or deexcitation, subsequent packet will can not shared this server more like this, after this server is normal, reactivation or add this port in aggregation group or equal-cost route group.
Especially, for Web server, best detection messages is HTML (Hypertext Markup Language) HTTP request message.
The SiteServer LBS that the embodiment of the invention provides, device and method, so that the network switch also can forward the data to corresponding server unit to realize the low layer load balancing by the configuration corresponding strategy, and load-balancing device is used for realizing high-rise load balancing, thereby the function that a part of load-balancing device is realized is shared realization by the network switch, to reduce the requirement to the load-balancing device ability.Especially considering in a lot of practical applications needs the data of high-rise load balancing can't be a lot of in the large band data, therefore, the low layer load balancing of the network switch can satisfy the requirement of large band data substantially, and the data that allow small part need to carry out high-rise load balancing are realized by load-balancing device, like this, can select disposal ability and not bery strong load-balancing device to realize, thereby greatly reduce load balancing module implementation complexity and hardware cost.
The above-mentioned embodiment of the method that provides can be provided for the load balancing apparatus that the embodiment of the invention provides and system, and concrete function realizes seeing also the explanation in the embodiment of the method, does not repeat them here.The SiteServer LBS that the embodiment of the invention provides, device and method go for the network management system field, but are not limited only to this.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in above-described embodiment method, to come the relevant hardware of instruction to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process such as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or store-memory body (Random Access Memory, RAM) etc. at random.
The above; be the specific embodiment of the present invention only, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.

Claims (13)

1.一种负载均衡系统,其特征在于,包括:1. A load balancing system, characterized in that, comprising: 网络交换机和负载均衡设备,所述网络交换机与所述负载均衡设备相连,所述网络交换机与刀片服务器中的多个服务器单元相连;A network switch and a load balancing device, the network switch is connected to the load balancing device, and the network switch is connected to multiple server units in the blade server; 所述网络交换机用于获取用户数据流中的特征信息,当所述特征信息符合预定的第一负载均衡策略时,将收到的用户数据流中的数据报文按所述第一负载均衡策略转发给与所述网络交换机连接的多个服务器单元以实现低层负载均衡,其中,所述第一负载均衡策略定义了将具有特定特征信息的数据报文转发给特定服务器单元的策略;The network switch is used to obtain feature information in the user data flow, and when the feature information conforms to a predetermined first load balancing strategy, the received data packets in the user data flow are according to the first load balancing strategy Forwarding to multiple server units connected to the network switch to achieve low-level load balancing, wherein the first load balancing strategy defines a strategy for forwarding data packets with specific characteristic information to specific server units; 当所述特征信息符合预定的第二负载均衡策略时,将收到的数据报文发送给所述负载均衡设备,使得所述负载均衡设备收到数据报文后根据数据报文中的高层信息以及所述负载均衡设备中的高层负载均衡策略确定对接收到的数据报文的转发策略,其中,所述第二负载均衡策略定义了将具有特定特征信息的数据报文转发给所述负载均衡设备的策略;When the characteristic information conforms to the predetermined second load balancing strategy, send the received data message to the load balancing device, so that the load balancing device receives the data message according to the high-level information in the data message And the high-level load balancing strategy in the load balancing device determines a forwarding strategy for the received data packets, wherein the second load balancing strategy defines that data packets with specific characteristic information are forwarded to the load balancing device policy; 所述网络交换机还用于,根据所述负载均衡设备确定的转发策略将数据报文转发给与所述网络交换机连接的多个服务器单元以实现高层负载均衡。The network switch is further configured to forward the data message to multiple server units connected to the network switch according to the forwarding strategy determined by the load balancing device to achieve high-level load balancing. 2.如权利要求1所述的负载均衡系统,其特征在于:2. The load balancing system as claimed in claim 1, characterized in that: 所述第一负载均衡策略包括:将具有大带宽特征的特征信息的数据报文转发给特定服务器单元;The first load balancing strategy includes: forwarding data packets with characteristic information of large bandwidth characteristics to a specific server unit; 所述第二负载均衡策略包括:将具有小带宽特征的特征信息的数据报文转发给所述负载均衡设备。The second load balancing strategy includes: forwarding data packets with feature information of small bandwidth features to the load balancing device. 3.如权利要求2所述的负载均衡系统,其特征在于:3. The load balancing system as claimed in claim 2, characterized in that: 所述具有大带宽特征的特征信息的数据报文为用户数据报文;The data message with the feature information of the large bandwidth feature is a user data message; 所述具有小带宽特征的特征信息的数据报文为控制报文。The data message with the feature information of the small bandwidth feature is a control message. 4.如权利要求1所述的负载均衡系统,其特征在于,所述刀片服务器中的多个服务器单元对外的接口被配置成统一的IP地址以及端口,当有用户请求访问所述统一的IP地址以及端口时,将用户请求时产生的用户数据流中的特征信息与所述第一负载均衡策略相比较,当所述特征信息符合预定的所述第一负载均衡策略时,将用户数据流中的数据报文按所述第一负载均衡策略转发给与所述网络交换机连接的多个服务器单元以实现低层负载均衡。4. The load balancing system according to claim 1, wherein the external interfaces of multiple server units in the blade server are configured with unified IP addresses and ports, when a user requests to access the unified IP address and port, compare the characteristic information in the user data flow generated when the user requests with the first load balancing strategy, and when the characteristic information conforms to the predetermined first load balancing strategy, compare the user data flow The data packets in are forwarded to multiple server units connected to the network switch according to the first load balancing strategy to realize low-level load balancing. 5.如权利要求1所述的负载均衡系统,其特征在于:5. The load balancing system as claimed in claim 1, characterized in that: 所述负载均衡系统还包括健康检测模块,用于实时向所述各个服务器单元发送检测数据包,通过判断各个服务器单元收到所述检测数据包后是否反馈正确响应来检测各个服务器单元的健康状态;The load balancing system also includes a health detection module, which is used to send detection data packets to each server unit in real time, and detects the health status of each server unit by judging whether each server unit feeds back a correct response after receiving the detection data packet ; 所述健康检测模块还用于,将不能反馈正确响应的服务器单元删除,不将数据转发给不能反馈正确响应的服务器单元。The health detection module is also used to delete the server unit that cannot feed back the correct response, and not forward the data to the server unit that cannot feed back the correct response. 6.一种网络交换机,其特征在于,应用于负载均衡系统,所述负载均衡系统还包括负载均衡设备,所述网络交换机与所述负载均衡设备相互通信,所述网络交换机与刀片服务器中的多个服务器单元相互通信,所述网络交换机包括;6. A network switch, characterized in that it is applied to a load balancing system, the load balancing system also includes a load balancing device, the network switch communicates with the load balancing device, and the network switch communicates with the blade server A plurality of server units communicate with each other, and the network switch includes; 获取单元,用于获取用户数据流中的特征信息;an acquisition unit, configured to acquire feature information in the user data stream; 转发单元,用于当所述特征信息符合预定的第一负载均衡策略时,将收到的用户数据流中的数据报文按所述第一负载均衡策略转发给与所述网络交换机连接的多个服务器单元以实现低层负载均衡,其中,所述第一负载均衡策略定义了将具有特定特征信息的数据报文转发给特定服务器单元的策略;A forwarding unit, configured to forward the received data packets in the user data flow to the multiple devices connected to the network switch according to the first load balancing strategy when the characteristic information conforms to the predetermined first load balancing strategy. server units to achieve low-level load balancing, wherein the first load balancing strategy defines a strategy for forwarding data packets with specific characteristic information to specific server units; 发送单元,用于当所述特征信息符合预定的第二负载均衡策略时,将收到的数据报文发送给所述负载均衡设备,使得所述负载均衡设备收到数据报文后根据数据报文中的高层信息以及所述负载均衡设备中的高层负载均衡策略确定对接收到的数据报文的转发策略,其中,所述第二负载均衡策略定义了将具有特定特征信息的数据报文转发给所述负载均衡设备的策略;A sending unit, configured to send the received data packet to the load balancing device when the feature information conforms to the predetermined second load balancing strategy, so that the load balancing device receives the data packet The high-level information in the text and the high-level load balancing strategy in the load balancing device determine the forwarding strategy for the received data packets, wherein the second load balancing strategy defines the forwarding of data packets with specific characteristic information a policy for the load balancing device; 所述转发单元还用于根据所述负载均衡设备确定的转发策略将数据报文转发给与所述网络交换机连接的多个服务器单元以实现高层负载均衡。The forwarding unit is further configured to forward the data message to multiple server units connected to the network switch according to the forwarding strategy determined by the load balancing device to achieve high-level load balancing. 7.如权利要求6所述的网络交换机,其特征在于:7. The network switch according to claim 6, characterized in that: 所述第一负载均衡策略包括:将具有大带宽特征的特征信息的数据报文转发给特定服务器单元;The first load balancing strategy includes: forwarding data packets with characteristic information of large bandwidth characteristics to a specific server unit; 所述第二负载均衡策略包括:将具有小带宽特征的特征信息的数据报文转发给所述负载均衡设备。The second load balancing strategy includes: forwarding data packets with feature information of small bandwidth features to the load balancing device. 8.如权利要求7所述的网络交换机,其特征在于:8. The network switch according to claim 7, characterized in that: 所述具有大带宽特征的特征信息的数据报文为用户数据报文;The data message with the feature information of the large bandwidth feature is a user data message; 所述具有小带宽特征的特征信息的数据报文为控制报文。The data message with the feature information of the small bandwidth feature is a control message. 9.如权利要求6所述的网络交换机,其特征在于,还包括:9. The network switch according to claim 6, further comprising: 健康检测单元,用于实时向所述各个服务器单元发送检测数据包,通过判断各个服务器单元收到所述检测数据包后是否反馈正确响应来检测各个服务器单元的健康状态;The health detection unit is used to send detection data packets to each server unit in real time, and detects the health status of each server unit by judging whether each server unit feeds back a correct response after receiving the detection data packet; 所述健康检测单元还用于,将不能反馈正确响应的服务器单元删除,不将数据转发给不能反馈正确响应的服务器单元。The health detection unit is also used to delete the server unit that cannot feed back the correct response, and not forward the data to the server unit that cannot feed back the correct response. 10.一种负载均衡方法,其特征在于,应用于网络交换机,所述网络交换机应用于负载均衡系统,所述负载均衡系统还包括负载均衡设备,所述网络交换机与所述负载均衡设备相互通信,所述网络交换机与刀片服务器中的多个服务器单元相互通信,所述方法包括:10. A load balancing method, characterized in that it is applied to a network switch, the network switch is applied to a load balancing system, and the load balancing system also includes a load balancing device, and the network switch communicates with the load balancing device , the network switch communicates with multiple server units in the blade server, and the method includes: 获取用户数据流中的特征信息,当所述特征信息符合预定的第一负载均衡策略时,将收到的用户数据流中的数据报文按所述第一负载均衡策略转发给与所述网络交换机连接的多个服务器单元以实现低层负载均衡,其中,所述第一负载均衡策略定义了将具有特定特征信息的数据报文转发给特定服务器单元的策略;Acquiring feature information in the user data stream, and forwarding the received data packets in the user data stream to the network according to the first load balancing policy when the feature information conforms to a predetermined first load balancing policy A plurality of server units connected by a switch to achieve low-level load balancing, wherein the first load balancing strategy defines a strategy for forwarding data packets with specific characteristic information to a specific server unit; 当所述特征信息符合预定的第二负载均衡策略时,将收到的数据报文发送给所述负载均衡设备,使得所述负载均衡设备收到数据报文后根据数据报文中的高层信息以及所述负载均衡设备中的高层负载均衡策略确定对接收到的数据报文的转发策略,其中,所述第二负载均衡策略定义了将具有特定特征信息的数据报文转发给所述负载均衡设备的策略;When the characteristic information conforms to the predetermined second load balancing strategy, send the received data message to the load balancing device, so that the load balancing device receives the data message according to the high-level information in the data message And the high-level load balancing strategy in the load balancing device determines a forwarding strategy for the received data packets, wherein the second load balancing strategy defines that data packets with specific characteristic information are forwarded to the load balancing device policy; 根据所述负载均衡设备确定的转发策略将数据报文转发给与所述网络交换机连接的多个服务器单元以实现高层负载均衡。The data packet is forwarded to multiple server units connected to the network switch according to the forwarding strategy determined by the load balancing device to achieve high-level load balancing. 11.如权利要求10所述的负载均衡方法,其特征在于:11. The load balancing method according to claim 10, characterized in that: 所述第一负载均衡策略包括:将具有大带宽特征的特征信息的数据报文转发给特定服务器单元;The first load balancing strategy includes: forwarding data packets with characteristic information of large bandwidth characteristics to a specific server unit; 所述第二负载均衡策略包括:将具有小带宽特征的特征信息的数据报文转发给所述负载均衡设备。The second load balancing strategy includes: forwarding data packets with feature information of small bandwidth features to the load balancing device. 12.如权利要求11所述的负载均衡方法,其特征在于:12. The load balancing method according to claim 11, characterized in that: 所述具有大带宽特征的特征信息的数据报文为用户数据报文;The data message with the feature information of the large bandwidth feature is a user data message; 所述具有小带宽特征的特征信息的数据报文为控制报文。The data message with the feature information of the small bandwidth feature is a control message. 13.如权利要求10所述的负载均衡方法,其特征在于,还包括:13. The load balancing method according to claim 10, further comprising: 实时向所述各个服务器单元发送检测数据包,通过判断各个服务器单元收到所述检测数据包后是否反馈正确响应来检测各个服务器单元的健康状态;Send detection data packets to each server unit in real time, and detect the health status of each server unit by judging whether each server unit feeds back a correct response after receiving the detection data packet; 将不能反馈正确响应的服务器单元删除,不将数据转发给不能反馈正确响应的服务器单元。The server unit that cannot feed back the correct response is deleted, and the data is not forwarded to the server unit that cannot feed back the correct response.
CN2011104181271A 2011-12-14 2011-12-14 System, device and method for load balancing Active CN102404229B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011104181271A CN102404229B (en) 2011-12-14 2011-12-14 System, device and method for load balancing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011104181271A CN102404229B (en) 2011-12-14 2011-12-14 System, device and method for load balancing

Publications (2)

Publication Number Publication Date
CN102404229A CN102404229A (en) 2012-04-04
CN102404229B true CN102404229B (en) 2013-03-13

Family

ID=45886032

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011104181271A Active CN102404229B (en) 2011-12-14 2011-12-14 System, device and method for load balancing

Country Status (1)

Country Link
CN (1) CN102404229B (en)

Families Citing this family (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102724131B (en) * 2012-06-29 2016-08-03 杭州华三通信技术有限公司 A kind of method and device of IP message equal-cost route balanced realization
CN102932270A (en) * 2012-11-27 2013-02-13 无锡城市云计算中心有限公司 Load balancing method and device supporting network security service
CN103124290B (en) * 2012-12-11 2016-02-24 广东电网公司电力调度控制中心 Based on the load-balancing method of reverse isolation device with isolation gateway connected applications
CN103401799A (en) * 2013-07-30 2013-11-20 曙光信息产业(北京)有限公司 Method and device for realizing load balance
CN103401802A (en) * 2013-08-26 2013-11-20 盛科网络(苏州)有限公司 Transmission protocol based message load balancing method and device
CN103929368B (en) * 2014-05-05 2017-04-26 华为技术有限公司 Load balance method and device for multiple service units
US9560124B2 (en) * 2014-05-13 2017-01-31 Google Inc. Method and system for load balancing anycast data traffic
CN105721234B (en) * 2014-12-05 2019-04-05 杭州迪普科技股份有限公司 Port convergence method and device
CN104539558B (en) * 2014-12-31 2018-09-25 林坚 Extendible capacity IP phone interchanger rolling reamer machine system and automatic expansion method
US9935882B2 (en) * 2015-05-13 2018-04-03 Cisco Technology, Inc. Configuration of network elements for automated policy-based routing
TWI591983B (en) * 2015-11-05 2017-07-11 Chunghwa Telecom Co Ltd Path State Return Algorithm Based on Centralized Control Plane
CN111866064B (en) 2016-12-29 2021-12-28 华为技术有限公司 A method, device and system for load balancing
US10901805B2 (en) 2018-12-18 2021-01-26 At&T Intellectual Property I, L.P. Distributed load balancing for processing of high-volume data streams
CN109660626A (en) * 2018-12-29 2019-04-19 天翼电子商务有限公司 A kind of load-balancing method, system and load balancing monitoring client
CN110442447B (en) * 2019-07-05 2023-07-28 中国平安人寿保险股份有限公司 Message queue-based load balancing method and device and computer equipment
CN111211926B (en) * 2019-12-31 2023-01-24 杭州迪普科技股份有限公司 Communication fault monitoring method and device, storage medium and equipment
CN112532542B (en) * 2020-11-20 2022-08-16 锐捷网络股份有限公司 Load balancing mode selection method and device
CN114979005A (en) 2021-02-24 2022-08-30 华为技术有限公司 A load sharing method, device and chip
CN115514639A (en) * 2021-06-21 2022-12-23 中兴通讯股份有限公司 Network management method, system, switch and storage medium for cross-device link aggregation
CN117240787B (en) * 2023-11-14 2024-03-01 鹏城实验室 Switch load balancing method, device, electronic equipment and readable storage medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101119359A (en) * 2006-08-01 2008-02-06 中兴通讯股份有限公司 Policy based service load balancing method
CN101483601A (en) * 2009-02-13 2009-07-15 杭州华三通信技术有限公司 Scheduling method and apparatus based on service priority
US20110252477A1 (en) * 2010-04-08 2011-10-13 Kamakshi Sridhar Dynamic Load Balancing In An Extended Self Optimizing Network
CN101867976A (en) * 2010-07-22 2010-10-20 杭州华三通信技术有限公司 Load balancing method based on mobile terminal number and equipment

Also Published As

Publication number Publication date
CN102404229A (en) 2012-04-04

Similar Documents

Publication Publication Date Title
CN102404229B (en) System, device and method for load balancing
KR101863024B1 (en) Distributed load balancer
US9338192B1 (en) Connection management using connection request transfer protocol
US20190363989A1 (en) Multi-path transport design
US6928051B2 (en) Application based bandwidth limiting proxies
US9674054B2 (en) Concept for providing information on a data packet association and for forwarding a data packet
US9659075B2 (en) Providing high availability in an active/active appliance cluster
CN108512885A (en) Network packet to being identified as message queue telemetering transmission packet executes specific action
CN103067292B (en) The load-balancing method of a kind of sing on web Socket transmission and device
US20040024861A1 (en) Network load balancing
CN102792264A (en) Routing requests for duplex applications
US20180109456A1 (en) System, method, and device for network load balance processing
CN102137005A (en) Method, device and system for forwarding date in communication system
US11706290B2 (en) Direct server reply for infrastructure services
EP1579652A1 (en) Quality of service for iscsi
US11489810B2 (en) Intelligently routing a response packet along a same connection as a request packet
CN102195882A (en) Method and device for selecting route according to data stream application type
JP2016531372A (en) Memory module access method and apparatus
EP2798507B1 (en) Enhanced acknowledgement handling in communication packet transfer
US10594584B2 (en) Network analysis and monitoring tool
CN107231567B (en) A message transmission method, device and system
CN107343037B (en) Data transmission method and device for distributed storage system
CN103227794A (en) Data transmission control method, device and system
CN114510711A (en) Method, device, medium and computer equipment for preventing CC attacks
CN107104892A (en) The method and apparatus of network acceleration

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20211222

Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province

Patentee after: xFusion Digital Technologies Co., Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right