How to troubleshoot “The Terminal Server security layer detected an error in the protocol stream and has disconnected the client. Client IP:” and “The RDP protocol component X.224 detected an error in the protocol stream and has disconnected the client”err


İngilizce bir makaledir : Cengiz Kuşkaya ya teşekkür ederim bu paylaşım için.

 

Problem Description :

You may experince problems if you try to connect to a Windows Server 2008 R2 via RDP.

Sympthoms :
- RDP Session may freeze.
- Black screen inside RDP window.
- Slow connection.
- You may also be disconnected.

Error Messages :

Log Name: System
Source: TermDD
Date: 28.02.2012 08:49:40
Event ID: 56
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: XXXXX
Description:
The Terminal Server security layer detected an error in the protocol stream and has disconnected the client. Client IP:

Log Name: System
Source: TermDD
Date: 25.02.2012 23:00:59
Event ID: 50
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: XXXXX
Description:
The RDP protocol component X.224 detected an error in the protocol stream and has disconnected the client.

Solution :

The following actions solved the problem in our case.

1) Configure TCP Chimney Offload in the operating system
• To disable TCP Chimney Offload, follow these steps:
a. Use administrative credentials to open a command prompt.
b. At the command prompt, type the following command, and then press ENTER:
netsh int tcp set global chimney=disabled

2) Configure TCP Chimney Offload on the network adapter
• To determine the current status of TCP Chimney Offload, follow these steps:
a. Use administrative credentials to open a command prompt.
b. At the command prompt, type the following command, and then press ENTER:
netsh int tcp show global

• To determine the current status of TCP Chimney Offload, follow these steps:
a. Use administrative credentials to open a command prompt.
b. At the command prompt, type the following command, and then press ENTER:
netsh int tcp show global

3) Disable RSS in Windows Server 2008 R2
• To disable RSS, follow these steps:
1. Use administrative credentials to open a command prompt.
2. At the command prompt, type the following command, and then press ENTER:
netsh int tcp set global rss=disabled

• To determine the current status of RSS, follow these steps:
a. Use administrative credentials to open a command prompt.
b. At the command prompt, type the following command, and then press ENTER:
netsh int tcp show global

4) Disable NetDMA in Windows Server 2008 R2
• To disable NetDMA, follow these steps:
1. Click Start, click Run, type regedit, and then click OK.
2. Locate the following registry subkey, and then click it:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
3. Double-click the EnableTCPA registry entry.
Note If this registry entry does not exist, right-click Parameters, point to New, click DWORD Value, type EnableTCPA, and then press ENTER.
4. To enable NetDMA, type 1 in the Value data box, and then click OK.
5. To disable NetDMA, type 0 in the Value data box, and then click OK.
6. If the EnableTCPA registry entry does not exist, enable the NetDMA functionality.

Information about the TCP Chimney Offload, Receive Side Scaling, and Network Direct Memory Access features in Windows Server 2008
Source : http://support.microsoft.com/kb/951037/en-us

Alıntı:

http://www.kuskaya.info/2013/06/08/how-to-troubleshoot-the-terminal-server-security-layer-detected-an-error-in-the-protocol-stream-and-has-disconnected-the-client-client-ip-and-the-rdp-protocol-component-x-224-detected-an-error/

+

<I>If the above action does not solve your problem, this would indicate a problem with your NIC driver or NIC card itself. Basically try a test with another network card.</I>

 

Source: http://blogs.msdn.com/b/scstr/

Source: http://www.mycloud-tr.com/

İsmail Şen

Comments (10)

  1. Valhallan says:

    Thank you so much. "netsh int tcp set global chimney=disabled" fixed my random disconnects on RDP and thin clients.

  2. Lee says:

    "netsh int tcp set global chimney=disabled" fixed my random disconnects on RDP and thin clients. Thanks so much!

  3. Kroof says:

    Thanks! netsh int tcp set global chimney=disabled seems to have worked for me as well.

  4. Deep C says:

    Thanks ! netch int tcp det global chimney=disabled fixed from my random disconncetions or black screen in side RDP

  5. G says:

    I have Tried the netsh int tcp set global chimney=disabled on a Thin Client i hope it will work for me becouse 3 Thin Clients has the problem right know.

  6. Juan J. Pérez says:

    Chimney offload disable in server side or in client side?

  7. Dwarika B Chaukiyal says:

    thanks its works fine for me also…server side..

  8. Dwarika bChaukiyal says:

    After rrestart i am getting smae error Access Denide.. please let me know other step

  9. Jimmy Bond says:

    Is this for the client or the server ?

  10. Goodnet says:

    Thanks! The command <netsh int tcp set global chimney=disabled> fixed my Windows 7 RDP issues.

Skip to main content