[RADIATOR] radpwtst - sending multiple packets

Kiernan McColl kiernan at staff.iinet.net.au
Wed Jan 5 19:43:27 CST 2011


You could use radiator's Radius::Radius perl module from within your own perl script. That way you could fork if a single thread isn't sending them fast enough for your needs.
I believe there's an example in the goodies directory.

-----Original Message-----
From: radiator-bounces at open.com.au [mailto:radiator-bounces at open.com.au] On Behalf Of Bjoern A. Zeeb
Sent: Thursday, January 06, 2011 5:37 AM
To: Michael
Cc: radiator at open.com.au list
Subject: Re: [RADIATOR] radpwtst - sending multiple packets

On Wed, 5 Jan 2011, Michael wrote:

Hi,

> I'm trying to figure out the best way to send multiple radius packets to
> a server.  It seems that executing radpwtst once for each individual
> packet is pretty slow.  I assume it is slow since it has to compile,
> parse the dictionary, and do whatever else radpwtst has to do each time
> it is run.  I'm wondering if there is a way to have radpwtst run once,
> and send/receive multiple packets.
>
> I see there is a -rawfileseq option that appears to do this, but i don't
> see this as being a documented option in the manual.  How do you
> generate raw packets to build a raw file?
>
> Is there any other ways of sending/receiving radius packets to a server?

Depends on what you really want to accomplish.  Shell loops of
radpwtst have often been suggested in the past; I found them painful
to script though.  There is a problem of deltaT (rtt) as well, so you need
parallel radpwtst to actually get to speed and with that you need to
make sure to not send duplicates, yadda yadda yadda.  It's ok if you
want to check a couple of hundred requests.

For benchmarking and pushing servers in the multiple thousands of
reqs/s you probably want something more sophisticated but perl and
Radiator have proven to be able to do that fairly well, even on a
desktop machine;)

/bz

-- 
Bjoern A. Zeeb                                 You have to have visions!
         <ks> Going to jail sucks -- <bz> All my daemons like it!
   http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails.html
_______________________________________________
radiator mailing list
radiator at open.com.au
http://www.open.com.au/mailman/listinfo/radiator


More information about the radiator mailing list