Week 1 · Lesson 16

OSI Model - Data Link Layer

Layer 2 is the layer that actually gets a chunk of data across one link and into the next device. It frames the packet, stamps it with MAC addresses, adds a checksum, and decides whose turn it is to talk on the wire.

CCNA 200-301 Domain 1.0 Network Fundamentals Verified 2026-10-11
Part 1

Layer 2 in the stack

The Data Link layer is Layer 2. It sits directly above the Physical layer (Layer 1) and directly below the Network layer (Layer 3). Its scope is deliberately narrow: it moves data across a single link between two directly connected devices, called nodes. That is why Layer 2 delivery is described as node-to-node (or link-to-link) delivery, while Layer 3 is host-to-host across the whole path.

The Data Link layer takes the Layer 3 packet from above and hands the Physical layer a frame to transmit. On receipt it does the reverse. Everything Layer 2 does happens per hop, on one link at a time.

Definition — data link layer. The data link layer (Layer 2) prepares packets for transmission on a single link: it frames the data, adds physical (MAC) addresses, detects errors, and controls access to the shared medium.
Part 2

The jobs of the data link layer

Layer 2 has five jobs. Learn them as a set, because exam questions often ask you to spot which one is being described:

JobWhat it means
FramingWrap the packet in a frame with a header and trailer so the receiver can tell where the frame begins and ends.
Physical addressingAdd source and destination MAC addresses to identify the devices on this link.
Error detectionAppend an FCS checksum; a frame that fails the check is discarded.
Media access controlDecide which device may transmit when several share the medium (for example CSMA/CD on old Ethernet, CSMA/CA on Wi-Fi).
Topology controlDefine and manage how nodes are arranged on the link (the link’s logical topology) and provide link-level flow control.

Notice that Layer 2 detects errors but does not correct them. A corrupted frame is simply dropped, and recovery is left to upper-layer protocols such as TCP.

Five jobs of the data link layer · select one

Part 3

Two sublayers: LLC and MAC

The IEEE split Layer 2 into two sublayers so that the logical and hardware parts could evolve independently:

 +-----------------------------------------------+
 |  Network layer (Layer 3)  -  IP packet        |
 +-----------------------------------------------+
 |  Data Link layer (Layer 2)                    |
 |   +-----------------------------------------+ |
 |   |  LLC sublayer          (IEEE 802.2)     | |
 |   +-----------------------------------------+ |
 |   |  MAC sublayer          (802.3 / 802.11) | |
 |   +-----------------------------------------+ |
 +-----------------------------------------------+
 |  Physical layer (Layer 1)  -  bits            |
 +-----------------------------------------------+

The LLC sublayer is the same regardless of whether the link is wired or wireless; the MAC sublayer changes with the technology. That is why Ethernet and Wi-Fi are different at Layer 2 but both carry IP perfectly happily at Layer 3.

MAC address decoder
Part 4

The frame and the trailer

A frame is the Layer 2 PDU: the Layer 3 packet plus a Layer 2 header and a Layer 2 trailer. The Data Link layer is the only layer that adds a trailer, and that trailer holds the Frame Check Sequence (FCS). In IEEE 802.3 (Ethernet) the frame is a sequence of fields. At a high level they are:

Ethernet frame fields · select a field
Preamble
Addresses
Type / Length
Data
Trailer

Scope note. Do not memorise field lengths from this lesson. The exact 802.3 frame layout (byte counts, minimum/maximum sizes, padding rules) is examined later in the course. At the OSI-overview stage you only need the names and purpose of the fields.

Two naming facts to lock in: the Layer 2 PDU is a frame, and Layer 2 is the only OSI layer that adds a trailer (the FCS) in addition to a header.

Remember the PDU ladder. Layer 4: segment (TCP) or datagram (UDP). Layer 3: packet. Layer 2: frame. Layer 1: bits. Encapsulation adds a Layer 2 header and trailer around the packet on the way down (see Lesson 18).
Part 5

Devices: switch and bridge

The classic Layer 2 devices are the bridge and the switch. A switch is effectively a multi-port bridge:

A bridge does exactly the same job, historically with fewer ports and often implemented in software. The switch is simply the modern, hardware-based descendant.

Switch forwarding · choose a destination MAC
MAC addressLearned port

Exam tip. The single most tested Layer 2 versus Layer 3 fact: a switch forwards using MAC addresses and stays at Layer 2, while a router forwards using IP addresses and works at Layer 3. If a question mentions two different networks, the answer is a router; if it is about devices on the same LAN, it is a switch.
Part 6

Layer 2 protocols

Several different protocols define how Layer 2 works on different media:

ProtocolStandard / RFCWhere it is used
EthernetIEEE 802.3The dominant wired LAN technology; defines the MAC sublayer and the Ethernet frame.
Wi-FiIEEE 802.11The dominant wireless LAN technology; uses CSMA/CA for media access.
PPPRFC 1661Point-to-point links, classically WAN serial connections between two devices.
LLCIEEE 802.2The upper sublayer used with 802.3 and 802.11 to present a common interface to Layer 3.

Other technologies such as Frame Relay, ATM, and HDLC also live at Layer 2, but modern networks are overwhelmingly Ethernet at the access layer, 802.11 in the air, and PPP or Ethernet on WAN links.

Part 7 · Your turn

Review

Check what you have learned with these review questions.

Review · 6 questions

Key terms

Sources: RFC 791; RFC 1122; RFC 1661 (PPP); IEEE 802.2, 802.3 and 802.11; ISO/IEC 7498-1; Cisco CCNA 200-301 exam topics.

Sources

Sources & references

  1. Postel, J. RFC 791: Internet Protocol (1981). rfc-editor.org/rfc/rfc791.
  2. Braden, R. RFC 1122: Requirements for Internet Hosts — Communication Layers (1989). rfc-editor.org/rfc/rfc1122.
  3. IEEE. IEEE 802.3 (Ethernet; MAC sublayer and frame format). standards.ieee.org.
  4. IEEE. IEEE 802.11 (Wireless LAN MAC and PHY). standards.ieee.org.
  5. ISO/IEC. 7498-1:1994 — Open Systems Interconnection — Basic Reference Model. iso.org.
  6. 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.