Jump to content
Welcome to our new Citrix community!
  • Link Load Balancing for Citrix ADC


    cugcblogs

    manikumarrnd.png by Mani Kumar

    What is Link Load Balancing?

    The Citrix ADC appliance uses LLB to monitor and regulate traffic, ensuring that packets are sent over the best possible network. Outbound traffic is balanced via link load balancing (LLB) over numerous Internet connections offered by different service providers.

    The Citrix ADC appliance and the router are connected through a link. Configuring a basic setup with default parameters while configuring link load balancing is the most common scenario. Services, virtual servers, monitors, routes, an LLB method, and persistence are all part of a basic configuration (optional). You can customize a basic setup for your environment once it is operating.

    There are two Link Load Balance services available with 192.168.30.x1 and 192.168.30.x2, and traffic data travels through the efficient internet service provider, as shown in the example below,

    kumar092221-01.png.6083586ab13ff7e724feeba06d833c05.png

    For connections to be sustained on a specific link, you can optionally configure persistence. Source IP address-based persistence, destination IP address-based persistence, and source IP and destination IP address-based persistence are all options. The default monitor is PING, although setting up a transparent monitor is advised. Configure reverse NAT (RNAT) and backup links to personalize your system.

    Below are the different components for configuring Link Load Balancing:

     

    A. Services: 

    Services are applications that run on a server. While services are typically combined with virtual servers, a service can still manage application-specific traffic in the absence of a virtual server. In case of load balancing, where service represents a server, a service in LLB represents a router or the next hop.

     

    B. Virtual Server: 

    Virtual servers configured on the appliance provide connection points that clients use to access the applications behind the appliance in a typical installation. Virtual servers are used to map LLB services, and those services are then represented for each individual link (router or next hop).

     

    C. Load Balancing Method: 

    The methodical and efficient distribution of network or application traffic across multiple servers in a server farm is referred to as load balancing. Each load balancer sits between client devices and backend servers, receiving and distributing incoming requests to any server that can fulfill them.

    The following load balancing methods are supported:

    LEASTCONNECTIONWhich service has the fewest client connections right now.  
    ROUNDROBINWhich service is at the top of a list of services. After that service is selected for a connection, it moves to the bottom of the list.
    LEASTRESPONSETIME   Which load balanced server has the fastest response time right now  
    URLHASHA hash of the destination URL.
    DOMAINHASHA hash of the destination domain.
    DESTINATIONIPHASHA hash of the destination IP address.
    SOURCEIPHASHA hash of the source IP address.
    SRCIPDESTIPHASHA hash of the source and destination IP addresses.
    CALLIDHASHA hash of the call ID in the SIP header.
    SRCIPSRCPORTHASHA hash of the client’s IP address and port.
    LEASTBANDWIDTHWhich service currently has the fewest bandwidth constraints.
    LEASTPACKETSWhich service currently is receiving the fewest packets.
    CUSTOMLOADData from a load monitor.
    TOKENThe configured token.
    LRTMFewest active connections and the lowest average response time.

     

    D. Persistence Method

    If you want to keep the states of connections on the servers represented by that virtual server, you must configure persistence on that virtual server . The appliance then selects a server using the defined load balancing mechanism, however all subsequent requests from the same client are forwarded to the same server.

    Once the server has been selected, the load balancing algorithms are overridden if persistence is enabled. If the configured persistence applies to a down service, the appliance selects a new service using load balancing methods, and the new service becomes persistent for subsequent client requests. If a service is marked as Out Of Service, it will continue to serve existing requests but will not accept new ones or connections. Existing connections are closed after the shutdown period expires. The forms of persistence that you can configure are listed in the table below.

    kumar092221-02.png.bd23db960fbe620f25e86fa34eeb45e3.pngTable 1: Limitations on Number of Simultaneous Persistent Connections

    The load balancing methods are utilized for server selection if the configured persistence cannot be maintained due to a lack of resources on an appliance. Depending on the persistence type, persistence is kept for a specified amount of time. Some types of persistence are only available on certain virtual servers. The relationship is depicted in the table below.

    kumar092221-03.png.aa0fb0fcd7888481b4725bcb912bf499.pngTable 2: Persistence Types Available for Each Type of Virtual Server

    Persistence can also be specified for a set of virtual servers. Client requests are directed to the same specified server when you enable persistence on the group, regardless of which virtual server in the group gets the client request. When the persistence timer expires, any virtual server in the group can be used to handle incoming client requests.

    1. Monitor: (Ping , Transparent)

    The link load balancing monitor can be used to manage the various attributes: overall traffic view, certificate management, scalability, web application firewall insight, and latency awareness. 

    Ping and transparent are two approaches for monitoring LLB.

    1. Ping :

    The default PING monitor simply monitors the connectivity between the Citrix ADC appliance and the upstream device.

    1. Transparent:

    You construct a transparent monitor to look on upstream equipment like routers. The transparent monitor can then be bound to services. The transparent monitor keeps track of all devices in the path between the appliance and the device with the destination IP address. The appliance includes the router while conducting load balancing and transmits the packet to the router if a transparent monitor is not configured and the router's status is UP but one of the next hop devices from that router is down. However, because one of the next hop devices is down, the packet is not transmitted to the destination. By connecting a transparent monitor, you can.

    Backup route

    You can set up a backup route to prevent service disruptions if the primary route goes down. When the primary route fails, the Citrix ADC appliance immediately switches to the backup route. To begin, configure an LLB virtual server and bind a service as explained in Configuring an LLB Virtual Server and Binding a Service.

    Create a secondary virtual server that is comparable to a primary virtual server and then designate it as a backup virtual server to configure a backup route (route). Router-vip is the primary virtual server, and Backup Router-vip is the secondary virtual server designated as the backup virtual server, as shown in the diagram.

    kumar092221-04.png.7e85a064aa4947d6a890f008dbef25f3.pngFigure 1: Backup Route Setup

     

    Note: Replace the IPv4 service with an IPv6 service if your ISP has given one.

     

    kumar092221-05.png.d9c7f48c84ad3f1ebb64b6c502b93787.pngFigure 2: Backup Routing in Operation

    To demonstrate the link load balancing feature, we have two internet service providers, ISP-1 and ISP-2, connected via router as shown below, and a Citrix ADC attempting to balance the link load between both internet service providers. This entire setup supports the link requirement for systems, which are depicted as backend systems.

     

    Lab Design:

    kumar092221-06.png.f4de7834ed10ec09f0182b4c3ea374de.png

    Lab Instance:

    Instance NameIPDescription
    ADC192.168.30.xCitrix ADC Box
    LLB-01192.168.30.x1Service representing to internet connection
    LLB-02192.168.30.x2Service representing to internet connection
    LLB-VSRV-01No-AddressVirtual Server for LLB
    LLB-VSRV-BackupNo AddressVirtual Server for Backup Link

     

    Step 1: Connect to Primary ADC:

    Open Google Chrome and connect to Primary ADC using NSIP https://192.168.30.x.

    Log on using the credentials:

    kumar092221-07.png.dc8eb729f1190928305dc5f2908555df.png

    Step 2: Create the LLB Router Services:

    Browse to Traffic Management > Load Balancing > Services >Click Add

    kumar092221-08.png.da9ac39abe5c11075723f4d50af54ac2.png

    Enter the following Service information for the llb01 router:

    • Service Name: LLB-01
    • Verify that the radio button is set to: New Server
    • IP Address: 192.168.30.x1
    • Protocol: ANY
    • Port: *
    • Click OK.
    • Click Done on the following window.
    kumar092221-09.png.a6d171fbd88ac4f67b67764e94492252.png

    Enter the following Service information for the llb02 router:

    • Service Name: llb02
    • Verify that the radio button is set to: New Server
    • IP Address: 192.168.30.x2
    • Protocol: ANY
    • Port: *
    • Click OK.
    • Click Done on the following window.
    kumar092221-10.png.e020d95719bacd6d45aff7a6ec4169f2.png

    Verify that the services are UP or not.

    kumar092221-11.png.bfa4c063be007404d5e62446ded2bf19.png

    Step 3: Create a Link Load Balancing virtual server:

    • Browse to Traffic Management > Load Balancing > Virtual Servers.
    • Click Add.
    kumar092221-12.png.13a9f256d7d8d4b8edf9d099f5d93562.png

    Enter the Load Balancing Virtual Server information:

    • Name: LLB-VSRV-01
    • Protocol: ANY
    • IP Address Type: Non-Addressable
    • Click OK
    kumar092221-13.png.94358e13549c31af6231ca6f746350bb.png

    Step-4: Bind the Services to the Load Balancing Virtual Server:

    • Click No Load Balancing Virtual Server Service Binding.
    kumar092221-14.png.89eff958be23c52ba085f6b7d6242a99.png
    • Click on Click to Select
    kumar092221-15.png.e39014ac88eefd583d38ce4f87bd4896.png
    • Select the check boxes for Services LLB-01 and LLB-02, and then click Select.
    kumar092221-16.png.4a52a487ed919fc4cfad525e979c21ee.png
    • Click Bind.
    kumar092221-17.png.376166235355bb01f3df0c622e9a6762.png
    • Click Continue

    Step 5: Define the load balancing Method to Round Robin:

    • Click Method under Advanced Settings.
    kumar092221-18.png.723dbb75b8a0f8358fc3d563f2f9f79f.png
    • Under Method, make sure that ROUNDROBIN is selected for the Load Balancing Method box,
    kumar092221-19.png.046f5f929868eedeb1df0272790f1fc3.png
    • Click OK.

     Step 6: Select a Load Balancing Persistence Method:

    • Under Advanced Settings, click Persistence.
    • Under Persistence, make sure that the SOURCEIP is selected for the Persistence box, and then click OK.
    kumar092221-20.png.91ac5f51810e8f657b9f5d1af97d9cc4.png
    • Click Done.

    Step 7: Verify that the Load balancing Virtual Server LLB-VSRV-01 is UP

    kumar092221-21.png.7fc794e0f2130a5654322b0004955474.png
    • Save the ADC configuration

    Step 8: Configure the LLB route:

    • Browse to System > Network > Routes, and then select LLB to configure an IPv4 route.
    • Click Add.
    kumar092221-22.png.0af161a0cde1b73c2862f9d94f477076.png

    Enter the route information:

    • Network: 0.0.0
    • Netmask: 0.0.0
    • Leave the Traffic Domain
    • Gateway Name: LLB-VSRV-01.

    Click Create

    kumar092221-23.png.2f157e824bb69999cd2b9ce708adfde0.png

    Step 9: Creating and Binding a Transparent Monitor

    Create a transparent monitor for LLB-MON-01:

    • Browse to Traffic Management > Load Balancing > Monitors.
    • In the Monitors pane, click Add.
    kumar092221-24.png.79190ee2859c21a2705c61cdf470a579.png

     In the Create Monitor dialog box, configure the following parameters:

    • Name: LLB-MON-01

      kumar092221-25.png.9cb74b79e90e73fba54eb8fd08a8e27a.png

    • Type: Click on Select
    • select PING
    kumar092221-26.png.9bd6f2a12fa2b085e96cb297a050ccf2.png
    • Under Advanced Parameters, Destination IP: 192.168.30.x1 

      Select the checkbox for Transparent.

    kumar092221-27.png.0f068298cdcb21592d3f9ee078b79341.png

    Click Create.

    Create a transparent monitor for LLB-MON-02:

    • In the Monitors pane, click Add.

     In the Create Monitor dialog box, configure the following parameters:

    • Name: LLB-MON-02
    • Type: Click on Click to select and select PING
    • Under Advanced Parameters, Destination IP: 168.30.x2

    Step 10: Bind the monitor to the service:

    Bind the LLB-MON-01 monitor to the LLB-01 service:

    • Browse to Traffic Management > Load Balancing > Services.
    • Select LLB-01 and click Edit.
    kumar092221-28.png.7211fd4ec87f53dd285a33add3f90b85.png

    Under Monitors, click 1 Service to Load Balancing Monitor Binding.

    • Click Add Binding.
    kumar092221-29.png.a33db1c510b1d3b64de38b5e8b333be4.png

    Click Click to Select.

    • Find you monitor in list. 

      Select the checkbox for LLB-MON-01 monitor, and then click Select.

    kumar092221-30.png.207e7995317009afa4a5926c05eb9757.png
    • Click Bind
    kumar092221-31.png.b9a79e33371f580472c7e62c77b40366.png

    Bind the LLB-MON-02 monitor to the LLB-02 service:

    • Browse to Traffic Management > Load Balancing > Services.
    • Select LLB-02 and click Edit
    • Under Monitors click 1 Service to Load Balancing Monitor Binding.
    • Click Add Binding.
    • Click on Click to Select.
    • Select the checkbox for LLB-MON-02 monitor, and then click Select.
    • Click Bind.
    • Click Close.
    • Click Done

    Configure a Backup Route:

    In this scenario, I'm going to set up LLB-02 as a backup link. So, first and foremost, I will unbind LLB-02 from the link load balancing virtual server and bind it to a new virtual server that will function as a backup link.

     

    Step 1: Unbind the LLB-02 Service and use it for the Backup Route:

    • Browse to Traffic Management > Load Balancing > Virtual Servers.
    • Select LLB-VSRV-01 and click Edit.
    • Select 2 Load Balancing Virtual Server Service Bindings.
    kumar092221-32.png.cb9e99bdce71484442201083a280161b.png
    • Select the LLB-02 service and click Unbind.
    kumar092221-33.png.8f67c2c31ac0541c3a1ebd6eb8663d99.png
    • Click Yes to Confirm.
    • Click Close.
    • Click Done

    Step 2: Configure a backup Link Load balancing Virtual Server to add as a backup route:

    • Browse to Traffic Management > Load Balancing > Virtual Servers.
    • Click Add.
    • Name: LLB-VSRV-Backup
    • Protocol: ANY
    • IP Address Type: Non-Addressable
    kumar092221-34.png.6eae9ca2fe57179f49eeba6566b25822.png
    • Click OK.

    Step 3: Bind Service to the Virtual Server:

    kumar092221-35.png.f1282964656609d1266b256bdc3541b3.png
    • Click No Load Balancing Virtual Server Service Binding.
    • Click Click to select.
    • Select the checkbox for LLB-02 and click Select.
    • Click Bind.

    Click Continue.

    Step 4: Configure the backup route:

    • On the Virtual Servers pane, select the checkbox for LLB-VSRV-01 and click edit.
    • Click Protection on the right pane.
    kumar092221-36.png.a194a8c31e99f6abf10d6e4600010764.png
    • Under Protection, make sure that the LLB-VSRV-Backup is selected for the Backup Virtual Server box.
    kumar092221-37.png.bf0df72ae6ce06186f0cdce7dda6b30f.png
    • Click OK.
    • Click Done.

    User Feedback

    Recommended Comments

    There are no comments to display.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...