What Is Transmission Control Protocol (TCP) - GeeksforGeeks

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

DSA Data Structures Algorithms Interview Preparation Data Science Topic-wise Practice

What is Transmission Control Protocol (TCP)?


Difficulty Level :
Basic ● Last Updated :
29 Nov, 2021

Read Discuss

TCP (Transmission Control Protocol) is one of the main protocols of the Internet

protocol suite. It lies between the Application and Network L ayers which are used in

providing reliable deliver y ser vices. It is a connection-oriented protocol for

communications that helps in the exchange of messages between the different

devices over a network.

TCP/IP L ayer

Working of TCP

To make sure that each message reaches its target location intact, the TCP/IP model

breaks down the data into small bundles and af ter ward reassembles the bundles into

the original message on the opposite end. Sending the information in little bundles of
Start Your Coding Journey Now!
information makes it simpler to maintain efficiency as opposed to sending ever ything

Login Register
in one go. 

Af ter a par ticular message is broken down into bundles, these bundles may travel

along multiple routes if one route is jammed but the destination remains the same.

We can see that the message is being broken down, then reassembled from a different order at the destination

For example, When a user requests a web page on the internet, somewhere in the

world, the ser ver processes that request and sends back an HTML Page to that user.

The ser ver makes use of a protocol called the HT TP Protocol. The HT TP 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 for wards it towards the Internet

Protocol (IP) layer. The packets are then sent to the destination through different

routes.
Start Your Coding Journey Now!
The TCP layer in the user ’s system waits for the transmission to get finished and

Login Register
acknowledges once all packets have been received.

Features of TCP/IP

Some of the most prominent features of Transmission control protocol are

1. Segment Numbering System

TCP keeps track of the segments being transmitted or being received by assigning

numbers to each and ever y 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.

2. Flow Control

Flow control limits the rate at which a sender transfers data. This is done to ensure

reliable deliver y.

The receiver continually hints the sender on how much data can be received (using

a sliding window)

3. 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.

4. 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

It is a reliable protocol

It provides an error-checking mechanism as well as one for recover y

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


Start Your Coding Journey Now!
It assigns an IP address to each computer on the network and a domain name to

Login Register
each site thus making each device site to be distinguishable over the network.

Disadvantages

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.

Like 27

Next

User Datagram Protocol (UDP)

RECOMMENDED ARTICLES Page : 1 2 3

When Transmission Control TCP with explicit link failure


01 05
Protocol (TCP) most appropriate? notification (TCP-ELFN)
15, Oct 21 06, Jan 20

Difference between Simplex


02
Transmission Modes and Full
Duplex Transmission Modes TCP Tahoe and TCP Reno
06 07, Feb 22
11, Jan 21

Difference between Half duplex


Transmission Modes and Full Construct a simple HTTP request
Start
03 Your
Duplex Coding Journey
Transmission Modes Now! Login
07 on TCP protocol
Register
11, Jan 21
11, Jan 21

Difference between Simplex


04
Transmission Modes and Half
Duplex Transmission Modes TCP Congestion Control
11, Jan 21
08 31, Oct 17

Ar ticle Contributed By :

jaygala260
@jaygala260

Vote for difficulty

Current difficulty :
Basic

Easy Normal Medium Hard Expert

Article Tags : Picked, Computer Networks, Computer Subject

Practice Tags : Computer Networks

Improve Article Report Issue

A-143, 9th Floor, Sovereign Corporate Tower,

Sector-136, Noida, Uttar Pradesh - 201305


[email protected]
Start Your Coding Journey Now! Login Register
Company Learn
About Us Algorithms
Careers Data Structures
In Media SDE Cheat Sheet
Contact Us Machine learning
Privacy Policy CS Subjects
Copyright Policy Video Tutorials
Courses

News Languages
Top News
Python
Technology
Java
Work & Career
CPP
Business
Golang
Finance
C#
Lifestyle
SQL
Knowledge
Kotlin

Web Development Contribute


Web Tutorials Write an Article
Django Tutorial Improve an Article
HTML Pick Topics to Write
JavaScript Write Interview Experience
Bootstrap Internships
ReactJS Video Internship
NodeJS

@geeksforgeeks
, Some rights reserved

You might also like