9. Introduction to Server Load Balancing Server Load Balancing (SLB) may be defined as a process and technology that distributes site traffic among several servers using a network-based device. This device intercepts traffic destined for a site and redirects that traffic to various servers. Figure 1-1. SLB simplified 5/8/2011 12:50:57 AM 3
10.
11. Splits the traffic into individual requests and decides which servers receive individual requests.
12. Maintains a watch on the available servers, ensuring that they are responding to traffic. If they are not, they are taken out of rotation.5/8/2011 12:50:57 AM 4
13.
14.
15.
16. Anatomy of a Server Load Balancer SLB works by manipulating a packet before and after it reaches an actual server. This is typically done by manipulating the source or destination IP addresses of a IP packet in a process known as Network Address Translation (NAT). In Figure , you see an IP packet sent from a source address of 208.185.43.202 destined for 192.168.0.200. This IP header is like the "To" and "From" portions of a letter sent through the post office. Routers use that information to forward the packets along on their journeys through the various networks. Figure . An IP packet header Mohit 5/8/2011 12:51:02 AM 8
17. Methods of load balancing Hardware Load Balancing Hardware load balancers can route TCP/IP packets to various servers in a cluster. These types of load balancers are often found to provide a robust topology with high availability, but comes for a much higher cost. Pros: Uses circuit level network gateway to route traffic. Cons: Higher costs compared to software versions. Software Load Balancing Most commonly used load balancers are software based, and often comes as an integrated component of expensive web server and application server software packages. Pros: Cheaper than hardware load balancers. More configurable based on requirements. Can incorporate intelligent routing based on multiple input parameters. Cons: Need to provide additional hardware to isolate the load balancer. 5/8/2011 12:51:02 AM 9