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在线全文阅读。
相关推荐: