+

Search Tips   |   Advanced Search

 

Replicating SIP sessions

 

This topic provides an overview of when replication of session and dialog state can take place during typical SIP call flows.

 

Overview

In WAS V6.1, SIP replication is done on a “best effort” basis. Generally, the SIP container uses the Data Replication Service (DRS) to replicate all state information. DRS provides no way to confirm when data replication has completed, so the only thing that can be quantified is when a piece of state information is queued for replication. Within this topic, references to replication of data means only that the data has been queued for replication. The SIP container replicates several different types of information. This data falls into two general categories:

Each category includes a number of different data types, which are described below. In terms of replication, each data object is treated independently. In other words, a change to an application session object, which causes a replication, will not result in the replication of any internal state information.

Replication of internal state information Internal state information can be defined as anything related to the state of a dialog being handled by the container. It includes things like cseq, dialog state (initial, early, confirmed, terminated), session expiration, local, remote party, etc. Internal state information is only replicated due to the existence of a dialog. Therefore, no internal SIP-related data will be replicated until the dialog with which it is associated is established. The types of SIP requests that can cause the creation of a dialog include:

Replication of internal state happens at well-defined, predictable points in the call flow. For example, a dialog is only established at the container when a 2xx response or a 1xx response with a “To” tag is received or sent due to one of the method types listed above. Events that can trigger an internal state replication include:

It is important to note that transaction state is NOT replicated in the WAS 6.1 version of the SIP container, only dialog state. Not replicating transaction state reduces the load on all the servers in the replication domain, but can cause problems in failures that happen in the middle of a transaction (for example, loss of some dialog-related SIP messages).

An important difference between a B2BUA and a proxy application is the number of session objects created and replicated. In both cases only a single application session is created, but for the B2BUA, two session objects are created–one for the inbound leg and one for the outbound leg. For a proxy application, only a single session object is created.

Replication of application state information Application state information is treated differently from internal dialog state information because it does not rely on the existence of a dialog to be replicated. Application state refers to any data that is being maintained by the application through the use of JSR 116 data constructs. This includes:

Replication of internal state happens at well-defined, predictable points in the call flow, while replication of application state is less predictable because it is generally dependent on when an application creates, invalidates or modifies the session data and timers through JSR 116 APIs. This could be due to the processing of an inbound message, or to the expiration of a SIP timer. All of the following can cause the replication of application-related session data:

Replication can occur for requests that do not establish a dialog if an application calls request.getApplicationSession(true) and if addTimer() and/or addAttribute() are called on the resulting application session object. This is needed so that a listener can be called when the timer expires.

SIP failover and replication setup considerations

A SIP cluster that requires replication and failover can consist of many replication domains, each of which contain a set of SIP containers. There is no limit set on the number of containers in a cluster. A SIP cluster that requires replication and failover can consist of many replication domains, each of which contain a set of SIP containers. For performance reasons, each replication domain should contain 2 containers only.

The replication domain should be set to the Entire Domain, which means state is replicated to all containers in the replication domain. The replication mode should be Both client and server.

The distributed session for a container needs to be set to Memory-to-memory replication. Any applications that require session replication must include the <distributable /> tag in the web.xml and sip.xml files. Both SIP and HTTP will utilize the same replication topology

Setting up a replication domain

  1. On the Replication domains panel, select New.

  2. On the following panel, under Number of replicas , select Entire domain.

  3. On the following panel, under Container settings , select Session management .

  4. On the following panel, under Additional properties , select Distributed environment settings .

  5. On the following panel, select Memory-to-memory replication.

  6. On the following panel, set Replication mode to Both client and server .

  7. Memory-to-memory replication is enabled after you save.

SIP session replication topology



SIP high availability

 

Related tasks


Browse all SIP topics