0% found this document useful (0 votes)
17 views15 pages

Lec 05 Transport Layer

Uploaded by

Najib Hasan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views15 pages

Lec 05 Transport Layer

Uploaded by

Najib Hasan
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Computer Networks

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

Receives/relies services from

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.

 Application message = letters in the envelope


 Processes = cousins
 Hosts (end systems) = houses
 Transport-layer protocol = Jantje & Pietje
 Network-layer protocol = postal service (including mail carriers)

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

Establishment: Connection termination


three way handshake
31/07/2024 12
Reliable delivery
 Reliable services
 error control
o Detect and discard corrupted packets.
o Keep track of lost and discarded packets and resend them.
o Recognize duplicate packets and discard them.
 flow control
o Sender doesn’t overwhelm the receiver
 congestion control
o Manage network load within its capacity
 TCP
 Unreliable service
 UDP

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

You might also like