Are you doing TCP or UDP?  UDP would be bad for this.
What size packets are you generating?  Smaller packets have a lot more overhead.
Are you sure your data generator is actually sending all packets?
What kind of network card do you have?
What kind of machine do you have (CPU/Mhz)?
What kind of switch are you on?


Michael D. Black
Senior Scientist
Analytics, Production and Services
Advanced GEOINT Systems
Northrop Grumman Information Systems

________________________________
From: [email protected] [[email protected]] on 
behalf of Александр [[email protected]]
Sent: Thursday, June 27, 2013 9:09 AM
To: [email protected]
Subject: EXT :Re: [Winpcap-users] winpcap capture speed

Today, i tested a speed of winpcap capturing by changing network card window 
size and transmitt speed.
~120 mbit/s = 0 errors (4M window size)
~180 mbit/s = (1-5 errors on 2000000 packets) (32M window size)....
So... WinPcap isn't suitable for high speed capturing.

--
Alex


26.06.2013, 20:55, "Black, Michael (IS)" <[email protected]>:

You need to multi-thread your code.

Not that it is guaranteed but you need to get the packets out of the queue as 
fast as possible and put them in your own queue.

Of course, you can then end up with an ever-growing queue if your code can't 
keep up.

If all you do is count packets and NOTHING else does it behave?

What kind of network card do you have?

Michael D. Black
Senior Scientist
Analytics, Production and Services
Advanced GEOINT Systems
Northrop Grumman Information Systems

________________________________________
From: 
[email protected]<mailto:[email protected]> 
[[email protected]<mailto:[email protected]>] 
on behalf of A.L. Kuramshin 
[[email protected]<mailto:[email protected]>]
Sent: Wednesday, June 26, 2013 11:48 AM
To: [email protected]<mailto:[email protected]>
Subject: EXT :Re: [Winpcap-users] winpcap capture speed

As for me, it would not help. Packets loss will be delayed a bit, that's it. It 
will begin for example after 1 million packets or 2 or so, a bit later. Just 
thoughts.. :)
_______________________________________________
Winpcap-users mailing list
[email protected]<mailto:[email protected]>
https://www.winpcap.org/mailman/listinfo/winpcap-users
_______________________________________________
Winpcap-users mailing list
[email protected]<mailto:[email protected]>
https://www.winpcap.org/mailman/listinfo/winpcap-users
_______________________________________________
Winpcap-users mailing list
[email protected]
https://www.winpcap.org/mailman/listinfo/winpcap-users

Reply via email to