Explain TCP connection establishment and tear down ?
Tcp connection is made as follows:
1) sender and receiver synchronizes so that a connection is made. The OS in both the end are informed that a conenction is established.
2) then sender starts transmitting data. it also gets acknowledgements. a timer is started as soon as the sender starts sending data.
3) if the sender has not received any ack even after the timer exceeds it limit, then it retransmits data.
4) in case of windowing,if the buffer on the receiver is full, the receiver sends a stop signal to the sender. the sender stops transmitting data.
5) then after processing all data, the receiver sends a go signal to the sender. then, the sender starts transmitting data again. this is in case of windowing.