Documente Academic
Documente Profesional
Documente Cultură
Hema A Murthy
a ck
/- data
ack
n +
Close file Close / fin Estd Sy
k Three way handshake
ac
fin /ack
in
/f
simultaneous close
se
lo
C
Close
fin /ack wait
fin Closing
wait 1
fin /ack ack Close / fin
ack ack Time
dnwait Wait
fin
2MSL ack
wait 2 fin /ack Timeout
Passive close
closed
Active close Ack/-
host1 host2
CR(seq
= x)
k=x)
y , ac
s e q=
(
ac k
Data (seq=x
, ack=y)
Indian Institute of Technology Madras
Computer Networks Prof. Hema A Murthy
Delayed Duplicates
X Old duplicate
CR
from released connection
(seq=
x)
= x) h2
h1 ck
e q=y, a
k (s
W/o h1’s Ac
Re
je c
knowledge t (a
ck=
y)
f h2
CR (
seq=
x)
Old duplicate
seq =y)
x, No TPDUs with seqy to be
ack=
f Data
(seq acknowledged
h1 Old du =x, a
plicate ck=z
Reje )
ct(ac
k=y)
Indian Institute of Technology Madras
Computer Networks Prof. Hema A Murthy
Releasing Connections
• Symmetric
– requires each to release separately
• Asymmetric
– similar to the telephone system
– A party hangs up connection broken
• Symmetric
– When everything goes well fin
– If all’s not well requires a timeout
TCP Disconnection
h2
CR
h1
ACC
data
data
DR
data
h1 h2
DR
DR
ack
X
Time out release
Indian Institute of Technology Madras
Computer Networks Prof. Hema A Murthy
timeout
DR
X
DR
DR
release ack
release
X
DR Time out release
X
Time out
Seq
=4k 1k 2k
Indian Institute of Technology Madras
Computer Networks Prof. Hema A Murthy
Timeout
Threshold
32