Professional Documents
Culture Documents
(B)Sequence Control
• The second aspect of the reliability is sequence
control which is implemented at the transport
layer.
• On the sending end, the transport layer is
responsible for ensuring that the packets
received from the upper layers can be used by
the lower layers.
• On the receiving end, it ensures that the various
segments of a transmission can be correctly
reassembled.
SERVICES PROVIDED BY THE TRANSPORT LAYER
(C)Loss Control
• Loss Control is a third aspect of reliability. The
transport layer ensures that all the fragments of a
transmission arrive at the destination, not some of
them.
• On the sending end, all the fragments of
transmission are given sequence numbers by a
transport layer.
• These sequence numbers allow the receivers
transport layer to identify the missing segment.
SERVICES PROVIDED BY THE TRANSPORT LAYER
(D)Duplication Control
.
SERVICES PROVIDED BY THE TRANSPORT LAYER
(5)ADDRESSING
• A Transport Services Access Point (TSAP) is an
end-point for communication between the
Transport layer (layer 4) and the Session layer in
the OSI (Open Systems Interconnection) reference
model.
• Each TSAP is an address that uniquely identifies a
specific instantiation of a service.
• TSAPs are created by concatenating the node's
Network Service Access Point (NSAP) with a
transport identifier, and sometimes a packet and/or
protocol type. ( TSAP =“NSAP+Port No”)
SERVICES PROVIDED BY THE TRANSPORT LAYER
(5)ADDRESSING
TCP communication between two remote hosts is
done by means of port numbers (TSAPs). Ports
numbers can range from 0 – 65535 which are divided
as:
• System Ports (0 – 1023)
• User Ports ( 1024 – 49151)
• Private/Dynamic Ports (49152 – 65535)
.
SERVICES PROVIDED BY THE TRANSPORT LAYER
(5)ADDRESSING
• According to the layered model, the transport layer
interacts with the functions of the session layer.
• Many protocols combine session, presentation, and
application layer protocols into a single layer
known as the application layer.
• In these cases, delivery to the session layer means
the delivery to the application layer. Data generated
by an application on one machine must be
transmitted to the correct application on another
machine.
• In this case, addressing is provided by the
transport layer.
SERVICES PROVIDED BY THE TRANSPORT LAYER
(5)ADDRESSING
• The transport layer provides the user address which
is specified as a station or port. The port variable
represents a particular TS user of a specified station
known as a Transport Service access point (TSAP).
• Each station has only one transport entity.
.
SERVICES PROVIDED BY THE TRANSPORT LAYER
(5)ADDRESSING
.
TCP HEADER
• Flags (1-bit each)
oPSH - When set, it is a request to the receiving station
to PUSH data (as soon as it comes) to the receiving
application without buffering it.
oRST - Reset flag has the following features:
It is used to refuse an incoming connection.
It is used to reject a segment.
It is used to restart a connection.
oSYN - This flag is used to set up a connection between
hosts.
oFIN - This flag is used to release a connection and no
more data is exchanged thereafter. Because packets
with SYN and FIN flags have sequence numbers, they
are processed in correct order.
TCP HEADER
• Windows Size - This field is used for flow control
between two stations and indicates the amount of buffer
(in bytes) the receiver has allocated for a segment, i.e.
how much data is the receiver expecting.
• Checksum - This field contains the checksum of
Header and Data.
• Urgent Pointer - It points to the urgent data byte if
URG flag is set to 1.
Differences b/w TCP & UDP
Basis for TCP UDP
Comparison
Definition TCP establishes a virtual UDP transmits the data
circuit before transmitting directly to the destination
the data. computer without verifying
whether the receiver is ready
to receive or not.
Client Server
CONNECTION MANAGEMENT
•Establishment
•Release
Keep-alive timer:
• This timer is used to check the integrity and validity
of a connection.
• When keep-alive time expires, the host sends a
probe to check if the connection still exists.
TIMER MANAGEMENT
Retransmission timer:
• This timer maintains stateful session of data
sent.
• If the acknowledgement of sent data does not
receive within the Retransmission time, the data
segment is sent again.
TIMER MANAGEMENT
Persist timer:
• TCP session can be paused by either host by
sending Window Size 0.
• To resume the session a host needs to send Window
Size with some larger value.
• If this segment never reaches the other end, both
ends may wait for each other for infinite time.
• When the Persist timer expires, the host re-sends its
window size to let the other end know.
• Persist Timer helps avoid deadlocks in
communication.
TIMER MANAGEMENT
Timed-Wait: