6、FIN-WAIT-1
主动关闭的一方发送了 FIN 包,等待对端回复 ACK 时进入FIN-WAIT-1状态。
客户端:
node2:/root#netstat -na | grep 8080
tcp 0 1 192.168.137.3:56713 192.168.137.2:8080 FIN_WAIT1
模拟拒绝 服务端的192.168.137.2所有连接:
iptables -I INPUT -s 192.168.137.2 -j DROP
服务端:
node1:/root#netstat -na | grep 8080
tcp 0 0 192.168.137.2:8080 0.0.0.0:* LISTEN
tcp 1 1 192.168.137.2:8080 192.168.137.3:56713 LAST_ACK
20:15:33.041400 IP node2.56713 > node1.webcache: Flags [F.], seq 426512847, ack 2986175391, win 115, options [nop,nop,TS val 317504596 ecr 22237249], length 0
20:15:33.043300 IP node1.webcache > node2.56713: Flags [F.], seq 2986175391, ack 426512848, win 227, options [nop,nop,TS val 22297311 ecr 317504596], length 0
20:15:33.242050 IP node2.56713 > node1.webcache: Flags [F.], seq 426512847, ack 2986175391, win 115, options [nop,nop,TS val 317504797 ecr 22237249], length 0
20:15:
6、FIN-WAIT-1
最新推荐文章于 2023-02-14 16:43:41 发布