Network Traffic Paths

Load balancers communicate with backend servers over the private network. Load balancers distribute incoming traffic across backend servers, which return responses to load balancers over the private network.

  • If backend servers process only requests routed from load balancers, there is no need to assign EIPs or create NAT gateways.
  • If backend servers provide services for the public network or need to access public network resources, you must assign EIPs or create NAT gateways.

Network Type

Dedicated load balancers support the following network types:
  • Select one or more types of network for each dedicated load balancer based on your requirements.
    • If you select the public IPv4 network, the load balancer will have an IPv4 EIP bound to process requests over the Internet.
    • If you select the private IPv4 network, a private IPv4 IP address will be assigned to the load balancer to process requests within a VPC.
    • If you select IPv6, the load balancer will have an IPv6 address, which allows the load balancer to process requests within a VPC. If you add the IPv6 address to a shared bandwidth, the load balancer can process requests both over the Internet and in the VPC.
Shared load balancers can work in both public and private networks.
  • Select the network type based on your requirements.
    • To distribute requests over the Internet, create a load balancer with an EIP bound. This load balancer can process requests both over the Internet and within the VPC.
    • If you want to route requests within a VPC, create a private network load balancer that has only one private IP address and is accessible only from the VPC.

Inbound Network Traffic Paths

The settings you specify when you add listeners determine how load balancers distribute incoming traffic.
Figure 1 Inbound network traffic
When load balancers use TCP or UDP to receive incoming traffic:
  • Incoming traffic is routed only through the LVS cluster.
  • The LVS cluster directly routes incoming traffic to backend servers using the load balancing algorithm you select when you add listeners.
When load balancers use HTTP or HTTPS to receive incoming traffic:
  • Incoming traffic is routed through both the LVS and Nginx clusters. The LVS cluster routes incoming traffic to the Nginx cluster, which then distributes the traffic across backend servers.
  • For HTTPS traffic, the Nginx cluster validates certificates and decrypts data packets before distributing the traffic across backend servers using HTTP.

Outbound Network Traffic Paths

For outbound network traffic, the response is returned through the path where the request is sent.
Figure 2 Outbound network traffic
  • Because the load balancer receives and responds to requests over the Internet using the bound EIP, traffic transmission depends on the bandwidth, and you will be billed for the EIP and bandwidth. ELB does not limit the bandwidth. The load balancer communicates with backend servers over the private network, which is free.
  • If you create a NAT gateway to receive incoming traffic, the response is returned by the NAT gateway. Because the NAT gateway has an EIP bound, backend servers receive traffic from the Internet and access the public network resources using this EIP. Although the number of connections is restricted by the NAT gateway, traffic transmission depends on the bandwidth. You will be billed for the EIP, NAT gateway, and bandwidth.
  • If backend servers are accessed through EIPs, the response is returned by the EIPs. Traffic transmission depends on the bandwidth, and you will be billed for the EIP and bandwidth.