2. Transport Service and Services Provides to the Upper
layers.
The aim of the transport layer is to provide
reliable data transmission to it’s users,
which is then processed in the application
layer.
For this, the transport layer takes the
services of the network layer.
We can say that the transport layer is
interface between the application layer
and network layer.
Figure shows that relationship among the network ,
transport and application layers:
3. Similar to the network layer services ,the transport layer also
has two types of transport layer services ,namely ,connection-
oriented service and connectionless service.
The connection-oriented transport layer services is very similar
to the connection-oriented network layer service.
Connection establishment and release procedure, flow control
and addressing mechanism are similar in both connection-
oriented network layer service and transport layer service.
In transport layer ,the code is executed on the user’s machine ,
whereas in the network layer ,the code is executed on the
router.
In a connectionless network layer, the transport entity identifies
the problem of losses and damaged data packets and then
re-transmits them.
4. Transport Service Primitives:
The transport layer allows a user to access the transport
services .it gives various operation to an application program to
access the transport service.
It also gives the facility to the application program to first
establish the Connection ,use and then release the
connection.
The transport service primitive are as follows:
Listen
Connect
Send and receive
Disconnect
5. LISTEN : This primitive is executed by the server by calling
the library function. This primitive blocks the server until the
client request for a connection.
Connect : This primitive is executed by client to establish a
connection with the server.
For this, the client sends the connection request segment to
the server to make a connection.
The software and hardware used by the transport layer(called
the transport entity) check if the server is blocked or not .if
the server is blocked, then the transport entity unblocks the
server.
After this , the server sends the connection accepted segment
to acknowledge the client about the connection acceptance.
6. SEND and RECEIVE : Both parities(client and server)
exchange data to each other by executing the SEND and
RECEIVE primitives.
If one party sends the data ,then the other party blocks
itself. when the data is received at the receiving end, it
unblock itself to receive and then send the data.
In this process , the receiver receives the segment first,
unblock it, and then processes the segment as well as
sends a segment to the sender as a reply.
Both the parties keeps tracks whose change to send the
data.
7. DISCONNECT : the primitive executes when the
established connection is no longer needed.
Disconnect primitive has two types : 1) Symmetric
2) asymmetric
Symmetric : In this type of primitive ,both parties
need to send the disconnect segment. if one party
sends the disconnect segment ,it means the party
wants to send more data and release the connection.
In such case ,the party who send the disconnect
segment waits to accept the data from the other party.
When both the parties send the disconnect segment ,
the connection is released or disconnected.
Asymmetric : in this type of primitives, a disconnect
segment is send to the transport entity .when the
segment arrives on the transport entity ,it
automatically disconnects the connection.
8. Figure shows a process of
establishing and
releasing connection
using the transport
primitives :