Linux Netfilter discussions
 help / color / mirror / Atom feed
From: John Holman <jaholman@eastax.com>
To: netfilter@lists.samba.org
Subject: Accuracy of packet counting?
Date: Fri, 17 May 2002 08:32:26 +1000	[thread overview]
Message-ID: <3CE4337A.85D8CAE1@eastax.com> (raw)

I would be grateful for expert opinion on a simple matter:

I am trying to reconcile the traffic charges of my ISP with my own
counts.  
I have a plain 1500/256 bridged ADSL connection (i.e. no connection
software or overhead) to eth0 on a lightly-loaded web/mail server.

My traffic counter is simply this:

#iptables -L -n -v -x
Chain INPUT (policy ACCEPT 21095 packets, 2640498 bytes)
    pkts      bytes target     prot opt in     out    
source               destination         
    9639  1817610 ACCOUNTING  all  --  eth0   *      
0.0.0.0/0            0.0.0.0/0          

Chain FORWARD (policy ACCEPT 629 packets, 262264 bytes)
    pkts      bytes target     prot opt in     out    
source               destination         

Chain OUTPUT (policy ACCEPT 20654 packets, 5383330 bytes)
    pkts      bytes target     prot opt in     out    
source               destination         
    9957  4391462 ACCOUNTING  all  --  *      eth0   
0.0.0.0/0            0.0.0.0/0          

Chain ACCOUNTING (2 references)
    pkts      bytes target     prot opt in     out    
source               destination         
   19596  6209072 RETURN     all  --  *      *      
0.0.0.0/0            0.0.0.0/0

My question:

Is there ANY reason to suppose that the ACCOUNTING total is not an
accurate count of all IP traffic into and out of eth0?

(The machine is a dual-Pentium Pro Linux box, daily traffic 20-30 MB
average, ifconfig never reports any dropped packets).

TIA, 

-- 
Best regards,
John Holman
Eastax WWW
Melbourne, Australia


             reply	other threads:[~2002-05-16 22:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-16 22:32 John Holman [this message]
     [not found] <3CE4352B.36C46B79@john.holman.name>
     [not found] ` <20020525120020.O30908@sunbeam.de.gnumonks.org>
2002-05-25 22:16   ` Accuracy of packet counting? John Holman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CE4337A.85D8CAE1@eastax.com \
    --to=jaholman@eastax.com \
    --cc=mail@john.holman.name \
    --cc=netfilter@lists.samba.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox