Академический Документы
Профессиональный Документы
Культура Документы
0
Hugo Gustavo Valin Oliveira da Cunha, PPGCO 24/04/2020
1 Objective
1. What is the 48-bit Ethernet address of your computer? Answer: As shown in Figure 1 the
48-bit Ethernet address of my computer is 00:d0:59:a9:3d:68.
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? Answer: As shown in Figure 2 the 48-bit destination address in the Ethernet
frame is 00:06:25:da:af:73. This address is the address of default router, which is the link
used to get off the subnet.
3. Give the hexadecimal value for the two-byte Frame type field. What upper layer protocol
does this correspond to? Answer: As shown in Figure 3, the hexadecimal value for the
two-byte Frame is 0x0800, this corresponds to the IP protocol.
4. How many bytes from the very start of the Ethernet frame does the ASCII “G” in “GET”
appear in the Ethernet frame? As shown in Figure 4 after 53 bytes, the ASCII "G" in "GET"
appear in the Ethernet frame. Answer:
5. 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 ad-
Page 1
Figure 3: The hexadecimal value for the two-byte Frame type field
6. What is the destination address in the Ethernet frame? Is this the Ethernet address of
your computer? Answer: As shown in Figure 6 the Ethernet destination address is
00:d0:59:a9:3d:68. Yes, this the Ethernet address of my computer.
7. Give the hexadecimal value for the two-byte Frame type field. What upper layer protocol
does this correspond to? Answer: As shown in Figure 7, the hexadecimal value for the
two-byte Frame is 0x0800, this corresponds to the IP protocol.
8. 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? Answer: As shown in Figure 8
Page 2
Figure 6: The destination address in the Ethernet frame
Figure 7: The hexadecimal value for the two-byte Frame type field
after 13 bytes, the ASCII "O" in "OK" appear in the Ethernet frame.
9. Write down the contents of your computer’s ARP cache. What is the meaning of each
column value? Answer: As shown in Figure 9 each entry in arp cache, contais the ip
address, the mac address and the protocol type.
10. What are the hexadecimal values for the source and destination addresses in the Ether-
net frame containing the ARP request message? Answer: As shown in Figure 10 the
hexadecimal value for the source address is ff:ff:ff:ff:ff:ff. And the destination address is
00:d0:59:a9:3d:68.
11. Give the hexadecimal value for the two-byte Ethernet Frame type field. What upper layer
protocol does this correspond to? Answer: As shown in Figure 11 the hexadecimal
value for the two-byte Ethernet Frame type field is 0x0806, the corresponding upper layer
protocol is ARP.
(a) How many bytes from the very beginning of the Ethernet frame does the ARP opcode
field begin? Answer: As shown in Figure 12, the ARP opcode field begins 20 bytes
from the very beginning of the Ethernet frame.
Page 3
Figure 8: The hexadecimal value for the two-byte Frame type field
(b) What is the value of the opcode field within the ARP-payload part of the Ethernet
frame in which an ARP request is made? Answer: As shown in Figure 13, the hex
value for opcode field withing the ARP-payload ofthe request is 0x0001, for request.
(c) Does the ARP message contain the IP address of the sender? Answer: As shown in
Figure 14 the ARP message containing the IP address 192.168.1.105 for the sender.
(d) Where in the ARP request does the “question” appear – the Ethernet address of the
machine whose corresponding IP address is being queried? Answer: As shown in
Figure 15 The field “Target MAC address” is set to 00:00:00:00:00:00 to question the
machine whose corresponding IP address (192.168.1.1) is being queried.
13. Now find the ARP reply that was sent in response to the ARP request.
(a) How many bytes from the very beginning of the Ethernet frame does the ARP opcode
field begin? Answer: As shown in Figure 16 the ARP opcode field begins 20 bytes
from the very beginning of the Ethernet frame.
(b) What is the value of the opcode field within the ARP-payload part of the Ethernet
frame in which an ARP response is made? Answer: As shown in Figure 17 the hex
value for opcode field withing the ARP-payload of the request is 0x0002, for reply.
(c) 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? Answer: As shown in Figure 18 the answer to the
earlier ARP request appears in the "Sender MAC address" field, which contains the
Ethernet address 00:06:25:da:af:73 for the sender with IP address 192.168.1.1.
Page 4
Figure 9: ARP cache
14. What are the hexadecimal values for the source and destination addresses in the Ethernet
frame containing the ARP reply message? Answer: As shown in Figure 19 the hex value
for the source address is 00:06:25:da:af:73 and for the destination is 00:d0:59:a9:3d:68.
Page 5
Figure 10: Source and destination addresses in the Ethernet frame
Page 6
Figure 13: The opcode field
Figure 15: The ARP message contain the IP address of the sender
Page 7
Figure 16: The ARP opcode field
Page 8
Figure 19: Answer ARP message
Page 9