Packets don't lie
前言
题目信息
数据包信息
λ capinfos printpain.pcapng
File name: printpain.pcapng
File type: Wireshark/... - pcapng
File encapsulation: Ethernet
File timestamp precision: microseconds (6)
Packet size limit: file hdr: (not set)
Number of packets: 854
File size: 1071 kB
Data size: 1041 kB
Capture duration: 127.885457 seconds
First packet time: 2013-11-07 13:28:13.967672
Last packet time: 2013-11-07 13:30:21.853129
Data byte rate: 8144 bytes/s
Data bit rate: 65 kbps
Average packet size: 1219.70 bytes
Average packet rate: 6 packets/s
SHA256: a81f71187fa52516fc27a5d5e561bf44d5d54e1dfc8cb3be9e080d0bc793933b
RIPEMD160: d12c9eb5956dd124f99887c9fb6b0a16c7496ff7
SHA1: 8ade6e77ef0719632c1cd26ecf06c89dac051341
Strict time order: True
Capture oper-sys: 32-bit Windows 7 Service Pack 1, build 7601
Capture application: Dumpcap 1.8.6 (SVN Rev 48142 from /trunk-1.8)
Capture comment: Copyright Chappell University <[email protected]> Troubleshooting with Wireshark: Locate the Source of Performance Problems ISBN: 978-1-893939-9-74 You may not reproduce, duplicate, copy, sell, trade, resell, or exploit for any commercial purposes, this trace file or any trace file available at www.wiresharkbook.com.
Number of interfaces in file: 1
Interface #0 info:
Name = DeviceNPF_{6C89B4B8-5C6E-437A-9BA1-CFEF8F98C68D}
Encapsulation = Ethernet (1 - ether)
Capture length = 65535
Time precision = microseconds (6)
Time ticks per second = 1000000
Time resolution = 0x06
Operating system = 32-bit Windows 7 Service Pack 1, build 7601
Number of stat entries = 1
Number of packets = 854
λ
数据包分析
Packet List
最右侧会有一些黑色告警信息的提示,点选可知基本都是 TCP 零窗口以及 TCP 窗口满提示。1. What is the make and model of the target printer?
分析步骤
Pakcet List
视图中 Protocol 均是 TCP ,协议分层统计信息中也没有比较特殊的专有协议。题目提到了打印机,简单通过服务端口 9100 查了下,大概是 HP 打印机。Follow
-> TCP Stream
得到PJL(打印机工作语言),由惠普公司开发的打印机命令语言,可在打印作业级别提供打 印机控制。使用 PJL 命令,可以更改默认打印机设置,如要打印的份数。
分析答案
2. What file is being printed?
分析步骤
Follow
-> TCP Stream
得到相关信息分析答案
3. What is the maximum TCP receive buffer size advertised by the printer?
分析步骤
Window
和 Window size scaling factor
的乘积,也就是字段 [Calculated window size]
的值。可通过在 Pakcet List
视图中增加列信息,字段值为:tcp.window_size
分析答案
4. What three characteristics make frame 179 a “window zero probe?”
分析步骤
-
首先客户端根据打印机所通知的窗口值,结合自己所发送的数据分段大小,得知对端打印机的接收窗口满,No.173 标记 TCP Window Full
。注:这个标记指的是对端 TCP 窗口满。 -
No.174 打印机因为自身零窗口 Win 0 , 所以标记为 TCP ZeroWindow; -
No.175 为客户端所发送的 TCP 零窗口探测包,以查看打印机的零窗口是否依然存在,打印机会对这个零窗口探测进行 ACK 回复,即 No.176; -
以此类推,如果打印机回复窗口大小仍然为零,则客户端的探测计时器加倍。
TCP ZeroWindowProbe
的定义TCP ZeroWindowProbe
分析答案
5. What is the largest delay between a Window Full indication and a Window Update?
分析步骤
TCP Window Full
到 No.185 TCP Window Update
之间的时间延迟为 25.682732 秒。同样,可以点选 No.173 后右键选择 Set/Unset Time Reference
后,将 No.173 作为基准时间(即作为第一个数据帧),同时在 Pakcet List
视图中增加列信息,字段值为 frame.time_relative
,那么 No.185 相距第一个数据帧 No.173 的时间差值为 25.682732 秒。
Pakcet List
视图中增加列信息,字段值为:frame.time_delta_displayed
,并从大到小排列找到最大差值。分析答案
往期推荐
原文始发于微信公众号(Echo Reply):Wireshark TS | Packet Challenge 之 Window 案例分析
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论