tcpdump mailing list archives

Re: Libpcap speed problem


From: arif ugurel <arifugurel () gmail com>
Date: Mon, 11 Jan 2010 22:54:10 +0200

Hi,
I made  my code as simple as possible. Just open devices, read from one of
them and send it thru the other one and vice versa. May be the problem is
about some kind of loop. But i couldn't figured it out.
Any other ideas?

On Mon, Jan 11, 2010 at 10:05 PM, Aaron Turner <synfinatic () gmail com> wrote:

On Mon, Jan 11, 2010 at 12:41 AM, Arif UGUREL <arifugurel () gmail com>
wrote:
Hi all,
I'm using libpcap on OpenSuse 11.1. I have 2 interfaces ie. eth0 and
eth1. I'm trying to capture packets from eth0 and send them thru eth1.
I'm doing some logging operations before sending thru eth1. I developed
a simple application, when i deployed the box to our network, everything
is fine but after a while capture speed dramatically decreases and
starts to miss packets. I'm checking memory and CPU usage but everything
seems fine and total system memory is stable. I'm using an Intel board
with 1.6 Ghz atom CPU and 1 GB of RAM. I think my hardware is enough for
capturing 10Mbit network.
I'm confused about the speed decrease after some time. What do u think,
can it be the libpcap's internal problem, or my misuse.

Based on the info you've provided, I'm going to guess your code is the
problem.  I don't see this problem with tcpbridge which does the same
thing.


--
Aaron Turner
http://synfin.net/
http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix &
Windows
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
   -- Benjamin Franklin
"carpe diem quam minimum credula postero"
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.




-- 
M.Arif UGUREL
Software Engineer
BTT Bilgi Teknoloji Tasarım Ltd Şti
0 312 210 19 25
0 542 832 13 60
augurel () btt com tr
-
This is the tcpdump-workers list.
Visit https://cod.sandelman.ca/ to unsubscribe.


Current thread: