Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Drivers > NDIS 5.1 IM Driver on Windows Server 2008 failing after sleep

Reply
Thread Tools Display Modes

NDIS 5.1 IM Driver on Windows Server 2008 failing after sleep

 
 
Sasha Levin
Guest
Posts: n/a

 
      11-15-2009
Hello,
I have observed a strange behavior with NDIS 5.1 IM drivers on Windows 2008
servers.
If a server has a NDIS 5.1 IM driver installed and is sent to sleep and
woken up, Active connections "hang" and disconnect after a while.

Steps to reproduce:

1. Install passthru sample on a Windows 2008 Server.
2. Connect to the server using telnet or any other service that allows you
to keep the connection alive.
3. Send the computer to sleep (Regular sleep, Not hibernate).
4. Wake the server up.
5. Try to send data from the client to the server. - Fail

This exact procedure works both when there is no IM driver installed or when
using LWF drivers.

Is there a workaround for this issue for 5.1 drivers?

Thanks.
Sasha.

 
Reply With Quote
 
 
 
 
Thomas F. Divine
Guest
Posts: n/a

 
      11-15-2009
IIRC, when NDIS 5 IM filters are run on NDIS 6 platforms then during
transitions to low-power states NDIS will unbind its bindings. Of course,
one side-effect of unbinding will be that the binding becomes disconnected.
TCP/IP would notice this and naturally abort the existing connection.

On return from low-power states NDIS 6 re-establishes the NDIS 5 IM filter
bindings and the IM filter's virtual adapter would become connected again.

NDIS 6 filters behave differently on power transitions. There is no
"unbinding". Instead members of a stack are "paused" and later restarted;
this is pretty smooth.

Sounds like the scenario you are mentioning is a little artificial. Even
with NDIS 6 filters I would expect that if the Sleep was long enough (which
it probably would be in "real life") the connections would timeout anyway.

If the NDIS 5 IM filter behavior is a problem for you the best solution is
to make a NDIS 6 filter.

Good luck,

Thomas F. Divine



"Sasha Levin" <Sasha > wrote in message
news:F12EE564-4788-4DC5-9264-...
> Hello,
> I have observed a strange behavior with NDIS 5.1 IM drivers on Windows
> 2008
> servers.
> If a server has a NDIS 5.1 IM driver installed and is sent to sleep and
> woken up, Active connections "hang" and disconnect after a while.
>
> Steps to reproduce:
>
> 1. Install passthru sample on a Windows 2008 Server.
> 2. Connect to the server using telnet or any other service that allows you
> to keep the connection alive.
> 3. Send the computer to sleep (Regular sleep, Not hibernate).
> 4. Wake the server up.
> 5. Try to send data from the client to the server. - Fail
>
> This exact procedure works both when there is no IM driver installed or
> when
> using LWF drivers.
>
> Is there a workaround for this issue for 5.1 drivers?
>
> Thanks.
> Sasha.
>

 
Reply With Quote
 
Sasha Levin
Guest
Posts: n/a

 
      11-16-2009
Hello,
From what I understand, TCP/IP connections on the new (Windows 2008, etc')
stack don't disconnect even if their underlying interface is dropped, Which
means that I can disable the interface, reconnect it and the connection keeps
working - something which I've tested.

In my case, After the computer wakes up from sleep I can still see the
connection if I do 'netstat' and I don't get RST packets for incoming packets
on that connection, I just don't get any outgoing packets.

I've made a NDIS 6 LWF driver that does what I need, It's just that the
behavior for NDIS 5.1 IM drivers is rather weird and looks buggy.

Thanks.
Sasha.

"Thomas F. Divine" wrote:

> IIRC, when NDIS 5 IM filters are run on NDIS 6 platforms then during
> transitions to low-power states NDIS will unbind its bindings. Of course,
> one side-effect of unbinding will be that the binding becomes disconnected.
> TCP/IP would notice this and naturally abort the existing connection.
>
> On return from low-power states NDIS 6 re-establishes the NDIS 5 IM filter
> bindings and the IM filter's virtual adapter would become connected again.
>
> NDIS 6 filters behave differently on power transitions. There is no
> "unbinding". Instead members of a stack are "paused" and later restarted;
> this is pretty smooth.
>
> Sounds like the scenario you are mentioning is a little artificial. Even
> with NDIS 6 filters I would expect that if the Sleep was long enough (which
> it probably would be in "real life") the connections would timeout anyway.
>
> If the NDIS 5 IM filter behavior is a problem for you the best solution is
> to make a NDIS 6 filter.
>
> Good luck,
>
> Thomas F. Divine
>
>
>
> "Sasha Levin" <Sasha > wrote in message
> news:F12EE564-4788-4DC5-9264-...
> > Hello,
> > I have observed a strange behavior with NDIS 5.1 IM drivers on Windows
> > 2008
> > servers.
> > If a server has a NDIS 5.1 IM driver installed and is sent to sleep and
> > woken up, Active connections "hang" and disconnect after a while.
> >
> > Steps to reproduce:
> >
> > 1. Install passthru sample on a Windows 2008 Server.
> > 2. Connect to the server using telnet or any other service that allows you
> > to keep the connection alive.
> > 3. Send the computer to sleep (Regular sleep, Not hibernate).
> > 4. Wake the server up.
> > 5. Try to send data from the client to the server. - Fail
> >
> > This exact procedure works both when there is no IM driver installed or
> > when
> > using LWF drivers.
> >
> > Is there a workaround for this issue for 5.1 drivers?
> >
> > Thanks.
> > Sasha.
> >

 
Reply With Quote
 
Sasha Levin
Guest
Posts: n/a

 
      11-16-2009
I've tried writing a small echo server and got a rather interesting result:
Once the server wakes up from a sleep, It receives a packet from a client
perfectly (without ACKing it). When it calls the send() function to send it
back, send returns a good result indicating it sent the entire buffer.
The problem is that the packet never leaves the TCP/IP stack (doesn't even
show on wireshark).
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Migrating old 2003 server with Exchange to new 2003 64-bit serverwith Exchange 2008 Willo van der Merwe Server Migration 3 10-24-2009 05:26 AM
My PnP Monitor is seen as Non PnP??? Colin Windows Vista Hardware 1 11-29-2007 05:01 PM
BUGCODE_USB_DRIVER with external USB HDD PHILIPS Deathwing00 Windows Vista Hardware 11 06-15-2007 07:02 PM
Vista won't boot, kernal issues Lt. Washburn Windows Vista Installation 3 03-30-2007 01:09 AM
Getting Ready for Windows BETA 2 - QuickStarter Andre Da Costa [Extended64] Windows Vista Installation 2 06-07-2006 05:22 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59