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