TCP or transmission control protocol operates at the transport layer of the OSI model. It facilitates transmission between packets from source to destination in a reliable manner as it is a connection-oriented protocol. TCP operations are divided into three phases namely –
- connection establishment,
- data transfer phase and
- connection termination.
TCP connection is managed by the operating system through a resource which represents the local end point for communications. The lifetime of a TCP connection goes through various stages.
Today we look more in detail about 11 states of TCP connection, how it works, and its diagrammatic presentation for ease of understanding.
A TCP connection is full duplex and established using a three-way handshake.
A connection in TCP passes through a series of states during its timespan. These states are namely –
- TIME-WAIT and
- Fictional state CLOSED.
11 States of TCP
Let’s look more in detail about each of the connection states.
A TCP connection moves from one state to another in response to events.