System, device and method for load balancing

A technology of load balancing and load balancing equipment, applied in transmission systems, digital transmission systems, electrical components, etc., can solve the requirements for reducing the capability of load balancing equipment, reduce implementation complexity, implementation complexity and high hardware costs. The effect of reducing requirements, implementation complexity, and hardware cost

Active Publication Date: 2012-04-04
XFUSION DIGITAL TECH CO LTD
4 Cites 34 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0006] Embodiments of the present invention provide a load balancing system and method, which are used to solve the technical problems existing in the prior art that require high load balancing equipment capabilities, thereby achieving high complexity and hard...
View more

Method used

[0073] 304. According to the forwarding strategy determined by the load balancing device, the data packet ...
View more

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.

Application Domain

Data switching networks

Technology Topic

Network managementData messages +3

Image

  • System, device and method for load balancing
  • System, device and method for load balancing
  • System, device and method for load balancing

Examples

  • Experimental program(3)

Example Embodiment

[0030] Example one
[0031] figure 1 Shows a schematic structural diagram of a load balancing system provided in Embodiment 1 of the present invention, and the system includes:
[0032] A network switch 11, a load balancing device 12, and a health detection module 13. The network switch 11 is connected to the load balancing device 12 and multiple server units 14 in the blade server.
[0033] The network switch 11 is used to obtain characteristic information in a user data stream. The characteristic information may include one or more of an IP address and a port number, or may also include other information that can characterize the user data stream and can be used by the network switch. Identifying information.
[0034] Further, when the characteristic information conforms to the predetermined first load balancing strategy, the data packets in the received user data stream are forwarded to the plurality of devices connected to the network switch 11 according to the first load balancing strategy. The server unit 13 implements low-level load balancing, wherein the first load balancing strategy defines a strategy for forwarding data messages with specific characteristic information to a specific server unit.
[0035] Specifically, the external interfaces of multiple server units in the blade server are configured as a unified IP address and port, and when a user requests to access the unified IP address and port, the user data stream generated when the user requests is The second characteristic information in the data stream is compared with the first load balancing strategy, and when the second characteristic information conforms to the predetermined first load balancing strategy, the data packet in the user data stream is The load balancing strategy is forwarded to multiple server units connected to the network switch to achieve low-level load balancing.
[0036] Generally, network switches can be configured with source MAC, destination MAC, source IP, destination IP, source TCP/UDP port, destination TCP/UDP port, protocol type, etc., as keywords for the hash calculation of aggregation and sharing.
[0037] For example, the 4 server units in the blade server need to be load balanced. They are WEB servers and the external IP service address is 60.0.0.1. Then, configure them on the port of each server in the blade server connected to the network switch. The interface address is 60.0.0.1. Configure the corresponding port of each server on the network switch as an aggregation group or as an equal-cost routing group, and the sharing algorithm selects the sharing algorithm based on the source IP and the destination IP, so as to ensure that the same user access will be shared To the same server.
[0038] For proxy services, the server is a WEB proxy (web proxy) server, and the proxy server address is 10.0.0.1, and the port address of each server in the blade server connected to the network switch is configured to be 10.0.0.1, Configure the corresponding port of each server on the network switch as an aggregation group or as an equal-cost routing group. The sharing algorithm selects a sharing algorithm based on the source IP and the destination IP. This ensures that the same user access will be shared to the same On one server.
[0039] When the characteristic information meets the predetermined second load balancing policy, the network switch 11 sends the received data message to the load balancing device 12, so that the load balancing device 12 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 12 determine the forwarding strategy for the received data message, wherein the second load balancing strategy defines data with specific characteristic information The strategy for forwarding the message to the load balancing device 12.
[0040] The network switch 11 forwards the data message to multiple server units 13 connected to the network switch according to the forwarding strategy determined by the load balancing device 12 to achieve high-level load balancing.
[0041] In this embodiment, the first load balancing strategy includes: forwarding data packets with characteristic information with large bandwidth characteristics to a specific server unit, and the second load balancing strategy includes: transferring data packets with characteristic information with small bandwidth characteristics The data message is forwarded to the load balancing device 12, the data message with the feature information of the large bandwidth feature is a user data message, and the data message with the feature information of the small bandwidth feature is a control message. Specifically, the control messages are messages used to describe user data characteristics, control user data behavior attributes, etc., and the user data messages are all messages except control messages.
[0042] The health detection module 13 is configured to send detection data packets to each server unit in real time, and detect the health status of each server unit by determining whether each server unit feeds back a correct response after receiving the detection data packet.
[0043] The health detection module 13 is also used to delete server units that cannot feed back correct responses, and not forward data to server units that cannot feed back correct responses. The server unit that cannot feed back the correct response is deleted from the corresponding port in the network switch.
[0044] Specifically, for example, four server units in a blade server need to perform health checks, and the external IP service address is 60.0.0.1. When the corresponding port of each server on the network switch is configured as an aggregation group, four IPs are randomly selected Address, such as 10.0.0.1-4, is used as the communication IP address for health check with the corresponding 4 servers. The load balancing device sends detection packets to the server corresponding to the communication IP address through the communication IP address to detect the working status of the server. If a server is detected to work abnormally, the server is corresponding to the aggregation group or the equivalent routing group Delete or deactivate the port, so that subsequent packets will no longer be shared to the server. After the server is normal, activate or add the port to the aggregation group or equal-cost routing group.
[0045] In particular, for a Web server, the best detection message is a hypertext transfer protocol HTTP request message.

Example Embodiment

[0046] Example two
[0047] See figure 2 Based on the foregoing embodiment, the load balancing device provided in the second embodiment of the present invention may be a network switch 20, and the device includes: an obtaining unit 21, a forwarding unit 22, and a sending unit 23.
[0048] The acquiring unit 21 is configured to acquire characteristic information in a user data stream, where the characteristic information includes one or more of an IP address and a port number.
[0049] The forwarding unit 22 is configured to, when the characteristic information conforms to the predetermined first load balancing strategy, forward the data message in the received user data stream to the network switch connected to the network switch according to the first load balancing strategy. Multiple server units to achieve low-level load balancing.
[0050] Wherein, the first load balancing strategy defines a strategy for forwarding data messages with specific characteristic information to a specific server unit.
[0051] Specifically, the external interfaces of multiple server units in the blade server are configured as a unified IP address and port, and when a user requests to access the unified IP address and port, the user data stream generated when the user requests is The second characteristic information in the data stream is compared with the first load balancing strategy, and when the second characteristic information conforms to the predetermined first load balancing strategy, the data packet in the user data stream is The load balancing strategy is forwarded to multiple server units connected to the network switch to achieve low-level load balancing.
[0052] Generally, network switches can be configured with source MAC, destination MAC, source IP, destination IP, source TCP/UDP port, destination TCP/UDP port, protocol type, etc., as keywords for the hash calculation of aggregation and sharing.
[0053] For example, the 4 server units in the blade server need to be load balanced. They are WEB servers and the external IP service address is 60.0.0.1. Then, configure them on the port of each server in the blade server connected to the network switch. The interface address is 60.0.0.1. Configure the corresponding port of each server on the network switch as an aggregation group or as an equal-cost routing group, and the sharing algorithm selects the sharing algorithm based on the source IP and the destination IP, so as to ensure that the same user access will be shared To the same server.
[0054] For proxy services, the server is a WEB proxy (web proxy) server, and the proxy server address is 10.0.0.1, and the port address of each server in the blade server connected to the network switch is configured to be 10.0.0.1, Configure the corresponding port of each server on the network switch as an aggregation group or as an equal-cost routing group. The sharing algorithm selects a sharing algorithm based on the source IP and the destination IP. This ensures that the same user access will be shared to the same On one server.
[0055] The sending unit 23 is configured to send the received data message to the load balancing device when the characteristic information meets the predetermined second load balancing strategy, so that the load balancing device receives the data message according to the data The high-level information in the message and the high-level load balancing strategy in the load balancing device determine the forwarding strategy for the received data message.
[0056] Wherein, the second load balancing strategy defines a strategy for forwarding data packets with specific characteristic information to the load balancing device.
[0057] The forwarding unit 22 is further configured to forward data packets 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.
[0058] In this embodiment, the first load balancing strategy includes: forwarding data packets with feature information with large bandwidth characteristics to a specific server unit, and the second load balancing strategy includes: transferring data packets with feature information with small bandwidth characteristics The data message is forwarded to the load balancing device 12, the data message with the feature information of the large bandwidth feature is a user data message, and the data message with the feature information of the small bandwidth feature is a control message. Specifically, the control messages are messages used to describe user data characteristics, control user data behavior attributes, etc., and the user data messages are all messages except control messages.
[0059] The network switch 20 may also include a health detection unit 24, such as image 3 Shown.
[0060] The health detection unit 24 is configured to send detection data packets to each server unit in real time, and detect the health status of each server unit by determining whether each server unit feeds back a correct response after receiving the detection data packet.
[0061] The health detection unit 24 is also used to delete the corresponding port in the network switch of the server unit that cannot feed back the correct response.
[0062] Specifically, for example, four server units in a blade server need to perform health checks, and the external IP service address is 60.0.0.1. When the corresponding port of each server on the network switch is configured as an aggregation group, four IPs are randomly selected Address, such as 10.0.0.1-4, is used as the communication IP address for health check with the corresponding 4 servers. The load balancing device sends detection packets to the server corresponding to the communication IP address through the communication IP address to detect the working status of the server. If a server is detected to work abnormally, the server is corresponding to the aggregation group or the equivalent routing group Delete or deactivate the port, so that subsequent packets will no longer be shared to the server. After the server is normal, activate or add the port to the aggregation group or equal-cost routing group.
[0063] In particular, for a Web server, the best detection message is a hypertext transfer protocol HTTP request message.

Example Embodiment

[0064] Example three
[0065] See Figure 4 Based on the above-mentioned embodiment, the third embodiment provides a load balancing method, which includes:
[0066] 301. Acquire characteristic information in a user data stream, where the characteristic information includes one or more of an IP address and a port number.
[0067] 302. When the characteristic information conforms to the predetermined first load balancing strategy, forward the received data message in the user data stream to the multiple server units connected to the network switch according to the first load balancing strategy In order to achieve low-level load balancing, the first load balancing strategy defines a strategy for forwarding data messages with specific characteristic information to a specific server unit.
[0068] Specifically, the external interfaces of the multiple server units in the blade server are configured as a unified IP address and port. When a user requests to access the unified IP address and port, the user data stream generated when the user requests is The second characteristic information of the user data stream is compared with the first load balancing strategy, and when the second characteristic information conforms to the predetermined first load balancing strategy, the data packets in the user data stream are classified according to the first load The balancing strategy is forwarded to multiple server units connected to the network switch to achieve low-level load balancing.
[0069] Generally, network switches can be configured with source MAC, destination MAC, source IP, destination IP, source TCP/UDP port, destination TCP/UDP port, protocol type, etc., as keywords for the hash calculation of aggregation and sharing.
[0070] For example, the 4 server units in the blade server need to be load balanced. They are WEB servers and the external IP service address is 60.0.0.1. Then, configure them on the port of each server in the blade server connected to the network switch. The interface address is 60.0.0.1. Configure the corresponding port of each server on the network switch as an aggregation group or as an equal-cost routing group, and the sharing algorithm selects the sharing algorithm based on the source IP and the destination IP, so as to ensure that the same user access will be shared To the same server.
[0071] For proxy services, the server is a WEB proxy (web proxy) server, and the proxy server address is 10.0.0.1, and the port address of each server in the blade server connected to the network switch is configured to be 10.0.0.1, Configure the corresponding port of each server on the network switch as an aggregation group or as an equal-cost routing group sharing algorithm. Select an algorithm for sharing based on the source IP and destination IP, so as to ensure that the same user access will be shared to the same On the server.
[0072] 303. When the characteristic information conforms to the predetermined second load balancing policy, send the received data message to the load balancing device, so that the load balancing device receives the data message according to the data message in the data message. The high-level information and the high-level load balancing strategy in the load balancing device determine the forwarding strategy for the received data message, wherein the second load balancing strategy defines the forwarding of the data message with specific characteristic information to the Strategies for load balancing equipment.
[0073] 304. Forward the data packet 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.
[0074] In this embodiment, the first load balancing strategy includes: forwarding data packets with feature information with large bandwidth characteristics to a specific server unit, and the second load balancing strategy includes: transferring data packets with feature information with small bandwidth characteristics The data message is forwarded to the load balancing device 12, the data message with the feature information of the large bandwidth feature is a user data message, and the data message with the feature information of the small bandwidth feature is a control message. Specifically, the control messages are messages used to describe user data characteristics, control user data behavior attributes, etc., and the user data messages are all messages except control messages.
[0075] The load balancing method provided in this embodiment further includes: sending a detection data packet to each server unit in real time, and detecting the health status of each server unit by determining whether each server unit feedbacks a correct response after receiving the detection data packet, and Delete the corresponding port in the network switch of the server unit that cannot feedback the correct response.
[0076] Specifically, for example, four server units in a blade server need to perform health checks, and the external IP service address is 60.0.0.1. When the corresponding port of each server on the network switch is configured as an aggregation group, four IPs are randomly selected Address, such as 10.0.0.1-4, is used as the communication IP address for health check with the corresponding 4 servers. The load balancing device sends detection packets to the server corresponding to the communication IP address through the communication IP address to detect the working status of the server. If a server is detected to work abnormally, the server is corresponding to the aggregation group or the equivalent routing group Delete or deactivate the port, so that subsequent packets will no longer be shared to the server. After the server is normal, activate or add the port to the aggregation group or equal-cost routing group.
[0077] In particular, for a Web server, the best detection message is a hypertext transfer protocol HTTP request message.
[0078] The load balancing system, device and method provided in the embodiments of the present invention enable the network switch to forward data to the corresponding server unit by configuring corresponding strategies to achieve low-level load balancing, and the load balancing equipment is used to achieve high-level load balancing, thereby Some of the functions implemented by the load balancing equipment are shared by the network switch to reduce the requirements on the capabilities of the load balancing equipment. Especially considering that in many practical applications, there are not many data that require high-level load balancing in large-bandwidth data. Therefore, the low-level load balancing of network switches can basically meet the requirements of large-bandwidth data, and a small part of the data that needs high-level load balancing It is implemented by a load balancing device. In this way, a load balancing device with not very strong processing capability can be selected for implementation, thereby greatly reducing the complexity of implementing the load balancing module and the hardware cost.
[0079] The load balancing device and system provided in the embodiments of the present invention can implement the method embodiments provided above. For specific function implementation, please refer to the descriptions in the method embodiments, which will not be repeated here. The load balancing system, device, and method provided by the embodiments of the present invention can be applied to the field of network management systems, but are not limited thereto.
[0080] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing relevant hardware through a computer program. The program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments. Wherein, the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.

Similar technology patents

Oil field sludge multicomponent testing method

Owner:CHINA PETROLEUM & CHEM CORP +1

Method for righting jacket by using single cantilever gin pole and double hooks

ActiveCN102852147AShorten offshore construction periodlower requirement
Owner:CHINA NAT OFFSHORE OIL CORP +1

Classification and recommendation of technical efficacy words

  • lower requirement

LTE channel measurement and feedback method

InactiveCN102546113Alower requirementReduce computational workload
Owner:沈阳市联盛科技有限公司

Non-polar two-line system communication circuit

ActiveCN102324952Alower requirement
Owner:SHENZHEN MCQUAY AIR CONDITIONING
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products