Documente Academic
Documente Profesional
Documente Cultură
Transport Layer
Transport Layer : Objectives
Describe the purpose of the transport layer in managing the
transportation of data in end-to-end communication.
Describe characteristics of the TCP and UDP protocols, including
port numbers and their uses.
Explain how TCP session establishment and termination processes
facilitate reliable communication.
Explain how TCP protocol data units are transmitted and
acknowledged to guarantee delivery.
Explain the UDP client processes to establish communication with a
server.
Determine whether high-reliability TCP transmissions, or non-
guaranteed UDP transmissions, are best suited for common
applications.
Role of the Transport Layer
The transport layer is responsible for establishing a temporary
communication session between two applications and delivering data
between them.
TCP/IP uses two protocols to achieve this:
Transmission Control Protocol (TCP)
User Datagram Protocol (UDP)
Primary Responsibilities of Transport Layer Protocols
Tracking the individual communication between applications on the
source and destination hosts
Segmenting data for manageability and reassembling segmented
data into streams of application data at the destination
Identifying the proper application for each communication stream
Transportation of Data
Role of the Transport Layer (Cont.)
Transportation of Data
Conversation Multiplexing
Segmenting the Data
Enables many different communications, from many different
users, to be interleaved (multiplexed) on the same network, at the
same time.
Provides the means to both send and receive data when running
multiple applications.
Header added to each segment to identify it.
Transportation of Data
Conversation Multiplexing (Cont.)
Transport Layer Protocols
Which is better?
Transportation of Data
The Right Transport Layer Protocol
TCP or UDP
There is a trade-off between the value of reliability and the burden it
places on the network.
Application developers choose the transport protocol based on the
requirements of their applications.
Transportation of Data
The Right Transport Layer Protocol (Cont.)
Port Number Fields
Teardown:
• freeing up resources after mutually close
TCP connection Establishment
Three way handshake:
Step 1: client (active open) sends TCP SYN segment to
server
• specifies initial seq #
• no data
The window size is the amount of data that a source can transmit
before an acknowledgement must be received.
Protocol Data Units
TCP Reliability – Data Loss and Retransmission
Data Loss and Retransmission
When TCP at the source host has not received an acknowledgement
after a predetermined amount of time, it goes back to the last
acknowledgement number that it received and retransmits data from
that point forward.
TCP Flow Control
Uses the Window Size field in the TCP header to specify
the amount of data that can be transmitted before an
acknowledgement must be received.
Adjusts the effective rate of data transmission to the
maximum flow that the network and destination device
can support without loss.
Manages the rate of transmission so that all data is
received and retransmissions are minimized.
Flow control cont’d
TCP Server Processes
TCP Server Processes (Cont.)
UDP Communication
UDP Low Overhead vs. Reliability
UDP:
Simple protocol that provides the basic transport layer function
Used by applications that can tolerate small loss of data
Used by applications that cannot tolerate delay