Chapter 9: Transport Layer
Chapter 9: Transport Layer
3
Transportation of Data
Role of the Transport Layer
Responsible for establishing a
temporary communication session
between two applications and
delivering data between them.
Link between the application layer
and the lower layers that are
responsible for network transmission.
Transportation of Data
Transport Layer Responsibilities
Tracking the Conversation -
Tracks each individual
conversation flowing between a
source and a destination
application.
Segmentation - Divides the data
into segments that are easier to
manage and transport. Header
used for reassembly is used for
tracking.
Identifying the Application -
Ensures that even with multiple
applications running on a device,
all applications receive the
correct data via port numbers.
Transportation of Data
Conversation Multiplexing
Segmenting the data into smaller chunks enables many different communications to be
multiplexed on the same network.
Transportation of Data
Transport Layer Reliability
TCP/IP provides two transport
layer protocols:
• Transmission Control Protocol
(TCP)
• Considered reliable which ensures
that all of the data arrives at the
destination.
• Additional fields needed in header
which increases size and delay.
• User Datagram Protocol (UDP)
• Does not provide for reliability.
• Fewer fields and is faster than TCP.
Transportation of Data
TCP TCP transport is similar to
sending tracked packages. If
a shipping order is broken up
into several packages, a
customer can check online to
see the order of the delivery.
Transportation of Data
TCP (Cont.)
Transportation of Data
TCP (Cont.) TCP Three Responsibilities:
Numbering and tracking data segments
No acknowledgment
Similar to a non-registered
letter
Transportation of Data
The Right Transport Layer Protocol for the Right Application
Example: 192.168.1.7:80
Well
Known
Port
Numbers
TCP and UDP Overview
The netstat Command
Network utility that
can be used to verify
connections
By default, will
attempt to resolve IP
addresses to domain
names and port
numbers to well-
known applications
-n option used to
display IPs and ports
in numerical form
9.2 TCP and UDP
23
TCP Communication Process
TCP Server Process
TCP Communication Process
TCP Server Process (Cont.)
TCP Communication Process
TCP Connection Establishment
Step 2 – Server
acknowledges and
requests a session with
client.
TCP Communication Process
TCP Session Termination
UDP reassembles
data in order received
and forwards to
application
Application must
identify the proper
sequence
TCP frees
applications
from having to
manage
reliability
TCP or UDP
Applications that use UDP
Three types of
applications best
suited for UDP:
Live video and
multimedia
Simple request
and reply
Handle reliability
themselves