netstat命令中的TCP SOCKET 状态
2012-12-06 15:26
127 查看
State
The state of the socket. Since there are no states in raw mode and usually no states used in UDP, this column may
be left blank. Normally this can be one of several values:
套接字的状态。由于原始模式和UDP协议没有使用状态,这一列是空白的。正常情况下有以下几个值:
ESTABLISHED
The socket has an established connection.
连接已建立。
SYN_SENT
The socket is actively attempting to establish a connection.
套接字试图建立连接,已发出SYN标志,等待服务器端发回SYN和ACK确认
SYN_RECV
A connection request has been received from the network.
从网络上收到一个连接请求。收到客户端的SYN,并发出SYN和ACK 。
FIN_WAIT1
The socket is closed, and the connection is shutting down.
套接字已关闭,连接即将关闭。 主动关闭,已发出FIN。
FIN_WAIT2
Connection is closed, and the socket is waiting for a shutdown from the remote end.
连接已关闭,套接字等待远端关闭。 主动关闭中发出FIN后收到对方ACK,等待对方FIN。
TIME_WAIT
The socket is waiting after close to handle packets still in the network.
套接字关闭后延时,处理网络中漫游(失而复得)的数据包。
CLOSED The socket is not being used.
套接字没有被使用。
CLOSE_WAIT
The remote end has shut down, waiting for the socket to close.
远端已关闭(收到FIN,发出ACK),等待套接字关闭。
LAST_ACK
The remote end has shut down, and the socket is closed. Waiting for acknowledgement.
远端已关闭,套接字已关闭。等待确认。在被动关闭中,已发出FIN,待对方ACK。
LISTEN
The socket is listening for incoming connections. Such sockets are not included in the output unless you
specify the --listening (-l) or --all (-a) option.
套接字监听进入的连接。这些套接字不在输出当中,可能通过 --listening (-l) or --all (-a) 选项来显示。
CLOSING
Both sockets are shut down but we still don’t have all our data sent.
两边的套接字均关闭,但是我们还有数据没有发送完成。
UNKNOWN
The state of the socket is unknown.
未知状态。
The state of the socket. Since there are no states in raw mode and usually no states used in UDP, this column may
be left blank. Normally this can be one of several values:
套接字的状态。由于原始模式和UDP协议没有使用状态,这一列是空白的。正常情况下有以下几个值:
ESTABLISHED
The socket has an established connection.
连接已建立。
SYN_SENT
The socket is actively attempting to establish a connection.
套接字试图建立连接,已发出SYN标志,等待服务器端发回SYN和ACK确认
SYN_RECV
A connection request has been received from the network.
从网络上收到一个连接请求。收到客户端的SYN,并发出SYN和ACK 。
FIN_WAIT1
The socket is closed, and the connection is shutting down.
套接字已关闭,连接即将关闭。 主动关闭,已发出FIN。
FIN_WAIT2
Connection is closed, and the socket is waiting for a shutdown from the remote end.
连接已关闭,套接字等待远端关闭。 主动关闭中发出FIN后收到对方ACK,等待对方FIN。
TIME_WAIT
The socket is waiting after close to handle packets still in the network.
套接字关闭后延时,处理网络中漫游(失而复得)的数据包。
CLOSED The socket is not being used.
套接字没有被使用。
CLOSE_WAIT
The remote end has shut down, waiting for the socket to close.
远端已关闭(收到FIN,发出ACK),等待套接字关闭。
LAST_ACK
The remote end has shut down, and the socket is closed. Waiting for acknowledgement.
远端已关闭,套接字已关闭。等待确认。在被动关闭中,已发出FIN,待对方ACK。
LISTEN
The socket is listening for incoming connections. Such sockets are not included in the output unless you
specify the --listening (-l) or --all (-a) option.
套接字监听进入的连接。这些套接字不在输出当中,可能通过 --listening (-l) or --all (-a) 选项来显示。
CLOSING
Both sockets are shut down but we still don’t have all our data sent.
两边的套接字均关闭,但是我们还有数据没有发送完成。
UNKNOWN
The state of the socket is unknown.
未知状态。
相关文章推荐
- TCP 三次握手 四次挥手 socket 状态 对应代码
- tcp 三次握手和四次断连深入分析:连接状态和socket API的关系----BAT 李运华
- tcp socket状态
- 跨平台C++服务器程序开发 (4)tcp socket状态图(server端)
- TCP协议中的三次握手和四次挥手(socket状态图扭转)
- TCP SOCKET CLOSE_WAIT状态暂时心得
- unix学习笔记-----王保明学习笔记-----socket编程进阶---tcpip的11中状态
- socket tcp 链接状态
- tcp 三次握手和四次断连深入分析:连接状态和socket API的关系
- socket一个完整的过程中TCP的11中状态
- tcp 三次握手和四次断连深入分析:连接状态和socket API的关系
- Python应用-[用Python实现一个socket echo程序 && tcp socket的几个关闭状态]
- 用python实现一个socket echo程序 && tcp socket的几个关闭状态
- 强制使用处于TIME_WAIT的TCP状态的socket地址
- tcp连接状态以及netstat命令
- 用python实现一个socket echo程序 && tcp socket的几个关闭状态
- JAVA 里关于几个 SocketTimeoutException 对应TCP的状态 for linux
- Linux系统开发12 Socket API编程3 TCP状态转换 多路IO高并发select poll epoll udp组播 线程池
- 关闭socket链接过程中的TCP状态:TIME_WAIT状态(开启地址重用),CLOSE_WAIT状态
- Windows网络编程学习笔记(7) TCP socket 状态转换过程