Chapter 3 Part1
Chapter 3 Part1
Transport
Layer
Computer Networking: A
Top-Down Approach
8th edition
Jim Kurose, Keith Ross
Pearson, 2020
Transport Layer: 3-1
Transport layer: overview
Our goal:
understand learn about Internet
principles behind transport layer protocols:
transport layer • UDP: connectionless
services: transport
• multiplexing, • TCP: connection-oriented
demultiplexing reliable transport
• reliable data transfer • TCP congestion control
• flow control
• congestion control
lo g
running on different hosts
ica
le
transport protocols actions in end
nd
systems:
-en
• sender: breaks application messages
dt
local or
regional
into segments, passes to network
ra n
ISP
layer
sp
home network content
• receiver: reassembles segments into
ort
provider
messages, passes to application layer network datacenter
application
network
transport
network
two transport protocols available data link
physical
to Internet applications
enterprise
• TCP, UDP network
household analogy:
12 kids in Ann’s house sending
letters to 12 kids in Bill’s house:
hosts = houses
processes = kids
app messages = letters in
envelopes
transport protocol = Ann and
Bill who demux to in-house
siblings
network-layer protocol = postal
service
Sender:
is passed an application- app. msg
application
application
layer message
determines segment TT
hh app. msg
transport
transport header fields values
creates segment network
network (IP)
passes segment to IP (IP)
link
link
physical physical
Receiver:
receives segment from IP application
application
checks header values
app. msg
transport extracts application-layer transport
message
demultiplexes message network (IP)
network (IP)
up to application via link
link socket
physical physical
T app. msg
h
lo g
• congestion control
ica
• flow control
le
• connection setup
nd
-en
UDP: User Datagram Protocol
dt
local or
• unreliable, unordered delivery regional
ra n
ISP
• no-frills extension of “best-effort” IP
sp
home network content
ort
services not available: provider
network datacenter
• delay guarantees application
network
transport
network
• bandwidth guarantees data link
physical
enterprise
network
transport
Ht HTTP msg
transport
Ht HTTP msg
transport
Hnetwork
nHt
HTTP msg
transport transport
network link network
link physical link
physical physical
transport
transport
application
application application
transport transport
(UDP) (UDP)
network (IP)
network (IP)
link link
physical physical
data to/from
UDP segment format application layer
Transmitted: 5 6 11
Received: 4 6 11
receiver-computed
checksum
= sender-computed
checksum (as received)
sender: receiver:
treat contents of UDP compute checksum of received
segment (including UDP segment
header fields and IP
addresses) as sequence of check if computed checksum equals
16-bit integers checksum field value:
checksum: addition (one’s • Not equal - error detected
complement sum) of • Equal - no error detected. But
segment content maybe errors nonetheless? More
checksum value put into UDP later ….
checksum field
sum 1 0 1 1 1 0 1 1 1 0 1 1 1 1 0 0
checksum 0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 1