How to Set up Inbound Load Balancing with a Delegated Sub-domain


#1

Inbound Load Balancing distributes inbound data traffic over multiple WAN links to computers behind Peplink Balance. Peplink Balance 210, 310, 305, 380, 580, 710, and 1350 have a built-in DNS server that enables this functionality.

Authoritative DNS functionality is not available on Peplink Balance 20 and 30.

Inbound Load Balancing is configured via both of the following:

  • [DNS records configured within Peplink Balance](https://forum.peplink.com/t/how-to-set-up-the-integrated-dns-server-for-inbound-load-balancing/7701/1)
  • External DNS records at an Authoritative DNS Server
The following is a simplified typical example of an Inbound Load Balancing scenario, further details subsequently follow:
  1. The domain foobar.com is resolved by an authoritative DNS external to Peplink Balance.
  2. The web server that serves www․foobar․com is housed behind Peplink Balance, where Peplink Balance distributes the web server’s data traffic across two WAN links (i.e. WAN1 and WAN2).
  3. The authoritative DNS delegates to Peplink Balance the resolution of hostname www․foobar․com. For the purpose of this example, other hosts (e.g. mail, ftp, etc.) in the foobar.com domain are resolved by the authoritative DNS.
  4. Authoritative DNS records that enable Inbound Load Balancing to www․foobar․com are shown in blue in the following diagram.
inbound_load_balance
In further detail, with the aforementioned DNS records, the following steps take place when resolving the hostnamewww․foobar․com:
  1. A client computer requires resolution for www․foobar․com, and queries the Authoritative DNS Server for foobar.com.
  2. The Authoritative DNS Server for foobar.com checks its DNS records:
    • The DNS records of type “NS” delegate the resolution of hostname www․foobar․com to two places:wan1balance, and wan2balance
    • wan1balance represents the hostname at which Peplink Balance can be reached via its WAN1 connection.
    • wan2balance represents the hostname at which Peplink Balance can be reached via its WAN2 connection.
    • Both wan1balance and wan2balance are returned as the result of the DNS query.
  3. The client computer queries, via wan1balance, the DNS of Peplink Balance for the resolution of www․foobar․com. In the event that the WAN1 connection is down, the DNS query would not succeed. However, as a built-in mechanism of the DNS protocol, the client computer then queries via wan2balance to resolve the hostnamewww․foobar․com.
  4. Peplink Balance, upon receiving the DNS query, returns to the client computer the IP addresses ofwww․foobar․com that correspond to available WAN links. For example:
    • If both WAN1 and WAN2 are available, then both the IP address that corresponds to WAN1 and that of WAN2 are returned.
    • If WAN1 is available but WAN2 is down, then the IP address that corresponds to WAN1 is returned, but that of WAN2 is not returned.

Inbound Load Balancing for Two Mail Server
Bandwidth Aggregation
Inbound Load Balancing for Two Mail Server
Balance UI Deep Dive - Network Tab
1 fast modem, 4 slow modems...only slow modems get used