tcp报文

tcp/ip 报文

tcp报文

tcp头部

  • TCP是用于提供可靠的全双工连接的主要传输协议, 头部长度(20bytes), 可选数据段长度(40bytes)
  • source port/destination port: 源端口/目的端口, 每个端口长度(2bytes/16bits)
  • sequence number: 序列号, 长度(4bytes/32bits)
  • acknowledgement number: 确人序列号, 长度(4bytes/32bits)
  • Hlen: 数据段开始位置, 长度(4bits)
  • reserved: 长度(3bits)
  • flag: 长度(9bits)
  • window: 标识所能接收的数据大小, 长度(2bytes/16bits)
  • checksum: 长度(2bytes/16bits)
  • urgent pointer: 长度(2bytes/16bits)

名词解释

  • maximum segment size(MSS) //TCP数据报的最大字节数,即从TCP头部开始直到报文末尾的字节数

tcp状态

  1. SYN_SEND
  2. SYN_RCVD
  3. ESTABLISHED
  4. FIN_WAIT_1
  5. CLOSE_WAIT
  6. FIN_WAIT_2
  7. LAST_ACK
  8. TIME_WAIT
  9. CLOSED

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注

这个站点使用 Akismet 来减少垃圾评论。了解你的评论数据如何被处理