The Data Link layer is responsible for
- Communications between end-device network interface cards.
- It allows upper layer protocols to access the physical layer media and encapsulates Layer 3 packets (IPv4 and IPv6) into Layer 2 Frames.
- It also performs error detection and rejects corrupts frames.
The Data Link Layer consists of two sublayers.
- Logical Link Control (LLC) and
- Media Access Control (MAC).
The LLC
sublayer communicates between the networking software at the upper layers and
the device hardware at the lower layers.
The MAC
sublayer is responsible for data encapsulation and media access control.