CSMA CD Mechanism - buaamer81/IT130-Networking-Wiki GitHub Wiki

πŸ” CSMA/CD Mechanism


πŸ“˜ Overview

CSMA/CD stands for Carrier Sense Multiple Access with Collision Detection. It was used in traditional Ethernet networks that shared a common transmission medium (like coaxial cable or hubs). The mechanism helps prevent and handle data collisions, ensuring fair communication between devices on the same network segment.

Modern Ethernet networks using switches and full-duplex communication no longer need CSMA/CD, but understanding it is critical for grasping how early Ethernet worked.


🚦 How CSMA/CD Works (Step-by-Step)

  1. Carrier Sense (CS): A device listens to the cable to see if any other device is currently transmitting.
  2. Multiple Access (MA): All devices share the same communication channel (the medium).
  3. If idle β†’ the device begins transmitting.
  4. If two devices transmit at once β†’ a collision occurs.
  5. Collision Detection (CD): Devices detect the collision by comparing the transmitted signal to what’s on the cable.
  6. Jam Signal is sent to notify all devices.
  7. Each device waits a random time (called backoff) and then tries again.

πŸ’‘ Important Points

  • CSMA/CD was crucial in early half-duplex Ethernet networks (like 10Base2, 10BaseT with hubs).
  • It relies on random backoff (usually using the binary exponential backoff algorithm).
  • As network traffic increases, collisions increase, reducing efficiency.
  • Switches eliminate collisions by creating separate collision domains for each port.

πŸ” When Is CSMA/CD Used?

Ethernet Type Uses CSMA/CD? Reason
10Base2 / 10Base5 βœ… Yes Shared coax cable
10BaseT + hub βœ… Yes Shared media (hub)
10BaseT + switch ❌ No Switches isolate traffic
Full-Duplex ❌ No Devices transmit and receive at the same time

πŸ–ΌοΈ Optional Visual Suggestion

Diagram Idea: A simple flowchart showing a station sensing the line, transmitting, detecting a collision, jamming, and backing off.

(Do you want me to generate this diagram too?)


🌿 Related Terms