×

Transmission Control Protocol

Transmission Control Protocol: TCP stands for Transmission Control Protocol. It was introduced in 1974. It is a connection-oriented and reliable protocol. It establishes a connection between the source and destination device before starting the communication. It detects whether the destination device has received the data sent from the source device or not. If the received data is not in the proper format, it sends the data again. TCP is highly reliable because it uses a handshake and traffic control mechanism. In the TCP protocol, the receiver receives the data in the same sequence in which the sender sends it. We use the TCP protocol services in our daily life, such as HTTP, HTTPS, Telnet, FTP, SMTP, etc.

Transmission Control Protocol

Importance of UDP

  • The TCP protocol is used to transfer data where, you need accuracy and reliability rather than the speed.
  • Both TCP and UDP can check for errors, but only TCP can fix the error because it can control the traffic and flow of data.

TCP Segment Format

In the TCP, the data packet is called a segment. The size of the header in the segment is 20 to 60 bytes. The segment format of TCP is shown below the figure.

Transmission Control Protocol
  • Source Port Address: The size of the source port is 16 bits. It is used to define the port address of the application that sends the segment.
  • Destination Port Address: The size of the destination port is 16 bits. The destination port is used to define the port address of the application that receives the segment.
  • Sequence Number: The size of the sequence number is 32 bits. It defines the unique number of the data in the segment.
  • Acknowledgment number: The size of the acknowledgment number is 32 bits.
  • Header Length: The size of the header length is 4 bits. It indicates the header of the application. The header length can be lies between 20 and 60 bytes. Therefore, the value of this field is 5 (5 × 4 = 20) and 15 (15 × 4 = 60).
  • Reserved: The size of this field is 6 bits. This field is for future uses.
  • Control Flag: The size of this field is 6 bits. It defines the six different control bits or flags, as shown in the figure.
Transmission Control Protocol
Transmission Control Protocol
  • Window Size: The size of the window field is 16 bits. It defines the size of the sending window of the sender.
  • Checksum: The size of the checksum field is 16 bits. The checksum field is used for error control. It is mandatory in TCP.
  • Urgent Pointer: The size of the urgent pointer field is 16 bits, which is only required when the URG flag is set. It is used for urgent data in the segment.
  • Options and Padding: The size of options and padding field vary from 0 to 40 bytes.

Advantages of TCP

  1. Retransmission: In the TCP, when a data fail, this protocol sends that data again after a specific time.
  2. TCP can fix the error because it can control the flow-control and congestion control.
  3. TCP can easily detect the errors.
  4. In the TCP protocol, the receiver receives the data in the same sequencer in which the sender sends it.

Disadvantages of TCP

  1. The data transfer speed of the TCP protocol is less than the UDP protocol.
  2. TCP protocol cannot broadcast and multicast the message.

Related Topics

Fixed and Flooding Routing Algorithms

Introduction Before going to study fixed and flooding routing algorithms, we have to take a look back to revisit the topic of routing. Routing can be defined as Routing: What is it? Routing...

3 minutes read.

IPv4 vs IPv6

What is an IP? The process or protocol used to transmit data from one computer to another over the internet is known as Internet Protocol (IP). Every computer connected to the...

5 minutes read.

Integrated Services Digital Network (ISDN)

Integrated Services Digital Network (ISDN): ISDN means Integrated Services Digital Network. ISDN was developed by ITU-T in the 1980s. These are digital telephony and data transport services offered by regional...

3 minutes read.

E-mail in Computer Network

E-mail E-mail stands for electronic mail. E-mail is an application layer service in which a user can transfer the messages and information with another user. E-mail is the most popular service...

2 minutes read.

Transport Layer in OSI Model

This article will help you in getting a good understanding of the transport layer in the OSI model. The transport layer is the fourth layer from the bottom in the OSI...

4 minutes read.

Error Correction and Error Detection

Error Correction and Error Detection Error correction and error detection techniques are work on the data-link layer. The data link layer ensures the frames are sent from the sender to the...

16 minutes read.

What is Framing in a Computer Network?

In the stream of bits, the data is stored by transmitting the bit by the connection of two devices through cable. This type of connection for data transmission is called...

6 minutes read.

Data Link Control

Data Link Control Data-link control is the main function of the data link layer. It deals with the configuration and coordination for connection between two neighboring nodes: node-to-node communication. The task...

10 minutes read.

Star Topology in Computer Networks

Star topology comes from or is a part of the network topology which was invented by Dr.Howard Frank. It is also to be known as star network because of its...

4 minutes read.

TCP Ports

What is TCP? TCP is a transport layer protocol that helps to establish connections. TCP means Transmission Control Protocol. It guarantees secure data transmission between two network-connected devices. The data can...

5 minutes read.

Domain Name System in Computer Network

Domain Name System Domain Name System is also called DNS. DNS was introduced by Paul Mockapetris and Jon Postel in 1983. DNS is an internet service that converts Domain names to...

2 minutes read.

Uses of Computer Networks

During the twentieth century, the most significant technology is information collecting, processing, and distribution. Computers and communications have been integrated, which has considerably influenced the organization of computer systems. The previous...

6 minutes read.

Advantages and Disadvantages of MAN

Before we move to advantages and disadvantages of MAN, first we discuss about what is MAN and what are its examples. A network that encircles a city or a sizable university...

3 minutes read.

User Datagram Protocol

User Datagram Protocol: UDP stands for the User Datagram Protocol. UDP was developed by David P Reed in 1980. It is a connection-less and unreliable protocol. In this protocol, when...

2 minutes read.

Advantages and Disadvantages of LAN

Before we move to advantages and disadvantages of LAN, first we discuss about what is LAN. Local area network is referred to by its abbreviation, LAN. A system that connects PCs...

3 minutes read.

Transmission Media

Transmission Media: The physical layer directly controls transmission media. A transmission medium is a way which transmits the data from one place to another. It carries the data from source...

5 minutes read.

Cryptography in Computer Network

Cryptography: Cryptography is derived from the Greek word, which means "Hidden Secrets." In other words, it is an art in which we can protect our data and information. Through cryptography,...

2 minutes read.

Transmission Mode (Data Flow)

Introduction The exchange of information between two people via a wired or wireless medium is referred to as communication. The OSI (Open System Interconnection) model of computer networks consists of seven...

6 minutes read.

Advantages and Disadvantages of WAN

Before we move to advantages and disadvantages of WAN, first we discuss about what is WAN and what are its features. A wide area network is a vast network of information...

4 minutes read.

Types of Computer Network: LAN, MAN, WAN and PAN

PAN: Personal Area Network PAN stands for Personal Area Network. It is designed for a very short distance (1 to10 m), such as a single room. This type of network can...

3 minutes read.