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 difference difference between successive tid numbers (default: 1) >> -F Accept failure and continue rather than exiting >> -A agent user 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 >> >> [root@contentsim11-UE kannel]# ./fakewap -g 10.32.35.61 -P >> /root/mms/Picture1.mms -C mms -w /tmp/mms-confirm.txt -D 0 -M 1 >> http://10.6.1.89/usr1=passwd >> 2013-03-20 18:35:02 [11308] [0] ERROR: Error while gw_gethostbyname occurs. >> 2013-03-20 18:35:02 [11308] [0] ERROR: System error 2: No such file or >> directory >> 2013-03-20 18:35:02 [11308] [0] ERROR: Can't find out official hostname for >> this host, using `contentsim11-UE' instead. >> 2013-03-20 18:35:02 [11308] [0] INFO: fakewap: starting >> 2013-03-20 18:35:02 [11308] [0] INFO: fakewap: Received WSP Reply with >> status code 200OK >> 2013-03-20 18:35:02 [11308] [0] INFO: fakewap: complete. >> 2013-03-20 18:35:02 [11308] [0] INFO: fakewap: 1 client threads made total 1 >> transactions. >> 2013-03-20 18:35:02 [11308] [0] INFO: fakewap: total running time 0.0 seconds >> 2013-03-20 18:35:02 [11308] [0] INFO: fakewap: inf messages/seconds on >> average >> 2013-03-20 18:35:02 [11308] [0] INFO: fakewap: time of best, worst and >> average transaction: 0.6 s, 0.6 s, 0.6 s >> [root@contentsim11-UE kannel]# >> >> #4 Connectionless POSTs should also work fine >> >> Could you integrate with the kannel codebase? >> >> Thank you, >> Piotr >> >> -----Original Message----- >> From: devel-boun...@kannel.org [mailto:devel-boun...@kannel.org] On Behalf >> Of Piotr Galecki >> Sent: Monday, March 04, 2013 11:32 PM >> To: Stipe Tolj >> Cc: devel@kannel.org >> Subject: RE: wap client with SAR >> >> Hi Stipe, >> >> Here is the patch with my latest changes: >> - added WSP GET result reassembly >> - added WSP POST - options -P, -C, -w >> - added source address (-I) option >> - send Nack for lost segments, reassembly fixes >> >> Let me know your comments. >> >> There are a few more changes coming: >> - wtp segm invoke retry if wtp ack is not received >> - do not write wsp header to the output file >> >> Thanks, >> Piotr >> >> -----Original Message----- >> From: Stipe Tolj [mailto:st...@kannel.org] >> Sent: Monday, March 04, 2013 5:54 PM >> Cc: Piotr Galecki >> Subject: Re: wap client with SAR >> >> Am 09.01.2013 15:57, schrieb Stipe Tolj: >>> >>> thanks a lot for contributing to the Kannel WAP 1 stack and the SAR >>> part. We're definitely interested. >>> >>> Kindly please provide a patchset in 'diff -u' against current SVN >>> trunk to review and commit. >>> >>> It would be great if we can move the discussion to the devel@ list, >>> which is more suited for this. Kindly subscribe and send the patchset >>> to the devel@ list. >> >> Hi Piotr, >> >> I haven't seen any update here from your side. Kindly, please let us know if >> you can still provide the patch for the WAP client SAR support? >> >> Kind Regards, >> 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 >> ------------------------------------------------------------------- >> <fakewap.patch> >