Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

networks
networking
link layer

What is the data link layer and what services does it provide?

Behzad Ahmad

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

The data link layer is responsible for transferring datagramsdata packets having source and destination MAC addresses from one node to another node connected by the same link.

Services provided by the link layer

Framing and addressing:

  • Encapsulates a datagram into a frame, adding a header
  • Uses “MAC” addresses in frame headers to identify the source & destination

Error detection

  • Checks for corruption of data by bits being changed and provides a mechanism for data recovery by dropping frames or signaling for retransmission

Flow control:

  • Provide equal speed of access for data exchange, even while the actual link speeds for different links may be different

Half-duplex and full-duplex communication:

  • In half-duplex, the nodes at ends can each transmit data, but not simultaneously.
  • In full-duplex form, nodes at either end can transmit the datagrams simultaneously.

RELATED TAGS

networks
networking
link layer

CONTRIBUTOR

Behzad Ahmad
Copyright ©2022 Educative, Inc. All rights reserved

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring