netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Milan Kocian <milon@wq.cz>
To: netdev@vger.kernel.org
Subject: Difference between device statistics from ifconfig and ip -s l l
Date: Wed, 17 Oct 2007 11:27:00 +0200	[thread overview]
Message-ID: <20071017092659.GA16356@wq.cz> (raw)

hello,

see dropped packets, please:

sit:~# ifconfig eth0
eth0      Link encap:Ethernet  HWaddr 00:04:23:D6:D5:DE  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:522284892 errors:0 dropped:16800 overruns:0 frame:0
          TX packets:506064445 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1405350664 (1.3 GiB)  TX bytes:4082649020 (3.8 GiB)
          Base address:0xac00 Memory:ff6e0000-ff700000 

see via ip l l (here are no dropped packets):

sit:~# ip -s l l dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc htb qlen 1000
    link/ether 00:04:23:d6:d5:de brd ff:ff:ff:ff:ff:ff
    RX: bytes  packets  errors  dropped overrun mcast   
    2494988681 523755694 0       0       0       57458  
    TX: bytes  packets  errors  dropped carrier collsns 
    453184821  507470461 0       0       0       0      

but see more detailed stats (dropped packet are as missed in RX errors ?!):

sit:~# ip -s -s l l dev eth0
2: eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc htb qlen 1000
    link/ether 00:04:23:d6:d5:de brd ff:ff:ff:ff:ff:ff
    RX: bytes  packets  errors  dropped overrun mcast   
    2752159866 524110163 0       0       0       57485  
    RX errors: length  crc     frame   fifo    missed
               0        0       0       0       16800  
    TX: bytes  packets  errors  dropped carrier collsns 
    607359337  507807361 0       0       0       0      
    TX errors: aborted fifo    window  heartbeat
               0        0       0       0      

Is this bug or feature ? From my point of view is somewhere lost any sum.
Or is it driver dependent? Kernel 2.6.23.1 (in 2.6.20.20 is the same behavior), 
driver e1000. iproute2-ss070313; net-tools 1.60, ifconfig 1.42 (2001-04-13)
 
Regards,

-- 
Milan Kocian

             reply	other threads:[~2007-10-17  9:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-17  9:27 Milan Kocian [this message]
2007-10-17  9:36 ` Difference between device statistics from ifconfig and ip -s l l Patrick McHardy
2007-10-17 10:13   ` Milan Kocian
2007-10-17 10:35     ` Patrick McHardy
2007-10-17 11:29       ` Milan Kocian
2007-10-17 12:01         ` jamal
2007-10-17 13:42           ` Milan Kocian

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=20071017092659.GA16356@wq.cz \
    --to=milon@wq.cz \
    --cc=netdev@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).