前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >TCP Flags

TCP Flags

作者头像
用户8418197
修改2021-04-08 11:21:29
6430
修改2021-04-08 11:21:29
举报
文章被收录于专栏:howtouselinuxhowtouselinux

TCP flags are various types of flag bits present in the TCP header. Each of them has its own significance. They initiate connections, carry data, and tear down connections. The commonly used TCP flags are syn, ack, rst, fin, urg, psh.

This is from TCP Flags.

  • URG (1 bit – URGENT): The urgent flag is used to notify the receiver to process the urgent packets before processing all other packets. The receiver will be notified when all data has been received.
  • ACK (1 bit – ACKNOWLEDGE): The acknowledgment flag is used to acknowledge the successful receipt of a packet. The receiver sends an ACK as well as a SYN in the second step of the three way handshake process to tell the sender for receiving its initial packet.
  • PSH (1 bit – PUSH): Push flag is somewhat similar to the URG flag and tells the receiver to process these packets as they are received instead of buffering them.
  • RST (1 bit – RESET): Reset the connection. It indicates the receiver to terminate the connection immediately when unrecoverable errors occur. It causes both the sides to release the connection and all its resources abnormally. The transfer of data ceases in both the directions. It may result in the loss of data that is in transit.
  • SYN (1 bit – SYNCHRONIZE): It is used in first step of connection establishment phase or 3-way handshake process between the two hosts. This flag should be set to 1 when connection established between sender and receiver. This is used for synchronizing sequence number i.e. to tell the other end which sequence number they should accept.
  • FIN (1 bit – FINISH): It is used to request for connection termination i.e. termination of connection between sender and receiver when there is no more data. This is the last packet sent by sender. It frees the utilised resources and gracefully terminates the connection.

本文系转载,前往查看

如有侵权,请联系?cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系?cloudcommunity@tencent.com 删除。

评论
作者已关闭评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档
http://www.vxiaotou.com