Unit4 Transport Layer
Unit4 Transport Layer
The transport Layer is the second layer in the TCP/IP model and the fourth
layer in the OSI model. It is an end-to-end layer used to deliver messages to a
host. It is termed an end-to-end layer because it provides a point-to-point
connection rather than hop-to-hop, between the source host and destination
host to deliver the services reliably.
The data link layer is responsible for delivery of frames between two
neighboring nodes over a link. This is called node-to-node delivery.
The network layer is responsible for delivery of datagrams between two hosts.
This is called host-to-host delivery.
Real communication takes place between two processes (application
programs). This is called process-to-process delivery.
The transport layer is responsible for process-to-process delivery-the delivery
of a packet, part of a message, from one process to another.
• The transport layer provides a logical communication between application
processes running on different hosts.
• The transport layer protocols are implemented in the end systems but not in
the network routers.
• 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.
Figure 4.1 shows these three types of deliveries and their domains
Responsibilities of a Transport Layer
Connectionless Service
In a connectionless service, the packets are sent from one party to another with no
need for connection establishment or connection release. The packets are not
numbered; they may be delayed or lost or may arrive out of sequence. There is no
acknowledgment either.
Connection-Oriented Service
Destination port address: It is used to define the address of the application program
in a destination computer. It is a 16-bit field.
Sequence number: A stream of data is divided into two or more TCP segments. The 32-
bit sequence number field represents the position of the data in an original data stream.
Header Length (HLEN): It specifies the size of the TCP header in 32-bit words. The
minimum size of the header is 5 words, and the maximum size of the header is 15 words.
the maximum size of the TCP header is 60 bytes, and the minimum size of the TCP header
is 20 bytes.
Reserved: It is a six-bit field which is reserved for future use.
Control bits: Each bit of a control field functions individually and independently. A
control bit defines the use of a segment or serves as a validity check for other fields.
Differences b/w TCP & UDP
• Connection setup is an asymmetric activity (one side does a passive open and the other
side does an active open) connection teardown is symmetric (each side has to close
the connection independently).
• Therefore it is possible for one side to have done a close, meaning that it can no longer
send data but for the other side to keep the other half of the bidirectional connection
opens and to continue sending data.
THREE WAY HANDSHAKES:
The algorithm used by TCP to establish and terminate a connection is called a three
way handshake. The client (the active participant) sends a segment to the
server(the passive participation) stating the initial sequence number it plans to
use(flag =SYN, SequenceNum =x).
The server then responds with a single segment that both acknowledges the client‟s
sequence number (Flags =ACK, Ack=x+1) and states its own beginning seque
nce number
(Flags=SYN, SequenceNum=y).
QoS Specification –
QoS requirements can be specified as:
Delay
Delay Variation(Jitter)
Throughput
Error Rate
There are two types of QoS Solutions: