Hi,
The data link layer is divided into two sublayers:
- Logical Link Control (LLC): Functions required for establishments and control of logical links btw. local devices in the network.it provides services to network layer above it and hides the rest of the details of the data link layer to allow different technologies to work seamlessly with the higher layers
- Media Access Control (MAC): Control acccess to the network medium.
Error detection and handling occurs at data link layer (LLC sublayer)
I hope this is helpful!
Abd Alqader