Flags in TCP represent the state of connection. It is also used to supply more information for troubleshooting or take control of a specific connection.