《计算机网络:自顶向下方法》实验7:IP协议分析 WireShark实验

1

What is the IP address of your computer?

我的电脑的IP地址是:192.168.1.102

在这里插入图片描述

2

Within the IP packet header, what is the value in the upper layer protocol field?

在这里插入图片描述
协议栏值为ICMP (1)

3

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.

在这里插入图片描述

  • IP头部有20字节
  • IP数据报中负载为64字节,因为总长度是84字节,减去20字节的头部信息就是64字节。

4

Has this IP datagram been fragmented? Explain how you determined whether or
not the datagram has been fragmented.

在这里插入图片描述
从图中可以看出

  1. 保留位,未使用
  2. 不允许分片:否
  3. 存在更多分片:否
    偏移量为0,所以可以看除,该包已经装下了所有数据,是最后一个片,没有分片

5

Which fields in the IP datagram always change from one datagram to the next
within this series of ICMP messages sent by your computer?

在这里插入图片描述
在这里插入图片描述

Frame 8Frame 10
Identification: 0x32d0 (13008)Identification: 0x32d1 (13009)
Time to Live: 1Time to Live: 2
Header Checksum: 0x2d2c [validation disabled]Header Checksum: 0x2c2b [validation disabled]

可以观察得知,IdentificationTime to LiveHeader Checksum三个属性总是会变。

6

Which fields stay constant? Which of the fields must stay constant? Which fields
must change? Why?

must stay constant

  • Version : 因为在用IPv4
  • Header Length: 因为这些是UDP包,需要确定头部长度
  • Differentiated Services Field : 因为这些都是UDP包
  • Protocol : 上层使用的协议都是UDP,不然不会在一个系列里
  • Source Address : 都从我的机器发出去
  • Destination Address : 都要发到目标服务器上

stay constant

  • Total Length 报文总长度
  • Flags 标记是否分组

must change

  • Identification : 不同的包必然有不同的id
  • Time to Live : 追踪路由增加的包的数量
  • Header Checksum : 因为头部更改了

识别号、头部检验和和生存时间值必然改变

7

Describe the pattern you see in the values in the Identification field of the IP datagram

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

从上面三个连续的IP数据报可以看出,发送方每发送一个数据报,Identification就增加1

8

What is the value in the Identification field and the TTL field?

在这里插入图片描述
Identification:13008
TTL:1

9

Do these values remain unchanged for all of the ICMP TTL-exceeded replies sent to your computer by the nearest (first hop) router? Why?

在这里插入图片描述
在这里插入图片描述

不变。

  1. TTL字段在IP报文段中占8bit,最大值为255;
  2. 第一跳收到的是255,表示没有减少;
  3. 当这个IP包通过一个路由器时,TTL就会减少一。

10

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?

是,被分片了。

在这里插入图片描述

这是由于链路层的以太网存在1500字节的限制,超过该限制的数据包就会被分片

11

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?

在这里插入图片描述

12

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?

在这里插入图片描述

13

What fields change in the IP header between the first and second fragment?

在这里插入图片描述
在这里插入图片描述

Total length, Flags,Identification, Fragment Offset, Header Checksum五个字段产生了变化

14

How many fragments were created from the original datagram?

3个分片。

在这里插入图片描述

15

What fields change in the IP header among the fragments?

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

Total length, Flags,Identification, Fragment Offset, Header Checksum五个字段产生了变化

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
计算机网络自顶向下Wireshark实验Tracing DNS with Wireshark是一个很好的结合,让我来为你介绍。 首先,计算机网络自顶向下是一种从应用层开始分析计算机网络方法。这种方法强调理解应用层协议,因为它们是用户直接与之交互的,而且它们的行为直接影响网络性能和可用性。这种方法认为,理解各种应用层协议是如何交互的,可以更全面地了解网络是如何工作的。 Wireshark是一款网络协议分析工具,可以用于分析网络流量,帮助用户理解网络行为。 现在,让我们来看一下如何使用Wireshark来追踪DNS(Domain Name System)的实验。DNS是互联网的基础部分,它允许用户通过主机名(例如,“google.com”)查找对应的IP地址。当你在浏览器中输入一个网址时,你的设备就会向DNS发出一个请求,以获取该网址的IP地址。 使用Wireshark追踪DNS的方法如下: 1. **安装和配置Wireshark**:首先,确保你已经在你的设备上安装了Wireshark,并且已经配置好了网络接口。 2. **捕获网络流量**:使用Wireshark的过滤器功能,你可以捕获特定于DNS的流量。例如,你可以使用过滤器“dns”来捕获所有DNS流量。 3. **分析流量**:一旦你捕获了DNS流量,你可以使用Wireshark的详细信息来查看每个请求和响应的详细信息。这包括源和目标IP地址、查询类型(如A记录或CNAME)、响应状态码等。 4. **追踪特定活动**:如果你想追踪某个特定的活动,例如某个特定的主机名或IP地址,你可以使用Wireshark的过滤器功能来限制你的视图。 5. **记录和分析结果**:记录和分析你的结果可以帮助你理解DNS系统的运作方式,以及可能存在的任何问题。 通过这个实验,你将能够更深入地了解DNS系统是如何工作的,以及Wireshark如何帮助你分析和记录网络流量。这对于理解和解决网络问题,以及在开发、测试和故障排除中都非常有用。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Bernard5

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值