[cod] Bandwidth measurement

Pete biovore at gmail.com
Wed Jan 7 19:29:23 EST 2009


iptraf and bwm-ng and iptables can be used to monitor bandwidth on linux
systems.

bwm-ng is a cmd line tool thats a bit like top.  Will show per interface
statistics.

You can also you iptables to LOG packets to & from a ip:port on your local
machine.
# To log packets to and from a COD server on 10.0.0.1:28960 try this:
iptables -A OUTPUT -p udp --sport 28960 -s 10.0.0.1 -j LOG
iptables -A INPUT -p udp --dport 28960 -d 10.0.0.1 -j LOG

iptables --list -v -n  will show total system bandwidth moved though the
linux network stack for the different chains.
If you look at the first and second column of this display you see number of
packets and bytes tagged by that rule.
use iptables -Z INPUT & iptables -Z OUTPUT to zero out all the counters.

The other thing you can do is use tcpdump to record network traffic to a
file then use ethereal/wireshark to figure out whats going on.

I assume 25Kb/s per player for COD4/5, Depends on settings.

On Wed, Jan 7, 2009 at 3:58 PM, Walker <walkertje at gmail.com> wrote:

> Hi all,
>
> I am not an ISP, just someone with a dedicated server for our clan.
>
> I would like to know if it is possible to measure the actual bandwidth
> being used by (for instance) 1 gameserver. (we are running more). I'm using
> CentOS 5. Are there any tools out there doing this?
>
> Greetz,
> Walker
>



-- 
Peter Fetterer
KB3GTN

The force is like duct tape.
It has a light side and a darkside
and binds the universe together.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/cod/attachments/20090107/3aa2e8f6/attachment.htm>


More information about the Cod mailing list