Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm doing some basic stress testing of a Linux kernel network IWF with netcat. The set-up is fairly simple. On the target side:

nc -l -p 10000 > /dev/null

And on my desktop I was running:

cat /dev/urandom | nc 192.168.0.20 10000

I'm using urandom for some poor-mans fuzz testing. However I find that even at this rate I can break something quite quickly.

EDIT

So I've been playing with trickle to rate limit how fast I'm generating data:

cat /dev/urandom | trickle -u 10 nc 192.168.0.20 10000

But it's hard to tell if this is working. What would be really useful is a the pv equivilent of trickle that can work with pipes.

share|improve this question
    
just search for pv in your repositories. –  EarlGray Oct 30 '12 at 17:02
add comment

1 Answer

Straight after posting I came across a tool called "Pipe Viewer" which seems to be just what I need. http://www.ivarch.com/programs/pv.shtml

share|improve this answer
add comment

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.