All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Measuring throughput
@ 2003-02-06 18:29 Kenneth Porter
  2003-02-06 19:04 ` Patrick Nehls
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Kenneth Porter @ 2003-02-06 18:29 UTC (permalink / raw)
  To: lartc

I'm running a game server which uses a lot of UDP traffic on a 4 Mbps
connection. I'd like to figure out how much of that I'm really using
(inbound vs. outbound) and I'd like to verify my bandwidth cap.

The host also runs a web and FTP server and I'm running wshaper to keep
those from hurting game traffic. But I'm concerned that it might be
artificially capping my bandwidth and that I might need to tweak it.

I've got ntop running (http://matureasskickers.net:3000/) and it tells me
that in a massive game last night (50 players) I used 2.2 Mbps, but I don't
know whether that's inbound, outbound, or the sum of both. Is there another
tool better for this measurement?

I'd like to simulate lots of game traffic by flooding UDP packets out of
the box (say, to my home system) to verify the bandwidth cap. What tool
would be good for doing that? (The Slapper worm doesn't count! ;))
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [LARTC] Measuring throughput
  2003-02-06 18:29 [LARTC] Measuring throughput Kenneth Porter
@ 2003-02-06 19:04 ` Patrick Nehls
  2003-02-06 20:41 ` Esteban Ribicic
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Patrick Nehls @ 2003-02-06 19:04 UTC (permalink / raw)
  To: lartc

Install a program called nload or iptraf. Nload very simply gives you the
current in and out of whatever interface your specify along with an average.
Here's the command I use:
nload -i 2048 -o 384 -s 9 -t 1000 -u k -U m eth0 eth1
This tells to set the incoming graph at 2Mbit max, outgoing graph at 384kbit
max, -s 9 smoother average bandwidth number, -u is traffic number units
(bit/s, kbit/s, mbit/s, gbit/s), and -U is the units for the amount of data
in/out. The m lets me see rates for eth0 and eth1 (multiple interfaces).

Iptraf is much more of a full featured network monitoring program and I
highly recommend it as well as nload. Iptraf can give you the basic in/out
stats of your network along with much more. I use iptraf when I want to
monitor the bandwidth usage of a specific connection and nload when I want
the overall picture of how much data is being transferred in and out.

Patrick

-----Original Message-----
From: Kenneth Porter [mailto:shiva@sewingwitch.com] 
Sent: Thursday, February 06, 2003 10:30 AM
To: LARTC List
Subject: [LARTC] Measuring throughput


I'm running a game server which uses a lot of UDP traffic on a 4 Mbps
connection. I'd like to figure out how much of that I'm really using
(inbound vs. outbound) and I'd like to verify my bandwidth cap.

The host also runs a web and FTP server and I'm running wshaper to keep
those from hurting game traffic. But I'm concerned that it might be
artificially capping my bandwidth and that I might need to tweak it.

I've got ntop running (http://matureasskickers.net:3000/) and it tells me
that in a massive game last night (50 players) I used 2.2 Mbps, but I don't
know whether that's inbound, outbound, or the sum of both. Is there another
tool better for this measurement?

I'd like to simulate lots of game traffic by flooding UDP packets out of the
box (say, to my home system) to verify the bandwidth cap. What tool would be
good for doing that? (The Slapper worm doesn't count! ;))
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: [LARTC] Measuring throughput
  2003-02-06 18:29 [LARTC] Measuring throughput Kenneth Porter
  2003-02-06 19:04 ` Patrick Nehls
@ 2003-02-06 20:41 ` Esteban Ribicic
  2003-02-06 23:56 ` Patrik Hildingsson
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Esteban Ribicic @ 2003-02-06 20:41 UTC (permalink / raw)
  To: lartc

Another way may be using iptables accounting..for example:

iptables -N udp-out
iptables -A udp-out -j accept

iptables -N udp-in
iptables -A udp-in -j accept

iptables -A input -p udp -j udp-in
iptables -A output -p udp -j udp-out

you can see this with:
iptables -L -n -v -x 

..i have some perl scripts to show that in graphs (rrdtool, gnuplot,
etc)...

saludos
Esteban.


On Thu, 2003-02-06 at 16:04, Patrick Nehls wrote:
> Install a program called nload or iptraf. Nload very simply gives you the
> current in and out of whatever interface your specify along with an average.
> Here's the command I use:
> nload -i 2048 -o 384 -s 9 -t 1000 -u k -U m eth0 eth1
> This tells to set the incoming graph at 2Mbit max, outgoing graph at 384kbit
> max, -s 9 smoother average bandwidth number, -u is traffic number units
> (bit/s, kbit/s, mbit/s, gbit/s), and -U is the units for the amount of data
> in/out. The m lets me see rates for eth0 and eth1 (multiple interfaces).
> 
> Iptraf is much more of a full featured network monitoring program and I
> highly recommend it as well as nload. Iptraf can give you the basic in/out
> stats of your network along with much more. I use iptraf when I want to
> monitor the bandwidth usage of a specific connection and nload when I want
> the overall picture of how much data is being transferred in and out.
> 
> Patrick
> 
> -----Original Message-----
> From: Kenneth Porter [mailto:shiva@sewingwitch.com] 
> Sent: Thursday, February 06, 2003 10:30 AM
> To: LARTC List
> Subject: [LARTC] Measuring throughput
> 
> 
> I'm running a game server which uses a lot of UDP traffic on a 4 Mbps
> connection. I'd like to figure out how much of that I'm really using
> (inbound vs. outbound) and I'd like to verify my bandwidth cap.
> 
> The host also runs a web and FTP server and I'm running wshaper to keep
> those from hurting game traffic. But I'm concerned that it might be
> artificially capping my bandwidth and that I might need to tweak it.
> 
> I've got ntop running (http://matureasskickers.net:3000/) and it tells me
> that in a massive game last night (50 players) I used 2.2 Mbps, but I don't
> know whether that's inbound, outbound, or the sum of both. Is there another
> tool better for this measurement?
> 
> I'd like to simulate lots of game traffic by flooding UDP packets out of the
> box (say, to my home system) to verify the bandwidth cap. What tool would be
> good for doing that? (The Slapper worm doesn't count! ;))
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> 
-- 
Esteban Ribicic
Network Operation Center
UOL-Sinectis S.A.

Florida 537 Piso 6, Buenos Aires, Argentina 
+54-11-4321-9110 ext 2503
+54-11-4321-9107 Directo
eribicic@uolsinectis.com
www.uolsinectis.com

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LARTC] Measuring throughput
  2003-02-06 18:29 [LARTC] Measuring throughput Kenneth Porter
  2003-02-06 19:04 ` Patrick Nehls
  2003-02-06 20:41 ` Esteban Ribicic
@ 2003-02-06 23:56 ` Patrik Hildingsson
  2003-02-06 23:58 ` Jay Wineinger
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: Patrik Hildingsson @ 2003-02-06 23:56 UTC (permalink / raw)
  To: lartc

> iptables -N udp-out
> iptables -A udp-out -j accept

Unless you really want to accept the packets, leave -j ACCEPT out (assuing you have a rule that accepts the traffic later or your default policy is set to ACCEPT). The packet and bytecounters will still increase.

> iptables -N udp-in
> iptables -A udp-in -j accept

Same here.

> iptables -A input -p udp -j udp-in
> iptables -A output -p udp -j udp-out
> 
> you can see this with:
> iptables -L -n -v -x 

iptables -nvxL udp-in
Would give you incoming udptraffic while
iptables -nvxL udp-out
would give you egress udptraffic.

> saludos
> Esteban.

> -- 
> Esteban Ribicic
> Network Operation Center
> UOL-Sinectis S.A.
> 
> Florida 537 Piso 6, Buenos Aires, Argentina 
> +54-11-4321-9110 ext 2503
> +54-11-4321-9107 Directo
> eribicic@uolsinectis.com
> www.uolsinectis.com

-- 
Sincerely,
Patrik Hildingsson
KurD@EFnet/linknet, kurdel@DALnet
+46 709 285 445
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LARTC] Measuring throughput
  2003-02-06 18:29 [LARTC] Measuring throughput Kenneth Porter
                   ` (2 preceding siblings ...)
  2003-02-06 23:56 ` Patrik Hildingsson
@ 2003-02-06 23:58 ` Jay Wineinger
  2003-02-07  7:40 ` Stef Coene
  2003-02-10  2:50 ` mingching.tiew
  5 siblings, 0 replies; 7+ messages in thread
From: Jay Wineinger @ 2003-02-06 23:58 UTC (permalink / raw)
  To: lartc

I personally like using rrdtool with snmp.  Its a bit more difficult to
setup than some tool like iptraf, but it gives you a nice graph of whats
going on.  It also keeps a set history of data so you can view trends, etc.

Jay

----- Original Message -----
From: "Kenneth Porter" <shiva@sewingwitch.com>
To: "LARTC List" <LARTC@mailman.ds9a.nl>
Sent: Thursday, February 06, 2003 1:29 PM
Subject: [LARTC] Measuring throughput


> I'm running a game server which uses a lot of UDP traffic on a 4 Mbps
> connection. I'd like to figure out how much of that I'm really using
> (inbound vs. outbound) and I'd like to verify my bandwidth cap.
>
> The host also runs a web and FTP server and I'm running wshaper to keep
> those from hurting game traffic. But I'm concerned that it might be
> artificially capping my bandwidth and that I might need to tweak it.
>
> I've got ntop running (http://matureasskickers.net:3000/) and it tells me
> that in a massive game last night (50 players) I used 2.2 Mbps, but I
don't
> know whether that's inbound, outbound, or the sum of both. Is there
another
> tool better for this measurement?
>
> I'd like to simulate lots of game traffic by flooding UDP packets out of
> the box (say, to my home system) to verify the bandwidth cap. What tool
> would be good for doing that? (The Slapper worm doesn't count! ;))
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LARTC] Measuring throughput
  2003-02-06 18:29 [LARTC] Measuring throughput Kenneth Porter
                   ` (3 preceding siblings ...)
  2003-02-06 23:58 ` Jay Wineinger
@ 2003-02-07  7:40 ` Stef Coene
  2003-02-10  2:50 ` mingching.tiew
  5 siblings, 0 replies; 7+ messages in thread
From: Stef Coene @ 2003-02-07  7:40 UTC (permalink / raw)
  To: lartc

On Thursday 06 February 2003 21:41, Esteban Ribicic wrote:
> Another way may be using iptables accounting..for example:
>
> iptables -N udp-out
> iptables -A udp-out -j accept
>
> iptables -N udp-in
> iptables -A udp-in -j accept
>
> iptables -A input -p udp -j udp-in
> iptables -A output -p udp -j udp-out
>
> you can see this with:
> iptables -L -n -v -x
>
> ..i have some perl scripts to show that in graphs (rrdtool, gnuplot,
> etc)...
I also have some scripts.  They are integrated in a bigger set of scripts.  
You can download it from www.docum.org on the gui page.  
If you are interested in the rrd scripts, you need the get_snmp.pl : it 
updates the rrd files and the tcrrd.pl script : it generates the graphics on 
the fly in a web browser.  The get_snmp.pl creates also a html page to view 
the graph.  Maybe you can use these scripts as an example to create your own.
I started with the larrd extension for BigBrother (bb4.com).  I used the 
larrd.pl script as an example to create my own set of scripts.  Once you know 
how it works, it's easy to graph whatever you want.


Stef

-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [LARTC] Measuring throughput
  2003-02-06 18:29 [LARTC] Measuring throughput Kenneth Porter
                   ` (4 preceding siblings ...)
  2003-02-07  7:40 ` Stef Coene
@ 2003-02-10  2:50 ` mingching.tiew
  5 siblings, 0 replies; 7+ messages in thread
From: mingching.tiew @ 2003-02-10  2:50 UTC (permalink / raw)
  To: lartc

In the context of collecting stats, is there any difference between these
two ?

        iptables -A udp-out

and

      iptables -A udp-out -j RETURN

There is no mentioned about how to jump from existing
built-in/or predefined chains, I supposed it is something
like this  ?

       iptables -I FORWARD -j udp-out -p xxx -i xxx -o xxx --sport
xxx --dport xxx ....and so on

Insert is used here so that it get invoked before being handled by other
rules in the chain and
RETURN is used in the user defined chain so that existing firewall rules are
not disrupted.
Any comments ?

Rgds.
----- Original Message -----
From: "Patrik Hildingsson" <ph@kurd.nu>
To: <LARTC@mailman.ds9a.nl>
Sent: Friday, February 07, 2003 7:56 AM
Subject: Re: [LARTC] Measuring throughput


> > iptables -N udp-out
> > iptables -A udp-out -j accept
>
> Unless you really want to accept the packets, leave -j ACCEPT out (assuing
you have a rule that accepts the traffic later or your default policy is set
to ACCEPT). The packet and bytecounters will still increase.
>



_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-02-10  2:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-06 18:29 [LARTC] Measuring throughput Kenneth Porter
2003-02-06 19:04 ` Patrick Nehls
2003-02-06 20:41 ` Esteban Ribicic
2003-02-06 23:56 ` Patrik Hildingsson
2003-02-06 23:58 ` Jay Wineinger
2003-02-07  7:40 ` Stef Coene
2003-02-10  2:50 ` mingching.tiew

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.