Transport Layer Protocols
Transport Layer Protocols
UDP Segment
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.
UDP
Source Port: Source Port is a 2 Byte long field used
to identify the port number of the source.
Destination Port: This 2-byte element is used to
specify the packet's destination port.
Length: The whole length of a UDP packet, including
the data and header. The field has sixteen bits.
Cheksum: The checksum field is two bytes long. The
data is padded with zero octets at the end (if needed)
to create a multiple of two octets. It is the 16-bit one's
complement of the one's complement sum of the UDP
header, the pseudo-header containing information
from the IP header, and the data.
Advantages of UDP
UDP also provides multicast and broadcast
transmission of data.
UDP protocol is preferred more for small transactions
such as DNS lookup.
It is a connectionless protocol, therefore there is no
compulsion to have a connection-oriented network.
UDP provides fast delivery of messages.
Disadvantages of UDP
In UDP protocol there is no guarantee that the packet
is delivered.
UDP protocol suffers from worse packet loss.
UDP protocol has no congestion control mechanism.
UDP protocol does not provide the sequential
transmission of data.
2. TCP
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.
TCP Segment
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.
Advantages of SCTP
SCTP provides a full duplex connection. It can send
and receive the data simultaneously.
SCTP protocol possesses the properties of both TCP
and UDP protocol.
SCTP protocol does not depend on the IP layer.
SCTP is a secure protocol.
Disadvantages of SCTP
To handle multiple streams simultaneously the
applications need to be modified accordingly.
The transport stack on the node needs to be changed
for the SCTP protocol.
Modification is required in applications if SCTP is
used instead of TCP or UDP protocol.