UNIT 4 CN
UNIT 4 CN
UNIT 4 CN
Transport Layer
o The transport layer is a 4th layer from the top.
o The main role of the transport layer is to provide the communication services
directly to the application processes running on different hosts.
o The transport layer provides a logical communication between application
processes running on different hosts. Although the application processes on
different hosts are not physically connected, application processes use the
logical communication provided by the transport layer to send the messages to
each other.
o The transport layer protocols are implemented in the end systems but not in
the network routers.
o A computer network provides more than one protocol to the network
applications. For example, TCP and UDP are two transport layer protocols that
provide a different set of services to the network layer.
o All transport layer protocols provide multiplexing/demultiplexing service. It also
provides other services such as reliable data transfer, bandwidth guarantees,
and delay guarantees.
o Each of the applications in the application layer has the ability to send a
message by using TCP or UDP. The application communicates by using either
of these two protocols. Both TCP and UDP will then communicate with the
internet protocol in the internet layer. The applications can read and write to
the transport layer. Therefore, we can say that communication is a two-way
process.
The services provided by the transport layer protocols can be divided into five
categories:
o End-to-end delivery
o Addressing
o Reliable delivery
o Flow control
o Multiplexing
UDP Protocol-
Characteristics of UDP-
• It is a connectionless protocol.
• It is a stateless protocol.
• It is an unreliable protocol.
• It is a fast protocol.
• It offers the minimal transport service.
• It is almost a null protocol.
• It does not guarantee in order delivery.
• It does not provide congestion control mechanism.
• It is a good protocol for data flowing in one direction.
Need of UDP-
UDP Header-
2. Destination Port-
3. Length-
4. Checksum-
• Applications which require one response for one request use UDP. Example- DNS.
• Routing Protocols like RIP and OSPF use UDP because they have very small amount of
data to be transmitted.
• Trivial File Transfer Protocol (TFTP) uses UDP to send very small sized files.
• Broadcasting and multicasting applications use UDP.
• Streaming applications like multimedia, video conferencing etc use UDP since they
require speed over reliability.
• Real time applications like chatting and online games use UDP.
• Management protocols like SNMP (Simple Network Management Protocol) use UDP.
• Bootp / DHCP uses UDP.
• Other protocols that use UDP are- Kerberos, Network Time Protocol (NTP), Network
News Protocol (NNP), Quote of the day protocol etc.
Characteristics Of TCP-
Point-01:
This is because-
Point-02:
TCP is a connection oriented protocol.
This is because-
• TCP establishes an end to end connection between the source and destination.
• The connection is established before exchanging the data.
• The connection is maintained until the application programs at each end finishes
exchanging the data.
Point-03:
• TCP handles congestion and flow control by controlling the window size.
• TCP reacts to congestion by reducing the sender window size.
Point-04:
• TCP ensures that the data packets get deliver to the destination in the same order they
are sent by the sender.
• Sequence Numbers are used to coordinate which data has been transmitted and
received.
Point-05:
• TCP connection allows to send data in both the directions at the same time.
• So, TCP connections are Full Duplex.
Point-06:
Point-07:
Point-08:
• Application layer sends data to the transport layer without any limitation.
• TCP divides the data into chunks where each chunk is a collection of bytes.
• Then, it creates a TCP segment by adding IP header to the data chunk.
• TCP segment = TCP header + Data chunk.
Point-09:
TCP provides error checking and recovery using three simple techniques-
1. Checksum
2. Acknowledgement
3. Retransmission
Definition TCP establishes a virtual circuit UDP transmits the data directly to the de
before transmitting the data. without verifying whether the receiver is
not.
acknowledgement It waits for the acknowledgement of data and has It neither takes the ackno
the ability to resend the lost packets. retransmits the damaged