CN Lecture 4 Datalink Layer II Fall22
CN Lecture 4 Datalink Layer II Fall22
1. ALOHA
2. CSMA
3. CSMA/CD
4. CSMA/CA
ALOHA
Introduction
ALOHA….
Algorithm
R= Transmission
Rate
The throughput is the fraction of time, the channel carries useful information, namely
non-colliding packets.
Under all number of frames, the throughput, S, is just the product of average number of
frames, G and the probability, P, of a transmission succeeding—that is,
S = GP
Consider a packet scheduled for transmission at some time ‘t’. This packet will be
successful if no other packet is scheduled for transmission in the interval (t-T, t+T) (this
period of 2T is called the vulnerable period). The probability of this happening, that is,
the probability of success, is that no packet is scheduled in an interval of length 2T.
2T
t-T t t+T
ALOHA….
Throughput
S = G𝒆−𝟐𝑮
ALOHA….
Throughput
S = G𝒆−𝟐𝑮
ALOHA….
Throughput
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
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
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