简体   繁体   English

带有 FIN 标志的 TCP 数据包也可以有数据吗?

[英]Can a TCP packet with the FIN flag also have data?

I'm working on a packet capture program.我正在开发一个数据包捕获程序。 Is it possible for TCP packet to have the FIN flag set but also have data? TCP 数据包是否有可能设置 FIN 标志但也有数据?

Strictly speaking, it is possible to put data in a TCP FIN packet... Quoting from RFC 793 (emphasis mine):严格来说,可以将数据放入TCP FIN数据包中...引用RFC 793 (强调我的):

The SYN and FIN are the only controls requiring this protection, and these controls are used only at connection opening and closing. SYN 和 FIN 是唯一需要这种保护的控件,并且这些控件仅在连接打开和关闭时使用。 For sequence number purposes, the SYN is considered to occur before the first actual data octet of the segment in which it occurs, while the FIN is considered to occur after the last actual data octet in a segment in which it occurs .出于序列号的目的,SYN 被认为发生在它出现的段的第一个实际数据八位字节之前,而 FIN 被认为发生在它出现的段中的最后一个实际数据八位字节之后

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM