SlideShare uma empresa Scribd logo
1 de 21
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

Mais conteúdo relacionado

Mais procurados

Lecture 5 6 .ad hoc network
Lecture 5 6 .ad hoc networkLecture 5 6 .ad hoc network
Lecture 5 6 .ad hoc network
Chandra Meena
 

Mais procurados (20)

Mac protocols
Mac protocolsMac protocols
Mac protocols
 
Multiple access protocol
Multiple access protocolMultiple access protocol
Multiple access protocol
 
RANDOM ACCESS PROTOCOL IN COMMUNICATION
RANDOM ACCESS PROTOCOL IN COMMUNICATION           RANDOM ACCESS PROTOCOL IN COMMUNICATION
RANDOM ACCESS PROTOCOL IN COMMUNICATION
 
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts – ...
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts –  ...WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts –  ...
WSN NETWORK -MAC PROTOCOLS - Low Duty Cycle Protocols And Wakeup Concepts – ...
 
Computer network switching
Computer network switchingComputer network switching
Computer network switching
 
CSMA/CD
CSMA/CDCSMA/CD
CSMA/CD
 
Routing protocols for ad hoc wireless networks
Routing protocols for ad hoc wireless networks Routing protocols for ad hoc wireless networks
Routing protocols for ad hoc wireless networks
 
Presentation Routing algorithm
Presentation Routing algorithmPresentation Routing algorithm
Presentation Routing algorithm
 
Network Layer,Computer Networks
Network Layer,Computer NetworksNetwork Layer,Computer Networks
Network Layer,Computer Networks
 
Carrier-sense multiple access with collision avoidance CSMA/CA
Carrier-sense multiple access with collision avoidance CSMA/CACarrier-sense multiple access with collision avoidance CSMA/CA
Carrier-sense multiple access with collision avoidance CSMA/CA
 
Mac protocols of adhoc network
Mac protocols of adhoc networkMac protocols of adhoc network
Mac protocols of adhoc network
 
Distance vector routing
Distance vector routingDistance vector routing
Distance vector routing
 
Dsdv
DsdvDsdv
Dsdv
 
Congestion control
Congestion controlCongestion control
Congestion control
 
Multiple access techniques for wireless communication
Multiple access techniques for wireless communicationMultiple access techniques for wireless communication
Multiple access techniques for wireless communication
 
Lecture 5 6 .ad hoc network
Lecture 5 6 .ad hoc networkLecture 5 6 .ad hoc network
Lecture 5 6 .ad hoc network
 
Routing
RoutingRouting
Routing
 
HDLC(High level Data Link Control)
HDLC(High level Data Link Control)HDLC(High level Data Link Control)
HDLC(High level Data Link Control)
 
TCP and UDP
TCP and UDP TCP and UDP
TCP and UDP
 
The medium access sublayer
 The medium  access sublayer The medium  access sublayer
The medium access sublayer
 

Semelhante a Csma

Random Access Protocols topicc in tcp/ip.pptx
Random Access Protocols topicc in tcp/ip.pptxRandom Access Protocols topicc in tcp/ip.pptx
Random Access Protocols topicc in tcp/ip.pptx
Rizwan408930
 
multipleaccessprotocol-140213082552-phpapp02.pdf
multipleaccessprotocol-140213082552-phpapp02.pdfmultipleaccessprotocol-140213082552-phpapp02.pdf
multipleaccessprotocol-140213082552-phpapp02.pdf
GauravWankar2
 
Multipleaccessprotocol 140213082552-phpapp02
Multipleaccessprotocol 140213082552-phpapp02Multipleaccessprotocol 140213082552-phpapp02
Multipleaccessprotocol 140213082552-phpapp02
arifur rahman
 
csma (BWU-DCS-20-013).pptx
csma (BWU-DCS-20-013).pptxcsma (BWU-DCS-20-013).pptx
csma (BWU-DCS-20-013).pptx
SandipPradhan23
 
Mobile computing unit2,SDMA,FDMA,CDMA,TDMA Space Division Multi Access,Frequ...
Mobile computing unit2,SDMA,FDMA,CDMA,TDMA  Space Division Multi Access,Frequ...Mobile computing unit2,SDMA,FDMA,CDMA,TDMA  Space Division Multi Access,Frequ...
Mobile computing unit2,SDMA,FDMA,CDMA,TDMA Space Division Multi Access,Frequ...
Pallepati Vasavi
 
the Multiple Access SLIDE for university students
the Multiple Access SLIDE for university studentsthe Multiple Access SLIDE for university students
the Multiple Access SLIDE for university students
novrain1
 

Semelhante a Csma (20)

Mac sub layer
Mac sub layerMac sub layer
Mac sub layer
 
Csma protocols
Csma protocolsCsma protocols
Csma protocols
 
Random Access Protocols topicc in tcp/ip.pptx
Random Access Protocols topicc in tcp/ip.pptxRandom Access Protocols topicc in tcp/ip.pptx
Random Access Protocols topicc in tcp/ip.pptx
 
Multiple Access Techniques
Multiple Access TechniquesMultiple Access Techniques
Multiple Access Techniques
 
Csma(carriers sense-multiple-acess)
Csma(carriers sense-multiple-acess) Csma(carriers sense-multiple-acess)
Csma(carriers sense-multiple-acess)
 
CN R16 -UNIT-4.pdf
CN R16 -UNIT-4.pdfCN R16 -UNIT-4.pdf
CN R16 -UNIT-4.pdf
 
Dc ch09 : high speed la ns and wireless lans
Dc ch09 : high speed la ns and wireless lansDc ch09 : high speed la ns and wireless lans
Dc ch09 : high speed la ns and wireless lans
 
multipleaccessprotocol-140213082552-phpapp02.pdf
multipleaccessprotocol-140213082552-phpapp02.pdfmultipleaccessprotocol-140213082552-phpapp02.pdf
multipleaccessprotocol-140213082552-phpapp02.pdf
 
Multipleaccessprotocol 140213082552-phpapp02
Multipleaccessprotocol 140213082552-phpapp02Multipleaccessprotocol 140213082552-phpapp02
Multipleaccessprotocol 140213082552-phpapp02
 
Lecture 10
Lecture 10Lecture 10
Lecture 10
 
csma (BWU-DCS-20-013).pptx
csma (BWU-DCS-20-013).pptxcsma (BWU-DCS-20-013).pptx
csma (BWU-DCS-20-013).pptx
 
MEDIUM-ACCESS CONTROL SUB LAYER.ppt
MEDIUM-ACCESS CONTROL SUB LAYER.pptMEDIUM-ACCESS CONTROL SUB LAYER.ppt
MEDIUM-ACCESS CONTROL SUB LAYER.ppt
 
Mobile computing unit2,SDMA,FDMA,CDMA,TDMA Space Division Multi Access,Frequ...
Mobile computing unit2,SDMA,FDMA,CDMA,TDMA  Space Division Multi Access,Frequ...Mobile computing unit2,SDMA,FDMA,CDMA,TDMA  Space Division Multi Access,Frequ...
Mobile computing unit2,SDMA,FDMA,CDMA,TDMA Space Division Multi Access,Frequ...
 
the Multiple Access SLIDE for university students
the Multiple Access SLIDE for university studentsthe Multiple Access SLIDE for university students
the Multiple Access SLIDE for university students
 
Jaimin chp-4 - media access sub-layer- 2011 batch
Jaimin   chp-4 - media access sub-layer- 2011 batchJaimin   chp-4 - media access sub-layer- 2011 batch
Jaimin chp-4 - media access sub-layer- 2011 batch
 
high speedla-ns
high speedla-nshigh speedla-ns
high speedla-ns
 
csmacd.pptx
csmacd.pptxcsmacd.pptx
csmacd.pptx
 
csmacd.pptx
csmacd.pptxcsmacd.pptx
csmacd.pptx
 
Multiple access protocols in data communication networks
Multiple access protocols in data communication networksMultiple access protocols in data communication networks
Multiple access protocols in data communication networks
 
Chapt-06.ppt
Chapt-06.pptChapt-06.ppt
Chapt-06.ppt
 

Mais de myrajendra (20)

Fundamentals
FundamentalsFundamentals
Fundamentals
 
Data type
Data typeData type
Data type
 
Hibernate example1
Hibernate example1Hibernate example1
Hibernate example1
 
Jdbc workflow
Jdbc workflowJdbc workflow
Jdbc workflow
 
2 jdbc drivers
2 jdbc drivers2 jdbc drivers
2 jdbc drivers
 
3 jdbc api
3 jdbc api3 jdbc api
3 jdbc api
 
4 jdbc step1
4 jdbc step14 jdbc step1
4 jdbc step1
 
Dao example
Dao exampleDao example
Dao example
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
Internal
InternalInternal
Internal
 
3. elements
3. elements3. elements
3. elements
 
2. attributes
2. attributes2. attributes
2. attributes
 
1 introduction to html
1 introduction to html1 introduction to html
1 introduction to html
 
Headings
HeadingsHeadings
Headings
 
Forms
FormsForms
Forms
 
Css
CssCss
Css
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Views
ViewsViews
Views
 
Starting jdbc
Starting jdbcStarting jdbc
Starting jdbc
 

Último

Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Último (20)

Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 

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