Note the netstat command for more information.
Netstat is used to display statistical data related to IP, TCP, UDP and ICMP protocols, and is generally used to check the network connection of each port of this machine.
Don't be surprised if your computer sometimes receives datagrams that cause erroneous data or failures. TCP/IP can tolerate these types of errors and can automatically retransmit datagrams. However, if the cumulative number of errors accounts for a considerable percentage of received IP datagrams, or the number is increasing rapidly, then you should use Netstat to find out why these situations occur. Netstat detailed parameter list (winxp) c: \ > netstat /? Displays protocol statistics and current TCP/IP network connections. Netstat [-a] [-b] [-e] [-n] [-o] [-p proto] [-r] [-s] [-v] [interval]-a shows all connections and listening ports.
-b Displays the executable components involved in creating each connection or listening port. In some cases, executable components are known.
There are multiple independent components, and in these cases, the sequence of components involved in creating a connection or listening port is displayed.
In this case, the executable component name is in [] at the bottom, the component it calls is at the top, and so on until TCP/IP.
Part. Please note that this option may take a long time, and it may fail if you do not have sufficient rights.
-e Displays Ethernet statistics. This option can be used with-s.
Options are grouped together.
-n Displays the address and port number as numbers.
-o Displays the owning process ID associated with each connection.
-p proto shows the connection of the protocol specified by proto; Proto can be
One of the following protocols: TCP, UDP, TCPv6 or UDPv6.
If used with the -s option to display statistics by protocol, proto can be one of the following protocols:
IP, IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP or UDPv6.
-r displays the routing table.
-s displays statistics by protocol. By default, IP is displayed,
Statistical information of IPv6, ICMP, ICMPv6, TCP, TCPv6, UDP and UDPv6;
The p option is used to specify a subset of the default cases.
When the -v option is used with the -b option, the information contained in is displayed.
This creates a connection or listening port for all executable components.
Component.
This article is from CSDN blog, please indicate the source:/myhz2008/archive/2008/10/20/3102232.aspx.