如何查看 Windows 7 中的网络适配器统计信息?

如何查看 Windows 7 中的网络适配器统计信息?

我记得自从过去建立连接以来已经发送/接收了字节/数据包,但现在我无法在适配器属性中找到它。

顺便说一句,当我将鼠标悬停network connection在托盘中的图标上时,它会显示Network: Internet access, Unindentified network, No network access,但是,您会看到我已经发布了这个问题。

在此处输入图片描述

大卫在屏幕上我正在查找。问题是,在我的情况下,状态不可用(因为我的 Windows 会话中存在一些错误)。

在此处输入图片描述

答案1

如何查看 Windows 7/8/10 中的网络适配器统计信息?

  1. 启动“控制面板”>“网络连接”

  2. 右键单击其中一个网络连接并选择“状态”

    Windows 7,网络连接状态

该图像来自 Windows 7,但 Windows 8 和 10 中的对话框几乎相同。

答案2

我认为您可能想要得到类似命令的结果netstat -s

它将显示如下统计数据:

IPv4 Statistics

  Packets Received                   = 125858
  Received Header Errors             = 0
  Received Address Errors            = 130
  Datagrams Forwarded                = 0
  Unknown Protocols Received         = 0
  Received Packets Discarded         = 315
  Received Packets Delivered         = 126500
  Output Requests                    = 83395
  Routing Discards                   = 0
  Discarded Output Packets           = 0
  Output Packet No Route             = 1
  Reassembly Required                = 0
  Reassembly Successful              = 0
  Reassembly Failures                = 0
  Datagrams Successfully Fragmented  = 0
  Datagrams Failing Fragmentation    = 0
  Fragments Created                  = 0

IPv6 Statistics

  Packets Received                   = 7
  Received Header Errors             = 0
  Received Address Errors            = 0
  Datagrams Forwarded                = 0
  Unknown Protocols Received         = 0
  Received Packets Discarded         = 2
  Received Packets Delivered         = 117
  Output Requests                    = 444
  Routing Discards                   = 0
  Discarded Output Packets           = 0
  Output Packet No Route             = 6
  Reassembly Required                = 0
  Reassembly Successful              = 0
  Reassembly Failures                = 0
  Datagrams Successfully Fragmented  = 0
  Datagrams Failing Fragmentation    = 0
  Fragments Created                  = 0

ICMPv4 Statistics

                            Received    Sent
  Messages                  241         2
  Errors                    0           0
  Destination Unreachable   241         2
  Time Exceeded             0           0
  Parameter Problems        0           0
  Source Quenches           0           0
  Redirects                 0           0
  Echo Replies              0           0
  Echos                     0           0
  Timestamps                0           0
  Timestamp Replies         0           0
  Address Masks             0           0
  Address Mask Replies      0           0
  Router Solicitations      0           0
  Router Advertisements     0           0

ICMPv6 Statistics

                            Received    Sent
  Messages                  3           18
  Errors                    0           0
  Destination Unreachable   0           0
  Packet Too Big            0           0
  Time Exceeded             0           0
  Parameter Problems        0           0
  Echos                     0           0
  Echo Replies              0           0
  MLD Queries               0           0
  MLD Reports               0           0
  MLD Dones                 0           0
  Router Solicitations      0           12
  Router Advertisements     0           0
  Neighbor Solicitations    0           3
  Neighbor Advertisements   3           3
  Redirects                 0           0
  Router Renumberings       0           0

TCP Statistics for IPv4

  Active Opens                        = 1232
  Passive Opens                       = 4
  Failed Connection Attempts          = 1647
  Reset Connections                   = 121
  Current Connections                 = 28
  Segments Received                   = 104462
  Segments Sent                       = 66346
  Segments Retransmitted              = 1695

TCP Statistics for IPv6

  Active Opens                        = 0
  Passive Opens                       = 0
  Failed Connection Attempts          = 0
  Reset Connections                   = 0
  Current Connections                 = 0
  Segments Received                   = 0
  Segments Sent                       = 0
  Segments Retransmitted              = 0

UDP Statistics for IPv4

  Datagrams Received    = 26472
  No Ports              = 297
  Receive Errors        = 18
  Datagrams Sent        = 15279

UDP Statistics for IPv6

  Datagrams Received    = 2
  No Ports              = 0
  Receive Errors        = 2
  Datagrams Sent        = 338

或者如果您想要第 2 层统计信息,您可以使用它netstat -e来获取仅与以太网相关的统计信息:

Interface Statistics

                           Received            Sent

Bytes                     604513390        48753903
Unicast packets              566790          389160
Non-unicast packets           81665            5275
Discards                          0               0
Errors                            0               0
Unknown protocols                 0

答案3

此问题出现在 已删除 的搜索结果中以太网框架,所以我将添加我发现的唯一方法来获得以太网Windows 上的第 2 层统计信息(不是第 3 层以上)(在 10 上测试,但可能在 7 上运行)。

在 Powershell 中:

Get-NetAdapterStatistics | Format-List -Property "*"

通常情况下,丢弃/错误/重新传输的统计数据是隐藏的,因此输入到格式列表中会显示所有统计数据。

来源:https://docs.microsoft.com/en-us/powershell/module/netadapter/get-netadapterstatistics?view=win10-ps

答案4

除了:

  • 总体统计:netstat.exe -e
  • 列出每个协议的统计数据:netstat.exe -s
  • 列出每个接口的统计信息:powershell Get-NetAdapterStatistics

您可以使用 将统计数据重置为零netcfg -d,不幸的是,它非常具有侵入性(删除接口,因此您必须重新启动才能继续工作)。

相关内容