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/
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/
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/
> iptables -N udp-out > iptables -A udp-out -j acceptUnless 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 acceptSame 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 -xiptables -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/
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 Idon''t> know whether that''s inbound, outbound, or the sum of both. Is thereanother> 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/
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/
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 (assuingyou 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/
I am facing problem with running rshaper-2.01 with Linux 8.0 version (redhat). It used to run fine with Linux7.1 version. Is there any update on rshaper available for 8.0 Thanks Tushar _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Saturday 19 April 2003 13:42, Tushar Gupta wrote:> I am facing problem with running rshaper-2.01 with Linux 8.0 version > (redhat). > It used to run fine with Linux7.1 version. > > Is there any update on rshaper available for 8.0I don''t know. But if you want to shape traffic, you better use the tc command line to configure a htb or cbq setup. This is more powerfull then rshaper. More info about tc can be found on www.lartc.org and www.docum.org. 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/
I have looked at tc and information on www.docum.org earlier too. I have a feeling that it is going to take a lot of time before I become comfortable with tc/htb/cbq, and understand all its nuiances. I am looking forward to some quick and maybe not so good solution as directly working with tc. With rshaper I just needed to specify IP and amount of max bandwidth I want to allocate to the host, and I am up and running. Tushar -----Original Message----- From: lartc-admin@mailman.ds9a.nl [mailto:lartc-admin@mailman.ds9a.nl] On Behalf Of Stef Coene Sent: Saturday, April 19, 2003 5:36 PM To: Tushar Gupta; lartc@mailman.ds9a.nl Subject: Re: [LARTC] Rshaper-2.01 issue with Linux8.0 On Saturday 19 April 2003 13:42, Tushar Gupta wrote:> I am facing problem with running rshaper-2.01 with Linux 8.0 version > (redhat). It used to run fine with Linux7.1 version. > > Is there any update on rshaper available for 8.0I don''t know. But if you want to shape traffic, you better use the tc command line to configure a htb or cbq setup. This is more powerfull then rshaper. More info about tc can be found on www.lartc.org and www.docum.org. 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/ _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
On Sunday 20 April 2003 12:41, Tushar Gupta wrote:> I have looked at tc and information on www.docum.org earlier too. I have > a feeling that it is going to take a lot of time before I become > comfortable with tc/htb/cbq, and understand all its nuiances. > > I am looking forward to some quick and maybe not so good solution as > directly working with tc. With rshaper I just needed to specify IP and > amount of max bandwidth I want to allocate to the host, and I am up and > running.If you want to do only that, that''s not soo difficult. Using htb is easy if you copy a working script. Of course, you need to read some docs to understand how it works. But it''s not that difficult if you don''t care about the fine tuning options. 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/
On Sunday 20 April 2003 12:41, Tushar Gupta wrote:> I have looked at tc and information on www.docum.org earlier too. I have > a feeling that it is going to take a lot of time before I become > comfortable with tc/htb/cbq, and understand all its nuiances. > > I am looking forward to some quick and maybe not so good solution as > directly working with tc. With rshaper I just needed to specify IP and > amount of max bandwidth I want to allocate to the host, and I am up and > running.Something else. RedHat is not Linux. And Linux is not RedHat. So it''s not Linux8.0, but RedHat 8.0. But it''s the linux kernel 2.4.19 or so. So if you need some help, plz specify the output of "uname -a" and your distribution like ReadHat 8.0. 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/