Data Link Layer in OSI Model Last Updated : 19 Sep, 2025 Suggest changes Share Like Article Like Report The data link layer is the second layer from the bottom in the OSI (Open System Interconnection) network architecture model. Responsible for the node-to-node delivery of data within the same local network. Major role is to ensure error-free transmission of information. Also responsible for encoding, decoding, and organizing the outgoing and incoming data. Considered as the most complex layer of the OSI model as it hides all the underlying complexities of the hardware from the other above layers. Data Link Layer in OSI ModelSub-Layers of The Data Link LayerThe data link layer is further divided into two sub-layers, which are as follows:Logical Link Control (LLC): This sublayer of the data link layer deals with multiplexing, the flow of data among applications and other services, and LLC is responsible for providing error messages and acknowledgments as well. Media Access Control (MAC): MAC sublayer manages the device's interaction, responsible for addressing frames, and also controls physical media access. The data link layer receives the information in the form of packets from the Network layer, it divides packets into frames and sends those frames bit-by-bit to the underlying physical layer. Functions of The Data-link LayerRead more about Data Link Layer Services.Protocols in Data link layerThere are various protocols in the data link layer, which are as follows:Synchronous Data Link Protocol (SDLC)High-Level Data Link Protocol (HDLC)Serial Line Interface Protocol (SLIP)Point to Point Protocol (PPP)Link Access Procedure (LAP)Link Control Protocol (LCP)Network Control Protocol (NCP)Devices Operating at the Data Link LayerAll these devices rely on MAC addresses for efficient frame delivery and play a crucial role in local network communication and access control.Devices at Data Link Layer1. SwitchA switch is a key device in the Data Link Layer.It uses MAC addresses to forward data frames to the correct device within a network.Works in local area networks (LANs) to connect multiple devices.2. BridgeA bridge connects two or more LANs, creating a single, unified network.Operates at the Data Link Layer by forwarding frames based on MAC addresses.Used to reduce network traffic and segment a network.3. Network Interface Card (NIC)A NIC is a hardware component in devices like computers and printers.Responsible for adding the MAC address to frames and ensuring proper communication with the network.Operates at the Data Link Layer by preparing and sending frames over the physical medium.4. Wireless Access Point (WAP)A WAP allows wireless devices to connect to a wired network.Operates at the Data Link Layer by managing wireless MAC addresses.Uses protocols like Wi-Fi (IEEE 802.11) to communicate with devices.5. Layer 2 SwitchesThese are specialized switches that only operate at Layer 2, unlike multi-layer switches.Responsible for frame forwarding using MAC address tables.Note: The Data Link Layer can be targeted by attacks like MAC spoofing or ARP poisoning. Understanding how devices and frames operate at this layer helps detect and mitigate such threats.Limitations of Data Link LayerLimited Scope: It operates only within a local network and cannot handle end-to-end communication across different networks.Increased Overhead: Adding headers, trailers, and redundant data (for error correction) increases the size of transmitted data.Error Handling Dependency: While it can detect and correct some errors, it relies on upper layers for handling more complex issues.No Routing Capability: The Data Link Layer cannot make routing decisions. It only ensures delivery within the same network segment.Resource Usage: Flow control and error correction mechanisms may consume extra processing power and memoryApplications of Data Link LayerLocal Area Networks (LANs): Enables reliable communication between devices within a local network using protocols like Ethernet (IEEE 802.3).Wireless Networks (Wi-Fi): Manages communication between devices in wireless networks via protocols like IEEE 802.11 hence, handling media access and error control.Switches and MAC Addressing: Facilitates the operation of switches by using MAC addresses to forward data frames to the correct device within the network.Point-to-Point Connections: Used in protocols like PPP (Point-to-Point Protocol) to establish and manage direct communication between two nodes. K kanikajoshi Follow Explore Computer Network BasicsBasics of Computer Networking4 min readTypes of Computer Networks6 min readIntroduction to Internet10 min readNetwork Devices3 min readWhat is OSI Model? - Layers of OSI Model11 min readTCP/IP Model6 min readDifference Between OSI Model and TCP/IP Model2 min readPhysical LayerPhysical Layer in OSI Model3 min readTypes of Network Topology9 min readTransmission Modes in Computer Networks (Simplex, Half-Duplex and Full-Duplex)3 min readTransmission Media in Computer Networks7 min readData Link LayerData Link Layer in OSI Model4 min readSwitching | Computer Networks2 min readVirtual LAN (VLAN)3 min readFraming in Data Link Layer3 min readError Control in Data Link Layer3 min readFlow Control in Data Link Layer3 min readPiggybacking in Computer Networks2 min readNetwork LayerNetwork Layer in OSI Model3 min readIntroduction of Classful IP Addressing7 min readClassless Addressing in IP Addressing7 min readWhat is an IP Address?14 min readIPv4 Datagram Header4 min readDifference Between IPv4 and IPv63 min readPublic and Private IP addresses4 min readIntroduction To Subnetting5 min readWhat is Routing?10 min readNetwork Layer Protocols9 min readTransport LayerTransport Layer in OSI Model5 min readTransport Layer Protocols9 min readWhat is TCP (Transmission Control Protocol)?5 min readUser Datagram Protocol (UDP)5 min readSession Layer & Presentation LayerSession Layer in OSI model6 min readPresentation Layer in OSI model4 min readSecure Socket Layer (SSL)10 min readPPTP Full Form - Point-to-Point Tunneling Protocol5 min readMultipurpose Internet Mail Extension (MIME) Protocol4 min readApplication LayerApplication Layer in OSI Model5 min readClient-Server Model3 min readWorld Wide Web (WWW)6 min readIntroduction to Electronic Mail4 min readWhat is a Content Distribution Network and how does it work?4 min readProtocols in Application Layer4 min readAdvanced TopicsWhat is Network Security?7 min readComputer Network | Quality of Service and Multimedia5 min readAuthentication in Computer Network3 min readEncryption, Its Algorithms And Its Future10 min readIntroduction of Firewall in Computer Network7 min readMAC Filtering in Computer Network4 min readWi-Fi Standards Explained2 min readWhat is Bluetooth?6 min readGenerations of wireless communication2 min readCloud Networking4 min readPracticeTop 50 Plus Networking Interview Questions and Answers for 202415+ min readTop 50 TCP/IP Interview Questions and Answers 202515+ min readNetwork Fundamentals Interview Questions - Computer Networks15+ min readLast Minute Notes for Computer Networks14 min readComputer Network - Cheat Sheet15+ min read Article Tags : Computer Networks GATE CS Data Link Layer Like