Data Link layer is the second layer for #Open Systems Interconnection (OSI) Model. It is referred as Link Layer together with Physical Layer in #Internet Protocol Suite (TCP/IP). Its responsibility is to establish a communication session between two different devices at node level regardless of network types. It will encapsulate# the data with a header that includes the information about the protocol used and the source and destination Media Access Control Address (MAC)#. All Ethernet switching and bridging are done here. Its #Protocol Data Units (PDU)# is a frame.
Some protocols operate at this layer, shown as follows:
- Spanning Tree Protocol (STP)#
- Ethernet#
- Frame Relay#
- Integrated Services Digital Network (ISDN)#
- Asynchronous Transfer Mode (ATM)#
- Cisco Discovery Protocol (CDP)#
Some operating systems provide interfaces to interact with Data Link Layer to ease the programmers’ effort on network programming. These are shown at below: