From: Martin Devera <devik@cdi.cz>
To: lartc@vger.kernel.org
Subject: [LARTC] Re: traffic generator
Date: Mon, 10 Dec 2001 11:30:04 +0000 [thread overview]
Message-ID: <marc-lartc-100798388716142@msgid-missing> (raw)
> 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/
reply other threads:[~2001-12-10 11:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-100798388716142@msgid-missing \
--to=devik@cdi.cz \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.