Troubleshooting TCP/IP

Displaying per-protocol statistics

The -s option to netstat displays per-protocol statistics for the Internet Control Message Protocol (ICMP), the Internet Group Management Protocol (IGMP), the Internet Protocol (IP), the Transmission Control Protocol (TCP), and the User Datagram Protocol (UDP). To display statistics for all protocols, enter:

netstat -s

To display statistics for a particular protocol, enter:

netstat -s -p protocol

The name of the protocol must be entered in lowercase letters. For example, to display statistics for IP, enter:

netstat -s -p ip

This produces statistics similar to the following:

ip:
   	376003 total packets received
	0 bad header checksums
	0 with size smaller than minimum
	0 with data size < data length
	0 with header length < data size
	0 with data length < header length
	0 with unknown protocol
	0 fragments received
	0 fragments dropped (dup or out of space)
	0 fragments dropped after timeout
	0 packets reassembled
	0 packets forwarded
	4588 packets not forwardable
	2 no routes
	0 redirects sent
	0 system errors during input
	371415 packets delivered
	7750 total packets sent
	0 system errors during output
	0 packets fragmented
	0 packets not fragmentable
	0 fragments created
The statistical information can show areas where a protocol is having problems.
© 1999 The Santa Cruz Operation, Inc. All rights reserved.
UnixWare 7 Release 7.1.1 - 5 November 1999