Testing traffic control
We are just starting to research this stuff - I expect this mailing list to save my bacon many times :)
I'd like to hear some ideas on how people test their setups. It seems to me that the ideal testing rig would be two computers, one on either side the router. Have one computer open up some number of connections with various procol characteristics to the other and start blasting data through each connection. Have the other computer display the rate at which data is being received for each connection in a really cool graphical way.
Does anyone here actually have the tools to do this? I would be terribly grateful if anyone could point me in the right direction.
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 11 lines · Patrick Turley
We are just starting to research this stuff - I expect this mailing list to save my bacon many times :)
I'd like to hear some ideas on how people test their setups. It seems to me that the ideal testing rig would be two computers, one on either side the router. Have one computer open up some number of connections with various procol characteristics to the other and start blasting data through each connection. Have the other computer display the rate at which data is being received for each connection in a really cool graphical way.
Quoted 2 lines
Does anyone here actually have the tools to do this? I would be terribly grateful if anyone could point me in the right direction.
I have some scripts. You can find them on www.docum.org. They don't look really cool, but they can show you what's going on in real-time.
I have a script that uses iptables counters. An other uses the tc counters. They are both shell scripts and I use them to automate my tests.
I also have some scripts to store the tc counters in a rrd database so you can graph long term statistics. And I have written a java applet so you can see real-time graphs.
Stef
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 4 lines · Jannes Faber
I've been using TC and HTB for a while now (almost a year). Took a while to get it running, but it's ok now (playing CounterStrike on one PC while two others are using DirectConnect and Emule are fully using the upstream and downstream).
Do you mind sending my some more information? I can add this is an example setup to my faq.
Quoted 5 lines
Anyway, until recently I was doing it all blind, using iptraf for some rough indication of some total values, but that was about it. So I decided it was time to make some graphs. So I made a simple perl script (ahum... actually I ripped apart a script made by Stef and added my own stuff) using rrdtool to store and display all the data.
Thx :)
But if you wrote the script in perl, why don't you use the rrdtool perl library's?
Stef
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
----- Original Message -----
From: "Jannes Faber" <[email protected]>
To: "Stef Coene" <[email protected]>; <[email protected]>; <[email protected]>
Sent: Saturday, April 26, 2003 3:07 AM
Subject: Re: [LARTC] Testing traffic control
Quoted 1 line
I've been using TC and HTB for a while now (almost a year). Took a while
to
Quoted 5 lines
get it running, but it's ok now (playing CounterStrike on one PC while two others are using DirectConnect and Emule are fully using the upstream and downstream).
Anyway, until recently I was doing it all blind, using iptraf for some
rough
Quoted 1 line
indication of some total values, but that was about it. So I decided it
was
Quoted 1 line
time to make some graphs. So I made a simple perl script (ahum... actually
I
Quoted 1 line
ripped apart a script made by Stef and added my own stuff) using rrdtool
to
Quoted 14 lines
store and display all the data.
I attached it. You'll have to edit it a little for your own situation, but it's quite flexible. (I'm not a perl programmer, so expect some ugly C constructions).
Basic commands:
rrd_tcwithout parameters gives some help. But basically you call "rrd_tc.pl create" once to create a new database. Then you run "rrd_tc.pl collect" and keep it running in the background (nohup or in/etc/rc.local) to collect the actual data. Then you use "rrd_tc.pl graph xv stack update=10" to display a nice graph and have it updated every 10 seconds.
Quoted 11 lines
This script stores and displays the counters for all the different TC classes as well as the total up and download from
/proc/net/dev.Jannes Faber
Quoted 6 lines · Patrick Turley
Quoted 5 lines
through each connection. Have the other computer display the rate at which data is being received for each connection in a really cool graphical way.
Does anyone here actually have the tools to do this? I would be
terribly
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
grateful if anyone could point me in the right direction.
Stef wrote:
I have some scripts. You can find them on www.docum.org. They don't
look
Quoted 7 lines
Quoted 3 lines
really cool, but they can show you what's going on in real-time.
I have a script that uses iptables counters. An other uses the tc
counters.
Quoted 3 lines
They are both shell scripts and I use them to automate my tests.
I also have some scripts to store the tc counters in a rrd database so
you
Quoted 8 lines
can
Quoted 1 line
graph long term statistics. And I have written a java applet so you can
see
Quoted 3 lines
real-time graphs.
Stef
Probably u can use spirent tool, but i'm not sure of it's graphical reports with current version, The next version is coming with more comforatable.
Srikanth
Quoted 62 lines
Message: 2
Date: Fri, 25 Apr 2003 16:57:03 -0500
From: Patrick Turley <[email protected]>
To: [email protected]
Reply-To: [email protected]
Organization: Rock Steady Networks
Subject: [LARTC] Testing traffic controlWe are just starting to research this stuff - I expect this mailing list to save my bacon many times :)
I'd like to hear some ideas on how people test their setups. It seems to me that the ideal testing rig would be two computers, one on either side the router. Have one computer open up some number of connections with various procol characteristics to the other and start blasting data through each connection. Have the other computer display the rate at which data is being received for each connection in a really cool graphical way.
Does anyone here actually have the tools to do this? I would be terribly grateful if anyone could point me in the right direction.
--__--__--
Message: 3
From: Stef Coene <[email protected]>
Organization: None
To: [email protected], [email protected]
Subject: Re: [LARTC] Testing traffic control
Date: Sat, 26 Apr 2003 00:51:44 +0200Quoted 11 lines · Patrick Turley
We are just starting to research this stuff - I expect this mailing list to save my bacon many times :)
I'd like to hear some ideas on how people test their setups. It seems to me that the ideal testing rig would be two computers, one on either side the router. Have one computer open up some number of connections with various procol characteristics to the other and start blasting data through each connection. Have the other computer display the rate at which data is being received for each connection in a really cool graphical way.
Quoted 4 lines
Does anyone here actually have the tools to do this? I would be terribly grateful if anyone could point me in the right direction.
I have some scripts. You can find them on www.docum.org. They don't look really cool, but they can show you what's going on in real-time.
I have a script that uses iptables counters. An other uses the tc counters. They are both shell scripts and I use them to automate my tests.
I also have some scripts to store the tc counters in a rrd database so you can graph long term statistics. And I have written a java applet so you can see real-time graphs.
Stef