Sessions getting disconnected

  • Thread starter Thread starter RandyH
  • Start date Start date
R

RandyH

Guest
Users are complaining that they are getting kicked off our TS, a message
pops up, I think it's the RDP client, but it says, The connection has
been lost - Attempting to Reconnect Session.

The session reconnects, and the user is back where at the screen where
they lost connection.

What is causing lost connections?
Should we be tweaking something on the TS?
Like this, HKLM\SYSTEM\CurrentControlSet\Control\Terminal
Server\WinStations\RDP-Tcp\KeepAliveTimeout?

Tia,
RandyH
 
Re: Sessions getting disconnected

Are these users coming in over a WAN connection?
The cause of the loss of connectivity can be anything, and it's
most likely lying ouside the TS.
Changing the KeepAlive mechanism only ensures that your server
faster detects that the connection is lost and puts the session in
a disconnected state, but that seems already to work properly,
since your users can auto-reconnect.

You'd better post in a network newsgroup, and/or use NetMon or a
continuous ping (ping -t) to get some idea of how many packets are
lost and then take the issue up with your network provider.
_________________________________________________________
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
TS troubleshooting: http://ts.veranoest.net
___ please respond in newsgroup, NOT by private email ___

RandyH <RHollaw@HOTmail.com> wrote on 25 mar 2008 in
microsoft.public.windows.terminal_services:

> Users are complaining that they are getting kicked off our TS, a
> message
> pops up, I think it's the RDP client, but it says, The
> connection has
> been lost - Attempting to Reconnect Session.
>
> The session reconnects, and the user is back where at the screen
> where they lost connection.
>
> What is causing lost connections?
> Should we be tweaking something on the TS?
> Like this, HKLM\SYSTEM\CurrentControlSet\Control\Terminal
> Server\WinStations\RDP-Tcp\KeepAliveTimeout?
>
> Tia,
> RandyH
 
Re: Sessions getting disconnected

They are coming over the Internet via Cisco VPN client.

Would I still NetMon or Ping -t?

Vera Noest [MVP] wrote:
> Are these users coming in over a WAN connection?
> The cause of the loss of connectivity can be anything, and it's
> most likely lying ouside the TS.
> Changing the KeepAlive mechanism only ensures that your server
> faster detects that the connection is lost and puts the session in
> a disconnected state, but that seems already to work properly,
> since your users can auto-reconnect.
>
> You'd better post in a network newsgroup, and/or use NetMon or a
> continuous ping (ping -t) to get some idea of how many packets are
> lost and then take the issue up with your network provider.
> _________________________________________________________
> Vera Noest
> MCSE, CCEA, Microsoft MVP - Terminal Server
> TS troubleshooting: http://ts.veranoest.net
> ___ please respond in newsgroup, NOT by private email ___
>
> RandyH <RHollaw@HOTmail.com> wrote on 25 mar 2008 in
> microsoft.public.windows.terminal_services:
>
>> Users are complaining that they are getting kicked off our TS, a
>> message
>> pops up, I think it's the RDP client, but it says, The
>> connection has
>> been lost - Attempting to Reconnect Session.
>>
>> The session reconnects, and the user is back where at the screen
>> where they lost connection.
>>
>> What is causing lost connections?
>> Should we be tweaking something on the TS?
>> Like this, HKLM\SYSTEM\CurrentControlSet\Control\Terminal
>> Server\WinStations\RDP-Tcp\KeepAliveTimeout?
>>
>> Tia,
>> RandyH
 
Re: Sessions getting disconnected

When the rdp connection is down, is the whole VPN connection down
also?
Can users still connect to other resources on your network, like
shared folders, when the rdp session is disconnected?

_________________________________________________________
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
TS troubleshooting: http://ts.veranoest.net
___ please respond in newsgroup, NOT by private email ___

RandyH <RHollaw@HOTmail.com> wrote on 25 mar 2008 in
microsoft.public.windows.terminal_services:

> They are coming over the Internet via Cisco VPN client.
>
> Would I still NetMon or Ping -t?
>
> Vera Noest [MVP] wrote:
>> Are these users coming in over a WAN connection?
>> The cause of the loss of connectivity can be anything, and it's
>> most likely lying ouside the TS.
>> Changing the KeepAlive mechanism only ensures that your server
>> faster detects that the connection is lost and puts the session
>> in a disconnected state, but that seems already to work
>> properly, since your users can auto-reconnect.
>>
>> You'd better post in a network newsgroup, and/or use NetMon or
>> a continuous ping (ping -t) to get some idea of how many
>> packets are lost and then take the issue up with your network
>> provider.
>> _________________________________________________________ Vera
>> Noest MCSE, CCEA, Microsoft MVP - Terminal Server
>> TS troubleshooting: http://ts.veranoest.net
>> ___ please respond in newsgroup, NOT by private email ___
>>
>> RandyH <RHollaw@HOTmail.com> wrote on 25 mar 2008 in
>> microsoft.public.windows.terminal_services:
>>
>>> Users are complaining that they are getting kicked off our TS,
>>> a message
>>> pops up, I think it's the RDP client, but it says, The
>>> connection has
>>> been lost - Attempting to Reconnect Session.
>>>
>>> The session reconnects, and the user is back where at the
>>> screen where they lost connection.
>>>
>>> What is causing lost connections?
>>> Should we be tweaking something on the TS?
>>> Like this, HKLM\SYSTEM\CurrentControlSet\Control\Terminal
>>> Server\WinStations\RDP-Tcp\KeepAliveTimeout?
>>>
>>> Tia,
>>> RandyH
 
Re: Sessions getting disconnected

I'll ask my users, and report back tomorrow....

Vera Noest [MVP] wrote:
> When the rdp connection is down, is the whole VPN connection down
> also?
> Can users still connect to other resources on your network, like
> shared folders, when the rdp session is disconnected?
>
> _________________________________________________________
> Vera Noest
> MCSE, CCEA, Microsoft MVP - Terminal Server
> TS troubleshooting: http://ts.veranoest.net
> ___ please respond in newsgroup, NOT by private email ___
>
> RandyH <RHollaw@HOTmail.com> wrote on 25 mar 2008 in
> microsoft.public.windows.terminal_services:
>
>> They are coming over the Internet via Cisco VPN client.
>>
>> Would I still NetMon or Ping -t?
>>
>> Vera Noest [MVP] wrote:
>>> Are these users coming in over a WAN connection?
>>> The cause of the loss of connectivity can be anything, and it's
>>> most likely lying ouside the TS.
>>> Changing the KeepAlive mechanism only ensures that your server
>>> faster detects that the connection is lost and puts the session
>>> in a disconnected state, but that seems already to work
>>> properly, since your users can auto-reconnect.
>>>
>>> You'd better post in a network newsgroup, and/or use NetMon or
>>> a continuous ping (ping -t) to get some idea of how many
>>> packets are lost and then take the issue up with your network
>>> provider.
>>> _________________________________________________________ Vera
>>> Noest MCSE, CCEA, Microsoft MVP - Terminal Server
>>> TS troubleshooting: http://ts.veranoest.net
>>> ___ please respond in newsgroup, NOT by private email ___
>>>
>>> RandyH <RHollaw@HOTmail.com> wrote on 25 mar 2008 in
>>> microsoft.public.windows.terminal_services:
>>>
>>>> Users are complaining that they are getting kicked off our TS,
>>>> a message
>>>> pops up, I think it's the RDP client, but it says, The
>>>> connection has
>>>> been lost - Attempting to Reconnect Session.
>>>>
>>>> The session reconnects, and the user is back where at the
>>>> screen where they lost connection.
>>>>
>>>> What is causing lost connections?
>>>> Should we be tweaking something on the TS?
>>>> Like this, HKLM\SYSTEM\CurrentControlSet\Control\Terminal
>>>> Server\WinStations\RDP-Tcp\KeepAliveTimeout?
>>>>
>>>> Tia,
>>>> RandyH
 
Re: Sessions getting disconnected

The VPN connection stays connected, just the session drops and then
reconnects.

RandyH wrote:
> I'll ask my users, and report back tomorrow....
>
> Vera Noest [MVP] wrote:
>> When the rdp connection is down, is the whole VPN connection down also?
>> Can users still connect to other resources on your network, like
>> shared folders, when the rdp session is disconnected?
>>
>> _________________________________________________________
>> Vera Noest
>> MCSE, CCEA, Microsoft MVP - Terminal Server
>> TS troubleshooting: http://ts.veranoest.net
>> ___ please respond in newsgroup, NOT by private email ___
>>
>> RandyH <RHollaw@HOTmail.com> wrote on 25 mar 2008 in
>> microsoft.public.windows.terminal_services:
>>> They are coming over the Internet via Cisco VPN client.
>>>
>>> Would I still NetMon or Ping -t?
>>>
>>> Vera Noest [MVP] wrote:
>>>> Are these users coming in over a WAN connection?
>>>> The cause of the loss of connectivity can be anything, and it's
>>>> most likely lying ouside the TS.
>>>> Changing the KeepAlive mechanism only ensures that your server
>>>> faster detects that the connection is lost and puts the session
>>>> in a disconnected state, but that seems already to work
>>>> properly, since your users can auto-reconnect.
>>>>
>>>> You'd better post in a network newsgroup, and/or use NetMon or
>>>> a continuous ping (ping -t) to get some idea of how many
>>>> packets are lost and then take the issue up with your network
>>>> provider. _________________________________________________________
>>>> Vera
>>>> Noest MCSE, CCEA, Microsoft MVP - Terminal Server
>>>> TS troubleshooting: http://ts.veranoest.net
>>>> ___ please respond in newsgroup, NOT by private email ___
>>>>
>>>> RandyH <RHollaw@HOTmail.com> wrote on 25 mar 2008 in
>>>> microsoft.public.windows.terminal_services:
>>>>> Users are complaining that they are getting kicked off our TS,
>>>>> a message pops up, I think it's the RDP client, but it says, The
>>>>> connection has been lost - Attempting to Reconnect Session.
>>>>>
>>>>> The session reconnects, and the user is back where at the
>>>>> screen where they lost connection.
>>>>>
>>>>> What is causing lost connections?
>>>>> Should we be tweaking something on the TS?
>>>>> Like this, HKLM\SYSTEM\CurrentControlSet\Control\Terminal
>>>>> Server\WinStations\RDP-Tcp\KeepAliveTimeout?
>>>>>
>>>>> Tia,
>>>>> RandyH
 
Re: Sessions getting disconnected

Are they disconnected after some minutes of idle time, or also when
they are actively working (typing, moving the mouse)?
_________________________________________________________
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
TS troubleshooting: http://ts.veranoest.net
___ please respond in newsgroup, NOT by private email ___

RandyH <RHollaw@HOTmail.com> wrote on 27 mar 2008 in
microsoft.public.windows.terminal_services:

> The VPN connection stays connected, just the session drops and
> then reconnects.
>
> RandyH wrote:
>> I'll ask my users, and report back tomorrow....
>>
>> Vera Noest [MVP] wrote:
>>> When the rdp connection is down, is the whole VPN connection
>>> down also? Can users still connect to other resources on your
>>> network, like shared folders, when the rdp session is
>>> disconnected?
>>>
>>> _________________________________________________________
>>> Vera Noest
>>> MCSE, CCEA, Microsoft MVP - Terminal Server
>>> TS troubleshooting: http://ts.veranoest.net
>>> ___ please respond in newsgroup, NOT by private email ___
>>>
>>> RandyH <RHollaw@HOTmail.com> wrote on 25 mar 2008 in
>>> microsoft.public.windows.terminal_services:
>>>> They are coming over the Internet via Cisco VPN client.
>>>>
>>>> Would I still NetMon or Ping -t?
>>>>
>>>> Vera Noest [MVP] wrote:
>>>>> Are these users coming in over a WAN connection?
>>>>> The cause of the loss of connectivity can be anything, and
>>>>> it's most likely lying ouside the TS.
>>>>> Changing the KeepAlive mechanism only ensures that your
>>>>> server faster detects that the connection is lost and puts
>>>>> the session in a disconnected state, but that seems already
>>>>> to work properly, since your users can auto-reconnect.
>>>>>
>>>>> You'd better post in a network newsgroup, and/or use NetMon
>>>>> or a continuous ping (ping -t) to get some idea of how many
>>>>> packets are lost and then take the issue up with your
>>>>> network provider.
>>>>> _________________________________________________________
>>>>> Vera
>>>>> Noest MCSE, CCEA, Microsoft MVP - Terminal Server
>>>>> TS troubleshooting: http://ts.veranoest.net
>>>>> ___ please respond in newsgroup, NOT by private email ___
>>>>>
>>>>> RandyH <RHollaw@HOTmail.com> wrote on 25 mar 2008 in
>>>>> microsoft.public.windows.terminal_services:
>>>>>> Users are complaining that they are getting kicked off our
>>>>>> TS, a message pops up, I think it's the RDP client, but
>>>>>> it says, The
>>>>>> connection has been lost - Attempting to Reconnect
>>>>>> Session.
>>>>>>
>>>>>> The session reconnects, and the user is back where at the
>>>>>> screen where they lost connection.
>>>>>>
>>>>>> What is causing lost connections?
>>>>>> Should we be tweaking something on the TS?
>>>>>> Like this, HKLM\SYSTEM\CurrentControlSet\Control\Terminal
>>>>>> Server\WinStations\RDP-Tcp\KeepAliveTimeout?
>>>>>>
>>>>>> Tia,
>>>>>> RandyH
 
Re: Sessions getting disconnected

I noticed this thread, (and may start a new one) but I too am seeing this
sort of an issue. It appears quantifibly a bandwidth issue; as in when
bandwidth is a getting really crunched sessions disconnect more often.

Given this sort of a scenario where bandwidth is the culprit, wouldn't you
have this sort of issue even if you were using Citrix?

In a group of 5 Terminal Servers, with a hardware load balancer in front to
balance RDP connections in, only 200 users max, I see 10-50 disconnects per
day. All of these users are connecting across Lan-to-Lan VPN's.

No packets are getting 'dropped' by latency sometimes gets a little high (no
more than 150ms)

So can Terminal Services be used across a VPN tunnel?

TIA
Edward



"Vera Noest [MVP]" wrote:

> Are they disconnected after some minutes of idle time, or also when
> they are actively working (typing, moving the mouse)?
> _________________________________________________________
> Vera Noest
> MCSE, CCEA, Microsoft MVP - Terminal Server
> TS troubleshooting: http://ts.veranoest.net
> ___ please respond in newsgroup, NOT by private email ___
>
> RandyH <RHollaw@HOTmail.com> wrote on 27 mar 2008 in
> microsoft.public.windows.terminal_services:
>
> > The VPN connection stays connected, just the session drops and
> > then reconnects.
> >
> > RandyH wrote:
> >> I'll ask my users, and report back tomorrow....
> >>
> >> Vera Noest [MVP] wrote:
> >>> When the rdp connection is down, is the whole VPN connection
> >>> down also? Can users still connect to other resources on your
> >>> network, like shared folders, when the rdp session is
> >>> disconnected?
> >>>
> >>> _________________________________________________________
> >>> Vera Noest
> >>> MCSE, CCEA, Microsoft MVP - Terminal Server
> >>> TS troubleshooting: http://ts.veranoest.net
> >>> ___ please respond in newsgroup, NOT by private email ___
> >>>
> >>> RandyH <RHollaw@HOTmail.com> wrote on 25 mar 2008 in
> >>> microsoft.public.windows.terminal_services:
> >>>> They are coming over the Internet via Cisco VPN client.
> >>>>
> >>>> Would I still NetMon or Ping -t?
> >>>>
> >>>> Vera Noest [MVP] wrote:
> >>>>> Are these users coming in over a WAN connection?
> >>>>> The cause of the loss of connectivity can be anything, and
> >>>>> it's most likely lying ouside the TS.
> >>>>> Changing the KeepAlive mechanism only ensures that your
> >>>>> server faster detects that the connection is lost and puts
> >>>>> the session in a disconnected state, but that seems already
> >>>>> to work properly, since your users can auto-reconnect.
> >>>>>
> >>>>> You'd better post in a network newsgroup, and/or use NetMon
> >>>>> or a continuous ping (ping -t) to get some idea of how many
> >>>>> packets are lost and then take the issue up with your
> >>>>> network provider.
> >>>>> _________________________________________________________
> >>>>> Vera
> >>>>> Noest MCSE, CCEA, Microsoft MVP - Terminal Server
> >>>>> TS troubleshooting: http://ts.veranoest.net
> >>>>> ___ please respond in newsgroup, NOT by private email ___
> >>>>>
> >>>>> RandyH <RHollaw@HOTmail.com> wrote on 25 mar 2008 in
> >>>>> microsoft.public.windows.terminal_services:
> >>>>>> Users are complaining that they are getting kicked off our
> >>>>>> TS, a message pops up, I think it's the RDP client, but
> >>>>>> it says, The
> >>>>>> connection has been lost - Attempting to Reconnect
> >>>>>> Session.
> >>>>>>
> >>>>>> The session reconnects, and the user is back where at the
> >>>>>> screen where they lost connection.
> >>>>>>
> >>>>>> What is causing lost connections?
> >>>>>> Should we be tweaking something on the TS?
> >>>>>> Like this, HKLM\SYSTEM\CurrentControlSet\Control\Terminal
> >>>>>> Server\WinStations\RDP-Tcp\KeepAliveTimeout?
> >>>>>>
> >>>>>> Tia,
> >>>>>> RandyH

>
 
Re: Sessions getting disconnected

Edward wrote:
>
> In a group of 5 Terminal Servers, with a hardware load balancer in front to
> balance RDP connections in, only 200 users max, I see 10-50 disconnects per
> day. All of these users are connecting across Lan-to-Lan VPN's.
>
> No packets are getting 'dropped' by latency sometimes gets a little high (no
> more than 150ms)
>
> So can Terminal Services be used across a VPN tunnel?


Absolutely. I do it all the time. I've managed several TS servers
(Application and Administrator mode) for long periods (>1 hour) over a VPN.

--

Regards,
Hank Arnold
Microsoft MVP
Windows Server - Directory Services
 
Back
Top