OSI model, Data link layer
The data link layer or layer 2 is the second layer of the OSI seven-layer model of computer networks.
This layer transfers data between adjacent network nodes on a wide area network (WAN) or between nodes on the same local area network (LAN).
The data link layer provides the functional and procedural means to transfer data between network entities and could provide the means to detect and possibly correct errors that may occur at the physical layer.
The data link layer deals with the local delivery of frames between devices on the same LAN. Data link frames, as these protocol data units are called, do not cross the boundaries of a local network.
Internetwork routing and global addressing are upper layer functions, allowing data link protocols to focus on local delivery, routing, and media arbitration.
In this way, the data link layer is analogous to a neighborhood traffic police; endeavors to arbitrate between competing parties for access to a medium, regardless of its final destination.
When devices try to use a medium simultaneously, image collisions occur. Data link protocols specify how devices detect and recover from such collisions, and can provide mechanisms to reduce or prevent them.
Services
- Encapsulation
- Frame synchronization
- Logical link control (Error & Flow control)
- Media access control (MAC, LAN switching, Physical addressing, QaS, VLAN, ...)
Protocols
- ARP Address Resolution Protocol
- CDP Cisco Discovery Protocol
- CAN Controller Area Network
- Ethernet
- EAPS Ethernet Automatic Protection Switching
- FDDI Fiber Distributed Data Interface
- Frame Relay
- HDLC High-Level Data Link Control
- IEEE 802.2 provides LLC functions to IEEE 802 MAC layers
- IEEE 802.11 wireless LAN
- LAPD Link Access Procedures, D channel
- LLDP Link Layer Discovery Protocol
- MPLS Multiprotocol Label Switching
- NDP Nortel Discovery Protocol
- SDN OpenFlow
- PPP Point-to-Point Protocol
- SLIP Serial Line Internet Protocol (obsolete)
- SMLT Split multi-link trunking
- IEEE 802.1aq Shortest Path Bridging
- UDLD Unidirectional Link Detection