What are the three main responsibilities of the Data Link Layer (Layer 2)?
NIC-to-NIC communication, encapsulating Layer 3 packets into frames, and error detection that rejects corrupted frames.
The Data Link Layer (Layer 2) is responsible for:
* The Data Link Layer's three jobs: NIC-to-NIC delivery, encapsulating packets into frames, and error detection. *
-
NIC-to-NIC communications - Responsible for communications between end-device network interface cards
-
Encapsulation - Allows upper layer protocols to access the physical layer media; encapsulates Layer 3 packets (IPv4/IPv6) into Layer 2 Frames
-
Error detection - Performs error detection and rejects corrupted frames
Key insight: The Data Link Layer prepares network data for the physical network.
Go deeper:
The OSI Model — Layer 2 (Practical Networking) — animated walk-through of how L2 groups bits into frames, adds the MAC header, and delivers hop-to-hop.
Data link layer (Wikipedia) — covers all three duties directly: node-to-node delivery, framing/encapsulation, and error detection.
Frame (networking) (Wikipedia) — zooms in on encapsulation: how an L3 packet becomes a frame with sync bits, payload, and frame check sequence.