#+BEGIN_SRC plantuml :file images/tcp_connect.png &NBSP;TITLE&NBSP;TCP Connection established autonumber participant client participant server note over client , Server client and server initial state are in closed end note client -> server : syn (seq=x) activate Client note left: 3 The 1th step of the handshake, \ nthe client is in Syn_sent state Client <-- server : syn (seq=y,ack=x+1) activate server The 2nd step of the note right: 3 handshake, \ nthe server is in the SYN_RCVD state after that client -> server : (seq=x+1,ack=y+1) deactivate client deactivate serVer note left of client: 3 the 3rd step of the handshake, \nclient confirm that the server syn,\ N and in the established state note right of server: server SYN is confirmed by the client, \ Nserver also enters established state note over client , server 3 handshake ends, both client and server enter established status from now on both sides can transmit data end note #+end_src
650) this.width=650; "title=" Tcp_connect.png "src=" http://s3.51cto.com/wyfs02/M02/6B/CE/ Wkiol1u3b7vwfsdtaaic6ti7fmk189.jpg "alt=" Wkiol1u3b7vwfsdtaaic6ti7fmk189.jpg "/>
This article is from the "Tiandaochouqin" blog, make sure to keep this source http://lavenliu.blog.51cto.com/5060944/1637216
TCP connection Setup