6.2 Elements of Transport Protocols
6.2 Elements of Transport Protocols
Chapter6 TransportLayer
6.2ElementsofTransportProtocols
Dr. Mostafa Hassan Dahshan
Department of Computer Engineering
College of Computer and Information Sciences
ElementsofTransportProtocols
ElementsofTransportProtocols
Data link layer
Transport layer
explicit addressing of
destination is required
Connection
establishment
more complicated
Delay
Buffering and
flow control
simpler
more complicated;
large and dynamic number of
simultaneous connections
3
Addressing
Addressing
Addressing
How host1 process knows TSAP # at host2?
Stable TSAP # listed in wellknown places
Addressing
Addressing
User does CONNECT request
ConnectionEstablishment
ConnectionEstablishment
Solutions for delayed duplicates
Not reuse transport address (TSAP)
problem
problems
ConnectionEstablishment
mostly used
ConnectionEstablishment
New method with packet lifetime bounded
Label segments with seq # not reused in T
T and packet rate determine size of seq #s
1 packet w given seq # may be outstanding
Duplicates may still occur, but discarded dst
Not possible to have delayed duplicate old
packet with same seq # accepted at dest
12
ConnectionEstablishment
How to deal with losing memory after crash?
Each host has timeofday clock
ConnectionEstablishment
ConnectionEstablishment
Normal Procedure
H1 choses initial s# x
H2 replies
CR = Connection Request
ACKs x
announce own s# y
H1replies
ACKs y
with 1st data segment
15
ConnectionEstablishment
Abnormal situations
Delayed duplicate CR
H2 sends ACK to H1
H1 rejects
H2 knows it was tricked
Worst case
DD CR, old ACK floating
X
X
16
ConnectionRelease
Asymmetric release
17
ConnectionRelease
Symmetric release
Each direction is released independently
Can receive data after sending DISCONNECT
H1: I am done, are you done too?
H2: I am done too, goodbye
Twoarmy problem: unreliable channel
18
ConnectionRelease
Twoarmy problem
each blue army < white army, but together are larger
need to sync attack
however, only com channel is the valley (unreliable)
3way handshake? B1 cant know ACK arrived
making 4way handshake doesnt help either
Attack?
Attack?
19
ConnectionRelease
20
ConnectionRelease
Error cases, handled by timers, retransmissions
Lost DR:
H1 starts over
Extreme:
Many lost DRs
both release after N
21
ConnectionRelease
Multiplexing
Multiplexing
Inverse Multiplexing
23