• 6、FIN-WAIT-1


    
    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:33.242077 IP node1.webcache > node2.56713: Flags [.], ack 426512848, win 227, options [nop,nop,TS val 22297511 ecr 317504797,nop,nop,sack 1 {426512847:426512848}], length 0
    20:15:33.243842 IP node1.webcache > node2.56713: Flags [F.], seq 2986175391, ack 426512848, win 227, options [nop,nop,TS val 22297513 ecr 317504797], length 0
    20:15:33.644417 IP node2.56713 > node1.webcache: Flags [F.], seq 426512847, ack 2986175391, win 115, options [nop,nop,TS val 317505199 ecr 22237249], length 0
    20:15:33.644440 IP node1.webcache > node2.56713: Flags [.], ack 426512848, win 227, options [nop,nop,TS val 22297913 ecr 317505199,nop,nop,sack 1 {426512847:426512848}], length 0
    20:15:33.646208 IP node1.webcache > node2.56713: Flags [F.], seq 2986175391, ack 426512848, win 227, options [nop,nop,TS val 22297915 ecr 317505199], length 0
    20:15:34.448287 IP node2.56713 > node1.webcache: Flags [F.], seq 426512847, ack 2986175391, win 115, options [nop,nop,TS val 317506003 ecr 22237249], length 0
    20:15:34.448315 IP node1.webcache > node2.56713: Flags [.], ack 426512848, win 227, options [nop,nop,TS val 22298717 ecr 317506003,nop,nop,sack 1 {426512847:426512848}], length 0
    20:15:34.451026 IP node1.webcache > node2.56713: Flags [F.], seq 2986175391, ack 426512848, win 227, options [nop,nop,TS val 22298720 ecr 317506003], length 0
    20:15:36.080695 IP node2.56713 > node1.webcache: Flags [F.], seq 426512847, ack 2986175391, win 115, options [nop,nop,TS val 317507620 ecr 22237249], length 0
    20:15:36.080711 IP node1.webcache > node2.56713: Flags [F.], seq 2986175391, ack 426512848, win 227, options [nop,nop,TS val 22300350 ecr 317506003], length 0
    20:15:36.080758 IP node1.webcache > node2.56713: Flags [.], ack 426512848, win 227, options [nop,nop,TS val 22300350 ecr 317507620,nop,nop,sack 1 {426512847:426512848}], length 0
    20:15:39.280813 IP node2.56713 > node1.webcache: Flags [F.], seq 426512847, ack 2986175391, win 115, options [nop,nop,TS val 317510836 ecr 22237249], length 0
    20:15:39.280866 IP node1.webcache > node2.56713: Flags [.], ack 426512848, win 227, options [nop,nop,TS val 22303550 ecr 317510836,nop,nop,sack 1 {426512847:426512848}], length 0
    20:15:39.296627 IP node1.webcache > node2.56713: Flags [F.], seq 2986175391, ack 426512848, win 227, options [nop,nop,TS val 22303566 ecr 317510836], length 0
    20:15:45.712998 IP node2.56713 > node1.webcache: Flags [F.], seq 426512847, ack 2986175391, win 115, options [nop,nop,TS val 317517268 ecr 22237249], length 0
    20:15:45.713018 IP node1.webcache > node2.56713: Flags [.], ack 426512848, win 227, options [nop,nop,TS val 22309982 ecr 317517268,nop,nop,sack 1 {426512847:426512848}], length 0
    20:15:45.728983 IP node1.webcache > node2.56713: Flags [F.], seq 2986175391, ack 426512848, win 227, options [nop,nop,TS val 22309998 ecr 317517268], length 0
    20:15:58.577267 IP node2.56713 > node1.webcache: Flags [F.], seq 426512847, ack 2986175391, win 115, options [nop,nop,TS val 317530132 ecr 22237249], length 0
    20:15:58.577294 IP node1.webcache > node2.56713: Flags [.], ack 426512848, win 227, options [nop,nop,TS val 22322846 ecr 317530132,nop,nop,sack 1 {426512847:426512848}], length 0
    20:15:58.593140 IP node1.webcache > node2.56713: Flags [F.], seq 2986175391, ack 426512848, win 227, options [nop,nop,TS val 22322862 ecr 317530132], length 0
    
    
  • 相关阅读:
    安卓手机root
    adb导出安卓 把手机内存文件导入到电脑里 adb安装软件
    象棋start
    当我new class的时候,提示以下错误: Unable to parse template "Class" Error message: This template did not produce a Java class or an interface Error parsing file template: Unable to find resource 'Package Header.j
    通信协议:HTTP、TCP、UDP
    根据地址获取经纬度
    chrome提示Adobe Flash Player过期解决
    spring mvc:实现给Controller函数传入list<pojo>参数
    [转]Hibernate入门:批量插入数据
    spring mvc:实现给Controller函数传入map参数
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13348476.html
Copyright © 2020-2023  润新知