Logo

F5 Load Balancer: How BIG-IP Load Balancing Works

An F5 load balancer is an F5 BIG-IP system running Local Traffic Manager (LTM): it receives every client connection on a virtual server and sends it to a healthy server in a pool, using a load balancing method such as Round Robin or Least Connections. LTM is included in every BIG-IP bundle and runs on F5 hardware, on VMware and KVM, and in AWS, Azure and Google Cloud.

This guide explains how BIG-IP load balancing works, the load balancing methods F5 supports, the difference between local and global load balancing, your hardware, virtual and cloud options, a configuration example, and how F5 load balancing is licensed.

F5 Load Balancing at a Glance

F5 option What it balances Where it runs Licensed by
BIG-IP LTM Connections across servers in one data center BIG-IP hardware or Virtual Edition Included in every BIG-IP bundle; VE by throughput
BIG-IP DNS Users across data centers and clouds (GSLB) BIG-IP hardware or Virtual Edition Better and Best bundles, or add-on
BIG-IP Virtual Edition Same LTM features as software VMware, KVM, Hyper-V, AWS, Azure, Google Cloud Per instance, 25 Mbps to 10 Gbps or by vCPU
BIG-IP rSeries High connection and SSL rates on dedicated hardware Data center appliance Per appliance with a bundle
F5 NGINX Plus HTTP, TCP and UDP traffic for modern apps and Kubernetes Linux, containers, Kubernetes Per instance or subscription

Get an F5 load balancer quote

Send your throughput, number of applications and platform (hardware, VMware or cloud). Golicense quotes BIG-IP LTM, BIG-IP DNS and Virtual Edition licenses within 24 hours.

Request an F5 Quote →

How F5 BIG-IP Load Balancing Works

BIG-IP is a full proxy. It ends the client’s connection on its own address and opens a separate connection to the chosen server, so it can optimize, inspect and change traffic on each side independently. Four objects do the work.

Virtual Servers and Pools

A virtual server is the IP address and port that users connect to, for example 203.0.113.10:443. It points to a pool: a group of pool members, each a server IP and port running the same application. The virtual server receives the traffic and the pool decides where it goes.

Health Monitors

Monitors check every pool member at a set interval, with HTTP, HTTPS, TCP, ICMP or custom checks. A member that fails is marked down and gets no new connections until it passes again, so users are not sent to a broken server.

Persistence

Some applications keep session data on one server. A persistence profile, such as cookie, source address or SSL session persistence, keeps each user on the same pool member for the length of the session.

iRules and Local Traffic Policies

When the pool alone is not enough, iRules (scripts in TCL) and Local Traffic Policies can choose a pool by URL, host name or header, rewrite requests and responses, or block traffic. This programmability is the main difference between BIG-IP and a basic load balancer, and the reason BIG-IP is called an application delivery controller (ADC).

F5 Load Balancing Methods

Each pool has one load balancing method. Static methods follow a fixed pattern; dynamic methods use live data about the servers.

Method Type How it chooses a server Use it when
Round Robin (default) Static Next member in turn Servers have similar capacity
Ratio Static In proportion to a weight you set per member Servers have different capacity
Least Connections Dynamic Member with the fewest active connections Connections vary in length
Weighted Least Connections Dynamic Least Connections, adjusted for each member’s connection limit Capacity differs and connections are long
Fastest Dynamic Member with the fewest outstanding Layer 7 requests Members respond at different speeds
Observed Dynamic Connection counts ranked over time You want steady dynamic balancing
Predictive Dynamic Like Observed, favoring members that are improving Server performance changes often
Dynamic Ratio Dynamic Weights from live server metrics Servers report their own load
Least Sessions Dynamic Member with the fewest persistence records The application relies on persistence

Most methods also come in a “node” version, which counts load per server rather than per pool member. Use it when one server runs several applications in different pools.

Local vs Global Load Balancing: LTM and BIG-IP DNS

LTM balances traffic inside one site. When the same application runs in two data centers, or in a data center and a cloud, you also need global server load balancing (GSLB). BIG-IP DNS, formerly Global Traffic Manager (GTM), answers each DNS query with the address of the best site, based on availability, location or performance, and sends users to another site if one fails. LTM then balances the traffic inside the chosen site. Many organizations run both on the same BIG-IP, which is why BIG-IP DNS is part of the Better and Best bundles.

Hardware, Virtual Edition and Cloud Options

BIG-IP rSeries and VELOS

BIG-IP rSeries appliances and the F5 VELOS chassis are F5’s current hardware. They add dedicated processing for SSL/TLS and DDoS protection and suit data centers with high connection rates. Older iSeries and VIPRION systems run the same LTM features. To compare hardware, see Load Balancer Appliances.

F5 BIG-IP load balancer appliance

BIG-IP Virtual Edition

BIG-IP Virtual Edition (VE) is the same software as a virtual machine on VMware, KVM, Hyper-V and Nutanix, or in AWS, Azure and Google Cloud. It is the usual choice when your applications already run virtualized or in a public cloud.

NGINX and F5 Distributed Cloud

F5 also sells NGINX Plus, a software load balancer and API gateway for containers and Kubernetes, and F5 Distributed Cloud, which provides load balancing as a SaaS service. For an overview of the whole portfolio, see F5 Solutions: Products and Use Cases.

F5 Load Balancer Configuration Example

This example balances an HTTPS website across three web servers with Least Connections, cookie persistence and an HTTP health monitor. It uses tmsh, the BIG-IP command line; the same objects can be created in the web interface under Local Traffic.

tmsh create ltm pool web_pool members add { 10.0.0.11:80 10.0.0.12:80 10.0.0.13:80 } monitor http load-balancing-mode least-connections-member
tmsh create ltm virtual vs_web_https destination 203.0.113.10:443 ip-protocol tcp profiles add { http clientssl } pool web_pool persist replace-all-with { cookie } source-address-translation { type automap }
tmsh save sys config
  • web_pool holds the three servers and removes any that fail the HTTP monitor.
  • vs_web_https accepts HTTPS on port 443, decrypts it with a Client SSL profile and sends HTTP to the servers. Replace the default clientssl profile with one that holds your certificate. For the alternatives, see What Is SSL Offloading?.
  • SNAT automap makes servers reply through BIG-IP, so the setup works even when BIG-IP is not the servers’ default gateway.

How Is an F5 Load Balancer Licensed?

On BIG-IP hardware, LTM comes with every software bundle: Good is LTM alone, Better adds BIG-IP DNS, AFM and advanced routing, and Best adds F5 WAF for BIG-IP and BIG-IP Zero Trust Access. On Virtual Edition, you buy LTM per instance by maximum throughput (25 Mbps, 200 Mbps, 1 Gbps, 3 Gbps, 5 Gbps or 10 Gbps), or High Performance VE by vCPU count. Both are available as perpetual licenses or subscriptions. Part numbers follow the pattern F5-BIG-LTM-VE-1G-V18 (LTM VE, 1 Gbps); see the BIG-IP VE part numbers for the full list.

How to Get an F5 Load Balancer Quote from Golicense

  1. Estimate the throughput and the number of SSL connections per second you need.
  2. Choose the platform: rSeries or VELOS hardware, or Virtual Edition on your hypervisor or cloud.
  3. List the modules: LTM alone, or LTM with BIG-IP DNS, F5 WAF for BIG-IP or other modules.
  4. Send the details through our price quote form below; we reply within 24 hours.

Not sure which BIG-IP fits your traffic?

Tell us your applications, throughput and where they run, and we will recommend the platform, bundle and part numbers.

Get F5 Pricing →

F5 Load Balancer FAQ

What Is an F5 Load Balancer?

An F5 load balancer is an F5 BIG-IP system running Local Traffic Manager (LTM). It receives client connections on a virtual server and sends each one to a healthy server in a pool, using health monitors, persistence and a load balancing method.

Is an F5 Load Balancer Hardware or Software?

Both. The same BIG-IP software runs on rSeries appliances, VELOS chassis and as BIG-IP Virtual Edition on VMware, KVM, Hyper-V and public clouds. F5 also sells NGINX Plus and F5 Distributed Cloud for software and SaaS load balancing.

What Is the Default Load Balancing Method on BIG-IP?

Round Robin. Each new connection goes to the next pool member in turn. You can change the method per pool, for example to Least Connections or Ratio.

What Is the Difference Between LTM and BIG-IP DNS?

LTM balances connections across servers in one site. BIG-IP DNS, formerly GTM, balances users across data centers and clouds by answering DNS queries with the address of the best site.

Do I Need a Separate License for Load Balancing on BIG-IP?

No. LTM is part of every BIG-IP bundle (Good, Better and Best). On Virtual Edition, LTM is licensed per instance by throughput or by vCPU.

Can an F5 Load Balancer Do SSL Offloading?

Yes. LTM decrypts HTTPS with a Client SSL profile and can re-encrypt traffic to servers with a Server SSL profile. See our guide to SSL offloading for the options.

Related F5 Resources

Need help with your license?

Find the right solution for your business

Our team can help you choose the right license and provide a tailored quote for your needs.