SlideShare una empresa de Scribd logo
1 de 21
Descargar para leer sin conexión
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

Más contenido relacionado

La actualidad más candente (20)

transport layer
transport layertransport layer
transport layer
 
Presentation Routing algorithm
Presentation Routing algorithmPresentation Routing algorithm
Presentation Routing algorithm
 
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESSComputer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
Computer Networks Unit 2 UNIT II DATA-LINK LAYER & MEDIA ACCESS
 
ALOHA Protocol (in detail)
ALOHA Protocol (in detail)ALOHA Protocol (in detail)
ALOHA Protocol (in detail)
 
Computer network switching
Computer network switchingComputer network switching
Computer network switching
 
Network layer tanenbaum
Network layer tanenbaumNetwork layer tanenbaum
Network layer tanenbaum
 
Congestion control in TCP
Congestion control in TCPCongestion control in TCP
Congestion control in TCP
 
Flow & Error Control
Flow & Error ControlFlow & Error Control
Flow & Error Control
 
Issues in Data Link Layer
Issues in Data Link LayerIssues in Data Link Layer
Issues in Data Link Layer
 
The medium access sublayer
 The medium  access sublayer The medium  access sublayer
The medium access sublayer
 
Token ring
Token ringToken ring
Token ring
 
Network Layer
Network LayerNetwork Layer
Network Layer
 
IPV4 Frame Format
IPV4 Frame FormatIPV4 Frame Format
IPV4 Frame Format
 
Mac layer
Mac  layerMac  layer
Mac layer
 
Arp and rarp
Arp and rarpArp and rarp
Arp and rarp
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 
Framing in data link layer
Framing in data link layerFraming in data link layer
Framing in data link layer
 
Transport layer
Transport layer Transport layer
Transport layer
 
TCP/IP Network ppt
TCP/IP Network pptTCP/IP Network ppt
TCP/IP Network ppt
 
aloha
alohaaloha
aloha
 

Similar a Csma

Csma protocols
Csma protocolsCsma protocols
Csma protocolsManal Shah
 
Multiple Access Techniques
Multiple Access TechniquesMultiple Access Techniques
Multiple Access Techniquesinayat khan
 
Csma(carriers sense-multiple-acess)
Csma(carriers sense-multiple-acess) Csma(carriers sense-multiple-acess)
Csma(carriers sense-multiple-acess) Rajan Kandel
 
CN R16 -UNIT-4.pdf
CN R16 -UNIT-4.pdfCN R16 -UNIT-4.pdf
CN R16 -UNIT-4.pdfJoshuaeeda1
 
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 lansSyaiful Ahdan
 
multipleaccessprotocol-140213082552-phpapp02.pdf
multipleaccessprotocol-140213082552-phpapp02.pdfmultipleaccessprotocol-140213082552-phpapp02.pdf
multipleaccessprotocol-140213082552-phpapp02.pdfGauravWankar2
 
Multipleaccessprotocol 140213082552-phpapp02
Multipleaccessprotocol 140213082552-phpapp02Multipleaccessprotocol 140213082552-phpapp02
Multipleaccessprotocol 140213082552-phpapp02arifur rahman
 
csma (BWU-DCS-20-013).pptx
csma (BWU-DCS-20-013).pptxcsma (BWU-DCS-20-013).pptx
csma (BWU-DCS-20-013).pptxSandipPradhan23
 
MEDIUM-ACCESS CONTROL SUB LAYER.ppt
MEDIUM-ACCESS CONTROL SUB LAYER.pptMEDIUM-ACCESS CONTROL SUB LAYER.ppt
MEDIUM-ACCESS CONTROL SUB LAYER.pptDrTThendralCompSci
 
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 studentsnovrain1
 
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 batchJaimin Jani
 
CSMA /CD PPT ON SLIDESHARE
CSMA /CD PPT ON SLIDESHARECSMA /CD PPT ON SLIDESHARE
CSMA /CD PPT ON SLIDESHAREKhushboo Pal
 
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 networksNt Arvind
 

Similar a Csma (20)

Mac sub layer
Mac sub layerMac sub layer
Mac sub layer
 
Csma protocols
Csma protocolsCsma protocols
Csma protocols
 
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
 
Multiple access protocol
Multiple access protocolMultiple access protocol
Multiple access protocol
 
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
 
CSMA /CD PPT ON SLIDESHARE
CSMA /CD PPT ON SLIDESHARECSMA /CD PPT ON SLIDESHARE
CSMA /CD PPT ON SLIDESHARE
 
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
 

Más 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

BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...Nguyen Thanh Tu Collection
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQuiz Club NITW
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Celine George
 
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...Osopher
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxkarenfajardo43
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationdeepaannamalai16
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6Vanessa Camilleri
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17Celine George
 
Objectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxObjectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxMadhavi Dharankar
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management SystemChristalin Nelson
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17Celine George
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...Nguyen Thanh Tu Collection
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research DiscourseAnita GoswamiGiri
 
An Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERPAn Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERPCeline George
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...Nguyen Thanh Tu Collection
 

Último (20)

BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - I-LEARN SMART WORLD - CẢ NĂM - CÓ FILE NGHE (BẢN...
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
 
Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17Tree View Decoration Attribute in the Odoo 17
Tree View Decoration Attribute in the Odoo 17
 
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
Healthy Minds, Flourishing Lives: A Philosophical Approach to Mental Health a...
 
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptxGrade Three -ELLNA-REVIEWER-ENGLISH.pptx
Grade Three -ELLNA-REVIEWER-ENGLISH.pptx
 
Congestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentationCongestive Cardiac Failure..presentation
Congestive Cardiac Failure..presentation
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6ICS 2208 Lecture Slide Notes for Topic 6
ICS 2208 Lecture Slide Notes for Topic 6
 
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of EngineeringFaculty Profile prashantha K EEE dept Sri Sairam college of Engineering
Faculty Profile prashantha K EEE dept Sri Sairam college of Engineering
 
Spearman's correlation,Formula,Advantages,
Spearman's correlation,Formula,Advantages,Spearman's correlation,Formula,Advantages,
Spearman's correlation,Formula,Advantages,
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
 
Objectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptxObjectives n learning outcoms - MD 20240404.pptx
Objectives n learning outcoms - MD 20240404.pptx
 
Transaction Management in Database Management System
Transaction Management in Database Management SystemTransaction Management in Database Management System
Transaction Management in Database Management System
 
How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17How to Manage Buy 3 Get 1 Free in Odoo 17
How to Manage Buy 3 Get 1 Free in Odoo 17
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
 
Chi-Square Test Non Parametric Test Categorical Variable
Chi-Square Test Non Parametric Test Categorical VariableChi-Square Test Non Parametric Test Categorical Variable
Chi-Square Test Non Parametric Test Categorical Variable
 
Scientific Writing :Research Discourse
Scientific  Writing :Research  DiscourseScientific  Writing :Research  Discourse
Scientific Writing :Research Discourse
 
An Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERPAn Overview of the Calendar App in Odoo 17 ERP
An Overview of the Calendar App in Odoo 17 ERP
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
BÀI TẬP BỔ TRỢ TIẾNG ANH 11 THEO ĐƠN VỊ BÀI HỌC - CẢ NĂM - CÓ FILE NGHE (GLOB...
 

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