Hi All,

I'm trying to benchmark a all in one clearwater with ims bench sipp. Has
anyone tried something like this? I need a bit of help about the whole
thing specially regarding the scenario files used by ims bench. I have
tried to run the benchmark with the default scenario files generated by ims
bench but the test fails. Do I need to change the default scenario files
for clearwater in some specific way? I have bulk provisioned 4000
subscribers ([email protected] <[email protected]> - [email protected]
<[email protected]>) and checked they exist in homestead and made a test
call with one of the subscriber. The format of the generated users.csv file
for bulk subscriber in clearwater is:

*sip:[email protected] <sip%[email protected]>,[email protected]
<[email protected]>,example.com <http://example.com>,7kkzTyGW*
*sip:[email protected] <sip%[email protected]>,[email protected]
<[email protected]>,example.com <http://example.com>,7kkzTyGW*
...

The format of the user input file for ims bench is like following:

0;7000000;example.com;7000000;example.com;7kkzTyGW
0;7000001;example.com;7000001;example.com;7kkzTyGW

...
...

I tried only with the registration scenario but it fails. The error log in
ims bench looks like:

2016-05-27 02:31:21.116: C:'[email protected]' UNEXP-Jump(2) L=9
expecting '401' rsp, rcv 'SIP/2.0 403 Forbidden
Via: SIP/2.0/UDP 192.168.180.139:9451
;received=192.168.180.139;branch=z9hG4bK-3001-231-2
Call-ID: [email protected]
From: "sip:702451" <sip:sip:[email protected]>;tag=231
To: "sip:702451" <sip:sip:[email protected]
>;tag=z9hG4bKPjmxnDFiTr4nth4Jd-L2wKosanDPQGP8iS
CSeq: 1 REGISTER
Content-Length:  0

I have also attached the registration scenario file that I'm using. It
would be nice if someone knows something or did a similar test before
please let me know. It would be nice if you can guide me a bit or share a
sample scenario file that would with clearwater and ims bench.

Thanks all in advance.

Best,
Khalid
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE scenario SYSTEM "sipp.dtd">

<scenario name="ims_reg" on_unexpected="9" default_behavior="false">
  <info>
    <metric ref="PX_TRT-REG1" rtd="1" max="2000"/>
    <metric ref="PX_TRT-REG2" rtd="2" max="2000"/>
  </info>

<!-- *** STEP 1 *** -->
 <!-- Select a user from the 'Unregistered' pool and place it into a           
-->
 <!-- '(De)Registration ongoing' pool so we don't register it multiple times   
-->
 <!-- in parallel.                                                             
-->
  <nop>
    <action>
      <assign_user pool="0" scheme="rand_uni"/>   <!-- 'Unregistered' user  -->
      <move_user pool="1"/>                       <!-- Registration ongoing -->
    </action>
  </nop>

<!-- *** STEP 2 *** -->
 <!-- Now that our preparation step is done, we wait for the time when the 
scenario -->
 <!-- must actually start, according to the random scenario arrival 
distribution.   -->
  <sync crlf="true">
    <action>
      <exec int_cmd="set_start_time"/>
    </action>
  </sync>

<!-- *** STEP 3 *** -->
 <!-- Now the SIP scenario really starts -->

    <send retrans="500" start_rtd="1">
    <![CDATA[
      REGISTER sip:[field1] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      From: "[field0]" <sip:[field0]@[field1]>;tag=[call_number]
      To: "[field0]" <sip:[field0]@[field1]>
      Call-ID: [call_id]
      CSeq: 1 REGISTER
      Contact: 
<sip:[field0]@[local_ip]:[local_port]>;expires=[%RegistrationExpire]
      Expires: [%RegistrationExpire]
      Content-Length: 0
      Authorization: Digest username="[field2]@[field3]", realm="[field3]"
      Supported: path
    ]]>
  </send>


  <recv response="401" auth="true" auth_assign_to="u2" rtd="1">
  </recv>


  <send retrans="500" start_rtd="2">
    <![CDATA[
      REGISTER sip:[field1] SIP/2.0
      Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
      From: "[field0]" <sip:[field0]@[field1]>;tag=[call_number]
      To: "[field0]" <sip:[field0]@[field1]>
      Call-ID: [call_id]
      CSeq: 2 REGISTER
      Contact: 
<sip:[field0]@[local_ip]:[local_port]>;expires=[%RegistrationExpire]
      Expires: [%RegistrationExpire]
      Content-Length: 0
      [authentication username=[field2]@[field3] password=[field4]]
      Supported: path
    ]]>
  </send>

  <recv response="200" rtd="2" crlf="true" next="10">
    <action>
      <ereg regexp=".*" search_in="hdr" header="Service-Route:" check_it="true" 
assign_to="u1" />
      <move_user pool="2"/>    <!-- User is now 'Registered' -->
    </action>
  </recv>


  <label id="9"/>  <!-- FAILURE CASE -->

  <nop>
    <action>
      <move_user pool="0"/>    <!-- We ASSUME user is still 'Not Registered' -->
    </action>
  </nop>


  <label id="10"/> <!-- END OF SCENARIO -->


  <!-- definition of the response time repartition table (unit is ms)   -->
  <ResponseTimeRepartition value="10, 20, 30, 40, 50, 100, 150, 200"/>

  <!-- definition of the call length repartition table (unit is ms)     -->
  <CallLengthRepartition value="10, 50, 100, 500, 1000, 5000, 10000"/>

</scenario>
_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/mailman/listinfo/clearwater_lists.projectclearwater.org

Reply via email to