为什么 TCP RST 数据包不需要确认?是不是因为RST的发送方每次收到对方的数据包后都会继续发送RST?
相关说明,有效的 RST 数据包中的确认号怎么可能是 0?
相关说明,RST 数据包中的确认号如何
是 0?
因为设置了 RST 位的段应该终止连接,仅此而已。仅当连接建立并且在段中设置了 ACK 位时,确认号才有意义。 RST 段的接收方还应该考虑另一端的应用程序协议客户端突然终止并且没有机会处理发送给它的未确认数据的可能性。
See RFC 793 http://www.ietf.org/rfc/rfc793.txt,第 15 页:
Acknowledgment Number: 32 bits
If the ACK control bit is set this field contains the value of the
next sequence number the sender of the segment is expecting to
receive. Once a connection is established this is always sent.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)