The transport layer is the fourth layer in the OSI model and the second layer in the TCP/IP model. The transport layer provides with end to end connection between the source and the destination and reliable delivery of the services. Therefore transport layer is known as the end-to-end layer. The transport layer takes the services from its upward layer which is the application layer and provides it to the network layer. Segment is the unit of data encapsulation at the transport layer.
In this article, we are going to discuss all the important aspects of Transport Layer Protocol which include: Functions of Transport Layer protocol, characteristics of TLP, UDP & UDP Segemnts and their Advantages and Disadvantages, TCP & TCP Segemnts and their Advantages and Disadvantages, SCTP and its Advantages & Disadvantages.
The transport layer is represented majorly by TCP and UDP protocols. Today almost all operating systems support multiprocessing multi-user environments. This transport layer protocol provides connections to the individual ports. These ports are known as protocol ports. Transport layer protocols work above the IP protocols and deliver the data packets from IP serves to destination port and from the originating port to destination IP services. Below are the protocols used at the transport layer.
UDP stands for User Datagram Protocol . User Datagram Protocol provides a nonsequential transmission of data. It is a connectionless transport protocol. UDP protocol is used in applications where the speed and size of data transmitted is considered as more important than the security and reliability. User Datagram is defined as a packet produced by User Datagram Protocol. UDP protocol adds checksum error control, transport level addresses, and information of length to the data received from the layer above it. Services provided by User Datagram Protocol(UDP) are connectionless service, faster delivery of messages, checksum, and process-to-process communication.
While the TCP header can range from 20 to 60 bytes, the UDP header is a fixed, basic 8 bytes. All required header information is contained in the first 8 bytes, with data making up the remaining portion. Because UDP port number fields are 16 bits long, the range of possible port numbers is defined as 0 to 65535, with port 0 being reserved.
TCP stands for Transmission Control Protocol. TCP protocol provides transport layer services to applications. TCP protocol is a connection-oriented protocol. A secured connection is being established between the sender and the receiver. For a generation of a secured connection, a virtual circuit is generated between the sender and the receiver. The data transmitted by TCP protocol is in the form of continuous byte streams. A unique sequence number is assigned to each byte. With the help of this unique number, a positive acknowledgment is received from receipt. If the acknowledgment is not received within a specific period the data is retransmitted to the specified destination.
A TCP segment’s header may have 20–60 bytes. The options take about 40 bytes. A header consists of 20 bytes by default, although it can contain up to 60 bytes.
SCTP stands for Stream Control Transmission Protocol . SCTP is a connection-oriented protocol. Stream Control Transmission Protocol transmits the data from sender to receiver in full duplex mode. SCTP is a unicast protocol that provides with point to point-to-point connection and uses different hosts for reaching the destination. SCTP protocol provides a simpler way to build a connection over a wireless network. SCTP protocol provides a reliable transmission of data. SCTP provides a reliable and easier telephone conversation over the internet. SCTP protocol supports the feature of multihoming ie. it can establish more than one connection path between the two points of communication and does not depend on the IP layer. SCTP protocol also ensures security by not allowing the half-open connections.
SCTP makes use of 4-way handshake whereas TCP makes use of 3-way handshake. SCTP provides with protection against SYN flooding attacks, man in the middle attack, large cookies and half open connections.
The advantages of SCTP over TCP are SCTP has a fault tolerance mechanism and provides with protection against the attacks such as SYN flooding, man in the middle etc.
Comparing TCP and UDP, UDP protocol is more faster and efficient as compared to TCP. UDP protocol is a connectionless protocol and does not need to establish any connection for transmission of data.
Port number is used to identify a specific service or application on the system.
TCP ensures reliability through a mechanism called thrre-way Handshakeing mechanism.