Week 5 · Lesson 5

Data Link Layer (in depth)

The Data Link layer is the layer that actually puts bits onto a shared piece of wire — and then has to solve every problem that creates: how do frames start and stop, who is allowed to transmit at any instant, and how do we know the bits arrived intact? This lesson is the detailed tour of those services and the access methods that implement them.

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

The services of the Data Link layer

The Data Link layer (OSI Layer 2) sits between the Physical layer below it and the Network layer above. The Physical layer moves raw signals; the Network layer cares about routing between networks. Layer 2 is the layer that governs one hop at a time — a single piece of medium between two devices. To do that it provides four classic services.

The four services · select one
Definition — the two sublayers (IEEE). LLC (Logical Link Control, IEEE 802.2) handles framing, flow control, and the interface to the layer above. MAC (Media Access Control, part of each 802 technology such as 802.3 or 802.11) handles media access and physical addressing.
Part 2

Frame synchronisation

A receiver on a wire sees an unbroken stream of bits. It cannot know “here a new frame starts” unless the sender marks it. Frame synchronisation is the mechanism that draws those boundaries: a repeating bit pattern (a start delimiter) is sent immediately before each frame so the receiver can lock on and know exactly where the frame begins.

Without a reliable delimiter, the receiver would lose “bit alignment”: every field after the mistake would be interpreted at the wrong offset, and the frame would be unreadable.

Part 3

Media access control

If several stations share one medium, only one may transmit at a time or their signals will overlap and corrupt each other. Media access control is the set of rules that decides who speaks when. There are two broad families.

Contention-based (distributed). Stations compete for the medium with no central scheduler. CSMA/CD and CSMA/CA are in this family.
Controlled. A token, a poll, or a reservation schedule grants the right to transmit. Token Ring and FDDI are in this family.

The access method differs sharply between Ethernet (wired) and Wi-Fi (wireless), and it is a favourite exam comparison.

Access methods · select one

Part 4

Flow control and error control

A sender that transmits faster than the receiver can process will overflow the receiver’s buffers. Flow control is the mechanism that throttles the sender. Two broad approaches exist.

ApproachHow it worksExamples
Feedback-basedThe receiver sends control messages back (ACKs, window updates, “stop/wait” signals) to tell the sender to slow down or continue.TCP sliding window; classic L2 stop-and-wait
Rate-basedNo feedback: the sender is simply limited to an agreed rate, or the receiver advertises a receive rate.Some modern links; traffic shaping above L2

On an Ethernet LAN specifically there is no Layer 2 flow-control loop in normal operation; end hosts rely on the transport layer (TCP). Ethernet defines optional PAUSE frames, but they are rarely used. The key idea: Layer 2 flow control, where present, is per-link.

Error control. Signals get corrupted: electrical noise, attenuation, interference. Layer 2 addresses this with error detection. The sender computes a mathematical value over the frame contents and puts it in the Frame Check Sequence (FCS) trailer. The receiver recomputes the same value; if the two differ, the frame was damaged.

Do not confuse the layers. Do not say “Ethernet retransmits bad frames.” It does not. Ethernet detects an error and drops the frame. Retransmission is TCP’s job (and UDP does not retransmit at all). Layer 2 error control on Ethernet = detection only.

Some Layer 2 technologies do retransmit — for example, 802.11 (Wi-Fi) sends an ACK per unicast frame, and PPP can run a reliable mode. That is a property of the specific protocol, not a universal Layer 2 rule.

Part 5

Media access methods in detail

The two contention-based methods you must know are CSMA/CD and CSMA/CA. Both begin with the same idea — carrier sense: listen before talking. They differ in what happens next.

CSMA/CD (Ethernet)

Carrier Sense Multiple Access with Collision Detection is the classic shared Ethernet access method. It runs on a half-duplex shared segment (historically a hub or a coax bus), where two stations can transmit at once.

For collision detection to work, a station must still be transmitting when a collision returns — which is exactly why Ethernet has a minimum frame size of 64 bytes (lesson 08).

CSMA/CA (Wi-Fi)

Carrier Sense Multiple Access with Collision Avoidance is the access method for IEEE 802.11 wireless LANs. Radio cannot reliably detect collisions the way a wire can (a station cannot hear a remote collision while it is transmitting), so Wi-Fi avoids collisions instead of detecting them.

Exam tip — CD vs CA. Ethernet = CSMA/CD = Detect (wired, can listen while transmitting). Wi-Fi = CSMA/CA = Avoid (radio, cannot reliably detect, so it acknowledges and backs off). The letters map to the behaviour: D etect on copper, A void in the air.

Token-based access

Controlled methods avoid contention entirely. In token passing (used by legacy IBM Token Ring and FDDI), a small special frame called the token circulates around a logical ring. A station may transmit only while it holds the token, and it passes the token on when done. There are never collisions because only one station can hold the token at a time. Token Ring and FDDI are obsolete in modern LANs — switched full-duplex Ethernet won on cost and simplicity — but they remain the classic exam alternative to contention.

Binary exponential backoff · how long to wait

Part 6

Why modern switched Ethernet has no collisions

On a modern LAN, each device has a dedicated cable to a switch port, and every link runs full-duplex: transmit and receive use separate wire pairs simultaneously. Each link is its own collision domain containing only the switch port and the attached device. Because there can be no second station transmitting on that link, collisions can never occur, and CSMA/CD is effectively turned off (or never triggered).

This is often called microsegmentation — the switch divides what used to be one shared collision domain into many single-device domains. CSMA/CD survives in the standard only for backward compatibility and rare half-duplex links. The exam point is simple: full-duplex switched links do not have collisions, so CSMA/CD does not run on them.

Shared hubSwitched, full duplex
One shared medium for every portA dedicated link per port
Two senders can collide; CSMA/CD must resolve itNo shared medium, so no collisions
One shared collision domainOne collision domain per port (microsegmentation)
Part 8 · Your turn

Review

Check what you have learned with these review questions.

Review · 6 questions

Sources

Sources & references

  1. IEEE. IEEE 802.3 (Ethernet, including CSMA/CD and full-duplex operation). standards.ieee.org/ieee/802.3.
  2. IEEE. IEEE 802.2 (Logical Link Control). standards.ieee.org/ieee/802.2.
  3. IEEE. IEEE 802.11 (Wireless LAN MAC; CSMA/CA and RTS/CTS). standards.ieee.org/ieee/802.11.
  4. 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.