CITS3002 Computer Networks  
prev
next CITS3002 help3002 CITS3002 schedule  

TCP/IP 3-way connection establishment and sequence numbers

A three-way handshake is employed in TCP's internal open sequence.

If machine A wishes to establish a connection with machine B, A transmits the following message:

  A->B : SYN, ISNa

This initial packet request has the synchronize sequence number bit (SSN) set in its header, and an initial 32-bit unsigned sequence number ISNa.

B replies with:

  B->A : SYN, ISNb, ACK(ISNa)

to provide its own initial sequence number, ISNb, and to acknowledge ISNa.

A will finally acknowledge ISNb with

  A->B : ACK(ISNb)

and the connection is established. May be of interest: the Byzantine Generals' Problem.

handshake



CITS3002 Computer Networks, Lecture 8, Transport layer protocols and APIs, p5, 24th April 2024.