【Wireshark Lab v8.0】Lab6:IP
以下实验步骤均来自实验指导手册。
实验指导手册下载地址:Jim Kurose Homepage (umass.edu)
1.Capturing packets from an execution of traceroute
由于traceroute不允许更改ICMP echo报文的大小,所以我们使用pingplotter,软件如下
2.A look at the captured trace
-
Select the first ICMP Echo Request message sent by your computer, and expand the Internet Protocol part of the packet in the packet details window.What is the IP address of your computer?
-
Within the IP packet header, what is the value in the upper layer protocol field?
-
How many bytes are in the IP header? How many bytes are in the payload of the IP datagram? Explain how you determined the number of payload bytes.
-
Has this IP datagram been fragmented? Explain how you determined whether or not the datagram has been fragmented.
-
Which fields in the IP datagram always change from one datagram to the next within this series of ICMP messages sent by your computer?
-
Which fields stay constant? Which of the fields must stay constant? Which fields must change? Why?
The fields that must stay constant are:
Version (since we are using IPv4),
header length (since these are UDP packets),
source IP (since all packets are sent from my computer),
destination IP (since we are sending to the same host),
Differentiated Services (since all packets are UDP),
Upper Layer Protocol (since these are UDP packets)
The fields that must change are:
Identification (IP packets have different ids),
Time to live (traceroute increments each packet),
Header checksum (since header changes)
-
Describe the pattern you see in the values in the Identification field of the IP datagram
Next (with the packets still sorted by source address) find the series of ICMP TTL exceeded replies sent to your computer by the nearest (first hop) router.
-
What is the value in the Identification field and the TTL field?
-
Do these values remain unchanged for all of the ICMP TTL-exceeded replies sent to your computer by the nearest (first hop) router? Why?
The values of identification field changes for all the ICMP TTL‐exceeded replies since the identification field is a unique value. If two or more IP datagrams have the same identification value, then it means that these IP datagrams are fragments of a single large IP datagram.
The TTL field was unchanged since the TTL for the nearest router is always the same
Fragmentation
-
Find the first ICMP Echo Request message that was sent by your computer after you changed the Packet Size in pingplotter to be 2000. Has that message been fragmented across more than one IP datagram? [Note: if you find your packet has not been fragmented, you should download the zip file http://gaia.cs.umass.edu/wireshark-labs/wireshark-traces.zip and extract the ip ethereal-trace-1packet trace. If your computer has an Ethernet interface, a packet size of 2000 should cause fragmentation.3] (待补充)
-
Print out the first fragment of the fragmented IP datagram. What information in the IP header indicates that the datagram been fragmented? What information in the IP header indicates whether this is the first fragment versus a latter fragment? How long is this IP datagram?(待补充)
More fragments被设置为 Set
Fragment Offset值为0
-
Print out the second fragment of the fragmented IP datagram. What information in the IP header indicates that this is not the first datagram fragment? Are the more fragments? How can you tell?(待补充)
-
What fields change in the IP header between the first and second fragment?
Fragment off
Now find the first ICMP Echo Request message that was sent by your computer after you changed the Packet Size in pingplotter to be 3500.(待补充)
-
How many fragments were created from the original datagram?
-
What fields change in the IP header among the fragments?
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· Docker 太简单,K8s 太复杂?w7panel 让容器管理更轻松!