• tcp 发送报文长度和响应报文长度


    TCP 报文的请求报文长度和响应报文长度:
    
    
    
    node1:/root#tcpdump -S -i eth1 '((tcp) and  (port 8080) and (host 192.168.137.2) )' 
    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
    listening on eth1, link-type EN10MB (Ethernet), capture size 65535 bytes
    01:11:14.812018 IP 192.168.137.1.52071 > node1.webcache: Flags [S], seq 1945533048, win 8192, options [mss 1460,nop,wscale 2,nop,nop,sackOK], length 0
    01:11:14.812048 IP node1.webcache > 192.168.137.1.52071: Flags [S.], seq 4068079463, ack 1945533049, win 14600, options [mss 1460,nop,nop,sackOK,nop,wscale 6], length 0
    01:11:14.812887 IP 192.168.137.1.52071 > node1.webcache: Flags [.], ack 4068079464, win 16425, length 0
    
    01:11:14.812917 IP 192.168.137.1.52071 > node1.webcache: Flags [P.], seq 1945533049:1945533058, ack 4068079464, win 16425, length 9
    01:11:14.812925 IP node1.webcache > 192.168.137.1.52071: Flags [.], ack 1945533058, win 229, length 0
    01:11:14.813111 IP node1.webcache > 192.168.137.1.52071: Flags [P.], seq 4068079464:4068079482, ack 1945533058, win 229, length 18
    01:11:14.813852 IP 192.168.137.1.52071 > node1.webcache: Flags [F.], seq 1945533058, ack 4068079482, win 16420, length 0
    01:11:14.813970 IP node1.webcache > 192.168.137.1.52071: Flags [F.], seq 4068079482, ack 1945533059, win 229, length 0
    01:11:14.814490 IP 192.168.137.1.52071 > node1.webcache: Flags [.], ack 4068079483, win 16420, length 0
    
    
    9
    response:111111111
    
    发送长度9 ,响应长度18 为实际发送数据的长度和实际接收的长度
  • 相关阅读:
    org.eclipse.core.internal.registry.ExtensionsParser的流程分析
    控件设计时的属性页定位办法
    IE的内存泄漏问题
    <<深入剖析ASP.NET组件设计>>的一个辅助类
    midp2.0 图片文件名问题
    解决了XMLTextReader的用法的一个难题,EndElement
    J2ME开发心得
    解决Js内存泄漏问题的代码片断
    asp.net代码中尖括号和百分号的含义
    string.Format和cookie代码
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13348436.html
Copyright © 2020-2023  润新知