CN Lecture 04 Datalink Layer II
CN Lecture 04 Datalink Layer II
1. ALOHA
2. CSMA
3. CSMA/CD
4. CSMA/CA
Introduction….
p-Persistent: The p-persistent method is used if the channel has time slots with a
slot duration equal to or greater than the maximum propagation time. The p-
persistent approach combines the advantages of the other two strategies. It reduces
the chance of collision and improves efficiency.
In this method, after the station finds the line idle it follows these steps:
1. With probability p, the station sends its frame.
2. With probability q = 1 - p, the station waits for the beginning of the next time slot and
checks the line again.
a. If the line is idle, it goes to step 1.
b. If the line is busy, it acts as though a collision has occurred and uses the back
off procedure.
Carrier Sense Multiple Access
P-Persistent
How to calculate P?
Wireless Networks
CSMA/CA is used. CSMA/CD cannot be used because
• CSMA/CD requires continuous transmission and
reception for collision detection. Thus require full-
duplex operation, which can not be supported in
wireless due to short battery life
• Difficult to detect may not be detected because of
obstacle or range problem
• The distance between stations can be great. Signal
fading could prevent a station at Fig. 13 Illustration of difficulties
one end from hearing a collision at the other end. in collision detection in wireless
networks
Topic Heading..
Topic sub heading..
This protocol is used in wireless networks because they cannot detect the
collision.
So, the only solution is collision avoidance.
It avoids the collision by using three basic techniques:
1. Interframe Space (IFS)
2. Contention Window
3. Acknowledgements
CSMA/CA
Interframe Space
Whenever the channel is found idle, the station does not transmit
immediately.
It waits for a period of time called Interframe Space (IFS).
When channel is sensed idle, it may be possible that some distant station
may have already started transmitting.
Therefore, the purpose of IFS time is to allow this transmitted signal to
reach its destination.
If after this IFS time, channel is still idle, the station can send the frames
CSMA/CA
Contention window
Despite all the precautions, collisions may occur and destroy the data.
Positive acknowledgement and the time-out timer helps guarantee that the
receiver has received the frame.
[1] B. A. Forouzan, Data Communication and Networking, 5th ed., The McGraw-Hill
Companies, Inc., USA, 2013, pp. 326-339.
Recommended Books