DC 4 Flashcards
Sliding Window Flow Control
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.
Stop-and-Wait ARQ
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.
Go-Back-N ARQ
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.
Selective Reject ARQ
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.
Go-Back-N vs. Selective Reject
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.
HDLC Protocol Basics
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.
HDLC Transfer Modes
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.
Flag Fields and Bit Stuffing
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.