Data Link Layer – Cisco Networking Class Understanding OSI Layer 2: Functions, Protocols, and Applications
Learning Objectives Explain the role of the Data Link Layer in the OSI Model Describe framing, addressing, error detection, and access control Identify Layer 2 devices and protocols Apply concepts in troubleshooting scenarios
OSI Model Review Layer 1 – Physical Layer 2 – Data Link (focus of this session) Layer 3 – Network Layer 4 – Transport Layers 5-7 – Session, Presentation, Application
Definition Provides reliable data transfer across physical link Encapsulates raw bits into frames Ensures error detection and access control
Responsibilities Framing – organizes bits into frames Addressing – MAC addresses for identification Error Detection – CRC, checksum Flow Control – manages transmission rate Access Control – regulates access to medium
Layer 2 Devices Network Interface Card (NIC) Switches – forward frames based on MAC Bridges – connect LAN segments
Frame Structure Header – contains addressing information Payload – encapsulated data Trailer – error detection (CRC)
MAC Addressing 48-bit physical address Format: 00:1A:2B:3C:4D:5E OUI (first 24 bits) = vendor Last 24 bits = unique device ID
Types of Communication Unicast – one-to-one Broadcast – one-to-all Multicast – one-to-many (group)
LLC & MAC Sublayers LLC – Logical Link Control Identifies upper-layer protocols (IP, IPX, etc.) MAC – Media Access Control Controls frame access to the medium
PPP and HDLC Point-to-Point Protocol (PPP) High-Level Data Link Control (HDLC) Used in WAN links
ARP (Address Resolution Protocol) Maps IP address to MAC address Essential for local communication ARP cache stores resolved addresses
Troubleshooting at Layer 2 Duplex mismatches MAC flapping issues Spanning Tree Protocol (STP) loops
Wireshark Example Capture Ethernet II frame Fields: Destination MAC, Source MAC, EtherType Inspect CRC in trailer
Summary Data Link Layer provides reliable local delivery Uses MAC addressing and framing Detects errors with CRC Supports LAN/WAN protocols and VLANs
Quiz Questions 1. Which sublayer handles error detection? 2. What is the size of a MAC address? 3. Which IEEE standard defines Wi-Fi? 4. What is the purpose of VLAN tagging?
Case Study Small LAN topology with switches and hosts Frame forwarding based on MAC addresses Troubleshooting misconfigured VLAN