A transmission control block (TCB) created by the TCB module identified by the socket descriptor.
It is initiated to an FSM state CLOSED.
2) The Application calls connect() API providing the remote socket data.
The TCB sends a SYN packet with its starting sequence number.
TCB FSM state:- SYN_SENT.
3)
- EVENT => If it receives a SYN msg, TCB FSM => SYN_RCVD and it sends a ACK.
- EVENT=> It it receives a SYN_ACK msg, TCB FSM => ESTABLISHED
5) EVENT:- When the Application calls close(), ACTION: Send FIN, TCB FSM => FIN_WAIT1
6)
- EVENT:TCB recieves ACK , TCB FSM=> FIN_WAIT2
- Recieve FIN, Send ACK , TCB FSM => TIME WAIT
- EVENT: TCB recieves FIN-ACK, TCB FSM=>CLOSING
- Recieve ACK for FIN, TCB FSM=> TIME_WAIT ..Wait to ensure that the ACK is recieved and prevent potential overlap with new connections.