其實這不僅僅是發生在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

  Proto  Local 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             ESTABLISHED  Offloaded

  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

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

 

 

3. 修改下列機碼

  1. 於電腦上左下角點選「開始」>「執行」> 輸入「regedit」,開啟登錄編輯器。
  2. 找到下列路徑:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
  3. 建立或修改機碼(DWORD 32位元值):EnableTCPChimney」值為「1
  4. 建立或修改機碼(DWORD 32位元值):EnableRSS」值為「1
  5. 建立或修改機碼(DWORD 32位元值):EnableTCPA」值為「1
  6. 重啟電腦

 

 

                       

arrow
arrow
    全站熱搜

    my007FFF 發表在 痞客邦 留言(0) 人氣()