getting fakesmsc working to spoof MO campaign

View: New views
4 Messages — Rating Filter:   Alert me  

Parent Message unknown getting fakesmsc working to spoof MO campaign

by Andrew Boag-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

We have kannel 1.4.1 running on Ubuntu 8.0.4 server. All going well and
we've had a lot to do with kannel so it's doing all we need it to do.

We have built an sms gateway application on top of kannel that takes
care of a lot of the authentication and other bits and pieces and we
want to stress test this application in terms of how many MO messages it
can process per second.

It's easy enough to spoof kannel's MO behaviour using siege or a script
(it's just sending HTTP delivery requests in the end). However, I would
really like to have kannel itself delivering the MOs from a fake smsc.

I've tried to get the fakesmsc working as a generator of MO messages but
no joy. Can anyone give me any examples?

Also, how many threads will kannel create (meaning concurrent delivery
threads) to our delivery script?

Thanks for your help.

cheers


Re: getting fakesmsc working to spoof MO campaign

by Nikos Balkanas-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Kannel uses queues to process messages. There are a few static threads that
service those queues, but in the end, kannel is single-threaded, i.e. there
is only 1 send and 1 receive thread, but they are very efficient due to the
queues.

Have you used the test/fakesmsc client? If you type:

fakesmsc --help

you will get lots of examples. How are you invoking it?

BR,
Nikos
----- Original Message -----
From: "Andrew Boag" <red@...>
To: <users@...>
Sent: Monday, November 02, 2009 2:22 PM
Subject: getting fakesmsc working to spoof MO campaign


> We have kannel 1.4.1 running on Ubuntu 8.0.4 server. All going well and
> we've had a lot to do with kannel so it's doing all we need it to do.
>
> We have built an sms gateway application on top of kannel that takes care
> of a lot of the authentication and other bits and pieces and we want to
> stress test this application in terms of how many MO messages it can
> process per second.
>
> It's easy enough to spoof kannel's MO behaviour using siege or a script
> (it's just sending HTTP delivery requests in the end). However, I would
> really like to have kannel itself delivering the MOs from a fake smsc.
>
> I've tried to get the fakesmsc working as a generator of MO messages but
> no joy. Can anyone give me any examples?
>
> Also, how many threads will kannel create (meaning concurrent delivery
> threads) to our delivery script?
>
> Thanks for your help.
>
> cheers



Re: getting fakesmsc working to spoof MO campaign

by Andrew Boag-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks Nikos,

I'm not sure exactly what I was doing wrong, but I have a sample config
that allows 2 x fake SMSC connections for both MO and MT messages which
is exactly what I wanted.

This is running on Ubuntu 8.0.4 and kannel 1.4.3

kannel conf:

group = core
admin-port = 13000
admin-password = bar
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1;192.168.*.*"
log-file = "/var/log/kannel/bearerbox.log"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
smsbox-port = 13001
dlr-storage = internal
log-level=0

group = smsbox
bearerbox-host = 127.0.0.1
log-file = "/var/log/kannel/smsbox.log"
access-log = "/var/log/kannel/access.log"
global-sender=edkan
log-level=0
sendsms-port=13013

#Fake SMSC1
group = smsc
smsc = fake
smsc-id = FAKE1
port = 13005

#Fake SMSC2
group = smsc
smsc = fake
smsc-id = FAKE2
port = 13006

#default MO handler
group = sms-service
keyword = default
#text = "No action required"
#mc=%c&&charset=%C
get-url = "http://192.168.0.175/?kannel_id=%i&to=%P&from=%p&body=%a"
omit-empty = true


Now I can connect as the fake smscs using these commands

fake1 (port 13005)

/usr/lib/kannel/test/fakesmsc -r 13005 -i 0.1 -m 10 "123 999 text itn1"

fake2 (port 13006)

/usr/lib/kannel/test/fakesmsc -r 13006 -i 0.1 -m 10 "123 999 text itn2"

It would be nice to not just send the same message all the time, but hey
it's great for load testing. I got 700+ MO messages per second!!! wow!!!


Nikos Balkanas wrote:

> Hi,
>
> Kannel uses queues to process messages. There are a few static threads
> that service those queues, but in the end, kannel is single-threaded,
> i.e. there is only 1 send and 1 receive thread, but they are very
> efficient due to the queues.
>
> Have you used the test/fakesmsc client? If you type:
>
> fakesmsc --help
>
> you will get lots of examples. How are you invoking it?
>
> BR,
> Nikos
> ----- Original Message ----- From: "Andrew Boag" <red@...>
> To: <users@...>
> Sent: Monday, November 02, 2009 2:22 PM
> Subject: getting fakesmsc working to spoof MO campaign
>
>
>> We have kannel 1.4.1 running on Ubuntu 8.0.4 server. All going well
>> and we've had a lot to do with kannel so it's doing all we need it to
>> do.
>>
>> We have built an sms gateway application on top of kannel that takes
>> care of a lot of the authentication and other bits and pieces and we
>> want to stress test this application in terms of how many MO messages
>> it can process per second.
>>
>> It's easy enough to spoof kannel's MO behaviour using siege or a
>> script (it's just sending HTTP delivery requests in the end).
>> However, I would really like to have kannel itself delivering the MOs
>> from a fake smsc.
>>
>> I've tried to get the fakesmsc working as a generator of MO messages
>> but no joy. Can anyone give me any examples?
>>
>> Also, how many threads will kannel create (meaning concurrent
>> delivery threads) to our delivery script?
>>
>> Thanks for your help.
>>
>> cheers
>



Re: getting fakesmsc working to spoof MO campaign

by Nikos Balkanas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Please look at the User's guide, there is a special section to fakesmsc. you
can get a lot of insight also by typing:

test/fakesmsc -h

There you can see that you can randomize all portions of the request,
therefore sending different SMS to different recipients and senders. Also to
use it in MT mode you have to use:

-m 0

All these are explained in detail in the guide and online help. Please take
the time to read all available help before adressing the list.

BR,
Nikos
----- Original Message -----
From: "Andrew Boag" <red@...>
To: "Nikos Balkanas" <nbal@...>
Cc: <users@...>
Sent: Wednesday, November 04, 2009 1:55 PM
Subject: Re: getting fakesmsc working to spoof MO campaign


> Thanks Nikos,
>
> I'm not sure exactly what I was doing wrong, but I have a sample config
> that allows 2 x fake SMSC connections for both MO and MT messages which
> is exactly what I wanted.
>
> This is running on Ubuntu 8.0.4 and kannel 1.4.3
>
> kannel conf:
>
> group = core
> admin-port = 13000
> admin-password = bar
> admin-deny-ip = "*.*.*.*"
> admin-allow-ip = "127.0.0.1;192.168.*.*"
> log-file = "/var/log/kannel/bearerbox.log"
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
> smsbox-port = 13001
> dlr-storage = internal
> log-level=0
>
> group = smsbox
> bearerbox-host = 127.0.0.1
> log-file = "/var/log/kannel/smsbox.log"
> access-log = "/var/log/kannel/access.log"
> global-sender=edkan
> log-level=0
> sendsms-port=13013
>
> #Fake SMSC1
> group = smsc
> smsc = fake
> smsc-id = FAKE1
> port = 13005
>
> #Fake SMSC2
> group = smsc
> smsc = fake
> smsc-id = FAKE2
> port = 13006
>
> #default MO handler
> group = sms-service
> keyword = default
> #text = "No action required"
> #mc=%c&&charset=%C
> get-url = "http://192.168.0.175/?kannel_id=%i&to=%P&from=%p&body=%a"
> omit-empty = true
>
>
> Now I can connect as the fake smscs using these commands
>
> fake1 (port 13005)
>
> /usr/lib/kannel/test/fakesmsc -r 13005 -i 0.1 -m 10 "123 999 text itn1"
>
> fake2 (port 13006)
>
> /usr/lib/kannel/test/fakesmsc -r 13006 -i 0.1 -m 10 "123 999 text itn2"
>
> It would be nice to not just send the same message all the time, but hey
> it's great for load testing. I got 700+ MO messages per second!!! wow!!!
>
>
> Nikos Balkanas wrote:
>> Hi,
>>
>> Kannel uses queues to process messages. There are a few static threads
>> that service those queues, but in the end, kannel is single-threaded,
>> i.e. there is only 1 send and 1 receive thread, but they are very
>> efficient due to the queues.
>>
>> Have you used the test/fakesmsc client? If you type:
>>
>> fakesmsc --help
>>
>> you will get lots of examples. How are you invoking it?
>>
>> BR,
>> Nikos
>> ----- Original Message ----- From: "Andrew Boag" <red@...>
>> To: <users@...>
>> Sent: Monday, November 02, 2009 2:22 PM
>> Subject: getting fakesmsc working to spoof MO campaign
>>
>>
>>> We have kannel 1.4.1 running on Ubuntu 8.0.4 server. All going well
>>> and we've had a lot to do with kannel so it's doing all we need it to
>>> do.
>>>
>>> We have built an sms gateway application on top of kannel that takes
>>> care of a lot of the authentication and other bits and pieces and we
>>> want to stress test this application in terms of how many MO messages
>>> it can process per second.
>>>
>>> It's easy enough to spoof kannel's MO behaviour using siege or a
>>> script (it's just sending HTTP delivery requests in the end).
>>> However, I would really like to have kannel itself delivering the MOs
>>> from a fake smsc.
>>>
>>> I've tried to get the fakesmsc working as a generator of MO messages
>>> but no joy. Can anyone give me any examples?
>>>
>>> Also, how many threads will kannel create (meaning concurrent
>>> delivery threads) to our delivery script?
>>>
>>> Thanks for your help.
>>>
>>> cheers
>>
>
>