Lec 05 Transport Layer
Lec 05 Transport Layer
Transport layer
31/07/2024 1
What we’ll study
Transport layer role and services
Develop/design some simple transport protocol
31/07/2024 2
Role of Transport Layer
Provide logical communication
between application processes
running on different hosts application
transport
network
Run on end hosts data link network
physical data link
Sender: breaks application network physical
lo
data link
gi
messages into segments,
ca
physical
le
network
and passes to network layer
nd
data link
-e
physical network
nd
data link
Receiver: reassembles segments physical
tr
an
into messages, passes to network
s
data link
po
application layer physical
rt
application
transport
network
data link
physical
3
Transport Layer Services
Application Layer
Gives services to
Transport Layer
End-to-end
Addressing De/Multiplexing
delivery
Connection Reliable
Control Delivery
Network Layer
31/07/2024 4
Process-to-process delivery
Several processes (application programs) can run on both the source
and the destination host
31/07/2024 5
Analogy
Two houses, each with a dozen of kids, are located in Eindhoven and
Amsterdam.
All kids in different houses are relatives (cousins)
Each kid weekly writes a letter to every other kid in another house
144 letters/week in total (huge cost)
o Dutch kids would probably use e-mail (low cost)
In each household there is one kid (Jantje & Pietje, respectively)
responsible for mail collection and mail distribution
each week they give all the letters to a postal-service mail carrier who makes
daily visits to the house.
31/07/2024 6
Addressing
Data link - MAC address
Network – IP address
Transport – port number
needed to chose among multiple processes running on the
destination host
The Internet model: 16 bit integer 0 – 65 535
o Client mostly chooses ephemeral port number
o Server mostly uses well-known (permanent) port numbers
ephemeral well-known
port number port number
31/07/2024 7
Addressing
Internet Assined Number Authority
De/Encapsulation
31/07/2024 8
IP addressing versus port addressing
destination IP defines the host
after the host has been selected:
the port number defines one of the processes on this host
31/07/2024 9
Transport layer MUX & DeMUX
Transport layer de/multiplexes several processes on the transport
layer protocol
31/07/2024 10
Connection control
Connectionless services
no connection establishment
packets are not numbered, may be delayed, lost or arrive out of order
UDP
31/07/2024 11
Connection control
Connection-oriented services
connection established prior to data transmission
TCP
What is the difference with respect to the Network layer services?
transport code runs only on the user’s machine and not in the routers
(usually operated by the carriers)
Network layer can offer inadequate service (frequent packet loss, routers
crash from time to time); user does not have control over the Network layer
31/07/2024 13
Reliable delivery
Question: Do we need reliable transport service if the Data
link transport is reliable?
Yes
31/07/2024 14
Thank You!
31/07/2024 15