netstat -nta 命令看到Listening状态下的Send-Q 值都是0,用man netstat 看到说明和实际情况不一样; 然后用ss -lnt 看到Send-Q 非0,应该怎么理解?
[root@localhost ~]# man netstat
......
Recv-Q
Established: The count of bytes not copied by the user program connected to this socket. Listening: Since
Kernel 2.6.18 this column contains the current syn backlog.
Send-Q
Established: The count of bytes not acknowledged by the remote host. Listening: Since Kernel 2.6.18 this
column contains the maximum size of the syn backlog.
.......
[root@localhost ~]# netstat -tna
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:21 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 192.168.137.20:22 192.168.137.1:52521 ESTABLISHED
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::1:25 :::* LISTEN
[root@localhost ~]# ss -lnt
State Recv-Q Send-Q Local Address:Port Peer Address:Port
LISTEN 0 32 *:21 *:*
LISTEN 0 128 *:22 *:*
LISTEN 0 100 127.0.0.1:25 *:*
LISTEN 0 128 :::22 :::*
LISTEN 0 100 ::1:25 :::*
展开
作者回复: 可能是版本问题,可以查查 ss 的 manual 上含义是一样的吗