Revision: 04d59d0ed2f8
Author:   Jean Deruelle <[email protected]>
Date:     Fri Feb  1 08:27:23 2013
Log:      Update Issue 189

Add Doco for TelScale and add doco for the new congestion control mechanisms in TelScale

http://code.google.com/p/sipservlets/source/detail?r=04d59d0ed2f8

Added:
 /sip-servlets-examples/alerting-app/sip-servlets/.classpath
 /sip-servlets-examples/alerting-app/sip-servlets/.project
Modified:
/docs/sources/src/main/resources/en-US/concept-section-SS_Concurrency_and_Congestion_Control.xml
 /docs/sources/src/main/resources/en-US/concept-section-SS_Load_Balancer.xml
 /sip-servlets-impl/pom.xml

=======================================
--- /dev/null
+++ /sip-servlets-examples/alerting-app/sip-servlets/.classpath Fri Feb 1 08:27:23 2013
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+  <classpathentry kind="src" path="src/main/java" including="**/*.java"/>
+  <classpathentry kind="output" path="target/classes"/>
+ <classpathentry kind="var" path="M2_REPO/javax/sip/jain-sip-ri/6.1.2.GA-TelScale/jain-sip-ri-6.1.2.GA-TelScale.jar"/> + <classpathentry kind="var" path="M2_REPO/javax/annotation/jsr250-api/1.0/jsr250-api-1.0.jar"/> + <classpathentry kind="var" path="M2_REPO/javax/servlet/servlet-api/2.5/servlet-api-2.5.jar"/> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/> + <classpathentry kind="var" path="M2_REPO/org/mobicents/external/jsr309/mscontrol/1.0/mscontrol-1.0.jar"/> + <classpathentry kind="var" path="M2_REPO/org/mobicents/jsr309/mobicents-jsr309-impl/2.0.0.BETA5/mobicents-jsr309-impl-2.0.0.BETA5.jar"/> + <classpathentry kind="var" path="M2_REPO/jain/jain-mgcp-ri/1.0/jain-mgcp-ri-1.0.jar"/> + <classpathentry kind="var" path="M2_REPO/log4j/log4j/1.2.14/log4j-1.2.14.jar"/> + <classpathentry kind="var" path="M2_REPO/org/mobicents/protocols/mgcp/mgcp-impl/2.0.0.GA/mgcp-impl-2.0.0.GA.jar"/> + <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-ejb_3.0_spec/1.0/geronimo-ejb_3.0_spec-1.0.jar"/> + <classpathentry kind="var" path="M2_REPO/org/apache/geronimo/specs/geronimo-j2ee_1.4_spec/1.1/geronimo-j2ee_1.4_spec-1.1.jar"/> + <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/> + <classpathentry kind="var" path="M2_REPO/commons-logging/commons-logging-api/1.0.4/commons-logging-api-1.0.4.jar"/>
+  <classpathentry kind="src" path="/sip-servlets-spec"/>
+  <classpathentry kind="src" path="/sip-servlets-client"/>
+</classpath>
=======================================
--- /dev/null
+++ /sip-servlets-examples/alerting-app/sip-servlets/.project Fri Feb 1 08:27:23 2013
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+  <name>alerting-app</name>
+ <comment>Mobicents SIP Servlets. NO_M2ECLIPSE_SUPPORT: Project files created with the maven-eclipse-plugin are not supported in M2Eclipse.</comment>
+  <projects>
+    <project>sip-servlets-spec</project>
+    <project>sip-servlets-client</project>
+  </projects>
+  <buildSpec>
+    <buildCommand>
+      <name>org.eclipse.jdt.core.javabuilder</name>
+    </buildCommand>
+  </buildSpec>
+  <natures>
+    <nature>org.eclipse.jdt.core.javanature</nature>
+  </natures>
+</projectDescription>
=======================================
--- /docs/sources/src/main/resources/en-US/concept-section-SS_Concurrency_and_Congestion_Control.xml Tue Feb 15 07:47:36 2011 +++ /docs/sources/src/main/resources/en-US/concept-section-SS_Concurrency_and_Congestion_Control.xml Fri Feb 1 08:27:23 2013
@@ -90,6 +90,15 @@
<para>&PLATFORM_NAME; Sip Servlets currently provides the following congestion
     control mechanisms:</para>
   </formalpara>
+
+  <note>
+
+<title>Changing Congestion Control Settings </title>
+<para>
+All the settings and congifurations starting with gov.nist.javax.sip are located in the $JBOSS-HOME/standalone/configuration/mss-sip-stack.properties file. The section below will provide further details.
+</para>
+</note>
+
   <itemizedlist>
     <listitem>
<para>Congestion control is largely application-specific and it is implemented in a pipeline.
@@ -99,21 +108,62 @@
spam and flood DoS attacks to accumulate large backlog and render the server unresponsive. It also guranatees flood recovery time of 20 seconds or less, in the mean time retransmissions are already queuing so that normal SIP calls can continue without dropping them. After the request has passed the first - queue it enters the SIP transaction layer where there is a customizable optional congestion control logic. - There is one packaged congestion control algorithm which can be enabled by setting the following property - <literal>gov.nist.javax.sip.SIP_MESSAGE_VALVE=gov.nist.javax.sip.stack.CongestionControlMessageValve</literal>. - For this algorithm you can set the limit value by the following property - <literal>gov.nist.javax.sip.MAX_SERVER_TRANSACTIONS=2000</literal>. - You can also implement your own algorithm and change the class name in <literal>gov.nist.javax.sip.SIP_MESSAGE_VALVE</literal> to activate it.</para><para> + queue it enters the SIP transaction layer where there is a customizable optional congestion control logic.<br/>

+ There is one pre-packaged congestion control algorithm which can be enabled by setting the following property + <literal>gov.nist.javax.sip.SIP_MESSAGE_VALVE=org.mobicents.ext.javax.sip.congestion.CongestionControlMessageValve</literal>.
+           <br/>
+ This Congestion Control algrithm monitors at regular intervals whether or not the configured congestion control mechanisms have switched on or off.
+                  <br/>The following congestion control mechanisms are 
available :
+                   <variablelist>
+                   <varlistentry>
+                     <term>Memory</term>
+                     <listitem>
+ <para>Monitor if the JVM Used Memory has crossed the <literal>org.mobicents.ext.javax.sip.congestion.MEMORY_THRESHOLD</literal> threshold or + went back under <literal>org.mobicents.ext.javax.sip.congestion.BACK_TO_NORMAL_MEMORY_THRESHOLD</literal> threshold</para>
+                     </listitem>
+                   </varlistentry>
+                   <varlistentry>
+                     <term>CPU</term>
+                     <listitem>
+ <para>Monitor if the Process Used CPU has crossed the <literal>org.mobicents.ext.javax.sip.congestion.CPU_THRESHOLD</literal> threshold + or went back under <literal>org.mobicents.ext.javax.sip.congestion.BACK_TO_NORMAL_CPU_THRESHOLD</literal> threshold</para>
+                     </listitem>
+                   </varlistentry>
+                   <varlistentry>
+                     <term>Server Transactions</term>
+                     <listitem>
+ <para>Monitor if the number of active Server Transactions has crossed the <literal>org.mobicents.ext.javax.sip.congestion.SERVER_TRANSACTIONS_THRESHOLD</literal> threshold or + went back under <literal>org.mobicents.ext.javax.sip.congestion.BACK_TO_NORMAL_SERVER_TRANSACTIONS_THRESHOLD</literal> threshold</para>
+                     </listitem>
+                   </varlistentry>
+                   <varlistentry>
+                     <term>Dialogs</term>
+                     <listitem>
+ <para>Monitor if the number of active Dialogs has crossed the <literal>org.mobicents.ext.javax.sip.congestion.DIALOGS_THRESHOLD</literal> threshold or + went back under <literal>org.mobicents.ext.javax.sip.congestion.BACK_TO_NORMAL_DIALOGS_THRESHOLD</literal> threshold</para>
+                     </listitem>
+                   </varlistentry>
+                 </variablelist>
+
+                <note>
+
+               <title>Disabling specific Congestion Control Mechanisms </title>
+               <para>
+ Any congestion control mechanism can be disabled by setting their threshold properties to a negative value
+               </para>
+               </note>
+
+ You can also implement your own algorithm or extend the packaged one (if you need, by example, to add any header to the response generated back (like Retry-After Header) + by overriding the org.mobicents.ext.javax.sip.congestion.CongestionControlMessageValve.modifyCongestionResponse(SIPResponse response)) + and change the class name in <literal>gov.nist.javax.sip.SIP_MESSAGE_VALVE</literal> to activate it.</para><para>
+
           There is also another optional legacy congestion
control stage with another queue where messages can be discarded based on dynamic parameters such as available JVM heap memory or number of messages in the queue. This method will be deprecated and is not recommended. All SIP messages which
              cannot be processed immediately are put
       into a queue, and  wait for either a free thread or for the lock
-      on their session to be released. The  size of the  SIP message
-      queue is a tunable parameter, which defaults to
-      <literal>1500</literal>.</para>
+      on their session to be released.</para>
     </listitem>
     <listitem>
       <para>If the SIP Message queue becomes full, the
=======================================
--- /docs/sources/src/main/resources/en-US/concept-section-SS_Load_Balancer.xml Tue Aug 14 06:39:55 2012 +++ /docs/sources/src/main/resources/en-US/concept-section-SS_Load_Balancer.xml Fri Feb 1 08:27:23 2013
@@ -415,7 +415,8 @@
<para>The <literal>balancers</literal> attribute must contain a IP address (or list of addresses) of the SIP load balancer(s) to which heartbeat information will be sent.</para>
             </listitem>
             <listitem>
- <para>The <literal>sipPathName</literal> attribute must contain the following value <literal>org.mobicents.ha</literal> to indicate that the server will be using the &PLATFORM_NAME; JAIN SIP HA SIP Stack which is an extension of the JAIN SIP Stack offering transparent replication.</para> + <para>The <literal>sipPathName</literal> attribute must contain the following value <literal>org.mobicents.ha</literal> to indicate that the server will be using the &PLATFORM_NAME; JAIN SIP HA SIP Stack which is an extension of the JAIN SIP Stack offering transparent replication. + If the server doesn't support any replication (Tomcat based), it is still possible to use the Load Balancer for load balancing only by setting the property to <literal>org.mobicents.ha.balancing.only</literal></para>
             </listitem>
           </itemizedlist>
         </step>
@@ -424,7 +425,7 @@
<title>Configure the <filename>mss-sip-stack.properties</filename> configuration file</title>
           <itemizedlist>
             <listitem>
- <para>The <literal>org.mobicents.ha.javax.sip.cache.MobicentsSipCache.cacheName</literal> property must contain the name of the cache that will be responsible for holding the replicated data of the SIP Stack layer (namely the established SIP dialog data). The value has to be one of the cache name present in the jboss-cache-manager-jboss-beans.xml file of the jboss-cache-manager JBoss Service of the container. The default value is <literal>standard-session-cache</literal></para> + <para>The <literal>org.mobicents.ha.javax.sip.cache.MobicentsSipCache.cacheName</literal> property must contain the name of the cache that will be responsible for holding the replicated data of the SIP Stack layer (namely the established SIP dialog data). The value has to be one of the cache name present in the jboss-cache-manager-jboss-beans.xml file of the jboss-cache-manager JBoss Service of the container. The default value is <literal>standard-session-cache</literal>. When used with above <literal>sipPathName</literal> havinga vale of <literal>org.mobicents.ha.balancing.only</literal>, this property is optional.</para>
             </listitem>
                        <listitem>
<para>The <literal>org.mobicents.ha.javax.sip.BALANCERS</literal> property must be configured with the list of load balancer IP address and internal ports. As an example, suppose a single &THIS.PLATFORM; SIP Load Balancer is running with IP <literal>192.168.0.1</literal> and internal port <literal>5065</literal>, the property would be set with value <literal>192.168.0.1:5065</literal>. To specify multiple balancers use <literal>;</literal> as separator. If this property is used the balancers attribute located in server.xml should not be used as it is a replacement for it.</para>
=======================================
--- /sip-servlets-impl/pom.xml  Sat Dec  8 14:27:37 2012
+++ /sip-servlets-impl/pom.xml  Fri Feb  1 08:27:23 2013
@@ -48,7 +48,7 @@
                        <artifactId>sip-servlets-jruby</artifactId>
                        <version>6.1.3-TelScale-SNAPSHOT</version>
                </dependency>
-
+
                <!-- logging dependency -->
                <dependency>
                        <groupId>log4j</groupId>

--

--- You received this message because you are subscribed to the Google Groups "mobicents-commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to