* Difference between device statistics from ifconfig and ip -s l l
@ 2007-10-17 9:27 Milan Kocian
2007-10-17 9:36 ` Patrick McHardy
0 siblings, 1 reply; 7+ messages in thread
From: Milan Kocian @ 2007-10-17 9:27 UTC (permalink / raw)
To: netdev
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
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Difference between device statistics from ifconfig and ip -s l l
2007-10-17 9:27 Difference between device statistics from ifconfig and ip -s l l Milan Kocian
@ 2007-10-17 9:36 ` Patrick McHardy
2007-10-17 10:13 ` Milan Kocian
0 siblings, 1 reply; 7+ messages in thread
From: Patrick McHardy @ 2007-10-17 9:36 UTC (permalink / raw)
To: Milan Kocian; +Cc: netdev
Milan Kocian wrote:
> 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)
ifconfig gets its data from /proc/net/dev, which adds up rx_errors
and rx_missed.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Difference between device statistics from ifconfig and ip -s l l
2007-10-17 9:36 ` Patrick McHardy
@ 2007-10-17 10:13 ` Milan Kocian
2007-10-17 10:35 ` Patrick McHardy
0 siblings, 1 reply; 7+ messages in thread
From: Milan Kocian @ 2007-10-17 10:13 UTC (permalink / raw)
To: Patrick McHardy; +Cc: netdev
On Wed, Oct 17, 2007 at 11:36:30AM +0200, Patrick McHardy wrote:
> Milan Kocian wrote:
>> 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)
>
>
> ifconfig gets its data from /proc/net/dev, which adds up rx_errors
> and rx_missed.
>
Adds up rx_errors and rx_missed and prints it as dropped ? Ok, ifconfig is
a little old. But why I don't see missed packets from RX errors detailed stats
(ip -s -s l l) in non-detailed stats as errors and see zero ?
regards,
--
Milan Kocian
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Difference between device statistics from ifconfig and ip -s l l
2007-10-17 10:13 ` Milan Kocian
@ 2007-10-17 10:35 ` Patrick McHardy
2007-10-17 11:29 ` Milan Kocian
0 siblings, 1 reply; 7+ messages in thread
From: Patrick McHardy @ 2007-10-17 10:35 UTC (permalink / raw)
To: Milan Kocian; +Cc: netdev
Milan Kocian wrote:
> On Wed, Oct 17, 2007 at 11:36:30AM +0200, Patrick McHardy wrote:
>
>> ifconfig gets its data from /proc/net/dev, which adds up rx_errors
>> and rx_missed.
>>
>
> Adds up rx_errors and rx_missed and prints it as dropped ? Ok, ifconfig is
> a little old. But why I don't see missed packets from RX errors detailed stats
> (ip -s -s l l) in non-detailed stats as errors and see zero ?
I meant to write "adds up rx_dropped and rx_missed".
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Difference between device statistics from ifconfig and ip -s l l
2007-10-17 10:35 ` Patrick McHardy
@ 2007-10-17 11:29 ` Milan Kocian
2007-10-17 12:01 ` jamal
0 siblings, 1 reply; 7+ messages in thread
From: Milan Kocian @ 2007-10-17 11:29 UTC (permalink / raw)
To: Patrick McHardy; +Cc: netdev
On Wed, Oct 17, 2007 at 12:35:43PM +0200, Patrick McHardy wrote:
> Milan Kocian wrote:
>> On Wed, Oct 17, 2007 at 11:36:30AM +0200, Patrick McHardy wrote:
>>
>>> ifconfig gets its data from /proc/net/dev, which adds up rx_errors
>>> and rx_missed.
>>>
>> Adds up rx_errors and rx_missed and prints it as dropped ? Ok, ifconfig is
>> a little old. But why I don't see missed packets from RX errors detailed
>> stats (ip -s -s l l) in non-detailed stats as errors and see zero ?
>
>
> I meant to write "adds up rx_dropped and rx_missed".
ok.
One probably stupid question: Why is not done similar sum in output of 'ip -s l l' ?
Imagine me :), I do 'ifconfig' and see dropped packets and then I do 'ip -s l l'
and see zeros. I stare on it like an idiot. Where is bug ? ifconfig ? ip ?
(man page of ip and 'ip -s -s l l' with missed packets stats saved me :).
IMHO I think that comparable outputs of both programs should be still the same.
thanks for reply.
regards,
--
Milan Kocian
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Difference between device statistics from ifconfig and ip -s l l
2007-10-17 11:29 ` Milan Kocian
@ 2007-10-17 12:01 ` jamal
2007-10-17 13:42 ` Milan Kocian
0 siblings, 1 reply; 7+ messages in thread
From: jamal @ 2007-10-17 12:01 UTC (permalink / raw)
To: Milan Kocian; +Cc: Patrick McHardy, netdev
On Wed, 2007-17-10 at 13:29 +0200, Milan Kocian wrote:
> On Wed, Oct 17, 2007 at 12:35:43PM +0200, Patrick McHardy wrote:
> > Milan Kocian wrote:
> >> On Wed, Oct 17, 2007 at 11:36:30AM +0200, Patrick McHardy wrote:
> >>
> >>> ifconfig gets its data from /proc/net/dev, which adds up rx_errors
> >>> and rx_missed.
> >>>
> >> Adds up rx_errors and rx_missed and prints it as dropped ? Ok, ifconfig is
> >> a little old. But why I don't see missed packets from RX errors detailed
> >> stats (ip -s -s l l) in non-detailed stats as errors and see zero ?
> >
> >
> > I meant to write "adds up rx_dropped and rx_missed".
>
> ok.
>
> One probably stupid question: Why is not done similar sum in output of 'ip -s l l' ?
"missed" is not really an error. It just means the driver was
overwhelmed and didnt even get the chance of seeing it whereas an error
is something the driver processed and saw a problem with it.
> Imagine me :), I do 'ifconfig' and see dropped packets and then I do 'ip -s l l'
> and see zeros. I stare on it like an idiot. Where is bug ? ifconfig ? ip ?
> (man page of ip and 'ip -s -s l l' with missed packets stats saved me :).
>
> IMHO I think that comparable outputs of both programs should be still the same.
I think ifconfig sums them up so the output formatting looks nice, but
ip is more accurate. These stats are from standard SNMP mibs (off top of
my head RFC1213 if it hasnt been obsoleted by something) - look at
InIFxxxx stats.
cheers,
jamal
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Difference between device statistics from ifconfig and ip -s l l
2007-10-17 12:01 ` jamal
@ 2007-10-17 13:42 ` Milan Kocian
0 siblings, 0 replies; 7+ messages in thread
From: Milan Kocian @ 2007-10-17 13:42 UTC (permalink / raw)
To: jamal; +Cc: Patrick McHardy, netdev
On Wed, Oct 17, 2007 at 08:01:38AM -0400, jamal wrote:
> >
> > One probably stupid question: Why is not done similar sum in output of 'ip -s l l' ?
>
> "missed" is not really an error. It just means the driver was
> overwhelmed and didnt even get the chance of seeing it whereas an error
> is something the driver processed and saw a problem with it.
>
Thanks for explanation. But if I understand well, the packet is lost anyway, isn't it ?
And when the packet is lost and I want to see all problems, I have to use detailed
(ip -s -s ) stats because non-detailed (ip -s ) stats may hide problems. True ?
If yes then using non-detailed stats lacks sense.
> > Imagine me :), I do 'ifconfig' and see dropped packets and then I do 'ip -s l l'
> > and see zeros. I stare on it like an idiot. Where is bug ? ifconfig ? ip ?
> > (man page of ip and 'ip -s -s l l' with missed packets stats saved me :).
> >
> > IMHO I think that comparable outputs of both programs should be still the same.
>
> I think ifconfig sums them up so the output formatting looks nice, but
> ip is more accurate. These stats are from standard SNMP mibs (off top of
> my head RFC1213 if it hasnt been obsoleted by something) - look at
> InIFxxxx stats.
>
I will try to look at. Thanks!
> cheers,
> jamal
>
regards,
--
Milan Kocian
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-10-17 13:43 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-17 9:27 Difference between device statistics from ifconfig and ip -s l l Milan Kocian
2007-10-17 9:36 ` 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
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).