...
https://networklessons.com/cisco/ccie-routing-switching-written/tcp-header
FLAGS | there are 9 bits for flags, we also call them control bits. We use them to establish connections, send data and terminate connections: |
---|---|
URG | urgent pointer. When this bit is set, the data should be treated as priority over other data |
ACK | used for the acknowledgment. |
PSH | this is the push function. This tells an application that the data should be transmitted |
RST | this resets the connection, when you receive this you have to terminate the connection right away. T |
SYN | we use this for the initial three way handshake and it’s used to set the initial sequence number. |
FIN | this finish bit is used to end the TCP connection. TCP is full duplex so both parties will have to use the FIN bit to end the connection. This is the normal method how we end an connection. |