pipe 發表於 2017-4-11 01:02:46

TCP Chimney 疑難排解

其實這不僅僅是發生在Azure,一般Server也有同樣的狀況。
If the server is exhibiting a strange network performance problem or strange connectivity problem maybe the issue is with TCP Chimney.

The fastest way to determine if any TCP connection on the system is offloaded is to use the netstat command with the –t command. Here is an example:

C:\Windows\system32>netstat -t
Active Connections
ProtoLocal Address          Foreign Address      State          Offload State
TCP    10.70.92.177:57505   157.54.118.28:http   CLOSE_WAIT      InHost
TCP    10.70.92.177:57758   157.54.27.21:http      CLOSE_WAIT      InHost
TCP    128.208.191.70:62520   mail:https             ESTABLISHED   InHost
TCP    128.208.191.70:62521   mail:https             ESTABLISHEDOffloaded
TCP    128.208.191.70:62531   mail:https             ESTABLISHED   InHost

You cannot take a network capture of an offloaded connection on the machine where the connection is offloaded.

If you want to take a network capture (with Netmon or Ethreal|Wireshark) for a TCP connection that is offloaded you will have to take the capture on the other machine involved in the TCP connection or via 3rd machine that is attached to a mirrored port on the same switch as the machine under investigation.

Sometimes it is beneficial to determine if any of the two machines involved in a TCP conversation have the connection offloaded in hardware. You can determine this by looking at a network trace.





根據KB951037 (http://support.microsoft.com/kb/951037),在某些硬體設備上會造成TCP連接的問題。


1.Windows Server 2008 R2環境上以命令提示字元執行下列步驟中的command:
netsh int tcp set global chimney=disabled


2. 於網路介面卡上關閉TCP Large Send Offload:
開啟[裝置管理員],找到[網路介面卡],在您每一張網卡上按滑鼠右鍵>「內容」
於內容視窗上點選[進階]頁籤後,在”內容”區塊找到名為「Large Send Offload v2 (IPv4)」或「TCP Large Send Offload」的選項,將其數值變更為Disabled



3. 修改下列機碼

於電腦上左下角點選「開始」>「執行」> 輸入「regedit」,開啟登錄編輯器。
找到下列路徑:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
建立或修改機碼(DWORD 32位元值):「EnableTCPChimney」值為「1」
建立或修改機碼(DWORD 32位元值):「EnableRSS」值為「1」
建立或修改機碼(DWORD 32位元值):「EnableTCPA」值為「1」
重啟電腦
文章來源
頁: [1]
查看完整版本: TCP Chimney 疑難排解