Media access control (MAC) is a sublayer of the data link layer that provides addressing and channel access mechanisms for nodes on a network to communicate. There are two types of channel allocation: static and dynamic. Static allocation preassigns channels using techniques like frequency division multiplexing, while dynamic allocation adapts to network conditions. Common MAC protocols include ALOHA, carrier sense multiple access, and collision-free protocols that avoid packet collisions. Wavelength division multiple access divides the spectrum into channels, and wireless LAN protocols like IEEE 802.11 are commonly used to connect wireless devices within a local area.