How Does ELB Distribute Traffic?

ELB uses FullNAT to forward the incoming traffic. For load balancing at Layer 4, LVS forwards the incoming traffic to backend servers directly. For load balancing at Layer 7, LVS forwards the incoming traffic to Nginx, which then forwards the traffic to backend servers.

Note

In FullNAT, LVS translates source IP addresses and destination IP addresses of the clients.

**Figure 1** Load balancing at Layer 4

Figure 1 Load balancing at Layer 4

**Figure 2** Load balancing at Layer 7

Figure 2 Load balancing at Layer 7