大网数据广告活动
网络与域名解析

Collect data using Network Monitor

· 52CE 我爱测

Learn how to run Network Monitor to collect data for troubleshooting TCP/IP connectivity.

In this article, you'll learn how to use Microsoft Network Monitor 3.4, which is a tool for capturing network traffic.

Applies to:   Windows 10

Note: Network Monitor is the archived protocol analyzer and is no longer under development. Also, Microsoft Message Analyzer (MMA) was retired and its download packages were removed from microsoft.com sites on November 25, 2019. There is currently no Microsoft replacement for Microsoft Message Analyzer in development at this time. For similar functionality, consider using another, non-Microsoft network protocol analyzer tool. For more information, see Microsoft Message Analyzer Operating Guide.

To get started, download Network Monitor tool. When you install Network Monitor, it installs its driver and hooks it to all the network adapters installed on the device. You can see the same on the adapter properties, as shown in the following image:

When the driver gets hooked to the network interface card (NIC) during installation, the NIC is reinitialized, which might cause a brief network glitch.

To capture traffic

  1. Run netmon in an elevated status by choosing Run as Administrator.

    :::image type="content" source="media/collect-data-using-network-monitor/nm-start.png" alt-text="Screenshot of Start search results for Netmon." border="false":::

  2. Network Monitor opens with all network adapters displayed. Select the network adapters where you want to capture traffic, select New Capture, and then select Start.

    :::image type="content" source="media/collect-data-using-network-monitor/nm-new-capture.png" alt-text="Screenshot of the New Capture option on the network monitor menu." border="false":::

  3. Reproduce the issue, and you'll see that Network Monitor grabs the packets on the wire.

    :::image type="content" source="media/collect-data-using-network-monitor/network-monitor-frame-summary.png" alt-text="Screenshot of the Frame summary of network packets.":::

  4. Select Stop, and go to File > Save as to save the results. By default, the file will be saved as a .cap file.

The saved file has captured all the traffic that is flowing to and from the selected network adapters on the local computer. However, your interest is only to look into the traffic/packets that are related to the specific connectivity problem you're facing. So you'll need to filter the network capture to see only the related traffic.

Commonly used filters

  • Ipv4.address=="client ip" and ipv4.address=="server ip"
  • Tcp.port==
  • Udp.port==
  • Icmp
  • Arp
  • Property.tcpretranmits
  • Property.tcprequestfastretransmits
  • Tcp.flags.syn==1

Tip: If you want to filter the capture for a specific field and do not know the syntax for that filter, just right-click that field and select Add the selected value to Display Filter.

Network traces that are collected using the netsh commands built in to Windows are of the extension "ETL". However, these ETL files can be opened using Network Monitor for further analysis.

More information

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Client · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。