What is Layer 2 (Layer 2 (Medium Access Control Layer))?

The medium access control (MAC) is a sublayer of the data link layer of the open system interconnections (OSI) reference model. It is answerable for stream control and multiplexing for transmission medium. It manages the transmission of information packets by means of remotely shared channels. It is liable for encapsulating frames with the goal that they are appropriate for transmission through the physical medium. It creates the frame check sequences and thus contributes to protection against transmission errors.