Open In App

What is Transmission Control Protocol (TCP)?

Improve
Improve
Like Article
Like
Save
Share
Report

TCP (Transmission Control Protocol) is one of the main protocols of the Internet protocol suite. It lies between the Application and Network Layers which are used in providing reliable delivery services.

In this article, we will discuss about Transmission control protocol in detail. We will also discuss IP, the Difference between TCP and IP, and the working process of IP here. Let’s proceed with the definition of TCP First.

What is Transmission Control Protocol (TCP)?

Transmission Control Protocol is a connection-oriented protocol for communications that helps in the exchange of messages between different devices over a network. The Internet Protocol (IP), which establishes the technique for sending data packets between computers, works with TCP.

The position of TCP is at the transport layer of the OSI model. TCP also helps in ensuring that information is transmitted accurately by establishing a virtual connection between the sender and receiver.

TCP/IP Layer

What is Internet Protocol (IP)?

Internet Protocol is a method that is useful for sending data from one device to another from all over the internet. Every device contains a unique IP Address that helps it communicate and exchange data across other devices present on the internet.

For more, you can refer to the TCP/IP Model.

Working of Transmission Control Protocol (TCP)

To make sure that each message reaches its target location intact, the TCP/IP model breaks down the data into small bundles and afterward reassembles the bundles into the original message on the opposite end. Sending the information in little bundles of information makes it simpler to maintain efficiency as opposed to sending everything in one go. 

After a particular message is broken down into bundles, these bundles may travel along multiple routes if one route is jammed but the destination remains the same.

Transmission Control Protocol

TCP

For Example: When a user requests a web page on the internet, somewhere in the world, the server processes that request and sends back an HTML Page to that user. The server makes use of a protocol called the HTTP Protocol. The HTTP then requests the TCP layer to set the required connection and send the HTML file.

Now, the TCP breaks the data into small packets and forwards it toward the Internet Protocol (IP) layer. The packets are then sent to the destination through different routes.

The TCP layer in the user’s system waits for the transmission to get finished and acknowledges once all packets have been received.

Features of TCP/IP

Some of the most prominent features of Transmission control protocol are mentioned below.

  • Segment Numbering System: TCP keeps track of the segments being transmitted or received by assigning numbers to each and every single one of them. A specific Byte Number is assigned to data bytes that are to be transferred while segments are assigned sequence numbers. Acknowledgment Numbers are assigned to received segments.
  • Connection Oriented: It means sender and receiver are connected to each other till the completion of the process. The order of the data is maintained i.e. order remains same before and after transmission.
  • Full Duplex: In TCP data can be transmitted from receiver to the sender or vice – versa at the same time. It increases efficiency of data flow between sender and receiver. 
  • Flow Control: Flow control limits the rate at which a sender transfers data. This is done to ensure reliable delivery. The receiver continually hints to the sender on how much data can be received (using a sliding window).
  • Error Control: TCP implements an error control mechanism for reliable data transfer. Error control is byte-oriented. Segments are checked for error detection. Error Control includes – Corrupted Segment & Lost Segment Management, Out-of-order segments, Duplicate segments, etc.
  • Congestion Control: TCP takes into account the level of congestion in the network. Congestion level is determined by the amount of data sent by a sender.

Advantages of TCP

  • It is a reliable protocol.
  • It provides an error-checking mechanism as well as one for recovery.
  • It gives flow control.
  • It makes sure that the data reaches the proper destination in the exact order that it was sent.
  • Open Protocol, not owned by any organization or individual.
  • It assigns an IP address to each computer on the network and a domain name to each site thus making each device site to be distinguishable over the network.

Disadvantages of TCP

  • TCP is made for Wide Area Networks, thus its size can become an issue for small networks with low resources.
  • TCP runs several layers so it can slow down the speed of the network.
  • It is not generic in nature. Meaning, it cannot represent any protocol stack other than the TCP/IP suite. E.g., it cannot work with a Bluetooth connection.
  • No modifications since their development around 30 years ago.

Frequently Asked Questions on TCP – FAQs

What is three-way handshake in TCP?

Three Way Handshake is a process that is used to establish a connection between Client and Server. It has three steps of process.

What is the purpose of TCP Header?

TCP Header contains the important information for the proper delivery of the data. It contains port numbers, acknowledgement numbers, flags, etc.

Can TCP handles both reliable and unreliable data transfer?

TCP is designed for reliable data transfer. For Unreliable data transfer, User Datagram Protocol is a better choice.


Last Updated : 26 Feb, 2024
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads