Medium Access Control (MAC) is a sublayer of the Data Link Layer in the OSI model. It is responsible for controlling how devices in a network gain access to a medium and permission to transmit data. MAC protocols are particularly important in networks where multiple devices share the same communication channel, such as in wireless networks and Ethernet LANs.
When multiple devices share the same communication medium, there needs to be a mechanism to coordinate their transmissions. Without such coordination, multiple devices might transmit simultaneously, leading to collisions and data corruption. Medium Access Control protocols provide this coordination, ensuring that devices can share the medium efficiently and fairly.
In random access protocols, devices can transmit data whenever they have data to send, without a predetermined schedule. If a collision occurs, the devices involved in the collision follow a specific procedure to resolve the conflict and retransmit their data.
Examples of random access protocols include:
ALOHA: Devices transmit whenever they have data to send, without checking if the medium is free.
Pure ALOHA: Devices transmit at any time.
Slotted ALOHA: Time is divided into discrete slots, and devices can only transmit at the beginning of a slot.
Carrier Sense Multiple Access (CSMA): Devices listen to the medium before transmitting.
CSMA with Collision Detection (CSMA/CD): Devices detect collisions during transmission and stop transmitting immediately.
CSMA with Collision Avoidance (CSMA/CA): Devices try to avoid collisions by using techniques like random backoff.
Channelization protocols divide the available bandwidth into separate channels, allowing multiple devices to transmit simultaneously without interference.
Examples of channelization protocols include:
Frequency Division Multiple Access (FDMA): The bandwidth is divided into separate frequency bands, with each device assigned a specific band.
Time Division Multiple Access (TDMA): The bandwidth is divided into time slots, with each device assigned specific time slots.
Code Division Multiple Access (CDMA): Devices use different codes to transmit on the same frequency band simultaneously.
Random access protocols are particularly important in networks where traffic is bursty and unpredictable. Let's explore some of these protocols in more detail:
ALOHA was one of the first random access protocols, developed at the University of Hawaii in the early 1970s. It allows devices to transmit whenever they have data to send, without any coordination.