<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7600.16625"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT face=Calibri>Q1: tough question to answer, as it depends on a number
of factors. What is the average packet size? Are you just counting the
packets, or dumping them to disk/DB/...? Do you see packet drops in the
pcap_stats?</FONT></DIV>
<DIV><FONT face=Calibri>Q2: I will need to run some tests on this. Do you
have some minimal sample code that shows the issue?</FONT></DIV>
<DIV><FONT face=Calibri>Q3: Yes, *if* the NIC (and NIC driver) are not dropping
packets themselves. </FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>Did you disable any protocol bound to the NIC where you
receive all these packets?</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri>Have a nice day</FONT></DIV>
<DIV><FONT face=Calibri>GV</FONT></DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV><FONT face=Calibri></FONT> </DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV><BR></DIV>
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=lyulou@gmail.com
href="mailto:lyulou@gmail.com">yulou liu</A> </DIV>
<DIV><B>Sent:</B> Wednesday, August 25, 2010 11:08 AM</DIV>
<DIV><B>To:</B> <A title=winpcap-users@winpcap.org
href="mailto:winpcap-users@winpcap.org">winpcap</A> </DIV>
<DIV><B>Subject:</B> [Winpcap-users] About the packets loss , what is the
bottleneck ?</DIV></DIV></DIV>
<DIV><BR></DIV>
<P>I'm using winpcap to capture datas from FPGA board via 1G Ethernet
connection(directly connected).<BR>the FPGA is configed to send data at a
special rate. With the fpga sending rate increases,especially above
500Mbps, it sometimes loss packets. </P>
<P>Q1: Is it possible to totally avoid packets loss by optimism the
code? I want to collect datas at speed 614Mbps without packet loss
(collecting all datas </P>
<P>last about 1 minutes). My workstations features with 2 Xeon CPU (each has
4core), DDR3 SDRAM, 1 G onboard netcard. Which part is the most
probably bottleneck ?</P>
<P>Q2: As a test , I found the pcap_next_ex() can't get any packets
when the user buffer is set over 64 MB, what does it happen ?</P>
<P>Q3: if the Kernel buffer's size is 16MB , then the first 16Mb packets from
fpga won't be lost, so , if I set the kernel buffer as 128MB ,
then at least </P>
<P>the first coming 128MB data from FPGA won't be lost either ? but I
found When I set the kernel buffer bigger than 100 MB, the packets drops is
getting </P>
<P>worse. </P>
<P><BR>Thanks a lot!<BR></P>
<P>
<HR>
<P></P>_______________________________________________<BR>Winpcap-users mailing
list<BR>Winpcap-users@winpcap.org<BR>https://www.winpcap.org/mailman/listinfo/winpcap-users<BR></BODY></HTML>