77范文网 - 专业文章范例文档资料分享平台

计算机网络实验:Ethernet and ARP

来源:网络收集 时间:2018-11-27 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

Lab 7Ethernet and ARP

1. Capturing and analyzing Ethernet frames

STEPS

? First, make sure your browser’s cache is empty. (To do this under Netscape 7.0, select Edit->Preferences->Advanced->Cache and clear the memory and disk cache. For Internet Explorer, select Tools->Internet Options->Delete Files. For Firefox select Tools->Clear Private Data.

? Start up the Wireshark packet sniffer

? Enter the following URL into your browser

http://gaia.cs.umass.edu/wireshark-labs/HTTP-ethereal-lab-file3.html Your browser should display the rather lengthy US Bill of Rights.

? Stop Wireshark packet capture. First, find the packet numbers (the leftmost column in the upper Wireshark window) of the HTTP GET message that was sent from your computer to gaia.cs.umass.edu, as well as the beginning of the HTTP response message sent to your computer by gaia.cs.umass.edu. You should see a screen that looks something like this (where packet 4 in the screen shot below contains the HTTP GET message)

?Since this lab is about Ethernet and ARP, we’re not interested in IP or higherlayer protocols. So let’s 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.

QUESTIONS

1. What is the 48-bit Ethernet address of your computer?

The 48-bit Ethernet address of your computer is 3c : 97 : 0e : ff : 69 : 02

2. What is the 48-bit destination address in the Ethernet frame? Is this the Ethernet address of gaia.cs.umass.edu? (Hint: the answer is no). What device has this as its Ethernet address? [Note: this is an important question, and one that students

sometimes get wrong. Re-read pages 468-469 in the text and make sure you understand the answer here.]

The 48-bit destination address in the Ethernet frame is 38:22:d6:e6:0e:0d. This isn’t the Ethernet address of gaia.cs.umass.edu. It is the Ethernet address of my default gateway. That is to say, it’s the address of my router, which is the link used to get off the subnet.

3. Give the hexadecimal value for the two-byte Frame type field. What do the bit(s) whose value is 1 mean within the flag field?

The hexadecimal value for the two-byte Frame type field is 0x0800.

The bit(s) whose value is 1 within the flag fieldmean the fragment has not been fragmented.

4. How many bytes from the very start of the Ethernet frame does the ASCII “G” in “GET” appear in the Ethernet frame?

54 bytes. There are 14 bytes of Ethernet frame header, 20 bytes of IP header and 20 bytes of TCP header before HTTP data. So the answer is 54 bytes.

5. What is the hexadecimal value of the CRC field in this Ethernet frame?

There is no CRC field. Because the CRC calculated before the Wireshark packet sniffer start up.

6. What is the value of the Ethernet source address? Is this the address of your computer, or of gaia.cs.umass.edu (Hint: the answer is no). What device has this as its Ethernet address?

The value of the Ethernet source address is 38:22:d6:e6:0e:0d. This is neither the address of my computer, nor of gaia.cs.umass.edu. It is the Ethernet address of my default gateway. That is to say, it’s the address of my router, which is the link used to get off the subnet.

7. What is the destination address in the Ethernet frame? Is this the Ethernet address of your computer?

The destination address in the Ethernet frame is 3c : 97 : 0e : ff : 69 : 02. This is the Ethernet address of my computer.

8. Give the hexadecimal value for the two-byte Frame type field. What do the bit(s) whose value is 1 mean within the flag field?

The hexadecimal value for the two-byte Frame type field is 0x0800.

The bit(s) whose value is 1 within the flag fieldmean the fragment has not been fragmented.

9. How many bytes from the very start of the Ethernet frame does the ASCII “O” in “OK” (i.e., the HTTP response code) appear in the Ethernet frame?

There are 14 bytes of Ethernet frame header, 20 bytes of IP header and 20 bytes of TCP header before HTTP data.

So the HTTP data appears 54 bytes from the very start of the Ethernet frame. But before the ASCII “O” appears, there are 13 bytes. So before the ASCII “O” appears, there are 67 bytes.

10. What is the hexadecimal value of the CRC field in this Ethernet frame?

There is no CRC field. Because the CRC calculated before the Wireshark packet sniffer start up.

2. The Address Resolution Protocol

11. Write down the contents of your computer’s ARP cache. What is the meaning of

each column value?

The address of Internet column contains the IP address. The physical address column contains the MAC address. The type column tells us the information about type: dynamic or static.

STEPS

? Clear your ARP cache, as described above.

? Next, make sure your browser’s cache is empty. (To do this under Netscape 7.0, select Edit->Preferences->Advanced->Cache and clear the memory and disk cache. For Internet Explorer, select Tools->Internet Options->Delete Files.) ? Start up the Wireshark packet sniffer

? Enter the following URL into your browser 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:

QUESTIONS

(The following answers are based on the ethernet-ethereal-trace-1 trace file)

12.What are the hexadecimal values for the source and destination addresses in the Ethernet frame containing the ARP request message?

The hexadecimal values for the source addresses in the Ethernet frame is 00:d0:59:a9:3d:68.The hexadecimal values for the destination addresses in the Ethernet frame is ff :ff : ff : ff : ff : ff.

百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库计算机网络实验:Ethernet and ARP在线全文阅读。

计算机网络实验:Ethernet and ARP.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/zonghe/314831.html(转载请注明文章来源)
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: