Aloha
Aloha
Aloha
Control (MAC)
• When nodes or stations are connected and use a
common link, called a multipoint or broadcast link,
need a multiple-access protocol to coordinate access to
the link.
• Many protocols have been devised to handle access to a
shared link.
• All of these protocols belong to a sublayer in the data-
link layer called media access control (MAC).
RANDOM ACCESS
• In random-access or contention methods, no station is
superior to another station and none is assigned control
over another.
• At each instance, a station that has data to send uses a
procedure defined by the protocol to make a decision on
whether or not to send.
• This decision depends on the state of the medium (idle or
busy).
• Each station can transmit when it desires on the condition
that it follows the predefined procedure, including testing
the state of the medium.
• Two features give this method its name.
• First, there is no scheduled time for a station to
transmit.
• Transmission is random among the stations.
• Second, no rules specify which station should send
next.
• Stations compete with one another to access the
medium.
• That is why these methods are also called contention
methods.
• However, if more than one station tries to send, there is an
access conflict—collision—and the frames will be either
destroyed or modified.
• To avoid access conflict or to resolve it when it happens,
each station follows a procedure that answers the
following questions:
1. When can the station access the medium?
2. What can the station do if the medium is busy?
3. How can the station determine the success or failure of
the transmission?
4. What can the station do if there is an access conflict?
ALOHA
• ALOHA, the earliest random access method, was
developed at the University of Hawaii in early 1970.
• It was designed for a radio (wireless) LAN, but it
can be used on any shared medium.
• It is obvious that there are potential collisions in
this arrangement.
• The medium is shared between the stations.
Pure ALOHA
• Each station sends a frame whenever it has a frame
to send (multiple access).
• However, since there is only one channel to share,
there is the possibility of collision between frames
from different stations.
• The pure ALOHA protocol relies on acknowledgments
from the receiver.
• When a station sends a frame, it expects the receiver to
send an acknowledgment.
• If the acknowledgment does not arrive after a time-out
period, the station assumes that the frame (or the
acknowledgment) has been destroyed and resends the
frame.
• A collision involves two or more stations. If all these
stations try to resend their frames after the time-out, the
frames will collide again.
• Pure ALOHA dictates that when the time-out period
passes, each station waits a random amount of time
before resending its frame.
• The randomness will help avoid more collisions.
• This time is the backoff time TB
• Pure ALOHA has a second method to prevent
congesting the channel with retransmitted frames.
• After a maximum number of retransmission attempts
Kmax a station must give up and try later.
• The time-out period is equal to the maximum possible
round-trip propagation delay, which is twice the amount
of time required to send a frame between the two most
widely separated stations (2 × Tp).
• The backoff time TB is a random value that normally
depends on K (the number of attempted unsuccessful
transmissions).
• The formula for TB depends on the implementation.
• One common formula is the binary exponential backoff.
• In this method, for each retransmission, a
multiplier R = 0 to 2K − 1 is randomly chosen and
multiplied by Tp (maximum propagation time) or Tfr
(the average time required to send out a frame) to
find TB.
• Note that in this procedure, the range of the
random numbers increases after each collision.
• The value of Kmax is usually chosen as 15
• K = maximum number of retransmission attempts
a station must try
• R = 0 to 2K − 1 is randomly chosen
• TB = backoff time R × Tp or R x Tf
• Tp = maximum propagation time
• Tfr = the average time required to send out a frame
Vulnerable time
• The vulnerable time, the length of time in which
there is a possibility of collision.
• The stations send fixed-length frames with each
frame taking Tfr seconds to send.
• A pure ALOHA network transmits 200-bit frames on
a shared channel of 200 kbps. What is the
requirement to make this frame collision-free?