Re: wap client with SAR

2013-04-09 Thread Alexander Malysh
Hi,

any objections from WAP Experts?

Alex

Am 20.03.2013 um 23:45 schrieb Piotr Galecki 
piotr_gale...@affirmednetworks.com:

 Hi Stipe,
 
 Attached is the latest patch for fakewap with additional functionality:
 - parse WSP message and save only the received payload to the output file
 - support for connectionless get/post
 - robustness fixes for Post (resend group segments if no ack), packet loss 
 simulation
 
 Usage:
 [root@contentsim11-UE kannel]# ./fakewap 
 2013-03-20 18:30:43 [11297] [0] PANIC: fakewap version 1.6
 Usage: fakewap [options] url ...
 
 where options are:
 
 -hhelp
 -g hostname   hostname or IP number of gateway (default: localhost)
 -p port   port number of gateway (default: 9201)
 -m maxmaximum number of requests fakewap will make (default: 
 1)
 -i interval   interval between requests (default: 1.0 seconds)
 -c threadsnumber of concurrent clients simulated (default: 1)
 -V protoversion   protocol version field, as an integer (default: 0)
 -T pdu-type   PDU type, as an integer (default: 1)
 -t tcltransaction class, as an integer (default: 2)
 -nset tid_new flag in packets, forces gateway to flush cache
(default: off)
 -s  test separation, by concatenating ack and disconnect pdus
(default: off)
 -d difference difference between successive tid numbers (default: 1)
 -FAccept failure and continue rather than exiting
 -A agentuser agent
 -C content-type Specify content type: text, mms
 -D level  debug level (0=none(default), 1=brief, 2=verbose
 -I addr[:port]  Specify source address
 -M mode Transaction mode: 0=connectionless, 1=connection-oriented
 -P in-filePost data from file
 -w out-file   Write received data to file
 -l loss-precent Simulate packet loss
 
 The urls are fetched in random order.
 
 I have verified the following:
 
 #1 Connectionless GET
 ./fakewap -g 10.32.35.61 -D 1 -M 0 http://10.48.1.231/sqa/file_1k.txt
 2013-03-20 18:24:49 [11290] [0] ERROR: Error while gw_gethostbyname occurs.
 2013-03-20 18:24:49 [11290] [0] ERROR: System error 2: No such file or 
 directory
 2013-03-20 18:24:49 [11290] [0] ERROR: Can't find out official hostname for 
 this host, using `contentsim11-UE' instead.
 2013-03-20 18:24:49 [11290] [0] INFO: fakewap: starting
 2013-03-20 18:24:49 [11290] [0] DEBUG: Sent WSP_GET packet
 2013-03-20 18:24:50 [11290] [0] INFO: fakewap: Received WSP Reply with status 
 code 200OK
 2013-03-20 18:24:50 [11290] [0] INFO: fakewap: finished session # 1
 2013-03-20 18:24:50 [11290] [0] INFO: fakewap: complete.
 2013-03-20 18:24:50 [11290] [0] INFO: fakewap: 1 client threads made total 1 
 transactions.
 2013-03-20 18:24:50 [11290] [0] INFO: fakewap: total running time 1.0 seconds
 2013-03-20 18:24:50 [11290] [0] INFO: fakewap: 1.0 messages/seconds on average
 2013-03-20 18:24:50 [11290] [0] INFO: fakewap: time of best, worst and 
 average transaction: 0.6 s, 0.6 s, 0.6 s
 [root@contentsim11-UE kannel]#
 
 #2 Connection-oriented GET
 [root@contentsim11-UE kannel]# ./fakewap -g 10.32.35.61 -D 1 -M 1 
 http://10.48.1.231/sqa/file_2k.txt
 2013-03-20 18:28:20 [11293] [0] ERROR: Error while gw_gethostbyname occurs.
 2013-03-20 18:28:20 [11293] [0] ERROR: System error 2: No such file or 
 directory
 2013-03-20 18:28:20 [11293] [0] ERROR: Can't find out official hostname for 
 this host, using `contentsim11-UE' instead.
 2013-03-20 18:28:20 [11293] [0] INFO: fakewap: starting
 2013-03-20 18:28:20 [11293] [0] DEBUG: Sent WSP_CONNECT packet
 2013-03-20 18:28:21 [11293] [0] DEBUG: Received WSP_ConnectReply, SessID 14
 2013-03-20 18:28:21 [11293] [0] DEBUG: Sent WTP_ACK packet
 2013-03-20 18:28:21 [11293] [0] DEBUG: Sent WSP_GET packet
 2013-03-20 18:28:21 [11293] [0] DEBUG: Received WTP_RESULT pdu, gtr 0, ttr 0, 
 payload len 1380
 2013-03-20 18:28:21 [11293] [0] DEBUG: Received WTP_SEGM_RESULT pdu, psn 1, 
 gtr 0, ttr 1, payload len 703
 2013-03-20 18:28:21 [11293] [0] DEBUG: Sending WTP_ACK pdu, gtr_psn 1
 2013-03-20 18:28:21 [11293] [0] DEBUG: Sent WTP_ACK packet
 2013-03-20 18:28:21 [11293] [0] INFO: fakewap: Received WSP Reply with status 
 code 200OK
 2013-03-20 18:28:21 [11293] [0] DEBUG: Sent WSP_DISCONNECT packet
 2013-03-20 18:28:21 [11293] [0] INFO: fakewap: finished session # 1
 2013-03-20 18:28:21 [11293] [0] INFO: fakewap: complete.
 2013-03-20 18:28:21 [11293] [0] INFO: fakewap: 1 client threads made total 1 
 transactions.
 2013-03-20 18:28:21 [11293] [0] INFO: fakewap: total running time 1.0 seconds
 2013-03-20 18:28:21 [11293] [0] INFO: fakewap: 1.0 messages/seconds on average
 2013-03-20 18:28:21 [11293] [0] INFO: fakewap: time of best, worst and 
 average transaction: 0.2 s, 0.2 s, 0.2 s
 [root@contentsim11-UE kannel]#
 
 #3 Connection-oriented POST of MMS message via WAPGW to MMSC
 
 [root@contentsim11-UE kannel]# ./fakewap -g 10.32.35.61 -P 
 /root/mms/Picture1.mms -C mms -w /tmp/mms-confirm.txt 

Re: wap client with SAR

2013-04-09 Thread Stipe Tolj

Am 09.04.2013 09:24, schrieb Alexander Malysh:

Hi,

any objections from WAP Experts?


patch looks good, +1 for committing. Go ahead Alex ;)

Stipe

--
---
Kölner Landstrasse 419
40589 Düsseldorf, NRW, Germany

tolj.org system architecture  Kannel Software Foundation (KSF)
http://www.tolj.org/  http://www.kannel.org/

mailto:st_{at}_tolj.org   mailto:stolj_{at}_kannel.org
---



Re: wap client with SAR

2013-04-09 Thread Stipe Tolj

Am 20.03.2013 23:45, schrieb Piotr Galecki:

Hi Stipe,

Attached is the latest patch for fakewap with additional functionality:
  - parse WSP message and save only the received payload to the output file
  - support for connectionless get/post
  - robustness fixes for Post (resend group segments if no ack), packet loss 
simulation


Hi Piotr,

many thanks for the updated patch. Alex has picked it up and will commit.

BTW, what about WTLS support for the client side? You're currently deep 
in the WAP 1 stack code here, do we have all the crypto routines to be 
able to add this to fakewap too?


Stipe

--
---
Kölner Landstrasse 419
40589 Düsseldorf, NRW, Germany

tolj.org system architecture  Kannel Software Foundation (KSF)
http://www.tolj.org/  http://www.kannel.org/

mailto:st_{at}_tolj.org   mailto:stolj_{at}_kannel.org
---



Re: wap client with SAR

2013-04-09 Thread Alexander Malysh
Hi,

commited to SVN.

Alex

Am 09.04.2013 um 09:24 schrieb Alexander Malysh amal...@kannel.org:

 Hi,
 
 any objections from WAP Experts?
 
 Alex
 
 Am 20.03.2013 um 23:45 schrieb Piotr Galecki 
 piotr_gale...@affirmednetworks.com:
 
 Hi Stipe,
 
 Attached is the latest patch for fakewap with additional functionality:
 - parse WSP message and save only the received payload to the output file
 - support for connectionless get/post
 - robustness fixes for Post (resend group segments if no ack), packet loss 
 simulation
 
 Usage:
 [root@contentsim11-UE kannel]# ./fakewap 
 2013-03-20 18:30:43 [11297] [0] PANIC: fakewap version 1.6
 Usage: fakewap [options] url ...
 
 where options are:
 
 -h   help
 -g hostname  hostname or IP number of gateway (default: localhost)
 -p port  port number of gateway (default: 9201)
 -m max   maximum number of requests fakewap will make (default: 
 1)
 -i interval  interval between requests (default: 1.0 seconds)
 -c threads   number of concurrent clients simulated (default: 1)
 -V protoversion  protocol version field, as an integer (default: 0)
 -T pdu-type  PDU type, as an integer (default: 1)
 -t tcl   transaction class, as an integer (default: 2)
 -n   set tid_new flag in packets, forces gateway to flush cache
   (default: off)
 -s  test separation, by concatenating ack and disconnect pdus
   (default: off)
 -d differencedifference between successive tid numbers (default: 1)
 -F   Accept failure and continue rather than exiting
 -A agentuser agent
 -C content-type Specify content type: text, mms
 -D level debug level (0=none(default), 1=brief, 2=verbose
 -I addr[:port]  Specify source address
 -M mode Transaction mode: 0=connectionless, 1=connection-oriented
 -P in-file   Post data from file
 -w out-file  Write received data to file
 -l loss-precent Simulate packet loss
 
 The urls are fetched in random order.
 
 I have verified the following:
 
 #1 Connectionless GET
 ./fakewap -g 10.32.35.61 -D 1 -M 0 http://10.48.1.231/sqa/file_1k.txt
 2013-03-20 18:24:49 [11290] [0] ERROR: Error while gw_gethostbyname occurs.
 2013-03-20 18:24:49 [11290] [0] ERROR: System error 2: No such file or 
 directory
 2013-03-20 18:24:49 [11290] [0] ERROR: Can't find out official hostname for 
 this host, using `contentsim11-UE' instead.
 2013-03-20 18:24:49 [11290] [0] INFO: fakewap: starting
 2013-03-20 18:24:49 [11290] [0] DEBUG: Sent WSP_GET packet
 2013-03-20 18:24:50 [11290] [0] INFO: fakewap: Received WSP Reply with 
 status code 200OK
 2013-03-20 18:24:50 [11290] [0] INFO: fakewap: finished session # 1
 2013-03-20 18:24:50 [11290] [0] INFO: fakewap: complete.
 2013-03-20 18:24:50 [11290] [0] INFO: fakewap: 1 client threads made total 1 
 transactions.
 2013-03-20 18:24:50 [11290] [0] INFO: fakewap: total running time 1.0 seconds
 2013-03-20 18:24:50 [11290] [0] INFO: fakewap: 1.0 messages/seconds on 
 average
 2013-03-20 18:24:50 [11290] [0] INFO: fakewap: time of best, worst and 
 average transaction: 0.6 s, 0.6 s, 0.6 s
 [root@contentsim11-UE kannel]#
 
 #2 Connection-oriented GET
 [root@contentsim11-UE kannel]# ./fakewap -g 10.32.35.61 -D 1 -M 1 
 http://10.48.1.231/sqa/file_2k.txt
 2013-03-20 18:28:20 [11293] [0] ERROR: Error while gw_gethostbyname occurs.
 2013-03-20 18:28:20 [11293] [0] ERROR: System error 2: No such file or 
 directory
 2013-03-20 18:28:20 [11293] [0] ERROR: Can't find out official hostname for 
 this host, using `contentsim11-UE' instead.
 2013-03-20 18:28:20 [11293] [0] INFO: fakewap: starting
 2013-03-20 18:28:20 [11293] [0] DEBUG: Sent WSP_CONNECT packet
 2013-03-20 18:28:21 [11293] [0] DEBUG: Received WSP_ConnectReply, SessID 14
 2013-03-20 18:28:21 [11293] [0] DEBUG: Sent WTP_ACK packet
 2013-03-20 18:28:21 [11293] [0] DEBUG: Sent WSP_GET packet
 2013-03-20 18:28:21 [11293] [0] DEBUG: Received WTP_RESULT pdu, gtr 0, ttr 
 0, payload len 1380
 2013-03-20 18:28:21 [11293] [0] DEBUG: Received WTP_SEGM_RESULT pdu, psn 1, 
 gtr 0, ttr 1, payload len 703
 2013-03-20 18:28:21 [11293] [0] DEBUG: Sending WTP_ACK pdu, gtr_psn 1
 2013-03-20 18:28:21 [11293] [0] DEBUG: Sent WTP_ACK packet
 2013-03-20 18:28:21 [11293] [0] INFO: fakewap: Received WSP Reply with 
 status code 200OK
 2013-03-20 18:28:21 [11293] [0] DEBUG: Sent WSP_DISCONNECT packet
 2013-03-20 18:28:21 [11293] [0] INFO: fakewap: finished session # 1
 2013-03-20 18:28:21 [11293] [0] INFO: fakewap: complete.
 2013-03-20 18:28:21 [11293] [0] INFO: fakewap: 1 client threads made total 1 
 transactions.
 2013-03-20 18:28:21 [11293] [0] INFO: fakewap: total running time 1.0 seconds
 2013-03-20 18:28:21 [11293] [0] INFO: fakewap: 1.0 messages/seconds on 
 average
 2013-03-20 18:28:21 [11293] [0] INFO: fakewap: time of best, worst and 
 average transaction: 0.2 s, 0.2 s, 0.2 s
 [root@contentsim11-UE kannel]#
 
 #3 Connection-oriented POST of MMS message via WAPGW to MMSC