Course contentsShow
← Computer Science
Lesson 1453 of 2,87233. Networking FundamentalsFree lesson

CSMA/CD Protocol

Understanding Carrier Sense Multiple Access with Collision Detection, the original Ethernet access control method.

CSMA/CD Protocol

What you'll learn: How Ethernet networks originally managed collisions when multiple devices tried to transmit data simultaneously.

What is CSMA/CD?

Carrier Sense Multiple Access with Collision Detection (CSMA/CD) is the classic protocol used by Ethernet to coordinate how devices share a single network cable. Think of it like a polite conversation at a dinner table—before speaking, you listen to see if anyone else is talking, and if two people accidentally start talking at once, both stop and wait before trying again.

How It Works

The protocol operates in three key phases:

1. Carrier Sense (Listen Before Transmitting)

Before sending data, a device listens to the network medium. If it detects another transmission in progress (the "carrier"), it waits until the line is clear.

2. Multiple Access (Shared Medium)

All devices on the network segment have equal access rights. When the line appears free, any device may begin transmitting its frame.

3. Collision Detection (Handle Simultaneous Transmission)

If two devices sense an idle line and start transmitting at nearly the same instant, their signals collide and corrupt each other. Each device detects this collision by monitoring the line while transmitting. Upon detecting a collision:

  • Both devices immediately stop transmitting
  • They send a "jam signal" to ensure all devices know about the collision
  • Each waits a random amount of time (using exponential backoff) before trying again

Why It Mattered

CSMA/CD was essential for early Ethernet networks using shared coaxial cables or hubs. Modern switched Ethernet creates dedicated paths between devices, making collisions impossible—so CSMA/CD is rarely used today, though full-duplex links don't need it at all.

Key Takeaway: CSMA/CD coordinates network access by having devices listen before transmitting, detect collisions when they occur, and back off randomly to retry—ensuring fair, orderly communication on shared Ethernet segments.