Load Balancing has two aspects:
1. Load balancing based on network hardware equipment
Foreign more well-known is Cisco's switch, Cisco Ethernet Channel technology, F5 load balancer, domestic Huawei's V9, etc.
Most of the load balancing based on network equipment adopts the request-round mechanism, that is, the client's request is diverted to the different cluster servers to achieve the function of balancing the responsibility.
The mechanism for the browser-side request is relatively fast, but the corresponding price is not expensive, the specific price of their own ah, said here do not know whether the request of the network should be said to meet the requirements of the structure to cooperate with understanding, my understanding is this, the browser issued a Requeat (that is, a socket we usually say, except that it is not continuous) requests include the request address and the return address, and the request address is the network address of the load-balanced physical hardware before our clustered server, and the role of the load balancer is to allocate these requests to all the hosts on the server cluster, so that they are responsible for processing these requests and giving them, and the process of allocating requests is generally the kind of round-robin request pictured above, and of course there is an address translation technology that becomes NAT technology (also called Do network address translation technology is to request the address from the routing address to the cluster server in the IP address of a server, when the server processing and then send back the results to F5, F5 the processing address changed to their own, and then sent back to the browser end
2. Operating system-based load balancing
are divided into two categories:
a). NLB (Microsoft Proprietary) in the Windows Server version
1. Unicast
This mode is enabled by default and is summarized later.
2. Multicast
Summary put in later;
b). LVs in Linux (LVs can also be used for Windows Server servers)
1.Lvs NAT Mode (address translation technology). Similar to F5 address translation technology, but this relies on the Server software implementation, network isolation, network security will also be greatly improved, sometimes the company even if not so high access to do so will bring more strong security;