Networking Forums

Networking Forums > Computer Networking > Linux Networking > measure throughput?

Reply
Thread Tools Display Modes

measure throughput?

 
 
linuxnooby
Guest
Posts: n/a

 
      03-30-2005, 04:05 AM
Hi

I have a linux firewall. I would like to measure how much data (all
data icmp tcp udp) is passing through this machine.

what i want to know is my internet uploads and downloads. Can any one
reccomend software that can do this on the linux box??

cheers David
 
Reply With Quote
 
 
 
 
Tauno Voipio
Guest
Posts: n/a

 
      03-30-2005, 06:48 AM
linuxnooby wrote:
> Hi
>
> I have a linux firewall. I would like to measure how much data (all
> data icmp tcp udp) is passing through this machine.
>
> what i want to know is my internet uploads and downloads. Can any one
> reccomend software that can do this on the linux box??
>
> cheers David


Have a look at ntop.

--

Tauno Voipio
tauno voipio (at) iki fi

 
Reply With Quote
 
Jose Maria Lopez Hernandez
Guest
Posts: n/a

 
      03-30-2005, 10:14 AM
linuxnooby wrote:
> Hi
>
> I have a linux firewall. I would like to measure how much data (all
> data icmp tcp udp) is passing through this machine.


If you want to meter the TCP packets, for example, you can create
a new chain called TCPMETER and send all the data to that chain,
then in the chain you just add a single rule with an unconditional
RETURN. You just read the counters for that rule and you are done.

> what i want to know is my internet uploads and downloads. Can any one
> reccomend software that can do this on the linux box??
>
> cheers David


Regards.

--

Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
(E-Mail Removed)
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"
 
Reply With Quote
 
ray
Guest
Posts: n/a

 
      03-30-2005, 04:15 PM
On Tue, 29 Mar 2005 20:05:08 -0800, linuxnooby wrote:

> Hi
>
> I have a linux firewall. I would like to measure how much data (all
> data icmp tcp udp) is passing through this machine.
>
> what i want to know is my internet uploads and downloads. Can any one
> reccomend software that can do this on the linux box??
>
> cheers David


I'm partial to xosview for measuring instantaneous rates. You can use
several online tools to measure average throughput - one is at
dslreports.com.

 
Reply With Quote
 
Christian Reiter
Guest
Posts: n/a

 
      03-30-2005, 04:15 PM
Am 29 Mar 2005 20:05:08 -0800 schrieb linuxnooby:

> what i want to know is my internet uploads and downloads. Can any one
> reccomend software that can do this on the linux box??


You could use http://netacct-mysql.gabrovo.com/

chris

--
Christian Reiter
(E-Mail Removed)
 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      03-30-2005, 08:06 PM
In comp.os.linux.networking linuxnooby <(E-Mail Removed)>:
> Hi


> I have a linux firewall. I would like to measure how much data (all
> data icmp tcp udp) is passing through this machine.


> what i want to know is my internet uploads and downloads. Can any one
> reccomend software that can do this on the linux box??


Personally the one I like most, from some xterm:

sudo iptraf

--
Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94)
mail: echo (E-Mail Removed) | perl -pe 'y/a-z/n-za-m/'
#bofh excuse 371: Incorrectly configured static routes on
the corerouters.
 
Reply With Quote
 
linuxnooby
Guest
Posts: n/a

 
      03-31-2005, 02:15 AM
Thanks Jose

what does this look like (assuming eth0 is outside interface)??
also how do i view the counters??


iptables -N DOWNLOADS
iptables -A INPUT -i eth0 -j DOWNLOADS
iptables -A FORWARD -i eth0 -j DOWNLOADS
iptables -A DOWNLOADS -j RETURN

iptables -N UPLOADS
iptables -A OUTPUT -o eth0 -j UPLOADS
iptables -A FORWARD -0 eth0 -j UPLOADS
iptables -A UPLOADS -j RETURN

thanks
Dave



Jose Maria Lopez Hernandez <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> linuxnooby wrote:
> > Hi
> >
> > I have a linux firewall. I would like to measure how much data (all
> > data icmp tcp udp) is passing through this machine.

>
> If you want to meter the TCP packets, for example, you can create
> a new chain called TCPMETER and send all the data to that chain,
> then in the chain you just add a single rule with an unconditional
> RETURN. You just read the counters for that rule and you are done.
>
> > what i want to know is my internet uploads and downloads. Can any one
> > reccomend software that can do this on the linux box??
> >
> > cheers David

>
> Regards.
>
> --
>
> Jose Maria Lopez Hernandez
> Director Tecnico de bgSEC
> (E-Mail Removed)
> bgSEC Seguridad y Consultoria de Sistemas Informaticos
> http://www.bgsec.com
> ESPAÑA
>
> The only people for me are the mad ones -- the ones who are mad to live,
> mad to talk, mad to be saved, desirous of everything at the same time,
> the ones who never yawn or say a commonplace thing, but burn, burn, burn
> like fabulous yellow Roman candles.
> -- Jack Kerouac, "On the Road"

 
Reply With Quote
 
Jose Maria Lopez Hernandez
Guest
Posts: n/a

 
      03-31-2005, 09:00 AM
linuxnooby wrote:
> Thanks Jose
>
> what does this look like (assuming eth0 is outside interface)??
> also how do i view the counters??
>
>
> iptables -N DOWNLOADS
> iptables -A INPUT -i eth0 -j DOWNLOADS
> iptables -A FORWARD -i eth0 -j DOWNLOADS
> iptables -A DOWNLOADS -j RETURN
>
> iptables -N UPLOADS
> iptables -A OUTPUT -o eth0 -j UPLOADS
> iptables -A FORWARD -0 eth0 -j UPLOADS
> iptables -A UPLOADS -j RETURN


Yes, that's what I do. Then you can use iptables -L UPLOADS -xvn
to get the counters and you can use bash or perl to extract the
counters from the output of iptables.

If you are gonna use a lot of this kind of chains and you want
to check a lot of counters you better use a C program using
libiptc to check the counters, or it will be very slow.

> thanks
> Dave


Regards.

--

Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
(E-Mail Removed)
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA

The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"
 
Reply With Quote
 
linuxnooby
Guest
Posts: n/a

 
      03-31-2005, 11:22 PM
Thanks
>
> Yes, that's what I do. Then you can use iptables -L UPLOADS -xvn
> to get the counters and you can use bash or perl to extract the
> counters from the output of iptables.
>
> If you are gonna use a lot of this kind of chains and you want
> to check a lot of counters you better use a C program using
> libiptc to check the counters, or it will be very slow.
>
> > thanks
> > Dave

>
> Regards.
>
> --
>
> Jose Maria Lopez Hernandez
> Director Tecnico de bgSEC
> (E-Mail Removed)
> bgSEC Seguridad y Consultoria de Sistemas Informaticos
> http://www.bgsec.com
> ESPAÑA
>
> The only people for me are the mad ones -- the ones who are mad to live,
> mad to talk, mad to be saved, desirous of everything at the same time,
> the ones who never yawn or say a commonplace thing, but burn, burn, burn
> like fabulous yellow Roman candles.
> -- Jack Kerouac, "On the Road"

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
UTM: how to measure speed, throughput and efficiency in firewalls? FB Windows Networking 0 08-20-2009 05:10 PM
how to measure ? prototype_nsx Wireless Internet 3 08-26-2007 03:34 AM
Measure Throughput Between Subnets Andrew Hayes Windows Networking 1 03-15-2006 01:19 PM
measure bandwidth used ? charly Linux Networking 2 01-23-2004 07:45 AM
How to measure total bytes throughput? Tiny Tim Broadband 9 10-05-2003 04:32 PM



1 2 3 4 5 6 7 8 9 10 11