Chapter 4 Ethernet
Chapter 4 Ethernet
4
Network Interface Card (NIC)
5
Tracing the Physical Connection NIC
6
Connecting the NIC to Switch…
7
From PC to Ethernet Port…
8
From Ethernet Port to Patch Panel…
Back View Front View
9
From Patch Panel to Switch (or hub)
10
From PC to Switch
11
Ethernet is Best Effort Delivery
• Ethernet is best-
effort delivery,
no guarantee.
• Like a trucking
service, it
doesn’t really
know or care
about the what it
is carrying.
12
All of that is the same as these!
13
Our focus!
14
Ethernet Protocol
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
Ethernet Protocol
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
Ethernet Operation
MAC Sublayer
Application Application Layer
Header + data
Layer 2: Data
Link Layer
MAC Sublayer
MAC Sublayer
Media Access
Control
CSMA/Collision Detection
•With today’s intermediate devices (full-duplex switches), collisions do not occur
•Processes utilized by CSMA/CD are really unnecessary
• The Ethernet protocol uses MAC addresses to identify the source of the Ethernet frame
and the destination of the Ethernet frame.
• Whenever is computer sends an Ethernet frame, it includes the MAC address on its NIC
as the Source “MAC” Address.
25
Frame Forwarding
26
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
28
Ethernet Frame Attributes
Ethernet Frame Size
TYPE
Preamble and Start Frame Length Field (Prior to Data and Pad Fields
Delimiter Fields 1997) Contain the
Used for synchronization encapsulated data
Defines the exact length from a higher layer, an
between the sending and
receiving devices of the frame's data field IPv4 packet
Type Field
Describes which protocol
is implemented
Ethernet Frame Attributes
OUI unique
• An Intel MAC address: 00-21-CC-BA-44-C4
• 0000 0000 - 0010 0001 – 1100 1100 - 1011 1010 – 0100 0100 – 1100 0100
• IEEE OUI FAQs: http://standards.ieee.org/faqs/OUI.html
34
What is the Address on my NIC?
35
Ethernet MAC
41
Learn: Examine Source MAC Address
1 2 3 4
A B C D
MAC MAC MAC MAC
00-0A 00-0B 00-0C 00-0D
1
A B C D
1
MAC MAC MAC MAC
00-0A 00-0B 00-0C 00-0D
2
Destination MAC Source MAC
Type Data FCS
00-0D 00-0A
1
2
A B C D
2
MAC MAC MAC MAC
00-0A 00-0B 00-0C 00-0D
1 2 3 4
1
1
A B C D
2
MAC MAC MAC MAC
00-0A 00-0B 00-0C 00-0D
3
Destination MAC Source MAC
00-0A Type Data FCS
00-0D
1 2 3 4
1
2
A B C D
2
MAC MAC MAC MAC
00-0A 00-0B 00-0C 00-0D
3
Destination MAC Source MAC
00-0A 00-0D Type Data FCS
1 2 3 4
1
1 2
A B C D
2
MAC MAC MAC MAC
00-0A 00-0B 00-0C 00-0D
3
Destination MAC Source MAC
00-0D Type Data FCS
00-0A
• Layer 1 cannot communicate with the • The (LLC) sublayer communicates with
upper-level layers. Layer 3.
• Layer 1 can only describe streams of • The MAC sublayer uses framing to
bits. control the placement of frames.
• Layer 1 cannot identify computers on a • The MAC sublayer uses MAC addresses
segment. to identify local hosts.
48
Hubs and Collision Domains
Sending host
Receiving host
collision domain is a set of LAN devices whose frames could collide with one another
49
Hubs and Collision Domains
Collision
Sending host
Receiving host
50
Where are the collision domains?
What would be the duplex settings?
router
hub hub
51
Where are the collision domains?
Single Collision Domain
router
hub hub
52
What would be the duplex settings?
Half-duplex
router
hub hub
hub
Half-duplex 53
Where are the collision domains?
What would be the duplex settings?
router
switch switch
54
Where are the collision domains?
What would be the duplex settings?
router
switch switch
55
What would be the duplex settings?
Half-duplex
router
Full-duplex
switch switch
hub
Half-duplex 56
Where are the collision domains?
What would be the duplex settings?
router
switch switch
57
Where are the collision domains?
router
switch switch
Collision Domains
58
What would be the duplex settings?
Half-duplex
router
Full-duplex
switch switch
switch
Full-duplex 59
All scenarios are multi-
access networks
router
switch switch
60
Duplex and Speed Settings
PC-A
Port 1
Autonegotiation
Half Half
S1 Full-duplex S2
Half-duplex
63
Address Resolution Protocol (ARP)
The primary purpose of ARP:
1. Resolving IPv4 addresses to MAC addresses
2. Maintaining a cache of mappings
64
Removing MAC-to-IP Address Mappings
192.168.1.120
I will remove this ARP entry if I MAC 00-0B
have not used it in 2 minutes.
192.168.1.110 192.168.1.50
MAC 00-0A MAC 00-0C
192.168.1.1
MAC 00-0D
PC-A’s ARP Cache
192.168.1.120
ARP Request: I need the MAC I will send an ARP reply and
MAC 00-0B
address of default gateway, pretend to be the default gateway!
192.168.1.1
192.168.1.110 192.168.1.50
MAC 00-0A MAC 00-0C
192.168.1.1
MAC 00-0D
https://www.youtube.com/watch?v=2MBnX9-KlVU
Viewing and Clearing the ARP Table
• To view the local ARP table in Windows DOS: arp –a
• To clear the local ARP table in Windows DOS: arp –d
69
Verify the ARP Cache and PING Target
C:\Users\Bob> arp -a
C:\Users\Bob>
C:\Users\Bob> ping 192.168.11.5
C:\Users\Bob>
70
Selective Forwarding
• A switch establishes a momentary logical
point-to-point connection between the source
and destination hosts.
– Only long enough to forward a single frame.
71
Store-and-Forward Switching
72
Cut Through – Fast Forward