Observing ARP in action
观察 ARP 的实际应用
Do the following1
执行以下作1:
Clear your ARP cache, as described above.
如上所述,清除 ARP 缓存。
Next, make sure your browser’s cache is empty. To do this under Mozilla Firefox V3, select Tools->Clear Recent History and check the box for Cache. For Internet Explorer, select Tools->Internet Options->Delete Files.
接下来,确保浏览器的缓存为空。要在 Mozilla Firefox V3 下执行此作,请选择 Tools->Clear Recent History 并选中 Cache 复选框。对于 Internet Explorer,请选择“工具”-“>Internet 选项”-“>删除文件”。
Start up the Wireshark packet sniffer
启动 Wireshark 数据包嗅探器
Enter the following URL into your browser
在浏览器中输入以下 URL
http://gaia.cs.umass.edu/wireshark-labs/HTTP-wireshark-lab-file3.html
Your browser should again display the rather lengthy US Bill of Rights.
您的浏览器应该再次显示相当长的美国权利法案。
Stop Wireshark packet capture. Again, we’re not interested in IP or higher-layer protocols, so change Wireshark’s “listing of captured packets” window so that it shows information only about protocols below IP. To have Wireshark do this, select Analyze->Enabled Protocols. Then uncheck the IP box and select OK. You should now see an Wireshark window that looks like:
停止 Wireshark 数据包捕获。同样,我们对 IP 或更高层的协议不感兴趣,因此请更改 Wireshark 的“捕获数据包列表”窗口,使其仅显示有关 IP 以下协议的信息。要让 Wireshark 执行此作,请选择 Analyze->Enabled Protocols。 然后取消选中 IP 框并选择 OK。您现在应该会看到一个 Wireshark 窗口,如下所示:
In the example above, the first two frames in the trace contain ARP messages (as does the 6th message). The screen shot above corresponds to the trace referenced in footnote 1.
在上面的示例中,跟踪中的前两个帧包含 ARP 消息(第 6条消息也是如此)。上面的屏幕截图对应于脚注 1 中引用的跟踪。
Answer the following questions:
请回答以下问题:
What are the hexadecimal values for the source and destination addresses in the Ethernet frame containing the ARP request message?
包含 ARP 请求消息的以太网帧中的源地址和目标地址的十六进制值是多少?
Give the hexadecimal value for the two-byte Ethernet Frame type field. What upper layer protocol does this correspond to?
为双字节 Ethernet Frame type 字段提供十六进制值。这对应于什么上层协议?
Download the ARP specification from
从 ARP 规范下载
ftp://ftp.rfc-editor.org/in-notes/std/std37.txt. A readable, detailed discussion of ARP is also at http://www.erg.abdn.ac.uk/users/gorry/course/inet-pages/arp.html
ftp://ftprfc-editor.org/in-notes/std/std37.txt。对 ARP 的可读、详细讨论也在 http://www.erg.abdn.ac.uk/users/gorry/course/inet-pages/arp.html.
How many bytes from the very beginning of the Ethernet frame does the ARP opcode field begin?
ARP 作码字段 从以太网帧的最开头开始多少字节?
What is the value of the opcode field within the ARP-payload part of the Ethernet frame in which an ARP request is made?
在发出 ARP 请求的以太网帧的 ARP-payload 部分中,opcode 字段的值是多少?
Does the ARP message contain the IP address of the sender?
ARP 消息是否包含发送方的 IP 地址?
Where in the ARP request does the “question” appear – the Ethernet address of the machine whose corresponding IP address is being queried?
ARP 请求中的哪个位置显示“问题”——正在查询其相应 IP 地址的计算机的以太网地址?
Now find the ARP reply that was sent in response to the ARP request.
现在,找到为响应 ARP 请求而发送的 ARP 回复。
How many bytes from the very beginning of the Ethernet frame does the ARP opcode field begin?
ARP 作码字段 从以太网帧的最开头开始多少字节?
What is the value of the opcode field within the ARP-payload part of the Ethernet frame in which an ARP response is made?
在进行 ARP 响应的以太网帧的 ARP-payload 部分中,opcode 字段的值是多少?
Where in the ARP message does the “answer” to the earlier ARP request appear – the IP address of the machine having the Ethernet address whose corresponding IP address is being queried?
在 ARP 消息中,对先前 ARP 请求的“应答”出现在何处 – 具有以太网地址的机器的 IP 地址,该地址正在查询其相应的 IP 地址?
What are the hexadecimal values for the source and destination addresses in the Ethernet frame containing the ARP reply message?
包含 ARP 回复消息的以太网帧中的源地址和目标地址的十六进制值是多少?
Open the ethernet-ethereal-trace-1 trace file in http://gaia.cs.umass.edu/wireshark-labs/wireshark-traces.zip. The first and second ARP packets in this trace correspond to an ARP request sent by the computer running Wireshark, and the ARP reply sent to the computer running Wireshark by the computer with the ARP-requested Ethernet address. But there is yet another computer on this network, as indicated by packet 6 – another ARP request. Why is there no ARP reply (sent in response to the ARP request in packet 6) in the packet trace?
在 http://gaia.cs.umass.edu/wireshark-labs/wireshark-traces.zip 中打开 ethernet-ethereal-trace-1跟踪文件。此跟踪中的第一个和第二个 ARP 数据包对应于运行 Wireshark 的计算机发送的 ARP 请求,以及具有 ARP 请求的以太网地址的计算机发送到运行 Wireshark 的计算机的 ARP 答复。但是这个网络上还有另一台计算机,如数据包 6 所示 - 另一个 ARP 请求。为什么数据包跟踪中没有 ARP 回复(为响应数据包 6 中的 ARP 请求而发送)?