The data link layer is the protocol layer in a program that handles the moving of data into and out of a physical link in a network . The data link layer is Layer 2 in the Open Systems Interconnection (OSI) architecture model for a set of telecommunication protocols.