Link Load Balancing 2015-04-28 08:50:44 UTC. 2015 Citrix Systems, Inc. All rights reserved. Terms of Use Trademarks Privacy Statement



Similar documents
Firewall Load Balancing

Understanding Slow Start

Scaling Next-Generation Firewalls with Citrix NetScaler

ExamPDF. Higher Quality,Better service!

Chapter 1 Load Balancing 99

Firewall Defaults and Some Basic Rules

Configuring Auto Policy-Based Routing

Smart Tips. Enabling WAN Load Balancing. Key Features. Network Diagram. Overview. Featured Products. WAN Failover. Enabling WAN Load Balancing Page 1

How do I load balance FTP on NetScaler?

Network Agent Quick Start

Configuring WAN Failover & Load-Balancing

Configuring SSL VPN on the Cisco ISA500 Security Appliance

Domain Name System :49:44 UTC Citrix Systems, Inc. All rights reserved. Terms of Use Trademarks Privacy Statement

How do I configure multi-wan in Routing Table mode?

Chapter 2 Connecting the FVX538 to the Internet

How To Configure Virtual Host with Load Balancing and Health Checking

Citrix NetScaler Global Server Load Balancing Primer:

How To Manage Outgoing Traffic On Fireware Xtm

Configuring the BIG-IP and Check Point VPN-1 /FireWall-1

SonicOS Enhanced 4.0: NAT Load Balancing

Quick Note 53. Ethernet to W-WAN failover with logical Ethernet interface.

HP Load Balancing Module

Configuring PA Firewalls for a Layer 3 Deployment

Citrix NetScaler Networking Guide. Citrix NetScaler 9.0

ASA/PIX: Load balancing between two ISP - options

About Firewall Protection

2.0 Dual WAN Select Dual-WAN, you will see the following screen shot, Figure 0.1(Dual-WAN Screen Shot) Figure 0.1(Dual-WAN Screen Shot)

Citrix NetScaler Load Balancer Configuration

Quick Start for Network Agent. 5-Step Quick Start. What is Network Agent?

Set Up a VM-Series Firewall on the Citrix SDX Server

F-SECURE MESSAGING SECURITY GATEWAY

Basic ViPNet VPN Deployment Schemes. Supplement to ViPNet Documentation

Elfiq Link Balancer (Link LB) Quick Web Configuration Guide

SSL-VPN 200 Getting Started Guide

1:1 NAT in ZeroShell. Requirements. Overview. Network Setup

1 PC to WX64 direction connection with crossover cable or hub/switch

SonicWALL NAT Load Balancing

Configuring Switch Ports and VLAN Interfaces for the Cisco ASA 5505 Adaptive Security Appliance

Firewall Defaults, Public Server Rule, and Secondary WAN IP Address

Load Balancer LB-2. User s Guide

vcloud Air - Virtual Private Cloud OnDemand Networking Guide

Deployment Guide. WAN Link Load Balancing. Deployment Guide. A Step-by-Step Technical Guide

Understanding and Configuring NAT Tech Note PAN-OS 4.1

Guideline for setting up a functional VPN

Barracuda Link Balancer Administrator s Guide

Quick Start for Network Agent. 5-Step Quick Start. What is Network Agent?

Firewall Load Balancing

Policy Based Forwarding

Best Practices: Pass-Through w/bypass (Bridge Mode)

Citrix NetScaler Networking Guide

Avaya P330 Load Balancing Manager User Guide

Citrix-Pass4Sure-1Y0-A21.v by.Apache.62q

Firewall VPN Router. Quick Installation Guide M73-APO09-380

Lab Configuring Access Policies and DMZ Settings

Deploying the Barracuda Link Balancer with Cisco ASA VPN Tunnels

How To Load balance traffic of Mail server hosted in the Internal network and redirect traffic over preferred Interface

NEFSIS DEDICATED SERVER

FortiOS Handbook - Load Balancing VERSION 5.2.2

Firewall Load Balancing

How to Open HTTP or HTTPS traffic to a webserver behind the NetVanta 2000 Series unit (Enhanced OS)

Application Description

F-Secure Messaging Security Gateway. Deployment Guide

Common Application Guide

UIP1868P User Interface Guide

VMware vcloud Air Networking Guide

LinkProof DNS Quick Start Guide

3.1 RS-232/422/485 Pinout:PORT1-4(RJ-45) RJ-45 RS-232 RS-422 RS-485 PIN1 TXD PIN2 RXD PIN3 GND PIN4 PIN5 T PIN6 T PIN7 R+ PIN8 R-

Barracuda Link Balancer

Load Balancing Microsoft Remote Desktop Services. Deployment Guide

Deployment Guide. Web Filter. Deployment Guide. A Step-by-Step Technical Guide

MULTI WAN TECHNICAL OVERVIEW

Multi-Homing Security Gateway

Configuring IPSec VPN Tunnel between NetScreen Remote Client and RN300

Chapter 12 Supporting Network Address Translation (NAT)

How To Configure SSL VPN in Cyberoam

CS 326e F2002 Lab 1. Basic Network Setup & Ethereal Time: 2 hrs

Server Iron Hands-on Training

Configuration Example

Firewall Firewall August, 2003

Prestige 623R-T. Quick Start Guide. ADSL Dual-link Router. Version 3.40

Load Balancing Router. User s Guide

Hosting more than one FortiOS instance on. VLANs. 1. Network topology

Multi-Homing Dual WAN Firewall Router

IOS Server Load Balancing

Load Balancing Bloxx Web Filter. Deployment Guide

CREATING AN IKE IPSEC TUNNEL BETWEEN AN INTERNET SECURITY ROUTER AND A WINDOWS 2000/XP PC

BR Load Balancing Router. Manual

FBR Multi-WAN VPN Router. User Manual

Break Internet Bandwidth Limits Higher Speed. Extreme Reliability. Reduced Cost.

10 Configuring Packet Filtering and Routing Rules

DEPLOYMENT GUIDE Version 1.1. DNS Traffic Management using the BIG-IP Local Traffic Manager

Broadband Router ESG-103. User s Guide

Galileo SSL Installation Guide Galileo SSL Client v

Deployment Guide AX Series with Citrix XenApp 6.5

REQUIREMENTS AND INSTALLATION OF THE NEFSIS DEDICATED SERVER

Load Balancing Microsoft Terminal Services. Deployment Guide

vrealize Automation Load Balancing

Volume GAJSHIELD INFOTECH PVT LTD. Wan Failover & Load Balancing. Administrative Guide

Configuring the Juniper NetScreen Firewall Security Policies to support Avaya IP Telephony Issue 1.0

OSBRiDGE 5XLi. Configuration Manual. Firmware 3.10R

Transcription:

Link Load Balancing 2015-04-28 08:50:44 UTC 2015 Citrix Systems, Inc. All rights reserved. Terms of Use Trademarks Privacy Statement

Contents Link Load Balancing... 3 Link Load Balancing... 4 Configuring a Basic LLB Setup... 5 Configuring Services... 6 Configuring an LLB Virtual Server and Binding a Service... 8 Configuring the LLB Method and Persistence... 10 Configuring an LLB Route... 13 Creating and Binding a Transparent Monitor... 16 Configuring RNAT with LLB... 20 Configuring a Backup Route... 23 Resilient LLB Deployment Scenario... 26 Monitoring an LLB Setup... 28 2

Link Load Balancing Link load balancing (LLB) balances outbound traffic across multiple Internet connections provided by different service providers. LLB enables the Citrix NetScaler appliance to monitor and control traffic so that packets are transmitted seamlessly over the best possible link. Unlike with server load balancing, where a service represents a server, with LLB, a service represents a router or the next hop. A link is a connection between the NetScaler and the router. To configure link load balancing, many users begin by configuring a basic setup with default settings. Configuring a basic setup involves configuring services, virtual servers, monitors, routes, an LLB method, and, optionally, configuring persistence. Once a basic setup is operational, you can customize it for your environment. Load balancing methods that are applicable to LLB are round robin, destination IP hash, least bandwidth, and least packets. You can optionally configure persistence for connections to be sustained on a specific link. The available persistence types are source IP address-based, destination IP address-based, and source IP and destination IP address-based. PING is the default monitor but configuring a transparent monitor is recommended. You can customize your setup by configuring reverse NAT (RNAT) and backup links. 3

Configuring a Basic LLB Setup To configure LLB, you first create services representing each router to the Internet Service Providers (ISPs). A PING monitor is bound by default to each service. Binding a transparent monitor is optional but recommended. Then, you create a virtual server, bind the services to the virtual server, and configure a route for the virtual server. The route identifies the virtual server as the gateway to the physical routers represented by the services. The virtual server selects a router by using the load balancing method that you specify. Optionally, you can configure persistence to make sure that all traffic for a particular session is sent over a specific link. 4

Configuring a Basic LLB Setup To configure LLB, you first create services representing each router to the Internet Service Providers (ISPs). A PING monitor is bound by default to each service. Binding a transparent monitor is optional but recommended. Then, you create a virtual server, bind the services to the virtual server, and configure a route for the virtual server. The route identifies the virtual server as the gateway to the physical routers represented by the services. The virtual server selects a router by using the load balancing method that you specify. Optionally, you can configure persistence to make sure that all traffic for a particular session is sent over a specific link. 5

Configuring Services A default monitor (PING) is automatically bound to a service when the service is created, but you can replace the default monitor with a transparent monitor, as described in Creating and Binding a Transparent Monitor. To create a service by using the NetScaler command line At the NetScaler command prompt, type: add service <name> <IP> <servicetype> <port> show service <name> Example add service ISP1R_svc_any 10.10.10.254 any * show service ISP1R_svc_any ISP1R_svc_any (10.10.10.254:*) - ANY State: DOWN Last state change was at Tue Aug 31 04:31:13 2010 Time since last state change: 2 days, 05:34:18.600 Server Name: 10.10.10.254 Server ID : 0 Monitor Threshold : 0 Max Conn: 0 Max Req: 0 Max Bandwidth: 0 kbits Use Source IP: NO Client Keepalive(CKA): NO Access Down Service: NO TCP Buffering(TCPB): YES HTTP Compression(CMP): NO Idle timeout: Client: 120 sec Server: 120 sec Client IP: DISABLED Cacheable: NO SC: OFF SP: OFF Down state flush: ENABLED 1) Monitor Name: ping State: UP Weight: 1 Probes: 244705 Failed [Total: 0 Current: 0] Last response: Success - ICMP echo reply received. Response Time: 1.322 millisec Done 6

Configuring Services Parameters for creating a service name The name of the service. Maximum length: 127 IP The IP address of the physical router for which a service will be added. servicetype The type of connections that the service will handle. Specify a service type of ANY. port Port on which the service listens. Specify an asterisk (*) as the port number. To create services by using the configuration utility 1. In the navigation pane, expand Load Balancing, and then click Services. 2. In the details pane, click Add. 3. 3. In the Create Service dialog box, specify values for the following parameters, which correspond to parameters described in Parameters for creating a service, as shown: Service Name* name Server IP Protocol* servicetype (Select ANY from the drop-down list.) Port* port * A required parameter 4. Click Create. 5. Repeat Steps 2-4 to create another service. 6. Click Close. 7. In the Services pane, select the services that you just configured and verify that the settings displayed at the bottom of the screen are correct. 7

Configuring an LLB Virtual Server and Binding a Service After you create a service, create a virtual server and bind services to the virtual server. The default LB method of least connections is not supported in LLB. For information about changing the LB method, see Configuring the LLB Method and Persistence. To create a link load balancing virtual server and bind a service by using the NetScaler command line At the NetScaler command prompt, type: add lb vserver <name> <servicetype> bind lb vserver < name> <servicename> show lb vserver < name> Example add lb vserver Router1-vip any bind lb vserver Router-vip ISP1R_svc_any sh lb vserver router-vip Router-vip (0.0.0.0:0) - ANY Type: ADDRESS State: DOWN Last state change was at Thu Sep 2 10:51:32 2010 Time since last state change: 0 days, 17:51:46.770 Effective State: DOWN Client Idle Timeout: 120 sec Down state flush: ENABLED Disable Primary Vserver On Down : DISABLED No. of Bound Services : 1 (Total) 0 (Active) Configured Method: ROUNDROBIN Mode: IP Persistence: NONE Connection Failover: DISABLED 1) ISP1R_svc_any (10.10.10.254: *) - ANY State: DOWN Weight: 1 Done 8

Configuring an LLB Virtual Server and Binding a Service Parameters for creating an LLB virtual server name The name of the load balancing virtual server being added. Maximum length: 127 servicetype The service type. Possible value: ANY. Parameters for binding the service name The virtual server name to which the service is bound. Maximum length: 127 servicename The name of the service that is bound. Maximum Length: 127 To create a link load balancing virtual server and bind a service by using the configuration utility 1. In the navigation pane, expand Load Balancing, and then click Virtual Servers. 2. In the Load Balancing Virtual Servers pane, click Add. 3. In the Create Virtual Servers (Load Balancing) dialog box, specify values for the following parameters, which correspond to parameters described in Parameters for creating an LLB virtual server, as shown: Name* name Protocol* servicetype (Select ANY.) * A required parameter Note: Make sure Directly Addressable is unchecked. 4. Under the Services tab, in the Active column, select the check box for the service that you want to bind to the virtual server. 5. Click Create, and then click Close. 6. In the Load Balancing Virtual Servers tab, select the virtual server that you just created, and verify that the settings displayed in the Details pane are correct. 9

Configuring the LLB Method and Persistence By default, the NetScaler appliance uses the least connections method to select the service for redirecting each client request, but you should set the LLB method to one of the supported methods. You can also configure persistence, so that different transmissions from the same client are directed to the same server. To configure the LLB method and/or persistence by using the NetScaler command line At the NetScaler command prompt, type the following command: set lb vserver <name> -lbmethod <lbmethod> -persistencetype <persistencetype> show lb vserver <name> Example set lb vserver router-vip -lbmethod ROUNDROBIN -persistencetype SOURCEIP show lb vserver Router-vip Router-vip (0.0.0.0:0) - ANY Type: ADDRESS State: DOWN Last state change was at Fri Sep 3 04:46:48 2010 Time since last state change: 0 days, 00:52:21.200 Effective State: DOWN Client Idle Timeout: 120 sec Down state flush: ENABLED Disable Primary Vserver On Down : DISABLED No. of Bound Services : 0 (Total) 0 (Active) Configured Method: ROUNDROBIN Mode: IP Persistence: SOURCEIP Persistence Mask: 255.255.255.255 Persistence v6masklength: 128 Persi Connection Failover: DISABLED Parameters for configuring the LLB method and persistence 10

Configuring the LLB Method and Persistence name The name of the load balancing virtual server. Maximum Length: 127 lbmethod The load balancing method. Possible values: ROUNDROBIN: Rotates the outgoing packets among the available links. This method distributes packets equally among the links, even if they operate at different speeds. Therefore, it can result in retransmissions or out-of-order packets. DESTINATIONHASH: Uses the hashed value of the destination IP address to select a link. You can mask the destination IP address to specify which part of it to use in the hash-value calculation, so that requests that are from different networks but destined for the same subnet are all directed to the same link. LEASTBANDWIDTH: Selects the link that is currently serving the least amount of traffic, measured in megabits per second (Mbps). LEASTPACKETS: Selects the link that has received the fewest packets in the last 14 seconds. persistencetype Persistence type for the virtual server. Possible values: SOURCEIP: Persistence based on the source IP address of inbound packets. After the load balancing method selects a link for transmission of the first packet, the NetScaler directs all subsequent packets sent from the same source IP address to the same link. DESTIP: Persistence based on the destination IP address of outbound packets. After the load balancing method selects a link for transmission of the first packet, the NetScaler directs all subsequent packets for the same destination IP address to the same link. SRCIPDESTIP: Persistence based on the source IP address of inbound packets and destination IP address of outbound packets. After the load balancing method selects a link for transmission of the first packet, the NetScaler directs all subsequent requests from the same source IP address and to the same destination IP address to the same link. 11

Configuring the LLB Method and Persistence To configure the link load balancing method and/or persistence by using the configuration utility 1. In the navigation pane, expand Load Balancing, and then click Virtual Servers. 2. In the details pane, select the virtual server for which you want to configure the Load Balancing method and/or persistence settings, and then click Open. 3. In the Configure Virtual Server (Load Balancing) dialog box, on the Method and Persistence tab, specify values for some or all of the following parameters, which correspond to parameters described in "Parameters for configuring the LLB method and persistence" as shown: Method lbmethod Persistence persistencetype 4. Click OK. 5. In the Load Balancing Virtual Servers pane, select the virtual server that you just configured and verify that the settings displayed in the Details pane are correct. 12

Configuring an LLB Route After configuring the services, virtual servers, LLB methods, and persistence, you configure an LLB route for the network specifying the virtual server as the gateway. A route is a collection of links that are load balanced. Requests are sent to the virtual server IP address that acts as the gateway for all outbound traffic and selects the router based on the LLB method configured. To configure an LLB route by using the NetScaler command line At the NetScaler command prompt, type: add lb route <network> <netmask> <gatewayname> show lb route [<network> <netmask>] Example add lb route 0.0.0.0 0.0.0.0 Router-vip show lb route 0.0.0.0 0.0.0.0 Network Netmask Gateway/VIP State ----------- ------------- ------------------ -------- 1) 0.0.0.0 0.0.0.0 Router-vip UP Parameters for configuring the LLB route network The IP address of the network to which the route belongs. netmask The mask specifying the subnet to which the route belongs. gatewayname The name of the virtual server. Maximum Length: 127 13

Configuring an LLB Route To configure an LLB route by using the configuration utility 1. In the navigation pane, expand Network, and then click Routes. 2. In the details pane, on the LLB tab, click Add. 3. In the Create LB Route dialog box, specify values for the following parameters, which correspond to parameters described in Parameters for configuring the LLB route as shown: Network* network Netmask* netmask Gateway Name* gatewayname * A required parameter 4. Click Create, and then click Close. The route that you just created appears in the on the LLB tab in the Routes pane. The following diagram shows a basic LLB setup. A service is configured for each of the two links (ISPs) and PING monitors are bound by default to these services. A link is selected based on the LLB method configured. 14

Configuring an LLB Route Figure 1. Basic LLB Setup 15

Creating and Binding a Transparent Monitor You create a transparent monitor to monitor the health of upstream devices, such as routers. You can then bind the transparent monitor to services. The default PING monitor monitors the connectivity only between the NetScaler appliance and the upstream device. The transparent monitor monitors all the devices existing in the path from the appliance to the device that owns the destination IP address specified in the monitor. If a transparent monitor is not configured and the status of the router is UP but one of the next hop devices from that router is down, the appliance includes the router while performing load balancing and forwards the packet to the router. However, the packet is not delivered to the final destination because one of the next hop devices is down. By binding a transparent monitor, if any of the devices (including the router) are down, the service is marked as DOWN and the router is not included when the appliance performs link load balancing. To create a transparent monitor by using the NetScaler command line At the NetScaler command prompt, type: add lb monitor <monitorname> <type> -destip <ip_addr *> -transparent YES show lb monitor [<monitorname>] Example add lb monitor monitor-1 PING -destip 10.10.10.11 -transparent YES > show lb monitor monitor-1 1) Name...: monitor-1 Type...: PING State...: ENABLED Standard parameters: Interval...: 5 sec Retries...: 3 Response timeout.: 2 sec Down time...: 30 sec Reverse...: NO Transparent...: YES Secure...: NO LRTM...: ENABLED Action...: Not applicable Deviation...: 0 sec Destination IP...: 10.10.10.11 Destination port.: Bound service Iptunnel...: NO TOS...: NO TOS ID...: 0 SNMP Alert Retries: 0 Success Retries..: 1 Failure Retries..: 0 16

Creating and Binding a Transparent Monitor Parameters for creating a transparent monitor monitorname (Name) The name of the monitor. Maximum Length: 31 type (Type) The type of monitor. destip (Destination IP) The IP address to which the probe is sent. If the destination IP address is set to 0, the destination IP address is that of the server to which the monitor is bound. Default value: 0 transparent (Transparent) The state of the monitor for transparent devices, such as firewalls, based on the responsiveness of the services behind them. If the monitoring of transparent devices is enabled, the destination IP address should be specified. The probe is sent to the specified destination IP address by using the MAC address of the transparent device. Possible values: YES, NO. Default value: NO To create a transparent monitor by using the configuration utility 1. In the navigation pane, expand Load Balancing, and then click Monitors. 2. In the Monitors pane, click Add. 3. In the Create Monitor dialog box, set the following parameters: Name* Type* Destination IP Transparent * A required parameter 4. Click Create, and then click Close. 5. In the Monitors pane, select the monitor that you just configured and verify that the settings displayed in the Details pane are correct. To bind a monitor to a service by using the NetScaler command line 17

Creating and Binding a Transparent Monitor At the NetScaler command prompt, type: bind lb monitor <monitorname> <servicename> show service <servicename> Example bind lb monitor monitor-http-1 isp1r_svc_any Done > show service isp1r_svc_any ISP1R_svc_any (10.10.10.254:*) - ANY State: UP Last state change was at Thu Sep 2 10:51:07 2010 Time since last state change: 0 days, 18:41:55.130 Server Name: 10.10.10.254 Server ID : 0 Monitor Threshold : 0 Max Conn: 0 Max Req: 0 Max Bandwidth: 0 kbits Use Source IP: NO Client Keepalive(CKA): NO Access Down Service: NO TCP Buffering(TCPB): YES HTTP Compression(CMP): NO Idle timeout: Client: 120 sec Server: 120 sec Client IP: DISABLED Cacheable: NO SC: OFF SP: OFF Down state flush: ENABLED 1) Monitor Name: monitor-http-1 State: UP Weight: 1 Probes: 1256 Failed [Total: 0 Current: 0] Last response: Success - ICMP echo reply received. Response Time: 1.322 millisec Done Parameters for binding a monitor monitorname The name of the monitor to be bound. Maximum Length: 31 servicename The name of the service or a service group to which the monitor is to be bound. Maximum Length: 127 18

Creating and Binding a Transparent Monitor To bind a monitor to a service by using the configuration utility 1. In the navigation pane, expand Load Balancing, and then click Services. 2. In the details pane, select a service to which you want to bind a monitor, and then click Open. 3. In the Configure Service dialog box, on the Monitors tab, under Available, select the monitor that you want to bind to the service, and then click Add. 4. Click OK. 5. In the Services pane, select the service that you just configured and verify that the settings displayed in the Details pane are correct. 19

Configuring RNAT with LLB You can configure an LLB setup for reverse network address translation (RNAT) for outbound traffic. This ensures that the return network traffic for a specific flow is routed through the same path. First configure basic LLB, as described in Configuring a Basic LLB Setup, and then configure RNAT. You must then enable use subnet IP (USNIP) mode. To configure RNAT by using the NetScaler command line At the NetScaler command prompt, type: set rnat <network> <netmask> show rnat Example set rnat 10.102.29.0 255.255.255.0 > show rnat 1) Network: 10.102.29.0 Netmask: 255.255.255.0 NatIP: * Parameters for configuring RNAT network The network or subnet from which the traffic is flowing. netmask The subnet mask for the network 20

Configuring RNAT with LLB To configure RNAT by using the configuration utility 1. In the navigation pane, expand Network, and then click Routes. 2. In the detailspane, on the RNAT tab, click Configure RNAT. 3. In the Configure RNAT dialog box, specify values for the following parameters, which correspond to parameters described in "Parameters for configuring RNAT" as shown: Network* network Netmask* netmask * A required parameter 4. Click Create, and then click Close. The RNAT route that you just created appears in the on the RNAT tab in the Routes pane. To enable Use Subnet IP mode by using the NetScaler command line At the NetScaler command prompt, type: enable ns mode USNIP show ns mode Example enable ns mode USNIP > show ns mode Mode Acronym Status ------- ------- ------ 1) Fast Ramp FR ON 2). 8) Use Subnet IP USNIP ON 9) 21

Configuring RNAT with LLB To enable Use Subnet IP mode by using the configuration utility 1. In the navigation pane, expand System, and then click Settings. 2. In details pane, under Modes and Features, click Configure modes. 3. In the Configure Modes dialog box, select Use Subnet IP, and then click OK. 4. In the Enable/Disable Mode(s) message box, click Yes. 22

Configuring a Backup Route To prevent disruption in services when the primary route is down, you can configure a backup route. Once the backup route is configured, the NetScaler appliance automatically uses it when the primary route fails. First create a primary virtual server as described in Configuring an LLB Virtual Server and Binding a Service. To configure a backup route, create a secondary virtual server similar to a primary virtual server and then designate this virtual server as a backup virtual server (route). In the following diagram, Router-vip is the primary virtual server, and Backup_Router-vip is the secondary virtual server designated as the backup virtual server. Figure 1. Backup Route Setup By default, all traffic is sent through the primary route. However, when the primary route fails, all traffic is diverted to the backup route as shown in the following diagram. 23

Configuring a Backup Route Figure 2. Backup Routing in Operation To set the secondary virtual server as the backup virtual server by using the NetScaler command line At the NetScaler command prompt, type: set lb vserver <name> -backupvserver <string> Example set lb vserver Router-vip -backupvserver Backup_Router-vip > show lb vserver Router-vip Router-vip (0.0.0.0:0) - ANY Type: ADDRESS State: UP Last state change was at Fri Sep 3 04:46:48 2010 Time since last state change: 0 days, 03:09:45.600 Effective State: UP Client Idle Timeout: 120 sec Down state flush: ENABLED Disable Primary Vserver On Down : DISABLED No. of Bound Services : 1 (Total) 1 (Active) Configured Method: ROUNDROBIN 24

Configuring a Backup Route Done Mode: IP Persistence: DESTIP Persistence Mask: 255.255.255.255 Persistenc Backup: Router2-vip Connection Failover: DISABLED Parameters for setting up the secondary virtual server as the backup virtual server name The name of the load balancing virtual server for which you are configuring a backup. Maximum Length: 127 backupvserver The name of the backup virtual server. Maximum Length: 127 To set the secondary virtual server as the backup virtual server by using the configuration utility 1. In the navigation pane, expand Load Balancing, and then click Virtual Servers. 2. In the details pane, select the secondary virtual server for which you want to configure the backup virtual server, and then click Open. 3. In the Configure Virtual Server (Load Balancing) dialog box, click the Advanced tab. 4. In the Backup Virtual Server drop-down list, select the secondary backup virtual server, and then click OK. 25

Resilient LLB Deployment Scenario In the following diagram, there are two networks: 30.30.30.0 and 30.30.31.0. Link load balancing is configured based on the destination IP address. Two routes are configured with gateways Router1-vip and Router2-vip, respectively. Router1-vip is configured as a backup to Router2-vip and vice versa. All traffic with the destination IP specified as 30.30.30.30 is sent through Router1-vip and traffic with the destination IP specified as 30.30.31.31 is sent through Router2-vip. Figure 1. Resilient LLB Deployment Setup However, if any one of the gateways (Router1-vip or Router2-vip) is DOWN, traffic is routed through the backup router. In the following diagram, Router1-vip for ISP1 is DOWN, so all traffic with the destination IP specified as 30.30.30.30 is also sent through ISP2. 26

Resilient LLB Deployment Scenario Figure 2. Resilient LLB Deployment Scenario 27

Monitoring an LLB Setup After the configuration is up and running, you should view the statistics for each service and virtual server to check for possible problems. Viewing the Statistics of a Virtual Server To evaluate the performance of virtual servers or to troubleshoot problems, you can display details of the virtual servers configured on the NetScaler appliance. You can display a summary of statistics for all the virtual servers, or you can specify the name of a virtual server to display the statistics only for that virtual server. You can display the following details: Name IP address Port Protocol State of the virtual server Rate of requests received Rate of hits To display virtual server statistics by using the NetScaler command line To display a summary of the statistics for all the virtual servers currently configured on the NetScaler, or for a single virtual server, at the NetScaler command prompt, type: stat lb vserver [-detail] [<name>] Example >stat lb vserver -detail Virtual Server(s) Summary vsvrip port Protocol State Req/s Hits/s One * 80 HTTP UP 5/s 0/s Two * 0 TCP DOWN 0/s 0/s Three * 2598 TCP DOWN 0/s 0/s 28

Monitoring an LLB Setup dnsvirtualns 10.102.29.90 53 DNS DOWN 0/s 0/s BRVSERV 10.10.1.1 80 HTTP DOWN 0/s 0/s LBVIP 10.102.29.66 80 HTTP UP 0/s 0/s Done Parameters for displaying statistics detail Include the statistics for hits per second and the total number of hits. name Name of the virtual server whose statistics are displayed. To display virtual server statistics by using the configuration utility 1. In the navigation pane, expand Load Balancing, and then click Virtual Servers. 2. If you want to display the statistics for only one virtual server, in the details pane, select the virtual server whose statistics you want to display. 3. In the details pane, click Statistics. Viewing the Statistics of a Service You can view the rate of requests, responses, request bytes, response bytes, current client connections, requests in surge queue, current server connections, and so forth using the service statistics. To view the statistics of a service by using the NetScaler command line At the NetScaler command prompt, type: stat service <name> Example stat service Service-HTTP-1 29

Monitoring an LLB Setup To view the statistics of a service by using the configuration utility 1. In the navigation pane, expand Load Balancing, and then click Services. 2. In the details pane, select the service whose statistics you want to view (for example, Service-HTTP-1). 3. Click Statistics. The statistics appear in a new window. 30