Contents
Windows NLB Cluster
Complete these steps to set up SIP Server HA on Windows, using Windows Network Load Balancing (NLB) Cluster functionality.
- Check prerequisites
- Configure Windows NLB parameters
- Configure the primary SIP Server
- Configure the backup SIP Server
- Create Cluster control scripts
- Create Application objects for Cluster control scripts
- Verify the HA configuration
Check prerequisites
The following are the basic requirements and recommendations that must be complete before you can deploy a SIP Server HA configuration in a Windows NLB Cluster environment.
- Two separate physical host computers: one for the primary SIP Server and one for the backup SIP Server.
- ImportantGenesys recommends that you install primary and backup instances of SIP Server on different host computers. However, SIP Server does support HA configurations in which both primary and backup SIP Server instances reside on a single host server.
- Operating-system requirement:
- Windows Server 2008 or later with Microsoft Windows Network Load Balancing (NLB).
- Software requirements:
- SIP Server must be installed and configured on both host computers.
- Local Control Agent (LCA) release 8.1.2 or higher must be installed and configured on both host computers.
- Networking requirements:
- A name-resolution method such as Domain Name System (DNS), DNS dynamic-update protocol, or Windows Internet Name Service (WINS) is required.
- Both host computers must be members of the same domain.
- A domain-level account that is a member of the local Administrators group is required on each host computer. A dedicated account is recommended.
- Each host computer must have a unique NetBIOS name.
- A static IP address is required for each of the network interfaces on both host computers.
- ImportantServer clustering does not support IP addresses that are assigned through Dynamic Host Configuration Protocol (DHCP) servers.
- A dedicated network switch or separate virtual local-area network (VLAN) for cluster adapters is recommended to reduce switch flooding that might be caused by Windows NLB.
- Access to a domain controller is required. If the cluster service is unable to authenticate the user account that is used to start the service, the cluster might fail. It is recommended that the domain controller be on the same local-area network (LAN) as the cluster, to ensure availability.
- Each node must have at least two network adapters: one for the connection to the public network and another for the connection to the private node-to-node cluster network.
- A dedicated private-network adapter is required for HCL certification.
- All nodes must have two physically independent LANs or VLANs for public and private communication.
- If you are using fault-tolerant network cards or network-adapter teaming, verify that firmware and drivers are up to date, and check with your network-adapter manufacturer for Windows NLB cluster compatibility.
- In deployments where SIP Server uses two NICs, one NIC is used for SIP communication, while the second NIC is used for other kinds of communication with various components. Each host has one NIC connected to a subnet dedicated to SIP communication. The Virtual IP address should be within the range of the network to which the NIC dedicated to SIP communication is connected. The second NIC on both hosts should be connected to a separate network.
Configure Windows NLB parameters
- Open the Microsoft Network Load Balancing Manager tool.
- Select a cluster host, and open the Cluster Properties window.
- On the Cluster Parameters tab, select the Cluster operation mode. You can choose either Unicast (default) or Multicast mode. For information about Windows NLB Unicast and Multicast modes, refer to your Microsoft Windows Server documentation.
- Click the Port Rules tab.
- Specify a Port range that includes the port that you will assign as the sip-port. See "Configuring the primary SIP Server".
- In the Protocols section, select Both (both UDP and TCP).
- In the Filtering mode section, select Multiple host, and set Affinity to either None or Single.
- Set Load weight to Equal.
- Click the Host Parameters tab. In the Initial host state section, set the Default state to Stopped.
For more information about Windows NLB cluster parameters, refer to your Microsoft Windows Server documentation.
Configure the primary SIP Server
- Stop the SIP Server applications on the primary and backup hosts. Genesys SIP Server applications can be stopped by using the Genesys Solution Control Interface.
- Open the Configuration Manager.
- Select the Applications folder, and right-click the SIP Server Application object that you want to configure as the primary SIP Server. Select Properties.
- Click the Options tab.
- Select the [TServer] section.
- Set the sip-port option to the port number that will be used by both the primary and backup SIP Server applications.
- Set the sip-address option to the Windows NLB cluster IP address.
- Set the control-vip-scripts option to true.
- Set the sip-vip-script-up option to the name of the Application object (SIP_SERVER_PRIMARY_VIP_UP) that will be created later for a script that enables the Virtual IP address on the primary SIP Server host.
- Set the sip-vip-script-down option to the name of the Application object (SIP_SERVER_PRIMARY_VIP_DOWN) that will be created later for a script that disables the Virtual IP address on the primary SIP Server host.
- Disable Virtual IP address monitoring by setting the sip-iptakeover-monitoring option to false.
- To enable NIC status monitoring, set the tlib-nic-monitoring option to true.
- To enable SIP NIC status monitoring, in scenarios where a dedicated NIC is used for SIP communication (the two-NIC configuration), configure the sip-nic-address option and set the sip-nic-monitoring option to true.
- To enable SIP traffic monitoring, set the sip-pass-check option to true.
- Click Apply to save the configuration changes.
- If you are deploying a hot-standby configuration, it is recommended that you enable ADDP for communication between the primary and backup SIP Servers. To enable ADDP, select the [backup-sync] section, and configure the following options:
- sync-reconnect-tout
- protocol
- addp-timeout
- addp-remote-timeout
- Click Apply to save the configuration changes.
In the preceding example, the guideline that is used to configure ADDP settings is to set the addp-timeout and addp-remote-timeout options to 5 sec or at least two times the established network-latency time, and to set the sync-reconnect-tout option to at least two times the timeout value plus the established network latency.
ImportantFor more information about ADDP configuration parameters, see the "Backup-Synchronization Section" section in the Framework 8.1 SIP Server Deployment Guide. - Select the [TServer] section.
- Click the Switches tab.
- Ensure that the correct Switch object is specified. If necessary, select the correct Switch object by using the Add button.
- Click Apply to save the configuration changes.
- Click the Server Info tab.
- Select the Redundancy Type. You can select either Hot Standby or Warm Standby.
- Complete this step if you are deploying a hot-standby configuration. If you are deploying a warm-standby configuration, proceed to Step c.
- In the Ports section, select the port to which the backup SIP Server will connect for HA data synchronization, and click Edit Port.
- In the Port Properties dialog box, on the Port Info tab, select the HA sync check box.
- Click OK.
- For the Backup Server option, select the SIP Server Application object that you want to use as the backup SIP Server. If necessary, browse to locate the backup SIP Server Application object.
- Click Apply to save the configuration changes.
- Click the Start Info tab.
- Select Auto-Restart.
- Click Apply to save the configuration changes.
- Click Apply and then OK to save the configuration changes.
Configure the backup SIP Server
- Stop the SIP Server applications on the primary and backup hosts. Genesys SIP Server applications can be stopped by using the Genesys Solution Control Interface.
- Open the Configuration Manager.
- Select the Applications folder, and right-click the SIP Server Application object that you want to configure as the backup SIP Server. Select Properties.
- Click the Switches tab.
- Click Add, and select the Switch object that you associated with the primary SIP Server Application object.
- Click Apply to save the configuration changes.
- Click the Start Info tab.
- Select Auto-Restart.
- Click Apply to save the configuration changes.
- Click the Options tab.
- Select the [TServer] section.
- Set the sip-port option to the same port number that you specified for the primary SIP Server.
- Set the sip-address option to the Windows NLB cluster IP address.
- Set the control-vip-scripts option to true.
- Set the sip-vip-script-up option to the name of the Application object (SIP_SERVER_BACKUP_VIP_UP) that will be created later for a script that enables the Virtual IP address on the backup SIP Server host.
- Set the sip-vip-script-down option to the name of the Application object (SIP_SERVER_BACKUP_VIP_DOWN) that will be created later for a script that disables the Virtual IP address on the backup SIP Server host.
- Disable Virtual IP address monitoring by setting the sip-iptakeover-monitoring option to false.
- To enable NIC status monitoring, set the tlib-nic-monitoring option to true.
- To enable SIP NIC status monitoring, in scenarios where a dedicated NIC is used for SIP communication (the two-NIC configuration), configure the sip-nic-address option and set the sip-nic-monitoring option to true.
- To enable SIP traffic monitoring, set the sip-pass-check option to true.
- Click Apply to save the configuration changes.
- If you are deploying a hot-standby configuration and have configured ADDP communication on the primary SIP Server, you must configure ADDP also on the backup SIP Server. To enable ADDP, select the [backup-sync] section, and configure the following options:
- sync-reconnect-tout
- protocol
- addp-timeout
- addp-remote-timeout
- Click Apply to save the configuration changes.
In the preceding example, the guideline that is used to configure ADDP settings is to set the addp-timeout and addp-remote-timeout options to 5 sec or at least two times the established network-latency time, and to set the sync-reconnect-tout option to at least two times the timeout value plus the established network latency.
- Select the [TServer] section.
- Click Apply and then OK to save the configuration changes.
Create Cluster control scripts
- On the primary SIP Server host computer, create a batch file that is named sip_server_primary_vip_up.bat and enter the following commands:
[+] Commands for sip_server_primary_vip_up.bat - On the primary SIP Server host computer, create a batch file that is named sip_server_primary_vip_down.bat and enter the following commands:
[+] Commands for sip_server_primary_vip_down.bat - On the backup SIP Server host computer, create a batch file that is named sip_server_backup_vip_up.bat and enter the following commands:
[+] Commands for sip_server_backup_vip_up.bat - On the backup SIP Server host computer, create a batch file that is named sip_server_backup_vip_down.bat and enter the following commands:
[+] Commands for sip_server_backup_vip_down.bat
Creating Application objects for Cluster control scripts
- In the Configuration Manager, select Environment > Applications.
- Right-click and select New > Application.
- Select the Third Party Server template from the Application Templates folder, and click OK.
- On the General tab, enter the name for the Application object—for example, SIP_SERVER_PRIMARY_VIP_UP.
ImportantYou can use the suggested Application object names, or you can specify your own.
- Select the Server Info tab.
- Select the host name of the SIP Server on which the corresponding Cluster control script is located.
- If necessary, specify a valid communication-port number by using the Edit Port option.
- Select the Start Info tab.
- Set the Working Directory to the location of the control script, and enter the name of the script in the Command Line field. For example, for the SIP_SERVER_PRIMARY_VIP_UP Application object, enter the script name that enables the Virtual IP port (sip_server_primary_up.bat). For the SIP_SERVER_PRIMARY_VIP_DOWN Application object, enter the script name that disables the Virtual IP port (sip_server_primary_down.bat).
- If you are configuring an Application object that disables a Virtual IP port (SIP_SERVER_PRIMARY_VIP_DOWN and SIP_SERVER_BACKUP_VIP_DOWN), set the Timeout Startup value to 8.
- Repeat the steps in this procedure to create an Application object for each of the four Cluster control scripts.
Verify the HA configuration
- Test 1: Manual switchover
- Establish a call between two SIP endpoints.
- Perform a manual switchover by using the SCI. In the SCI, verify that the SIP Server roles have changed.
- Verify that hold, retrieve, and transfer functions can be performed on the call that was established before the switchover.
- Release the call.
- Test 2: Manual switchback
- Establish a call between two SIP endpoints.
- Perform a manual switchover again by using the SCI. In the SCI, verify that the SIP Server roles have changed.
- Verify that hold, retrieve, and transfer functions can be performed on the call that was established before the switchover.
- Release the call.
- Test 3: Stop primary SIP Server
- Establish a call between two SIP endpoints.
- Stop the primary SIP Server. Use the SCI to verify that the backup SIP Server goes into primary mode.
- Verify that hold, retrieve, and transfer functions can be performed on the call that was established before the switchover.
- Release the call.