F5 Application Delivery Controller Solutions > F5 AppWorld Lab - TMOS Architecture Source | Edit on
Lab 5: Device Service Clusters (DSC)¶
By now you have a working HTTP virtual server and pool. Let's take a moment and review what we have learned about the traffic flow through the BIG-IP.
We have a client that is sending HTTP requests to the BIG-IP, which then forwards those requests to the pool members. The pool members respond with HTTP responses, which are sent back to the client through the BIG-IP.
Standard Virtual Server Packet Flow¶
On a standard virtual server application would follow something similar to the flow below:
An IPv4 or IPv6 virtual server receives the connection request
The TCP connection between the BIG-IP and the client is set up
at this point we can adjust how TCP works between the BIG-IP and the client using the client TCP profile and its parameters
or log or manipulate the connection using iRules
The virtual server establishes an encrypted session between the BIG-IP and the client.
Again we can manipulate the SSL setup via iRules
The decrypted data hits the HTTP profile and the HTTP information is parsed and processed according to the profile parameters, and iRules could be applied
And so on, until we make the load balancing decision in TMOS
Manipulate the HTTP stream as required
Re-encrypt the stream if desired
At that point we create a new TCP connection based on the server-side TCP profile to the selected server
And send the connection to the IPv4 or IPv6 pool member
Now that we have a working virtual server and pool, let's take a look at how we can make our BIG-IP highly available.
In this lab we will be creating a high availability cluster using two BIG-IP devices. We will configure device trust, device groups, and traffic groups to ensure that if one BIG-IP fails, the other can take over and continue to serve traffic.
This lab is designed to help you understand Device and Traffic Groups, as well as the process of building an Active-Standby HA pair. While there is a wizard, we will be configuring this manually.
Base Networking and HA VLAN¶
You will be creating a high availability cluster using the second BIG-IP (bigip02) in your lab , so let’s prep our current BIG-IP and we will be creating a high availability VLAN.
On bigip01.f5demo.com archive your configuration in case you need to revert.
Go to System >> Archives and create a new archive.
You will be using your third interface (1.3) for Network Failover and ConfigSync. This requires certain ports to be open on the Self IP; TCP port 4353 for ConfigSync and TCP port 1026 for Network Failover and TCP port 6699 for the Master Control Program.
Build a new untagged VLAN ha_vlan on interface 1.3
Add a self-IP name ha_ip and address 10.1.30.245 net mask 255.255.255.0.
- Under Port Lockdown, select Allow Default, to open
ports required for HA communications.
- Optionally you could select: Allow Custom and add TCP
ports 4353,1026 and 6699
Go to bigip02.f5demo.com and log into GUI with the credentials provided in Documentation section.
bigip02 has already been licensed and provisioned. You will need to set up the base networking.
Interface
Untagged VLAN
IP Name
Self IP
Netmask
1.1
client_vlan
client_ip
10.1.10.246
255.255.255.0
1.2
server_vlan
server_ip
10.1.20.246
255.255.255.0
1.3
ha_vlan
ha_ip
10.1.30.246
255.255.255.0
On the ha_vlan ip configure set Port Lockdown to Allow Default
Build the default gateway def_gw in Routes with destination 0.0.0.0, mask 0.0.0.0, gateway ip address 10.1.10.1
What is the status your BIG-IPs? Check the upper left-hand corner next to the F5 ball.
Configure HA¶
On each BIG-IP, prior to building the Device Trust it is recommended renewing the BIG-IP self-signed certificate with valid information and re-generating the local Device Trust certificate.
Under System >> Certificate Management >> Device Certificate Management select the Renew… button
Common Name: <the Hostname of the BIG-IP in the upper left corner>
Country: United States (or your country of preference)
Lifetime: 3650
Note
Lifetime is important, if your cert expires your HA setup will fail.
Select Finished. Your browser will ask to exchange certs with the BIG-IP again, and refresh the page.
Under Device Management >> Device Trust >> Local Domain select Reset Device Trust…
In the Certificate Signing Authority select Generate New Self-Signed Authority and hit Update.
On each BIG-IP configure the device object failover parameters the BIG-IP will send to other BIG-IPs that want to be a part of a sync-only or sync-failover group.
Click Device Management >> Device and select the local BIG-IP. It will have the self suffix.
On the top bar select ConfigSync.
Use the Self IP address of the HA VLAN for your Local Address.
Hit Update.
On the top bar select Failover Network.
In the Failover Unicast Configuration section select the Add button.
Use the Self IP address the HA VLAN for your Address.
Leave the Port at the default setting of 1026.
Note
Multicast is for Viprion Chassis only.
Select Finished.
On the top bar select Mirroring.
Primary Local Mirror Address: use the Self IP address of the HA VLAN.
Secondary Local Mirror Address: None.
Select Update.
On bigip01.f5demo.com build the Device Trust.
Under Device Management >> Device Trust >> Device Trust Members and select Add to add other BIG-IP(s) you will trust.
Device IP Address: <management IP address of the BIG-IP to add>
Note
You could use any Self IP if the out-of-band management interface is not configured.
Enter the Administrator Username and Password of the BIG-IP you are trusting.
Select Retrieve Device Information
The certificate information and name from the other BIG-IP should appear
Select Device Certificate Matches
Select Add Device. Now you should see the other BIG-IP in the list of trusted devices.
If some information is missing delete the trust and try again.
What are the statuses of your BIG-IPs now?
They should be In Sync. But wait! We haven’t even created a device group! But remember the Device Trust creates a Sync-Only group for the certificates under the covers (device-trust-group) and that should be in sync.
Click on In Sync in the upper right corner or Device Management >> Overview to see the device_trust_group.
On bigip01.f5demo.com create a new Sync-Failover device group
Under Device Management >> Device Groups create a new device group.
Name: my-device-group
Group Type: Sync-Failover
Add the members of the group to the Includes box and select Finished.
Check Device Groups on bigip02 BIG-IP to verify that the new device group is there.
Did you have to create the Device Group on the other BIG-IP?
Is the full configuration synchronized yet? (No! Only the Device Group is sync’d)
What is your sync status?
It should be Awaiting Initial Sync
Click on the sync status or go to Device Management >> Overview (or click on Awaiting Initial Sync) of the BIG-IP with the good/current configuration.
Click the device with the configuration you want to synchronize. Sync Options should appear.
Push the selected device configuration to the group should be selected by default so click on Sync. It could take up to 30 seconds for synchronization to complete.
What are the statuses of your BIG-IPs? Do you have an active-standby pair?
Are the configurations the same?
Now that you have created your HA environment. HA selections will show up for SNAT addressed (not tied to your base network), persistence profiles and connection mirroring on virtual servers.
Go to your Active BIG-IP.
Go to your persistence profile my-src-persistence and check the Mirror Persistence box and Update
Go to your www_vs virtual server and set the Default Persistence Profile to my-src-persistence.
Your Active BIG-IP is now in Changes Pending state. Click on the status and Sync your changes. Did the changes sync?
On each BIG-IP go to Module Statistics >> Local Traffic and bring up the persistence record statistics.
Log back into the RDP session of your Ubuntu Jumpbox, go to the home page of you www_vs web service
(http://10.1.10.100). Refresh a few times.
Check the persistence records on each of your BIG-IPs, you
should see the records are mirrored on each device.
On your Active BIG-IP, go to Device Management >> Traffic Groups. As you can see the default traffic group “traffic-group-1” already exists.
Select traffic-group-1, check out the page information and then select Force to Standby.
What are the statuses of your BIG-IPs? Go to your web page. What is the client IP?
Go to your self-IP addresses. What traffic group are they in? What does it mean?
Archive your work.

