Hi! I have a question, pcap_next_ex() can only get one ethernet packet at a call. Is there other way that I can read more than one packet from the user buffer (or kernel buffer) at one call ? I think maybe that would decrease the packet loss.
Thank you. 2010/8/7 yulou liu <[email protected]> > 1. Maybe I didn't make it clear .I don't just want to count , I want to > save the data to disk(ramdisk ) too . At the rate of 614Mbps, recording > data lasts about 2 minutes. But I found it began to have packets loss > sometimes ,even I just count the packets number. > > 2. All the packets from the fpga is 1514, I made the minitocopy as 8 > kytes, kernel buffer and user buffer both as 32MB. > > 3. There is still have tcp/ip bound to the netcard , it is recommended to > disable it? I will have a try. > > Thank you. > > > 在 2010-8-7,1:45,Gianluca Varenni <[email protected]> 写到: > > I'm not 100% sure what the performance problem has to do with the > live_dump feature. At those traffic rates you definitely don't want to dump > all the packets to disk. If you are just interested in counting the packets, > I would use the statistical mode of WinPcap to just count the packets. > Follow the sample Examples-remote\tcptop for that. > > Having said, at those rates there is no guarantee that WinPcap will be able > to keep up (especially if the packets are small). What is the average packet > size that you are analyzing? Did you disable all the bound protocols from > the network card used for the capture? > > Have a nice day > GV > > > > *From:* yulou liu <[email protected]> > *Sent:* Friday, August 06, 2010 10:14 AM > *To:* [email protected] > *Subject:* Re: [Winpcap-users] does the winpcap version 4.1.2 > supportthekernelDump feature? > > yes,i don't want to use an old version either.but there has been a > problem that I can't resolve . I made a capture program to collecte datas > which are sent from an fpga . There are several receive threads in the > program, each of threads accesses a global netcard port in tern. In order to > verify the performace ,it just do the least thing In the receive thread---it > just count the amount of Ethernet frames that it receive. But when the fpga > sending rate increases,especially above 500Mbps, it sometimes loss packets. > My question is, is it possible to totally avoid packets loss by optimism the > code? I want to collect datas on the speed 614Mbps without packet loss. > My workstations features with 2 Xeon CPU (each has 4core), 1 G onboard > netcard. > > Thanks a lot! > > > 在 2010-8-6,23:58,Gianluca Varenni <[email protected]> 写到: > > I would definitely avoid using an old version of WinPcap (like > 3.0alpha2). A huge number of bugs have been fixed since that release, > including critical bugs in the driver that could cause OS crashes. > > Have a nice day > GV > > *From:* yulou liu <[email protected]> > *Sent:* Thursday, August 05, 2010 7:22 PM > *To:* <[email protected]>[email protected] > *Subject:* Re: [Winpcap-users] does the winpcap version 4.1.2 support > thekernelDump feature? > > > > thanks a lot. > > I have another question. > Is there any possible that I could use the live_dump feature if I install > the older version of winpcap ? > > the following was what I just tried this morning: > > 1. install the 3.0alpha2-WinPcap.exe > 2. download the "3.0beta-wpdpack.zip" file and unzip , and config > VC6 to refer to the lib , include's directions . > > Compile the project which uses pcap_live_dump(). It was successully > compiled . > But when I run the .exe file , it can't find the netcard interfaces. > > Please tell me what mistakes did I make ? > > Thank you. > > > 在 2010-8-6,0:45,Gianluca Varenni < <[email protected]> > [email protected]> 写到: > > The live_dump feature has been disabled several years ago (because of > other changes in the driver) and no one has worked to support it again. At > the moment in order to dump to disk you need to use the standard > dump-to-disk mechanism shown in sample "savedump" in the WinPcap developer's > pack. > > Have a nice day. > > *From:* yulou liu <[email protected]> > *Sent:* Thursday, August 05, 2010 9:32 AM > *To:* <[email protected]> <[email protected]> > [email protected] > *Subject:* [Winpcap-users] does the winpcap version 4.1.2 support the > kernelDump feature? > > I'm working on a project , that I want to dump packets to the disk . > I think the pcap_live_dump() maybe could work in the way I want. > but it seems the pcap_live_dump() is not supported in the new version of > winpcap. > is it true ?? > > thank you. > > ------------------------------ > > _______________________________________________ > Winpcap-users mailing list > <[email protected]> <[email protected]> > [email protected] > <https://www.winpcap.org/mailman/listinfo/winpcap-users><https://www.winpcap.org/mailman/listinfo/winpcap-users> > https://www.winpcap.org/mailman/listinfo/winpcap-users > > _______________________________________________ > Winpcap-users mailing list > <[email protected]>[email protected] > <https://www.winpcap.org/mailman/listinfo/winpcap-users> > https://www.winpcap.org/mailman/listinfo/winpcap-users > > ------------------------------ > > _______________________________________________ > Winpcap-users mailing list > [email protected] > https://www.winpcap.org/mailman/listinfo/winpcap-users > > _______________________________________________ > Winpcap-users mailing list > [email protected] > https://www.winpcap.org/mailman/listinfo/winpcap-users > > ------------------------------ > > _______________________________________________ > Winpcap-users mailing list > [email protected] > https://www.winpcap.org/mailman/listinfo/winpcap-users > > _______________________________________________ > Winpcap-users mailing list > [email protected] > https://www.winpcap.org/mailman/listinfo/winpcap-users > >
_______________________________________________ Winpcap-users mailing list [email protected] https://www.winpcap.org/mailman/listinfo/winpcap-users
