zoukankan      html  css  js  c++  java
  • 服务端close_wait 模拟

    标志        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)
  • 相关阅读:
    private知识笔记
    finalize知识笔记
    java实现队列的练习
    测试知识笔记(2)
    static和final知识笔记
    测试知识笔记(1)
    overloading知识笔记
    windows Copssh + git 搭建git服务器
    Java Servlet规范
    身份证验证JS代码
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13348562.html
Copyright © 2011-2022 走看看