YNT: [Winpcap-users] Slow receiving speed (40Mbps), and packet loss.

Zafer SAVAŞ zsavas at aselsan.com.tr
Mon Oct 20 06:04:11 GMT 2008


The capture speed is highly dependent on your hardware and software. 
- What is your PC configuration?
- What are you doing with the captured packets? Store them on a hard-drive? (Because storing them is a bottleneck for the speed)
 
Good luck.
 
Zafer SAVAŞ
Aselsan Inc.

________________________________

Kimden: winpcap-users-bounces at winpcap.org bu kişinin yerine: Benoit
Gönderilmiş: Paz 19.10.2008 16:43
Kime: winpcap-users at winpcap.org
Konu: [Winpcap-users] Slow receiving speed (40Mbps), and packet loss.


Hello,

I'm actually experimenting speed problem with the winpcap 4.0.1
library. I'm doing a software to control a Camera IP and to receive
frames from this one.
The transmission protocol is done at the MAC layer for the moment and
is the following one:

1. PC_MAC    -> CAM_MAC: Ask for a frame.
2. CAM_MAC -> PC_MAC   : Send a frame header packet (64 bytes).
3. CAM_MAC -> PC_MAC   : Send a frame block packet (~1500 bytes).
   Repeat this operation 150 times until the whole image is
transmitted, no ACK packet is used.
4. CAM_MAC -> PC_MAC    : Send a "frame has been sent " packet (32 bytes)
5. PC_MAC    -> CAM_MAC : Send a ACK packet ("frame has been
received") packet (32 bytes), and go back to step 1.

Doing this transmission protocol the speed is limited at 40Mbps which
is very slow for real time video stream.
I've tried to play with the timeout (pcap_open(...)) and with the size
of the buffer (pcap_setbuff(...)) but the results are quite similar.
To capture the packet I'm using the pcap_next_ex().

Finally If i do the same thing with two cameras: The rate is still
40Mbps but I'm loosing half of the packet. This mean for me that the
bottleneck is my program in C++, but I don't know how to solve it...
Maybe if someone has a good sample code with high speed transmission
(~Gbps) it could be helpful to understand where my application failed.

Thanks for your help

--
Benoit RAT
www.neub.co.nr <http://www.neub.co.nr/> 


######################################################################
Dikkat:

Bu elektronik posta mesaji kisisel ve ozeldir. Eger size 
gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz. 
Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmekte, 
guvenlik nedeni ile kontrol edilerek saklanmaktadir. Mesajdaki 
gorusler ve bakis acisi gondericiye ait olup Aselsan A.S. resmi 
gorusu olmak zorunda degildir.

######################################################################
Attention: 

This e-mail message is privileged and confidential. If you are 
not the intended recipient please delete the message and notify 
the sender. E-mails to and from the company are monitored for 
operational reasons and in accordance with lawful business practices. 
Any views or opinions presented are solely those of the author and 
do not necessarily represent the views of the company.

######################################################################



More information about the Winpcap-users mailing list