tcp/ipmessagetcpmessagetcpheaderTCP是主要的传输协议,用于提供可靠的全双工连接,报头长度(20bytes),可选数据段长度(40bytes)sourceport/destinationport:源端口/目的端口,每个端口的长度(2bytes/16bits)sequencenumber:序列号,长度(4bytes/32bits)acknowledgementnumber:确认号,长度(4bytes/32bits)Hlen:数据段的开始Position,长度(4bits)reserved:length(3bits)flag:length(9bits)window:标识可以接收的数据大小,length(2bytes/16bits)checksum:length(2bytes/16bits)urgentpointer:length(2bytes/16bits)名词解释最大段大小(MSS)//一个TCP数据报的最大字节数,即从TCP头到报文末尾的字节数tcp状态SYN_SENDSYN_RCVDESTABLISHEDFIN_WAIT_1CLOSE_WAITFIN_WAIT_2LAST_ACKTIME_WAITCLOSED
