Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 0 down vote accepted

Try using ncat, I'm fairly certain it can do this.

Perhaps as a file transfer?

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
Thanks! Ncat looks like it might have done the trick! – olan Apr 1 '11 at 19:19

Your Answer


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.