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 08-09-2010, 10:33 AM   #1
sarc
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Rep: Reputation: 0
tcpdump missing packets


I currently have 2 Debian 5.0 (Lenny) kernal 2.6.26 machines. One is a sender for replaying network traffic and one is a reciever. Both of the machines have Broadcom Netxtreme II 57710 10gbe NICs installed. I have installed tcpdump 4.1.1 (libpcap 1.1.1) on the receiver, and I have installed tcpreplay on the sender. I am attempting to replay traffic from the sender directly to the receiver via the 2 10gbe NICs and a cat6 cable. The scenario seems to execute just fine, but for some reason tcpdump is not accounting for all of the packets that are sent. I am using

tcpdump -i eth1 -w dump.pcap

to capture and

tcpreplay -i eth1 --mbps=100 --limit=500000 large_capture.pcap

to send. Below are the results form tcpdump after the send completes:

tcpdump: listening on eth1, link-type EN10MB (Ethernet)
401215 packets captured
401215 packets received by filter
0 packets dropped by kernel

I am clearing the NIC statistics before I begin. Below are the results from (ifconfig and ethtool -s) after the capture has completed:

Sender (Replay Machine):

ethtool results:

tx_ucast_packets: 498164
tx_mcast_packets: 833
tx_bcast_packets: 1009

ifconfig results:

eth1 Link encap:Ethernet HWaddr 00:10:18:30:fd:a0
inet6 addr: fe80::210:18ff:fe30:fda0/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:500006 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:385407124 (367.5 MiB)
Interrupt:38 Memory:c7800000-c7ffffff


Receiver (Tcpdump Machine):

ethtool results:

rx_ucast_packets: 498164
rx_mcast_packets: 833
rx_bcast_packets: 1009

ifconfig results:

eth1 Link encap:Ethernet HWaddr 00:10:18:64:ff:ea
inet6 addr: fe80::210:18ff:fe64:ffea/64 Scope:Link
UP BROADCAST RUNNING PROMISC MULTICAST MTU:1500 Metric:1
RX packets:500006 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:385407124 (367.5 MiB) TX bytes:344 (344.0 B)
Interrupt:38 Memory:cf800000-cfffffff

I don't understand these results. What happened to the packets that tcpdump did not account for? Are they being dropped by libpcap? If so, is there a way to remedy this problem? I would think that tcpdump would be capable of capturing traffic at 100mbps on 10gbe NICs.
 
Old 08-12-2010, 02:30 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
Do you try adding a filter to reduce the number of buffer packet instead of wild opening?
 
Old 08-12-2010, 10:54 PM   #3
curtismock
LQ Newbie
 
Registered: Aug 2010
Posts: 3

Rep: Reputation: 0
tcpdump missing packets

Well, it helps, but the problem is basicaly about the packet queue, disabling DNS reverse only because it shortens the time, packet needs to stay in the queue. So in fact it is just a way around, that does not help in all occasions too much.


________________________________________________________________________
Want to get-on Google's first page and loads of traffic to your website? Hire a SEO Specialist from Ocean Groups seo pecialist
 
Old 08-13-2010, 08:26 AM   #4
sarc
LQ Newbie
 
Registered: Aug 2010
Posts: 2

Original Poster
Rep: Reputation: 0
I disabled the rx-checksum offloading parameter on the NIC and this stopped the packet loss.
 
  


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 decode Gzip packets mattseanbachman Linux - Newbie 2 03-12-2010 02:06 AM
capture 100 packets tcpdump Fond_of_Opensource Linux - Networking 3 06-14-2007 02:52 AM
tcpdump does not capture all packets logicalfuzz Linux - Networking 1 03-19-2007 12:47 PM
How to modify tcpdump packets? chinmays Linux - Security 3 09-24-2006 01:31 PM
tcpdump and dropped packets Blindsight Linux - Networking 5 07-14-2003 10:41 PM

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

All times are GMT -5. The time now is 06:56 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