Transmission Control Protocol

Overview[1]#

Transmission Control Protocol (TCP) is a core protocol of the Internet protocol suite.

Transmission Control Protocol originated in the initial network implementation in which it complemented the Internet Protocol (IP). Therefore, the entire suite is commonly referred to as TCP-IP.

Transmission Control Protocol provides reliable, ordered, and error-checked delivery of a stream of octets between applications running on hosts communicating over an IP network. Major Internet applications such as the World Wide Web, email, remote administration and file transfer rely on TCP.

Applications that do not require reliable data stream service may use the User Datagram Protocol (UDP), which provides a connectionless datagram service that emphasizes reduced latency over reliability.

Transmission Control Protocol Protocol operation#

TCP protocol operations may be divided into three phases.

A TCP connection is typically managed by an Operating System through a Application Programing Interface (API) that represents the local Endpoint for communications, the Internet socket. During the lifetime of a TCP connection the local end-point undergoes a series of state changes:

Connection establishment#

To establish a connection, TCP uses a three-way handshake. Before a client attempts to connect with a server, the server must first bind to and listen at a port to open it up for connections: this is called a passive open. Once the passive open is established, a client may initiate an active open. To establish a connection, the three-way (or 3-step) handshake occurs: At this point, both the client and server have received an Acknowledgement of the connection. The steps 1, 2 establish the connection parameter (sequence number) for one direction and it is acknowledged. The steps 2, 3 establish the connection parameter (sequence number) for the other direction and it is acknowledged. With these, a full-duplex communication is ESTABLISHED.

More Information#

There might be more information for this subject on one of the following: