2
Most read
3
Most read
5
Most read
CSMA/CA & CSMA/CD
PROTOCOL
Prepared By:
Aditi Nandi Tokder
Assistant Professor
ECE Department
Techno Main Salt Lake
Contents CSMA/CA
- Methods to avoid collision
- CSMA/CA Flowchart
- Advantage & Disdavantage
CSMA/CD
- Working Steps
- Advantage & Disadvantage
Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA)
CSMA/CA is one of the network protocols for data frame transmission. When the station
sends the data frame on the channel then it receives the acknowledgment in response to the
sent data frame to test whether the channel is idle or not. When the station receives a single
signal, it means that there is no collision and data has been successfully received by the
receiver. But in case of collision, the station receives two signals: its signal and the second
signal sent by the other station
Methods used in the CSMA/ CA to avoid the collision:
Interframe space
Contention window
Acknowledgement
If the station wants to transmit the data then it waits until the channel becomes idle and when the channel
becomes idle station does not immediately send the data but waits for some time. This period is known as the
Interframe Space or IFS.
Interframe Space or IFS:
Contention Window:
The contention window is a time that is divided into time slots. When the station is ready for
data transmission after waiting for IFS then it chooses the random amount of slots for waiting.
After waiting for the random number of slots if the channel is still busy then the station does not
initiate the whole process again, the station stops its timer and restarts again when the
channel is sensed idle.
For contention window, value of random number R is in between 0 to 2^K -1 Putting K=0, R=0
K=1, R=0/1
K=2, value of R is any value from 0 to 3
K=3, value of R is any value from 0 to 7
If K=2, taking value of R=3, contention window size = 5sec*3=15 sec ( assuming every slot is of 5
second)
Acknowledgement:
There may be a chance of collision or data may be corrupted during the transmission. Positive acknowledgment
and time-out are used in addition to ensuring that the receiver has successfully received the data.
Flowchart
Advantage Of CSMA/CA
CMSA/CA prevents collision.
Due to acknowledgements, data is not
lost unnecessarily.
It avoids wasteful transmission.
It is very much suited for wireless
transmissions.
Disadvantage Of CSMA/CA
The algorithm calls for long waiting
times.
It has high power consumption.
Carrier Sense Multiple Access with Collision Detection (CSMA/CD)
CSMA/CD is a media access control method that was widely used in Early Ethernet technology/LANs when there
used to be shared Bus Topology and each node ( Computers) were connected By Coaxial Cables. Now a Days
Ethernet is Full Duplex and Topology is either Star (connected via Switchor Router) or Point to Point ( Direct
Connection). Hence CSMA/CD is not used but they are still supported though.
Consider a scenario where there are ‘n’ stations on a link and all are waiting to transfer data through that
channel. In this case, all ‘n’ stations would want to access the link/channel to transfer their own data. Problem
arises when more than one stationtransmits the data at the moment. In this case, there will be collisions in the
data fromdifferent stations.
CSMA/CD is one such technique where different stations that follow this protocol agree on some terms and
collision detection measures for effective transmission.
Advantage Of CSMA/CD
Better than CSMA/CA for collision detection
Avoids wasted transmission
Shares bandwidth at each station
Lower overhead than CSMA CA
Disadvantage Of CSMA/CD
Limited scalability
Not suitable for long-distance networks
Performance is negatively impacted when a
large number of devices are introduced
Working Steps:
Step 1: Check if the sender is ready for
transmitting data packets.
Step 2: Check if the transmission link is idle?
Step 3: Transmit the data & check for collisions.
Step 4: If no collision was detected in propagation, the
sender completes its frametransmission and resets the
counters.
How does a station know if its data collide?
Consider two stations, A & B.
Propagation Time: Tp = 1 hr ( Signal takes 1 hr to go
from A to B) At time t=0, A transmits its data.
t= 30 mins : Collision occurs.
After the collision occurs, a collision signal is
generated and sent to both A &Btoinformthe stations
about a collision. Since the collision happened
midway, the collision signal also takes 30 minutes to
reach A & B.
Therefore, t=1 hr: A & B receive collision signals. This collision signal is received by all the stations on that link.
Thank You

More Related Content

PPTX
Carrier Sense Multiple Access With Collision Detection (CSMA/CD) Details : Me...
PPTX
Media Access Control (MAC Layer)
PPTX
Computer network
PPTX
Carrier-sense multiple access with collision detection (CSMA/CD)
PPTX
csmacd.pptx
PPTX
csmacd.pptx
PPTX
Computer Network presention Pravin Bhargav , Surykant Ratrey (1).pptx
PDF
CSMA /CD PPT ON SLIDESHARE
Carrier Sense Multiple Access With Collision Detection (CSMA/CD) Details : Me...
Media Access Control (MAC Layer)
Computer network
Carrier-sense multiple access with collision detection (CSMA/CD)
csmacd.pptx
csmacd.pptx
Computer Network presention Pravin Bhargav , Surykant Ratrey (1).pptx
CSMA /CD PPT ON SLIDESHARE

Similar to CSMA .pdf (20)

PPTX
bcnunit34645788666666666666666675666666667
PPT
ch12-multiple-access-COMPUTER NETWORKS.ppt
PPTX
WHAT IS MAC-1 presentation for information .pptx
PPTX
Unit 3 - Data Link Layer - Part B
PPT
Lecture 6
PPT
Multiple Access ppt in Object Oriented Programming
PPT
multiple access techniquesch12-multiple-access.ppt
PDF
Introduction to networking
PPT
unit 3 Multiple Access.ppt
PDF
Medium access control. MAC Protocol.Data link layer
PPTX
BWU_BTA_22_508_RANJAN DAS(Computer Networks).pptx
PPT
ch12.ppt computer network specifically from data link layer
PPT
1.4. ALOHA, CSMA , CSMACD, CSMACA .ppt
PPTX
computer__networks .pptx
PPTX
Multiple access protocols in data communication networks
PPT
medium access tcpip network layer data link layer
PPT
Unit 1 mac vsd
PPTX
Lecture 10
PPTX
Carrier-sense multiple access with collision avoidance CSMA/CA
PPTX
Unit_3_WSN.pptx
bcnunit34645788666666666666666675666666667
ch12-multiple-access-COMPUTER NETWORKS.ppt
WHAT IS MAC-1 presentation for information .pptx
Unit 3 - Data Link Layer - Part B
Lecture 6
Multiple Access ppt in Object Oriented Programming
multiple access techniquesch12-multiple-access.ppt
Introduction to networking
unit 3 Multiple Access.ppt
Medium access control. MAC Protocol.Data link layer
BWU_BTA_22_508_RANJAN DAS(Computer Networks).pptx
ch12.ppt computer network specifically from data link layer
1.4. ALOHA, CSMA , CSMACD, CSMACA .ppt
computer__networks .pptx
Multiple access protocols in data communication networks
medium access tcpip network layer data link layer
Unit 1 mac vsd
Lecture 10
Carrier-sense multiple access with collision avoidance CSMA/CA
Unit_3_WSN.pptx
Ad

More from nandiaditi2010 (6)

PDF
Graffiti 23_compressed .pdf
PDF
PASS BY VALUE .pdf
PDF
Class in Java, Declaring a Class, Declaring a Member in a Class.pdf
PDF
Web Technology-Method .pdf
PDF
Networking Basics .pdf
PDF
IP Address & Its Classes .pdf
Graffiti 23_compressed .pdf
PASS BY VALUE .pdf
Class in Java, Declaring a Class, Declaring a Member in a Class.pdf
Web Technology-Method .pdf
Networking Basics .pdf
IP Address & Its Classes .pdf
Ad

Recently uploaded (20)

PDF
August 2025 - Top 10 Read Articles in Network Security & Its Applications
PDF
Visual Aids for Exploratory Data Analysis.pdf
PPTX
Fundamentals of safety and accident prevention -final (1).pptx
PDF
distributed database system" (DDBS) is often used to refer to both the distri...
PPTX
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
PDF
Categorization of Factors Affecting Classification Algorithms Selection
PPTX
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
PPT
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
PDF
Design Guidelines and solutions for Plastics parts
PDF
ChapteR012372321DFGDSFGDFGDFSGDFGDFGDFGSDFGDFGFD
PDF
Improvement effect of pyrolyzed agro-food biochar on the properties of.pdf
PPTX
introduction to high performance computing
PDF
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PPTX
Chemical Technological Processes, Feasibility Study and Chemical Process Indu...
PDF
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PPTX
tack Data Structure with Array and Linked List Implementation, Push and Pop O...
PPTX
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
PDF
Soil Improvement Techniques Note - Rabbi
August 2025 - Top 10 Read Articles in Network Security & Its Applications
Visual Aids for Exploratory Data Analysis.pdf
Fundamentals of safety and accident prevention -final (1).pptx
distributed database system" (DDBS) is often used to refer to both the distri...
Graph Data Structures with Types, Traversals, Connectivity, and Real-Life App...
Categorization of Factors Affecting Classification Algorithms Selection
CURRICULAM DESIGN engineering FOR CSE 2025.pptx
INTRODUCTION -Data Warehousing and Mining-M.Tech- VTU.ppt
Design Guidelines and solutions for Plastics parts
ChapteR012372321DFGDSFGDFGDFSGDFGDFGDFGSDFGDFGFD
Improvement effect of pyrolyzed agro-food biochar on the properties of.pdf
introduction to high performance computing
Accra-Kumasi Expressway - Prefeasibility Report Volume 1 of 7.11.2018.pdf
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
Chemical Technological Processes, Feasibility Study and Chemical Process Indu...
BIO-INSPIRED ARCHITECTURE FOR PARSIMONIOUS CONVERSATIONAL INTELLIGENCE : THE ...
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
tack Data Structure with Array and Linked List Implementation, Push and Pop O...
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
Soil Improvement Techniques Note - Rabbi

CSMA .pdf

  • 1. CSMA/CA & CSMA/CD PROTOCOL Prepared By: Aditi Nandi Tokder Assistant Professor ECE Department Techno Main Salt Lake
  • 2. Contents CSMA/CA - Methods to avoid collision - CSMA/CA Flowchart - Advantage & Disdavantage CSMA/CD - Working Steps - Advantage & Disadvantage
  • 3. Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA) CSMA/CA is one of the network protocols for data frame transmission. When the station sends the data frame on the channel then it receives the acknowledgment in response to the sent data frame to test whether the channel is idle or not. When the station receives a single signal, it means that there is no collision and data has been successfully received by the receiver. But in case of collision, the station receives two signals: its signal and the second signal sent by the other station Methods used in the CSMA/ CA to avoid the collision: Interframe space Contention window Acknowledgement If the station wants to transmit the data then it waits until the channel becomes idle and when the channel becomes idle station does not immediately send the data but waits for some time. This period is known as the Interframe Space or IFS. Interframe Space or IFS:
  • 4. Contention Window: The contention window is a time that is divided into time slots. When the station is ready for data transmission after waiting for IFS then it chooses the random amount of slots for waiting. After waiting for the random number of slots if the channel is still busy then the station does not initiate the whole process again, the station stops its timer and restarts again when the channel is sensed idle. For contention window, value of random number R is in between 0 to 2^K -1 Putting K=0, R=0 K=1, R=0/1 K=2, value of R is any value from 0 to 3 K=3, value of R is any value from 0 to 7 If K=2, taking value of R=3, contention window size = 5sec*3=15 sec ( assuming every slot is of 5 second) Acknowledgement: There may be a chance of collision or data may be corrupted during the transmission. Positive acknowledgment and time-out are used in addition to ensuring that the receiver has successfully received the data.
  • 5. Flowchart Advantage Of CSMA/CA CMSA/CA prevents collision. Due to acknowledgements, data is not lost unnecessarily. It avoids wasteful transmission. It is very much suited for wireless transmissions. Disadvantage Of CSMA/CA The algorithm calls for long waiting times. It has high power consumption.
  • 6. Carrier Sense Multiple Access with Collision Detection (CSMA/CD) CSMA/CD is a media access control method that was widely used in Early Ethernet technology/LANs when there used to be shared Bus Topology and each node ( Computers) were connected By Coaxial Cables. Now a Days Ethernet is Full Duplex and Topology is either Star (connected via Switchor Router) or Point to Point ( Direct Connection). Hence CSMA/CD is not used but they are still supported though. Consider a scenario where there are ‘n’ stations on a link and all are waiting to transfer data through that channel. In this case, all ‘n’ stations would want to access the link/channel to transfer their own data. Problem arises when more than one stationtransmits the data at the moment. In this case, there will be collisions in the data fromdifferent stations. CSMA/CD is one such technique where different stations that follow this protocol agree on some terms and collision detection measures for effective transmission. Advantage Of CSMA/CD Better than CSMA/CA for collision detection Avoids wasted transmission Shares bandwidth at each station Lower overhead than CSMA CA Disadvantage Of CSMA/CD Limited scalability Not suitable for long-distance networks Performance is negatively impacted when a large number of devices are introduced
  • 7. Working Steps: Step 1: Check if the sender is ready for transmitting data packets. Step 2: Check if the transmission link is idle? Step 3: Transmit the data & check for collisions. Step 4: If no collision was detected in propagation, the sender completes its frametransmission and resets the counters. How does a station know if its data collide? Consider two stations, A & B. Propagation Time: Tp = 1 hr ( Signal takes 1 hr to go from A to B) At time t=0, A transmits its data. t= 30 mins : Collision occurs. After the collision occurs, a collision signal is generated and sent to both A &Btoinformthe stations about a collision. Since the collision happened midway, the collision signal also takes 30 minutes to reach A & B. Therefore, t=1 hr: A & B receive collision signals. This collision signal is received by all the stations on that link.