Chapter 5 Ethernet - July 2023
Chapter 5 Ethernet - July 2023
Ethernet
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 1
Chapter 5
5.1 Ethernet Protocol
5.2 Address Resolution Protocol
5.3 LAN Switches
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 2
5.1 Ethernet Protocol
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 3
5.1 Ethernet Protocol - LLC and MAC Sublayers
Ethernet –
• Most widely used LAN technology
• Operates in the data link layer and the physical layer
• Family of networking technologies that are defined in the IEEE 802.2
and 802.3 standards
• Supports data bandwidths of 10, 100, 1000, 10,000, 40,000, and
100,000 Mbps (100 Gbps)
Ethernet standards –
• Define Layer 2 protocols and Layer 1 technologies
• Two separate sub layers of the data link layer to operate - Logical
link control (LLC) and the MAC sublayers
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 4
Ethernet Protocol - LLC and MAC Sublayers
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 5
Ethernet Protocol - LLC and MAC Sublayers
LLC
• Handles communication between upper and lower layers
• Takes the network protocol data and adds control
information to help deliver the packet to the destination
MAC
• Constitutes the lower sublayer of the data link layer
• Implemented by hardware, typically in the computer NIC
• Two primary responsibilities:
• Data encapsulation
• Media access control
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 6
Ethernet Protocol - MAC Sublayers
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 7
Ethernet Protocol - MAC Sublayers
(A) Data encapsulation
• Frame assembly before transmission and frame disassembly upon
reception of a frame
• MAC layer adds a header and trailer to the network layer PDU
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 8
Ethernet Operation
Media Access Control
(B) Carrier Sense Multiple Access (CSMA) process
• Used to first detect if the media is carrying a signal
• If no carrier signal is detected, the device transmits its data
• If two devices transmit at the same time - data collision
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 9
Ethernet Operation
Media Access Control
(CSMA/CD vs CSMA/CA)
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 10
Ethernet Operation
Media Access Control
The two commonly used methods are:
CSMA/Collision Detection
• The device monitors the media for the presence of a data signal
• If a data signal is idle, indicating that the media is free, the device
transmits the data
• If signals are then detected “busy” that show another device was
transmitting at the same time, all devices stop sending and try again
later
• While Ethernet networks are designed with CSMA/CD technology, with
today’s intermediate devices, collisions do not occur and the
processes utilized by CSMA/CD are really unnecessary
• Wireless connections in a LAN environment still have to take collisions
into account
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 11
12
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 12
Ethernet Operation
Media Access Control
The two commonly used methods are:
CSMA/Collision Avoidance (CSMA/CA) media access
method
• Device examines the media for the presence of data signal - if the
media is free, the device sends a notification across the media of its
intent to use it
• The device then sends the data.
• Used by 802.11 wireless networking technologies
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 13
▪ https://www.youtube.com/watch?v=xLsejOjV9aY
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 14
Ethernet Frame Attributes
Ethernet Encapsulation
▪ Early versions of Ethernet were relatively slow at 10 Mbps
▪ Now operate at 10 Gigabits per second and faster
▪ Ethernet frame structure adds headers and trailers around the Layer 3
PDU to encapsulate the message being sent
Ethernet II is the
Ethernet frame
format used in
TCP/IP networks.
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 15
Ethernet Frame Attributes
Introduction to the Ethernet Frame
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 17
Ethernet Frame Attributes
Introduction to the Ethernet Frame
http://www.youtube.com/watch?v=Mfby7k6_Z9k&list=PLzVDJS
ginQzJAujbMbrOfdhoHbihz3yrl&index=1
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 18
MAC Address
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 20
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 21
Ethernet MAC
MAC Address Representations
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 22
23
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 23
Ethernet MAC
MAC Addresses and Hexadecimal
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 24
https://aruljohn.com/mac.pl
25
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 25
Ethernet MAC
Unicast MAC Address
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 26
Ethernet MAC
Broadcast MAC Address
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 27
Ethernet MAC
Multicast MAC Address
IP address
▪ Similar to the address of a person
▪ Based on where the host is actually located
▪ Known as a logical address because assigned logically
▪ Assigned to each host by a network administrator
Both the physical MAC and logical IP addresses are required for a
computer to communicate just like both the name and address of a person
are required to send a letter
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 30
Ethernet MAC
End-to-End Connectivity, MAC, and IP
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 31
Point to Point , End to End addresses
▪ MAC address is point to point
- Responsible to send data from NIC to NIC
- MAC address in the frame changes from point to point
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 32
192.168.1.1 10.1.1.1 10.1.1.2 172.16.1.1
00:00:00:12:22:44 00:00:00:12:ab:ef 00:00:00:12:bc:22 00:00:00:11:bb:cc
00:00:00:12:32:33
00:00:00:11:aa:cc
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 33
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 34
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 35
5.2 Address Resolution
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 36
ARP
Introduction to ARP
ARP Purpose
▪ Sending node needs a way to find the MAC address of the
destination for a given Ethernet link
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 37
ARP
Introduction to ARP
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 38
ARP
ARP Functions/Operation
ARP Table –
▪ Used to find the data link layer address that is mapped to the
destination IPv4 address
▪ As a node receives frames from the media, it records the source IP
and MAC address as a mapping in the ARP table
ARP request –
▪ Layer 2 broadcast to all devices on the Ethernet LAN
▪ The node that matches the IP address in the broadcast will reply
▪ If no device responds to the ARP request, the packet is dropped
because a frame cannot be created
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 40
ARP
ARP Functions/Operation
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 41
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 42
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 43
Wireshark capture
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 44
ARP
ARP Role in Remote Communication
▪ If the destination IPv4 host
is on the local network,
the frame will use the MAC
address of this device as
the destination MAC
address
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 45
Example
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 46
5.3 LAN Switches
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 47
Switching
Switch Port Fundamentals
Layer 2 LAN switch
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 48
Switching
How does switch stores MAC address of
each device (Switch MAC Address Table)
2. The switch enters the source MAC address and the switch port that
received the frame into the address table.
Continued…
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 49
Switching
Switch MAC Address Table
5. The switch enters the source MAC address of PC 2 and the port number
of the switch port that received the frame into the address table. The
destination address of the frame and its associated port is found in the
MAC address table.
6. The switch can now forward frames between source and destination
devices without flooding, because it has entries in the address table that
identify the associated ports.
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 50
Switching
Duplex Settings
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 51
Switching
Auto-MDIX
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 52
Switch Forwarding Activity
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 53
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 54
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 55
Presentation_ID © 2008 Cisco Systems, Inc. All rights reserved. Cisco Confidential 56