Wireshark Lab: TCP v7.0
0. 实验文件地址
http://www-net.cs.umass.edu/wireshark-labs/Wireshark_TCP_v7.0.pdf
序号(seq):用来标识从TCP发送端向TCP接收端发送的数据字节流。 它表示在这个报文段中的第一个数据字节。
举个例子:以下是一个文件被分成几个报文段
第一个报文段的序号为 0 , 第二个报文段的序号为 1000 。
确认序号(seq + 1):包含发送确认的一端所期望收到的下一个序号。因此,确认序号应该是 上次已成功收到的数据字节序号加1。还是看上图例子,假如接收端已经收到了第一个报文段(序号为0~999),那么它期望下一次接收的序号应该为1000,则该接收端的确认序号为1000。
下面是标志位对应的功能:
- URG:紧急指针有效。
- ACK:确认序号有效。
- PSH:接收方应尽快将这个报文段交给应用层。
- RST:重新连接。
- SYN:同步序号用来发起一个连接。
- FIN:发送端完成任务。
套接字 : 一个IP地址和一个端口号组合。
SYN = 1表示正在建立连接,SYN = 0表示连接已建立。
client_isn和server_isn都是随机生成的,目的就是为了防止被恶意攻击。
1. Capturing a bulk TCP transfer from your computer to a remote server
Packets Display
2. A first look at the captured trace
Question & Answer
- The IP address of the client computer is 192.168.1.102. The TCP port number is 1161.
- The IP address is 128.119.245.152. The TCP port number is 80.
- Sorry, I don't create my own trace.
3. TCP Basics
Question & Answer
- The sequence number of the TCP SYN segment is 0. Flags in the segment that identifies the segment as a SYN segment.
5. The sequence number of the SYNACK segment is 0. The value of the Acknowledgement field in the SYNACK segment is 1. Flags identifies the segment as a SYNACK segment.
- The sequence number of the TCP segment containing the HTTP POST command is 1.
7. The sequence numbers of the first six segments in the TCP connection are 1, 566, 2026, 3486, 4946, 6406.
8. The length of the first segment is 565, others are 1460.
-
5840.No throttle is made due to the lack of buffer space.
-
There is no retransmmited segment in the trace file.
-
164090 bytes.
-
164090 / 5.297341 = 30975.92
4. TCP congestion control in action
Question & Answer
13. To be continue
14. To be continue
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!