Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Create and access a list of your products
Some article numbers may have changed. If this isn't what you're looking for, try searching all articles. Search articles

如何使用 NTttcp 工具对 Windows 中的网络性能进行故障排除

Summary: 本文提供有关使用 NTttcp 工具对 Windows Server 中与网络相关的性能问题进行故障排除的指南。

This article applies to   This article does not apply to 

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 订阅即可使用该工具。

Affected Products

Microsoft Windows Server 2016, Microsoft Windows Server 2019, Microsoft Windows Server 2022, Microsoft Windows 2012 Server, Microsoft Windows 2012 Server R2
Article Properties
Article Number: 000136761
Article Type: How To
Last Modified: 22 Nov 2023
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.