Data Link Layer
Layer 2 is the bridge between the abstract world of IP addresses and the physical world of voltages and radio waves. It takes a packet and turns it into a frame that can actually cross one link — and it decides who may talk on that link, and when. This lesson is the map for the whole week.
Where Layer 2 fits
Consider the journey of a single message. At Layer 3, a router thinks in terms of packets and IP networks — it asks “which network is this destined for?” But a packet cannot travel on its own; something must carry it across the actual wire or radio link in front of it. That “something” is the Data Link layer, Layer 2 of the OSI model.
The word to hold onto is link. Layer 3 moves data between networks; Layer 2 moves data across one link. Every hop of a journey is a fresh Layer-2 problem. When your packet leaves your PC, it must reach the local switch; the switch must hand it to the router; the router must build a new frame for the next link, and so on. Each of those steps is Layer 2 doing its job.
This is why the layer is sometimes described as “focused on the local network”. A device at Layer 2 does not know, and does not care, whether the final destination is on another continent. It only needs to get the frame to the next device on this segment.
The two sublayers: LLC and MAC
The Data Link layer is a large job, so IEEE divided it into two sublayers. This split is a favourite exam topic, so learn the boundary precisely.
| Sublayer | Standard | Responsibility |
|---|---|---|
| Logical Link Control (LLC) | IEEE 802.2 | Provides services to the Network layer above: identifies which network-layer protocol is carried (multiplexing) and provides flow/error control between the two peers. It is independent of the physical media. |
| Media Access Control (MAC) | IEEE 802.3 (Ethernet) | Handles the hardware addressing, the rules for accessing the shared medium, and the framing (headers/trailer) that goes on the wire. It is specific to the technology (Ethernet, Wi-Fi, etc.). |
The core Layer-2 services
Whatever the technology — Ethernet, Wi-Fi, PPP — a Data Link protocol provides the same family of services. Learn them as a checklist.
The frame: header, data, trailer
A frame is the Layer-2 unit of data. It has three parts.
Header
Control information placed in front of the data: the destination MAC address, the source MAC address, and (for Ethernet) a Type/Length field that identifies the upper-layer protocol (for example, IPv4 or ARP).
Data (payload)
The encapsulated Layer-3 packet (which itself contains the Layer-4 segment, and so on).
Trailer
Control information placed after the data, holding the FCS. The Data Link layer is the only OSI layer that adds a trailer.
A useful habit: whenever you see a frame, picture the packet “inside” it. The packet is untouched — the frame simply wraps around it for the trip across one link. At the far end the frame is stripped away and the packet is passed up to Layer 3.
The Layer-2 PDU and the devices that work there
The Protocol Data Unit (PDU) is the name of the data at each layer. Memorise the chain: Data → Segment/Datagram → Packet → Frame → Bits. Layer 2’s PDU is the frame. Layer 3’s is the packet; Layer 4’s is the segment (TCP) or datagram (UDP). Using the wrong word is a classic exam trap — only Layer 3 has packets, and only Layer 2 has frames.
| Layer | PDU | Address used |
|---|---|---|
| 4 — Transport | Segment (TCP) / Datagram (UDP) | Port numbers |
| 3 — Network | Packet | IP address |
| 2 — Data Link | Frame | MAC address |
| 1 — Physical | Bits | — |
Three device families operate primarily at Layer 2. You will study them in detail in Lesson 4 of this week; here is the one-line role of each.
Why this layer matters
Layer 2 is where the network becomes physical and local. It is where collisions happen, where switches learn, where MAC addresses are used, and where corrupted frames are caught. Understanding it explains why a switch is faster than an old hub, why broadcast storms can cripple a LAN, and why MAC addresses only matter on the local segment.
The next lessons in this week build directly on this foundation: MAC addressing (Lesson 2), how frames are delivered to one, all, or many devices (Lesson 3), and the switches and bridges that do the forwarding (Lesson 4).
Review
Check what you have learned with these review questions.
Sources & references
- IEEE. IEEE 802.2: Logical Link Control. standards.ieee.org.
- IEEE. IEEE 802.3: Ethernet (MAC sublayer, frame format, FCS). standards.ieee.org.
- Braden, R. RFC 1122: Requirements for Internet Hosts — Communication Layers (1989), Section 1.3.3 (“Terminology”). rfc-editor.org/rfc/rfc1122.
- Cisco. CCNA (200-301) Exam Topics, Network Fundamentals. cisco.com.
Target exams: CCNA 200-301 v1.1 · CyberOps Associate 200-201. Last content verification: 2026-10-11.