Professional Documents
Culture Documents
Transport Layer
Week 5-Lecture 1
application underlying
application layer protocol transport protocol
no need to write
transport
network
data link application
processes running on
different hosts
lo
gi
ca
transport protocols run in
l
en
d-
end systems
en
d
send side: breaks app
tra
ns
messages into segments,
po
rt
passes to network layer
application
rcv side: reassembles transport
network
segments into messages, data link
physical
passes to app layer
more than one transport
protocol available to apps
Internet: TCP and UDP Transport Layer 3-8
Internet transport-layer protocols
application
reliable, in-order transport
network
lo
data link physical
gi
physical
flow control
ca
network
l
data link
en
connection setup physical
d-
en
network
d
unreliable, unordered
tra
data link
physical
ns
delivery: UDP
po
network
data link
rt
physical
no-frills extension of network
data link application
“ best-effort” IP physical
network
data link
transport
network
data link
services not available:
physical
physical
delay guarantees
bandwidth guarantees
clients:
communicate with server
client/server may be intermittently
connected
may have dynamic IP
addresses
do not communicate directly
with each other
Application Layer 2-10
Application Layer 2-11
Processes communicating
process: program running clients, servers
within a host client process: process that
within same host, two initiates communication
processes communicate server process: process
using inter-process that waits to be contacted
communication (defined by
OS)
processes in different hosts
communicate by
exchanging messages
The port number is a 16-bit number ranging from 0 to 65,535, with ports
0-1023 restricted by well-known applications like HTTP and FTP.
application
application application
network network
connection
SYN: used in establishing connection
FIN: release connection, no more data
LAST_ACK
FINbit=1, seq=y
TIMED_WAIT can no longer
send data
ACKbit=1; ACKnum=y+1
timed wait
for 2*max CLOSED
segment lifetime
CLOSED
Ack.no. 0
160.221.172.250 Window 8192
LEN = 0 bytes
Ack.no. 8657
Ack.no. 80010
Window 8760
LEN = 0 bytes
Seq.no. 8657
Ack.no. 80010
Window 8760
Ack.no. 8729
Window 8688
LEN = 60 bytes of
data
Seq.no. 8729
Ack.no. 80070
Window 8700
LEN = 156 bytes
of data
Ack.no. 8885
Window 8532
LEN = 152 bytes of
data
Ack.no. 80222
Window 8548
LEN = 0 bytes
Ack.no. 8886
Window 8532
LEN = 0 bytes
Ack.no. 80223
Window 8548
LEN = 0 bytes