Updated on 2024-04-18 GMT+08:00

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.

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

Figure 1 Load balancing at Layer 4
Figure 2 Load balancing at Layer 7