TCP Three-Way handshake

initialize TCP variables:

sequence numbers

buffers,flow control info


Client: connection initiator

Socket clientSocket = new Socket("hostname","portnumber");


Server: contacted by client

Socket connectionSocket  = welcomeScoket.accept();


Three-Way handshake:

step1: Client sends TCP SYN segment to server 

specifies initial seqnum = x

no data

step2: server receives SYN replies with SYN/ACK segment

server allocates buffers

specifies server initial seq =y

acknowledgement = x+1

step3: client receives SYN/ACK replies with ACK segment .which my contain data

acknowledgement = y+1


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章