Data-Link Layer


Data-Link Layer

Introduction

The Data-Link Layer is an important component of computer networks as it is responsible for the reliable transfer of data between two adjacent nodes connected by a physical link. It provides services such as framing, flow control, error control, and physical addressing. In this topic, we will explore the design issues and protocols associated with the Data-Link Layer.

Data-Link Layer Design Issues

Framing

Framing is the process of dividing a stream of bits into manageable units called frames. It helps in identifying the boundaries of data units and enables error detection and recovery. There are several techniques for framing:

  1. Character Count: The frame starts with a count of the number of characters in the frame.
  2. Byte Stuffing: Special control characters are used to indicate the start and end of a frame.
  3. Bit Stuffing: A specific bit pattern is inserted into the data to indicate the start and end of a frame.

These framing techniques are used in various real-world applications such as Ethernet and HDLC.

Flow Control

Flow control is used to manage the rate of data transmission between the sender and receiver to prevent data loss or overflow. There are several flow control protocols:

  1. Stop & Wait Protocol: In this protocol, the sender sends a frame and waits for an acknowledgment from the receiver before sending the next frame. This ensures that the receiver can handle the incoming data at its own pace.

  2. Go back N ARQ: This protocol allows the sender to send multiple frames without waiting for individual acknowledgments. The receiver discards out-of-sequence frames and requests retransmission.

  3. Selective Repeat ARQ: This protocol is similar to Go back N ARQ but allows the receiver to selectively request retransmission of only the lost frames.

These flow control protocols are used in applications such as TCP/IP.

Error Control

Error control is used to detect and correct errors that may occur during data transmission. There are several error control techniques:

  1. Error Detection Techniques: Checksum and Cyclic Redundancy Check (CRC) are commonly used techniques to detect errors in the received data.

  2. Error Correction Techniques: Retransmission and Forward Error Correction (FEC) are used to correct errors in the received data. Retransmission involves requesting the sender to retransmit the entire frame, while FEC involves adding redundant bits to the data to enable error correction.

These error control techniques are used in applications such as wireless communication and satellite transmission.

Physical Addressing

Physical addressing is used to uniquely identify devices connected to a network. It involves assigning a physical address to each device, which is used for communication. The most common form of physical addressing is the Media Access Control (MAC) address.

  1. MAC Addresses: MAC addresses are unique identifiers assigned to network interface cards (NICs) by the manufacturer. They are used for addressing at the Data-Link Layer.

  2. Address Resolution Protocol (ARP): ARP is used to map an IP address to its corresponding MAC address. It allows devices to communicate with each other on the same network.

Physical addressing is used in applications such as Ethernet and Wi-Fi.

HDLC (High-Level Data Link Control)

HDLC is a widely used protocol for communication between Data-Link Layer entities. It provides a reliable and efficient data transfer mechanism. Some key aspects of HDLC include:

  1. Definition and Purpose: HDLC is a bit-oriented protocol that provides both connection-oriented and connectionless services. It is used for point-to-point and multipoint communication.

  2. HDLC Frame Structure: HDLC frames consist of a header, information field, and trailer. The header contains control information, the information field carries the data, and the trailer contains error detection information.

  3. HDLC Modes: HDLC supports different modes of operation, including Normal Response Mode (NRM) and Asynchronous Balanced Mode (ABM). NRM is used for point-to-point communication, while ABM is used for multipoint communication.

HDLC is used in applications such as ISDN and X.25.

Conclusion

The Data-Link Layer plays a crucial role in computer networks by providing services such as framing, flow control, error control, and physical addressing. It ensures reliable data transfer between adjacent nodes. In this topic, we explored the design issues and protocols associated with the Data-Link Layer, including framing techniques, flow control protocols, error control techniques, physical addressing, and the HDLC protocol.

Summary

The Data-Link Layer is responsible for the reliable transfer of data between adjacent nodes in a computer network. It involves framing, flow control, error control, and physical addressing. Framing techniques are used to identify the boundaries of data units. Flow control protocols manage the rate of data transmission. Error control techniques detect and correct errors in the data. Physical addressing involves assigning unique MAC addresses to devices. HDLC is a widely used protocol for communication between Data-Link Layer entities.

Analogy

Imagine you are sending a package through a courier service. The Data-Link Layer can be compared to the packaging and addressing process. Framing is like putting the items in a box and labeling it. Flow control is like ensuring that the courier service delivers the packages at a pace that the receiver can handle. Error control is like adding extra packaging material to protect the items and checking for any damages during transit. Physical addressing is like writing the sender and receiver addresses on the package. HDLC is like using a standardized packaging and delivery process that ensures reliable and efficient delivery of packages.

Quizzes
Flashcards
Viva Question and Answers

Quizzes

What is the purpose of framing in the Data-Link Layer?
  • To divide a stream of bits into manageable units
  • To detect errors in the received data
  • To manage the rate of data transmission
  • To uniquely identify devices connected to a network

Possible Exam Questions

  • Explain the purpose of framing in the Data-Link Layer.

  • Discuss the advantages and disadvantages of the Stop & Wait protocol for flow control.

  • Compare and contrast Go back N ARQ and Selective Repeat ARQ protocols.

  • Describe the role of MAC addresses in physical addressing.

  • Explain the purpose and structure of HDLC.