All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Re: traffic generator
@ 2001-12-10 11:30 Martin Devera
  0 siblings, 0 replies; only message in thread
From: Martin Devera @ 2001-12-10 11:30 UTC (permalink / raw)
  To: lartc

> 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
 
> > 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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-12-10 11:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-10 11:30 [LARTC] Re: traffic generator Martin Devera

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.