Layer 2 Overview
Frames are encoded/decoded into bits at Layer 2
Error detection & correction for the Physical layer can be provided here
Ethernet is the Layer 2 medium used on LANs
Ethernet Header
Preamble - 7 bytes Destination Address - 6 bytes Source Address - 6 bytes Length/Ethertype - 2 Bytes Data - (Variable) 46-1500 bytes FCS (Frame Check Sequence) - 4 bytes
Preamble Function
Helps the sender & receiver to synchronize
Term for the message in Layer 2
Frame
FCS
Frame Check Sequence:
A cyclical redundancy check which is used to check for the integrity of the frame
To check that it has not been corrupted during transit
OUI
Organizationally Unique Identifier:
First 24 bits of a MAC Address
Assigned by IEEE
Ethertype
Used to specify what is encapsulated inside the Ethernet header
MAC Address
Media Access Control Address: 48 bits (6 bytes) Hexadecimal First 24 bits = OUI Last 24 bits = Vendor assigned