<div dir="ltr">I&#39;ve tried with two different network cards in the 100Mbps mode because the camera is set-up to send at 100Mbps: <br><br>Marvell Yukon 88E8053 PCI-E Gigabit Ethernet.<br>VIA PCI 10/100Mb Fast Ethernet Adapter.<br>

<br>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)<br><br>As the code is ugly in the email format! I&#39;ve paste it on: <a href="http://utilitybase.com/paste/9118" target="_blank">http://utilitybase.com/paste/9118</a><br>
<br>Finally, the EHA32 tag you can find in my code correspond to the 32 last byte of the Ethernet Hardware Address (MAC Address)<br><br>Thanks for your help<br><br><br><div class="gmail_quote">2008/10/20 Zafer SAVAŞ <span dir="ltr">&lt;<a href="mailto:zsavas@aselsan.com.tr">zsavas@aselsan.com.tr</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The capture speed is highly dependent on your hardware and software.<br>
- What is your PC configuration?<br>
- What are you doing with the captured packets? Store them on a hard-drive? (Because storing them is a bottleneck for the speed)<br>
<br>
Good luck.<br>
<br>
Zafer SAVAŞ<br>
Aselsan Inc.<br>
<br>
________________________________<br>
<br>
Kimden: <a href="mailto:winpcap-users-bounces@winpcap.org">winpcap-users-bounces@winpcap.org</a> bu kişinin yerine: Benoit<br>
Gönderilmiş: Paz 19.10.2008 16:43<br>
Kime: <a href="mailto:winpcap-users@winpcap.org">winpcap-users@winpcap.org</a><br>
Konu: [Winpcap-users] Slow receiving speed (40Mbps), and packet loss.<br>
<br>
<br>
Hello,<br>
<br>
I&#39;m actually experimenting speed problem with the winpcap 4.0.1<br>
library. I&#39;m doing a software to control a Camera IP and to receive<br>
frames from this one.<br>
The transmission protocol is done at the MAC layer for the moment and<br>
is the following one:<br>
<br>
1. PC_MAC &nbsp; &nbsp;-&gt; CAM_MAC: Ask for a frame.<br>
2. CAM_MAC -&gt; PC_MAC &nbsp; : Send a frame header packet (64 bytes).<br>
3. CAM_MAC -&gt; PC_MAC &nbsp; : Send a frame block packet (~1500 bytes).<br>
 &nbsp; Repeat this operation 150 times until the whole image is<br>
transmitted, no ACK packet is used.<br>
4. CAM_MAC -&gt; PC_MAC &nbsp; &nbsp;: Send a &quot;frame has been sent &quot; packet (32 bytes)<br>
5. PC_MAC &nbsp; &nbsp;-&gt; CAM_MAC : Send a ACK packet (&quot;frame has been<br>
received&quot;) packet (32 bytes), and go back to step 1.<br>
<br>
Doing this transmission protocol the speed is limited at 40Mbps which<br>
is very slow for real time video stream.<br>
I&#39;ve tried to play with the timeout (pcap_open(...)) and with the size<br>
of the buffer (pcap_setbuff(...)) but the results are quite similar.<br>
To capture the packet I&#39;m using the pcap_next_ex().<br>
<br>
Finally If i do the same thing with two cameras: The rate is still<br>
40Mbps but I&#39;m loosing half of the packet. This mean for me that the<br>
bottleneck is my program in C++, but I don&#39;t know how to solve it...<br>
Maybe if someone has a good sample code with high speed transmission<br>
(~Gbps) it could be helpful to understand where my application failed.<br>
<br>
Thanks for your help<br>
<br>
--<br>
Benoit RAT<br>
<a href="http://www.neub.co.nr" target="_blank">www.neub.co.nr</a> &lt;<a href="http://www.neub.co.nr/" target="_blank">http://www.neub.co.nr/</a>&gt;<br>
<br>
<br>
######################################################################<br>
Dikkat:<br>
<br>
Bu elektronik posta mesaji kisisel ve ozeldir. Eger size<br>
gonderilmediyse lutfen gondericiyi bilgilendirip mesaji siliniz.<br>
Firmamiza gelen ve giden mesajlar virus taramasindan gecirilmekte,<br>
guvenlik nedeni ile kontrol edilerek saklanmaktadir. Mesajdaki<br>
gorusler ve bakis acisi gondericiye ait olup Aselsan A.S. resmi<br>
gorusu olmak zorunda degildir.<br>
<br>
######################################################################<br>
Attention:<br>
<br>
This e-mail message is privileged and confidential. If you are<br>
not the intended recipient please delete the message and notify<br>
the sender. E-mails to and from the company are monitored for<br>
operational reasons and in accordance with lawful business practices.<br>
Any views or opinions presented are solely those of the author and<br>
do not necessarily represent the views of the company.<br>
<br>
######################################################################<br>
<br>
_______________________________________________<br>
Winpcap-users mailing list<br>
<a href="mailto:Winpcap-users@winpcap.org">Winpcap-users@winpcap.org</a><br>
<a href="https://www.winpcap.org/mailman/listinfo/winpcap-users" target="_blank">https://www.winpcap.org/mailman/listinfo/winpcap-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Benoit RAT<br><a href="http://www.neub.co.nr">www.neub.co.nr</a><br>
</div>