State the use of 6 flags in TCP header.
There are 6, 1-bit control bits that control connection establishment, termination, abortion, flow control etc..
1) URG: Urgent pointer
If this bit field is set the receiving TCP should interpret the urgent pointer field.
2) ACK: Acknowledgement
If this bit field is set the ACK field described earlier is valid.
3) PSH: Push function
Request for push
4) RST: Reset the connection
If this bit is present it signals the receiver that sender is aborting the connection i.e. Reset the connection.
5) SYN: Synchronize
When this bit field in present then the sender is attempting to „synchronize‟ sequence numbers
6) FIN: No more data from sender. If this bit is set then it terminates the connection.