Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • Aptitude
  • Engineering Mathematics
  • Discrete Mathematics
  • Operating System
  • DBMS
  • Computer Networks
  • Digital Logic and Design
  • C Programming
  • Data Structures
  • Algorithms
  • Theory of Computation
  • Compiler Design
  • Computer Org and Architecture
Open In App
Next Article:
Difference Between Non-Persistent and p-Persistent CSMA
Next article icon

Difference between 1-persistent, p-persistent and Non-persistent CSMA

Last Updated : 16 Apr, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

Carrier Sense Multiple Access (CSMA) is a network protocol used to control access to a shared communication channel. Before a device (or station) sends data, it first listens to the channel (also called carrier sensing) to check if it is busy or idle. If the channel is idle, the device starts transmitting data. If the channel is busy, the device waits for it to become free before trying again. Imagine you're in a room where several people want to talk, CSMA works like:

  • 1-persistent CSMA is like someone who keeps checking if the room is quiet, and the second it is, they start talking with no hesitation. This often causes people to talk over each other because everyone’s jumping in at the same time.
  • p-persistent CSMA is a bit more polite. The conversation is broken into small time slots, and people only speak based on a certain chance. So even if the room is quiet, they might wait a bit before talking, which helps avoid overlap.
  • Non-persistent CSMA is like waiting a while after noticing the room is busy, then randomly checking again. It reduces the chance of people talking at the same time, but it can slow things down a bit.

Let us discuss them in detail below:

1. 1-Persistent CSMA

Working:

  • A station continuously checks the channel to see if it's idle or busy.
  • If the channel is busy, the station waits until it becomes idle.
  • Once the channel is idle, the station immediately transmits its data with no delay.
  • The station transmits with 100% probability (hence the name 1-persistent CSMA).

Key Points:

  • High risk of collision: If multiple stations detect the channel is idle at the same time, they all transmit at once, causing a collision.
  • After a collision: Each station waits for a random backoff time, then tries again once the channel is idle.
  • Additional risk: If two stations are already communicating, other stations (called intermediate stations) will wait and not transmit.

2. P-Persistent CSMA

Working:

  • Used when the channel has time slots, and each slot is equal to or longer than the maximum propagation delay.
  • When a station is ready to send data, it first checks the channel.
  • If the channel is busy: The station waits for the next time slot.
  • If the channel is idle :The station will Transmit the frame with probability p and wait for the next time slot with probability q = 1 - p.
  • Repeats until: The frame is successfully transmitted or another station starts transmitting (causing the station to stop and try again later)
P-Persistance

Key Points :

  • Balanced approach between speed and collision avoidance.
  • Reduces the chance of collisions compared to 1-persistent CSMA.
  • Useful when time-slotted communication is in place.

3. Non-Persistent CSMA

Working:

  • Only the station that has data to send will sense the channel.
  • If the channel is idle: The station immediately transmits the data.
  • If the channel is busy: The station waits for a random amount of time, then senses the channel again.
  • The station does not keep checking continuously just to grab the channel as soon as it’s free.
Non-Persistent

Key Points:

  • Focuses on collision avoidance over speed.
  • Suitable for systems where minimizing collisions is more important than transmission speed.

Difference Between 1-persistent, p-persistent and Non-persistent CSMA

Parameter1-persistent CSMAp-persistent CSMANon-persistent CSMA
Carrier SenseIt sends with the probability of 1 when channel is idle.It sends with the probability of p when channel is idle.It send when channel is idle.
WaitingIt continuously senses the channel or carrier.It waits for the next time slot.It will wait for the random amount of time to check the carrier.
Chances of CollisionThere is highest chances of collision in this.Less chances as compared to 1-persistence and non-persistence.Less chances as compared to 1-persistence but more than the p-persistence.
UtilizationIt's utilization is above ALOHA as frames are only sent when the channel is idle.It's utilization is depend upon the probability p.It's utilization is above 1-persistent as not all the stations constantly check the channel at the same time.
Delay Low LoadIt is low as frames are sent when the channel become idle.It is large when p is small as station will not always send when channel is idle.It is small as station will send whenever channel is found idle but longer than 1-persistent since it checks for the random time when busy.
Delay High LoadIt is high due to collision.It is large when the probability p of sending is small when channel is idle and channel is rarely idle.It is longer than 1-persistent as channel is checked randomly when busy.

Next Article
Difference Between Non-Persistent and p-Persistent CSMA
author
itskawal2000
Improve
Article Tags :
  • Computer Networks
  • Difference Between
  • GATE CS

Similar Reads

  • Difference Between Non-Persistent and p-Persistent CSMA
    Carrier Sense Multiple Access (CSMA) is a network protocol that determines on how data should be transmitted in a shared medium communication channel so that there will be no collisions. It provides for the possibility for several equipment or devices to send out data while at the same time not clas
    6 min read
  • Difference between 1-Persistent and Non-Persistent CSMA
    Carrier Sense Multiple Access (CSMA) is a type of network protocol used in the organization of access to networks including Ethernet. Non-Persistent CSMA and 1-Persistent CSMA are two variations of CSMA that are often employed. The knowledge of the relative distinction between these two protocols is
    5 min read
  • Difference between 1-Persistent and p-Persistent CSMA
    Prerequisite – Carrier Sense Multiple Access (CSMA) 1. 1-persistent CSMA : In 1-persistent CSMA, station continuously senses channel to check its state i.e. idle or busy so that it can transfer data. In case when channel is busy, station will wait for channel to become idle. When station finds an id
    3 min read
  • HTTP Non-Persistent & Persistent Connection | Set 1
    The Hypertext Transfer Protocol (HTTP) is an application-level protocol that uses TCP as an underlying transport and typically runs on port 80. HTTP is a stateless protocol i.e. server maintains no information about past client requests. HTTP ConnectionsNon-PersistentPersistentBasic Pre-RequisiteThe
    3 min read
  • Differences between Point-to-Point and Multi-point Communication
    In this section, we shall see the differences between Point-to-Point and Multi-point Communication. In point-to-point communication, there is a dedicated link between two nodes, and in multi-point communication, the link is provided at all times for sharing the connection among nodes. Now, the diffe
    2 min read
  • Difference between N-version programming and Recovery blocks Techniques
    Software fault-tolerance techniques use two common techniques to achieve fault-tolerance. 1. N-version programming : In N-version programming technique, there are N groups or individual of developers that do not share the programming process and these independents develop N versions of software modu
    2 min read
  • Difference between Register Mode and Register Indirect Mode
    In the computer system, addressing modes refer to how the operands of an instruction is located or accessed. There are two critical addressing modes namely the Register Mode and Register Indirect Mode. These modes are often used to address data present in the registers in the course of running of pr
    5 min read
  • Difference between volatile and transient keywords in Java
    Just like any other programming language, Java has a set of keywords which are reserved and have a special meaning. In this article, we will see the difference between the keywords volatile and transient. Before getting into the differences, let us first understand what each of them actually means.
    3 min read
  • Difference between Cache Coherence and Memory Consistency
    1. Cache coherence :Cache coherence in computer architecture refers to the consistency of shared resource data that is stored in multiple local caches. When clients in a system maintain caches of a shared memory resource, problems with incoherent data can arise, which is especially true for CPUs in
    2 min read
  • Difference between C.V.T and U.P.S
    A CVT means Constant Voltage Transformer makes sure the power coming out stays the same even if the power going in changes. A UPS means an Uninterrupted Power Supply gives you backup power when the main power goes out or gets weak. These tools do different jobs to help keep your electronics working
    5 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences