Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have written a server in Twisted for a current project I'm working on, and now I need to test it. It receives TCP packets, with the payload consisting of just a serialised binary string. I want to be able to test the server for concurrency/throughput using the binary data as the payload, but can not find any tool that will allow me to do this. I tried iperf -F but it didn't work, as I think it was sending the binary/hex data as chars. I've also looked at ab which seems to be perfect - if only for http. As well as these, I've had a look at tcpreplay, but it doesn't perform any testing (or establish TCP connections) so it's not much use.

Any help would be greatly appreciated as I'm rather stuck on this one!

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Try using ncat, I'm fairly certain it can do this. http://nmap.org/ncat/

Perhaps as a file transfer? http://nmap.org/ncat/guide/ncat-file-transfer.html

It has a --hex-dump option so you can see whats really going on.

You could also just compile a simple program to output exactly what you want and use netcat to call that and transfer its output.

share|improve this answer
1  
Thanks! Ncat looks like it might have done the trick! –  olan Apr 1 '11 at 19:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.