Functions of the Data Link Layer
Hence, the main function of the data-link layer is to hide the idiosyncrasies of the physical medium by providing a well-defined service interface to the network layer
To do this, the data link layer must have mechanisms for:
- determining how the bits of the physical are grouped into frames
- dealing with transmission errors
- regulating the flow of frames between sender and receiver