Open In App

How Many Flags in TCP Header?

Last Updated : 09 Apr, 2024
Improve
Improve
Like Article
Like
Save
Share
Report

Answer: TCP header consists of six flags, where each flag is one bit long.

TCP header consists of six flags that are used for controlling the flow of data for specific scenarios. Each flag in TCP header is one bit long. Below are the flags available in TCP header.

List of TCP flags

  1. Urgent Flag: Urgent Flag is know as URG flag. If one bit value is set for urgent Flag the data available is given higher priority over the other available data.
  2. Acknowledgement Flag: Acknowledgement flag is known as ACK flag. Acknowledgement flag is used for 3-way handshaking when the connection is established and during the transfer of data.
  3. Push Flag: Push flag is known as PSH flag. This one bit data in push Flag states that the data needs to be sent immediately and pn priority basis.
  4. Reset Flag: Reset flag is known as RST flag. This one bit flag is set in order to reset the TCP Connection.
  5. Synchronisation Flag: Synchronisation Flag is known as SYN flag. SYN flag is used to set the initial sequence number.
  6. Finish Flag: Finish flag is known as FIN flag. End of the TCP connection is indicated by the one bit flag.

Conclusion

Each flag available in TCP header is of 1-bit each where in all there are six flags. All the flags are important in order to control the flow of data.


Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads