Different TCP flags serve various purposes while transmitting data packets over the internet. The 6 TCP flags are:
Urgent Pointer (URG)
Acknowledgment (ACK)
Push (PSH)
Reset (RST)
Synchronization (SYN)
Finish (FIN)