network tcpip - ghdrako/doc_snipets GitHub Wiki

TCP handshake

Sender              Reciver
SYN(x=rand)---------->
<-----------SYN ACK(x+1,y=rand)
ACK(y+1,x+1)--------->
DATA TRANSMITION

3-Way handshake made TCP Connection expensive, so reuse TCP connection is critical optimization.

TCP Fast Open (TFO)

TFO allowing transfer data with SYN packet, but SYN packet size is limites.