There are 4 commands that are useful:
netstat -s netstat -e netsh interface ipv4 show ipstats netsh interface ipv4 show tcpstats
netstat -s netstat -e netsh interface ipv4 show ipstats netsh interface ipv4 show tcpstats
Protocol Statistics with “netstat -s“:
IPv4 Statistics
Packets Received = 1220126
Received Header Errors = 4
Received Address Errors = 6
Datagrams Forwarded = 0
Unknown Protocols Received = 0
Received Packets Discarded = 15925
Received Packets Delivered = 1231766
Output Requests = 388088
Routing Discards = 0
Discarded Output Packets = 6214
Output Packet No Route = 290
Reassembly Required = 8
Reassembly Successful = 4
Reassembly Failures = 0
Datagrams Successfully Fragmented = 0
Datagrams Failing Fragmentation = 0
Fragments Created = 0
IPv6 Statistics
Packets Received = 22851
Received Header Errors = 169
Received Address Errors = 0
Datagrams Forwarded = 0
Unknown Protocols Received = 0
Received Packets Discarded = 5485
Received Packets Delivered = 24565
Output Requests = 28992
Routing Discards = 0
Discarded Output Packets = 22
Output Packet No Route = 37
Reassembly Required = 16
Reassembly Successful = 8
Reassembly Failures = 0
Datagrams Successfully Fragmented = 0
Datagrams Failing Fragmentation = 0
Fragments Created = 0
ICMPv4 StatisticsReceived Sent
Messages 2157 2443
Errors 0 0
Destination Unreachable 2126 2399
Time Exceeded 0 0
Parameter Problems 0 0
Source Quenches 0 0
Redirects 0 0
Echo Replies 31 0
Echos 0 44
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 StatisticsReceived Sent
Messages 342 643
Errors 0 0
Destination Unreachable 0 10
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 175
Router Advertisements 52 0
Neighbor Solicitations 178 207
Neighbor Advertisements 112 251
Redirects 0 0
Router Renumberings 0 0
TCP Statistics for IPv4
Active Opens = 6432
Passive Opens = 22
Failed Connection Attempts = 2547
Reset Connections = 471
Current Connections = 25
Segments Received = 1133497
Segments Sent = 273072
Segments Retransmitted = 5946
TCP Statistics for IPv6
Active Opens = 292
Passive Opens = 10
Failed Connection Attempts = 73
Reset Connections = 13
Current Connections = 2
Segments Received = 23054
Segments Sent = 17828
Segments Retransmitted = 196
UDP Statistics for IPv4
Datagrams Received = 94518
No Ports = 11347
Receive Errors = 4710
Datagrams Sent = 113544
UDP Statistics for IPv6
Datagrams Received = 3428
No Ports = 5397
Receive Errors = 88
Datagrams Sent = 10196
Ethernet Statistics with “netstat -e“:
Interface Statistics
Received Sent
Bytes 778495183 24231115
Unicast packets 594590 157704
Non-unicast packets 11267 6760
Discards 0 0
Errors 0 0
Unknown protocols 0
netsh interface ipv4 show ipstats
C:\>netsh interface ipv4 show ipstats MIB-II IP Statistics ------------------------------------------------------ Forwarding is: Disabled Default TTL: 128 In Receives: 15716737 In Header Errors: 0 In Address Errors: 102 Datagrams Forwarded: 0 In Unknown Protocol: 0 In Discarded: 729112 In Delivered: 22206901 Out Requests: 18839775 Routing Discards: 0 Out Discards: 115338 Out No Routes: 0 Reassembly Timeout: 60 Reassembly Required: 0 Reassembled Ok: 0 Reassembly Failures: 0 Fragments Ok: 0 Fragments Failed: 0 Fragments Created: 0
netsh interface ipv4 show tcpstats
C:\>netsh interface ipv4 show tcpstats TCP Statistics ------------------------------------------------------ Timeout Algorithm: Van Jacobson's Algorithm Minimum Timeout: 5 Maximum Timeout: 4294967295 Maximum Connections: Dynamic Active Opens: 2838224 Passive Opens: 444654 Attempts Failed: 1796068 Established Resets: 50571 Currently Established: 34 In Segments: 28077891 Out Segments: 25341202 Retransmitted Segments: 3592358 In Errors: 0 Out Resets: 5496409 Fastopen Active Opens: 0 Fastopen Passive Opens: 0 Fastopen Attempts Failed: 0 Retransmits Of First SYN: 1790632 Retransmits Of First SYN (Fastopen): 0