Manual Chapter : Configuring SIP Message Routing and Load Balancing

Applies To:

Show Versions Show Versions

BIG-IP LTM

  • 11.6.5, 11.6.4, 11.6.3, 11.6.2, 11.6.1
Manual Chapter

Configuring SIP Message Routing and Load Balancing

Overview: Configuring a SIP proxy

You can use the BIG-IP® system as a SIP proxy. When the BIG-IP system is placed between your SIP routers, session border controllers, and soft switches, you can configure the system to route and load balance SIP messages across the servers on your SIP network.

This graphic illustrates the relationships of the configuration objects that you must configure on the BIG-IP system.

SIP proxy configuration objects

SIP proxy configuration objects

Creating a SIP session profile

Create a SIP session profile to define how the BIG-IP® system processes SIP messages, including the data the system uses to persist SIP connections.
  1. On the Main tab, click Local Traffic > Profiles > Message Routing > SIP .
    The SIP transport config list screen opens.
  2. On the menu bar, click Session Profiles.
    The Session Profiles list screen opens.
  3. Click Create.
    The New SIP Session Profile screen opens.
  4. In the Name field, type a unique name for the SIP session profile.
  5. From the Persist Key list, select the value the system uses for persistence of a SIP session. The options are:
    Option Description
    Call-ID The system uses the value in the Call-ID header field in the SIP message.
    Custom The system uses the value of a custom key specified in an iRule.
    Src-Addr The system uses the originating IP address in the SIP message.
  6. From the Persist Type list, select one of these options:
    Option Description
    Session Persistence is enabled.
    None Persistence is disabled.
  7. In the Persist Timeout (seconds) field, type the number of seconds before a SIP session persistence record expires.
  8. Click Finished.

Creating a transport config

Ensure that at least one SIP session profile exists in the BIG-IP® system configuration.
Create a transport config to define how the BIG-IP system connects with the servers on your network when routing and load balancing SIP messages.
  1. On the Main tab, click Local Traffic > Profiles > Message Routing > SIP .
    The SIP session profiles list screen opens.
  2. On the menu bar, click Transport Config.
    The New Transport Config screen opens.
  3. Click Create.
  4. In the Name field, type a unique name for the transport config.
  5. For the Profiles setting, move both a transport protocol profile (TCP, UDP, or SCTP) and a SIP session profile from the Available list to the Selected list.
    You can only associate one protocol profile and one SIP session profile with each transport config.
  6. Click Finished.

Creating a pool

You can create a pool of servers that you can group together to receive and process traffic. Repeat these steps for each desired pool.
  1. On the Main tab, click Local Traffic > Pools .
    The Pool List screen opens.
  2. Click Create.
    The New Pool screen opens.
  3. In the Name field, type a unique name for the pool.
  4. Using the New Members setting, add each resource that you want to include in the pool:
    1. In the Node Name field, type a name for the node portion of the pool member.
      This step is optional.
    2. In the Address field, type an IP address.
    3. In the Service Port field, type a port number, or select a service name from the list.
    4. In the Priority field, type a priority number.
      This step is optional.
    5. Click Add.
  5. Click Finished.
The new pool appears in the Pools list.

Creating a peer

Ensure that at least one transport config and one pool exist in the BIG-IP® system configuration.
Create a peer to define how the BIG-IP system connects with the servers on your network and to which servers the system routes and load balances SIP messages.
  1. On the Main tab, click Local Traffic > Profiles > Message Routing > SIP .
    The SIP session profiles list screen opens.
  2. Click Create.
    The New Peers screen opens.
  3. In the Name field, type a unique name for the peer.
  4. In the Description field, type a description of the peer.
  5. From the Connection Mode list, specify how connections are limited for this peer. The options are:
    Option Description
    Per Blade The number of connections to this peer is per blade on a VIPRION system.
    Per Peer The number of connections to this peer is per peer.
    Per TMM The number of connections to this peer is per TMM on the BIG-IP system.
  6. From the Pool list, select the pool of servers to which the system load balances SIP messages.
    If you configure only one peer on this BIG-IP system, ensure that you select a pool with only one member.
  7. From the Transport Config list, select the transport config that defines how the BIG-IP system communicates with the servers on your network.
  8. Click Finished.

Creating a static route

Ensure that at least one peer and one virtual server exist in the BIG-IP® system configuration.
Create a static route when you want to route SIP messages from specific clients to specific domains, and load balance those SIP messages across a group of peers. If the configured attributes of a static route match the attributes in a SIP message, the system forwards the message to a member of the pool associated with one of the peers.
Note: The BIG-IP system can use multiple SIP session profiles in a single routing instance, because a different profile can be associated with each member of a pool.
  1. On the Main tab, click Local Traffic > Profiles > Message Routing > SIP .
    The SIP session profiles list screen opens.
  2. On the menu bar, click Static Routes.
    The Static Routes list screen opens.
  3. Click Create.
    The New Route screen opens.
  4. In the Name field, type a unique name for the static route.
  5. In the Request URI field, type the value found in the request-uri of a SIP message that the system matches when routing a message.
  6. In the From URI field, type the value found in the From field of a SIP message that the system matches when routing a message.
  7. In the To URI field, type the value found in the To field of a SIP message that the system matches when routing a message.
  8. From the Virtual Server list, select the virtual server from which the system receives client requests for this static route.
    If you do not select a virtual server, the system uses this static route to route SIP messages originating from any client.
  9. From the Peer Selection Mode field, select how the system selects the Peer to route a SIP message to:
    Option Description
    Ratio Peer selection is based on the ratio that is set for each peer in the Selected list.
    Sequential Peer selection is based on the order of the peers in the Selected list.
  10. For the Peers setting, move the peers that define the servers to which the system load balances SIP messages from the Available list to the Selected list.
  11. Click Finished.

Creating a SIP router profile

Ensure that at least one static route exists on the BIG-IP® system.
Create a SIP router profile to define how a router handles SIP traffic.
Note: A SIP routing profiles binds the virtual server that processes SIP requests from clients with the peers that connect with the servers on your SIP network.
  1. On the Main tab, click Local Traffic > Profiles > Message Routing > SIP .
    The SIP transport config list screen opens.
  2. On the menu bar, click Router Profiles.
    The Router Profiles list screen opens.
  3. Click Create.
    The New SIP Router Profile screen opens.
  4. In the Name field, type a unique name for the SIP router profile.
  5. For the Static Routes setting, move routes that define how the BIG-IP system load balances SIP traffic from the Available list to the Selected list.
  6. Click Finished.

Creating a virtual server to handle SIP client requests

Ensure that both a SIP session profile and a SIP router profile exist in the BIG-IP® system configuration.
Create a virtual server to handle SIP client requests.
  1. On the Main tab, click Local Traffic > Virtual Servers .
    The Virtual Server List screen opens.
  2. In the Name field, type a unique name for the virtual server.
  3. For the Type setting, select Message Routing.
  4. In the Destination Address field, type an address, as appropriate for your network.
    The supported format is address/prefix, where the prefix length is in bits. For example, an IPv4 address/prefix is 10.0.0.1 or 10.0.0.0/24, and an IPv6 address/prefix is ffe1::0020/64 or 2001:ed8:77b5:2:10:10:100:42/64. When you use an IPv4 address without specifying a prefix, the BIG-IP® system automatically uses a /32 prefix.
  5. In the Service Port field, type 5060 to route SIP traffic or 5061 to route TLS traffic.
  6. From the Configuration list, select Advanced.
  7. From the Application Protocol list, select SIP.
  8. From the Session Profile list, select a SIP session profile.
  9. From the Router Profile list, select a SIP router profile.
  10. Click Update.

Configuration objects required for a SIP proxy

This table names and describes the objects necessary to configure the BIG-IP system as a SIP proxy.

Configuration Objects Description
Session Profile Defines how BIG-IP processes SIP messages, including the data used to persist SIP connections.
Transport config Defines how BIG-IP connects with the servers on your SIP network.
Pool Defines how BIG-IP load balances connections across a group of servers.
Peer Defines how BIG-IP connects with the servers on your network and to which servers the system routes and load balances SIP messages.
Static route Defines how BIG-IP routes SIP messages.
Router profile Defines an instance of a SIP router.
Virtual Server Defines the destinations in your network, including the servers that process incoming SIP requests and the pool members that process connections between BIG-IP and your SIP network.

About checking pool member health

You can configure the BIG-IP® system to monitor pool member health using a SIP monitor. Use a SIP monitor to check the health of a host with an active SIP session. The SIP monitor also monitors a SIP connection independent of a specific SIP session and marks a host that had been marked down, but is online again, as available.

Task summary

Perform these tasks to configure health monitors and apply the monitors to a pool:

Creating a SIP monitor

Create a SIP monitor to mark a pool member as down when that server stops responding and then to mark the pool member as available when service is restored.
  1. On the Main tab, click Local Traffic > Monitors .
    The Monitor List screen opens.
  2. Click Create.
    The New Monitor screen opens.
  3. Type a name for the monitor in the Name field.
  4. From the Type list, select SIP.
    The screen refreshes, and displays the configuration options for the SIP monitor type.
  5. Configure additional settings based on your network requirements.
  6. Click Finished.

Adding a health monitor to a pool

Add health monitors to a pool when you want the BIG-IP system to monitor the health of the pool members. Repeat this procedure for each desired pool.
  1. On the Main tab, click Local Traffic > Pools .
    The Pool List screen opens.
  2. Click the name of the pool you want to modify.
  3. For the Health Monitors setting, in the Available list, select a monitor type, and click << to move the monitor to the Active list.
    Tip: Hold the Shift or Ctrl key to select more than one monitor at a time.
  4. Click Finished.
The new pool appears in the Pools list.

About viewing SIP session and router statistics

You can view statistics for SIP sessions and routes.

Task summary

Viewing SIP session statistics

Ensure that at SIP session router profile are assigned to at least one virtual server.
When you want to see how the BIG-IP® system is handling SIP communications, you can view statistics per SIP session profile.
  1. On the Main tab, click Statistics > Module Statistics > Local Traffic .
    The Local Traffic statistics screen opens.
  2. From the Statistics Type list, select Profiles Summary.
  3. In the Details column for the SIP Session profile, click View to display detailed statistics about SIP sessions.

Viewing SIP router statistics

Ensure that at SIP session and SIP router profile are assigned to at least one virtual server.
When you want to see how the BIG-IP® system is handling SIP message routing, you can view statistics per SIP router profile.
  1. On the Main tab, click Statistics > Module Statistics > Local Traffic .
    The Local Traffic statistics screen opens.
  2. From the Statistics Type list, select Profiles Summary.
  3. In the Details column for the SIP Router profile, click View to display detailed statistics about the routing of SIP messages.