Three-way handshake:
PC1 —— PC2
PC1 transmits syn = 1,
Its sequence number seq = x, PC1
We look forward to the next sequence number -
x+1.
PC2 sends an acknowledgment ack = 1,
Confirm each other the next sequence number
- ack = x + 1, while PC2
Establishing a connection syn = 1, which is
No. seq = y, the same period
Their number is to be y + 1.
PC1 confirm the connection ack = 1
Confirm each other number seq = y + 1
Their number seq = x + 1. -
==================================================
Four wave:
PC1 —— PC2
Fin-wait-1:
Transmission fin, ack = 1 -
seq = u (latest sequence number + 1)
:Close-wiat-1
Send ack = 1, confirm ack = u + 1
Fin-wait-2: - their number seq = v.
:Last-ack-1
Transmission fin, ack = 1
—— seq=w.
Time-wait:
Send ack = 1, seq = u + 1,
ack=w+1 . ——
—— : Close
2*MSL: