DC 4 Flashcards

1
Q

Sliding Window Flow Control

A

Key Idea: Multiple frames can be in transit, improving efficiency over stop-and-wait.
Features:
Uses sequence numbers for frames (modulo 2k2 k).
Sender can send up to W frames without waiting for acknowledgment.
Receiver acknowledges with the next expected frame number.
Benefits: Treats the transmission link as a pipeline, allowing continuous data flow.

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

Stop-and-Wait ARQ

A

Key Idea: Source sends one frame, waits for acknowledgment before sending the next.
Error Handling:
Timer used for retransmission if no acknowledgment.
Frames are labeled alternately (e.g., 0, 1) to prevent duplication errors.
Advantage: Simplicity.
Disadvantage: Inefficient, as the line is underutilized.

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

Go-Back-N ARQ

A

Key Idea: Sender can send multiple frames but retransmits from the error frame upon a negative acknowledgment (REJ).
Mechanism:
Receiver discards all frames after the error until retransmission.
Sender buffers unacknowledged frames.
Benefit: Better line utilization than stop-and-wait.

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

Selective Reject ARQ

A

Key Idea: Only frames with errors (or those timed out) are retransmitted.
Mechanism:
Receiver buffers out-of-order frames.
Requires complex logic for proper sequence insertion.
Benefit: Reduces retransmissions.
Drawback: Less common due to complexity.

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

Go-Back-N vs. Selective Reject

A

Go-Back-N:
Retransmits all frames after an error.
Simple logic but less efficient.
Selective Reject:
Retransmits only the errored frame.
Efficient but requires buffering and complex logic.

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

HDLC Protocol Basics

A

Station Types:
Primary: Controls link, sends commands.
Secondary: Responds to primary.
Combined: Acts as both.
Link Configurations:
Unbalanced: One primary, multiple secondaries.
Balanced: Two combined stations.

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

HDLC Transfer Modes

A

NRM (Normal Response Mode): Primary initiates, secondary responds.
ABM (Asynchronous Balanced Mode): Either station can initiate; efficient.
ARM (Asynchronous Response Mode): Secondary can initiate, but rarely used.

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

Flag Fields and Bit Stuffing

A

Flag Field: Delimits frames with the unique pattern 01111110.
Bit Stuffing: Inserts a 0 after five consecutive 1s to prevent flag misinterpretation.
Benefit: Ensures data transparency.

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