




















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An overview of the transport layer, focusing on connectionless udp and connection-oriented tcp. Topics include transport services, multiplexing and demultiplexing, reliable data transfer, flow control, connection management, and congestion control. Understand the differences between udp and tcp, their segment structures, and how they ensure reliable data transfer.
Typology: Slides
1 / 60
This page cannot be seen from the preview
Don't miss anything!





















































Transport Layer 3-
CHAPTER 3 OUTLINE
»3.1 Transport-layer services
»3.2 Multiplexing and
demultiplexing
»3.3 Connectionless
transport: UDP
»3.4 Principles of reliable
data transfer
»3.5 Connection-oriented
transport: TCP
»3.6 Principles of congestion
control
»3.7 TCP congestion control
Transport Layer 3-
TRANSPORT SERVICES AND PROTOCOLS
application
transport
network
data link
physical
application
transport
network
data link
physical
network
data link
physical
network
data link
physical
network
data link
physical
network
data link
physical network
data link
physical
Transport Layer 3-
INTERNET TRANSPORT-LAYER PROTOCOLS
»reliable, in-order delivery
(TCP)
»unreliable, unordered
delivery: UDP
»services not available:
application
transport
network
data link
physical
application
transport
network
data link
physical
network
data link
physical
network
data link
physical
network
data link
physical
network
data link
physical network
data link
physical
Transport Layer 3-
CHAPTER 3 OUTLINE
»3.1 Transport-layer services
»3.2 Multiplexing and
demultiplexing
»3.3 Connectionless
transport: UDP
»3.4 Principles of reliable
data transfer
»3.5 Connection-oriented
transport: TCP
»3.6 Principles of congestion
control
»3.7 TCP congestion control
Transport Layer 3-
»host receives IP datagrams
» each datagram has source IP
address, destination IP address
» each datagram carries 1 transport-
layer segment
» each segment has source,
destination port number
(recall: well-known port numbers
for specific applications)
»host uses IP addresses & port numbers to
direct segment to appropriate socket
source port # dest port #
32 bits
Transport Layer 3-
CONNECTIONLESS DEMULTIPLEXING
»Create sockets with port
numbers:
DatagramSocket mySocket1 = new
DatagramSocket(99111);
DatagramSocket mySocket2 = new
DatagramSocket(99222);
»UDP socket identified by two-
tuple:
(dest IP address, dest port number)
»When host receives UDP
segment:
»IP datagrams with different
source IP addresses and/or
source port numbers directed
to same socket
Transport Layer 3-
CONNECTION-ORIENTED DEMUX
»TCP socket identified by 4-
tuple:
»recv host uses all four values
to direct segment to
appropriate socket
»Server host may support
many simultaneous TCP
sockets:
»Web servers have different
sockets for each connecting
client
Transport Layer 3-
CONNECTION-ORIENTED DEMUX (CONT)
Transport Layer 3-
CHAPTER 3 OUTLINE
»3.1 Transport-layer services
»3.2 Multiplexing and
demultiplexing
»3.3 Connectionless
transport: UDP
»3.4 Principles of reliable
data transfer
»3.5 Connection-oriented
transport: TCP
»3.6 Principles of congestion
control
»3.7 TCP congestion control
Transport Layer 3-
UDP: USER DATAGRAM PROTOCOL [RFC 768]
Why is there a UDP?
Transport Layer 3-
UDP CHECKSUM
Sender:
Receiver:
Goal: detect “errors” (e.g., flipped bits) in transmitted
segment
INTERNET CHECKSUM EXAMPLE
»Note
»Example: add two 16-bit integers