I hardly believe that this is a winpcap performnce problem, with a CPU load
of only 5%. The driver looses packets only if:
- the CPU is very busy servicing interrupts, so it is not possible to
transfer the packets from the network adapter. This usually happens for high
transfer rates (over 50-100K packets per second, depending on the machine),
and you will see a CPU load around 100%. The remedy to this problem is
buying a faster machine, or writing a better capture driver. In the latter
case, let me know the results. ;-)
- the application is very slow, therefore the kernel buffer is emptied very
rarely. In this case, increasing the size of the buffer with pcap_setbuff()
or PacketSetBuff() can be helpful.

I think that your problem can be the second one.

Loris


----- Original Message -----
From: "Fr�d�ric PLET" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 19, 2002 11:38 AM
Subject: [WinPcap-users] performance problem


Hi,

I work on a software which has to build a transparent bridge between two
network cards (NDIS)

I manage to do it but i have a big performance problem with streaming. When
I look streaming video with a computer connected to the bridge it is very
bad ???

With html pages it OK, but sometimes with the microsoft network it seems to
not work correctly ??

My soft has 1 thread only to read and write on the network cards and the CPU
load is not high ( an average of only 5%)

Does this problem come from the driver (perhaps the buffer), from the lib.

Thanks in advance

*frp*


Reply via email to