Unit 3: Data Link Layer Flashcards

(26 cards)

1
Q

What is the primary function of the data link layer?

A

The data link layer ensures reliable transmission of data frames between two nodes connected by a physical layer. It performs framing, error detection, flow control, and medium access control.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Why is framing necessary in data communication?

A

Framing divides the continuous stream of bits into manageable data units (frames) so that the receiver can identify frame boundaries and process data correctly.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the major design issues of the data link layer?

A
  • Framing
  • Error control
  • Flow control
  • Addressing
  • Medium access control
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the difference between error detection and error correction?

A

Error detection identifies the presence of errors in the transmitted data, while error correction identifies and fixes the errors without retransmission.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why is error detection important in networking?

A

It ensures data integrity by identifying corrupted data during transmission, allowing for retransmission or correction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are common error detection techniques?

A
  • Parity bits
  • Checksum
  • Cyclic Redundancy Check (CRC)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Why is CRC preferred over parity and checksum?

A

CRC detects more types of errors with higher accuracy and is computationally efficient for large data blocks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a data frame?

A

A data frame is a structured packet of data that includes headers and trailers along with the actual payload to enable proper transmission and reception at the data link layer.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are elementary data link protocols?

A
  • Unrestricted simplex
  • Stop-and-wait
  • Sliding window protocols
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the stop-and-wait protocol?

A

In stop-and-wait, the sender transmits a frame and waits for an acknowledgment before sending the next one. It is simple but inefficient for long delays.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the sliding window protocol?

A

Sliding window protocols allow the sender to send multiple frames before needing an acknowledgment, improving efficiency.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the difference between go-back-N and selective repeat protocols?

A
  • Go-back-N: Sender resends all frames from the last unacknowledged one on error.
  • Selective repeat: Only the specific erroneous or lost frame is retransmitted.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Why is selective repeat more efficient than go-back-N?

A

Selective repeat minimizes unnecessary retransmissions by resending only erroneous frames rather than all subsequent ones.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is flow control in the data link layer?

A

Flow control prevents the sender from overwhelming the receiver by regulating data transmission rate.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is HDLC (High-Level Data Link Control)?

A

HDLC is a bit-oriented, full-duplex data link layer protocol that uses a frame structure for reliable communication. It supports both point-to-point and multipoint links.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are the different types of HDLC frames?

A
  • Information (I) frames: carry user data
  • Supervisory (S) frames: control flow and error
  • Unnumbered (U) frames: carry control information
17
Q

What is the purpose of frame check sequence (FCS) in HDLC?

A

FCS is a CRC-based field in the trailer that enables error detection in frames.

18
Q

What is the channel allocation problem?

A

It refers to deciding how multiple users share a communication medium fairly and efficiently without conflicts.

19
Q

What are multiple access protocols?

A

These protocols coordinate how devices share the same medium in a multi-access environment. Examples include ALOHA, CSMA, and token-based protocols.

20
Q

What is ALOHA protocol?

A

ALOHA is a simple random-access protocol where stations transmit whenever they have data. Collisions are handled by retransmitting after random delays.

21
Q

What is the difference between pure ALOHA and slotted ALOHA?

A
  • Pure ALOHA: No synchronization; high collision rate.
  • Slotted ALOHA: Time is divided into slots; transmissions only begin at slot boundaries, reducing collisions.
22
Q

What is CSMA (Carrier Sense Multiple Access)?

A

In CSMA, a station listens to the channel before transmitting. If the channel is busy, it waits to avoid collision.

23
Q

What is the difference between CSMA/CD and CSMA/CA?

A
  • CSMA/CD (Collision Detection): Used in wired networks like Ethernet; detects collisions and retransmits.
  • CSMA/CA (Collision Avoidance): Used in wireless networks like Wi-Fi; avoids collisions via signaling before transmission.
24
Q

What is a token-passing protocol?

A

A token circulates in the network, and only the device holding the token can transmit. It prevents collisions and ensures fairness.

25
Why is the data link layer important in LANs?
It defines how nodes share the medium, ensures error-free data delivery, and provides addressing, which is crucial for local communication.
26
What is MAC (Media Access Control) addressing?
MAC addresses are unique hardware identifiers used at the data link layer to distinguish devices on the same local network.