【求助】請問一下netstat指令的內容~~



贊助商連結


killkeelung
2005-01-18, 11:07 PM
依照網路文章的教學``
我用這個指令查port~~
有出現以下四種狀況~~
TIME_WAIT
ESTABLISHED
CLOSE_WAIT
LISTENING
我想請問這些各代表什麼意思呢?
我想ESTABLISHED應該就是已經建立吧~~
CLOSE_WAIT應該是現在的PORT是關起來~~
但我搞不太清楚TIME_WAIT , LISTENING.... :confused:

贊助商連結


miraclelu
2005-01-19, 03:14 PM
Listening 是表示你電腦裡面有service 正在監聽此port的封包,例如有裝web server,就會去聽port 80.
Close_Wait 是連線結束,準備中斷

sf1976
2005-01-19, 04:45 PM
依照網路文章的教學``
我用這個指令查port~~
有出現以下四種狀況~~
TIME_WAIT
ESTABLISHED
CLOSE_WAIT
LISTENING
我想請問這些各代表什麼意思呢?
我想ESTABLISHED應該就是已經建立吧~~
CLOSE_WAIT應該是現在的PORT是關起來~~
但我搞不太清楚TIME_WAIT , LISTENING.... :confused:



CLOSED ---- Closed. The socket is not being used.
LISTEN ---- Listening for incoming connections.
SYN_SENT ---- Actively trying to establish connection.
SYN_RECEIVED ---- Initial synchronization of the connection under way.
ESTABLISHED ---- Connection has been established.
CLOSE_WAIT ---- Remote shut down; waiting for the socket to close.
FIN_WAIT_1 ---- Socket closed; shutting down connection.
CLOSING ---- Closed, then remote shutdown; awaiting acknowledgement.
LAST_ACK ---- Remote shut down, then closed ;awaiting acknowledgement.
FIN_WAIT_2 ---- Socket closed; waiting for shutdown from remote.
TIME_WAIT ---- Wait after close for remote shutdown retransmission.