CHP 5
CHP 5
2
5.1 Ethernet Protocol
3
Ethernet Frame
Ethernet Encapsulation
Ethernet is the most widely used LAN technology today.
• Defined in the IEEE 802.2 and 802.3 standards.
• It supports data bandwidths of 10 Mb/s, 100 Mb/s, 1000
Mb/s (1 Gb/s), 10,000 Mb/s (10 Gb/s), 40,000 Mb/s (40
Gb/s), and 100,000 Mb/s (100 Gb/s).
4
Ethernet Frame
Ethernet Encapsulation (Cont.)
The Ethernet LLC sublayer handles the communication
between the upper layers and the lower layers. It is
implemented in software, and its implementation is
independent of the hardware.
5
Ethernet Frame
MAC Sublayer
The MAC sublayer has two primary responsibilities:
• Data encapsulation
• Media access control
Media access control is responsible for the placement of frames on the media and the removal of
frames from the media. This sublayer communicates directly with the physical layer.
6
Ethernet Frame
Ethernet Evolution
Since 1973, Ethernet standards have evolved specifying faster and more flexible versions of the
technology.
The latest versions of Ethernet operate at 10 Gigabits per second and faster.
7
Ethernet Frame
Ethernet Frame Fields
The minimum Ethernet frame size
from Destination MAC address to
FCS is 64 bytes and the
maximum is 1518 bytes.
Frames less than 64 bytes are called a “collision fragment” or “runt frame” and are automatically
discarded by receiving stations. Frames greater than 1500 bytes of data are considered “jumbo” or
“baby giant frames”.
If the size of a transmitted frame is less than the minimum or greater than the maximum, the
receiving device drops the frame.
8
Ethernet MAC Addresses
MAC Addresses and Hexadecimal
An Ethernet MAC address is a 48-bit binary value expressed as 12 hexadecimal digits (4 bits per
hexadecimal digit).
Convert the decimal or hexadecimal value to binary, and then to convert the binary value to either
decimal or hexadecimal as needed.
9
Ethernet MAC Addresses
MAC Addresses: Ethernet Identity
MAC addresses were created to identify the actual source and destination.
• The MAC address rules are established by IEEE.
• The IEEE assigns the vendor a 3-byte (24-bit) code, called the Organizationally Unique Identifier (OUI).
10
Ethernet MAC Addresses
Frame Processing
The MAC address is often referred to as a burned-in address (BIA) meaning the address is
encoded into the ROM chip permanently. When the computer starts up, the first thing the NIC does
is copy the MAC address from ROM into RAM.
11
Ethernet MAC Addresses
MAC Address Representations
Use the ipconfig /all command on a Windows host to identify the MAC address of an Ethernet
adapter. On a MAC or Linux host, the ifconfig command is used.
Depending on the device and the operating system, you will see various representations of MAC
addresses.
12
5.2 LAN Switches
13
The MAC Address Table
Switch Fundamentals
A Layer 2 Ethernet switch makes its forwarding decisions based only on the Layer 2 Ethernet MAC
addresses.
14
The MAC Address Table
Learning MAC Addresses
The switch dynamically builds the MAC
address table. The process to learn the
Source MAC Address is:
• Switches examine all incoming frames for
new source MAC address information to
learn.
• If the source MAC address is unknown, it
is added to the table along with the port
number.
• If the source MAC address does exist,
the switch updates the refresh timer for
that entry.
• By default, most Ethernet switches keep
an entry in the table for 5 minutes.
17
Switch Forwarding Methods
Frame Forwarding Methods on Cisco Switches
Switches use one of the following forwarding methods for switching data between network ports:
18
Switch Forwarding Methods
Cut-Through Switching
In cut-through switching, the switch buffers
just enough of the frame to read the
destination MAC address so that it can
determine to which port to forward the data.
The switch does not perform any error
checking on the frame.
There are two variants of cut-through
switching:
• Fast-forward switching offers the lowest level of
latency. The switch immediately forwards a packet
after reading the destination address. This is the
most typical form of cut-through switching.
• Fragment-free switching, in which the switch stores
the first 64 bytes of the frame before forwarding. It
is a compromise between store-and-forward and
fast-forward switching.
19
Switch Forwarding Methods
Memory Buffering on Switches
An Ethernet switch may use a memory buffering technique to store frames before forwarding them.
Buffering may also be used when the destination port is busy due to congestion and the switch
stores the frame until it can be transmitted.
There are two types of memory buffering techniques:
• Frames are stored in queues that are linked to specific incoming and outgoing
Port-based memory ports.
• A frame is transmitted when all the frames ahead of it have been transmitted.
• All frames are deposited into a common buffer which is shared by all ports on
Shared memory the switch.
20
Switch Forwarding Methods
Duplex and Speed Settings
There are two types of duplex settings used for communications on an Ethernet network:
• Full-duplex – Both ends of the connection can send and receive simultaneously.
• Half-duplex – Only one end of the connection can send at a time.
Most devices use autonegotiation which enables two devices to automatically exchange
information about speed and duplex capabilities and choose the highest performance mode.
21
Switch Forwarding Methods
Auto-MDIX
Connections between specific devices such as switch-to-
switch, switch-to-router, switch-to-host, and router-to-host
devices, once required the use of specific cable types
(crossover or straight-through).
When enabled using the mdix auto interface configuration command, the switch detects the type
of cable attached to the port, and configures the interfaces accordingly.
22
5.3 Address Resolution Protocol
23
MAC and IP
Destination on Same Network
There are two primary addresses assigned to a device on an Ethernet LAN:
• Physical address (the Ethernet MAC address)
• Logical address (the IP address)
24
MAC and IP
Destination on Remote Network
When the destination IP address is on a remote
network, the destination MAC address will be
the address of the host’s default gateway.
25
ARP
Introduction to ARP
When a device sends an Ethernet frame, it contains
these two addresses:
• Destination MAC address
• Source MAC address
26
ARP
ARP Functions
Ethernet devices refer to an ARP table (or the
ARP cache) in its memory (i.e., RAM) to find the
MAC address that is mapped to the IPv4 address.
27
ARP
Removing Entries from an ARP Table
Every device has an ARP cache timer that removes ARP entries that have not been used for a
specified period of time.
You can also manually remove all or some of the entries in the ARP table.
28
ARP
ARP Tables
On a Router On a Windows Host
On a Cisco router, the show ip arp command is On a Windows 7 PC, the arp –a command is used
used to display the ARP table. to display the ARP table.
29
ARP Issues
ARP Broadcasts
As a broadcast frame, an ARP request is received and processed by every device on the local
network.
ARP requests can flood the local segment if a large number of devices were to be powered up and
all start accessing network services at the same time.
30
ARP Issues
ARP Spoofing
Attackers can respond to requests and
pretend to be providers of services.
One type of ARP spoofing attack used
by attackers is to reply to an ARP
request for the default gateway. In the
figure, host A requests the MAC
address of the default gateway. Host C
replies to the ARP request. Host A
receives the reply and updates its ARP
table. It now sends packets destined to
the default gateway to the attacker host
C.
Enterprise level switches include
mitigation techniques known as
dynamic ARP inspection (DAI).
31
5.4 Chapter Summary
32
Conclusion
Chapter 5: Ethernet
Explain the operation of Ethernet.
33