Analyzing Netstat Output
Analyzing Netstat Output
id=kA2j0000000QoXbCAK
Level 50 = Restricted
Restricted View
Audience: Level 40 = Employees and Last Published: Sat Feb 20 23:41:51 GMT
Version: 2 Article Type: Break Fix
Partners 2016
Summary:
Issue:
Notes: Symptoms
Resolution
Slow backups or hangs can be caused by poor network performance. One tool to investigate network
performance on Windows and UNIX is netstat.
The netstat command displays list of TCP connections and states. Common states are LISTENING,
ESTABLISHED, TIME_WAIT. Having connections in FIN_WAIT_2 or CLOSE_WAIT for longer than a few
https://emcservice.force.com/CustomersPartners/KB_BreakFix_Printable?id=kA2j0000000QoXbCAK 1/7
7/7/2017 https://emcservice.force.com/CustomersPartners/KB_BreakFix_Printable?id=kA2j0000000QoXbCAK
netstat -a
-----------
TCP ANT:sunrpc ANT:0 LISTENING
TCP ANT:epmap ANT:0 LISTENING
TCP ANT:1061 mail:2190 ESTABLISHED
TCP ANT:1065 mail:2198 ESTABLISHED
TCP ANT:1110 ddtsres:http TIME_WAIT
TCP ANT:1117 google:http CLOSE_WAIT
or
This is an example from Windows host, ANT, showing that there are connections (TCP sockets) open to
mail, ddtsres, google. The ESTABLISHED sockets are exchanging data normally. The TIME_WAIT status
for the ddtsres socket means that ANT and ddtsres have agreed to closed the socket, likely because ANT is
no longer accessing DDTS, but incase any leftover packets arrive for the socket, the socket stays in
TIME_WAIT status for a specified interval.
The CLOSE_WAIT status means that ANT received a request to close the connection (FIN) from google,
and has responded with AWK(FIN). Now ANT is waiting for google to ACKnowledge receipt of his
AWK(FIN). Once this is Acknowledged, then the session will go into TIME_WAIT.
It is normal to see some sessions in CLOSE_WAIT or TIME_WAIT, but if there are accumulated sessions,
or, if the sessions never close, dropped the Acknowledgements-packets (due to too much traffic), or the the
other host never sent one (due to its own hanging).
BOUND
Bound, ready to connect or listen.
CLOSED
Closed. The socket is not being used.
CLOSING
Closed, then remote shutdown; awaiting acknowledgment.
https://emcservice.force.com/CustomersPartners/KB_BreakFix_Printable?id=kA2j0000000QoXbCAK 2/7
7/7/2017 https://emcservice.force.com/CustomersPartners/KB_BreakFix_Printable?id=kA2j0000000QoXbCAK
Closed, then remote shutdown; awaiting acknowledgment.
CLOSE_WAIT
Remote shutdown; waiting for the socket to close.
ESTABLISHED
Connection has been established.
FIN_WAIT_1
Socket closed; shutting down connection.
FIN_WAIT_2
Socket closed; waiting for shutdown from remote.
IDLE
Idle, opened but not bound.
LAST_ACK
Remote shutdown, then closed; awaiting acknowledgment.
LISTEN
Listening for incoming connections.
SYN_RECEIVED
Initial synchronization of the connection under way.
SYN_SENT
Actively trying to establish connection.
TIME_WAIT
Wait after close for remote shutdown retransmission.
Useful commands:
C:\>netstat -e
Interface Statistics
Received Sent
# netstat -i
Name Mtu Net/Dest Address Ipkts Ierrs Opkts Oerrs Collis Queue
lo0 8232 loopback localhost 259226084 0 259226084 0 0 0
hme0 1500 sunrise.legato.com sunrise.legato.com 35046258 0 30320533 0 0 0
https://emcservice.force.com/CustomersPartners/KB_BreakFix_Printable?id=kA2j0000000QoXbCAK 3/7
7/7/2017 https://emcservice.force.com/CustomersPartners/KB_BreakFix_Printable?id=kA2j0000000QoXbCAK
# netst.at -i 1 <-----Interval
input hme0 output input (Total) output
packets errs packets errs colls packets errs packets errs colls
35121008 0 30386382 0 0 295261709 0 290527083 0 0
130 0 118 0 0 1760 0 1748 0 0
127 0 118 0 0 1763 0 1754 0 0
133 0 116 0 0 1722 0 1705 0 0
136 0 117 0 0 1755 0 1736 0 0
90 0 82 0 0 1197 0 1189 0 0
131 0 115 0 0 1719 0 1703 0 0
128 0 118 0 0 1750 0 1740 0 0
Network errors 0
Connections made 12
Reconnections made 0
Server disconnects 7
Sessions started 34
Hung sessions 0
Failed sessions 0
Failed operations 0
Use count 40
Failed use count 14
UDP: IPv4
https://emcservice.force.com/CustomersPartners/KB_BreakFix_Printable?id=kA2j0000000QoXbCAK 4/7
7/7/2017 https://emcservice.force.com/CustomersPartners/KB_BreakFix_Printable?id=kA2j0000000QoXbCAK
UDP: IPv6
Local Address Remote Address State If
---------------------------------
*.* Unbound
*.sunrpc Idle
*.* Unbound
*.32771 Idle
*.time Idle
*.echo Idle
*.discard Idle
*.daytime Idle
*.chargen Idle
*.32777 Idle
*.32779 Idle
*.32781 Idle
...
TCP: IPv4
Local Address Remote Address Swind Send-Q Rwind Recv-Q State
-------------------- -------------------- ----- ------ ----- ------ -------
*.* *.* 0 0 24576 0 IDLE
*.sunrpc *.* 0 0 24576 0 LISTEN
https://emcservice.force.com/CustomersPartners/KB_BreakFix_Printable?id=kA2j0000000QoXbCAK 5/7
7/7/2017 https://emcservice.force.com/CustomersPartners/KB_BreakFix_Printable?id=kA2j0000000QoXbCAK
TCP: IPv6
Local Address Remote Address Swind Send-Q
Rwind Recv-Q State If
--------------------------------- --------------------------------- ----- ------
*.* *.* 0 0
24576 0 IDLE
*.sunrpc *.* 0 0
24576 0 LISTEN
*.* *.* 0 0
24576 0 IDLE
*.ftp *.* 0 0
24576 0 LISTEN
*.telnet *.* 0 0
24576 0 LISTEN
*.shell *.* 0 0
...
Product: NetWorker Client for Linux 7.6, NetWorker Client for Linux 7.5.1, NetWorker Client for Linux 7.5, NetWorker
Client for Linux 7.4.5, NetWorker Client for Unix 7.6, NetWorker Client for Unix 7.5.2, NetWorker Client for
Unix 7.5.1, NetWorker Client for Unix 7.5, NetWorker Client for Unix 7.4.5, NetWorker Client for Windows
7.6, NetWorker Client for Windows 7.5.2, NetWorker Client for Windows 7.5.1, NetWorker Client for
Windows 7.5, NetWorker Client for Windows 7.4.5, NetWorker Server for Unix 7.6, NetWorker Server for
Unix 7.5.2, NetWorker Server for Unix 7.5, NetWorker Server for Unix 7.4.5, NetWorker Server for Linux
7.6, NetWorker Server for Linux, NetWorker Client for Linux 7.6, NetWorker Client for Linux 7.5.1,
NetWorker Client for Linux 7.5, NetWorker Client for Linux 7.4.5, NetWorker Client for Linux 7.4.4,
NetWorker Client for Linux 7.4.3, NetWorker Client for Linux 7.4, NetWorker Client for Linux 7.3.4,
NetWorker Client for Linux 7.3.1, NetWorker Client for Unix 7.6, NetWorker Client for Unix 7.5.2, NetWorker
Client for Unix 7.5.1, NetWorker Client for Unix 7.5, NetWorker Client for Unix 7.4.5, NetWorker Client for
https://emcservice.force.com/CustomersPartners/KB_BreakFix_Printable?id=kA2j0000000QoXbCAK 6/7
7/7/2017 https://emcservice.force.com/CustomersPartners/KB_BreakFix_Printable?id=kA2j0000000QoXbCAK
Client for Unix 7.5.1, NetWorker Client for Unix 7.5, NetWorker Client for Unix 7.4.5, NetWorker Client for
Unix 7.4.4, NetWorker Client for Unix 7.4.3, NetWorker Client for Unix 7.4, NetWorker Client for Unix 7.3.4,
NetWorker Client for Unix 7.3.1, NetWorker Client for Windows 7.6, NetWorker Client for Windows 7.5.2,
NetWorker Client for Windows 7.5.1, NetWorker Client for Windows 7.5, NetWorker Client for Windows
7.4.5, NetWorker Client for Windows 7.4.4, NetWorker Client for Windows 7.4.3, NetWorker Client for
Windows 7.4, NetWorker Client for Windows 7.3.4, NetWorker Client for Windows 7.3.1, NetWorker Server
for Unix 7.6, NetWorker Server for Unix 7.5.2, NetWorker Server for Unix 7.5, NetWorker Server for Unix
7.4.5, NetWorker Server for Unix 7.4.4, NetWorker Server for Unix 7.4.3, NetWorker Server for Unix 7.4,
NetWorker Server for Unix 7.3.4, NetWorker Server for Unix 7.3.1, NetWorker 7.3.1, NetWorker 7.3.4,
NetWorker 7.4, NetWorker 7.4.3, NetWorker 7.4.4, NetWorker 7.4.5, NetWorker 7.5, NetWorker 7.5.2,
NetWorker 7.6, NetWorker 7.5.1, NetWorker
Article Properties: Validation Status: Approved Original Create Date: Sat Feb 20 12:59:29 GMT 2016
Channels: First Published: Fri Feb 05 17:42:21 GMT 2016
Originally Created By: SFDC Admin Last Modified: Sat Feb 20 23:41:51 GMT 2016
https://emcservice.force.com/CustomersPartners/KB_BreakFix_Printable?id=kA2j0000000QoXbCAK 7/7