netstatRecv-Q和Send-Q详解

更新时间:2023-05-31 15:28:00 阅读: 评论:0

netstatRecv-Q和Send-Q详解宣告的意思
瓜瓜龙英语通过netstat -anp可以查看机器的当前连接状态:
Active Internet connections (rvers and established)
Proto Recv-Q Send-Q Local Address          Foreign Address        State      PID/Program name
tcp        0      0 0.0.0.0:8139            0.0.0.0:*              LISTEN      -
电影的英文tcp        0      0 0.0.0.0:111            0.0.0.0:*              LISTEN      -
tcp        0      0 0.0.0.0:26837          0.0.0.0:*              LISTEN      -
tcp        0      0 0.0.0.0:1046            0.0.0.0:*              LISTEN      -
tcp        0      0 127.0.0.1:25            0.0.0.0:*              LISTEN      -
tcp6      0    910 10.100.83.145:57142    10.100.83.140:80        ESTABLISHED 7072/java
tcp6      0      0 10.100.83.145:57114    10.100.83.140:80        ESTABLISHED 7072/java
paris是什么意思
tcp6      0    914 10.100.83.145:57117    10.100.83.140:80        ESTABLISHED 7072/java
tcp6      0    910 10.100.83.145:57126    10.100.83.140:80        ESTABLISHED 7072/java
tcp6      0      0 10.100.83.145:57159    10.100.83.140:80        ESTABLISHED 7072/java
tcp6      0      0 10.100.83.145:57128    10.100.83.140:80        ESTABLISHED 7072/java
对proto,localAddress等都⽐较好理解,其中Recv-Q Send-Q具体是什么含义呢?为什么Send-Q时长不为0呢?不为0是不是表⽰⽹络出⼝阻塞了呢?针对这个问题查了下相关资料。
⼀个较详细的解释是:kito
What It Means
力图
"Proto" is short for protocol, which is either TCP or UDP. "Recv-Q" and "Send-Q" mean receiving queue and nding queue. The should always be zero; if they're not you might have a problem. Packets should not be piling up in either queue, except briefly, as this example shows:
tcp 0 593 192.168.1.5:34321 :smtp ESTABLISHED
That happened when I hit the "check mail" button in KMail; a brief queuing of outgoing packets is normal behavior. If the receiving queue is consistently jamming up, you might be experiencing a denial-of-rvice attack. If the nding queue does not clear quickly, you might have an application that is nding them out too fast, or the receiver cannot accept them quickly enough.
"Local address" is either your IP and port number, or IP and the name of a rvice. "Foreign address" is the hostname and rvice you are connected to. The asterisk is a placeholder for IP address, which of cour cannot be known until a remote host connects. "State" is the current status of the connection. Any TCP state can be displayed here, but the three are the ones you want to e。
override参考:
⼤致的意思是:
Recv-Q Send-Q分别表⽰⽹络接收队列,发送队列。Q是Queue的缩写。
这两个值通常应该为0,如果不为0可能是有问题的。packets在两个队列⾥都不应该有堆积状态。可接受短暂的⾮0情况。如⽂中的⽰例,短暂的Send-Q队列发送pakets⾮0是正常状态。
afforded
如果接收队列Recv-Q⼀直处于阻塞状态,可能是遭受了拒绝服务 denial-of-rvice 攻击。
randy初三英语上册如果发送队列Send-Q不能很快的清零,可能是有应⽤向外发送数据包过快,或者是对⽅接收数据包不够快。
Recv-Q:表⽰收到的数据已经在本地接收缓冲,但是还有多少没有被进程取⾛,recv()
Send-Q:对⽅没有收到的数据或者说没有Ack的,还是本地缓冲区.
通过netstat的这两个值就可以简单判断程序收不到包到底是包没到还是包没有被进程recv。

本文发布于:2023-05-31 15:28:00,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/78/821012.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:队列   接收   没有
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图