The next layer is the data link, which defines how the data transfer should happen between two nodes that are directly connected. It is responsible for the following:
- Detection of communication errors in the first layer
- Correction of the physical errors
- Control of the flow/transmission rate between nodes
- Connection termination
Some real-world examples of data link layers definition are the ones for Ethernet (802.3) and Wi-Fi (802.11).