traffic generator
Quoted 1 line
But you did, and I downloaded it, and I want to use it ;-)
hehe it is probably the worst program I've written .. but works well
Quoted 6 lines
Quoted 3 lines
it reads generator program from stdin, executes is and it writes results to stdout.
see demo program at my web.Whatever I try, I get an error (compiled with cc
eherloop.sh) :a.out: ethloop.c:231: main: Assertion `sock>0' failed.
well, it sends data to raw device (set in control script) and recieves them from all interfaces. The flow is NOT ip. It is special flow.
Simulator uses skb->priority to direct messages into classes (you don't have to have filters attached). See this simple script:
0 i 0 eth0 0 i 1 eth0 0 P 0 0x10002 0 P 1 0x10003 0 R 0 90000
1000 R 1 80000
It confugures two flows, flow 0 goes to eth0 and classid 1:2 at rate 90kbps. Flow 1 again eth0, class 1:3 starts at time 1000ms at rate 80kbps.
You store this into file prog and run ./ethloop < prog.
That's all. It will emit results at stdout (for step 0.5sec, input and output rate plus two delays).
You need either two ethernet cards connected into your computer (and connected via cross-cable) or even single card with loop connector inserted (single RJ connector with rx-tx pair interconnected by short piece of wire).
another question ?
:)
devik
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/