TCP Load Balancer

On of the requirements from the “Narrative” is to enable the frontend application in AWS to communicate with the backend application that is on-prem.

The frontend application makes use of DNS to determine the IP address of the backend application. In the on-prem environment the name “backend.example.local” resolves to the backend IP of 10.1.20.5.

In the AWS environment we want to resolve the name “backend.example.local” to resolve to the IP address of the F5 Distributed Cloud Customer Edge (CE). The CE will host a Virtual IP (VIP) that will host a TCP Load Balancer that will proxy traffic back to the original backend application.

../../_images/tcplb-lab.png

Load Balancers

Next we will change to the “Load Balancers” menu.

../../_images/load-balancers-menu.png

Ensure that you are still in your assigned namespace.

lu-ns

Exercise 1: Origin Pool

  1. Navigate the menu to go to Manage -> Load Balancer, then click Origin Pools.

    origin_pools_menu

  2. Click the Add Origin Pool button.

    origin_pools_add

  3. Enter the following variables:

Variable

Value

Origin Pool Name

backend-tcp

Port

8443

  1. Click on “Add Item” under “Origin Servers*”

  2. Enter the following variables

Variable

Value

Select Type of Origin Server

IP address of Origin Server on given Sites

IP address

10.1.20.5

Site

Your UDF site

Select Network on the site

Inside Network

  1. Under the List of Health Check(s) section, click on “Add Item”

  2. Click the Select healthcheck dropdown.

  3. Click the Create new Healthcheck button.

  4. Enter the following variables:

Variable

Value

Name

backend-tcp-health-check

Health Check

TCP HealthCheck

  1. Click on the “Configure” button to open the dialog to adjust timeout settings then click “Apply”

  2. Click the Continue button to close the Health Check Parameters dialogue.

  3. Click the Save and Exit button to close the Origin Pool dialogue.

Exercise 2: Create Backend TCP Load Balancer

  1. Navigate the menu to go to Manage -> Load Balancer, then click TCP Load Balancers.

    tcp_lb_menu

  2. Click the Add TCP Load Balancer button.

  3. Enter the following variables:

    Variable

    Value

    Name

    backend

  4. Under “Domains” click on “Add item”

  5. Enter the following variables:

    Variable

    Value

    Domain

    backend.example.local

  6. After “Domains” enter the following variables

    Variable

    Value

    Listen Port

    9443

    Where to Advertise the VIP

    Advertise Custom

    With SNI

    Checked

  7. Configure Origin Pools

    1. Under the Origin Pools section, click the Configure link.

    2. Click the Add item button.

    3. Select the backend-tcp pool.

    4. Click the Apply button to close the Origin Pools dialogue.

  8. Configure Advertisement

    1. Under Advertise Custom click the Configure link.

    2. You will need to add a site:

      Variable

      Value

      Select Where to Advertise

      Site

      Site Network

      Inside Network

      Site Reference

      [unique name]-awsnet

      tcp_lb_advertise

    3. Click the Apply button to exit the Advertise Custom dialogue.

    tcp_lb_config

  9. Click the Save and Exit button to exit the TCP Load Balancer dialogue.