这些有什么不同?(TCP数据包)

What are different between these?(TCP packet)

enter image description here

这些有两个不同。 如果您需要更多信息,请留下答案。 谢谢

我假设您指的是底部窗格中突出显示的两个 TCP 标志。左边的是用于启动 TCP 会话的 SYN 数据包,右边的是用于关闭 TCP 会话的 FIN/ACK 数据包。

TCP 以所谓的“三次握手”或“TCP 握手”开始。这包括(但还有更多):

SYN: First packet with an Initial Sequence Number (ISN). SYN is from a random (ephemeral) high port (1024~65535 [TCP/49805 in this case]) to a specific destination (in this case TCP/8080)

SYN/ACK: A second SYN from 8080 (from the server [TCP/8080]) and to the client (TCP/49805) as well as an ACK (acknowledgement) flag for the first SYN packet which corresponds with the ISN+1.

ACK: The acknowledgement from the client to the server ACK'ing the SYN in packet 2 with a sequence and acknowledgement value of 1 each.

此时,数据在源和目的地之间传输时,将有一堆PSH/ACK个数据包。

右边的数据包,正如我们提到的,显示 FIN/ACK。这用于优雅地关闭已经由两个设备建立的 TCP 会话。此外,尽管您没有询问,但 RST(重置)数据包将不正常地关闭 TCP 会话。