Lecture 4_CSC523_Computer Networks
Lecture 4_CSC523_Computer Networks
Layer
log
ica
transport protocols actions in end
le
n d-
systems:
e nd
local or
tra
• sender: breaks application messages regional ISP
nsp
into segments, passes to network layer
ort
home network content
• receiver: reassembles segments into provider
network
messages, passes to application layer application
transport
datacenter
network
network
two transport protocols available to data link
physical
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
Transport Layer: 3-5
Transport vs. network layer services and protocols
Sender:
application
is passed an application- app. msg
application
layer message
determines segment TThtransport
app. msg
transport h
Receiver:
application receives segment from IP application
checks header values
app. msg
transport extracts application-layer transport
message
network (IP) demultiplexes message up network
to application via socket (IP)
link
link
physical physical
Th app. msg
log
• congestion control
ica
le
• flow control
n d-
e nd
• connection setup local or
tra
regional ISP
UDP: User Datagram Protocol
nsp
ort
home network
• unreliable, unordered delivery content
provider
network
• no-frills extension of “best-effort” IP application
transport
datacenter
network
network
services not available: data link
physical
transport
Hn Ht HTTP msg
transport
application
application application
transport transport
(UDP) (UDP)
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)
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
Note: when adding numbers, a carryout from the most significant bit needs to be
added to the result
* Check out the online interactive exercises for more examples: h ttp://gaia.cs.umass.edu/kurose_ross/interactive/
Transport Layer: 3-33
Internet checksum: weak protection!