计算机网络自顶向下WireShark实验:DHCP 您所在的位置:网站首页 dhcp和udp 计算机网络自顶向下WireShark实验:DHCP

计算机网络自顶向下WireShark实验:DHCP

2024-07-17 12:21| 来源: 网络整理| 查看: 265

前言

计算机网络自顶向下WireShark实验记录,可供参考

题目

1.Are DHCP messages sent over UDP or TCP? DHCP 消息是通过 UDP 还是 TCP 发送的? 答:UDP 在这里插入图片描述 2.Draw a timing datagram illustrating the sequence of the first four-packetDiscover/Offer/Request/ACK DHCP exchange between the client and server. Foreach packet, indicated the source and destination port numbers. Are the portnumbers the same as in the example given in this lab assignment? 绘制一个定时数据报,说明客户端和服务器之间第一个四包发现/提供/请求/确认 DHCP 交换的顺序。对于每个数据包,指明源端口号和目的端口号。端口号是否与本实验作业中给出的示例相同? 答:顺序如下 在这里插入图片描述 3.What is the link-layer (e.g., Ethernet) address of your host? 您的主机的链路层(例如以太网)地址是什么? 答: 在这里插入图片描述 4.What values in the DHCP discover message differentiate this message from theDHCP request message? DHCP 发现消息中的哪些值将此消息与 DHCP 请求消息区分开来? 答: 在这里插入图片描述 个人觉得是这里,考虑到DHCP一开始是使用广播,所以是没有服务器的信息的,即在发现时是没有服务器的IP地址,只有到请求的时候有服务器IP地址的 5.What is the value of the Transaction-ID in each of the first four (Discover/Offer/Request/ACK) DHCP messages? What are the values of theTransaction-ID in the second set (Request/ACK) set of DHCP messages? What is the purpose of the Transaction-ID field? 在前四个(发现/提供/请求/确认)DHCP 消息中,事务标识的值是多少?第二组(请求/确认)DHCP 消息中事务标识的值是多少?交易标识字段的用途是什么? 答: 在这里插入图片描述 用途是被机器标识? 6.A host uses DHCP to obtain an IP address, among other things. But a host’s IP address is not confirmed until the end of the four-message exchange! If the IP address is not set until the end of the four-message exchange, then what values areused in the IP datagrams in the four-message exchange? For each of the four DHCP messages (Discover/Offer/Request/ACK DHCP), indicate the source and destination IP addresses that are carried in the encapsulating IP datagram. 除其他外,主机使用 DHCP 来获取 IP 地址。但是一个主机的 IP 地址直到四 消息交换结束才被确认!如果直到四消息交换结束才设置 IP 地址,那么在四消息交换中的 IP 数据报中使用什么值?对于四个 DHCP 消息(发现/提供/请求/确认 DHCP)中的每一个,指出封装的 IP 数据报中携带的源和目的IP 地址。 答: 在这里插入图片描述 在这里插入图片描述 在这里插入图片描述 在这里插入图片描述 以上即为这四种情况的源地址目的地址的变化 7. In the example screenshot in this assignment, there is no relay agent between thehost and the DHCP server. What values in the trace indicate the absence of a relayagent? Is there a relay agent in your experiment? If so what is the IP address ofthe agent? 在此分配的示例屏幕截图中,主机和 DHCP 服务器之间没有中继代理。跟踪中的哪些值表示没有中继代理?你的实验中有中继代理吗?如果是,代理的 IP 地址是什么? 答: 在这里插入图片描述 这个代表有没有中继代理 8.Explain the purpose of the router and subnet mask lines in the DHCP offermessage. 解释 DHCP 提供消息中路由器和子网掩码行的用途 答:路由器起到网关作用,而掩码自然就是起到掩码的作用了 9.In the DHCP trace file noted in footnote 2, the DHCP server offers a specific IPaddress to the client (see also question 8. above). In the client’s response to the first server OFFER message, does the client accept this IP address? Where in theclient’s RESPONSE is the client’s requested address? 在脚注 2 中提到的 DHCP 跟踪文件中,DHCP 服务器向客户端提供了一个特定的 IP 地址(另请参见问题 8。以上)。在客户对 第一个服务器 OFFER 消息,客户端接受这个 IP 地址吗?客户端的响应中,客户端请求的地址在哪里? 答: 在这里插入图片描述 在这里插入图片描述 可以看到是接受的 10.Explain the purpose of the lease time. How long is the lease time in your experiment? 解释租赁时间的目的。你实验的租期是多久? 答:主要是提供灵活性吧,以及让IP地址分配合理,并且不会浪费,毕竟IP地址是有限的 在这里插入图片描述 11.What is the purpose of the DHCP release message? Does the DHCP server issue an acknowledgment of receipt of the client’s DHCP request? What would happen。if the client’s DHCP release message is lost? DHCP 释放消息的目的是什么?DHCP 服务器是否发出收到客户端 DHCP 请求的确认?如果客户端的 DHCP 释放消息丢失,会发生什么? 答:释放消息的目的是为了回收IP地址,没有,如果释放消息丢失,估计会继续用,直到租赁时间到期 12.Clear the bootp filter from your Wireshark window. Were any ARP packets sentor received during the DHCP packet-exchange period? If so, explain the purposeof those ARP packets. 从 Wireshark 窗口中清除 bootp 过滤器。在 DHCP 数据包交换期间,是否发送或接收了任何 ARP 数据包?如果是,请解释这些 ARP 数据包的用途 答:发送了,主要用途应该就是地址解析,毕竟DHCP中数据包需要放在以太网帧中去使用,从而去找到服务器的地址



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

      专题文章
        CopyRight 2018-2019 实验室设备网 版权所有