[Winpcap-users] WinPCap dropping packets UNLESS USB device

Mark Pizzolato - WinPCap-Users winpcap-users-20040408 at subscriptions.pizzolato.net
Thu Jan 20 13:06:17 PST 2011


Hi Gianluca and Jerry,

I don't think he's using XP since windows XP since I don't think XP had
any special capabilities to put systems into low power modes dynamically
like this.

Meanwhile, My theory is that adding the USB device caused something in
the USB driver/software path to execute the API which I suggested you
try separately.  If that works for you, it will probably work just as
well using a value of 5ms (instead of the supplied value of 1).  You can
then add it to your application and never worry about BIOS settings or
USB devices.  You can then also get the benefits of any $$ saved by
actual lower power usage as well...  It would be worth trying...

- Mark

> -----Original Message-----
> From: winpcap-users-bounces at winpcap.org [mailto:winpcap-users-
> bounces at winpcap.org] On Behalf Of Gianluca Varenni
> Sent: Thursday, January 20, 2011 12:51 PM
> To: winpcap-users at winpcap.org
> Subject: Re: [Winpcap-users] WinPCap dropping packets UNLESS USB
device
> 
> Are you using XP? If so, this KB can apply to the issue.
> 
> http://support.microsoft.com/kb/895980
> 
> GV
> 
> -----Original Message-----
> From: winpcap-users-bounces at winpcap.org [mailto:winpcap-users-
> bounces at winpcap.org] On Behalf Of Frame, Jerry
> Sent: Thursday, January 20, 2011 12:45 PM
> To: winpcap-users at winpcap.org
> Subject: Re: [Winpcap-users] WinPCap dropping packets UNLESS USB
device
> 
> Thanks Mark.  I actually determined the issue today.  It actually
ended being
> a bios setting, but I'll elaborate a little just in case it helps
anyone else.
> 
> In my original message, I had stated that Wireshark showed the
broadcast
> was correct when ran on the local HP PC (IE, the one running the app
that
> generates the broadcast.)  What I discovered was that although
Wireshark
> labeled the time between packets as ~100 MS, it was wrong.  When I ran
the
> local HP with Wireshark next to my laptop running Wireshark, the
messages
> came in simultaneously (as expected), but while the local HP would say
each
> packet was about 100 MS apart, my laptop showed them to be anywhere
> from 250 to 600 MS.  When I insert a USB drive, the timing corrects
itself,
> messages come in noticeably faster, and both PCs show 100 MS between
> packets.
> 
> A friend of mine ran into an article on some forum that mentioned how
the
> timing of multi-core processors can get out of sync if the processors
are
> configured to go into a low power mode if they are not being used.
Sure
> enough, I went into the bios, disabled this, and it all worked as it
should with
> no USB device plugged in.  I'm not sure why plugging in a USB device
fixed
> the issue, unless the act of plugging in a new device "woke"
everything up.
> 
> Thanks,
> 
> Jerry
> 
> -----Original Message-----
> From: winpcap-users-bounces at winpcap.org [mailto:winpcap-users-
> bounces at winpcap.org] On Behalf Of winpcap-users-request at winpcap.org
> Sent: Thursday, January 20, 2011 3:00 PM
> To: winpcap-users at winpcap.org
> Subject: Winpcap-users Digest, Vol 70, Issue 6
> 
> Send Winpcap-users mailing list submissions to
> 	winpcap-users at winpcap.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://www.winpcap.org/mailman/listinfo/winpcap-users
> or, via email, send a message with subject or body 'help' to
> 	winpcap-users-request at winpcap.org
> 
> You can reach the person managing the list at
> 	winpcap-users-owner at winpcap.org
> 
> When replying, please edit your Subject line so it is more specific
than "Re:
> Contents of Winpcap-users digest..."
> 
> 
> Today's Topics:
> 
>    1. Re: WinPCap dropping packets UNLESS USB device	pluggedin?
>       (Mark Pizzolato - WinPCap-Users)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Thu, 20 Jan 2011 09:01:36 -0800
> From: "Mark Pizzolato - WinPCap-Users"
> 	<winpcap-users-20040408 at subscriptions.pizzolato.net>
> To: <winpcap-users at winpcap.org>
> Subject: Re: [Winpcap-users] WinPCap dropping packets UNLESS USB
> 	device	pluggedin?
> Message-ID:
> 	<78FD0775812F9E429FF9F5E1AA158DBE4099CE at redroof.alohasunset
> .com>
> Content-Type: text/plain; charset="us-ascii"
> 
> Hi Jerry,
> 
> 
> 
> Just a shot in the dark here, but a possible one....
> 
> 
> 
> Compile and run the below program.  See if you get the correct 10hz
> behavior while that program is running...
> 
> 
> 
> Good Luck,
> 
> 
> 
> -          Mark Pizzolato
> 
> 
> 
> Link this with Winmm.lib
> 
> 
> 
> #include <windows.h>
> 
> main(int argc, char **argv)
> 
> {
> 
> timeBeginPeriod (1);
> 
> while (1) Sleep(1000000);
> 
> }
> 
> 
> 
> 
> 
> From: winpcap-users-bounces at winpcap.org
> [mailto:winpcap-users-bounces at winpcap.org] On Behalf Of Frame, Jerry
> Sent: Thursday, January 20, 2011 5:51 AM
> To: winpcap-users at winpcap.org
> Subject: [Winpcap-users] WinPCap dropping packets UNLESS USB device
> pluggedin?
> 
> 
> 
> 
> 
> I've ran into a very odd situation with WinPCap 4.1.2.  I have a
several quad
> core HP computers running a WinPCap based application that sends a
> broadcast UDP message at 10hz.  For some reason on these HP machines,
> instead of the broadcast (192.168.x.255) coming out of the NIC at
10hz, the
> traffic only seems to be at 1-3hz (this is displayed on our embedded
> system.)  If I run Wireshark on the local HP PC though, I clearly see
a packet
> every 100 ms.  However, if I run Wireshark on another PC connected to
the
> same network, it confirms the 1-3 hz issue.  Here's the really strange
thing.  If
> I plug in a USB drive, or a USB network adapter (even though I'm not
using it),
> the broadcast starts working normally (10 hz).  Unplug the USB device,
and it
> drops back down.  I ran a test application that uses basic Winsock
(the Delphi
> Indy components to be exact), and it always seems to work fine.
> 
> 
> 
> Any suggestions are greatly appreciated.
> 
> 
> 
> Thanks,
> 
> 
> 
> Jerry
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://www.winpcap.org/pipermail/winpcap-
> users/attachments/20110120/b49266d4/attachment-0001.html>
> 
> ------------------------------
> 
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
> 
> 
> End of Winpcap-users Digest, Vol 70, Issue 6
> ********************************************
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users
> _______________________________________________
> Winpcap-users mailing list
> Winpcap-users at winpcap.org
> https://www.winpcap.org/mailman/listinfo/winpcap-users



More information about the Winpcap-users mailing list