Professional Documents
Culture Documents
o Simple words load balancer is a network device that distributes traffic to other devices.
o A load balancer is a network device that distributing traffic to other network devices.
o Efficiently distributing incoming the network traffic across a group of backend servers.
o Performs three interrelated functions; monitoring hosts, acting as proxy & load balancing.
o Load balancing is essential part of F5 BIG-IP for automatic balancing and distributing traffic.
o Primary intent for load balancing is the same to provide higher availability of applications.
o The basic intent for load balancing is greater performance and better end-user experience.
o LTM has number of load-balancing options-different methods to distribute service requests.
o It is important to emphasize that requests are distributed between available servers only.
o Availability is determined by both monitors & management status of both node & member.
o There are several types of algorithms/methods an F5 can use depending on array of factors.
o LTM uses various types of algorithms to determine the server to which traffic will be sent.
o LTM, Load balancing methods fall into one of two distinct categories are static & dynamic.
Round Robin:
o This algorithm/Method is designed to equally distributed load across all the pool members.
o Round Robin load balancing method /algorithm is also the default load-balancing method.
o Round Robin load balancing method /algorithm is default & most commonly used method.
o Generally used when we have equal hardware such as Processor, CPU, RAM, and Memory.
o Round Robin load balancing is appropriate when all pool members have similar capacity.
o F5 Local Traffic Manager evenly distributes client request across all available pool member.
Least Connections:
o The Least Connections load balancing mode is a dynamic load balancing algorithm/Method.
o This method, requests are forward to server which has least number of open connections.
o Used when servers of similar capabilities such as same Processor, CPU, RAM and memory.
o This method consider the current connections count to decide where to send next request.
o Distributes connections to server that is currently managing the fewest open connections.
o If multiple servers are having the same amount of connections count, then F5 LTM do.
o Performs Round-Robin algorithm for servers which are having same amount of connection.
o Least Connection load balancing can be performed based upon node or pool member.
o BIG-IP LTM is not going to check the connections the server is having with other servers.
o It is only going to check the connections the F5 BIG-IP LTM is with Pool Members only.
Round Robin:
o This algorithm/Method is designed to equally distributed load across all the pool members.
o Round Robin load balancing method /algorithm is also the default load-balancing method.
o Round Robin load balancing method /algorithm is default & most commonly used method.
o Generally used when we have equal hardware such as Processor, CPU, RAM, and Memory.
o Round Robin load balancing is appropriate when all pool members have similar capacity.
o F5 Local Traffic Manager evenly distributes client request across all available pool member.
Ratio:
o This algorithm/Method allows to set ratio weights accordingly to capacity of real servers.
o In F5 LTM, traffic gets load balanced accordingly to the ratio weights set on the server.
o Ratio load balancing is desirable when all the pool members do not have uniform capacity.
o The Ratio method is appropriate to use if some of the members are powerful than other.
o Ratio is static method so, that server with highest ratio value will receive more request.
o Ratio load balancing is useful when pool members have varying the available capacity.
o For example, if a pool contains one fast server and three slower server’s ratio can be set.
o Suppose 3 servers, on each server ratios are assigned accordingly to hardware capability.
o If 1st server is assigned a ratio of 3 then 1st three connections go to that server and so on.
o This type of method is mostly used when our servers are not having similar capabilities.
Change Load Balancing Method to Ratio (Member) which is second Static method.
Finally, three Server Load balancing method and Ratio are set.
Let’s Verify this time the servers get connections and request by Ratio set.
Take SSH session to virtual Server 192.168.2.100 to verify Least Connection method.
Before to test make sure on SSH-Pool Reset and clear the connection counter.
In this case Server-1 response faster that’s why all three connection get by Server-1
Before test in the Lab let’s clear and reset the Connection counter.
Let’s change Load Balancing method to Dynamic Ratio (Member) under HTTP-Pool
Assuming all servers are currently available, if using Least Connections (Member) load balancing
and the open connection count is shown above in the diagram, Server 3 will receive the next
HTTP request which has minimum HTTP connection number 99 as compare to Server 1 and
Server 2.
Assuming all servers are currently available, if using Least Connections (Node) load balancing
and the open connection count is shown above in the diagram, Server 1 will receive the next
HTTP request which has minimum total HTTP and SSH connection number 109 as compare to
Server 2 and Server 3.
If you have 3 members that are active within a pool and you select round robin LB method and
set the priority group activation for less than 2, the virtual server is only going to use two of
three nodes to round robin.
Now to test redirect is working or not, disable or turnoff all the backend Servers type Virtual
Server IP 192.168.114.200 in web browser it will redirect to www.google.com
Methods of Monitoring:
o Three methods of monitoring: Simple Monitoring, Active Monitoring & Passive Monitoring.
Simple Monitoring:
o Simple Monitoring determines whether the status of a resource is up or down.
o Simple Monitoring just and only checks whether a host is reachable or offline.
o Simple Monitors do not monitor the pool members but only the node itself.
o The system contains three simple monitors, Gateway ICMP, ICMP & TCP_ECHO.
o Simple Monitors work well when only need to determine the up or down status.
Type of Monitoring:
o There are two types of Monitors used by BIG-IP Local Traffic Manager (LTM).
o Monitoring info is useful during troubleshooting and system maintenance.
Health Monitor:
o Health Monitor verifies particular resource is working or not in a specified time.
o If the resource is not available, then it does not forward the traffic to them.
o Checks resources to determine if they are up and functioning for a given service.
o Health Monitor is designed to report the status of a pool, pool member, or node.
o When marks pool, pool member, or node as down, it stops sending traffic to device.
Performance Monitor:
o Performance Monitor checks load and performance of a resource in the LTM.
o If the load is more on the resource , LTM forward the traffic to other resource.
o Gathers info about resources that system uses to dynamically load balance traffic.
o Server is monitor by performance monitor displays degradation in performance.
o LTM redirects traffic to other resources until performance of server returns to normal.
o The SNMP DCA monitor checks the current CPU, memory, and disk usage of a server.
o SNMP collection agent & then dynamically load balances traffic based on performance.
Gateway Uses Internet Control Message Protocol (ICMP) to make a simple resource
ICMP check. Check is successful if the monitor receives a response to an ICMP_ECHO.
ICMP Makes a simple node check. The check is successful if the monitor receives a
response to an ICMP_ECHO.
TCP Echo Verifies Transmission Control Protocol (TCP) connections. The check is
successful if the BIG-IP system receives a response to a TCP Echo message.
TCP Half Monitors the associated service by sending a TCP SYN packet to the service. As
Open soon as monitor receives SYN-ACK packet, the monitor marks the service as up.
UDP Verifies the User Datagram Protocol (UDP) service by attempting to send UDP
packets to a pool, pool member, or virtual server and receiving a reply.
Inband This monitor, when acting as a client, attempts to connect to a pool member. If
the pool member does not respond to a connection request after a user-specified
number of tries within a user-specified period, the monitor marks the pool
member as down. After the monitor has marked the pool member as down, and
after a user-specified period has passed, the monitor again tries to connect to the
pool member.
Now, go to Main > Local Traffic > Monitors > Create to create new External Monitor.
Now create External Monitor, provide name, description, type, Parent Monitor, interval,
timeout, external program which is name of the script imported if require arguments and
variable provide it.
To verify open Wireshark in Windows XP and capture the pickets you will see F5 LTM which IP
address is 192.168.1.100 sending ICMP packet after every 5 second to monitor the server.
To very External Monitor is working or not off windows XP system, availability is Offline now.
Objects Descriptions
Health Monitors Specifies the health monitors that monitor this node.
Active Specifies the health monitors that the system currently uses to
monitor this node.
Available Specifies the health monitors that are configured on the system,
and that you can use to monitor this node.
Availability Requirement Specifies, if you activate more than one health monitor
Update To apply the configure Health Monitors.
Objects Descriptions
Health Monitors Specifies the health monitors that monitor this node.
Active Specifies the health monitors that the system currently uses to
monitor this node.
Available Specifies the health monitors that are configured on the system, and
that you can use to monitor this node.
Node Specific Specifies that system monitors this node with monitors configure
Configure under Main > Local Traffic > Pools > Then Select the pool you want to configure
health monitor > Health Monitor
Objects Descriptions
Health Monitors Specifies an association between a health or performance monitor
and an entire pool, rather than with individual pool members.
<< and >> Use the Move buttons to adjust list membership.
Active Lists the health monitors that are already assigned to the pool.
Available Lists the health monitors that are available to add to the pool.
Can be configured under Main > Local Traffic > Pools> Then select pool you want to configure
Health Monitor > Members > Pool Member > Change the configuration from Basic to Advanced
> Health Monitors > Member Specific.
Objects Descriptions
Health Monitors Specifies the health monitors that the system uses to monitor this
pool member.
Member Specific To configure different health monitor for the individual pool member.
<< and >> Use the Move buttons to adjust list membership.
Active Specifies the health monitors that the system currently uses to
monitor this pool member.
Available Specifies the health monitors that are configured on the system, and
that you can use to monitor this pool member.
On the Main tab, go to Local Traffic > Monitors, Select the name of monitor you want to test,
Select Test tab, For Address, type the IP address and port number of the destination host.