Definition under: Definitions

What is Media Access Control (MAC)?

Media Access Control (MAC) is a network protocol that enables communication between devices on a network. It defines how devices on a network can access and use the network's resources, such as data transmission channels, without interfering with each other. MAC addresses are unique identifiers assigned to each device that allow the network to recognize and communicate with them. 

A MAC address is a unique 48-bit identifier assigned to a network interface controller (NIC) in devices like computers, smartphones, or routers. This address distinguishes devices within a local network, facilitating accurate data transmission between them.


Typically displayed in hexadecimal format and separated by colons or hyphens (e.g., 01:23:45:67:89:AB), a MAC address consists of two parts. The first 24 bits, known as the Organizationally Unique Identifier (OUI), identify the hardware manufacturer. The remaining 24 bits, assigned by the manufacturer to each device they produce, contribute to the global uniqueness of MAC addresses, promoting efficient communication within a network.


Dissecting Media Access Control (MAC)

Media Access Control (MAC) is a protocol that was developed in the 1970s by the Institute of Electrical and Electronics Engineers (IEEE) as part of their Ethernet standardization efforts. The MAC protocol was initially created to address the problem of multiple devices attempting to transmit data simultaneously over a shared communication medium, such as a coaxial cable.


Media Access Control (MAC) Protocols

The development of Media Access Control (MAC) protocols has been instrumental in shaping modern networking technologies. From the early days of simple collision detection to the more advanced protocols designed specifically for wireless communication, these protocols have continually evolved to meet the changing demands of networked devices. The following highlights the key developments and advantages of each significant MAC protocol evolution.


Early MAC protocols

The earliest MAC protocols, such as those used in Ethernet networking technology, were relatively simple and relied on collision detection to manage access to the shared communication medium. However, as networks became more complex and the number of connected devices increased, these early protocols became less efficient and reliable.


Carrier Sense Multiple Access with Collision Detection (CSMA/CD)

To address some of the limitations of early MAC protocols, the Carrier Sense Multiple Access with Collision Detection (CSMA/CD) protocol was developed in the 1980s. This protocol introduced a more sophisticated approach to managing access to the communication medium by requiring devices to wait for a quiet period before attempting to transmit data.


Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA)

In the 1990s, the Carrier Sense Multiple Access with Collision Avoidance (CSMA/CA) protocol was developed for use in wireless networking technologies, such as Wi-Fi. This protocol addressed some of the unique challenges of wireless networking, such as interference and signal degradation, by requiring devices to avoid collisions through careful coordination and management of the communication medium.


Media Access Control Security (MACsec)

More recently, the Media Access Control Security (MACsec) protocol has been developed to provide enhanced security for network communications. This protocol uses encryption and authentication to protect data transmitted over the network from unauthorized access or tampering.


Features of Media Access Control (MAC)

Media Access Control (MAC) is a sublayer of the Data Link Layer in the OSI model, and it plays a crucial role in managing access to a shared communication medium. Key features that differentiate MAC from other networking protocols are:

  • Channel access control: MAC protocols manage how devices access and share the communication medium (such as a wired or wireless network). They define the rules and techniques for transmitting data to avoid collisions and ensure efficient use of the available bandwidth.
  • Frame addressing: MAC protocols utilize MAC addresses, which are unique identifiers assigned to each network interface card (NIC). These addresses facilitate the delivery of data frames to the correct destination devices on the network.
  • Error detection: MAC protocols often include error-detection mechanisms, such as checksums or cyclic redundancy checks (CRC), to ensure the integrity of the data transmitted over the network. If an error is detected, the receiving device may request a retransmission.
  • Collision management: In shared medium networks, collisions can occur when multiple devices attempt to transmit data simultaneously. MAC protocols, such as CSMA/CD and CSMA/CA, implement strategies to detect and avoid collisions, ensuring the efficient transmission of data.
  • Network efficiency: By managing access to the communication medium and handling collisions, MAC protocols contribute to overall network efficiency. They aim to reduce the time spent waiting for access and retransmitting data, allowing for more effective utilization of the available bandwidth.


How Media Access Control (MAC) Works

The realm of network communication is significantly influenced by the Media Access Control (MAC) layer, which serves as a critical component for facilitating data transmission and ensuring its reliability. 

  1. Data request: A device, such as a computer or smartphone, generates a data request for information, like a webpage or file, and sends it to the connected access point or switch. This request is made at the application layer, which then passes it down to the transport layer, network layer, and finally the data link layer. The MAC address, a unique identifier assigned to the network interface controller (NIC) of the device, is used to differentiate devices within a local network.
  2. Channel access: At the MAC sublayer of the data link layer, the MAC protocol assesses the availability of the shared communication medium. Depending on the protocol, such as CSMA/CD (used in Ethernet) or CSMA/CA (used in Wi-Fi), it listens for a quiet period or exchanges control frames to avoid collisions and ensure efficient data transmission.
  3. Frame creation: The MAC layer constructs a frame containing the payload (actual data), source MAC address, destination MAC address, and control information, such as a frame sequence number, error detection codes (e.g., checksum or CRC), and, if necessary, quality of service (QoS) information.
  4. Frame transmission: The frame is transmitted over the network to the destination device, which could be an access point, switch, or another device on the same network. In wireless networks, the frame is modulated into radio signals using techniques like BPSK, QPSK, or QAM, while in wired networks, it's transmitted as electrical signals.
  5. Frame reception: The destination device receives the frame and verifies the integrity of the data using error detection codes. If an error is detected, the receiving device may send a negative acknowledgement (NACK) or discard the frame, depending on the MAC protocol, prompting the transmitting device to retransmit the frame.
  6. Acknowledgment and flow control: Upon successful reception and validation of the frame, the receiving device sends an acknowledgment (ACK) to the transmitting device, confirming the successful transmission. This ACK mechanism also helps in flow control, ensuring that the sender does not overwhelm the receiver with excessive data.
  7. Data processing: The destination device processes the received data and forwards it to the appropriate higher-layer protocol or application, which then presents the information (e.g., webpage, file, or media) to the user. This involves de-encapsulation of the data as it moves up through the network, transport, and application layers.
  8. Security: In some cases, the MAC layer may also incorporate security features, such as MACsec encryption, to protect the data from unauthorized access or tampering during transmission.


Recently Added Definitions