MEDIA ACCESS CONTROL SUBLAYER
MEDIA ACCESS CONTROL SUBLAYER
MEDIA ACCESS CONTROL SUBLAYER
CONTROL SUBLAYER
MEDIA ACCESS CONTROL
SUBLAYER
CHANNEL ALLOCATION
PROBLEMS
There are two schemes to allocate a single channel among competing
users:
Pros Cons
single active node can continuously collisions, wasting slots
transmit at full rate of channel idle slots
highly decentralized: only slots in nodes may be able to detect collision in
nodes need to be in sync less than time to transmit packet
simple clock synchronization
FRAMES IN A SLOTTED ALOHA
NETWORK
VULNERABLE TIME FOR
SLOTTED ALOHA PROTOCOL
SLOTTED ALOHA
The time is divided into discrete intervals, each interval
corresponding to one frame.
The users will need to be synchronized with the beginning of the
slot
- Special station can emit a pip at the start of each interval
A computer is not allowed to send data at any arbitrary times, it will
be forced to wait until the next valid time interval
Since the vulnerable period is now halved, the throughput of this
method would be:
Slotted ALOHA peaks at G=1 :: so S=1/e=.368 (i.e. 37 %
success)…..a small increase in channel load will drastically reduce
its performance.
PURE ALOHA VS. SLOTTED
ALOHA
Throughput versus offered traffic for ALOHA systems
CSMA PROTOCOLS
Are protocols in which stations listen for a carrier (i.e.
transmission) and act accordingly
Networks based on these protocols can achieve better channel
utilization than 1/e
Protocols
1 persistent CSMA
Non persistent CSMA
p persistent CSMA
1 PERSISTENT CSMA
1 persistent CSMA
When a station has data to send, it first listens to the channel
If channel is busy, the station waits until the channel is free. When detects
an idle channel, it transmits the frame
If collision occurs, it will wait an random amount of time and starts again
Propagation delay
NON PERSISTENT CSMA
Before sending a station senses the channel. If no activity,
it sends its frame
If channel is busy, then will not continue to sense the
channel until it becomes idle, but it will retry at a latter
time (waiting a random period of time and repeating the
algorithm)
With this algorithm, fewer collisions will happen; thus
better channel utilization but with longer delays than 1
persistent CSMA algorithm
P PERSISTENT CSMA
It applies to slotted channels
When a station becomes ready to send, it senses the channel.
If it is idle will transmit with a probability of p. With a
probability of q it defers to the next slot.
If next slot is also idle, it transmits or it defers again with
probabilities of p and q
This process is repeated until the frame gets either transmitted
or another station it began transmission
For latter case, the unlucky station acts the same as it would
have been a collision (waits a random time and starts again)
PERSISTENT AND
NON-PERSISTENT CSMA
Comparison of the channel utilization versus load for various random access protocols.