Integrate the SIP on demand router with Load Balancer

We can integrate the Session Initiation Protocol(SIP) on demand router (ODR) with Load Balancer. Load Balancer for IBM WAS can help maximize the potential of the website by providing a powerful, flexible, and scalable solution to peak-demand problems.

(zos) Restriction: Intelligent Management does not support SIP features on the z/OS operating system.

Install Load Balancer for IBM WebSphere Application Server. See the Edge Components Information Center for installation information.

The SIP ODR is stabilized, and is currently not recommended. Use the SIP proxy server instead.gotcha

  1. Start the Load Balancer.

    1. From the command prompt, type dsserver start.

    2. Then type lbadmin to start the console for the Load Balancer.

    3. From the console, right click Dispatcher, and then select Connect to host.

    4. Right click the hostname and select Start executor.

  2. Start the configuration wizard for the load balancer. Right-click Dispatch > Start configuration wizard.

    1. Select default host.

    2. Type a cluster address. The cluster address is not available before the executor starts. Specify this same value for host when creating a user-defined port.

    3. Type a port number, such as 5060.

    4. Add servers to the port. Add each server to which the load balancer will proxy traffic. In the configuration, the load-balanced server is the ODR server for the WAS configuration.

    5. Start an advisor by clicking Yes. For example, for HTTP traffic, start the HTTP advisor. For SIP traffic, start the SIP advisor. The advisor tells the manager whether a specific port is accepting traffic.

  3. Alias the cluster address on the SIP on demand router loopback adapter. For example, type lb-alias.sh cluster_ip_address:

    #!/bin/sh  CLUSTER=$1
     if [ -f /proc/sys/net/ipv4/conf/all/arp_ignore -a -f /proc/sys/net/ipv4/conf/all/arp_announce ]
    then echo Using arp_ignore
    echo "3" >/proc/sys/net/ipv4/conf/all/arp_ignore
    echo "2" >/proc/sys/net/ipv4/conf/all/arp_announce
    ip addr add $CLUSTER/32 scope host dev lo
    elif [ -f /proc/sys/net/ipv4/conf/all/hidden -a -f /proc/sys/net/ipv4/conf/lo/hidden ]
    then echo Using hidden echo "1" > /proc/sys/net/ipv4/conf/all/hidden
    echo "1" > /proc/sys/net/ipv4/conf/lo/hidden
    ip addr add $CLUSTER/32 dev lo
    elif [ ! -z "$( which arptables )" ]
    then echo Using arptables
    arptables -A IN -s $CLUSTER -j DROP
    arptables -A OUT -s $CLUSTER -j mangle --mangle-ip-s $(hostname)
    ip addr add $CLUSTER/32 dev lo
    else
    echo Using iptables
    iptables -t nat -A PREROUTING -d $CLUSTER -j REDIRECT
    fi
  4. Load Balancer Administration Guide for more information.

  5. Define SIP ODR custom properties from the Intelligent Management console.

    1. From the console, click Servers > Server types > On demand routers > odr_name > SIP on demand router settings.

    2. Under General Properties, in the Additional Properties section, click Custom properties.

    3. Create the following SIP ODR custom properties:

      • LBIPAddr : The IP address of the load balancer machine.

      • SIPAdvisorMethodName: The type of messages sent by the Load Balancer advisory. This name is INFO.

      • serverUDPInterface: The IP address of the server machine.

      • serverUDPPort : Specify an unused port number. For example, 5080.

      • udp.IPSprayer.host: You specified this value in step 2b.

  6. Create a user-defined port from the Intelligent Management console.

    1. From the console, click Servers > Server types > On demand routers > on_demand_router > Communications > > Ports.

    2. Click New.

    3. Select User-defined port.

    4. Enter SIP_LB_Address for the Port name.

    5. Enter a value for the Host. You specified this value in step 2b.

    6. Enter a value for the Port. You specified this value in step 2c. Click OK. Save changes.

    7. Under Ports, modify the PROXY_SIP_ADDRESS from * to the actual host name of the proxy server machine.

    8. Click Apply, and then click Save.

  7. Modify the SIP on demand router transports.

    1. From the console, click Servers > Server types > On demand routers > odr_name > SIP on demand router settings > SIP on demand router transports > UDP_SIP_PROXY_CHAIN > UDPInbound Channel (UDP_1).

    2. From the Port drop-down list, select SIP_LB_Address.

    3. Click Apply, and then click Save.

  8. Verify that the host name of the ODR machine is set for the PROXY_SIP_ADDRESS. To verify from the console, click Servers > Server types > On demand routers > odr_name > Communications > Port > PROXY_SIP_ADDRESS.

  9. Create a UDP transport chain. Click Servers > Server types > On demand routers > odr_name > SIP on demand router settings > SIP on demand router transports > New.

    1. Type a name for the new chain, such as ODR_SIP_PROXY_CHAIN.

    2. In the drop-down list, select Proxy-UDP.

    3. Click Next.

    4. Select Use existing port and PROXY_SIP_ADDRESS. Click Next and then Finish on the summary page. If PROXY_SIP_ADDRESS does not show in the list of existing ports, select any of the ports to complete the transport chain creation, then modify the UDP inbound channel of the new chain. Select the new transport chain, then select the UDP inbound channel and change the port to PROXY_SIP_ADDRESS.

  10. Create a TCP transport chain. Click Servers > Server types > On demand routers > odr_name > SIP on demand router settings > SIP on demand router transports > New.

    1. Type a name for the new chain, such as TCP_SIP_PROXY_CHAIN.

    2. In the drop-down list, select SIP_LB_Address.

    3. Click Next and then Finish on the summary page.

    4. Restart the ODR to pick up the changes.

  11. Create a system property named clientUDPInterface on each ODR and set it to the IP address of the cluster address. To create the system property, select Servers > Server types > On demand routers > odr_name > Java and process management > Process definition > Java Virtual Machine > Custom properties > New.

  12. Save and synchronize the configuration.

  13. Restart the ODR.


Related concepts

  • Overview of request flow prioritization


    Related tasks

  • Create ODRs
  • Configure a Web server as a trusted proxy server
    Install a Session Initiation Protocol proxy server


    Related information:

  • Intelligent Management: on demand router system and custom properties