LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-19-2010, 10:08 PM   #1
hjazz6
Member
 
Registered: Jan 2009
Posts: 36

Rep: Reputation: 0
Packet drop measured by ethtool, tcpdump and ifconfig


Hi all,

I have a question regarding packet drops.

I am running a test to determine when packet drops occur. I'm using a Spirent TestCenter through a switch (necessary to aggregate Ethernet traffic from 5 ports to one optical link) to a server using a Myricom card.

While running my test, if the input rate is below a certain value, ethtool does not report any drop (except dropped_multicast_filtered which is incrementing at a very slow rate). However, tcpdump reports X number of packets "dropped by kernel". Then if I increase the input rate, ethtool reports drops but "ifconfig eth2" does not. In fact, ifconfig doesn't seem to report any packet drops at all. Do they all measure packet drops at different "levels", i.e. ethtool at the NIC level, tcpdump at the kernel level etc?

And am I right to say that in the journey of an incoming packet, the NIC level is the "so-called" first level, then the kernel, then the user application? So any packet drop is likely to happen first at the NIC, then the kernel, then the user application? So if there is no packet drop at the NIC, but packet drop at the kernel, then the bottleneck is not at the NIC?

Thank you.

Regards,
Rayne
 
Old 05-20-2010, 09:19 PM   #2
LVsFINEST
Member
 
Registered: Aug 2006
Posts: 99

Rep: Reputation: 21
I think the tcpdump error is specific to the application and is not related to network traffic flows. All tcpdump is saying is "there's too many packets for me to decode" and has no bearing on your FTP download for example. As for the ifconfig and ethtool ouputs, I'm not exactly sure. It appears that ifconfig pulls stats from /proc/net/dev whereas ethtool queries the hardware (NIC) directly. From what I've found, the frequency in which the /proc/net/dev file gets updated can cause applications (such as ifconfig) to misinterpret the data.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tcpdump shows packages even if iptables policy is set to DROP paliga Linux - Networking 7 06-05-2011 11:37 AM
Want to know method wireshark or tcpdump to capture packet? haxpor Programming 1 04-12-2007 01:08 AM
Using tcpdump to find out the TTL of a packet going outside my box Menestrel Linux - Networking 4 01-20-2006 11:03 AM
determine tcpdump packet loss Tiago Sousa Linux - Networking 1 12-16-2005 02:27 AM
determine tcpdump packet loss Tiago Sousa Linux - Newbie 1 12-15-2005 11:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration