The data link layer moves frames between neighbouring devices and can spot errors

The data link layer moves frames between neighbouring devices and can spot errors
Image: Intellect (generated)

In short: Before a network message travels, it is cut into frames. The data link layer, the second layer of the seven-layer OSI model, delivers those frames between devices on the same network segment, arbitrates who may use a shared medium, and can detect transmission errors. This small, local job quietly keeps local networks working.

Its task is to move data between nodes on one network segment, using the physical layer beneath it. The units it handles are called frames, and they stay within a local network rather than travelling between networks. Routing between networks and global addressing belong to higher layers, which lets data-link protocols concentrate on local delivery, addressing and sharing of the medium. A useful comparison is a neighbourhood traffic cop who settles disputes between parties competing for a road without caring where they are headed. When several devices transmit at the same moment, their signals clash, and data-link protocols define how devices notice these clashes and recover, sometimes with rules that make clashes less likely. Ethernet, IEEE 802.11 WiFi, ATM and Frame Relay are examples of protocols that work at this layer. Addresses in frame headers are flat, so no portion of one reveals the group a device belongs to, unlike the structured addresses used higher up.

In IEEE 802 local area networks the layer is often split into two sublayers. The upper one, logical link control, combines the protocols running above it and may offer flow control, acknowledgment and error notification. The lower one, media access control, decides which device may use the medium at a given time, and it also marks where each frame begins and ends within the stream of bits. Several techniques achieve this marking, including timing gaps between frames, counting characters, and inserting special bytes or bits so that the marker pattern never appears in the data. To catch errors, a sender can attach extra redundant information such as a parity bit or a cyclic redundancy check, which the receiver recalculates and compares. Some protocols skip this step entirely, leaving acknowledgments and retransmission to higher layers. Wireless networks and certain telephone modems retransmit faulty packets at this layer, while many wired LAN protocols only detect errors and discard damaged packets, since bit errors are rare over short cables.

The layer is described differently in the TCP/IP model, where its functions fall within the link layer. That layer concerns only the link a host is directly attached to and deals with hardware matters, such as finding the hardware addresses that identify hosts on that link. The TCP/IP model was not designed as a strict top-down reference, and experts generally advise against treating it as a direct equivalent of OSI. The two models are best understood as related ways of organising the same kinds of work, rather than as identical stacks.

Opens the Intellect+ feed with this card first. Swipe up for the next one.

Sources

To cite this card, link to https://intellectplus.co.uk/app/technology-data-link-layer.

How we source, check and correct cards: Editorial standards.

General information, not professional advice. Spotted an error? Flag the card or see corrections and complaints.

Intellect Plus is a visual educational discovery platform for exploring fascinating facts and ideas. Brain Food, Not Brain Rot. What is Intellect Plus?

Related

Finding something worth knowing…