Data link layer in AP Networking
The data link layer is Layer 2 of the OSI model, the level where data travels as frames and devices on a local network are identified by MAC addresses. Its hardware includes NICs and layer-2 switches, and ARP works here to map IP addresses to MAC addresses.
This definition is part of Fiveable's AP Networking review, which also has guided practice questions.
What is the data link layer?
The data link layer is Layer 2 of the OSI model. Think of it as the layer that handles getting data from one device to another inside the same local network. At this layer, the protocol data unit (PDU) is called a frame, so when data reaches Layer 2, it's been wrapped up with the addressing info needed for a local hop.
The key addressing scheme here is the MAC address, a hardware ID burned into a device's network interface card (NIC). While IP addresses (Layer 3) can route data across the whole internet, MAC addresses only matter for local delivery. ARP lives here too, translating an IP address into the matching MAC address so a frame knows exactly which device to go to. The hardware you'll associate with this layer is NICs and layer-2 switches, which forward frames based on MAC addresses.
Why the data link layer matters in AP Networking
This term sits in Unit 4: Managing Our Global Connections, specifically topic 4.2 on protocols and the OSI/TCP/IP models. It directly supports AP Networking 4.2.B (describing how the models are structured, including PDUs per layer) and AP Networking 4.2.C (using the layers to troubleshoot). The CED explicitly ties the data link layer to NICs, MAC addresses, and layer-2 switches, so if you can name those three pieces of hardware, you've got the layer. It also connects to AP Networking 4.2.A, since MAC addresses and ARP are the protocols that make local device identification work.
Keep studying AP Networking Unit 4
Official unit cheatsheet
open one-pagerHow the data link layer connects across the course
Frame and Encapsulation (Unit 4)
The frame is the PDU at the data link layer. As data moves down the OSI model, encapsulation wraps it with more addressing info at each step, and the Layer 2 wrapper is the frame. Seeing 'frame' on a question is your cue that you're at the data link layer.
MAC addresses and ARP (Unit 4)
MAC addresses identify devices locally, and ARP maps a known IP address to the right MAC address. Both operate at Layer 2, which is why a device needs to resolve a MAC before it can actually send a frame to its neighbor.
Internet (Network) Layer and IP addressing (Unit 4)
The layer right above, Layer 3, uses IP addresses to route data across networks, while the data link layer uses MAC addresses for the local hop. Think of IP as the full mailing address and MAC as the specific apartment door inside the building.
Bottom-up troubleshooting (Unit 4)
When you troubleshoot from the bottom up, Layer 2 is your second stop after the physical layer. If cables check out but the NIC, MAC address, or a layer-2 switch is the problem, you've isolated the fault to the data link layer.
Is the data link layer on the AP Networking exam?
Expect this term in multiple-choice questions that ask you to match a device, address type, or PDU to the right OSI layer. If a stem mentions a NIC, a MAC address, a layer-2 switch, or a frame, the answer is the data link layer. It also shows up in troubleshooting scenarios aligned to AP Networking 4.2.C, where you narrow a fault to a specific layer. A switch failing to forward traffic by MAC address points to Layer 2, while a cable fault would be the physical layer below it. Know the layer's position (second from the bottom) and its PDU (frame).
The data link layer vs network (internet) layer
Both deal with addressing, so they're easy to mix up. The data link layer (Layer 2) uses MAC addresses for delivery within one local network and works with switches and NICs. The network layer (Layer 3) uses IP addresses to route data between networks and works with routers. Shortcut: MAC and switches are Layer 2; IP and routers are Layer 3.
Key things to remember about the data link layer
The data link layer is Layer 2 of the OSI model, sitting just above the physical layer.
Its PDU is the frame, so whenever a question mentions frames, you're at the data link layer.
MAC addresses and ARP operate here, handling device identification and IP-to-MAC mapping within a local network.
The hardware tied to this layer is NICs and layer-2 switches.
In troubleshooting, Layer 2 problems involve NICs, MAC addresses, or switches, while physical cabling issues belong one layer down.
Frequently asked questions about the data link layer
What is the data link layer in networking?
It's Layer 2 of the OSI model, the level where data travels as frames and devices on the same local network are identified by MAC addresses. Its hardware includes network interface cards (NICs) and layer-2 switches.
Does the data link layer use IP addresses?
No. The data link layer uses MAC addresses for local delivery. IP addresses belong to the network layer (Layer 3) above it, though ARP at Layer 2 maps an IP address to its matching MAC address.
How is the data link layer different from the network layer?
The data link layer (Layer 2) uses MAC addresses and switches to move frames within a local network. The network layer (Layer 3) uses IP addresses and routers to move data between different networks.
What devices work at the data link layer?
Network interface cards (NICs) and layer-2 switches. A switch forwards frames based on MAC addresses, and a NIC is where a device's MAC address lives.
Why does the data link layer matter for troubleshooting?
The OSI layers give troubleshooting a structure, so you can isolate a fault to one layer. If cabling is fine but a NIC, MAC address, or layer-2 switch is the issue, the problem lives at the data link layer.
Keep studying AP Networking
Connect this key term to the AP exam workflow: review the course, practice questions, and check related study tools.