SlideShare a Scribd company logo
3
Most read
7
Most read
11
Most read
Topic           : Networking and LAN
    Sub topic   : Describe CSMA
.




                                       1
Objectives
On completion of this period , you would be able to
know about
• CSMA ( Carrier Sense Multiple Access)
   • Types of CSMA
         –   Persistent CSMA
         –   Non Persistent CSMA
         –   CSMA / CD
   • Comparison


                                                      2
CSMA (Carrier Sense Multiple Access)

• CSMA: Its concept is simply listen before talk (LBT)
• If channel is sensed idle : transmit entire frame
• If channel is sensed busy : defer transmission
• We could achieve better throughput if we could listen to the
  channel before transmitting a packet
• This way, we would stop avoidable collisions
• To do this, we need CSMA protocols



                                                          3
Assumptions with CSMA Networks



• Constant length packets
• No errors, except those caused by collisions
• No capture effect
• Each host can sense the transmissions of all other hosts
• The propagation delay is small compared to the
  transmission time


                                                        4
CSMA              (cont’d)



• There are several types of CSMA protocols


      – 1-Persistent CSMA


      – Non-Persistent CSMA


      – P-Persistent CSMA


                                              5
1-Persistent CSMA

 • Sense the channel
    – If busy, keep listening to the channel and transmit
      immediately when the channel becomes idle
    – If idle, transmit a packet immediately

 • If collision occurs
      – Wait a random amount of time and start over again

This protocol is called 1-persistent because the host transmits
with a probability of 1 whenever it finds the channel idle

                                                             6
1-Persistent CSMA                  (cont’d)

• No longer propagation delay

• Even if prop. delay is zero, there will be collisions
  Example
    - If stations B and C become ready in the middle of A’s
      transmission, B and C will wait until the end of A’s
      transmission and then both will begin transmitted
      simultaneously, resulting in a collision

    - If B and C were not so greedy, there would be
      fewer collisions


                                                        7
Non-Persistent CSMA

• Sense the channel
      – If busy, wait a random amount of time and sense
        the channel again
      – If idle, transmit a packet immediately

• If collision occurs
         – wait a random amount of time and start all over
            again

       Merits
• Better channel utilization
• Longer delays
• Reduces chances of collision
• Reduces efficiency
                                                             8
Tradeoff between 1- and Non
           Persistent CSMA
• If only B becomes ready in the middle of A’s
  transmission
    – 1-Persistent: B succeeds as soon as A ends
    – Non-Persistent B may have to wait

• If B and C become ready in the middle of A’s
   transmission
     – 1-Persistent B and C collide
     – Non-Persistent B and C probably do not collide



                                                        9
Fig .1
         Fig .2

                  10
P-Persistent CSMA

• Applicable to slotted channels

• When a station becomes ready to send, it senses the
  channel
     – if it is idle, station transmits with a probability of p
     – it defers until next slot with a probability of q = 1-p

• If the slot is also idle
         – either station transmits or it defers with
           probabilities of p & q

• This is repeated until either the frame has been transmitted

 or another station begun transmitting
                                                              11
CSMA efficiency

• Decreases with t (prop) / t (trans)


• Decreases with increasing distance between nodes


• T (trans) = R / L where R is the link speed in bits/sec
  and L is the frame length in bits


• So, efficiency decreases with increasing link speed R

                                                            12
CSMA / CD : Network components
Carrier Sense Multiple Access / Collision Detection
• Medium (coax, tp, fiber)
• Transceivers
• AUI cable (drop cable; station to coax)
• NIC (network interface card -MAC protocol logic)
• Repeaters (needed to extend coax)
• Test equipment
• Hub (multipart repeater) : for star configuration
• Bridges (to connect to other LANs)



                                                      13
CSMA / CD : topologies, media , etc.
• media
  – coaxial cable
  – twisted pair
  – fiber (less common)

• topologies
   – bus - original design; widespread for many years
   – star with hub in middle; now becoming common

• data rates
   – 10 Mbps
   – 100 Mbps
   – Gbps on the way
                                                        14
CSMA / CD
Sending nodes are able to detect collisions while
transmitting
  • If medium is idle , transmits
  • If busy, listens for idle then transmits
  • While transmitting node continues to listen to see if a

    collision has occurred
  • If collision detected stops transmission, generates a

    jamming signal on the bus to indicate all nodes about

                                                              15
    collision
CSMA/CD Protocol




      Fig .3




                   16
CSMA/CD Protocol

• All hosts transmit & receive on one channel
• Packets are of variable size
• When a host has a packet to transmit


   1. Carrier Sense: Check that the line is idle before
     transmitting
   2. Collision Detection: Detect collision as soon as
     possible If a collision is detected, stop transmitting;
     wait a random time, sense the channel again
                                                               17
Summary

In this class, you have learnt about
 • Types of CSMA
       – Persistent CSMA
       – Non Persistent CSMA


 • CSMA / CD




                                       18
Quiz
1. ____________ helps Ethernet to recover from
  simultaneous transmissions causing errors


      (a) CSMA /CD
      (b) CSM
      (c) CD
      (d) Collisions




                                                 19
Quiz


2. Which one is applicable to slotted channel ?

        (a) 1- persistent CSMA
         (b) P- Persistent CSMA
         (c) Non – Persistent CSMA
         (d) All of the above




                                                  20
Frequently Asked Questions

1. Describe Persistent and Non Persistent CSMA




2. Compare Persistent and Non Persistent CSMA




3. Describe CSMA / CD


                                                 21

More Related Content

PDF
Support Vector Machines ( SVM )
PDF
Multiple Access
PPT
Leave management system
PPTX
Logic gates ppt
PPTX
Network Layer
PPT
Counters
PPTX
Csma protocols
PPTX
flip flops
Support Vector Machines ( SVM )
Multiple Access
Leave management system
Logic gates ppt
Network Layer
Counters
Csma protocols
flip flops

What's hot (20)

PPTX
Link state routing protocol
PPT
Parallel processing
PPTX
Pci,usb,scsi bus
PDF
Mobile computing (Wireless) Medium Access Control (MAC)
PPT
Distance vector routing
PPTX
Congestion control
PPTX
PDF
CSMA /CD PPT ON SLIDESHARE
PPTX
wireless network IEEE 802.11
PPTX
MEDIUM ACCESS CONTROL
PPT
Congestion control and quality of service
PPTX
Classification of routing protocols
PPTX
Media Access Control
PPT
Multiple Access in wireless communication
PPTX
Multiplexing
PPTX
Ethernet Computer network
PPTX
Address resolution protocol (ARP)
PPSX
Issues in Data Link Layer
PPTX
ALOHA Protocol (in detail)
Link state routing protocol
Parallel processing
Pci,usb,scsi bus
Mobile computing (Wireless) Medium Access Control (MAC)
Distance vector routing
Congestion control
CSMA /CD PPT ON SLIDESHARE
wireless network IEEE 802.11
MEDIUM ACCESS CONTROL
Congestion control and quality of service
Classification of routing protocols
Media Access Control
Multiple Access in wireless communication
Multiplexing
Ethernet Computer network
Address resolution protocol (ARP)
Issues in Data Link Layer
ALOHA Protocol (in detail)
Ad

Similar to Csma (20)

PPT
Mac sub layer
PPTX
Random Access Protocols topicc in tcp/ip.pptx
PPT
Multiple Access Techniques
PPT
Csma(carriers sense-multiple-acess)
PDF
CN R16 -UNIT-4.pdf
PDF
Dc ch09 : high speed la ns and wireless lans
PPTX
Multiple access protocol
PDF
multipleaccessprotocol-140213082552-phpapp02.pdf
PPTX
Multipleaccessprotocol 140213082552-phpapp02
PPTX
Lecture 10
PPTX
computer__networks .pptx
PPTX
csma (BWU-DCS-20-013).pptx
PPTX
module 2 ppt.pptx
PPT
MEDIUM-ACCESS CONTROL SUB LAYER.ppt
PPT
Mobile computing unit2,SDMA,FDMA,CDMA,TDMA Space Division Multi Access,Frequ...
PPT
the Multiple Access SLIDE for university students
PPT
Jaimin chp-4 - media access sub-layer- 2011 batch
PPT
high speedla-ns
PPTX
The medium access sublayer
PPTX
csmacd.pptx
Mac sub layer
Random Access Protocols topicc in tcp/ip.pptx
Multiple Access Techniques
Csma(carriers sense-multiple-acess)
CN R16 -UNIT-4.pdf
Dc ch09 : high speed la ns and wireless lans
Multiple access protocol
multipleaccessprotocol-140213082552-phpapp02.pdf
Multipleaccessprotocol 140213082552-phpapp02
Lecture 10
computer__networks .pptx
csma (BWU-DCS-20-013).pptx
module 2 ppt.pptx
MEDIUM-ACCESS CONTROL SUB LAYER.ppt
Mobile computing unit2,SDMA,FDMA,CDMA,TDMA Space Division Multi Access,Frequ...
the Multiple Access SLIDE for university students
Jaimin chp-4 - media access sub-layer- 2011 batch
high speedla-ns
The medium access sublayer
csmacd.pptx
Ad

More from myrajendra (20)

PPT
Fundamentals
PPT
Data type
PPTX
Hibernate example1
PPTX
Jdbc workflow
PPTX
2 jdbc drivers
PPTX
3 jdbc api
PPTX
4 jdbc step1
PPTX
Dao example
PPTX
Sessionex1
PPTX
Internal
PPTX
3. elements
PPTX
2. attributes
PPTX
1 introduction to html
PPTX
Headings
PPTX
Forms
PPT
PPTX
Views
PPTX
Views
PPTX
Views
PPT
Starting jdbc
Fundamentals
Data type
Hibernate example1
Jdbc workflow
2 jdbc drivers
3 jdbc api
4 jdbc step1
Dao example
Sessionex1
Internal
3. elements
2. attributes
1 introduction to html
Headings
Forms
Views
Views
Views
Starting jdbc

Recently uploaded (20)

PDF
What Is Coercive Control? Understanding and Recognizing Hidden Abuse
PPTX
Open Quiz Monsoon Mind Game Final Set.pptx
PPTX
How to Manage Global Discount in Odoo 18 POS
PPTX
Strengthening open access through collaboration: building connections with OP...
PPTX
ACUTE NASOPHARYNGITIS. pptx
PDF
Types of Literary Text: Poetry and Prose
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PPTX
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
PDF
Module 3: Health Systems Tutorial Slides S2 2025
PDF
Cell Biology Basics: Cell Theory, Structure, Types, and Organelles | BS Level...
PDF
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
PPTX
How to Manage Starshipit in Odoo 18 - Odoo Slides
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
PDF
UTS Health Student Promotional Representative_Position Description.pdf
PPTX
How to Manage Bill Control Policy in Odoo 18
PDF
Electrolyte Disturbances and Fluid Management A clinical and physiological ap...
PDF
5.Universal-Franchise-and-Indias-Electoral-System.pdfppt/pdf/8th class social...
PDF
LDMMIA Reiki Yoga Workshop 15 MidTerm Review
PPTX
Presentation on Janskhiya sthirata kosh.
What Is Coercive Control? Understanding and Recognizing Hidden Abuse
Open Quiz Monsoon Mind Game Final Set.pptx
How to Manage Global Discount in Odoo 18 POS
Strengthening open access through collaboration: building connections with OP...
ACUTE NASOPHARYNGITIS. pptx
Types of Literary Text: Poetry and Prose
Renaissance Architecture: A Journey from Faith to Humanism
Nursing Management of Patients with Disorders of Ear, Nose, and Throat (ENT) ...
Module 3: Health Systems Tutorial Slides S2 2025
Cell Biology Basics: Cell Theory, Structure, Types, and Organelles | BS Level...
Phylum Arthropoda: Characteristics and Classification, Entomology Lecture
How to Manage Starshipit in Odoo 18 - Odoo Slides
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
2.Reshaping-Indias-Political-Map.ppt/pdf/8th class social science Exploring S...
UTS Health Student Promotional Representative_Position Description.pdf
How to Manage Bill Control Policy in Odoo 18
Electrolyte Disturbances and Fluid Management A clinical and physiological ap...
5.Universal-Franchise-and-Indias-Electoral-System.pdfppt/pdf/8th class social...
LDMMIA Reiki Yoga Workshop 15 MidTerm Review
Presentation on Janskhiya sthirata kosh.

Csma

  • 1. Topic : Networking and LAN Sub topic : Describe CSMA . 1
  • 2. Objectives On completion of this period , you would be able to know about • CSMA ( Carrier Sense Multiple Access) • Types of CSMA – Persistent CSMA – Non Persistent CSMA – CSMA / CD • Comparison 2
  • 3. CSMA (Carrier Sense Multiple Access) • CSMA: Its concept is simply listen before talk (LBT) • If channel is sensed idle : transmit entire frame • If channel is sensed busy : defer transmission • We could achieve better throughput if we could listen to the channel before transmitting a packet • This way, we would stop avoidable collisions • To do this, we need CSMA protocols 3
  • 4. Assumptions with CSMA Networks • Constant length packets • No errors, except those caused by collisions • No capture effect • Each host can sense the transmissions of all other hosts • The propagation delay is small compared to the transmission time 4
  • 5. CSMA (cont’d) • There are several types of CSMA protocols – 1-Persistent CSMA – Non-Persistent CSMA – P-Persistent CSMA 5
  • 6. 1-Persistent CSMA • Sense the channel – If busy, keep listening to the channel and transmit immediately when the channel becomes idle – If idle, transmit a packet immediately • If collision occurs – Wait a random amount of time and start over again This protocol is called 1-persistent because the host transmits with a probability of 1 whenever it finds the channel idle 6
  • 7. 1-Persistent CSMA (cont’d) • No longer propagation delay • Even if prop. delay is zero, there will be collisions Example - If stations B and C become ready in the middle of A’s transmission, B and C will wait until the end of A’s transmission and then both will begin transmitted simultaneously, resulting in a collision - If B and C were not so greedy, there would be fewer collisions 7
  • 8. Non-Persistent CSMA • Sense the channel – If busy, wait a random amount of time and sense the channel again – If idle, transmit a packet immediately • If collision occurs – wait a random amount of time and start all over again Merits • Better channel utilization • Longer delays • Reduces chances of collision • Reduces efficiency 8
  • 9. Tradeoff between 1- and Non Persistent CSMA • If only B becomes ready in the middle of A’s transmission – 1-Persistent: B succeeds as soon as A ends – Non-Persistent B may have to wait • If B and C become ready in the middle of A’s transmission – 1-Persistent B and C collide – Non-Persistent B and C probably do not collide 9
  • 10. Fig .1 Fig .2 10
  • 11. P-Persistent CSMA • Applicable to slotted channels • When a station becomes ready to send, it senses the channel – if it is idle, station transmits with a probability of p – it defers until next slot with a probability of q = 1-p • If the slot is also idle – either station transmits or it defers with probabilities of p & q • This is repeated until either the frame has been transmitted or another station begun transmitting 11
  • 12. CSMA efficiency • Decreases with t (prop) / t (trans) • Decreases with increasing distance between nodes • T (trans) = R / L where R is the link speed in bits/sec and L is the frame length in bits • So, efficiency decreases with increasing link speed R 12
  • 13. CSMA / CD : Network components Carrier Sense Multiple Access / Collision Detection • Medium (coax, tp, fiber) • Transceivers • AUI cable (drop cable; station to coax) • NIC (network interface card -MAC protocol logic) • Repeaters (needed to extend coax) • Test equipment • Hub (multipart repeater) : for star configuration • Bridges (to connect to other LANs) 13
  • 14. CSMA / CD : topologies, media , etc. • media – coaxial cable – twisted pair – fiber (less common) • topologies – bus - original design; widespread for many years – star with hub in middle; now becoming common • data rates – 10 Mbps – 100 Mbps – Gbps on the way 14
  • 15. CSMA / CD Sending nodes are able to detect collisions while transmitting • If medium is idle , transmits • If busy, listens for idle then transmits • While transmitting node continues to listen to see if a collision has occurred • If collision detected stops transmission, generates a jamming signal on the bus to indicate all nodes about 15 collision
  • 16. CSMA/CD Protocol Fig .3 16
  • 17. CSMA/CD Protocol • All hosts transmit & receive on one channel • Packets are of variable size • When a host has a packet to transmit 1. Carrier Sense: Check that the line is idle before transmitting 2. Collision Detection: Detect collision as soon as possible If a collision is detected, stop transmitting; wait a random time, sense the channel again 17
  • 18. Summary In this class, you have learnt about • Types of CSMA – Persistent CSMA – Non Persistent CSMA • CSMA / CD 18
  • 19. Quiz 1. ____________ helps Ethernet to recover from simultaneous transmissions causing errors (a) CSMA /CD (b) CSM (c) CD (d) Collisions 19
  • 20. Quiz 2. Which one is applicable to slotted channel ? (a) 1- persistent CSMA (b) P- Persistent CSMA (c) Non – Persistent CSMA (d) All of the above 20
  • 21. Frequently Asked Questions 1. Describe Persistent and Non Persistent CSMA 2. Compare Persistent and Non Persistent CSMA 3. Describe CSMA / CD 21