Professional Documents
Culture Documents
DCCN 2 Media Acess
DCCN 2 Media Acess
- Aloha
- CSMA
- CSMA/CD and CSMA/CA
Datalink layer
□ Addressing
□ Error detection and Correction
□ General Concepts
□ Checksum and CRC
□ Medium Access
□ Aloha
□ CSMA
□ CSMA/CD and CSMA/CA
□ Protocols
□ Ethernet
□ ARP and RARP
□ Switch
□ Learning and Filtering Mechanism
□ Wireless Access (Bluetooth, WiFi)
Medium Access
□ Hence Medium access protocols are required to decrease collision and avoid
crosstalk.
□ Thus, protocols are required for sharing data on non dedicated channels.
□ Aloha
□ CSMA
□ It was designed for wireless LAN but is also applicable for shared
medium.
□ In this, multiple stations can transmit data at the same time and can
hence lead to collision and data being lost.
□ Pure Aloha
□ Slotted Aloha
Pure Aloha:
□ If a station misses out the allowed time, it must wait for the
next slot.
• Non-Persistent:
• The node senses the medium, if idle it sends the data with p probability.
• If the data is not transmitted ((1-p) probability) then it waits for some time and
checks the medium again, now if it is found idle then it send with p probability.
• O-persistent:
• If the medium is idle, node waits for its time slot to send data.
CSMA/CD and CSMA/CA
□ CSMA/CD –
1. Interframe space –
□ After this time it again checks the medium for being idle.
2. Contention Window –
□ It is the amount of time divided into slots.
□ If the sender is ready to send data, it chooses a random number of slots
as wait time which doubles every time, medium is not found idle.
□ If the medium is found busy, it does not restart the entire process, rather it
restarts the timer when the channel is found idle again.
3. Acknowledgement –
□ The sender re-transmits the data if acknowledgement is not received
before time-out.
□ Which of the following is the multiple access protocol for channel access control?
a) CSMA/CD
b) CSMA/CA
c) Both CSMA/CD & CSMA/CA
d) HDLC
a) 1-persistent CSMA: In 1-persistent CSMA, the station continuously senses the channel to check its state i.e.
idle or busy so that it can transfer data or not. In case when the channel is busy, the station will wait for the
channel to become idle. When station found idle channel, it transmits the frame to the channel without any
delay. It transmits the frame with probability 1. Due to probability 1, it is called 1-persistent CSMA.
b) p-persistent CSMA: This is the method that is used when channel has time-slots and that time-slot duration is
equal to or greater than the maximum propagation delay time. When the station is ready to send the frames, it
will sense the channel. If the channel found to be busy, the channel will wait for the next slot. If the channel
found to be idle, it transmits the frame with probability p,. In case, when the next slot is also found idle it will
transmit or wait again with the probabilities p and q. This process is repeated until either the frame gets
transmitted or another station has started transmitting.
THANK
YOU