Load balancing
Abstract
This record has no abstract on file.
Term
No projected expiry on record.
- Priority
- Filed
- Published
- Today
42 claims: 10 independent, 32 dependent
- 1142969/2 16 What is claimed is:1. A system for distributing a packet received over a network, the system comprising: (a) a plurality of servers connected to the network;and (b) a load balancer, connected to the network, for selecting one of the plurality of servers according to a calculation, wherein said calculation is performed according to the formula: ((SRC_1P_ADDR+DEST_IP_ADDR+DEST_PORT) % N) wherein SRC_IP_ADDR is the source IP address of the packet;DEST1P ADDR is the destination IP address of the packet;DEST_PORT is the Port of the destination of the packet;% is a modulo operation;and N is the number of servers.
- 4The system claim 1, wherein said calculation is independent of any feedback from the plurality of servers.
- 5The system claim 4, wherein said load balancer does not receive feedback from said plurality of servers.
- 25A system for distributing a packet received over a network, the system comprising:(a) a plurality of servers connected to the network;and (b) a load balancer, connected to the network, for selecting one ofthe plurality of servers 142969/2 18 according to a calculation, wherein said calculation is performed according to the formula: ((SRC_IP_ADDR+SRC_PORT+DEST_IP_ADDR+DEST_PORT+PROTOCOL) % N) wherein SRC_1P_ADDR is the source IP address of the packet;SRC PORT is the source port number of the packet, DEST_IP_ADDR is the destination IP address of the packet;DEST_PORT is the port of the destination of the packet;PROTOCOL is the protocol number of the packet, % is a modulo operation;and N is the number of servers.
- 26A method for load balancing a plurality of servers, comprising:(a) receiving a packet;(b) determining a source IP address of said packet, a destination IP address of said packet and a port of the destination of said packet;(c) identifying one of the plurality of servers according to a calculation, wherein the calculation is performed according to the following formula: ((SRC_IP_ADDR+DES_IP_ADDR+DEST_PORT) % N) wherein SRC_IP_ADDR is the source IP address of the packet;DEST_IP_ADDR is the destination IP address of the packet;DESTPORT is the port of the destination of the packet;% is a modulo operator;and N is the number of servers;and further comprising: (d) distributing said packet to the identified one of said plurality of servers.
- 27A method for load balancing a plurality of servers, comprising:(a) receiving a packet;(b) determining a source IP address of said packet, a destination IP address of said packet and a port of the destination of said packet;(c) identifying one of the plurality of servers according to a calculation, wherein the formula is calculated according to the formula ((SRC_IP_ADDR+SRC_PORT+DEST_IP_ADDR+DEST_PORT+PROTOCOL) % N) wherein SRCIPADDR is the source IP address of the packet;SRC_PORT is the source port number of the packet;DEST_IP_ADDR is the destination IP address of the packet;DEST_PORT is the port of the destination of the packet;PROTOCOL is the protocol number;% is a modulo operator;and N is the umber of servers;and further comprising: (d) distributing said packet to the identified one of said plurality of servers. 142969/2 19
- 28A method for load balancing a plurality of servers, comprising:(a) receiving a packet;distributing the received packet to a particular one of the plurality of servers according to a calculation, wherein said calculation is based on data associated with the packet, and wherein each of said plurality of servers performs the calculation based on data associated with the packet, wherein the calculation is performed according to the formula: ((SRC_IP_ADDR+DES_1P_ADDR+DEST_PORT) % N) wherein SRC_IP_ADDR is the source IP address of the packet;DEST_1P_ADDR is the destination IP address of the packet;DEST_PORT is the port of the destination of the packet;% is a modulo operator;and N is the umber of servers.
- 30A computer program product for enabling a computer to load balance a plurality of servers, the computer program comprising:software instructions for enabling the computer to perform predetermined operations, and a computer readable medium bearing the software instructions;the predetermined operations including: (a) receiving a packet;(b) determining packet information including a source IP address of the packet, a destination IP address of the packet and a port of the destination of the packet;and (c) selecting a particular server from the plurality of servers for receiving a particular packet according to a calculation based on the packet information, wherein the calculation is performed according to the formula: ((SRC_IP_ADDR+DEST_1P_ADDR+DEST_PORT) % N) wherein SRC_1P_ADDR is the source IP address of the packet;DEST_IP_ADDR is the destination I P address of the packet;DEST_PORT is the port of the destination of the packet;% is a modulo operator;and N is the number of servers. 142969/2 20
- 32A system of distributing a packet over a network, comprising:a plurality of routers/proxie, each of said routers/proxies receiving the packet, and each of said router/proxies performing a calculation for selecting one of the routers/proxies for handling the packet, wherein the calculation is performed according to the following formula: ((SRC_IP_ADDR+DEST_IP_ADDR+DEST_PORT) % N) wherein SRC_IP_ADDR is he source IP address of the packet;DEST_IP_ADDR is the destination IP address of the packet;DEST_PORT is the port of the destination of the packet;% is a modulo operator;and N is the number of routers/proxies.
- 39A system of distributing a packet over a network, comprising:a plurality of servers, each said servers receiving the packet, and each of said servers performing a calculation for selecting one of the routers/proxies for handling the packet, wherein the calculation is performed according to the following formula: ((SRC_IP_ADDR+DEST_IP_ADDR+DEST_PORT) % N) wherein SRC_IP_ADDR is he source IP address of the packet;DEST_IP_ADDR is the destination IP address of the packet;DESTPORT is the port of the destination of the packet;% is a modulo operator;and N is the number of servers. 142969/2 21
Independent claims10
47 paragraphs in 7 sections, as filed
n^umn ιιγν
LOADING BALANCE
Title;
LOAD BALANCING
FIELD OF THE INVENTION
The present invention is directed to a method, a system and a computer program product for statistical load balancing or distributing of several computer servers or other devices that receive or forward packets, such as routers and proxies, and in particular, to such a system, method and computer program product for load balancing, which enables the load to be distributed among the several servers or other devices, optionally even if feedback is not received from the servers.
BACKGROUND OF THE INVENTION
Networks of computers are important for the transmission of data, both on a local basis, such as a LAN (local area network) for example, and on a global basis, such as the Internet. A network may have several servers, for providing data to client computers through the client-server model of data transmissions. In order to evenly distribute the load among these different servers, a load balancer is often employed. One example of such a load balancer is described in U.S. Patent No. 5,774,660 which is incorporated herein by reference. The load balancer is a server which distributes the load by determining which server should receive a particular data transmission. The goal of the load balancer is to ensure that the most efficient distribution is maintained, in order to prevent a situation, for example, in which one server is idle while another server is suffering from degraded performance because „ of an excessive load.
One difficulty with maintaining an even balance between these different servers is that once a session has begun between a client and a particular server, the session 5 must be continued with that server. The load balancer therefore maintains a session table, or a list of the sessions in which each server is currently engaged, in order for these sessions to be maintained with that particular server, even if that server currently has a higher load than other servers.
Referring now to Figure 1, which shows a system 10 known in the art for 10 distributing a load across several servers 12. Each server 12 is in communication with a load balancer 14, which is a computer server for receiving a number of user requests 16 from different clients across a network 18. As shown in Figure 1, load balancer 14 selects a particular server 12 which has a relatively light load, and is labeled “free”. The remaining servers 12 are labeled “busy”, to indicate that 15 these servers 12 are less able to receive the load. The load balancer 14 then causes the “free” server 12 to receive the user request, such that a new session is now added to the load on that particular server 12.
The load balancer 14 shown in Figure 1 maintains a session table, in order to determine which sessions must be continued with a particular server 12, as well 20 as to determine the current load on each server 12. The load balancer 14 must also use the determination of the current load on each server 12 in order to assign new sessions, and therefore feedback is required from each of the servers 12, as shown in Figure 1. Clearly, the known system 10 shown in Figure 1 has many drawbacks.
Many different rules and algorithms have been developed in order to facilitate the even distribution of the load by the load balancer. Examples of these 5 rules and algorithms include determining load according to server responsiveness and/or total workload; and the use of a “round robin” distribution system, such that each new session is systematically assigned to a server, for example according to a predetermined order.
Unfortunately, all of these rules and algorithms have a number of 10 drawbacks. First, the load balancer must maintain a session table. Second, feedback must be received by the load balancer from the server, both in order to determine the current load on that server and in order for the load balancer to maintain the session table. Third, each of these rules and algorithms is, in some sense, reactive to the current conditions of data transmission and data load. It is 15 an object of the present invention to solve these and other disadvantages attendant with known load balancers.
There is therefore a need for, and it would be useful to have, a system and a method for load balancing among several servers on a network, in which feedback from the servers would optionally not be required, and in which the distributing of 20 the load would not be dictated by the currently existing load conditions.
SUMMARY OF THE INVENTION
The present invention is of a system, computer program product and method .... for load balancing, based upon a calculation of a suitable distribution of the load among several servers or other devices that receive or forward packets. The present invention preferably does not require feedback from the servers. Also 5 preferably, the present invention does not require the maintenance of a session table, such that the different sessions between the servers and clients do not need to be determined for the operation of the present invention.
According to the present invention, there is provided a system for load balancing packets received from a network. The system includes : (a) servers for 10 receiving the packets, the plurality of servers being in communication with the network; and (b) a load balancer for selecting a particular server for receiving a particular packet according to a calculation. Preferably, the calculation is determined such that each packet from a particular session is sent to the same server. More preferably, the load balancer does not receive feedback from the 15 servers. Most preferably, the load balancer does not maintain a session table. According to a preferred embodiment of the present invention, the calculation is performed according to the following formula: ((SRCIPADDR + DESTIPADDR + DESTPORT) % N)
wherein SRC IP ADDR is the source IP address of the packet; DEST IP ADDR 20 is the destination IP address of the packet; DEST PORT is the port of the destination of the packet; % represents a modulo operation; and N is the number of redundant servers.
In another embodiment, the load balancer is eliminated, and instead each of 5 the servers receives the same packet, and each of the servers runs a program for . performing the calculation according to the formula discussed above in order to identify the one server that is to handle the packet. The servers that are not identified to handle the packet simply discard the packet, such that only that one 5 identified server (identified according to the formula result) handles the received packet.
According to another embodiment of the present invention, there is provided a method performed by a data processor for determining a load balance to several servers. The method includes: (a) receiving a packet; (b) determining a source IP 10 address of the packet, a destination IP address of the packet and a port of the destination of the packet; (c) calculating a formula: ((SRC_IP_ADDR + DESTIPADDR + DESTPORT) % N) wherein SRC_IP_ADDR is the source IP address of the packet; DESTIPADDR is the destination IP address of the packet; DEST PORT is the port of the destination of the packet; % is a modulo operation; 15 and N is the number of redundant servers; and (d) sending the packet to a particular server according to the calculation.
According to yet another embodiment of the invention, there is provided a computer program product carrying insturctions for performing the following predetermined operations: 20 (i) receiving a packet; (ii) determining a source IP address of the packet, a destination IP address of the packet and a port of the destination of the packet; (iii) calculating a formula: ((SRCIPADDR + DEST IP ADDR + DESTPORT) % N) wherein SRC_IP_ADDR is the source IP address of the packet; DESTIPADDR is the destination IP address of the packet; DEST_PORT is the port of the destination of the packet; % is a modulo operation; and N is the number of redundant servers; and 5 (iv) sending the packet to a particular server according to the calculation.
In another embodiment, the formula is used to distribute the load among several routers or proxies. In this embodiment, each of the several routers/proxies receives the same packet, and performs the calculation according to the formula for 10 distributing the load among the several routers/proxies. Depending on the calculation result, one of the routers/proxies is indentified as the router/proxy that is to handle the packet. Each of the remaining routers/proxies discards the received packet so that only the one identified router/proxy forwards the packet. In this way, the load among the several routers/proxies is distributed in a similar way that 15 the load among the several serverse is distributed. This embodiment for distributing the load among several routers/proxies may be used in connection with the previously-discussed embodiments such that the load among the routers/proxies as well as the load among the several servers are distributed.
In another embodiment, a different formula is used to distribute the load. 20 This formula is as follows:
((SRCIPADDR + SCR_POR + DESTIPADDR + DESTPORT + PROTOCOL) % N) wherein SRC IP ADDR is the source IP address of the packet; DESTIPADDR is the destination IP address of the packet; DEST PORT is the port of the destination of the packet; SRC_PORT is the source port number, .... PROTOCOL is the protocol number, % is a modulo operation; and N is the number of redundant servers or routers/proxies. Accordingly, this formula is similar to the previous formula, except it adds a source port number and a portocol number to the 5 formula. This formula can be used to distribute the load among the servers and/or routers/proxies.
Hereinafter, the term "network" refers to a connection between any two or more computational devices which permits the transmission of data.
Hereinafter, the term “computational device” includes, but is not limited to, 10 personal computers (PC) having an operating system such as DOS, Windows™, OS/2™ or Linux; Macintosh™ computers; computers having JAVA™-OS as the operating system; graphical workstations such as the computers of Sun Microsystems™ and Silicon Graphics™, and other computers having some version of the UNIX operating system such as AIX™ or SOLARIS™ of Sun 15 Microsystems™; or any other known and available operating system, or any device, including but not limited to: laptops, hand-held computers, PDA (personal data assistant) devices, cellular telephones, any type of WAP (wireless application protocol) enabled device, wearable computers of any sort, which can be connected to a network as previously defined and which has an operating system. 20 Hereinafter, the term “Windows™" includes but is not limited to Windows95™,
Windows 3.x™ in which “x” is an integer such as “1”, Windows NT™,
Windows98™, Windows CE™, Windows2000™, and any upgraded versions of these operating systems by Microsoft Corp. (USA).
The present invention can be implemented with a software application , written in substantially any suitable programming language. The programming language chosen should be compatible with the computing platform according to which the software application is executed. Examples of suitable programming .- -·* . 5 languages include, but are not limited to, C, C++ and Java.
In addition, the present invention may be embodied in a computer program product, as will now be explained.
On a practical level, the software that enables the computer system to perform the operations described further below in detail, may be supplied on any one of a 10 variety of media. Furthermore, the actual implementation of the approach and operations of the invention are actually statements written in a programming language. Such programming language statements, when executed by a computer, cause the computer to act in accordance with the particular content of the statements. Furthermore, the software that enables a computer system to act in 15 accordance with the invention may be provided in any number of forms including, but not limited to, original source code, assembly code, object code, machine language, compressed or encrypted versions of the foregoing, and any and all equivalents.
One of skill in the art will appreciate that "media", or "computer-readable media", 20 as used here, may include a diskette, a tape, a compact disc, an integrated circuit, a ROM, a CD, a cartridge, a remote transmission via a communications circuit, or any other similar medium useable by computers. For example, to supply software for enabling a computer system to operate in accordance with the invention, the 9 supplier might provide a diskette or might transmit the software in some form via , satellite transmission, via a direct telephone link, or via the Internet. Thus, the term, "computer readable medium" is intended to include all of the foregoing and any other medium by which software may be provided to a computer. 5 Although the enabling software might be "written on" a diskette, "stored in" an integrated circuit, or "carried over" a communications circuit, it will be appreciated that, for the purposes of this application, the computer usable medium will be referred to as "bearing" the software. Thus, the term "bearing" is intended to encompass the above and all equivalent ways in which software is associated with 10 a computer usable medium.
For the sake of simplicity, therefore, the term "program product" is thus used to refer to a computer useable medium, as defined above, which bears in any form of software to enable a computer system to operate according to the above-identified invention. 15 Thus, the invention is also embodied in a program product bearing software which enables a computer to perform load balancing.according to the invention.
In addition, the present invention can also be implemented as firmware or hardware. Hereinafter, the term “firmware” is defined as any combination of software and hardware, such as software instructions permanently burnt onto a 20 ROM (read-only memory) device. As hardware, the present invention can be implemented as substantially any type of chip or other electronic device capable of performing the functions described herein.
In any case, the present invention can be described as a plurality of 10 instructions being executed by a data processor, in which the data processor is „ understood to be implemented as software, hardware or firmware.
BRIEF DESCRIPTION OF THE DRAWINGS
The invention is herein described, by way of example only, with reference 5 to the accompanying drawings, wherein: FIG. 1 is a block diagram showing a known system for load balancing; FIG. 2 is a block diagram of an exemplary system according to the present invention for load balancing; FIG. 3 is a flow chart describing the processing operations according to the 10 present invention for load balancing; and FIG. 4 is a block diagram showing another embodiment according to the invention for load balancing
DESCRIPTION OF THE PREFERRED EMBODIMENTS
The present invention is directed to load balancing, based upon a 15 calculation of a suitable distribution of the load among several servers. The present invention preferably does not require feedback from the servers. Also preferably, the present invention does not require the maintenance of a session table, such that the different sessions between the servers and clients need not be determined for the operation of the present invention. 20 The principles and operation according to the present invention are described below.
Figure 2 shows a system 20 according to the present invention for calculating load balancing. System 20 features a load balancer 22 (and optionally 11 a second load balancer 24) according to the present invention, which as with the .... known load balancer 14 shown in Figure 1 is in communication with several servers 12. Load balancer 22 is also a server which receives several user requests 16 from different clients across network 18. 5 However, unlike the known load balancer 14 shown in the system 10 of
Figure 1, load balancer 22 according to the present invention preferably does not receive any feedback from servers 12. In addition, load balancer 22 also preferably does not maintain a session table.
Instead, upon receipt and analysis of a packet, load balancer 22 performs a 10 calculation in order to distribute the packet to a particular server 12. An example of a suitable formula for performing the calculation according to the present invention is given as follows:
((SRC IP ADDR + DEST IP ADDR + DEST PORT) % N) ... Eq. 1 wherein SRC IP ADDR is the source IP address of the packet; DEST IP ADDR 15 is the destination IP address of the packet; DEST PORT is the port of the destination of the packet; % represents a modulo operation; and N is the number of redundant servers 12.
Another example of a suitable formula for performing the calculation according to the present invention is given as follows: 20 ((SRCIPADDR + SRC_PORT + DESTIPADDR + DESTPORT + PROTOCOL)%N) . ..Eq. 2 wherein SRCIPADDR is the source IP address of the packet; SRCPORT is the source port number, DEST IP ADDR is the destination IP address of the packet; 12 DESTPORT is the port of the destination of the packet; PROTOCOL is the „ protocol number; % represents a modulo operation; and N is the number of redundant servers 12. Equation 2 differs from Equation 1 in that Equation 2 adds the source port number and the protocol number. 5 As is well known in the art, a packet is a bundle of data organized in a specific way for transmission. A packet consists of the data to be transmitted and certain control information, such as the source IP address, the destination IP address, and the destination port information. The source IP address, destination IP address and destination port can all be readily determined from the packet, as is 10 well known in the art.
The %(modulo) represents an arithmetic operator, which calcuates the remainder of a first expression divided by a second expression. The formula according to equation 1 described above corresponds to the remainder of the sum of the source IP address, destination IP address and the destination port divided by 15 the number of redundant servers.
The result of equation lwill be the same for all packets of any particular session, and therefore load balancer 22 would not need to maintain a session table, in order to determine which server 12 should continue to receive packets from an already initiated session That is, all packets from an already initiated session would 20 necessarily be directed to the same server because all such packets will cause the same result from equation 1. Furthermore, the vast number of IP addresses used in network 18 will necessarily cause the results of equation 1 to provide a statistically well balanced distribution of packets to the various servers 12. 13
Therefore, optionally and preferably, no other load balancing mechanism is . required.
Figure 3 is a flow chart showing the operation of the load balancer 22 according to the present invention. In operation 26, the load balancer 22 receives a 5 packet from the network. In operation 28, the load balancer 22 determines the source IP address of the received packet, the destination IP address of the packet, and the destination port of the packet. In operation 30, the calculation according to equation 1 is performed. That is, the remainder of the sum of the source IP address, the destination IP address and the destination port divided by the number 10 N of servers is calculated. Finally, in operation 32, the packet is distributed to a particular server 12 in accordance with the calculation performed in operation 30, A similar program is used to perform the calculation according to formula (2). Referring to the flow chart of Figure 3, in order to perform the formula (2) calcuation, the packet analysis performed in operation 28 would also determine the 15 source port number SRCPORT as well as the protocol number PROTOCOL so that the calculation according to formula (2) is performed in operation 30.
Another advantage of the present invention is that a second load balancer 24 can optionally and preferably be included within system 20, as shown in Figure 2. Second load balancer 24 can perform the same calculations as load balancer 22, 20 without even necessarily communicating with load balancer 22. Therefore, if load balancer 22 becomes inoperative, second load balancer 24 could preferably receive all incoming packets and distribute them correctly according to the statistical calculation. 14
Thus, the present invention clearly has a number of advantages over the , known system 10 shown in Figure 1.
Figure 4 shows another embodiment of the invention in which a bank of router/proxy elements are load balanced according to the invention. As shown in 5 Figure 4, system 34 includes several computers 36, which provide various user requests (packets) 38 to a bank of router/proxy elelments 40. Each of the router/proxy elements in bank 40 receives the same user request 38; however, only one of the router/proxy elements is selected to forward the received user request to a server 42 via the Internet. 10 According to the embodiment shown in Figure 4, each of the router/proxy elements in bank 40 receives and analyzes the same packet in order to perform the calculation according to formula (1) or (2), with N being the number of redundant router/proxy elements. As a result of the calcuation, one of the router/proxy elements is selected to handle the packet. Those router/proxy elements that are not 15 selected, simply discard the packet. In this way, the load among the several router/proxy elelments is distributed in much the same way that the load among the several servers was distributed in the previous embodiments.
The embodiments shown in Figs. 2 and 4 can be combined to distribute the load among the several router/proxy elements as well as distribute the load among 20 the several servers using, for example, formula (1) or (2).
In another embodiment according to the invention, the load balancer 22 (24) shown in Figure 2 is eliminated, and instead the formula (1) or (2) for distributing the load among the several severs 12 is calculated in the servers themselves. That 15 is, similar to the embodiment shown in Figure 4 for distributing the load among the .... several router/proxy elements, each of the servers receives and analyzes the same packet. This can be accomplished by assigning the same MAC address to all of the servers. That is, by assigning the same MAC address to all of the servers, each 5 packet will be provided to each of the servers. Each of the servers then performs the calculation according to formula (1) or (2) in order to select one of the servers to handle the packet. Those servers that are not selected, simply discard the packet. Accordingly, this embodiment distributes the load among the several servers in the same way as shown in Figure 2, except the load balancer 22 is eliminated. Those 10 skilled in the art will understand that certain applications of the invention may wish to include the load balancer 22 shown in in the Figure 2 embodiment, whereas in other applications, it might be preferable to eliminate the load balancer 22 and perform the load balancing calculation within the servers themselves.
It will be appreciated that the above descriptions are intended only to serve 15 as examples, and that many other embodiments are possible within the spirit and the scope of the present invention. 20
Contents7
4 members in 2 offices
Priority claims4
| Document | Office | Kind | Date |
|---|---|---|---|
| 20172800 | United States of America | P | |
| 20172800 | United States of America | P | |
| 60201728 | – | – | – |
| US20000201728P | – | – | – |
Members4
| Document | Office | Kind | |
|---|---|---|---|
| US2002012319A1 | United States of America | A1 | |
| IL142969A0 | Israel | A0 | |
| US6987763B2 | United States of America | B2 | |
| IL142969AThis record | Israel | A |
4 legal events, as the office reported them to INPADOC
Over the term
Point at a mark for the eventEvents
| Event | Code | |
|---|---|---|
| Patent renewedKB | KB | |
| Patent renewedKB | KB | |
| Patent renewedKB | KB | |
| Patent grantedGrantedFF | FF |
Numbers
- Publication, DOCDB
- 142969
- Publication, EPODOC
- IL142969
- Application
- 142969
- Application, DOCDB
- 14296901
- Application, EPODOC
- IL20010142969
Titles
- English
- LOAD BALANCING
Classification
- CPC, 2
- H04L67/1023
- H04L67/1001
- IPC, 3
- G06F
- H04L29 06
- H04L29 08