Beruflich Dokumente
Kultur Dokumente
connection management
tio n granted
C o nnec
Transm
it data
time
time
ACK
Data
Application:
transactional (sell
duplicat 100000$ stocks)
e
RE Q
ACK
duplicat
What is this? e
Data
Oh my God!
Selling other 100000$
Too late!!!
stocks!!!!!
Y , ac k =X)
a n te d (seq=
n gr
Co nnectio
Acknow
ledge +
data (se
q= X, ack=
Y)
time
time
, AC KX
SEQ Y
Data SE
Q X, ACK
Y Application:
transactional (selling stocks)
duplicat
e
SE Q X
??? What a case: request with
A CK X same indicator X? anyway...
Z,
SEQ
duplicat
Data SE e
What is this? Q X, ACK What is this??? Should be
Not too late: Y
Reject S SEQ X, ACK Z!!!! STOP...
E Q X, A
CK Z
Ah ah! Got the problem!
ACTIVE
CK= 101)
OPEN SN=3 50, A
N, I
gr a n ted (SY
ction
C o nne
PASSIVE
Data seg OPEN
ment (s
eq=101,
ACK=3
51)
time
time
Full duplex connection: opened
in both ways
SRC: performs ACTIVE OPEN
DEST: Performs PASSIVE OPEN
G.Bianchi, G.Neglia, V.Mancuso
Initial Sequence Number
ÎShould change in time
ÖRFC 793 (but not all implementations are conforming)
suggests to generate ISN as a sample of a 32 bit counter
incrementing at 4us rate
Îtransmitted whenever SYN (Synchronize
sequence numbers) flag active
Önote that both src and dest transmit THEIR initial sequence
number (remember: full duplex)
ÎData Bytes numbered from ISN+1
Önecessary to allow SYN segment ack
time
time
Does not avoid fragmentation to occur WITHIN the network!!
CLOSE
TIMEOUT
TIMEOUT
ACK of FIN
TIME_WAIT
(30s - 2m)
ÎRST (Reset)
Ösent whenever a segment arrives and does not apparently
belong to the connection
Ötypical RST case: connection request arriving to port not in use
ÎSending RST within an active connection:
Öallows aborting release of connection (versus orderly release)
Æany queued data thrown away
Æreceiver of RST can notify app that abort was performed at other
end