TCP connection is a full duplex connection which is not actually a wired connection but it maintains connectivity between two end processes. This is established between a single sender and a single receiver and is thus referred as a “point to point” connection. Before, one application process can send data over a TCP connection, a handshake is essentially required which involves initialization of many TCP variables. It provides a reliable connection by preventing packets from getting corrupted and dropped.
TCP connection serves two important purposes with respect to the health of a network which are flow control and congestion control.
The TCP connection establishment involves the following three steps:
In connection oriented protocols buffers are present at the sender and the receiver side. Due to finite buffer size at the receiver, we need a mechanism which will tell the sender about the buffer size of the receiver beforehand. This is catered by TCP flow control. “Receive Window” (16 bits) in the TCP caters for flow control. We have to synchronize the sender and receiver in way, such that:
Receive Window = Receive buffer – {Last byte received –last byte Read}
Last byte sent – last byte acknowledged ≤ Receive Window
Receive Window indicates the amount of data that can travel over the network, while Receive Buffer indicates is the amount of data that can be buffered at the receiver.
TCP sender needs to maintain only the smallest sequence number of a transmitted but unacknowledged byte (Send Base) and the sequence number of the next byte to be sent (NextSeqNum). Thus TCP resembles GBN (Go Back N) protocol.
GBN and TCP protocols differ from each other in a way that when packet is lost, GBN will transmit all the subsequent packets from n, n+1, n+2………N. On the other hand TCP will only retransmit one segment n, or it may not retransmit segment n, if the acknowledgement for segment “n+1” arrived before the timeout for segment n.
Read Further
What is the Main Cause of a Heart Attack? What is its Solution? A heart attack is the blockage of… Read More
In the vast economic arena, one term that often takes center stage, inciting extensive debates and discussions, is the "debt… Read More
De-Dollarization: The Changing Face of Global Finance The financial landscape is in a state of flux, with an intriguing economic… Read More
The curtains closed on a dramatic Bundesliga season with Bayern Munich standing tall once again, clinching their 11th straight title.… Read More
The Unfolding Story of Celine Dion's Health In recent news that has left fans across the globe stunned, iconic singer… Read More
As the echoes of the recent NBA season start to fade, the attention of enthusiasts is firmly glued to one… Read More
View Comments
Nice piece of information.