5.1.1.7 Lab - Using Wireshark To Examine Ethernet Frames
5.1.1.7 Lab - Using Wireshark To Examine Ethernet Frames
5.1.1.7 Lab - Using Wireshark To Examine Ethernet Frames
Topology
Objectives
Part 1: Examine the Header Fields in an Ethernet II Frame
Part 2: Use Wireshark to Capture and Analyze Ethernet Frames
Background / Scenario
When upper layer protocols communicate with each other, data flows down the Open Systems
Interconnection (OSI) layers and is encapsulated into a Layer 2 frame. The frame composition is dependent
on the media access type. For example, if the upper layer protocols are TCP and IP and the media access is
Ethernet, then the Layer 2 frame encapsulation will be Ethernet II. This is typical for a LAN environment.
When learning about Layer 2 concepts, it is helpful to analyze frame header information. In the first part of this
lab, you will review the fields contained in an Ethernet II frame. In Part 2, you will use Wireshark to capture
and analyze Ethernet II frame header fields for local and remote traffic.
Required Resources
• 1 PC (Windows 7, 8, or 10 with internet access with Wireshark installed)
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 1 of 9
Lab – Using Wireshark to Examine Ethernet Frames
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 2 of 9
Lab – Using Wireshark to Examine Ethernet Frames
session begins with an ARP query for the MAC address of the gateway router, followed by four ping requests
and replies.
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 3 of 9
Lab – Using Wireshark to Examine Ethernet Frames
Preamble Not shown in capture This field contains synchronizing bits, processed by the NIC
hardware.
Destination Address Broadcast Layer 2 addresses for the frame. Each address is 48 bits
(ff:ff:ff:ff:ff:ff) long, or 6 octets, expressed as 12 hexadecimal digits, 0-
9,A-F.
Source Address BelkinIn_9f:6b:8c
A common format is 12:34:56:78:9A:BC.
(14:91:82:9f:6b:8c)
The first six hex numbers indicate the manufacturer of the
network interface card (NIC), the last six hex numbers are
the serial number of the NIC.
The destination address may be a broadcast, which contains
all ones, or a unicast. The source address is always unicast.
Frame Type 0x0806 For Ethernet II frames, this field contains a hexadecimal
value that is used to indicate the type of upper-layer protocol
in the data field. There are numerous upper-layer protocols
supported by Ethernet II. Two common frame types are
these:
Value Description
0x0800 IPv4 Protocol
0x0806 Address Resolution Protocol (ARP)
Data ARP Contains the encapsulated upper-level protocol. The data
field is between 46 – 1,500 bytes.
FCS Not shown in capture Frame Check Sequence, used by the NIC to identify errors
during transmission. The value is computed by the sending
machine, encompassing frame addresses, type, and data
field. It is verified by the receiver.
Why does the PC send out a broadcast ARP prior to sending the first ping request?
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 4 of 9
Lab – Using Wireshark to Examine Ethernet Frames
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 5 of 9
Lab – Using Wireshark to Examine Ethernet Frames
In the Wireshark Filter box, type icmp. The box should turn green if you typed the filter correctly. If the box is
green, click Apply (the right arrow) to apply the filter.
Step 4: From the command prompt window, ping the default gateway of your PC.
From the command window, ping the default gateway using the IP address that you recorded in Step 1.
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 6 of 9
Lab – Using Wireshark to Examine Ethernet Frames
Step 3, Wireshark should display the ICMP information in the packet list pane of Wireshark, similar to the
following example.
a. In the packet list pane (top section), click the first frame listed. You should see Echo (ping) request
under the Info heading. This should highlight the line blue.
b. Examine the first line in the packet details pane (middle section). This line displays the length of the
frame; 74 bytes in this example.
c. The second line in the packet details pane shows that it is an Ethernet II frame. The source and
destination MAC addresses are also displayed.
What is the MAC address of the PC NIC?
What is the default gateway’s MAC address?
d. You can click the plus (+) sign at the beginning of the second line to obtain more information about the
Ethernet II frame. Notice that the plus sign changes to a minus (-) sign.
What type of frame is displayed?
e. The last two lines displayed in the middle section provide information about the data field of the frame.
Notice that the data contains the source and destination IPv4 address information.
What is the source IP address?
What is the destination IP address?
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 7 of 9
Lab – Using Wireshark to Examine Ethernet Frames
f. You can click any line in the middle section to highlight that part of the frame (hex and ASCII) in the
Packet Bytes pane (bottom section). Click the Internet Control Message Protocol line in the middle
section and examine what is highlighted in the Packet Bytes pane.
Step 10: Examine the new data in the packet list pane of Wireshark.
In the first echo (ping) request frame, what are the source and destination MAC addresses?
Source:
Destination:
What are the source and destination IP addresses contained in the data field of the frame?
Source:
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 8 of 9
Lab – Using Wireshark to Examine Ethernet Frames
Destination:
Compare these addresses to the addresses you received in Step 6. The only address that changed is the
destination IP address. Why has the destination IP address changed, while the destination MAC address
remained the same?
Reflection
Wireshark does not display the preamble field of a frame header. What does the preamble contain?
© 2018 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 9 of 9