對 Windows 2000 虛擬主機 上傳大容量檔案 造成網路斷線

問題狀況:

Virtual 的 Win2000 開啟 Shared folder ,若有幾台clients 對它上傳大容量的檔案時,Virtual Win2000 的系統會無回應,SQL Server 2000也會斷線。

解決方法:

若有這種情形.可參考 Microsoft Security update 893066改變TcpWindowSize. 其數值改成17KB就會改善。

參考來源:http://msdn.microsoft.com/en-us/library/ms740476.aspx

文章內文:

The default size of the TCP receive window is typically a low-level optimization that does not affect general networking performance. However, specific applications may benefit from different values of the TCP receive window size.

In the original release versions of Microsoft Windows 2000 Service Pack 1 (SP1) and Windows 2000 Service Pack 2 (SP2), the default size of the TCP receive window was 17,520 bytes. Windows 2000 Service Pack 3 (SP3) and Windows 2000 Service Pack 4 (SP4) included a change that increased the default size of the TCP receive window to 64 KB.

In Microsoft Windows 2000 Service Pack 3 (SP3), the size of the TCP receive window is set to 64 KB on 100 megabits per second (Mbps) networks. This setting may cause frequent retransmissions. Consistent customer and product support feedback suggested that the default size should be reverted to the pre-SP3 default of 17 KB. Therefore, this change was released as a hotfix for affected customers. Security update 893066 decreases the default size of the TCP receive window to 17,520 bytes.

However, depending on the network configuration and typical functionality, the decrease in default size of the TCP receive window may limit average throughput for specific applications that use significant network resources. The reduced value may be better for slower networks, while the larger value may work better for high-performance networks.

This performance optimization depends on network bandwidth, load and use factors, and specific applications that use TCP/IP, and varies by customer and networking infrastructure. Generally, most customers will not notice significant performance variations with either setting. We recommend that you use the default setting unless there are specific and measurable benefits to changing the default in your environment.

Note You can pre-deploy the registry setting before you apply the security update. This will prevent any changes in behavior when you apply the security update.

Method 1:Add the TcpWindowSize registry entry

Add the TcpWindowSize registry entry. To do this, follow these steps:

  1. Click Start, click Run, type regedit, and then click OK.
  2. Locate and then click the following registry subkey:HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
  3. On the Edit menu, point to New, and then click DWORD Value.
  4. In the New Value box, type TcpWindowSize, and then press ENTER.
  5. On the Edit menu, click Modify.
  6. In the Value data box, type the window size that you want.
  7. Back to the top

Method 2:Use the Setsockopt function

Use the Setsockopt Windows Sockets function to set the receive window size on a per-socket basis. For more information about the Setsockopt function, visit the following Microsoft Web site:

 

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s