Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

如何使用 NTttcp 工具對 Windows 中的網路效能進行故障診斷

Summary: 本文提供使用 NTttcp 工具故障診斷 Windows Server 中網路相關效能問題的指南。

This article may have been automatically translated. If you have any feedback regarding its quality, please let us know using the form at the bottom of this page.

Article Content


Instructions

在對網路性能問題進行故障排除時,可能很難將網路性能與其他系統元件的性能隔離開來。例如,將檔從一個系統複製到另一個系統時,也會使用兩台電腦上的記憶體和磁碟子系統。Microsoft 提供一個工具,僅可用於測試網路:NTttcp.

最新版本的NTttcp(截至撰寫本文時為v5.39)可在此處下載

使用範例:此命令使用在所有處理器內核上動態分配的四個線程、兩個未完成的 I/O 緩衝區和 64K 緩衝區大小,以異步模式將該工具作為接收器運行 30 秒:

ntttcp.exe -r -m 4,*,192.168.242.5 -l 64k -a 2 -t 30

這是傳送器上的對應命令:

ntttcp.exe -s -m 4,*,192.168.242.5 -l 64k -a 2 -t 30

這兩個命令都包含相同的IP位址:接收方的位址。

該工具的輸出(可另存為 XML 檔)提供有關測試期間傳輸的數據總量、CPU 使用率和總輸送量的詳細資訊。此資訊可幫助確定性能瓶頸是由相關網路還是其他系統元件引起的。

使用 NTttcp 時需要記住幾件重要的事情:

  • 它必須在連接的兩端(例如客戶端和伺服器)上運行。
  • 在以前的版本中,必須重命名可執行檔以指定它是作為發送方還是接收方運行。新版本使用 -s-r 開關,因此不再需要此功能。

有關 NTttcp 的更多資訊, 請參閱此處。使用該工具不需要有效的 Azure 訂閱。

Article Properties


Affected Product

Microsoft Windows Server 2016, Microsoft Windows Server 2019, Microsoft Windows Server 2022, Microsoft Windows 2012 Server, Microsoft Windows 2012 Server R2

Last Published Date

22 Nov 2023

Version

4

Article Type

How To