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

Benoit benpaka.spam at gmail.com
Mon Oct 20 09:45:39 GMT 2008


I've tried with two different network cards in the 100Mbps mode because the
camera is set-up to send at 100Mbps:

Marvell Yukon 88E8053 PCI-E Gigabit Ethernet.
VIA PCI 10/100Mb Fast Ethernet Adapter.

When I reach the 40Mbps is doing nothing on the packet except counting them.
(If I put them in a buffer and display the frame it seems to slow down a
little bit at 38Mbps)

As the code is ugly in the email format! I've paste it on:
http://utilitybase.com/paste/9118

Finally, the EHA32 tag you can find in my code correspond to the 32 last
byte of the Ethernet Hardware Address (MAC Address)

Thanks for your help


2008/10/20 Zafer SAVAŞ <zsavas at aselsan.com.tr>

> 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.
>
> ######################################################################
>
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
>



-- 
Benoit RAT
www.neub.co.nr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20081020/21d95ab8/attachment.htm


More information about the Winpcap-users mailing list