The TCP finite state machine,it can be considered to describe different stages of a connection or life stages. if there is no connection between two TCP device then they both will be in null state and then proceeds through a series of states util a connection is established. Different states cycle of TCP finite machine can be seen in this attached image. It first establish the connections and then it closed when gets signal or something that causes the connection to be closed then proceeds to another states and returns to closed state. Reference: http://www.tcpipguide.com/free/t_TCPOperationalOverviewandtheTCPFiniteStateMachineF-2.htm
I want to know that what TCP does internally while establishing a connection between client and server ?