TCP Connection Establishment (original) (raw)

Last Updated : 11 Jul, 2025

TCP (Transmission Control Protocol) is a core internet protocol that ensures reliable, ordered, and error-checked delivery of data between computers. It establishes a connection using a three-way handshake before data transfer begins, allowing both devices to synchronize and agree on communication parameters. TCP breaks data into packets, manages their delivery by resending lost packets, and reassembles them in the correct order. This makes TCP ideal for applications like web browsing, email, and file transfers where accuracy and reliability are important.

**TCP Connection Establishment

1. Sender starts the process with the following:

2. TCP is a full-duplex protocol so both sender and receiver require a window for receiving messages from one another.

Therefore, receiver can send maximum of 14600/500 = 29 packets.
This is the receiver's sending window size.

Therefore, sender can send a maximum of 10000/500 = 20 packets.
This is the sender's sending window size.

3. Sender makes the final reply for connection establishment in the following way:

Since the connection establishment phase of TCP makes use of 3 packets, it is also known as 3-way Handshaking (SYN, SYN + ACK, ACK).

**TCP Flags Used in Connection Establishment

TCP uses special flags to manage connections between devices such as:

**Common Issues in TCP Connection Establishment

Sometimes, problems can occur while setting up a connection. Here are some common issues:

**How to Optimize TCP Connection Establishment?

To make TCP connections faster and more reliable, here are some useful methods:

Practice GATE IT 2008 | Question 67 based on three-way handshake process.

Also, read about TCP Connection Termination.

**What does "established" mean in TCP?

"Established" in TCP means a connection is successfully set up between two devices, allowing data transfer after completing the three-way handshake.

**What is the TCP connection limit?

The limit depends on system resources and configurations, but most modern systems support thousands to millions of concurrent connections.

**What is the speed limit of a TCP connection?

TCP speed depends on factors like network bandwidth, latency, congestion, and window size, but it has no fixed limit.