Pārlūkot izejas kodu

docs/kemi: updates to sipp files

Daniel-Constantin Mierla 2 gadi atpakaļ
vecāks
revīzija
bc41466a23
1 mainītis faili ar 42 papildinājumiem un 41 dzēšanām
  1. 42 41
      docs/kemi/performance-tests/5.2.x.md

+ 42 - 41
docs/kemi/performance-tests/5.2.x.md

@@ -47,13 +47,13 @@ File: REGISTER_client.xml
 
   <send retrans="500">
     <![CDATA[
-      REGISTER sip:[service]@[remote_ip]:[remote_port] SIP/2.0
+      REGISTER sip:[remote_ip]:[remote_port] SIP/2.0
       Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
-      From: sipp <sip:[service]@[local_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
-      To: [service] <sip:[service]@[remote_ip]:[remote_port]>
-      Call-ID: [call_id]///REGISTER
+      From: [field0] <sip:[field0]@[remote_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
+      To: [service] <sip:[field0]@[remote_ip]:[remote_port]>
+      Call-ID: [call_id]
       CSeq: 1 REGISTER
-      Contact: <sip:[service]@[local_ip]:[local_port]>
+      Contact: <sip:[field0]@[local_ip]:[local_port]>
       Max-Forwards: 70
       Subject: Performance Test
       Content-Type: application/sdp
@@ -61,31 +61,26 @@ File: REGISTER_client.xml
     ]]>
   </send>
 
-  <recv response="100" optional="true">
-  </recv>
-
   <recv response="401" auth="true" rtd="true">
   </recv>
 
   <send retrans="500">
     <![CDATA[
-      REGISTER sip:[service]@[remote_ip]:[remote_port] SIP/2.0
+      REGISTER sip:[remote_ip]:[remote_port] SIP/2.0
       Via: SIP/2.0/[transport] [local_ip]:[local_port];branch=[branch]
-      From: sipp <sip:[service]@[local_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
-      To: [service] <sip:[service]@[remote_ip]:[remote_port]>
-      Call-ID: [call_id]///REGISTER
+      From: [field0] <sip:[field0]@[remote_ip]:[local_port]>;tag=[pid]SIPpTag00[call_number]
+      To: [service] <sip:[field0]@[remote_ip]:[remote_port]>
+      Call-ID: [call_id]
       CSeq: 1 REGISTER
-      Contact: <sip:[service]@[local_ip]:[local_port]>
+      Contact: <sip:[field1]@[local_ip]:[local_port]>
       Max-Forwards: 70
+      [field2]
       Subject: Performance Test
       Content-Type: application/sdp
       Content-Length: [len]
     ]]>
   </send>
 
-  <recv response="100" optional="true">
-  </recv>
-
   <recv response="200">
   </recv>
 
@@ -101,40 +96,46 @@ File: REGISTER_client.xml
 
 Testing input file REGISTER_client.csv:
 
-    SEQUENTIAL
-    test0;192.168.178.98;[authentication username=test password=test0];
-    test1;192.168.178.98;[authentication username=test password=test1];
-    test2;192.168.178.98;[authentication username=test password=test2];
-    test3;192.168.178.98;[authentication username=test password=test3];
-    test4;192.168.178.98;[authentication username=test password=test4];
-    test5;192.168.178.98;[authentication username=test password=test5];
-    test6;192.168.178.98;[authentication username=test password=test6];
-    test7;192.168.178.98;[authentication username=test password=test7];
-    test8;192.168.178.98;[authentication username=test password=test8];
-    test9;192.168.178.98;[authentication username=test password=test9];
+```
+SEQUENTIAL
+test0;192.168.178.98;[authentication username=test0 password=test0];
+test1;192.168.178.98;[authentication username=test1 password=test1];
+test2;192.168.178.98;[authentication username=test2 password=test2];
+test3;192.168.178.98;[authentication username=test3 password=test3];
+test4;192.168.178.98;[authentication username=test4 password=test4];
+test5;192.168.178.98;[authentication username=test5 password=test5];
+test6;192.168.178.98;[authentication username=test6 password=test6];
+test7;192.168.178.98;[authentication username=test7 password=test7];
+test8;192.168.178.98;[authentication username=test8 password=test8];
+test9;192.168.178.98;[authentication username=test9 password=test9];
+```
 
 These users have to be added to Kamailio subscriber table. To add them
 from the source code tree of Kamailio:
 
-    cd utils/kamctl/
-    DBENGINE=MYSQL ./kamdbctl create
-    DBENGINE=MYSQL ./kamctl add [email protected] test0
-    DBENGINE=MYSQL ./kamctl add [email protected] test1
-    DBENGINE=MYSQL ./kamctl add [email protected] test2
-    DBENGINE=MYSQL ./kamctl add [email protected] test3
-    DBENGINE=MYSQL ./kamctl add [email protected] test4
-    DBENGINE=MYSQL ./kamctl add [email protected] test5
-    DBENGINE=MYSQL ./kamctl add [email protected] test6
-    DBENGINE=MYSQL ./kamctl add [email protected] test7
-    DBENGINE=MYSQL ./kamctl add [email protected] test8
-    DBENGINE=MYSQL ./kamctl add [email protected] test9
-    DBENGINE=MYSQL ./kamctl db show subscriber
+```shell
+cd utils/kamctl/
+DBENGINE=MYSQL ./kamdbctl create
+DBENGINE=MYSQL ./kamctl add [email protected] test0
+DBENGINE=MYSQL ./kamctl add [email protected] test1
+DBENGINE=MYSQL ./kamctl add [email protected] test2
+DBENGINE=MYSQL ./kamctl add [email protected] test3
+DBENGINE=MYSQL ./kamctl add [email protected] test4
+DBENGINE=MYSQL ./kamctl add [email protected] test5
+DBENGINE=MYSQL ./kamctl add [email protected] test6
+DBENGINE=MYSQL ./kamctl add [email protected] test7
+DBENGINE=MYSQL ./kamctl add [email protected] test8
+DBENGINE=MYSQL ./kamctl add [email protected] test9
+DBENGINE=MYSQL ./kamctl db show subscriber
+```
 
 ## SIPP Testing Command
 
 SIPP was run on the same system with Kamailio. The command is:
 
-    sipp 192.168.178.98 -sf REGISTER_client.xml -inf REGISTER_client.csv -trace_msg -trace_err -l 10000 -r 4000 -m 20000
+```
+sipp 192.168.178.98 -sf REGISTER_client.xml -inf REGISTER_client.csv -trace_msg -trace_err -l 1000 -r 4000 -m 20000
+```
 
 ## Kamailio Details