标志 3字符缩写 描 述
S SYN 同步序号
F FIN 发送方完成数据发送
R RST 复位连接
P PSH 尽可能快地将数据送往接收进程
. 以上四个标志比特均置0
node2:/root/test#netstat -na | grep 9090
tcp 0 0 192.168.137.3:46772 192.168.137.2:9090 FIN_WAIT2
node1:/root/test#netstat -na | grep 9090
tcp 0 0 0.0.0.0:9090 0.0.0.0:* LISTEN
tcp 0 0 192.168.137.2:9090 192.168.137.3:46772 CLOSE_WAI
08:22:27.137358 IP node2.46772 > node1.websm: Flags [S], seq 2005546350, win 14600, options [mss 1460,sackOK,TS val 86899574 ecr 0,nop,wscale 7], length 0
08:22:27.137613 IP node1.websm > node2.46772: Flags [S.], seq 71170429, ack 2005546351, win 14480, options [mss 1460,sackOK,TS val 93251074 ecr 86899574,nop,wscale 6], length 0
08:22:27.137648 IP node2.46772 > node1.websm: Flags [.], ack 1, win 115, options [nop,nop,TS val 86899574 ecr 93251074], length 0
08:22:27.137922 IP node2.46772 > node1.websm: Flags [F.], seq 1, ack 1, win 115, options [nop,nop,TS val 86899575 ecr 93251074], length 0
08:22:27.139026 IP node1.websm > node2.46772: Flags [.], ack 2, win 227, options [nop,nop,TS val 93251076 ecr 86899575], length 0
node2:/root/test#python test.py
('192.168.137.3', 46772)
('192.168.137.2', 9090)